"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=a||[]};
(0,_._F_toggles_initialize)([0x4000000, 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 wE,aD9,NEE,$I,Pv,t9x,p7,rE,hm,n7,$H7,BE8,j9,IDx,Pee,MH,gII,SSx,YS8,Ie,pvH,rme,heC,eeC,nI9,hL,iA,jV,L6,FUF,F$,M98,My,Q_,Gh,qSS,mJ,V_,xHe,Ce9,G8x,W2,fDS,Za,dHF,$d,DH7,B2,mHD,H7F,WJU,Jz,wle,Z6F,NT7,tVe,$yU,LK,ymH,e0,EIS,aES,gR8,khU,Uy8,xd,O6e,SR7,YRS,TTE,plH,rLS,i6x,z0,nR7,LJe,FJS,QeH,xyC,yk,Z2,b6v,Dym,$b,fEU,zHm,mye,lY,VVx,B9,KJe,v9,gC,kb,IP,Um,ERU,H67,yLD,K_,aae,WnS,w2I,Nfm,ZKv,n_,t0U,$ie,Yb,laU,IaI,FL,X2E,k0F,qo,TfC,vd8,Kn7,p2F,rzS,nde,iK9,uY,Gk,LnH,Fnv,M0D,xie,G0F,zDv,WZe,BCD,$f,I2v,X99,PP,vP,
g5,kf,U0,hY,cP,eB,Sme,RJ,TCE,rID,fv,d5,hRF,V$,HP,y$,E0,cIF,eRv,nbe,jPC,LZ8,JI8,FZD,Me9,RRE,QPU,NO,ZY,xoU,b_C,sPI,CYm,uLI,GkH,vb,f2F,gb,on,k8,UK,Sn,moC,T2,zRI,W_C,p8,wPD,Zvx,N5C,Aq,tBE,$_e,hq,ib,IPI,en,vf7,gfv,n8,kHE,ofU,U_e,OvF,S0S,Y09,Jq,T5F,K_I,Fd,pPF,rYE,MO,Rn,qO,Qa,AYe,ivD,hwS,x8,ew7,nfe,jJv,sK,C8,G2,DY,f8,db,Va,L_H,JY8,F_9,MBS,RwH,q08,QJS,x_C,bvF,sJx,urF,Hb,Cqx,GH7,av,D_S,w3,ZZ,fPe,VBF,zwe,HvD,EfS,aYe,Wiv,tnE,$Ov,Bbx,lYx,IYm,Pb9,Xbx,k2S,$g,UOm,O8e,SKC,YKF,TbH,KiF,rqv,Rse,qKS,Qnx,b88,snC,ov,udv,
kg,dOF,mO7,VnH,zsD,H8E,yqD,E88,aZe,KY,wh9,DOH,ZYC,N3C,t3C,$q9,B3e,lZm,IZ8,PfI,XhU,ogI,ggD,OYF,k5v,Uqm,T3x,Kkm,ph7,STE,AvF,YT9,iYv,xg,cvx,bf,uf,eB7,jve,LkC,M3e,DqC,qTU,RB8,xqm,svI,Qvm,HYe,mqI,yvU,Eg8,af7,WHU,wMU,NhD,ZrU,$FI,Bhx,lfI,If9,XMm,g39,o38,kOH,Ore,UFx,n3I,j$e,LHE,fY,JKF,Mke,RYS,qW9,Q$I,xFe,s$I,uhx,CJm,ET,a$,GO8,zYm,Zf,NF,aTI,waU,v1U,K$F,lJ,uTm,fT7,Gv9,Dkv,o$,dk7,mkx,zGv,Hae,yo7,E1F,a77,WBF,wS9,NwF,tme,BwC,$xx,PGe,rh,iJ,v6U,g69,o6S,kUm,UxF,OFC,YtE,KBe,TwH,x3,sW,LB9,uJ,GO,RqI,Df,qt8,QTx,fr,bFF,
xxF,Vm7,zqS,ySx,WGm,wiI,NzE,tgx,$YF,lpI,Pdv,Xim,yS,k4I,Swx,YwH,TzE,KG7,piv,O3e,oqD,gqv,wj,vq7,rwC,h8e,cwv,j0e,e8S,to,JwH,Mge,R8C,qw7,Q0U,Iu,xY8,s0E,b3e,uQx,G4U,va,ywU,aVe,wID,NoC,t6C,Bo7,SQ,Tv,Y1,XIv,$E7,vmm,ho,UES,ca,eQ,YxE,pII,AFv,h2U,iJC,na,cFv,e2e,nmx,LQI,JFv,FQ8,M69,qxx,La,Qxe,xES,FT,qk,uUH,CnH,GK7,x1,dEI,mES,z2e,fa,wZC,ZH8,Nte,tJU,$dI,Ei,aT,WS,ww,I8F,Nx,Pae,XZe,vjS,gjD,kPE,UdC,ojS,$6,OHS,K8S,BS,Ttm,pZS,SnF,rlI,IT,hym,iHm,clF,eyF,jgx,njD,L8I,MJH,JlC,qnm,Ca9,DdU,ddU,VJH,ylm,HH8,zyD,Ejv,Wox,ZMF,
wHC,NU9,$6x,BUE,TU,XHS,rw,oUF,gUE,kcx,hS,iG,U6C,cS,OMF,Yfm,Ko9,AfU,iMe,h3F,dw,cfC,TU9,M2U,R38,qfU,HS,QUv,bME,CFv,fWe,D6e,z37,HM7,yf7,EUU,WmU,$M8,wGD,NQm,tHx,BQS,lGS,P6U,IGS,vsF,XG9,Pi,gsU,kqe,UMS,TQe,Sg,Yq,KmD,pGD,T4,iSm,hw,id,ci,jmx,eg,FmU,L3,MHv,R97,q$I,Qme,MY,xM9,sme,utI,Gqe,fGU,VHe,HSC,G4,yse,Esv,a9E,WXx,w_e,ZDe,NSe,tWS,dz,l9H,I9I,P07,X_U,v79,g7e,o7x,kGx,U1H,ODe,S_v,Y_E,TSS,WI,JkC,FXI,wo,ZV,NE,MWS,ROD,q_I,QVx,x19,bDC,sVv,f9m,d1I,m19,VWe,zOS,ln,PI,XU,vI,Ox,S6,Ym,ykE,KJ,abU,pJ,WOe,wJe,ro,ZxF,NKe,
tyI,op9,Unx,KOv,hzF,AGx,kCe,ixE,npI,GCI,RzS,Vy9,QsU,mnx,zzm,j6,yGC,JF,a3S,Whv,ZCS,NiU,tMx,BiE,Rx,I3E,PhF,XuF,voF,gox,ooe,kXv,l3I,S69,Y6I,TiI,Ql,noE,j1m,e5C,J7H,FhH,R5F,q6e,MME,GX9,f3S,mj7,z5I,Vl,wAH,WVE,B$e,ICx,PO7,XAe,vQC,gQS,oQI,BZ,rt9,hSD,KVF,T$8,Ate,Ute,ctv,xte,j5H,LVx,JtF,VKE,Hpm,mte,Ztv,dtD,kDH,wXe,nQS,Q5E,zSI,ipE,SNe,OpH,YNv,pA7,fCS,rt,S8H,TJ8,KYe,pXE,rQ9,JQD,xwI,btU,qd,um7,Dw9,Vx8,mwE,Ht9,yQD,Wdm,aK9,w$8,tLe,N2U,dt,$XD,B2F,IKI,lKE,m8,kwS,o_x,g_x,YbI,UXv,T2E,SbD,KdI,zP,p$9,iAS,AuU,hn9,enm,
n_F,Lde,aU,ML8,Jue,Rnm,bAC,ste,Gw9,fKH,N6,tf,zn7,HA7,$U,BH,yum,lF,IU,E_9,PH,aBU,Xv,W5D,we9,gU,Zjx,NPI,t4e,$sC,BPU,IBH,lBE,XeF,oD8,gDe,k9m,UsU,PKI,Ojm,TP9,YBH,vDD,K59,pe9,S2,rxI,hgU,Ax9,ijC,egD,jLF,nDF,L5U,Tc,F5m,M4U,Jx8,qBm,QLm,xsx,CK9,fB9,Hjm,WIe,KM,NXx,trC,rU,$mD,cH,e2,vBI,hf,LM,gBE,oBE,Ume,OwE,Ya9,KID,p6e,ryC,Ayv,cyv,JyH,jaD,iwU,FID,MrH,RU,LIC,Ri9,xU,qa9,Qae,xmI,bwC,Gbm,sam,CLH,mm9,VrU,adD,EBC,Z4e,IdI,PVS,vXF,oXx,kSF,O4C,S98,Y9U,KaI,pN7,rNe,i49,jIF,Lae,cN8,Fae,Rhe,MaS,JNe,q9D,x9F,b47,sIe,u2v,CVv,
HH,y8,WG,ZG,fd8,d97,Vae,yN9,NM,ts,EXx,$s,wzE,Zox,NkU,l6,ILH,gTC,k1m,UTS,OoC,SyE,YyH,pzx,PG,rDv,ioe,Xt,cDS,jYD,LK9,JD9,nTS,xTE,ukx,box,CBU,fLe,mTC,zE8,aAS,ETF,Nm7,U$,t5H,$SC,O$,BmF,SH,lA7,IAx,PE7,v2C,X07,g2F,o2F,k6S,USx,r9U,hW8,c9e,iI7,TmE,SMU,n2S,LlI,qMe,QNC,sNv,dS7,V5x,pS,zWD,y97,E29,WsU,tX9,BDF,IQD,Pge,X5x,vOI,Ok9,gOC,Ks8,p5S,Ad9,hs,ikv,cde,ea9,nOe,jkx,Lsx,Jd8,MXU,RaU,jH,Qk8,x5E,uwe,LS,skS,Gie,m5F,Ft,VXI,zam,HkC,a$H,W1m,yd8,Z9U,BIF,l$9,I$S,b6,PcE,o$9,k_m,Gq,S1e,UPv,O9F,TIx,py7,r1E,c1C,jZF,n$e,eTx,
L18,F1S,MSe,sZe,RTx,uHe,DPD,Ccx,H9C,at7,w1U,NF9,gK7,kVx,UKe,TFE,p1H,KD,Jk,exe,J2S,Lve,MiH,RxF,Qrx,qVv,xKD,bmx,Fz,pJ8,nKH,Fve,jrI,eW,GG,Cw9,GVH,mKe,Vi8,zxU,HmU,y28,EKC,aie,dS,Wjv,mX,wnI,ZUE,NqC,tfH,H_,$DD,Ii8,XnC,viE,Y5v,KjH,pne,rA8,hXS,iU7,$p,eXv,ni7,jwF,Lj9,JAS,FjF,RXE,QwH,bU9,swH,dD8,DDv,mDx,HUm,yAD,gK,Eiv,aje,W67,Nlx,$7H,tG7,ljx,P3D,Od,vS7,gSS,XTI,oSx,fjx,m7C,zue,VGx,HlC,d7e,yMU,ESF,ale,WFU,woE,ZzH,N7U,tTS,$aE,IlF,llE,PHF,vcU,Xo8,Sy,gc7,Uax,KFE,oc9,poH,r4I,A4e,h_e,FFH,R_e,qjx,xam,bz7,nx,Gzx,ma9,
z_7,jy,aJS,Ece,WTx,Fb,wEe,ZBF,N9C,$Jm,B98,lJI,IJ9,XE8,vVI,pEC,SFD,T9S,Acv,rcI,hlm,iBU,elF,jXC,Jc8,Mwx,DJS,mJ8,zlE,HBS,ycI,EV8,ahI,w7E,ZN9,$Rm,B49,lhE,IhU,PiD,X7U,vH8,gH7,URv,K4m,dK,mO,Vb,zC,p7I,Ed,AbU,F48,bN9,Qc8,wwU,Z0S,Nnm,iNe,Jbe,nHe,tDe,$LC,BnI,RKS,IsE,Xw9,gZE,ULI,O0m,XK,ApF,rp7,ev7,LzH,FzE,Rvv,qqv,b0e,uje,s7E,DL8,dLm,aH9,yp8,VDe,EZF,zvI,W79,tNF,ri,o4U,Xpx,UvI,OgI,YDv,T09,h7,K7H,Ae7,hN7,ig7,ce8,RN8,MNH,FK,bh,CjI,Gdv,uh,Dvm,fH8,dvH,mvF,VNv,zN8,Hgv,yem,E48,aqI,Wxx,w3H,ZGv,NyD,tOv,CC,$Qe,Bym,lq7,
IqF,Prm,X3U,vtC,gtF,ot7,kAE,UQH,OGe,D3,YYE,Kx9,r87,iGF,ntI,j4v,LxH,FxD,R79,qYU,Q4E,bGC,GAU,uCU,DQe,fqS,dQv,z79,WRe,wRe,N8v,XM,$lF,I5,lUE,IUS,vA,PCI,XRU,vlE,glx,o5,OdD,Yux,AV8,rVS,id7,cVE,Kp,eC9,nlD,LRI,FRH,MdF,quF,Qy9,JVS,xle,GnS,mlH,Vd7,pp,zCS,Hde,wdD,yV7,avv,Wbe,lvS,NM9,Ivx,XdI,gvS,ov7,kxx,UrS,Of7,SPe,TMC,KbS,pdS,rEU,AEH,ifC,etI,LbS,Rtx,xr7,sDm,Gx7,np,Drv,fvm,dre,mrF,V8U,Hfe,yEI,EvC,amE,WMv,wk7,ZPF,N_x,tvm,$$I,B_C,ImH,lm9,vxe,oxx,Jt,kWD,SHH,OPI,Mt,KMS,pkx,iPU,nxH,cR8,hfC,JRD,LMS,Qjv,FMS,bO,RfC,
D$E,sjU,uyH,CuS,GW8,fme,m$U,d$U,sN,uO,W0D,zfm,aIv,Exm,HP8,yRD,Nxe,$Cm,lI8,Bx9,vwe,Xt9,kg8,UC7,SrU,YrE,OT8,Tx7,ptI,K0E,A6F,c6v,zD,eAv,nwE,J6E,Q2m,Gge,yn,fI7,zAI,au9,Ew8,HTv,y6v,Zg,tUx,wKF,ZRe,$hx,luD,BZx,XKI,vEx,oEm,ksH,UhF,OR9,SLF,TZF,Kfe,kJ,rCU,O8,AC9,epv,nES,Kt,j8I,JCx,uVE,ix,qLS,s8E,Q8e,xh8,fuI,dhv,Dhe,mhS,VUU,EEv,zpm,aXC,W9v,ex,ZOD,Ns8,tbv,wL9,Bs7,$3e,nt,XLU,Sh9,YhH,Ts7,K9E,pLF,r3v,c3x,hrI,iOD,A3F,nyS,J3m,Rrm,qhU,x38,Mw,bOC,s6I,uYe,Ga9,D3D,fXI,d3F,m3S,Vbx,HOE,bx,y3E,Wqe,ao9,Z2S,w4E,Na8,tEe,$A7,
s8,loF,YJ8,O27,p4m,rHm,neU,jKD,LqC,JHE,Fqe,MES,QKe,xAm,b2m,sKm,Gf9,DAD,fom,dAx,mAU,VEI,z6S,H2E,yHE,Eem,a4F,wYv,ZXx,NeI,$2m,l4F,PtU,oh8,ghv,vh8,XYx,U2H,OXI,B$,SpF,YpS,Te8,KeC,AJm,pYv,hPF,rJ8,iXU,Xq,cJv,ePH,nh9,jHm,Le9,RPm,qpC,QHx,sHx,bX7,x2S,Ub,un9,CtF,Gl7,D2v,f4I,d2x,Vj7,zP9,HXI,yJU,WPC,aSe,$ce,Ehe,SL,B6x,wOv,ttS,PSI,vG9,O$H,kFS,Ucm,oGS,gGE,hu,S4C,T6D,KPS,pOH,r0I,A0F,c$,eL,nGU,i$U,hdD,c08,sMI,xc8,edU,QM9,mcE,VtH,zd9,CA,H$x,y0x,EGC,wge,NYI,$fm,lOe,IOS,P7S,o5S,g5x,krv,O1m,zw,TYm,KuF,pgC,rPx,y6,Eb,i1m,
n5F,RL7,b18,sBe,u57,C7e,GrD,fOI,mfU,dfI,Vl9,zLv,yPF,E59,aex,WwD,wje,ZeS,tx,Brx,Nrx,$D,IeS,leU,PIC,OeH,SZS,oYe,gYv,U8v,k3E,rTF,ATv,hQe,IL,ieH,cTI,eQF,nYC,jRv,Fw9,Lwv,JTe,MuC,qZ7,x8F,sR9,CIv,D8I,Vu8,zQU,He9,yTI,EYD,ve,WDC,axF,gP,wCm,NHC,tz7,$WD,BHx,vLU,gLv,oLC,k7E,UWx,OZF,SGD,YD,THD,KDD,pC8,A$H,r$e,hUH,c$7,eU9,nLm,LDv,J$9,jWU,xWH,u1E,CZx,G79,DW8,dWe,fxx,mWF,y$F,ELx,anH,WyF,ZcE,w8C,tov,P4e,InC,vAF,gAH,oA7,Y7H,TVx,KyE,p8S,cWF,icE,hbF,jfS,JWH,Lym,Fyx,qs,Moe,Rbe,bcU,xUF,sfI,uge,C4S,GtH,dUE,mUS,VoU,zbE,
Hc7,yWe,EAC,awU,WN9,wcC,Zbx,NNS,$zI,tZe,BN8,lwv,Iwe,Pve,Xce,vFe,gFD,oFv,Uze,ObD,kYF,dP,TNC,pcE,rjF,Aje,hFF,cje,eF9,MZD,RFe,sq9,Cve,GYD,dzm,mz8,VZm,zFm,HbU,yjF,akE,WcE,Zh7,t$8,Bd7,XsH,IkI,lkI,PR8,vMU,kee,gMe,oMx,OhE,TdF,Kcx,psE,Ar8,h$U,ihC,e$e,jSv,crx,Lc7,JrS,Fc8,M$v,R$C,QSe,xpS,bhD,sSS,CRm,uPE,GeI,Dp8,fkS,dpF,mpF,V$F,z$U,HhS,azC,WtE,yrx,EMe,Nce,BcD,lz8,YCS,koE,SC9,Tcm,O57,$B,Kte,pWe,AOe,cOS,i5x,e1C,n0e,B6,Ia,LtS,JOS,v6,gX,qCE,Ftx,MC8,b57,CXx,DbF,fzC,dbU,mbe,VCI,H5e,yOv,E0x,acC,WA8,wmE,ZLE,Ua,N18,
tse,Sr,$gC,B1I,lcE,Icm,P27,Xm7,Kw,pw,vue,guC,rX,ouI,kJH,UgI,OL7,Yem,T1v,pmx,c5v,iLe,hJ7,eJx,nuD,RJC,J58,FAS,LAv,MsC,hy,bLU,sp9,ulC,C2D,GJH,fc7,zJ8,mgx,iL,dgS,W2S,ZyU,NpF,tcm,$e9,Bp7,PUm,XVD,o9F,kEm,UeF,Oyv,YkU,Tp8,K29,pVe,AaI,hkI,iyH,ek7,n9S,L2e,Jam,Q_D,xeE,byv,uA7,s_I,GEI,De8,fNI,dee,me9,VcD,yaF,zk9,E98,wFv,BLv,lFF,IFS,PpD,vCU,Mm,qm,Ra,gCm,oCI,kQS,UB8,OQC,Y3C,TLS,Kge,pFm,AZv,iQI,cZU,eV9,Q0,nCS,LgS,JZE,RVU,q3v,xB,bL,bQH,Q98,s9C,GQ8,ueC,DBH,uL,dBx,mB8,HQS,ECe,Cw,WLE,wqe,Zie,NBx,t_x,$08,BB7,IMI,gke,
okI,Oie,ky9,U0v,SUC,YUF,rg9,TBe,pq7,AgC,hmU,iie,nkE,jQ8,LLI,JgS,FL9,bi9,x0C,fMD,V_I,WN,zmE,FHS,HiS,ygS,ayv,wxv,ZqU,PPD,Xx7,$X,vWD,gW7,oWI,kmF,UGC,Ssv,Tve,Oqe,Yse,rnS,pxH,hc8,iq7,cnI,ecF,nWI,jOm,LWI,JnU,qs9,bq9,QOe,sOe,uRE,CPS,II,GmF,DGU,X2,dG7,fy9,mGv,VP9,Hqx,ynE,a19,WEH,wQE,ZsE,NWx,BWF,Pm9,gze,vze,oze,kje,SgI,eoD,pQF,jbI,LEE,FEv,Mqe,qgS,bs7,ua9,sbE,GjD,Dux,f1U,due,muC,Vqe,Hsx,a0S,WSC,wfI,ZVm,$Ze,tp8,PyC,XfU,vaI,gaI,oa7,kT8,OVe,cN,YOe,L4,KSD,rBE,AB8,naF,LSD,R4H,Qoe,xZF,so8,u3e,Cyv,DZC,dZD,mZ8,HVe,
Ea7,wDH,Wrx,aRU,QA,NRD,ZED,tAC,$4H,BRH,lRC,IRD,Pox,XDH,gPe,oPF,kI7,OEE,TR7,U4e,Sze,Kr8,pDF,rUe,AUI,iEC,cU8,RM8,qzx,QhS,x4F,bED,Com,Dd,VAU,zMI,HEF,yU8,EPC,f4,dO,bJ,BA9,VA,l_v,vne,onE,gnv,zS,kLC,UNx,DoI;_.Wv=function(a,W){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Wv);else{var w=Error().stack;w&&(this.stack=w)}a&&(this.message=String(a));W!==void 0&&(this.cause=W)};
wE=function(){throw Error("B");};
aD9=function(a,W){W=String.fromCharCode.apply(null,W);return a==null?W:a+W};
NEE=function(a){var W=!1;W=W===void 0?!1:W;if(WUv){if(W&&(wvx?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("C");a=(Z79||(Z79=new TextEncoder)).encode(a)}else{for(var w=0,Z=new Uint8Array(3*a.length),N=0;N<a.length;N++){var B=a.charCodeAt(N);if(B<128)Z[w++]=B;else{if(B<2048)Z[w++]=B>>6|192;else{if(B>=55296&&B<=57343){if(B<=56319&&N<a.length){var I=a.charCodeAt(++N);if(I>=56320&&I<=57343){B=(B-55296)*1024+I-56320+65536;Z[w++]=B>>18|
240;Z[w++]=B>>12&63|128;Z[w++]=B>>6&63|128;Z[w++]=B&63|128;continue}else N--}if(W)throw Error("C");B=65533}Z[w++]=B>>12|224;Z[w++]=B>>6&63|128}Z[w++]=B&63|128}}a=w===Z.length?Z:Z.subarray(0,w)}return a};
$I=function(a){_.NH.setTimeout(function(){throw a;},0)};
_.IC=function(a,W){return a.lastIndexOf(W,0)==0};
Pv=function(a,W){var w=a.length-W.length;return w>=0&&a.indexOf(W,w)==w};
_.vv=function(a){return/^[\s\xa0]*$/.test(a)};
_.gE=function(a,W){return a.indexOf(W)!=-1};
_.oC=function(a,W){return _.gE(a.toLowerCase(),W.toLowerCase())};
_.US=function(a,W){var w=0;a=kI(String(a)).split(".");W=kI(String(W)).split(".");for(var Z=Math.max(a.length,W.length),N=0;w==0&&N<Z;N++){var B=a[N]||"",I=W[N]||"";do{B=/(\d*)(\D*)(.*)/.exec(B)||["","","",""];I=/(\d*)(\D*)(.*)/.exec(I)||["","","",""];if(B[0].length==0&&I[0].length==0)break;w=t9x(B[1].length==0?0:parseInt(B[1],10),I[1].length==0?0:parseInt(I[1],10))||t9x(B[2].length==0,I[2].length==0)||t9x(B[2],I[2]);B=B[3];I=I[3]}while(w==0)}return w};
t9x=function(a,W){return a<W?-1:a>W?1:0};
_.S9=function(){var a=_.NH.navigator;return a&&(a=a.userAgent)?a:""};
p7=function(a){if(!YI||!K7)return!1;for(var W=0;W<K7.brands.length;W++){var w=K7.brands[W].brand;if(w&&_.gE(w,a))return!0}return!1};
rE=function(a){return _.gE(_.S9(),a)};
hm=function(){return YI?!!K7&&K7.brands.length>0:!1};
n7=function(){return hm()?!1:rE("Opera")};
$H7=function(){return hm()?!1:rE("Trident")||rE("MSIE")};
BE8=function(){return hm()?p7("Microsoft Edge"):rE("Edg/")};
j9=function(){return rE("Firefox")||rE("FxiOS")};
_.Fx=function(){return rE("Safari")&&!(_.L7()||(hm()?0:rE("Coast"))||n7()||(hm()?0:rE("Edge"))||BE8()||(hm()?p7("Opera"):rE("OPR"))||j9()||rE("Silk")||rE("Android"))};
_.L7=function(){return hm()?p7("Chromium"):(rE("Chrome")||rE("CriOS"))&&!(hm()?0:rE("Edge"))||rE("Silk")};
_.lDe=function(){return rE("Android")&&!(_.L7()||j9()||n7()||rE("Silk"))};
IDx=function(a){var W={};a.forEach(function(w){W[w[0]]=w[1]});
return function(w){return W[w.find(function(Z){return Z in W})]||""}};
Pee=function(a){var W=_.S9();if(a==="Internet Explorer"){if($H7())if((a=/rv: *([\d\.]*)/.exec(W))&&a[1])W=a[1];else{a="";var w=/MSIE +([\d\.]+)/.exec(W);if(w&&w[1])if(W=/Trident\/(\d.\d)/.exec(W),w[1]=="7.0")if(W&&W[1])switch(W[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=w[1];W=a}else W="";return W}var Z=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");w=[];for(var N;N=Z.exec(W);)w.push([N[1],N[2],N[3]||void 0]);
W=IDx(w);switch(a){case "Opera":if(n7())return W(["Version","Opera"]);if(hm()?p7("Opera"):rE("OPR"))return W(["OPR"]);break;case "Microsoft Edge":if(hm()?0:rE("Edge"))return W(["Edge"]);if(BE8())return W(["Edg"]);break;case "Chromium":if(_.L7())return W(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&j9()||a==="Safari"&&_.Fx()||a==="Android Browser"&&_.lDe()||a==="Silk"&&rE("Silk")?(W=w[2])&&W[1]||"":""};
_.Xve=function(a){if(hm()&&a!=="Silk"){var W=K7.brands.find(function(w){return w.brand===a});
if(!W||!W.version)return NaN;W=W.version.split(".")}else{W=Pee(a);if(W==="")return NaN;W=W.split(".")}return W.length===0?NaN:Number(W[0])};
MH=function(){return YI?!!K7&&!!K7.platform:!1};
_.vI8=function(){return MH()?K7.platform==="Android":rE("Android")};
gII=function(){return rE("iPhone")&&!rE("iPod")&&!rE("iPad")};
_.qH=function(){return gII()||rE("iPad")||rE("iPod")};
_.oIe=function(){return MH()?K7.platform==="macOS":rE("Macintosh")};
_.k8H=function(){return MH()?K7.platform==="Windows":rE("Windows")};
_.UHe=function(){return MH()?K7.platform==="Chrome OS":rE("CrOS")};
_.xI=function(a){return a[a.length-1]};
_.be=function(a,W,w){W=_.O7D(a,W,w);return W<0?null:typeof a==="string"?a.charAt(W):a[W]};
_.O7D=function(a,W,w){for(var Z=a.length,N=typeof a==="string"?a.split(""):a,B=0;B<Z;B++)if(B in N&&W.call(w,N[B],B,a))return B;return-1};
SSx=function(a){for(var W=_.ue,w=typeof a==="string"?a.split(""):a,Z=a.length-1;Z>=0;Z--)if(Z in w&&W.call(void 0,w[Z],Z,a))return Z;return-1};
_.f7=function(a,W){return _.DD(a,W)>=0};
_.dE=function(a,W){_.f7(a,W)||a.push(W)};
_.yF=function(a,W){W=_.DD(a,W);var w;(w=W>=0)&&_.mU(a,W);return w};
_.mU=function(a,W){Array.prototype.splice.call(a,W,1)};
_.Wl=function(a){var W=a.length;if(W>0){for(var w=Array(W),Z=0;Z<W;Z++)w[Z]=a[Z];return w}return[]};
_.ZE=function(a,W){for(var w=1;w<arguments.length;w++){var Z=arguments[w];if(_.wT(Z)){var N=a.length||0,B=Z.length||0;a.length=N+B;for(var I=0;I<B;I++)a[N+I]=Z[I]}else a.push(Z)}};
_.TEI=function(a,W,w,Z){Array.prototype.splice.apply(a,YS8(arguments,1))};
YS8=function(a,W,w){return arguments.length<=2?Array.prototype.slice.call(a,W):Array.prototype.slice.call(a,W,w)};
Ie=function(a,W){W=W||a;for(var w=0,Z=0,N={};Z<a.length;){var B=a[Z++],I=_.tL(B)?"o"+_.lA(B):(typeof B).charAt(0)+B;Object.prototype.hasOwnProperty.call(N,I)||(N[I]=!0,W[w++]=B)}W.length=w};
_.KUC=function(a,W,w){w=w||_.X$;for(var Z=0,N=a.length,B;Z<N;){var I=Z+(N-Z>>>1);var X=w(W,a[I]);X>0?Z=I+1:(N=I,B=!X)}return B?Z:-Z-1};
_.gT=function(a,W,w){if(!_.wT(a)||!_.wT(W)||a.length!=W.length)return!1;var Z=a.length;w=w||pvH;for(var N=0;N<Z;N++)if(!w(a[N],W[N]))return!1;return!0};
_.X$=function(a,W){return a>W?1:a<W?-1:0};
pvH=function(a,W){return a===W};
rme=function(a,W,w){W=Array.prototype.splice.call(a,W,1);Array.prototype.splice.call(a,w,0,W[0])};
heC=function(a){return Am7[a]||""};
eeC=function(a){if(!i7C)return _.UR(a);a=cm8.test(a)?a.replace(cm8,heC):a;a=atob(a);for(var W=new Uint8Array(a.length),w=0;w<a.length;w++)W[w]=a.charCodeAt(w);return W};
nI9=function(a,W){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=W};
_.Th=function(a){a=Error(a);nI9(a,"warning");return a};
hL=function(a,W){if(a!=null){var w;var Z=(w=jCx)!=null?w:jCx={};w=Z[a]||0;w>=W||(Z[a]=w+1,a=Error(),nI9(a,"incident"),$I(a))}};
iA=function(a,W,w){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(w===void 0?0:w)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():W};
jV=function(a,W){cl||_.n6 in a||LUE(a,Jme);a[_.n6]|=W};
L6=function(a,W){cl||_.n6 in a||LUE(a,Jme);a[_.n6]=W};
FUF=function(a){if(4&a)return 512&a?512:1024&a?1024:0};
F$=function(a){jV(a,34);return a};
M98=function(a){jV(a,32);return a};
My=function(){return typeof BigInt==="function"};
Q_=function(a,W){return W===void 0?a.copyOnWrite!==qy&&!!(2&(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.n6]|0)):!!(2&W)&&a.copyOnWrite!==qy};
_.C6=function(a,W){if(a!=null)if(typeof a==="string")a=a?new xR(a,sR):_.uA();else if(a.constructor!==xR)if(Rex&&a!=null&&a instanceof Uint8Array)a=a.length?new xR(new Uint8Array(a),sR):_.uA();else{if(!W)throw Error();a=void 0}return a};
Gh=function(a,W){if(typeof W!=="number"||W<0||W>=a.length)throw Error();};
qSS=function(a,W,w){W=W&128?0:-1;var Z=a.length,N;if(N=!!Z)N=a[Z-1],N=N!=null&&typeof N==="object"&&N.constructor===Object;for(var B=Z+(N?-1:0),I=0;I<B;I++)w(I-W,a[I]);if(N){a=a[Z-1];for(var X in a)!isNaN(X)&&w(+X,a[X])}};
mJ=function(a){return a&128?f6:void 0};
V_=function(a){a.isGuard_doNotManuallySetPrettyPlease=!0;return a};
xHe=function(){var a=QCH;return V_(function(W){for(var w in a)if(W===a[w]&&!/^[0-9]+$/.test(w))return!0;return!1})};
_.y_=function(a){var W=a;if(b7H(W)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(W))throw Error(String(W));}else if(sCx(W)&&!Number.isSafeInteger(W))throw Error(String(W));return zh?BigInt(a):a=uxC(a)?a?"1":"0":b7H(a)?a.trim()||"0":String(a)};
Ce9=function(a,W){if(a.length>W.length)return!1;if(a.length<W.length||a===W)return!0;for(var w=0;w<a.length;w++){var Z=a[w],N=W[w];if(Z>N)return!1;if(Z<N)return!0}};
G8x=function(a){var W=a>>>0;ER=W;aE=(a-W)/4294967296>>>0};
W2=function(a){if(a<0){G8x(-a);var W=_.l(DH7(ER,aE));a=W.next().value;W=W.next().value;ER=a>>>0;aE=W>>>0}else G8x(a)};
fDS=function(a,W){var w=W*4294967296+(a>>>0);return Number.isSafeInteger(w)?w:_.wf(a,W)};
Za=function(a,W){var w=W&2147483648;w&&(a=~a+1>>>0,W=~W>>>0,a==0&&(W=W+1>>>0));a=fDS(a,W);return typeof a==="number"?w?-a:a:w?"-"+a:a};
_.wf=function(a,W){W>>>=0;a>>>=0;if(W<=2097151)var w=""+(4294967296*W+a);else My()?w=""+(BigInt(W)<<BigInt(32)|BigInt(a)):(w=(a>>>24|W<<8)&16777215,W=W>>16&65535,a=(a&16777215)+w*6777216+W*6710656,w+=W*8147497,W*=2,a>=1E7&&(w+=a/1E7>>>0,a%=1E7),w>=1E7&&(W+=w/1E7>>>0,w%=1E7),w=W+dHF(w)+dHF(a));return w};
dHF=function(a){a=String(a);return"0000000".slice(a.length)+a};
_.Ni=function(a,W){W&2147483648?My()?a=""+(BigInt(W|0)<<BigInt(32)|BigInt(a>>>0)):(W=_.l(DH7(a,W)),a=W.next().value,W=W.next().value,a="-"+_.wf(a,W)):a=_.wf(a,W);return a};
$d=function(a){if(a.length<16)W2(Number(a));else if(My())a=BigInt(a),ER=Number(a&BigInt(4294967295))>>>0,aE=Number(a>>BigInt(32)&BigInt(4294967295));else{var W=+(a[0]==="-");aE=ER=0;for(var w=a.length,Z=W,N=(w-W)%6+W;N<=w;Z=N,N+=6)Z=Number(a.slice(Z,N)),aE*=1E6,ER=ER*1E6+Z,ER>=4294967296&&(aE+=Math.trunc(ER/4294967296),aE>>>=0,ER>>>=0);W&&(W=_.l(DH7(ER,aE)),a=W.next().value,W=W.next().value,ER=a,aE=W)}};
DH7=function(a,W){W=~W;a?a=~a+1:W+=1;return[a,W]};
B2=function(a){return Array.prototype.slice.call(a)};
_.l9=function(a,W){throw Error(W===void 0?"unexpected value "+a+"!":W);};
_.IE=function(a){if(a!=null&&typeof a!=="number")throw Error("I`"+typeof a+"`"+a);return a};
_.v2=function(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)};
mHD=function(a){if(a!=null&&typeof a!=="boolean")throw Error("J`"+_.UI(a)+"`"+a);return a};
_.V9m=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a};
_.T0=function(a){switch(typeof a){case "bigint":return!0;case "number":return S0(a);case "string":return zee.test(a);default:return!1}};
_.pK=function(a){if(!S0(a))throw _.Th("enum");return a|0};
_.rf=function(a){return a==null?a:S0(a)?a|0:void 0};
H7F=function(a){if(typeof a!=="number")throw _.Th("int32");if(!S0(a))throw _.Th("int32");return a|0};
_.Az=function(a){return a==null?a:H7F(a)};
_.hz=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return S0(a)?a|0:void 0};
_.c2=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return S0(a)?a>>>0:void 0};
WJU=function(a){var W=0;W=W===void 0?0:W;if(!_.T0(a))throw _.Th("int64");var w=typeof a;switch(W){case 512:switch(w){case "string":return e0(a);case "bigint":return String(nK(64,a));default:return ymH(a)}case 1024:switch(w){case "string":return EIS(a);case "bigint":return _.y_(nK(64,a));default:return aES(a)}case 0:switch(w){case "string":return e0(a);case "bigint":return _.y_(nK(64,a));default:return LK(a)}default:return _.l9(W,"Unknown format requested type for int64")}};
Jz=function(a){return a==null?a:WJU(a)};
wle=function(a){if(a[0]==="-")return!1;var W=a.length;return W<20?!0:W===20&&Number(a.substring(0,6))<184467};
Z6F=function(a){var W=a.length;return a[0]==="-"?W<20?!0:W===20&&Number(a.substring(0,7))>-922337:W<19?!0:W===19&&Number(a.substring(0,6))<922337};
NT7=function(a){if(a<0){W2(a);var W=_.wf(ER,aE);a=Number(W);return FX(a)?a:W}W=String(a);if(wle(W))return W;W2(a);return fDS(ER,aE)};
tVe=function(a){if(Z6F(a))return a;$d(a);return _.Ni(ER,aE)};
$yU=function(a){if(wle(a))return a;$d(a);return _.wf(ER,aE)};
LK=function(a){a=Mi(a);FX(a)||(W2(a),a=Za(ER,aE));return a};
_.BT7=function(a){a=Mi(a);return a>=0&&FX(a)?a:NT7(a)};
ymH=function(a){a=Mi(a);if(FX(a))a=String(a);else{var W=String(a);Z6F(W)?a=W:(W2(a),a=_.Ni(ER,aE))}return a};
_.lE8=function(a){a=Mi(a);if(a>=0&&FX(a))a=String(a);else{var W=String(a);wle(W)?a=W:(W2(a),a=_.wf(ER,aE))}return a};
e0=function(a){var W=Mi(Number(a));if(FX(W))return String(W);W=a.indexOf(".");W!==-1&&(a=a.substring(0,W));return tVe(a)};
EIS=function(a){var W=Mi(Number(a));if(FX(W))return _.y_(W);W=a.indexOf(".");W!==-1&&(a=a.substring(0,W));return My()?_.y_(nK(64,BigInt(a))):_.y_(tVe(a))};
aES=function(a){return FX(a)?_.y_(LK(a)):_.y_(ymH(a))};
_.IEe=function(a){return FX(a)?_.y_(_.BT7(a)):_.y_(_.lE8(a))};
_.PAe=function(a){var W=Mi(Number(a));if(FX(W)&&W>=0)return String(W);W=a.indexOf(".");W!==-1&&(a=a.substring(0,W));return $yU(a)};
_.XlS=function(a){var W=Mi(Number(a));if(FX(W)&&W>=0)return _.y_(W);W=a.indexOf(".");W!==-1&&(a=a.substring(0,W));return My()?_.y_((0,_.RE)(64,BigInt(a))):_.y_($yU(a))};
_.vRS=function(a){if(a==null)return a;if(typeof a==="bigint")return qi(a)?a=Number(a):(a=nK(64,a),a=qi(a)?Number(a):String(a)),a;if(_.T0(a))return typeof a==="number"?LK(a):e0(a)};
gR8=function(a,W){W=W===void 0?!1:W;var w=typeof a;if(a==null)return a;if(w==="bigint")return String(nK(64,a));if(_.T0(a))return w==="string"?e0(a):W?ymH(a):LK(a)};
_.oR7=function(a){var W=typeof a;if(a==null)return a;if(W==="bigint")return _.y_(nK(64,a));if(_.T0(a))return W==="string"?EIS(a):aES(a)};
khU=function(a){if(a==null)return a;var W=typeof a;if(W==="bigint")return String(nK(64,a));if(_.T0(a)){if(W==="string")return e0(a);if(W==="number")return LK(a)}};
Uy8=function(a){if(a==null)return a;var W=typeof a;if(W==="bigint")return String((0,_.RE)(64,a));if(_.T0(a)){if(W==="string")return _.PAe(a);if(W==="number")return _.BT7(a)}};
_.Qk=function(a){if(typeof a!=="string")throw Error();return a};
xd=function(a){if(a!=null&&typeof a!=="string")throw Error();return a};
_.b9=function(a){return a==null||typeof a==="string"?a:void 0};
O6e=function(a,W,w,Z){if(a!=null&&a[sI]===G0)return a;if(!Array.isArray(a))return w?Z&2?((a=W[Da])||(a=new W,F$(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),a=W[Da]=a),W=a):W=new W:W=void 0,W;w=a[_.n6]|0;Z=w|Z&32|Z&2;Z!==w&&L6(a,Z);return new W(a)};
SR7=function(a,W,w){a=W?H7F(a):_.hz(a);return a==null?w?0:void 0:a|0};
YRS=function(a){return a};
TTE=function(a){return a};
plH=function(a,W,w,Z,N,B){a=O6e(a,Z,w,B);N&&(a=KJe(a));return a};
rLS=function(a){return[a,this.get(a)]};
i6x=function(){return ALC||(ALC=new df(F$([]),void 0,void 0,void 0,hHU))};
z0=function(a){var W=mn(Vk);return W?a[W]:void 0};
nR7=function(a,W){var w=w===void 0?!1:w;if(mn(cLH)&&mn(Vk)&&void 0===cLH){var Z=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=Z[Vk];if(!N)return;if(N=N.reviveUnknownFields)try{N(Z,W,eHx);return}catch(B){$I(B)}}w&&(a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(w=mn(Vk))&&w in a&&(a=a[w])&&delete a[W])};
LJe=function(a,W){var w=mn(Vk),Z;cl&&w&&((Z=a[w])==null?void 0:Z[W])!=null&&hL(jee,3)};
FJS=function(a,W){W<100||hL(JLS,1)};
QeH=function(a,W,w,Z){var N=Z!==void 0;Z=!!Z;var B=mn(Vk),I;!N&&cl&&B&&(I=a[B])&&H2(I,FJS);B=[];var X=a.length;I=4294967295;var v=!1,U=!!(W&64),O=U?W&128?0:-1:void 0;if(!(W&1)){var S=X&&a[X-1];S!=null&&typeof S==="object"&&S.constructor===Object?(X--,I=X):S=void 0;if(U&&!(W&128)&&!N){v=!0;var T;I=((T=MVx)!=null?T:YRS)(I-O,O,a,S)+O}}W=void 0;for(T=0;T<X;T++){var p=a[T];if(p!=null&&(p=w(p,Z))!=null)if(U&&T>=I){var h=T-O,L=void 0;((L=W)!=null?L:W={})[h]=p}else B[T]=p}if(S)for(var F in S)X=S[F],X!=null&&
(X=w(X,Z))!=null&&(T=+F,p=void 0,U&&!Number.isNaN(T)&&(p=T+O)<I?B[p]=X:(T=void 0,((T=W)!=null?T:W={})[F]=X));W&&(v?B.push(W):B[I]=W);N&&mn(Vk)&&(a=z0(a))&&a instanceof RHm&&(B[Vk]=qRE(a));return B};
xyC=function(a){a[0]=yk(a[0]);a[1]=yk(a[1]);return a};
yk=function(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return qi(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var W=a[_.n6]|0;return a.length===0&&W&1?void 0:QeH(a,W,yk)}if(a!=null&&a[sI]===G0)return b6v(a);if(a instanceof xR){W=a.JSC$6718_value_;if(W==null)a="";else if(typeof W==="string")a=W;else{if(i7C){for(var w="",Z=0,N=W.length-10240;Z<N;)w+=String.fromCharCode.apply(null,W.subarray(Z,Z+=10240));w+=String.fromCharCode.apply(null,
Z?W.subarray(Z):W);W=btoa(w)}else W=_.EI(W);a=a.JSC$6718_value_=W}return a}if(a instanceof df)return a=a.size!==0?Array.from(aP.prototype.entries.call(a),xyC):void 0,a;return}return a};
Z2=function(a,W){if(W){MVx=W==null||W===YRS||W[seD]!==u$E?YRS:W;try{return b6v(a)}finally{MVx=void 0}}return b6v(a)};
b6v=function(a){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return QeH(a,a[_.n6]|0,yk)};
Dym=function(a){switch(typeof a){case "boolean":return CA8||(CA8=[0,void 0,!0]);case "number":return a>0?void 0:a===0?GhH||(GhH=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
$b=function(a,W,w){return a=_.No(a,W[0],W[1],w?1:2)};
_.No=function(a,W,w,Z){Z=Z===void 0?0:Z;if(a==null){var N=32;w?(a=[w],N|=128):a=[];W&&(N=N&-8380417|(W&1023)<<13)}else{if(!Array.isArray(a))throw Error("L");N=a[_.n6]|0;2048&N&&!(2&N)&&fEU();if(N&256)throw Error("N");if(N&64)return Z!==0||N&2048||L6(a,N|2048),a;if(w&&(N|=128,w!==a[0]))throw Error("O");a:{w=a;N|=64;var B=w.length;if(B){var I=B-1,X=w[I];if(X!=null&&typeof X==="object"&&X.constructor===Object){W=N&128?0:-1;I-=W;if(I>=1024)throw Error("Q");for(var v in X)B=+v,B<I&&(w[B+W]=X[v],delete X[v]);
N=N&-8380417|(I&1023)<<13;break a}}if(W){v=Math.max(W,B-(N&128?0:-1));if(v>1024)throw Error("R");N=N&-8380417|(v&1023)<<13}}}N|=64;Z===0&&(N|=2048);L6(a,N);return a};
fEU=function(){hL(dyH,5)};
zHm=function(a,W){if(typeof a!=="object")return a;if(Array.isArray(a)){var w=a[_.n6]|0;return a.length===0&&w&1?void 0:mye(a,w,W)}if(a!=null&&a[sI]===G0)return VVx(a);if(a instanceof df){W=a.arrayState;if(W&2)return a;if(!a.size)return;w=F$(Array.from(aP.prototype.entries.call(a)));if(a.valueCtor)for(a=0;a<w.length;a++){var Z=w[a],N=Z[1];N==null||typeof N!=="object"?N=void 0:N!=null&&N[sI]===G0?N=VVx(N):Array.isArray(N)?N=mye(N,N[_.n6]|0,!!(W&32)):N=void 0;Z[1]=N}return w}if(a instanceof xR)return a};
mye=function(a,W,w){if(W&2)return a;!w||4096&W||16&W?a=B9(a,W,!1,w&&!(W&16)):(jV(a,34),W&4&&Object.freeze(a));return a};
lY=function(a,W,w){a=new a.constructor(W);w&&(a.copyOnWrite=qy);a.noLegacyNull=qy;return a};
VVx=function(a){var W=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=W[_.n6]|0;return Q_(a,w)?a:IP(a,W,w)?lY(a,W):B9(W,w)};
B9=function(a,W,w,Z){Z!=null||(Z=!!(34&W));a=QeH(a,W,zHm,Z);Z=32;w&&(Z|=2);W=W&8380609|Z;L6(a,W);return a};
KJe=function(a){var W=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=W[_.n6]|0;return Q_(a,w)?IP(a,W,w)?lY(a,W,!0):new a.constructor(B9(W,w,!1)):a};
v9=function(a){if(a.copyOnWrite!==qy)return!1;var W=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=B9(W,W[_.n6]|0);jV(W,2048);a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=W;a.copyOnWrite=void 0;a.noLegacyNull=void 0;return!0};
gC=function(a){if(!v9(a)&&Q_(a,a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.n6]|0))throw Error();};
kb=function(a,W){W===void 0&&(W=a[_.n6]|0);W&32&&!(W&4096)&&L6(a,W|4096)};
IP=function(a,W,w){return w&2?!0:w&32&&!(w&4096)?(L6(W,w|2),a.copyOnWrite=qy,!0):!1};
Um=function(a,W,w,Z,N){var B=w+(N?0:-1),I=a.length-1;if(I>=1+(N?0:-1)&&B>=I){var X=a[I];if(X!=null&&typeof X==="object"&&X.constructor===Object)return X[w]=Z,W}if(B<=I)return a[B]=Z,W;if(Z!==void 0){var v;I=((v=W)!=null?v:W=a[_.n6]|0)>>13&1023||536870912;w>=I?Z!=null&&(B={},a[I+(N?0:-1)]=(B[w]=Z,B)):a[B]=Z}return W};
_.Tk=function(a,W,w,Z,N){var B=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=B[_.n6]|0;Z=Q_(a,I)?1:Z;N=!!N||Z===3;Z===2&&v9(a)&&(B=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=B[_.n6]|0);a=H67(B,W);var X=a===Om?7:a[_.n6]|0,v=yLD(X,I);var U=4&v?!1:!0;if(U){4&v&&(a=B2(a),X=0,v=Yb(v,I),I=Um(B,I,W,a));for(var O=0,S=0;O<a.length;O++){var T=w(a[O]);T!=null&&(a[S++]=T)}S<O&&(a.length=S);w=(v|4)&-513;v=w&=-1025;v&=-4097}v!==X&&(L6(a,v),2&v&&Object.freeze(a));return a=ERU(a,v,B,
I,W,Z,U,N)};
ERU=function(a,W,w,Z,N,B,I,X){var v=W;B===1||(B!==4?0:2&W||!(16&W)&&32&Z)?K_(W)||(W|=!a.length||I&&!(4096&W)||32&Z&&!(4096&W||16&W)?2:256,W!==v&&L6(a,W),Object.freeze(a)):(B===2&&K_(W)&&(a=B2(a),v=0,W=Yb(W,Z),Z=Um(w,Z,N,a)),K_(W)||(X||(W|=16),W!==v&&L6(a,W)));2&W||!(4096&W||16&W)||kb(w,Z);return a};
H67=function(a,W,w){a=p_(a,W,w);return Array.isArray(a)?a:Om};
yLD=function(a,W){2&W&&(a|=2);return a|1};
K_=function(a){return!!(2&a)&&!!(4&a)||!!(256&a)};
aae=function(a){return _.C6(a,!0)};
WnS=function(a,W){var w=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=w[_.n6]|0;a:{var N=Z;Z=Q_(a,Z);!Z&&v9(a)&&(w=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=w[_.n6]|0);var B=p_(w,W);a=!1;if(B==null){if(Z){W=i6x();break a}B=[]}else if(B.constructor===df)if(B.arrayState&2&&!Z)B=Array.from(aP.prototype.entries.call(B));else{W=B;break a}else Array.isArray(B)?a=!!((B[_.n6]|0)&2):B=[];if(Z){if(!B.length){W=i6x();break a}a||(a=!0,F$(B))}else if(a){a=!1;Z=B;Z=B2(Z);for(B=0;B<
Z.length;B++){var I=Z[B]=B2(Z[B]);Array.isArray(I[1])&&(I[1]=F$(I[1]))}B=Z}!a&&N&32&&M98(B);Z=new df(B,void 0,SR7,SR7);N=Um(w,N,W,Z);a||kb(w,N);W=Z}return W};
_.AI=function(a,W,w,Z){gC(a);var N=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=N[_.n6]|0;if(w==null)return Um(N,B,W),a;var I=w===Om?7:w[_.n6]|0,X=I,v=K_(I),U=v||Object.isFrozen(w);v||(I=0);U||(w=B2(w),X=0,I=Yb(I,B),U=!1);I|=5;var O;v=(O=FUF(I))!=null?O:0;for(O=0;O<w.length;O++){var S=w[O],T=Z(S,v);Object.is(S,T)||(U&&(w=B2(w),X=0,I=Yb(I,B),U=!1),w[O]=T)}I!==X&&(U&&(w=B2(w),I=Yb(I,B)),L6(w,I));Um(N,B,W,w);return a};
_.hI=function(a,W,w,Z,N){gC(a);var B=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Um(B,B[_.n6]|0,W,(Z==="0"?Number(w)===0:w===Z)?void 0:w,N);return a};
_.c9=function(a,W,w){if(W&2)throw Error();var Z=mJ(W),N=H67(a,w,Z),B=N===Om?7:N[_.n6]|0,I=yLD(B,W);if(2&I||K_(I)||16&I)N=B2(N),B=0,I=Yb(I,W),Um(a,W,w,N,Z);I&=-13;I!==B&&L6(N,I);return N};
w2I=function(a){if(cl){var W;return(W=a[ee])!=null?W:a[ee]=new Map}if(ee in a)return a[ee];W=new Map;Object.defineProperty(a,ee,{value:W});return W};
Nfm=function(a,W,w,Z,N){var B=w2I(a),I=ZKv(B,a,W,w,N);I!==Z&&(I&&(W=Um(a,W,I,void 0,N)),B.set(w,Z));return W};
ZKv=function(a,W,w,Z,N){var B=a.get(Z);if(B!=null)return B;for(var I=B=0;I<Z.length;I++){var X=Z[I];p_(W,X,N)!=null&&(B!==0&&(w=Um(W,w,B,void 0,N)),B=X)}a.set(Z,B);return B};
n_=function(a,W,w,Z,N){var B=!1;Z=p_(a,Z,N,function(I){var X=O6e(I,w,!1,W);B=X!==I&&X!=null;return X});
if(Z!=null)return B&&!Q_(Z)&&kb(a,W),Z};
t0U=function(a,W,w,Z,N,B,I,X){var v=Q_(a,w);B=v?1:B;I=!!I||B===3;v=X&&!v;(B===2||v)&&v9(a)&&(W=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=W[_.n6]|0);a=H67(W,N);var U=a===Om?7:a[_.n6]|0,O=yLD(U,w);if(X=!(4&O)){var S=a,T=w,p=!!(2&O);p&&(T|=2);for(var h=!p,L=!0,F=0,x=0;F<S.length;F++){var G=O6e(S[F],Z,!1,T);if(G instanceof Z){if(!p){var V=Q_(G);h&&(h=!V);L&&(L=V)}S[x++]=G}}x<F&&(S.length=x);O|=4;O=L?O&-4097:O|4096;O=h?O|8:O&-9}O!==U&&(L6(a,O),2&O&&Object.freeze(a));if(v&&!(8&O||!a.length&&
(B===1||(B!==4?0:2&O||!(16&O)&&32&w)))){K_(O)&&(a=B2(a),O=Yb(O,w),w=Um(W,w,N,a));Z=a;v=O;for(U=0;U<Z.length;U++)S=Z[U],O=KJe(S),S!==O&&(Z[U]=O);v|=8;O=v=Z.length?v|4096:v&-4097;L6(a,O)}return a=ERU(a,O,W,w,N,B,X,I)};
$ie=function(a){a==null&&(a=void 0);return a};
Yb=function(a,W){return a=(2&W?a|2:a&-3)&-273};
_.BfI=function(a,W,w,Z,N){gC(a);W=_.Tk(a,W,N,2,!0);var B;N=(B=FUF(W===Om?7:W[_.n6]|0))!=null?B:0;W.push(w(Z,N));return a};
laU=function(a,W,w,Z,N,B,I){gC(a);var X=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=t0U(a,X,X[_.n6]|0,w,W,2,!0);if(B&&I)N!=null||(N=a.length-1),Gh(a,N),a.splice(N,B),a.length||(a[_.n6]&=-4097);else{if(B){if(typeof N!=="number"||N<0||N>a.length)throw Error();}else Z=Z!=null?Z:new w;N!=void 0?a.splice(N,B,Z):a.push(Z);N=w=a===Om?7:a[_.n6]|0;(Z=Q_(Z))?(w&=-9,a.length===1&&(w&=-4097)):w|=4096;w!==N&&L6(a,w);Z||kb(X)}};
IaI=function(a,W){if(typeof a==="string")return new je(eeC(a),W);if(Array.isArray(a))return new je(new Uint8Array(a),W);if(a.constructor===Uint8Array)return new je(a,!1);if(a.constructor===ArrayBuffer)return a=new Uint8Array(a),new je(a,!1);if(a.constructor===xR)return W=JI(a)||new Uint8Array(0),new je(W,!0,a);if(a instanceof Uint8Array)return a=a.constructor===Uint8Array?a:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),new je(a,!1);throw Error();};
FL=function(){var a=function(){throw Error();};
Object.setPrototypeOf(a,a.prototype);return a};
X2E=function(a,W){var w=w===void 0?P99:w;return new Mo(a,W,w)};
k0F=function(a,W,w,Z,N){W=vd8(W,Z);W!=null&&(w=_.gd7(a,w),N(W,a),_.odv(a,w))};
qo=function(a,W,w,Z){var N=Z[a];if(N)return N;N={};N.binaryFields=Z;N.messageMetadata=Dym(Z[0]);var B=Z[1],I=1;B&&B.constructor===Object&&(N.extensions=B,B=Z[++I],typeof B==="function"&&(N.isMessageSet=!0,UiS!=null||(UiS=B),OK7!=null||(OK7=Z[I+1]),B=Z[I+=2]));for(var X={};B&&Array.isArray(B)&&B.length&&typeof B[0]==="number"&&B[0]>0;){for(var v=0;v<B.length;v++)X[B[v]]=B;B=Z[++I]}for(v=1;B!==void 0;){typeof B==="number"&&(v+=B,B=Z[++I]);var U=void 0;if(B instanceof Mo)var O=B;else O=SIv,I--;B=void 0;
if((B=O)==null?0:B.$$isMsg){B=Z[++I];U=Z;var S=I;typeof B==="function"&&(B=B(),U[S]=B);U=B}B=Z[++I];S=v+1;typeof B==="number"&&B<0&&(S-=B,B=Z[++I]);for(;v<S;v++){var T=X[v];U?w(N,v,O,U,T):W(N,v,O,T)}}return Z[a]=N};
TfC=function(a){return Array.isArray(a)?a[0]instanceof Mo?a:[YID,a]:[a,void 0]};
vd8=function(a,W){if(a instanceof _.QH)return a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(a))return $b(a,W,!1)};
Kn7=function(a,W,w,Z){var N=w.$$binaryReaderFn;a[W]=Z?function(B,I,X){return N(B,I,X,Z)}:N};
p2F=function(a,W,w,Z,N){var B=w.$$binaryReaderFn,I,X;a[W]=function(v,U,O){return B(v,U,O,X||(X=qo(bY,Kn7,p2F,Z).messageMetadata),I||(I=rzS(Z)),N)}};
rzS=function(a){var W=a[AzU];if(W!=null)return W;var w=qo(bY,Kn7,p2F,a);W=w.isMessageSet?function(Z,N){return UiS(Z,N,w)}:function(Z,N){for(;hDD(N)&&N.nextWireType_!=4;){var B=N.nextField_,I=w[B];
if(I==null){var X=w.extensions;X&&(X=X[B])&&(X=iK9(X),X!=null&&(I=w[B]=X))}if(I==null||!I(N,Z,B)){X=N;I=X.fieldCursor_;sm(X);if(X.discardUnknownFields)var v=void 0;else{var U=X.decoder_.cursor_-I;X.decoder_.cursor_=I;v=cze(X.decoder_,U)}U=X=I=void 0;var O=Z;v&&((I=(X=(U=O[Vk])!=null?U:O[Vk]=new RHm)[B])!=null?I:X[B]=[]).push(v)}}if(Z=z0(Z))Z.reviveUnknownFields=w.binaryFields[eD8];return!0};
a[AzU]=W;a[eD8]=nde.bind(a);return W};
nde=function(a,W,w,Z){var N=this[bY],B=this[AzU],I=$b(void 0,N.messageMetadata,!1),X=z0(a);if(X){var v=!1,U=N.extensions;if(U){N=function(h,L,F){if(F.length!==0)if(U[L])for(h=_.l(F),L=h.next();!L.done;L=h.next()){L=jE7(L.value);try{v=!0,B(I,L)}finally{L.free()}}else Z==null||Z(a,L,F)};
if(W==null)H2(X,N);else if(X!=null){var O=X[W];O&&N(X,W,O)}if(v){var S=a[_.n6]|0;if(S&2&&S&2048&&(w==null||!w.reviveIntoImmutable))throw Error();var T=mJ(S),p=function(h,L){if(p_(a,h,T)!=null)switch(w==null?void 0:w.resolutionBehavior){case 1:return;default:throw Error();}L!=null&&(S=Um(a,S,h,L,T));delete X[h]};
W==null?qSS(I,I[_.n6]|0,function(h,L){p(h,L)}):p(W,p_(I,W,T))}}}};
iK9=function(a){a=TfC(a);var W=a[0].$$binaryReaderFn;if(a=a[1]){var w=rzS(a),Z=qo(bY,Kn7,p2F,a).messageMetadata;return function(N,B,I){return W(N,B,I,Z,w)}}return W};
uY=function(a,W,w){a[W]=w.$$binaryWriterFn};
Gk=function(a,W,w,Z){var N,B,I=w.$$binaryWriterFn;a[W]=function(X,v,U){return I(X,v,U,B||(B=qo(C_,uY,Gk,Z).messageMetadata),N||(N=LnH(Z)))}};
LnH=function(a){var W=a[JzC];if(!W){var w=qo(C_,uY,Gk,a);W=function(Z,N){return Fnv(Z,N,w)};
a[JzC]=W}return W};
Fnv=function(a,W,w){qSS(a,a[_.n6]|0,function(Z,N){if(N!=null){var B=M0D(w,Z);B?B(W,N,Z):Z<500||hL(RDF,3)}});
(a=z0(a))&&H2(a,function(Z,N,B){D2(W,W.encoder_.end());for(Z=0;Z<B.length;Z++)D2(W,JI(B[Z])||new Uint8Array(0))})};
M0D=function(a,W){var w=a[W];if(w)return w;if(w=a.extensions)if(w=w[W]){w=TfC(w);var Z=w[0].$$binaryWriterFn;if(w=w[1]){var N=LnH(w),B=qo(C_,uY,Gk,w).messageMetadata;w=a.isMessageSet?OK7(B,N):function(I,X,v){return Z(I,X,v,B,N)}}else w=Z;
return a[W]=w}};
_.qIS=function(a,W,w){if(Array.isArray(W)){var Z=W[_.n6]|0;if(Z&4)return W;for(var N=0,B=0;N<W.length;N++){var I=a(W[N]);I!=null&&(W[B++]=I)}B<N&&(W.length=B);w&&(L6(W,(Z|5)&-1537),Z&2&&Object.freeze(W));return W}};
_.f_=function(a,W,w){return new Mo(a,W,w)};
_.QES=function(a,W,w){return new Mo(a,W,w)};
_.dC=function(a,W,w){Um(a,a[_.n6]|0,W,w,mJ(a[_.n6]|0))};
xie=function(a,W,w){W=_.v2(W);W!=null&&(_.mZ(a,w,1),a=a.encoder_,w=VH||(VH=new DataView(new ArrayBuffer(8))),w.setFloat64(0,+W,!0),ER=w.getUint32(0,!0),aE=w.getUint32(4,!0),_.H9(a,ER),_.H9(a,aE))};
_.yH=function(a,W,w){W=khU(W);if(W!=null){switch(typeof W){case "string":bKv(W)}if(W!=null)switch(_.mZ(a,w,0),typeof W){case "number":a=a.encoder_;W2(W);sEv(a,ER,aE);break;case "bigint":w=BigInt.asUintN(64,W);w=new uX8(Number(w&BigInt(4294967295)),Number(w>>BigInt(32)));sEv(a.encoder_,w.JSC$6770_lo,w.JSC$6770_hi);break;default:w=bKv(W),sEv(a.encoder_,w.JSC$6770_lo,w.JSC$6770_hi)}}};
G0F=function(a,W,w){W=_.hz(W);W!=null&&W!=null&&(_.mZ(a,w,0),_.C9e(a.encoder_,W))};
_.fam=function(a,W,w){Die(a,w,Uy8(W))};
_.di9=function(a,W,w){W=_.V9m(W);W!=null&&(_.mZ(a,w,0),a.encoder_.JSC$6772_buffer_.push(W?1:0))};
_.V09=function(a,W,w){W=_.b9(W);W!=null&&miD(a,w,NEE(W))};
zDv=function(a,W,w,Z,N){W=vd8(W,Z);W!=null&&(w=_.gd7(a,w),N(W,a),_.odv(a,w))};
_.yz8=function(a,W,w){W=W==null||typeof W=="string"||W instanceof xR?W:void 0;W!=null&&miD(a,w,IaI(W,!0).buffer)};
_.Edm=function(a,W,w){W=_.hz(W);W!=null&&(W=parseInt(W,10),_.mZ(a,w,0),_.C9e(a.encoder_,W))};
_.Em=function(a,W){return function(w,Z){var N={treatNewDataAsImmutable:!0};Z&&Object.assign(N,Z);w=jE7(w,void 0,void 0,N);try{var B=new a,I=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;rzS(W)(I,w);var X=B}finally{w.free()}return X}};
_.aJ=function(a){return function(W){return a2I(W,a)}};
WZe=function(a){return function(){return a2I(this,a)}};
_.w9F=function(a){return V_(function(W){return W instanceof a&&!Q_(W)})};
_.WP=function(a){return function(W){return Z_C(a,W)}};
BCD=function(a,W){return NC7({child:a,origin:W||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:tev,getPayloadCase:function(w){return w.getPayloadCase()},
createInitMessage:function(w){var Z=new w5,N=new $o7;w=_.ZP(N,1,w);return _.N_(Z,5,tY,w)}})};
$f=function(a){return{valueOf:a}.valueOf()};
I2v=function(){var a=null;if(!l2F)return a;try{var W=function(w){return w};
a=l2F.createPolicy("goog#html",{createHTML:W,createScript:W,createScriptURL:W})}catch(w){}return a};
X99=function(){PY9===void 0&&(PY9=I2v());return PY9};
_.lq=function(a){var W=X99();a=W?W.createScriptURL(a):a;return new BP(a)};
_.IJ=function(a){if(a instanceof BP)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
PP=function(a){return a.toString().indexOf("`")===-1};
vP=function(a){return new _.Xr(vbm,a)};
g5=function(a){return a instanceof _.Xr};
_.oJ=function(a){if(g5(a))return a.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
kf=function(a){return new gb9(function(W){return W.substr(0,a.length+1).toLowerCase()===a+":"})};
U0=function(a,W){W=W===void 0?obe:W;if(g5(a))return a;for(var w=0;w<W.length;++w){var Z=W[w];if(Z instanceof gb9&&Z.isValid(a))return vP(a)}};
_.SB=function(a,W){W=W===void 0?obe:W;return U0(a,W)||O0};
_.Yf=function(a){var W=window;if(typeof MediaSource!=="undefined"&&a instanceof MediaSource||typeof W.ManagedMediaSource!=="undefined"&&a instanceof W.ManagedMediaSource)return vP(URL.createObjectURL(a));W=a.type;W.toLowerCase()==="application/octet-stream"?W=!0:(W=W.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),W=(W==null?void 0:W.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(W[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(W[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(W[1])||/^font\/[\w-]+$/i.test(W[1])));if(!W)throw Error("da");return vP(URL.createObjectURL(a))};
_.Kv=function(a){for(var W=_.TH.apply(1,arguments),w=[a[0]],Z=0;Z<W.length;Z++)w.push(String(W[Z])),w.push(a[Z+1]);return vP(w.join(""))};
_.UoH=function(a){if(!kkS){a:{var W=document.createElement("a");try{W.href=a}catch(w){a=void 0;break a}a=W.protocol;a=a===":"||a===""?"https:":a}return a}try{W=new URL(a)}catch(w){return"https:"}return W.protocol};
_.r5=function(a){a instanceof _.Xr?a=_.oJ(a):a=O_E.test(a)?a:void 0;return a};
hY=function(a,W){W=_.r5(W);W!==void 0&&(a.href=W)};
cP=function(a){var W=X99();a=W?W.createHTML(a):a;return new iq(a)};
eB=function(a){if(a instanceof iq)return a.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.nv=function(a,W){a.src=_.IJ(W).toString()};
Sme=function(a,W){a.setAttribute("sandbox","");for(var w=0;w<W.length;w++)a.sandbox.supports&&!a.sandbox.supports(W[w])||a.sandbox.add(W[w])};
_.YmC=function(a,W,w){a.removeAttribute("srcdoc");switch(W){case 0:if(w instanceof BP)throw new jB("TrustedResourceUrl",0);Sme(a,[]);W=_.r5(w);W!==void 0&&(a.src=W);break;case 1:if(!(w instanceof BP))throw new jB(typeof w,1);Sme(a,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.nv(a,w);break;case 2:if(w instanceof BP)throw new jB("TrustedResourceUrl",2);Sme(a,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
W=_.r5(w);W!==void 0&&(a.src=W);break;default:_.l9(W)}};
_.Lv=function(a,W,w,Z){W=_.r5(W);return W!==void 0?a.open(W,w,Z):null};
_.JY=function(a){a=a===void 0?document:a;var W,w;a=(w=(W=a).querySelector)==null?void 0:w.call(W,"script[nonce]");return a==null?"":a.nonce||a.getAttribute("nonce")||""};
_.M_=function(a){var W=X99();a=W?W.createScript(a):a;return new _.Fr(a)};
RJ=function(a){if(a instanceof _.Fr)return a.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
TCE=function(a){var W=_.JY(a.ownerDocument);W&&a.setAttribute("nonce",W)};
_.q_=function(a,W){a.textContent=RJ(W);TCE(a)};
_.Q$=function(a,W){a.src=_.IJ(W);TCE(a)};
_.xf=function(a,W){if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("da");a.innerHTML=eB(W)};
_.bq=function(a,W,w,Z){if(a.length===0)throw Error("da");a=a.map(function(B){if(B instanceof KZS)B=B.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return B});
var N=w.toLowerCase();if(a.every(function(B){return N.indexOf(B)!==0}))throw Error("ea`"+w);
W.setAttribute(w,Z)};
_.s0=function(a,W,w){if(W instanceof BP)a.href=_.IJ(W).toString(),a.rel=w;else{if(p9e.indexOf(w)===-1)throw Error("fa`"+w);W=_.r5(W);W!==void 0&&(a.href=W,a.rel=w)}};
rID=function(a){return"function"==typeof _.uq&&a instanceof _.uq};
_.AIe=function(a){if(rID(a))return a.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.Cv=function(a,W){W=_.r5(W);W!==void 0&&(a.href=W)};
fv=function(a,W){a&&(W=a.indexOf(W),0<=W&&a.splice(W,1))};
d5=function(a){return typeof a==="function"};
hRF=function(a){return a instanceof m_||a&&"closed"in a&&d5(a.remove)&&d5(a.add)&&d5(a.unsubscribe)};
V$=function(){};
HP=function(a){i_8(function(){throw a;})};
y$=function(a){return a};
E0=function(){return cIF(_.TH.apply(0,arguments))};
cIF=function(a){return a.length===0?y$:a.length===1?a[0]:function(W){return a.reduce(function(w,Z){return Z(w)},W)}};
eRv=function(a){var W;return(W=a!=null?a:void 0)!=null?W:Promise};
nbe=function(a,W){return new an(function(w){var Z=0;return W.schedule(function(){Z===a.length?w.complete():(w.next(a[Z++]),w.closed||this.schedule())})})};
jPC=function(a,W){if(!a)throw Error("ga");return new an(function(w){var Z=new m_;Z.add(W.schedule(function(){var N=a[Symbol.asyncIterator]();Z.add(W.schedule(function(){var B=this;N.next().then(function(I){I.done?w.complete():(w.next(I.value),B.schedule())})}))}));
return Z})};
LZ8=function(a,W,w){W=W.schedule(function(){try{w.call(this)}catch(Z){a.error(Z)}},0);
a.add(W)};
JI8=function(a,W){return new an(function(w){var Z;w.add(W.schedule(function(){Z=a[Wb]();LZ8(w,W,function(){var N=Z.next(),B=N.value;N.done?w.complete():(w.next(B),this.schedule())})}));
return function(){var N;return d5((N=Z)==null?void 0:N.return)&&Z.return()}})};
FZD=function(a,W){return new an(function(w){var Z=new m_;Z.add(W.schedule(function(){var N=a[wb]();Z.add(N.subscribe({next:function(B){Z.add(W.schedule(function(){return w.next(B)}))},
error:function(B){Z.add(W.schedule(function(){return w.error(B)}))},
complete:function(){Z.add(W.schedule(function(){return w.complete()}))}}))}));
return Z})};
Me9=function(a,W){return new an(function(w){return W.schedule(function(){return a.then(function(Z){w.add(W.schedule(function(){w.next(Z);w.add(W.schedule(function(){return w.complete()}))}))},function(Z){w.add(W.schedule(function(){return w.error(Z)}))})})})};
RRE=function(a){return new TypeError("ha`"+(a!==null&&typeof a==="object"?"an invalid object":"'"+a+"'"))};
QPU=function(a,W){if(a!=null){if(d5(a[wb]))return FZD(a,W);if(qmF(a))return nbe(a,W);if(d5(a==null?void 0:a.then))return Me9(a,W);if(Symbol.asyncIterator&&d5(a==null?void 0:a[Symbol.asyncIterator]))return jPC(a,W);if(d5(a==null?void 0:a[Wb]))return JI8(a,W)}throw RRE(a);};
NO=function(a,W){return W?QPU(a,W):ZY(a)};
ZY=function(a){if(a instanceof an)return a;if(a!=null){if(d5(a[wb]))return xoU(a);if(qmF(a))return b_C(a);if(d5(a==null?void 0:a.then))return sPI(a);if(Symbol.asyncIterator&&d5(a==null?void 0:a[Symbol.asyncIterator]))return uLI(a);if(d5(a==null?void 0:a[Wb]))return CYm(a)}throw RRE(a);};
xoU=function(a){return new an(function(W){var w=a[wb]();if(d5(w.subscribe))return w.subscribe(W);throw new TypeError("ia");})};
b_C=function(a){return new an(function(W){for(var w=0;w<a.length&&!W.closed;w++)W.next(a[w]);W.complete()})};
sPI=function(a){return new an(function(W){a.then(function(w){W.closed||(W.next(w),W.complete())},function(w){return W.error(w)}).then(null,HP)})};
CYm=function(a){return new an(function(W){for(var w=a[Wb]();!W.closed;){var Z=w.next(),N=Z.value;Z.done?W.complete():W.next(N)}return function(){return d5(w==null?void 0:w.return)&&w.return()}})};
uLI=function(a){return new an(function(W){GkH(a,W).catch(function(w){return W.error(w)})})};
GkH=function(a,W){var w,Z,N,B,I,X;return _.P(function(v){switch(v.nextAddress){case 1:_.tq(v,2,3);var U=a[Symbol.asyncIterator];B=U!==void 0?U.call(a):new DoI(_.l(a));case 5:return _.g(v,B.next(),8);case 8:Z=v.yieldResult;if(Z.done){v.jumpTo(3);break}I=Z.value;W.next(I);v.jumpTo(5);break;case 3:_.$8(v);_.lb(v,9);if(!Z||Z.done||!(N=B.return)){v.jumpTo(9);break}return _.g(v,N.call(B),9);case 9:_.$8(v,0,0,1);if(w)throw w.error;_.In(v,10,1);break;case 10:_.In(v,4);break;case 2:X=_.Pb(v);w={error:X};v.jumpTo(3);
break;case 4:W.complete(),_.Xd(v)}})};
vb=function(a,W){return W?nbe(a,W):b_C(a)};
f2F=function(a){return d5(a[a.length-1])?a.pop():void 0};
gb=function(a){var W=a[a.length-1];return W&&d5(W.schedule)?a.pop():void 0};
on=function(){var a=_.TH.apply(0,arguments),W=gb(a);return W?nbe(a,W):vb(a)};
k8=function(a){var W=d5(a)?a:function(){return a};
return new an(function(w){return w.error(W())})};
UK=function(a){return function(W){if(d5(W==null?void 0:W.lift))return W.lift(function(w){try{return a(w,this)}catch(Z){this.error(Z)}});
throw new TypeError("ja");}};
Sn=function(){return UK(function(a,W){var w=null;a._refCount++;var Z=new OK(W,void 0,void 0,void 0,function(){if(!a||a._refCount<=0||0<--a._refCount)w=null;else{var N=a._connection,B=w;w=null;!N||B&&N!==B||N.unsubscribe();W.unsubscribe()}});
a.subscribe(Z);Z.closed||(w=a.connect())})};
moC=function(){var a=do8;var W=W===void 0?0:W;return UK(function(w,Z){Z.add(a.schedule(function(){return w.subscribe(Z)},W))})};
T2=function(a){return UK(function(W,w){var Z=0;W.subscribe(new OK(w,function(N){w.next(a.call(void 0,N,Z++))}))})};
zRI=function(a){return T2(function(W){return VeS(W)?a.apply(null,_.K8(W)):a(W)})};
W_C=function(a){if(a.length===1){var W=a[0];if(H_9(W))return{args:W,keys:null};if(W&&typeof W==="object"&&yIE(W)===EbI)return a=aPm(W),{args:a.map(function(w){return W[w]}),
keys:a}}return{args:a,keys:null}};
p8=function(){var a=_.TH.apply(0,arguments),W=gb(a),w=f2F(a);a=W_C(a);var Z=a.args,N=a.keys;if(Z.length===0)return NO([],W);W=new an(wPD(Z,W,N?function(B){for(var I={},X=0;X<B.length;X++)I[N[X]]=B[X];return I}:y$));
return w?W.pipe(zRI(w)):W};
wPD=function(a,W,w){w=w===void 0?y$:w;return function(Z){Zvx(W,function(){for(var N=a.length,B=Array(N),I=N,X=a.map(function(){return!1}),v=!0,U={i$jscomp$260:0};U.i$jscomp$260<N;U={i$jscomp$260:U.i$jscomp$260},U.i$jscomp$260++)Zvx(W,function(O){return function(){NO(a[O.i$jscomp$260],W).subscribe(new rb(Z,function(S){B[O.i$jscomp$260]=S;
v&&(X[O.i$jscomp$260]=!0,v=!X.every(y$));v||Z.next(w(B.slice()))},function(){return--I===0}))}}(U),Z)},Z)}};
Zvx=function(a,W,w){a?w.add(a.schedule(W)):W()};
N5C=function(a,W,w,Z){var N=[],B=0,I=0,X=!1,v=function(U){B++;ZY(w(U,I++)).subscribe(new OK(W,function(O){W.next(O)},void 0,function(){B--;
for(var O={};N.length&&B<Z;O={bufferedValue:void 0})O.bufferedValue=N.shift(),v(O.bufferedValue);!X||N.length||B||W.complete()}))};
a.subscribe(new OK(W,function(U){return B<Z?v(U):N.push(U)},void 0,function(){X=!0;
!X||N.length||B||W.complete()}));
return function(){N=null}};
Aq=function(a,W){var w=w===void 0?Infinity:w;if(d5(W))return Aq(function(Z,N){return T2(function(B,I){return W(Z,B,N,I)})(ZY(a(Z,N)))},w);
typeof W==="number"&&(w=W);return UK(function(Z,N){return N5C(Z,N,a,w)})};
tBE=function(a){a=a===void 0?Infinity:a;return Aq(y$,a)};
$_e=function(){var a=_.TH.apply(0,arguments);return tBE(1)(vb(a,gb(a)))};
hq=function(a){return new an(function(W){ZY(a()).subscribe(W)})};
ib=function(a,W,w){if(d5(w)){var Z=w;w=void 0}if(Z)return ib(a,W,w).pipe(zRI(Z));Z=_.l(d5(a.addEventListener)&&d5(a.removeEventListener)?B5U.map(function(I){return function(X){return a[I](W,X,w)}}):d5(a.addListener)&&d5(a.removeListener)?lPC.map(IPI(a,W)):d5(a.on)&&d5(a.off)?Pqx.map(IPI(a,W)):[]);
var N=Z.next().value,B=Z.next().value;return!N&&qmF(a)?Aq(function(I){return ib(I,W,w)})(vb(a)):new an(function(I){if(!N)throw new TypeError("ka");
var X=function(){var v=_.TH.apply(0,arguments);return I.next(1<v.length?v:v[0])};
N(X);return function(){return B(X)}})};
IPI=function(a,W){return function(w){return function(Z){return a[w](W,Z)}}};
en=function(){var a=_.TH.apply(0,arguments),W=gb(a);var w=typeof a[a.length-1]==="number"?a.pop():Infinity;return a.length?a.length===1?ZY(a[0]):tBE(w)(vb(a,W)):cb};
vf7=function(a){return a.length===1&&XPm(a[0])?a[0]:a};
gfv=function(){var a=vf7(_.TH.apply(0,arguments));return UK(function(W,w){var Z=[W].concat(_.K8(a)),N=function(){if(!w.closed)if(Z.length>0){try{var B=ZY(Z.shift())}catch(X){N();return}var I=new OK(w,void 0,V$,V$);w.add(B.subscribe(I));I.add(N)}else w.complete()};
N()})};
n8=function(a){return UK(function(W,w){var Z=0;W.subscribe(new OK(w,function(N){return a.call(void 0,N,Z++)&&w.next(N)}))})};
kHE=function(){var a=_.TH.apply(0,arguments);a=vf7(a);return a.length===1?ZY(a[0]):new an(ofU(a))};
ofU=function(a){return function(W){for(var w=[],Z={i$jscomp$263:0};w&&!W.closed&&Z.i$jscomp$263<a.length;Z={i$jscomp$263:Z.i$jscomp$263},Z.i$jscomp$263++)w.push(ZY(a[Z.i$jscomp$263]).subscribe(new OK(W,function(N){return function(B){if(w){for(var I=0;I<w.length;I++)I!==N.i$jscomp$263&&w[I].unsubscribe();w=null}W.next(B)}}(Z))))}};
U_e=function(){var a=_.TH.apply(0,arguments),W=f2F(a),w=vf7(a);return w.length?new an(function(Z){var N=w.map(function(){return[]}),B=w.map(function(){return!1});
Z.add(function(){N=B=null});
for(var I={sourceIndex$jscomp$1:0};!Z.closed&&I.sourceIndex$jscomp$1<w.length;I={sourceIndex$jscomp$1:I.sourceIndex$jscomp$1},I.sourceIndex$jscomp$1++)ZY(w[I.sourceIndex$jscomp$1]).subscribe(new OK(Z,function(X){return function(v){N[X.sourceIndex$jscomp$1].push(v);N.every(function(U){return U.length})&&(v=N.map(function(U){return U.shift()}),Z.next(W?W.apply(null,_.K8(v)):v),N.some(function(U,O){return!U.length&&B[O]})&&Z.complete())}}(I),void 0,function(X){return function(){B[X.sourceIndex$jscomp$1]=
!0;
!N[X.sourceIndex$jscomp$1].length&&Z.complete()}}(I)));
return function(){N=B=null}}):cb};
OvF=function(a){var W,w,Z;return!!a&&typeof a.active==="boolean"&&typeof((W=a.clock)==null?void 0:W.now)==="function"&&((w=a.clock)==null?void 0:w.timeline)!==void 0&&!((Z=a.lastMeasurement)==null||!Z.timestamp)&&typeof a.equivalentTo==="function"&&typeof a.extrapolateToNow==="function"&&typeof a.extrapolateToTime==="function"&&typeof a.map==="function"&&typeof a.joinWith==="function"};
S0S=function(a){function W(w){return typeof w==="boolean"||typeof w==="string"||typeof w==="number"||w===void 0||w===null}
return W(a)?!0:Array.isArray(a)?a.every(W):typeof a==="object"?Object.keys(a).every(function(w){return typeof w==="string"})&&Object.values(a).every(function(w){return Array.isArray(w)?w.every(W):W(w)}):!1};
Y09=function(a){if(S0S(a))return a;if(OvF(a))return{lastMeasurement:{value:Y09(a.lastMeasurement.value),timestamp:jn(a.lastMeasurement.timestamp,new L8(0,a.lastMeasurement.timestamp.timeline))},active:a.active};try{return JSON.parse(JSON.stringify(a))}catch(W){}return String(a)};
Jq=function(a,W){return function(w){return new an(function(Z){return w.subscribe(function(N){a.timeExecution(W,function(){Z.next(N)})()},function(N){a.timeExecution(W,function(){Z.error(N)})()},function(){a.timeExecution(W,function(){Z.complete()})()})})}};
T5F=function(a,W){var w=!1;return new an(function(Z){var N=a.setTimeout(function(){w=!0;Z.next(!0);Z.complete()},W);
return function(){w||a.clearTimeout(N)}})};
K_I=function(a){a=a.global;if(a.fetchLater)return a.fetchLater.bind(a)};
Fd=function(a){return UK(function(W,w){var Z=null,N=!1,B;Z=W.subscribe(new OK(w,void 0,function(I){B=ZY(a(I,Fd(a)(W)));Z?(Z.unsubscribe(),Z=null,B.subscribe(w)):N=!0}));
N&&(Z.unsubscribe(),Z=null,B.subscribe(w))})};
pPF=function(a,W,w){return function(Z,N){var B=w,I=W,X=0;Z.subscribe(new OK(N,function(v){var U=X++;I=B?a(I,v,U):(B=!0,v);N.next(I)},void 0,void 0))}};
rYE=function(a){a=a===void 0?null:a;return UK(function(W,w){var Z=!1;W.subscribe(new OK(w,function(N){Z=!0;w.next(N)},void 0,function(){Z||w.next(a);
w.complete()}))})};
MO=function(){return UK(function(a,W){a.subscribe(new OK(W,V$))})};
Rn=function(a){return UK(function(W,w){W.subscribe(new OK(w,function(){return w.next(a)}))})};
qO=function(a){return a<=0?function(){return cb}:UK(function(W,w){var Z=0;
W.subscribe(new OK(w,function(N){++Z<=a&&(w.next(N),a<=Z&&w.complete())}))})};
Qa=function(a){var W=W===void 0?y$:W;var w;a=(w=a)!=null?w:AYe;return UK(function(Z,N){var B,I=!0;Z.subscribe(new OK(N,function(X){var v=W(X);if(I||!a(B,v))I=!1,B=v,N.next(X)}))})};
AYe=function(a,W){return a===W};
ivD=function(a){a=a===void 0?hwS:a;return UK(function(W,w){var Z=!1;W.subscribe(new OK(w,function(N){Z=!0;w.next(N)},void 0,function(){return Z?w.complete():w.error(a())}))})};
hwS=function(){return new cYH};
x8=function(){var a=_.TH.apply(0,arguments);return function(W){return $_e(W,on.apply(null,_.K8(a)))}};
ew7=function(a){return UK(function(W,w){var Z=0;W.subscribe(new OK(w,function(N){a.call(void 0,N,Z++,W)||(w.next(!1),w.complete())},void 0,function(){w.next(!0);
w.complete()}))})};
nfe=function(){return UK(function(a,W){var w=[];a.subscribe(new OK(W,function(Z){w.push(Z);1<w.length&&w.shift()},void 0,function(){for(var Z=_.l(w),N=Z.next();!N.done;N=Z.next())W.next(N.value);
W.complete()},function(){w=null}))})};
jJv=function(a,W){var w=arguments.length>=2;return function(Z){return Z.pipe(a?n8(function(N,B){return a(N,B,Z)}):y$,nfe(),w?rYE(W):ivD(function(){return new cYH}))}};
sK=function(a){var W=d5(a)?a:function(){return a};
return d5()?UK(function(w,Z){var N=W();(void 0)(N).subscribe(Z).add(w.subscribe(N))}):function(w){var Z=new bb(w,W);
d5(w==null?void 0:w.lift)&&(Z.lift=w.lift);Z.source=w;Z.subjectFactory=W;return Z}};
C8=function(a){var W=new ub(a,void 0,void 0);return function(w){return sK(function(){return W})(w)}};
G2=function(a,W){return UK(pPF(a,W,arguments.length>=2))};
DY=function(){var a=_.TH.apply(0,arguments),W=gb(a);return UK(function(w,Z){(W?$_e(a,w,W):$_e(a,w)).subscribe(Z)})};
f8=function(a){return UK(function(W,w){var Z=null,N=0,B=!1;W.subscribe(new OK(w,function(I){var X;(X=Z)==null||X.unsubscribe();X=N++;ZY(a(I,X)).subscribe(Z=new OK(w,function(v){return w.next(v)},void 0,function(){Z=null;
B&&!Z&&w.complete()}))},void 0,function(){(B=!0,!Z)&&w.complete()}))})};
db=function(a,W){W=W===void 0?!1:W;return UK(function(w,Z){var N=0;w.subscribe(new OK(Z,function(B){var I=a(B,N++);(I||W)&&Z.next(B);!I&&Z.complete()}))})};
Va=function(a,W,w){var Z=d5(a)||W||w?{next:a,error:W,complete:w}:a;return Z?UK(function(N,B){N.subscribe(new OK(B,function(I){var X;(X=Z.next)==null||X.call(Z,I);B.next(I)},function(I){var X;
(X=Z.error)==null||X.call(Z,I);B.error(I)},function(){var I;
(I=Z.complete)==null||I.call(Z);B.complete()}))}):y$};
L_H=function(){var a=_.TH.apply(0,arguments),W=f2F(a);return UK(function(w,Z){for(var N=a.length,B=Array(N),I=a.map(function(){return!1}),X=!1,v={i$jscomp$273:0};v.i$jscomp$273<N;v={i$jscomp$273:v.i$jscomp$273},v.i$jscomp$273++)ZY(a[v.i$jscomp$273]).subscribe(new OK(Z,function(U){return function(O){B[U.i$jscomp$273]=O;
X||I[U.i$jscomp$273]||(I[U.i$jscomp$273]=!0,(X=I.every(y$))&&(I=null))}}(v),void 0,V$));
w.subscribe(new OK(Z,function(U){X&&(U=[U].concat(_.K8(B)),Z.next(W?W.apply(null,_.K8(U)):U))}))})};
JY8=function(a){var W=[],w=0,Z;for(Z in a)W[w++]=Z;return W};
F_9=function(a,W){for(var w in a)if(a[w]==W)return!0;return!1};
MBS=function(a,W,w){for(var Z in a)if(W.call(w,a[Z],Z,a))return Z};
RwH=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 W=Array.isArray(a)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),w;for(w in a)W[w]=RwH(a[w]);return W};
q08=function(a){var W=arguments.length;if(W==1&&Array.isArray(arguments[0]))return q08.apply(null,arguments[0]);if(W%2)throw Error("oa");for(var w={},Z=0;Z<W;Z+=2)w[arguments[Z]]=arguments[Z+1];return w};
QJS=function(a){var W=arguments.length;if(W==1&&Array.isArray(arguments[0]))return QJS.apply(null,arguments[0]);for(var w={},Z=0;Z<W;Z++)w[arguments[Z]]=!0;return w};
_.z2=function(a){return new KZS(a[0].toLowerCase())};
x_C=function(a){try{return new URL(a,window.document.baseURI)}catch(W){return new URL("about:invalid")}};
bvF=function(a,W){var w=W.createRange();w.selectNode(W.body);a=cP(a);return w.createContextualFragment(eB(a))};
sJx=function(a){a=a.nodeName;return typeof a==="string"?a:"FORM"};
urF=function(a){a=a.nodeType;return a===1||typeof a!=="number"};
Hb=function(a,W,w){a.setAttribute(W,w)};
Cqx=function(a){return a.parts.map(function(W){var w=W.descriptor;return""+W.url+(w?" "+w:"")}).join(" , ")};
_.ya=function(a){var W=_.TH.apply(1,arguments);if(W.length===0)return _.lq(a[0]);for(var w=a[0],Z=0;Z<W.length;Z++)w+=encodeURIComponent(W[Z])+a[Z+1];return _.lq(w)};
_.EK=function(a,W){a=_.IJ(a).toString();var w=a.split(/[?#]/),Z=/[?]/.test(a)?"?"+w[1]:"";return GH7(w[0],Z,/[#]/.test(a)?"#"+(Z?w[2]:w[1]):"",W)};
GH7=function(a,W,w,Z){function N(I,X){I!=null&&(Array.isArray(I)?I.forEach(function(v){return N(v,X)}):(W+=B+encodeURIComponent(X)+"="+encodeURIComponent(I),B="&"))}
var B=W.length?"&":"?";Z.constructor===Object&&(Z=Object.entries(Z));Array.isArray(Z)?Z.forEach(function(I){return N(I[1],I[0])}):Z.forEach(N);
return _.lq(a+W+w)};
av=function(a,W,w,Z){this.top=a;this.right=W;this.bottom=w;this.left=Z};
D_S=function(a){a=a.global;if(a.PendingGetBeacon)return a.PendingGetBeacon};
w3=function(a){return function(W){return W.pipe(fPe(a,sK(new Wh)))}};
ZZ=function(a){return function(W){return W.pipe(fPe(a,C8(1)))}};
fPe=function(a,W){function w(Z){return new an(function(N){return Z.subscribe(function(B){Nq(a,function(){return void N.next(B)},3)},function(B){Nq(a,function(){return void N.error(B)},3)},function(){Nq(a,function(){return void N.complete()},3)})})}
return E0(w,moC(),W,Sn(),w)};
VBF=function(a){var W=d_e(a);return W===null?new tv(null):W.pipe(T2(function(w){w=w.serialize();if(m_m)w=_.NH.btoa(w);else{for(var Z=[],N=0,B=0;B<w.length;B++){var I=w.charCodeAt(B);I>255&&(Z[N++]=I&255,I>>=8);Z[N++]=I}w=_.EI(Z)}return w}),qO(1),ZZ(a.queue))};
zwe=function(a){var W=W===void 0?{}:W;if(typeof Event==="function")return new Event(a,W);if(typeof document!=="undefined"){var w=document.createEvent("CustomEvent");w.initCustomEvent(a,W.bubbles||!1,W.cancelable||!1,W.detail);return w}throw Error();};
HvD=function(a){return typeof a==="string"?document.getElementById(a):a};
EfS=function(a){var W=!1;W=W===void 0?!1:W;if(a.tagName==="IMG"){if(a.complete&&(!a.naturalWidth||!a.naturalHeight))return!0;var w;if(W&&((w=a.style)==null?void 0:w.display)==="none")return!0}var Z,N;return yYD.test((Z=a.getAttribute("width"))!=null?Z:"")&&yYD.test((N=a.getAttribute("height"))!=null?N:"")};
aYe=function(a,W){if(a.tagName==="IMG")return a.naturalWidth&&a.naturalHeight?!0:!1;try{if(a.readyState)var w=a.readyState;else{var Z,N;w=(Z=a.contentWindow)==null?void 0:(N=Z.document)==null?void 0:N.readyState}return w==="complete"}catch(B){return W===void 0?!1:W}};
Wiv=function(a){a||(a=function(W,w,Z){W.addEventListener(w,Z)});
return a};
tnE=function(a,W){var w=wbU();w=w===void 0?new Z8D:w;if(a=HvD(a)){var Z=Wiv(Z);for(var N=!1,B=function(F){N||(N=!0,W(F))},I,X=2,v=0;v<Nb8.length;++v)if(Nb8[v]===a.tagName){X=3;
I=[a];break}I||(I=a.querySelectorAll(Nb8.join(",")));var U=0,O=0,S=!0,T=a=!1;v={};for(var p=0;p<I.length;v={isImg:void 0},p++){var h=I[p];if(!EfS(h))if(v.isImg=h.tagName==="IMG",aYe(h,w.crossDomainLoadedDefault))a=!0,v.isImg&&(S=!0);else{U++;var L=function(F){return function(x){U--;!U&&S&&B(X);F.isImg&&(x=x&&x.type==="error",O--,x||(S=!0),!O&&T&&S&&B(X))}}(v);
Z(h,"load",L);v.isImg&&(O++,Z(h,"error",L))}}O===0&&(S=!0);I=null;I=_.NH.document.readyState==="complete";if(U===0&&!a&&I)X=5;else if(U||!a){Z(_.NH,"load",function(){!w.pendingImagesBlockLoad||!O&&S?B(4):T=!0});
return}B(X)}};
$Ov=function(a,W,w){if(a)for(var Z=0;a!=null&&Z<500&&!w(a);++Z)a=W(a)};
Bbx=function(a,W){$Ov(a,function(w){try{return w===w.parent?null:w.parent}catch(Z){}return null},W)};
lYx=function(a,W){if(a.tagName=="IFRAME")W(a);else{a=a.querySelectorAll("IFRAME");for(var w=0;w<a.length&&!W(a[w]);++w);}};
IYm=function(a){return(a=a.ownerDocument)&&(a.parentWindow||a.defaultView)||null};
Pb9=function(a,W,w){try{var Z=JSON.parse(w.data)}catch(I){}if(typeof Z==="object"&&Z&&Z.type==="creativeLoad"){var N=IYm(a);if(w.source&&N){var B;Bbx(w.source,function(I){try{if(I.parent===N)return B=I,!0}catch(X){}});
B&&lYx(a,function(I){if(I.contentWindow===B)return W(Z),!0})}}};
Xbx=function(a){return typeof a==="string"?document.getElementById(a):a};
k2S=function(){var a={};return a[0]=_.ya(v8v,"current"),a[1]=_.ya(g89),a[2]=_.ya(o8e),a};
$g=function(a,W){return a.left===W.left&&a.top===W.top&&a.width===W.width&&a.height===W.height};
UOm=function(a,W){return{left:Math.max(a.left,W.left),top:Math.max(a.top,W.top),width:Math.max(0,Math.min(a.left+a.width,W.left+W.width)-Math.max(a.left,W.left)),height:Math.max(0,Math.min(a.top+a.height,W.top+W.height)-Math.max(a.top,W.top))}};
O8e=function(a,W){return{left:Math.round(a.left+W.x),top:Math.round(a.top+W.y),width:a.width,height:a.height}};
SKC=function(a,W,w){if(a&&W!==null&&W!=W.top){if(!W.top)return new _.Bh(-12245933,-12245933);W=W.top}try{return(w===void 0?0:w)?(new _.Bh(W.innerWidth,W.innerHeight)).round():_.lf(W).round()}catch(Z){return new _.Bh(-12245933,-12245933)}};
YKF=function(a,W,w){try{if(a){if(!W.top)return new av(-12245933,-12245933,-12245933,-12245933);W=W.top}var Z=SKC(a,W,w),N=Z.height,B=Z.width;if(B===-12245933)return new av(B,B,B,B);var I=Iv(Ph(W.document)),X=I.x,v=I.y;return new av(v,X+B,v+N,X)}catch(U){return new av(-12245933,-12245933,-12245933,-12245933)}};
TbH=function(a){var W;return(W=a.google_tag_data)!=null?W:a.google_tag_data={}};
KiF=function(a){var W,w;return typeof((W=a.navigator)==null?void 0:(w=W.userAgentData)==null?void 0:w.getHighEntropyValues)==="function"};
rqv=function(a){if(!KiF(a))return null;var W=TbH(a);if(W.uach_promise)return W.uach_promise;a=a.navigator.userAgentData.getHighEntropyValues(pbe).then(function(w){W.uach!=null||(W.uach=w);return w});
return W.uach_promise=a};
Rse=function(a){var W;return AqD(hsS(i89(cqe(esF(n8I(jnE(Li9(Jqv(new FiF,a.architecture||""),a.bitness||""),a.mobile||!1),a.model||""),a.platform||""),a.platformVersion||""),a.uaFullVersion||""),((W=a.fullVersionList)==null?void 0:W.map(function(w){var Z=new Mnx;Z=_.Xu(Z,1,w.brand);return _.Xu(Z,2,w.version)}))||[]),a.wow64||!1)};
qKS=function(a){var W,w;return(w=(W=rqv(a))==null?void 0:W.then(function(Z){return Rse(Z)}))!=null?w:null};
Qnx=function(a,W){return new an(function(w){var Z=!1,N=Array(W.length);N.fill(void 0);var B=new Set,I=new Set,X=function(S,T){a.running?(N[T]=S,B.add(T),Z||(Z=!0,Nq(a,function(){Z=!1;w.next(_.Wl(N))},1))):w.error(new vh(T))},v=function(S,T){I.add(T);
B.add(T);Nq(a,function(){w.error(S)},1)},U=function(S){I.add(S);
Nq(a,function(){I.size===W.length&&w.complete()},1)},O=W.map(function(S,T){return S.subscribe(function(p){return void X(p,T)},function(p){return void v(p,T)},function(){return void U(T)})});
return function(){O.forEach(function(S){return void S.unsubscribe()})}})};
b88=function(a,W,w){function Z(){if(W.debugChannel){var F=W.debugChannel,x=F.next;var G={creativeId:W.debugNames.getName(w),requiredSignals:N,signals:Object.assign({},B),hasPrematurelyCompleted:I,errorMessage:X,erroredSignalKey:v};G={specMajor:2,specMinor:0,specPatch:0,timestamp:jn(W.timeProvider.now(),new L8(0,W.timeProvider.timeline)),instanceId:W.debugNames.getName(W.symbol),creativeState:G};x.call(F,G)}}
for(var N=Object.keys(a),B={},I=!1,X=null,v=null,U={},O=new Set,S=[],T=[],p=_.l(N),h=p.next(),L={};!h.done;L={key$jscomp$374:void 0},h=p.next())L.key$jscomp$374=h.value,h=a[L.key$jscomp$374],h instanceof tv?(U[L.key$jscomp$374]=h.value,O.add(L.key$jscomp$374),W.debugChannel&&(B[String(L.key$jscomp$374)]=Y09(h.value))):(h=h.pipe(Qa(function(F,x){return OvF(F)||OvF(x)?!1:F===x}),T2(function(F){return function(x){W.debugChannel&&(B[String(F.key$jscomp$374)]=Y09(x),Z());
var G={};return G[F.key$jscomp$374]=x,G}}(L)),Fd(function(F){return function(x){if(x instanceof vh)throw new xOm(String(F.key$jscomp$374));
throw x;}}(L)),Va(function(F){return function(){O.add(F.key$jscomp$374)}}(L),function(F){return function(x){v=String(F.key$jscomp$374);
X=String(x);Z()}}(L),function(F){return function(){O.has(F.key$jscomp$374)||(I=!0,Z())}}(L))),T.push(L.key$jscomp$374),S.push(h));
(a=Object.keys(B).length>0)&&Z();p=Qnx(W.queue,S).pipe(Fd(function(F){if(F instanceof vh)throw new g3(String(T[F.inputObservableIndex]));throw F;}),T2(function(F){return Object.freeze(Object.assign.apply(Object,[{},
U].concat(_.K8(F))))}));
return(S=S.length>0)&&a?en(on(Object.freeze(U)),p):S?p:on(Object.freeze(U))};
snC=function(a,W,w,Z,N){return a.performanceMonitor.timeExecution.bind(a.performanceMonitor)(733,function(){var B={};try{return W.pipe(Fd(function(I){Z(Object.assign({},B,{error:I}));return cb}),Aq(function(I){try{var X=w(a,I)}catch(U){return Z(Object.assign({},B,{error:U instanceof Error?U:String(U)})),cb}var v={};
return b88(X,a,I.symbol).pipe(Va(function(U){v=U}),C8(1),Sn()).pipe(N,Fd(function(U){Z(Object.assign({},v,{error:U}));
return cb}),x8(void 0),T2(function(){return!0}))})).pipe(G2(function(I){return I+1},0),Fd(function(I){Z(Object.assign({},B,{error:I}));
return cb}))}catch(I){return Z(Object.assign({},B,{error:I})),cb}})()};
ov=function(a){var W=new Map;if(typeof a!=="object"||a===null)return W;Object.values(a).forEach(function(w){w&&typeof w.extrapolateToNow==="function"&&(W.has(w.clock.timeline)||W.set(w.clock.timeline,w.clock.now()))});
return W};
udv=function(a,W){return typeof a==="string"?encodeURIComponent(a):typeof a==="number"?String(a):Array.isArray(a)?a.map(function(w){return udv(w,W)}).join(","):a instanceof L8?a.toString():a&&typeof a.extrapolateToNow==="function"?udv(a.extrapolateUsingTimestampMap(W).value,W):a===!0?"1":a===!1?"0":a===void 0||a===null?null:a instanceof Cb7?G2D(a):[a.top,
a.left,a.top+a.height,a.left+a.width].join()};
kg=function(a,W){a=Object.entries(a).map(function(w){var Z=_.l(w);w=Z.next().value;Z=Z.next().value;Z=udv(Z,W);return Z===null?"":w+"="+Z}).filter(function(w){return w!==""});
return a.length?a.join("&"):""};
dOF=function(a,W){var w=DOH,Z=fYx;W=W===void 0?.01:W;return function(N){W>0&&Math.random()<=W&&(a.global.HTMLFencedFrameElement&&a.global.fence&&typeof a.global.fence.reportEvent==="function"&&a.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),N=Object.assign({},N,{errorMessage:N.error instanceof Error&&N.error.message?N.error.message:String(N.error),errorStack:N.error instanceof Error&&N.error.stack?String(N.error.stack):null,errorName:N.error instanceof
Error&&N.error.name?String(N.error.name):null,errorContext:String(a.performanceMonitor.timedFunctionContext),errorEscapedQueryId:N.escapedQueryId}),w(Object.assign({},N,{payloadMapper:function(){return function(B){try{return Z(Object.assign({},B))}catch(I){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),ov(N)).forEach(function(B){a.beaconFactory.makeBeacon(B).sendNow()}))}};
mO7=function(){var a=_.TH.apply(0,arguments);return function(W){var w=W.pipe(C8(1),Sn());W=a.map(function(Z){return w.pipe(Z,x8(!0))});
return p8(W).pipe(qO(1),MO())}};
VnH=function(){var a=_.TH.apply(0,arguments);return function(W){var w=W.pipe(C8(1),Sn());W=a.map(function(Z){return w.pipe(Z,x8(!0))});
return en.apply(null,_.K8(W)).pipe(qO(1),MO())}};
zsD=function(a,W){return function(w){var Z=w.pipe(C8(1),Sn());w=Z.pipe(a,x8(!0));Z=Z.pipe(E0(W,C8(),Sn()),x8(!0));w=p8([w,Z]);return kHE(w,Z).pipe(qO(1),MO())}};
H8E=function(a,W,w){w(!0)};
yqD=function(a,W){return E0(f8(function(w){var Z=a(w),N=W(w),B={};return Z&&N&&B?new an(function(I){N(Z,B,function(X){I.next(Object.assign({},w,{canEmit:X}));I.complete()});
return function(){}}):OT}),n8(function(w){return w.canEmit}))};
E88=function(a){var W={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(w){return w.pipe(f8(function(Z){return new an(function(N){function B(){X.disconnect();v.unsubscribe()}
var I=a.MutationObserver;if(I&&Z.ref!==void 0){var X=new I(function(U){N.next(U)});
X.observe(Z.ref,W);var v=Z.JSC$7267_released.subscribe(B);return B}})}))}};
aZe=function(a){if(a.measurementDeferralState===3)return null;if(a.timeOnScreenReason!==void 0){var W=a.creativeFound===!1?"n":null;if(W!==null)return W}return a.geometricMeasurementErrors instanceof S3?"msf":a.contextValidationErrors instanceof Yg?"c":a.contextVisibilityKnown===!1?"pv":a.geometricMeasurementErrors||a.contextValidationErrors?"x":null};
KY=function(a,W){return a.replace(Wk7,function(w,Z){try{var N=_.T5.get(W,Z);if(N==null||N.toString()==null)return w;N=N.toString();if(N==""||!_.vv(N==null?"":String(N)))return encodeURIComponent(N).replace(/%2C/g,",")}catch(B){}return w})};
wh9=function(a,W){var w=Object.assign({},a),Z=a.userAgentClientHints;w=(delete w.userAgentClientHints,w);w=a.payloadMapper(w);var N=kg(w,W);return _.pY(a.urlPrefixes,function(B){var I="";typeof Z==="string"&&(I="&"+kg({uach:Z},W));var X={};return KY(B,(X.VIEWABILITY=N,X))+I})};
DOH=function(a,W){var w=a.payloadMapper(a),Z=kg(w,W);return Z?_.pY(a.urlPrefixes,function(N){N=N.indexOf("?")>=0?N:N+"?";N="?&".indexOf(N.slice(-1))>=0?N:N+"&";return N+Z}):a.urlPrefixes};
ZYC=function(){return E0(n8(function(a){return a!==void 0}),T2(function(a){return a}))};
N3C=function(a){return E0(T2(function(){return!0}),DY(!1),ZZ(a))};
t3C=function(a){return a.length<=0?cb:p8(a.map(function(W){var w=0;return W.pipe(T2(function(Z){return{index:w++,value:Z}}))})).pipe(n8(function(W){return W.every(function(w){return w.index===W[0].index})}),T2(function(W){return W.map(function(w){return w.value})}))};
$q9=function(a,W){a.currentState&&(a.previousState=a.currentState);a.currentState=W;a.previousState&&a.previousState.value?(W=Math.max(0,jn(W.timestamp,a.previousState.timestamp)),a.totalTime+=W,a.consecutiveTime+=W):a.consecutiveTime=0;return a};
B3e=function(){return E0(G2($q9,{totalTime:0,consecutiveTime:0}),T2(function(a){return a.totalTime}))};
lZm=function(){return E0(G2($q9,{totalTime:0,consecutiveTime:0}),T2(function(a){return a.consecutiveTime}))};
IZ8=function(a,W){return function(w){return t3C(W.map(function(Z){return w.pipe(a(Z))}))}};
PfI=function(){var a;return E0(Va(function(W){return void(a=W.timestamp)}),lZm(),T2(function(W){return{timestamp:a,
value:Math.round(W)}}))};
XhU=function(a,W){return $g(a.topWindowViewportExternalGeometry,W.topWindowViewportExternalGeometry)&&$g(a.elementGeometry,W.elementGeometry)&&$g(a.exposedViewportLocalGeometry,W.exposedViewportLocalGeometry)&&$g(a.intersectionGeometry,W.intersectionGeometry)&&a.elementGeometrySourceName===W.elementGeometrySourceName&&a.measurementRequests===W.measurementRequests&&a.viewportGeometrySourceName===W.viewportGeometrySourceName&&a.viewportLocalAppOffset.x===W.viewportLocalAppOffset.x&&a.viewportLocalAppOffset.y===
W.viewportLocalAppOffset.y};
ogI=function(a,W){return function(w){return function(Z){var N=Z.pipe(sK(new Wh),Sn());Z=w.element.pipe(Qa());N=N.pipe(T2(function(B){return B.value}));
return p8([Z,N,W]).pipe(T2(function(B){var I=_.l(B);B=I.next().value;var X=I.next().value;I=I.next().value;if(B.ref===void 0)var v={top:0,left:0,width:0,height:0};else{v=B.ref.getBoundingClientRect();var U=B.ref,O=a.global,S=new _.r3(0,0),T=Av(_.hv(U));if(e3(T,"parent")){do{if(T==O)var p=_.nY(U);else p=vgS(U),p=new _.r3(p.left,p.top);S.x+=p.x;S.y+=p.y}while(T&&T!=O&&T!=T.parent&&(U=T.frameElement)&&(T=T.parent))}v={top:S.y,left:S.x,width:v.width,height:v.height}}v=O8e(v,X.viewportLocalAppOffset);
O=UOm(v,X.exposedViewportLocalGeometry);S=a.timeProvider.now();T=Object;U=T.assign;if(I!==2||a.inCrossDomainIframe||O.width<=0||O.height<=0)var h=!1;else try{var L=a.document.elementFromPoint(O.left+O.width/2,O.top+O.height/2);h=L?!ggD(L,B):!1}catch(F){h=!1}return{timestamp:S,value:U.call(T,{},X,{elementGeometrySourceName:"geo",intersectionGeometry:h?j3.intersectionGeometry:O,elementGeometry:v})}}),w3(a.queue))}}};
ggD=function(a,W,w){w=w===void 0?0:w;return a.ref===void 0||W.ref===void 0?!1:a.ref===W.ref||_.LY(W.ref,function(Z){return Z===a.ref})?!0:W.ref.ownerDocument&&W.ref.ownerDocument.defaultView&&W.ref.ownerDocument.defaultView===W.ref.ownerDocument.defaultView.top?!1:w<10&&W.ref.ownerDocument&&W.ref.ownerDocument.defaultView&&W.ref.ownerDocument.defaultView.frameElement?ggD(a,new Jv(W.ref.ownerDocument.defaultView.frameElement),w+1):!0};
OYF=function(a){return function(W){return W.pipe(a.ResizeObserver?k5v(a):Uqm(a),C8(1),Sn())}};
k5v=function(a){return function(W){return W.pipe(f8(function(w){var Z=a.ResizeObserver;if(!Z||w.ref===void 0)return on(j3.elementGeometry);var N=(new an(function(B){function I(){w.ref!==void 0&&X.unobserve(w.ref);X.disconnect();v.unsubscribe()}
if(w.ref===void 0)return B.complete(),function(){};
var X=new Z(function(U){U.forEach(function(O){B.next(O)})});
X.observe(w.ref);var v=w.JSC$7267_released.subscribe(I);return I})).pipe(Jq(a.performanceMonitor,736),T2(function(B){return B.contentRect}));
return en(on(w.ref.getBoundingClientRect()),N)}),Qa($g))}};
Uqm=function(a){return function(W){var w=W.pipe(E88(a)),Z=a.onResize;w=en(W.pipe(T2(function(){return zwe("resize")})),w,Z);
return p8(W,w).pipe(Jq(a.performanceMonitor,737),T2(function(N){N=_.l(N).next().value;return N.ref===void 0?void 0:N.ref.getBoundingClientRect()}),ZYC(),Qa($g))}};
T3x=function(a,W){var w=STE(a,W).pipe(C8(1),Sn());return function(Z){return function(N){N=N.pipe(f8(function(B){return B.element}),Qa());
return p8([w,N]).pipe(f8(function(B){var I=_.l(B);B=I.next().value;I=I.next().value;return YT9(a,B.intersectionObserver,OYF(a),B.observations,Z,B.flushRecords,I)}),w3(a.queue))}}};
Kkm=function(a){return T2(function(W){return W.value.viewportGeometrySourceName!=="nio"?W:Object.assign({},W,{value:Object.assign({},W.value,{exposedViewportLocalGeometry:Fu(a,!0),topWindowViewportExternalGeometry:Fu(a,!0)})})})};
ph7=function(a,W){return on(W).pipe(a,T2(function(){return W}))};
STE=function(a,W){return a.timeProvider.timeline!==rvx?k8(new S3(2)):a.MutationObserver?typeof IntersectionObserver==="undefined"?k8(new S3(0)):(new an(function(w){var Z=new Wh,N=new Mq(Z.next.bind(Z),{threshold:[].concat(_.K8(W))});w.next({observations:Z.pipe(Jq(a.performanceMonitor,735)),intersectionObserver:N,flushRecords:function(B){B=N.takeRecords(B);B.length>0&&Z.next(B)}})})).pipe(qO(1),C8(1),Sn()):k8(new S3(1))};
AvF=function(a){return QPU(a.sort(function(W,w){return W.time-w.time}),do8)};
YT9=function(a,W,w,Z,N,B,I){return new an(function(X){function v(){h||(h=!0,I.ref!==void 0&&W.unobserve(N,I.ref),O.unsubscribe(),p.unsubscribe(),T.unsubscribe(),L.unsubscribe())}
if(I.ref!==void 0){hBU(W,N);W.observe(N,I.ref);var U=new Rv({timestamp:a.timeProvider.now(),value:Object.assign({},j3,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),O=Z.pipe(Aq(function(F){return AvF(F)}),n8(function(F){return F.target===I.ref}),T2(function(F){return{timestamp:new L8(F.time,rvx),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:F.rootBounds||qq,topWindowViewportExternalGeometry:F.rootBounds||Fu(a,!0),measurementRequests:S,elementGeometrySourceName:"nio",intersectionGeometry:F.intersectionRect,elementGeometry:F.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:F.isIntersecting,isV2Visible:F.isVisible}}}),sK(U),Sn()).subscribe(X),S=new Wh,T=S.subscribe(function(){B(N);
X.next({timestamp:a.timeProvider.now(),value:U.value.value});I.ref!==void 0&&(W.unobserve(N,I.ref),W.observe(N,I.ref))}),p=ph7(w,I).subscribe(function(){S.next()}),h=!1,L=I.JSC$7267_released.subscribe(function(){return v()});
return v}})};
iYv=function(a,W){var w=a.getOnBackgrounded().pipe(T2(function(){return"b"}));
return kHE(W,w).pipe(qO(1),ZZ(a.queue))};
xg=function(a){return function(W){var w;return W.pipe(Va(function(Z){return void(w=Z.timestamp)}),T2(function(Z){return Z.value}),a,T2(function(Z){return{timestamp:w,
value:Z}}))}};
cvx=function(a){return a.intersectionGeometry.width*a.intersectionGeometry.height/(a.elementGeometry.width*a.elementGeometry.height)};
bf=function(a,W,w){w=w===void 0?function(Z,N){return Z===N}:w;
return a.timestamp.equals(W.timestamp)&&w(a.value,W.value)};
uf=function(a,W){return W.pipe(T2(function(w){return new sT(a.timeProvider,{timestamp:a.timeProvider.now(),value:w})}))};
eB7=function(a){return function(W){return W.pipe(L_H(a),T2(function(w){var Z=_.l(w);w=Z.next().value;Z=Z.next().value;var N=w.value;return{timestamp:w.timestamp,value:N>=1?!0:N<=0?!1:N>=Z}}))}};
jve=function(){return E0(n8(function(a,W){return W>0}),ngx,DY(-1),Qa())};
LkC=function(a,W,w){return a?p8([W,w]).pipe(n8(function(Z){var N=_.l(Z);Z=N.next().value;N=N.next().value;return Z.timestamp.equals(N.timestamp)}),T2(function(Z){var N=_.l(Z);
Z=N.next().value;N=N.next().value;return Z.value>N.value?Z:N})):W};
M3e=function(a){return function(W){var w=W.pipe(Jvv),Z=W.pipe(FkF);return a instanceof an?a.pipe(f8(function(N){return LkC(N,w,Z)})):LkC(a.value,w,Z)}};
DqC=function(a,W,w,Z){var N=Z.geometryIsOccluded,B=Z.exposureThreshold,I=Z.wasLargeAdAtRender,X=Z.allowLargeAdThreshold,v=Z.largeAdExposureThreshold,U=Z.mayUseViewportShareExposure,O=Z.hasMeasurementStarted;Z=Z.useIntersectionObserverV2;W=RB8(a,w,W);w=qTU(a,w);Z=Qvm(W,Z);var S=xqm(a,N,U,W),T=S.pipe(T2(function(ZD){return ZD.value}),Qa(),ZZ(a),G2(function(ZD,aC){return Math.max(ZD,aC)},0)),p=S.pipe(T2(function(ZD){return ZD.value}),jve(),ZZ(a)),h=W.pipe(bYE,T2(function(ZD){return ZD.value}),qO(2),
Qa(),ZZ(a));
I=svI(a,W,I,X);var L=I.pipe(DY(!1),Qa(),T2(function(ZD){return ZD?v:B}));
X=S.pipe(eB7(L),Qa(),ZZ(a));var F=p8([X,W]).pipe(n8(function(ZD){var aC=_.l(ZD);ZD=aC.next().value;aC=aC.next().value;return ZD.timestamp.equals(aC.timestamp)}),T2(function(ZD){var aC=_.l(ZD);
ZD=aC.next().value;aC=aC.next().value;return{visible:ZD.value,geometry:aC.value.elementGeometry}}),G2(function(ZD,aC){return!aC.visible&&ZD.visible?ZD:aC},{visible:!1,
geometry:qq}),T2(function(ZD){return ZD.geometry}),DY(qq),ZZ(a),Qa($g));
U=U instanceof an?U.pipe(Qa(),Rn()):OT;L=p8([U,L]).pipe(Rn());var x=W.pipe(n8(function(ZD){return ZD.value.viewportGeometrySourceName!=="ns"&&ZD.value.elementGeometrySourceName!=="ns"}),G2(function(ZD){return ZD+1},0),DY(0),ZZ(a)),G=w.pipe(Rn(!0),DY(!1),ZZ(a));
G=p8([O,G]).pipe(T2(function(ZD){var aC=_.l(ZD);ZD=aC.next().value;aC=aC.next().value;return ZD&&!aC}),ZZ(a));
var V=W.pipe(uu8,Qa()),d=V.pipe(T2(function(ZD){return ZD.value}),G2(function(ZD,aC){return Math.max(ZD,aC)},0),Qa(),ZZ(a));
a=V.pipe(T2(function(ZD){return ZD.value}),jve(),ZZ(a));
return{shouldResetExposureSignals:U,shouldResetViewabilitySignals:L,geometrySignals:{readyGeometryWithDefault:W,measurementStrategy:W.pipe(CfD),creativePosition:F.pipe(Qa($g)),visible:X.pipe(Qa(bf)),timestampedExposure:S.pipe(Qa(bf)),maximumExposure:T,minimumExposure:p,browserSize:W.pipe(G5x,Qa(_.gT)),timestampedScreenShare:V,maxScreenShare:d,minScreenShare:a,geometricMeasurementErrors:w,measurementRequests:W.pipe(T2(function(ZD){return ZD.value.measurementRequests})),
isLargeAd:I,geometryIsOccluded:N,hasMeasurementStarted:O,geometryMeasurable:G,validMeasurementCount:x,loadTimeExposure:h,v2VisibilityBitVector:Z}}};
qTU=function(a,W){return W.pipe(n8(function(){return!1}),T2(function(w){return w}),Fd(function(w){return CY(new tv(w),a)}))};
RB8=function(a,W,w){return W.pipe(gfv(OT),ZZ(a)).pipe(Qa(function(Z,N){return bf(Z,N,XhU)}),DY({timestamp:w.now(),
value:j3}),ZZ(a))};
xqm=function(a,W,w,Z){w=Z.pipe(M3e(w),xg(T2(function(N){return Math.round(N*100)/100})),ZZ(a));
return W instanceof tv?w:p8([w,W]).pipe(T2(function(N){var B=_.l(N);N=B.next().value;B=B.next().value;return{timestamp:B.timestamp.maximum(N.timestamp),value:B.value?0:N.value}}),Qa(bf),ZZ(a))};
svI=function(a,W,w,Z){W=[W.pipe(T2(function(N){return N.value.elementGeometry.width*N.value.elementGeometry.height>=242500}))];
w instanceof an&&W.push(w.pipe(T2(function(N){return!!N})));
w=p8(W);return Z?w.pipe(T2(function(N){return N.some(function(B){return B})}),DY(!1),Qa(),ZZ(a)):CY(new tv(!1),a)};
Qvm=function(a,W){a=p8([a,W]).pipe(T2(function(N){var B=_.l(N);N=B.next().value;if(B.next().value&&N.value.isIntersecting)return N.value.isV2Visible}),Qa());
var w=a.pipe(T2(function(N){return N===void 0?!0:N}),G2(function(N,B){return N||!B},!1)),Z=a.pipe(G2(function(N,B){return B===void 0?N:B?!1:N!=null?N:!0},void 0),T2(function(N){return!!N}));
return p8([W,U_e(a,w,Z)]).pipe(T2(function(N){var B=_.l(N);N=B.next().value;var I=_.l(B.next().value);B=I.next().value;var X=I.next().value;I=I.next().value;var v=0;if(!N)return 0;if(B===void 0)return 16;B&&(v|=1);B||(v|=2);X&&(v|=4);I&&(v|=8);return v}))};
HYe=function(a,W,w,Z,N){var B=fZ8.timeThresholdMs;var I=I===void 0?new dq7(W,Z):I;return(new an(function(X){var v=w.pipe(DY(void 0),f8(function(){return mqI(N)})).pipe(T2(function(U){var O=U.value;
U=U.timestamp;var S=O.visible;O=O.consecutiveViewTime;var T=O>=B;T||!S?V3F(I):(U=Math.max(0,jn(W.now(),U)),zB7(I,Math.max(0,B-O-U)));return T}),G2(function(U,O){return O||U},!1),Qa()).subscribe(X);
return function(){I.dispose();v.unsubscribe()}})).pipe(db(function(X){return!X},!0),ZZ(a))};
mqI=function(a){return t3C([a,a.pipe(PfI())]).pipe(T2(function(W){var w=_.l(W);W=w.next().value;w=w.next().value;return{timestamp:W.timestamp,value:{visible:W.value,consecutiveViewTime:w.value}}}),Qa(function(W,w){return bf(W,w,function(Z,N){return Z.consecutiveViewTime===N.consecutiveViewTime&&Z.visible===N.visible})}))};
yvU=function(){return E0(lZm(),G2(function(a,W){return Math.max(a,W)},0),T2(function(a){return Math.round(a)}))};
Eg8=function(a){return E0(eB7(on(a)),yvU())};
af7=function(a,W){return W instanceof an?W.pipe(f8(function(w){return(w=w?15:null)?k8(new S3(w)):a})):(W=W.value?15:null)?k8(new S3(W)):a};
WHU=function(a){var W=new S3(13);if(a.length<1)return{chain:cb,capturedErrors:cb};var w=new Wh,Z=a[0];return{chain:a.slice(1).reduce(function(N,B){return N.pipe(Fd(function(I){w.next(I);return B}))},Z).pipe(Fd(function(N){w.next(N);
return k8(W)}),sK(new Wh),Sn()),
capturedErrors:w}};
wMU=function(a,W){var w=a.pipe(sK(new Wh),Sn());return f8(function(Z){return w.pipe(W(Z))})};
NhD=function(a,W){if(a.inCrossDomainIframe)return k8(new S3(6));var w=new Wh;return en(on({}),W,w).pipe(T2(function(){return{timestamp:a.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:ZrU(a),topWindowViewportExternalGeometry:Fu(a,!0),measurementRequests:w,viewportLocalAppOffset:{x:0,y:0}}}}),w3(a.queue))};
ZrU=function(a){var W=Fu(a,!1);if(!a.inIframe||!tkD(a.global.parent)||a.global.parent===a.global)return W;var w=new G5(a.global.parent,a.debugChannel);w.beaconFactory=a.beaconFactory;w=ZrU(w);a=a.global.frameElement.getBoundingClientRect();return UOm(O8e(UOm(w,a),{x:W.left-a.left,y:W.top-a.top}),W)};
$FI=function(a){if(a.prerendering)return 3;var W;return(W={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""])!=null?W:0};
Bhx=function(a){return a.document.JSC$7278_onVisibilityChange.pipe(T2(function(W){return W==="visible"}),Qa(),ZZ(a.queue))};
lfI=function(a,W,w){var Z;return W.pipe(Qa(),f8(function(N){return w.pipe(T2(function(){if(!Z){Z=!0;try{N.next()}finally{Z=!1}}return!0}))}),DY(!1),ZZ(a.queue))};
If9=function(a){return E0(xg(T2(function(W){return W>=1?!0:W<=0?!1:W>=a})),B3e(),T2(function(W){return Math.round(W)}))};
XMm=function(a,W,w,Z,N){var B=PJe;if(B.length>1)for(var I=0;I<B.length-1;I++)if(B[I]<B[I+1])throw Error();I=N.pipe(DY(void 0),f8(function(){return w.pipe(PfI())}),Qa(),ZZ(a));
N=N.pipe(DY(void 0),f8(function(){return w.pipe(yvU())}),Qa(),ZZ(a));
return{totalMeasurementTime:Z.pipe(DY(void 0),f8(function(){return W.pipe(T2(function(X){return{timestamp:X.timestamp,value:!0}}),B3e())}),Qa(),ZZ(a)),
totalUnviewedTime:Z.pipe(DY(void 0),f8(function(){return W.pipe(T2(function(X){return{timestamp:X.timestamp,value:X.value===0}}),B3e())}),Qa(),ZZ(a)),
maxTimeOnScreen:Z.pipe(DY(void 0),f8(function(){return W.pipe(IZ8(Eg8,B))}),Qa(_.gT),ZZ(a)),
timeOnScreen:Z.pipe(DY(void 0),f8(function(){return W.pipe(IZ8(If9,B),T2(function(X){return X.map(function(v,U){return U>0?v-X[U-1]:v})}))}),Qa(_.gT),ZZ(a)),
maxConsecutiveViewTime:N,consecutiveViewTime:I.pipe(Qa(bf),ZZ(a))}};
g39=function(a){var W=!0;W=W===void 0?!1:W;return E0(f8(function(w){return v3m(a.document,w,W)}),ZZ(a.queue))};
o38=function(a,W,w){var Z=w.pipe(T2(function(N){return{value:N,timestamp:a.timeProvider.now()}}),Qa(bf));
return W instanceof an?W.pipe(Qa(),f8(function(N){return N?CY(new tv({value:!1,timestamp:a.timeProvider.now()}),a.queue):Z})):W.value===!1?Z:new tv(!1)};
kOH=function(a,W,w,Z,N,B,I){var X=fZ8;W=W instanceof an?W.pipe(DY(!1),Qa()):W;var v=!a.isMobile();w=o38(a,w,Z);a=I.measurableCreative.pipe(N3C(a.queue));return Object.assign({},X,{geometryIsOccluded:w,wasLargeAdAtRender:N,allowLargeAdThreshold:v,mayUseViewportShareExposure:W,hasMeasurementStarted:a,useIntersectionObserverV2:B})};
Ore=function(a,W,w,Z,N,B){var I=1;B=B===void 0?!0:B;I=I===void 0?.01:I;var X=X===void 0?a.timeProvider.intervalObservable(100).pipe(ZZ(a.queue)):X;return a.performanceMonitor.timeExecution(916,function(){return UFx(a,W.pipe(w3(a.queue)),w.pipe(w3(a.queue)),Z,N,B,I,X)})()};
UFx=function(a,W,w,Z,N,B,I,X){var v=Bhx(a).pipe(T2(function(O){return!O})),U=new SWx(a,[new YWC(a,PJe),
new Thm(a,X)]);X=mO7(KHU,pMe);return snC(a,W,function(O,S){var T=CY(new tv(S.element),O.queue).pipe(g39(O),ZZ(O.queue)),p={loadedElement:T,shouldMeasure:T.pipe(Rn(!0)),measurableCreative:T.pipe(T2(function(ZD){var aC=aC===void 0?Symbol():aC;return Object.freeze({symbol:aC,element:CY(new tv(ZD),O.queue)})})),
creativeSearchResult:CY(new tv("mue"),O.queue)},h=new tv(!1),L=new tv(!1),F=new tv(17),x=new tv(!1),G=new tv(!1),V=CY(DZ,O.queue);h=U.buildGeometrySource(p,{inApp:h,useV2:!1,requestSource:CY(F,O.queue)}).geometrySource;p=kOH(O,x,L,v,G,V,p);L=DqC(O.queue,O.timeProvider,h,p);p=L.geometrySignals;x=L.shouldResetViewabilitySignals;L=XMm(O.queue,p.timestampedExposure,p.visible,L.shouldResetExposureSignals,x);x=HYe(O.queue,O.timeProvider,x,p.measurementRequests,p.visible);G=w.pipe(n8(function(ZD){return ZD===
S.element.ref}),T2(function(){return"ur"}));
V=T5F(O.timeProvider,N).pipe(Rn("t"));G=iYv(O,en(G,V));V=lfI(O,p.measurementRequests,G.pipe(n8(function(ZD){return ZD!==null})));
h=G.pipe(n8(function(ZD){return ZD!==null}),T2(function(){return $FI(O.global.document)===1}));
var d=rKE(O.document);return Object.assign({},{beaconFactory:new tv(O.beaconFactory),context:new tv(O),inferredPingId:new tv("lidar2"),timeOnScreenPingId:new tv("lidartos"),binaryContext:new tv(17),binaryVersion:new tv(Z),requestSource:F,contextValidationErrors:new tv(O.validate()?null:new Yg),contextVisibilityKnown:new tv(d),payloadMapper:new tv(fYx),endOfSessionReason:G,timeOnScreenReason:G,requestMeasurementOnEndOfSession:V,hasImpressionFired:AKE,crossDomainIframeState:new tv(O.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:DZ,inFetchLaterBeaconExperiment:DZ,isTurtlex:DZ,turtlexReportEventData:new tv(""),reportFencedFrameEvent:OT,isViewableAttributionEnabled:DZ,inViewableAttributionExperiment:new tv(0),fetchBeaconFactory:OT,supportsPendingBeacon:DZ,supportsFetchLater:DZ,emit:new tv(H8E),beginToRenderEvent:new tv(Symbol()),activeViewUnmeasurableEvent:new tv(Symbol()),activeViewViewableEvent:new tv(Symbol()),creativeFound:AKE,immediateUrlPrefixes:new tv(S.immediateUrls),timeOnScreenUrlPrefixes:new tv(S.timeOnScreenUrls),
cpmavUrls:OT,viewableRelayUrls:OT,measurementDeferralState:new tv(2),urlSerializer:new tv(wh9),viewUrlSerializer:new tv(hYv),isCreativeLoaded:T.pipe(N3C(O.queue)),pageVisible:v.pipe(T2(function(ZD){return!ZD})),
eosPageVisible:h,timestampedExposureHistory:p.timestampedExposure.pipe(G2(function(ZD,aC){ZD.push(aC);return ZD},[]))},p,{viewable:uf(O,x),
maxTimeOnScreen:uf(O,L.maxTimeOnScreen),timeOnScreen:uf(O,L.timeOnScreen),maxConsecutiveViewTime:uf(O,L.maxConsecutiveViewTime),consecutiveViewTime:L.consecutiveViewTime.pipe(T2(function(ZD){return new sT(O.timeProvider,ZD)})),
totalMeasurementTime:uf(O,L.totalMeasurementTime),totalUnviewedTime:uf(O,L.totalUnviewedTime),userAgentClientHints:VBF(O),clientOrderPingCounter:new tv(new Cb7)})},dOF(a,I),VnH(B?zsD(X,ir9):zsD(X,cKe),eYH))};
n3I=function(a){return new RegExp("[^#]*[?&]"+a+"=([^&#]*)")};
j$e=function(a,W){return(a=W.exec(a))?a[1]:null};
LHE=function(a){var W=_.TH.apply(1,arguments).filter(Boolean).join("&");if(!W)return a;var w=a.match(/[?&]adurl=/);return w?a.slice(0,w.index+1)+W+"&"+a.slice(w.index+1):a+(a.indexOf("?")<0?"?":"&")+W};
fY=function(a,W){return W?"&"+a+"="+encodeURIComponent(W):""};
JKF=function(){try{var a,W;return!!((a=window)==null?0:(W=a.top)==null?0:W.location.href)&&!1}catch(w){return!0}};
_.d3=function(a){a&&typeof a.dispose=="function"&&a.dispose()};
_.mk=function(a){for(var W=0,w=arguments.length;W<w;++W){var Z=arguments[W];_.wT(Z)?_.mk.apply(null,Z):_.d3(Z)}};
Mke=function(){var a=FHS();a=a===void 0?"bevasrsg":a;return new Promise(function(W){var w=window===window.top?window:JKF()?window:window.top,Z=w[a],N;((N=Z)==null?0:N.bevasrs)?W(new Vo(Z.bevasrs)):(Z||(Z={},Z=(Z.nqfbel=[],Z),w[a]=Z),Z.nqfbel.push(function(B){W(new Vo(B))}))})};
RYS=function(a){var W={c:a.jm,e:a.pxd,mc:a.azX,me:a.ycr};a.f7&&(W.co={c:a.f7.h85,a:a.f7.rgc,s:a.f7.hrf});return W};
qW9=function(a){var W,w,Z={jm:a.c,pxd:a.e,azX:(W=a.mc)!=null?W:!1,ycr:(w=a.me)!=null?w:!1};a.co&&(Z.f7={h85:a.co.c,rgc:a.co.a,hrf:a.co.s});return Z};
Q$I=function(a){return function(){var W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,a(),2);W=w.yieldResult;return w.return({f:function(){return W.m77()},
c:function(Z){return W.zFh(Z)},
m:function(Z){return W.mU(qW9(Z))},
mws:function(Z){return W.aN(qW9(Z))}})})}};
xFe=function(a,W){var w=FHS();w=w===void 0?"bevasrsg":w;W={s:function(B){var I;return a.snapshot(Object.assign({},B.c&&{jm:B.c},B.s&&{aZy:B.s},{vvr:(I=B.p)!=null?I:!0}))},
e:function(B){var I;return void((I=a.tfd)==null?void 0:I.call(a,B))},
c:function(B,I){return a.xfy(B,I)},
p:a.tWb,l:function(){return a.psy()},
wpc:W?Q$I(W):void 0};var Z=window===window.top?window:JKF()?window:window.top,N=Z[w];if(N){N.bevasrs=W;if(N.nqfbel!==void 0)for(w=_.l(N.nqfbel),Z=w.next();!Z.done;Z=w.next())Z=Z.value,Z(W);N.nqfbel=void 0}else N={},N=(N.bevasrs=W,N.nqfbel=void 0,N),Z[w]=N};
s$I=function(a){var W=W===void 0?49:W;var w=[];_.z5(a,bre,6,_.Hh()).forEach(function(Z){_.yo(Z,2)<=W&&w.push(_.yo(Z,1))});
return w};
uhx=function(a){var W=W===void 0?49:W;var w=[];_.z5(a,bre,6,_.Hh()).forEach(function(Z){_.yo(Z,2)>W&&w.push(_.yo(Z,1))});
return w};
CJm=function(a){a.then(function(){},function(){})};
ET=function(a){return{fieldType:1,fieldName:a}};
a$=function(a){return{fieldType:2,fieldName:a}};
_.WM=function(a){return{fieldType:3,fieldName:a}};
GO8=function(){function a(){N[0]=1732584193;N[1]=4023233417;N[2]=2562383102;N[3]=271733878;N[4]=3285377520;O=U=0}
function W(S){for(var T=I,p=0;p<64;p+=4)T[p/4]=S[p]<<24|S[p+1]<<16|S[p+2]<<8|S[p+3];for(p=16;p<80;p++)S=T[p-3]^T[p-8]^T[p-14]^T[p-16],T[p]=(S<<1|S>>>31)&4294967295;S=N[0];var h=N[1],L=N[2],F=N[3],x=N[4];for(p=0;p<80;p++){if(p<40)if(p<20){var G=F^h&(L^F);var V=1518500249}else G=h^L^F,V=1859775393;else p<60?(G=h&L|F&(h|L),V=2400959708):(G=h^L^F,V=3395469782);G=((S<<5|S>>>27)&4294967295)+G+x+V+T[p]&4294967295;x=F;F=L;L=(h<<30|h>>>2)&4294967295;h=S;S=G}N[0]=N[0]+S&4294967295;N[1]=N[1]+h&4294967295;N[2]=
N[2]+L&4294967295;N[3]=N[3]+F&4294967295;N[4]=N[4]+x&4294967295}
function w(S,T){if(typeof S==="string"){S=unescape(encodeURIComponent(S));for(var p=[],h=0,L=S.length;h<L;++h)p.push(S.charCodeAt(h));S=p}T||(T=S.length);p=0;if(U==0)for(;p+64<T;)W(S.slice(p,p+64)),p+=64,O+=64;for(;p<T;)if(B[U++]=S[p++],O++,U==64)for(U=0,W(B);p+64<T;)W(S.slice(p,p+64)),p+=64,O+=64}
function Z(){var S=[],T=O*8;U<56?w(X,56-U):w(X,64-(U-56));for(var p=63;p>=56;p--)B[p]=T&255,T>>>=8;W(B);for(p=T=0;p<5;p++)for(var h=24;h>=0;h-=8)S[T++]=N[p]>>h&255;return S}
for(var N=[],B=[],I=[],X=[128],v=1;v<64;++v)X[v]=0;var U,O;a();return{reset:a,update:w,digest:Z,digestString:function(){for(var S=Z(),T="",p=0;p<S.length;p++)T+="0123456789ABCDEF".charAt(Math.floor(S[p]/16))+"0123456789ABCDEF".charAt(S[p]%16);return T}}};
zYm=function(a,W){W=W===void 0?DFe:W;if(!ff9){var w;a=(w=a.navigator)==null?void 0:w.userAgentData;if(!a||typeof a.getHighEntropyValues!=="function"||a.brands&&typeof a.brands.map!=="function")return Promise.reject(Error("ya"));dFF((a.brands||[]).map(function(N){var B=new mFE;B=_.Xu(B,1,N.brand);return _.Xu(B,2,N.version)}));
typeof a.mobile==="boolean"&&_.wh(VkS,2,a.mobile);ff9=a.getHighEntropyValues(W)}var Z=new Set(W);return ff9.then(function(N){var B=VkS.clone();Z.has("platform")&&_.Xu(B,3,N.platform);Z.has("platformVersion")&&_.Xu(B,4,N.platformVersion);Z.has("architecture")&&_.Xu(B,5,N.architecture);Z.has("model")&&_.Xu(B,6,N.model);Z.has("uaFullVersion")&&_.Xu(B,7,N.uaFullVersion);return B.serialize()}).catch(function(){return VkS.serialize()})};
Zf=function(a,W,w,Z){this.initialValue_=a;this.maxValue_=W;this.currBaseValue_=this.currValue_=a;this.randomFactor_=w||0;this.backoffFactor_=Z||2};
NF=function(a){this.src=a;this.listeners={};this.typeCount_=0};
aTI=function(){for(var a;a=HrF.remove();){try{a.fn.call(a.scope)}catch(W){$I(W)}yKC.put(a)}E37=!1};
_.W$F=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}};
waU=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""}};
_.ZaE=function(){};
v1U=function(a){return{e6k:new Nj7(a),errorCount:new tQm(a),eventCount:new $k8(a),cb1:new Bj9(a),zVx:new lTF(a),kdi:new IT7(a),m8e:new PkC(a),bKV:new XaU(a)}};
K$F=function(a,W,w,Z){a=g1D(o1F(kve(new _.tK(1828,"0"),a),new UkE));W.length&&Oa7(a,Six(new YiF,W));Z!==void 0&&(a.destinationUrl=Z);var N=new TjC(1828,"","",!1,"",a.build());_.$3(N,a);var B=new BM({flush:function(I){try{N.flush(I)}catch(X){w(X)}}});
B.addOnDisposeCallback(function(){setTimeout(function(){try{B.snapshotAndFlush()}finally{N.dispose()}})});
B.invocationLimit=1E5;B.flushInterval=3E4;B.JSC$7694_flushTimer.setInterval(3E4);return B};
lJ=function(){var a,W,w;return(w=(a=globalThis.performance)==null?void 0:(W=a.now)==null?void 0:W.call(a))!=null?w:Date.now()};
uTm=function(a,W,w){if(a.disable)return new pae;W=W?s$I(W):[];if(w)return w.n8s(W),w.share();a={zu:a.zu,bqS:a.pAe,lFu:a.rYV,destinationUrl:a.destinationUrl,ous:a.ous,dO:a.dO};w=W;w=w===void 0?[]:w;return new suC(a,w)};
_.Cke=function(a){if(!a)return null;a=_.I$(a,4);return a===null||a===void 0?null:_.lq(a)};
fT7=function(a,W){return W?Gv9(W):a?Dkv(a):Promise.resolve()};
Gv9=function(a){return new Promise(function(W,w){var Z=_.PM("SCRIPT"),N=_.Cke(a);_.Q$(Z,N);Z.onload=function(){_.Xh(Z);W()};
Z.onerror=function(){_.Xh(Z);w(Error("Ja"))};
(gh("HEAD")[0]||document.documentElement).appendChild(Z)})};
Dkv=function(a){return new Promise(function(W){var w=_.PM("SCRIPT");if(a){var Z=_.I$(a,6);Z=Z===null||Z===void 0?null:_.M_(Z)}else Z=null;_.q_(w,Z);(gh("HEAD")[0]||document.documentElement).appendChild(w);_.Xh(w);W()})};
o$=function(a,W,w){var Z,N=new Promise(function(B){Z=setTimeout(B,W)});
return Promise.race([a.finally(function(){return void clearTimeout(Z)}),
N.then(w)])};
dk7=function(a,W){try{return globalThis.sessionStorage.setItem(a,W),!0}catch(w){return!1}};
mkx=function(a,W,w,Z){W=W===void 0?0:W;w=w===void 0?a.length:w;var N=0;for(Z&&(N=mkx(Z));W<w;W++)Z=typeof a==="string"?a.charCodeAt(W):a[W],N=VQv(31,N)+Z|0;return N};
zGv=function(a,W){return[mkx(a,0,a.length>>1,W),mkx(a,a.length>>1)]};
Hae=function(a){var W=_.l(zGv(a,k3));a=W.next().value;W=W.next().value;return a.toString(16)+W.toString(16)};
yo7=function(a,W){var w=zGv(W);a=new Uint32Array(a.buffer);W=a[0];var Z=_.l(w);w=Z.next().value;Z=Z.next().value;for(var N=1;N<a.length;N+=2){for(var B=W,I=N,X=w,v=Z,U=0;U<22;U++)I=I>>>8|I<<24,I+=B|0,I^=X+38293,B=B<<3|B>>>29,B^=I,v=v>>>8|v<<24,v+=X|0,v^=U+38293,X=X<<3|X>>>29,X^=v;B=[B,I];a[N]^=B[0];N+1<a.length&&(a[N+1]^=B[1])}};
E1F=function(a,W,w,Z,N){var B=(4-(k3.length+w.length)%4)%4,I=new Uint8Array(4+B+k3.length+4+w.length),X=new DataView(I.buffer),v=0;X.setUint32(v,Math.random()*4294967295);v=v+4+B;I.set(k3,v);v+=k3.length;X.setUint32(v,N);I.set(w,v+4);yo7(I,Z);return a.insert(W,function(U){return void globalThis.sessionStorage.removeItem(U)})?dk7(W,_.EI(I))?"s":"t":"i"};
a77=function(a,W){var w=globalThis.sessionStorage.getItem(a);if(!w)return["m"];try{var Z=_.UR(w);yo7(Z,W)}catch(N){return globalThis.sessionStorage.removeItem(a),["c"]}for(W=4;W<7&&Z[W]===0;)W++;for(w=0;w<k3.length;w++)if(Z[W++]!==k3[w])return globalThis.sessionStorage.removeItem(a),["d"];w=(new DataView(Z.buffer)).getUint32(W);return Math.floor(Date.now()/1E3)>=w?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(Z.buffer,W+4)]};
WBF=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):_.UW(a)};
wS9=function(a){var W=a,w;return function(){if(W){var Z=W;W=void 0;w=Z.apply(this,arguments)}return w}};
NwF=function(a){return V_(function(W){if(W instanceof a)return!0;var w,Z,N=W==null?void 0:(w=W.ownerDocument)==null?void 0:(Z=w.defaultView)==null?void 0:Z[a.name];return ZF7(N)&&W instanceof N})};
_.Y3=function(a,W,w){_.OW.call(this);this.JSC$7909_listener_=a;this.JSC$7909_interval_=W||0;this.handler_=w;this.callback_=(0,_.Sk)(this.JSC$7911_doAction_,this)};
_.TO=function(a){a=tme(a);return _.lq(a)};
tme=function(a){return a===null?"null":a===void 0?"undefined":a};
BwC=function(a){if(a&&a.focus)if(a!==document.activeElement)a.focus();else return $xx(function(){return _.P(function(W){document.activeElement&&document.activeElement.blur();return W.return($xx(function(){a.focus()}))})})};
_.l7E=function(a){var W=W===void 0?5:W;setTimeout(function(){var w;return _.P(function(Z){Z.nextAddress==1&&(w=document.activeElement);if(Z.nextAddress!=5)return(document.activeElement===w||document.activeElement===document.body)&&W>=0&&a?_.g(Z,BwC(a),5):Z.jumpTo(0);if(document.activeElement===a)return Z.return();a=a.parentElement;--W;return Z.jumpTo(2)})},15)};
$xx=function(a){return new Promise(function(W){requestAnimationFrame(function(){W(a())})})};
PGe=function(a){if(_.Kr)a(_.Kr);else{var W;((W=I7I)!=null?W:I7I=[]).push(a)}};
rh=function(){!_.Kr&&_.pr&&_.XSx(_.pr());return _.Kr};
_.XSx=function(a){_.Kr=a;var W;(W=I7I)==null||W.forEach(PGe);I7I=void 0};
_.AK=function(a){_.Kr&&_.Kr.beforeLoadModuleCode(a)};
_.hK=function(){_.Kr&&_.Kr.JSC$8860_setLoaded()};
iJ=function(a){return qi(a)?Number(a):String(a)};
v6U=function(a){this.action=a;this.wfv=!1};
g69=function(a,W){v6U.call(this,"set-drive-options");this.appId=a;this.appOrigin=W};
o6S=function(a){v6U.call(this,"visibility");this.visible=a};
kUm=function(a,W,w){cM.call(this,a,W,w)};
UxF=function(a){ek.call(this,a)};
OFC=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc};
YtE=function(a,W){var w=W&&W.getWindow()||window;if(OFC(W))a();else if(Ste)Ste.push(a);else var Z=Ste=[a],N=w.setInterval(function(){if(OFC(W)){w.clearInterval(N);for(var B=0;B<Z.length;B++)Z[B]();Ste=null}},100)};
KBe=function(a,W){var w=new nr(a);_.$3(W,w);var Z={passive:!1};W.listen(w,"mousewheel",function(N){return void TwH(a,N)},Z).listen(a,"scroll",function(N){return void TwH(a,N)},Z)};
TwH=function(a,W){var w;a:{for(w=W.target;w;){if(w.nodeType==1){var Z=_.jk(w,"overflowY");if(Z=="auto"||Z=="scroll")break a}w=w.parentNode}w=null}if(!w||!_.Lr(a,w)||w.scrollHeight==w.clientHeight||W.deltaY>0&&Math.abs(w.scrollTop-(w.scrollHeight-w.clientHeight))<=1||W.deltaY<0&&w.scrollTop==0)W.preventDefault(),W.stopPropagation()};
x3=function(a,W,w,Z,N,B,I,X,v){X=X===void 0?!1:X;v=v===void 0?!1:v;cM.call(this,void 0,void 0,void 0);cM.call(this,B?B+" picker modal-dialog":"picker modal-dialog",!0,w);_.JK(a,"protocol");this.iframeManager_=new pSU;this.targetId_=Fh();this.rpcToken_=Fh();a=_.MF(a);_.R$(a,"hostId");w=_.R$(a,"parent");this.useGapi_=!v&&!0||(w==null?void 0:w.includes("onepick.corp.google.com"));X&&_.qF(a,"fv2","true");this.setUrl(a.toString());this.preferredDialogWidth_=Z;this.preferredDialogHeight_=N;Z!==void 0||
N!==void 0?Z=!0:(Z=_.R$(_.MF(a.toString()),"hostId"),rSx||(rSx=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),Z=!rSx.has(Z));this.autoSizeDialog_=Z;this.JSC$8099_gadgetsDomHelper_=I||this.JSC$8050_dom_;W&&(I=this.JSC$8099_gadgetsDomHelper_,W=_.R$(_.MF(this.JSC$8101_url_),"grugl")=="true"?ASe:hqx,OFC(I)||(I=I||Ph(document),Z=I.createElement("SCRIPT"),_.Q$(Z,W),Z.type="text/javascript",I.JSC$7233_document_.body.appendChild(Z)));
a=a.toString();W=null;I=a.indexOf("/picker?");I>-1?W=a.substring(0,I+8-1):Pv(a,"/picker")&&(W=a);W&&this.setRelayUrl(W+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(a=this.buttons_,a.JSC$8084_element_=this.buttonEl_,a.render()):_.xf(this.buttonEl_,iF9),_.QS(this.buttonEl_,!!this.buttons_))};
_.jTU=function(a){var W=W===void 0?cSI:W;var w=_.lA(a),Z=function(B){B=_.l(B);B.next();B=bJ(B);return W(w,B)},N=function(B){var I=_.l(B);
B=I.next().value;I=bJ(I);return a.apply(B,I)};
return function(){var B=_.TH.apply(0,arguments),I=this||_.NH,X=eqD.get(I);X||(X={},eqD.set(I,X));return n6x(X,[this].concat(_.K8(B)),N,Z)}};
sW=function(a){var W={};a=a.replace(/\r/g,"").split("\n");for(var w=0;w<a.length;w++){var Z=a[w],N=Z.indexOf(":");N<0||(W[Z.substring(0,N)]=Z.substring(N+2,Z.length))}return W};
LB9=function(a,W,w){w=w===void 0?function(){}:w;
W=_.l(W);for(var Z=W.next();!Z.done;Z=W.next()){var N=_.l(Z.value);Z=N.next().value;N=N.next().value;if(Z instanceof Array&&Z.includes(a)||Z===a)return N()}return w()};
uJ=function(a,W,w){w=w===void 0?function(){}:w;
return a?W():w()};
_.FB9=function(a){var W;return((W=JSE.documentOverride)!=null?W:a).__wizdispatcher};
GO=function(a){var W=Cr;Cr=a;return W};
RqI=function(a,W){var w;if((w=a)==null?0:w.isDisposed)throw Error("nb`"+String(a.debugName));for(;a!==void 0;){w=a;if(w.retrieve)return w.retrieve(W,{optional:!0});a=a.parent}return MmC};
Df=function(a){return{"\u0275prov":{providedIn:"root",token:Symbol(a),factory:void 0,value:void 0}}};
qt8=function(a){var W=GO(a);a={};return a[Symbol.dispose]=function(){GO(W)},a};
QTx=function(a,W){a.disposables||(a.disposables=[]);a.disposables.push(W)};
fr=function(a){var W=Cr;W&&!W.isDisposed&&(QTx(W,a),a.parent=W)};
bFF=function(a){if(a.disposables){for(var W=_.l(a.disposables),w=W.next();!w.done;w=W.next())w=w.value,typeof w==="function"?w():xxF(w);a.disposables.length=0}};
xxF=function(a){if(!a.isDisposed){a.isDisposed=!0;var W;(W=a[Symbol.dispose])==null||W.call(a);delete a.parent;bFF(a)}};
Vm7=function(a){var W={retrieve:function(w){switch(w.\u0275prov.token){case sT8.\u0275prov.token:var Z=a.asyncDeps;break;case ufe.\u0275prov.token:Z=a.rootElement;break;case CG8.\u0275prov.token:Z=a.modelRootElement;break;case GUD.\u0275prov.token:Z=a.appContext;break;case DxU.\u0275prov.token:Z=a.rendererData;break;case f7e.\u0275prov.token:Z=a.injectingConstructor;break;case dxH.\u0275prov.token:Z=a.dispatcher}if(Z)w=Z;else a:{for(Z=W.parent;Z;){var N=Z;if(N.retrieve){w=N.retrieve(w);break a}Z=
Z.parent}Z=w.\u0275prov.token;N=mxF[Z];N!==void 0?w=N:(N=w.\u0275prov.providedIn,w.\u0275prov.factory?(w=w.\u0275prov.factory(),Z&&N==="root"&&(mxF[Z]=w)):w=MmC)}return w}};
fr(W);return W};
zqS=function(a){if(typeof document!=="undefined"&&document&&document.getElementById&&(a=document.getElementById(a))){var W=a.tagName.toUpperCase();if(W=="SCRIPT"||W=="LINK")return a}return null};
ySx=function(a,W){if((a=a===void 0?"":a)&&W)throw Error("ub");var w="";var Z=_.NH._F_jsUrl;(a=W||zqS(a))&&(w=a.src?a.src:a.getAttribute("href"));if(Z&&w){if(Z!=w)throw Error("vb`"+Z+"`"+w);w=Z}else w=Z||w;if(!HFv(w))throw Error("wb");return w};
WGm=function(){if(!E6m){E6m=!0;try{var a=ySx(_.NH._F_jsUrl?"":"base-js")}catch(Z){return}var W=ape(dh(a)),w=Object.keys(W);w.length!==0&&PGe(function(Z){for(var N=_.l(w),B=N.next();!B.done;B=N.next()){B=B.value;for(var I=_.l(Object.keys(W[B])),X=I.next();!X.done;X=I.next())Z.addExtraEdge(B,X.value)}})}};
wiI=function(a,W,w){var Z;return a&&W?a+"__"+W:(Z=a!=null?a:W)!=null?Z:w};
NzE=function(){var a=Object.assign({},Z3m);Object.getOwnPropertyNames(Z3m).forEach(function(W){VS[W]!==void 0&&(a[W]=VS[W])});
return a};
tgx=function(a,W){if(VS.enablePerformanceTiming){var w,Z;(Z=(w=performance).mark)==null||Z.call(w,a+"Start__"+W)}};
$YF=function(a,W){if(VS.enablePerformanceTiming){var w,Z;(Z=(w=performance).measure)==null||Z.call(w,a+"__"+W,a+"Start__"+W)}};
lpI=function(a,W){var w=Object.create(Bzm);w.debugName=W;!Cr||fr(w);W=GO(w);try{a(w)}finally{GO(W)}return function(){return void xxF(w)}};
Pdv=function(a){return zO(a)&&IpC in a};
Xim=function(a,W){return Object.is(a,W)};
yS=function(a){var W=HM;HM=a;return W};
k4I=function(a){if(Wa)throw Error("da");if(HM!==null){var W=HM.nextProducerIndex++;vq7(HM);W<HM.producerNode.length&&HM.producerNode[W]!==a&&wj(HM)&&gqv(HM.producerNode[W],HM.producerIndexOfThis[W]);HM.producerNode[W]!==a&&(HM.producerNode[W]=a,HM.producerIndexOfThis[W]=wj(HM)?oqD(a,HM,W):0);HM.producerLastReadVersion[W]=a.version}};
Swx=function(a){if(!wj(a)||a.dirty)if(a.dirty||a.lastCleanEpoch!==UYx)(a.producerMustRecompute(a)||O3e(a))&&a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=UYx};
YwH=function(a){if(a.liveConsumerNode!==void 0){var W=Wa;Wa=!0;try{for(var w=_.l(a.liveConsumerNode),Z=w.next();!Z.done;Z=w.next()){var N=Z.value;N.dirty||(a=void 0,N.dirty=!0,YwH(N),(a=N.consumerMarkedDirty)==null||a.call(N,N))}}finally{Wa=W}}};
TzE=function(){var a;return((a=HM)==null?void 0:a.consumerAllowSignalWrites)!==!1};
KG7=function(a){a&&(a.nextProducerIndex=0);return yS(a)};
piv=function(a,W){yS(W);if(a&&a.producerNode!==void 0&&a.producerIndexOfThis!==void 0&&a.producerLastReadVersion!==void 0){if(wj(a))for(W=a.nextProducerIndex;W<a.producerNode.length;W++)gqv(a.producerNode[W],a.producerIndexOfThis[W]);for(;a.producerNode.length>a.nextProducerIndex;)a.producerNode.pop(),a.producerLastReadVersion.pop(),a.producerIndexOfThis.pop()}};
O3e=function(a){vq7(a);for(var W=0;W<a.producerNode.length;W++){var w=a.producerNode[W],Z=a.producerLastReadVersion[W];if(Z!==w.version)return!0;Swx(w);if(Z!==w.version)return!0}return!1};
oqD=function(a,W,w){rwC(a);if(a.liveConsumerNode.length===0&&a.producerNode!==void 0)for(var Z=0;Z<a.producerNode.length;Z++)a.producerIndexOfThis[Z]=oqD(a.producerNode[Z],a,Z);a.liveConsumerIndexOfThis.push(w);return a.liveConsumerNode.push(W)-1};
gqv=function(a,W){rwC(a);if(a.liveConsumerNode.length===1&&a.producerNode!==void 0)for(var w=0;w<a.producerNode.length;w++)gqv(a.producerNode[w],a.producerIndexOfThis[w]);w=a.liveConsumerNode.length-1;a.liveConsumerNode[W]=a.liveConsumerNode[w];a.liveConsumerIndexOfThis[W]=a.liveConsumerIndexOfThis[w];a.liveConsumerNode.length--;a.liveConsumerIndexOfThis.length--;W<a.liveConsumerNode.length&&(w=a.liveConsumerIndexOfThis[W],a=a.liveConsumerNode[W],vq7(a),a.producerIndexOfThis[w]=W)};
wj=function(a){var W,w;return a.consumerIsAlwaysLive||((w=a==null?void 0:(W=a.liveConsumerNode)==null?void 0:W.length)!=null?w:0)>0};
vq7=function(a){a.producerNode!=null||(a.producerNode=[]);a.producerIndexOfThis!=null||(a.producerIndexOfThis=[]);a.producerLastReadVersion!=null||(a.producerLastReadVersion=[])};
rwC=function(a){a.liveConsumerNode!=null||(a.liveConsumerNode=[]);a.liveConsumerIndexOfThis!=null||(a.liveConsumerIndexOfThis=[])};
h8e=function(a){var W=Object.create(Aw9);W.computation=a;a=function(){Swx(W);k4I(W);if(W.value===ZT)throw W.error;return W.value};
a[Nk]=W;return a};
cwv=function(a,W){var w=Object.create(i3v);w.value=a;W!==void 0&&(w.equal=W);a=function(){k4I(w);return w.value};
a[Nk]=w;return a};
j0e=function(a,W){a=cwv(a,W);var w=a[Nk];return[a,function(Z){return e8S(w,Z)},
function(Z){TzE()||nqe(w);e8S(w,Z(w.value))}]};
e8S=function(a,W){TzE()||nqe(a);if(!a.equal(a.value,W)){a.value=W;a.version++;UYx++;YwH(a);var w;(w=LGD)==null||w(a)}};
to=function(a){var W=yS(null);try{return a()}finally{yS(W)}};
_.$1=function(a,W,w){w=w===void 0?"":w;a=j0e(a,W==null?void 0:W.equals);var Z=a[0],N=Z[Nk];N.debugName=wiI(W==null?void 0:W.debugName,w,"[signal]");if(!VS.enablePerformanceTiming)return a;var B=a[1],I=a[2];return[Z,function(X){JwH(function(){return void B(X)},N)},
function(X){JwH(function(){return void I(X)},N)}]};
JwH=function(a,W){tgx("signalSet",W.debugName);try{a()}finally{$YF("signalSet",W.debugName)}};
Mge=function(a,W){var w=_.l(_.$1(a,void 0,"cPpJzc"));a=w.next().value;w=w.next().value;a[FGe]=w;a[Ba]=W;return a};
R8C=function(a){return!!a&&typeof a==="object"&&Object.getPrototypeOf(a)===Object.prototype};
qw7=function(a){return typeof a==="function"&&FGe in a&&typeof a[FGe]==="function"};
Q0U=function(a,W){Object.defineProperty(a,Ba,{get:function(){return W}})};
Iu=function(a,W){if(lk(a)){var w=a.map(function(B){return Iu(B,W)});
Q0U(w,W);return w}if(R8C(a)){w={};a=_.l(Object.entries(a));for(var Z=a.next();!Z.done;Z=a.next()){var N=_.l(Z.value);Z=N.next().value;N=N.next().value;w[Z]=Iu(N,W)}Q0U(w,W);return w}return Mge(a,W)};
xY8=function(a){if(lk(a))return a.map(function(N){return xY8(N)});
if(R8C(a)){var W={};a=_.l(Object.entries(a));for(var w=a.next();!w.done;w=a.next()){var Z=_.l(w.value);w=Z.next().value;Z=Z.next().value;W[w]=xY8(Z)}return W}return qw7(a)?a():a};
s0E=function(){var a={height:0,width:0};if(!R8C(a))throw Error("Ib");var W=Symbol("Jb");return[Iu(a,W),function(w,Z){if(w[Ba]===W)if(typeof Z==="function"){var N=[].concat(_.K8(xY8(w)));Z=Z(N)||N;b3e(w,[].concat(_.K8(Z)))}else b3e(w,Z);else throw Error("Kb");}]};
b3e=function(a,W){if(qw7(a))a[FGe](W);else if(lk(a)&&lk(W))W=Iu(W,a[Ba]),a.length=0,a.push.apply(a,_.K8(W));else if((R8C(a)||lk(a))&&(lk(W)||typeof W==="object"&&W!==null)){W=_.l(Object.entries(W));for(var w=W.next();!w.done;w=W.next()){var Z=_.l(w.value);w=Z.next().value;Z=Z.next().value;var N=a,B=N[w];Object.hasOwn(a,w)?b3e(B,Z):N[w]=Iu(Z,a[Ba])}}else throw Error("Lb");};
uQx=function(a){return Object.create(Object.assign({},Pa,a))};
G4U=function(){var a;return(a=CdF)!=null?a:CdF=uQx({consumerAllowSignalWrites:!0})};
_.XT=function(a,W,w){w=w===void 0?"":w;a=h8e(a);var Z=a[Nk];Z.debugName=wiI(W==null?void 0:W.debugName,w,"[computed]");(W==null?void 0:W.equals)!=null&&(Z.equal=W.equals);return a};
va=function(a){var W=yS(DYE);try{a()}finally{yS(W)}};
ywU=function(a){if(!a.isDisposed)switch(a.effectType){case fpm:dYe.schedule(a);break;case mYS:VgH.schedule(a);break;case z8I:H3C.schedule(a);break;default:_.l9(a.effectType)}};
aVe=function(a){Eqx.push(a);return function(){var W=Eqx.indexOf(a);W!==-1&&Eqx.splice(W,1)}};
wID=function(){if(gj>0)dYe.flush();else for(var a=_.l(WQD),W=a.next();!W.done;W=a.next())W.value.flush()};
NoC=function(a){for(var W=_.l(a),w=W.next();!w.done;w=W.next()){var Z=w.value;for(w=[Z];Z.parent!==void 0;)Z=Z.parent,ZJH(Z)&&a.has(Z)&&w.push(Z);for(;w.length>0;){Z=w.pop();try{Z.run()}finally{a.delete(Z)}}}};
t6C=function(a){gj--;if(a){a=_.l(WQD);for(var W=a.next();!W.done;W=a.next())W.value.clear()}else gj>0||wID()};
Bo7=function(a){var W=a.component;var w=a.debugInstance;a=a.fn;var Z=$E7(W);ou={name:w?Z+" ("+w+")":Z,isReactive:W.componentType!==k1,parent:ou};W=a();ou=ou.parent;return W};
SQ=function(){var a=ou;return a?a.isReactive:!1};
Tv=function(a,W){var w=ou;W&&(ou=W);try{return a()}catch(B){a=B;Y1(a,ou);if(a!==lVS){IVS=ou;W=[];for(var Z=Cr;Z;){var N=void 0;W.push((N=Z.debugName)!=null?N:"[context]");N=void 0;Z=(N=Z.parent)!=null?N:null}PnD=W.reverse()}lVS=a;throw a;}finally{ou=w}};
Y1=function(a,W){try{var w=XIv(W===void 0?null:W);if(w&&!a.componentStack&&(a.componentStack=w,VS.enableComponentStacksInErrorMessages)){var Z=a.message+"\n\nComponent stack: "+w;a.stack&&(a.stack=a.stack.replace(a.message,Z));a.message=Z}}catch(N){}};
XIv=function(a){if(zO(a)&&a.name!==void 0&&a.isReactive!==void 0&&a.parent!==void 0||a===null){for(var W=0,w="";W<20&&a;)w+=a.name+" > ",a=a.parent,W++;a=w.slice(0,-3)}else if(VS.enableContextBasedComponentStacks){a:{for(a=a===void 0?Cr:a;a;){if(Pdv(a))break a;W=void 0;a=(W=a.parent)!=null?W:null}a=null}a=a.getComponentStack().slice(0,20).join(" > ")}else a="";return a};
$E7=function(a){return a.debugName||a.name||"[component]"};
vmm=function(a,W,w){W=Object.create(W);W.effectFn=a;w&&(W.debugName=w);fr(W);VS.enableContextBasedComponentStacks||(W.componentStack=ou);return W};
_.Ka=function(a,W){a=vmm(a,gmI,W);ywU(a)};
_.pa=function(a,W){a=vmm(a,ome,W);ywU(a)};
_.Ao=function(a){var W=Cr;if(W){var w=VS.enableContextBasedComponentStacks?void 0:ou;QTx(W,function(){var Z=yS(G4U());try{VS.enableContextBasedComponentStacks?a():Tv(function(){return void a()},w)}catch(N){throw VS.enableContextBasedComponentStacks&&Y1(N),N;
}finally{yS(Z)}})}};
ho=function(a,W){var w={};(W===void 0||W)&&fr(w);W=GO(w);try{a(w)}finally{GO(W)}return function(){return void xxF(w)}};
_.ik=function(a){return typeof a==="function"?a():(a==null?0:a[kKe])?a.get():a};
UES=function(a){if(Cr)throw Error("rb");ho(a,!1)};
ca=function(a,W){a=GO(a);try{return to(W)}finally{GO(a)}};
eQ=function(a,W,w){w=w===void 0?3:w;var Z=XIv(IVS),N,B;var I=(B=(N=PnD)==null?void 0:N.slice())!=null?B:[];W={componentStack:Z,contextTrace:I,errorSeverity:w,featureFlags:NzE(),tagName:W};return[a,W]};
YxE=function(a,W,w){if(Object.hasOwnProperty.call(OJI,a)&&(a=OJI[a],Object.hasOwnProperty.call(a,W)&&(a=a[W],a instanceof Array))){for(var Z=null,N=!1,B=0,I=a.length;B<I;++B){var X=a[B],v=X.contingentAttribute;if(!v)return X.contract;Z===null&&(Z={});v=Object.hasOwnProperty.call(Z,v)?Z[v]:Z[v]=w(v);if(v===X.requiredValue)return X.contract;v==null&&(N=!0)}if(N)return null}W=SxH[W];return typeof W==="number"?W:null};
pII=function(a,W,w){var Z=null;(a=Tom[a])&&(Z=a[W]);return typeof Z!=="number"&&((a=Tom["*"])&&(Z=a[W]),typeof Z!=="number")?!1:!0===KQI[Z][String(w).toLowerCase()]};
AFv=function(a,W){W=YxE(a.toLowerCase(),W,function(){var Z;(Z=VS.handleError)==null||Z.call.apply(Z,[VS].concat(_.K8(eQ(Error("Qb"),a.toLowerCase()))))});
if(W===null)return null;var w;return(w=rF7[W])!=null?w:null};
h2U=function(a,W,w){if(w===null||w===void 0)return w;a=AFv(a,W);return a===null?w:a(W,w)};
iJC=function(){};
na=function(a,W){for(;a.length>W;)a.pop()};
cFv=function(a){a=Array(a);na(a,0);return a};
e2e=function(a,W,w){if(w==null)a.removeAttribute(W);else{var Z;(Z=W.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":W.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?a.setAttributeNS(Z,W,w):a.setAttribute(W,w)}};
nmx=function(a,W,w){a[W]=w};
LQI=function(a,W,w){a=a.style;if(typeof w==="string")a.cssText=w;else{a.cssText="";for(var Z in w)if(jxU.call(w,Z)){W=a;var N=Z,B=w[Z];N.indexOf("-")>=0?W.setProperty(N,B):W[N]=B}}};
JFv=function(a,W,w){var Z=typeof w;Z==="object"||Z==="function"?a[W]=w:e2e(a,W,w)};
FQ8=function(){var a=new iJC;a[jQ.default]=JFv;a.style=LQI;return a};
M69=function(a,W,w,Z){(Z[W]||Z[jQ.default])(a,W,w)};
qxx=function(a,W,w){W=new R2S(W,w);return a.__incrementalDOMData=W};
La=function(a,W){if(a.__incrementalDOMData)return a.__incrementalDOMData;var w=a.nodeType===1?a.localName:a.nodeName,Z=a.nodeType===1?a.getAttribute("key"):null;W=qxx(a,w,a.nodeType===1?Z||W:null);if(a.nodeType===1&&(a=a.attributes,w=a.length)){Z=W._attrsArr||(W._attrsArr=cFv(w*2));for(var N=0,B=0;N<w;N+=1,B+=2){var I=a[N],X=I.value;Z[B]=I.name;Z[B+1]=X}}return W};
Qxe=function(a,W,w,Z,N){return W==w&&Z==N};
xES=function(a){for(var W=Jo,w=FT();w!==a;){var Z=w.nextSibling;W.removeChild(w);Mk.deleted.push(w);w=Z}};
FT=function(){return Ru?Ru.nextSibling:Jo.firstChild};
qk=function(){Ru=FT()};
uUH=function(a,W,w){qk();var Z;a:{if(Z=Ru){do{var N=Z,B=a,I=W,X=La(N,I);if(bJF(N,B,X.nameOrCtor,I,X.key))break a}while(W&&(Z=Z.nextSibling))}Z=null}Z||(a==="#text"?(w=Qt.createTextNode(""),qxx(w,"#text",null),a=w):(Z=Qt,N=Jo,typeof a==="function"?Z=new a:Z=(N=a==="svg"?"http://www.w3.org/2000/svg":a==="math"?"http://www.w3.org/1998/Math/MathML":N==null||La(N).nameOrCtor==="foreignObject"?null:N.namespaceURI)?Z.createElementNS(N,a):Z.createElement(a),qxx(Z,a,W),a=Z,w&&a.setAttribute("nonce",w)),Mk.created.push(a),
Z=a);w=Z;if(w!==Ru){if(sxE.indexOf(w)>=0)for(a=Jo,W=w.nextSibling,Z=Ru;Z!==null&&Z!==w;)N=Z.nextSibling,a.insertBefore(Z,W),Z=N;else Jo.insertBefore(w,Ru);Ru=w}};
CnH=function(a,W,w){uUH(a,W,w);Jo=Ru;Ru=null;return Jo};
GK7=function(){xES(null);Ru=Jo;Jo=Jo.parentNode};
x1=function(){Ru=Jo.lastChild};
dEI=function(a,W){W=W===void 0?{}:W;var w=W.matches===void 0?Qxe:W.matches;return function(Z,N,B){var I=Mk,X=Qt,v=sxE,U=bk,O=si,S=Ru,T=Jo,p=bJF;Qt=Z.ownerDocument;Mk=new DEe(Z);bJF=w;bk=[];si=[];Ru=null;var h=Jo=Z.parentNode,L,F=fVe.call(Z);if((L=F.nodeType===11||F.nodeType===9?F.activeElement:null)&&Z.contains(L)){for(F=[];L!==h;)F.push(L),L=L.parentNode||(h?L.host:null);h=F}else h=[];sxE=h;try{return a(Z,N,B)}finally{Z=Mk,uk&&Z.deleted.length>0&&uk(Z.deleted),Qt=X,Mk=I,bJF=p,bk=U,si=O,Ru=S,Jo=T,
sxE=v}}};
mES=function(a,W,w,Z){Gv.push(M69);Gv.push(a);Gv.push(W);Gv.push(w);Gv.push(Z)};
z2e=function(a,W,w){var Z=si;W=W._attrsArr||(W._attrsArr=cFv(Z.length));for(var N=!W.length||!1,B=0;B<Z.length;B+=2){var I=Z[B];if(N)W[B]=I;else if(W[B]!==I)break;var X=Z[B+1];if(N||W[B+1]!==X)W[B+1]=X,mES(a,I,X,w)}if(B<Z.length||B<W.length){for(B=N=B;B<W.length;B+=2)DT[W[B]]=W[B+1];for(B=N;B<Z.length;B+=2)N=Z[B],I=Z[B+1],DT[N]!==I&&mES(a,N,I,w),W[B]=N,W[B+1]=I,delete DT[N];na(W,Z.length);for(var v in DT)mES(a,v,void 0,w),delete DT[v]}a=V6E;V6E=w=Gv.length;for(v=a;v<w;v+=5)(0,Gv[v])(Gv[v+1],Gv[v+
2],Gv[v+3],Gv[v+4]);V6E=a;na(Gv,a);na(Z,0)};
fa=function(a){uUH("#text",null);var W=Ru;var w=La(W);if(w.text!==a){w=w.text=a;for(var Z=1;Z<arguments.length;Z+=1)w=(0,arguments[Z])(w);W.data!==w&&(W.data=w)}};
wZC=function(a,W,w){if(w===!1&&HJv.has(W))e2e(a,W,null);else if(W!=="idomKey"&&W!=="skip"&&W!=="skipchildren"&&W!=="children"&&W!=="el"){if(W.startsWith("on"))if(W[2]===":"){if(w===void 0||w===null){var Z;(Z=VS.handleError)==null||Z.call.apply(Z,[VS].concat(_.K8(eQ(Error("Wb`"+W),a.tagName))));a[W]=void 0;return}if(typeof w!=="object"||w===null)throw Error("Xb`"+W+"`"+typeof w);if(typeof w.getFn!=="function")throw Error("Yb`"+W+"`"+Object.keys(w));var N=w.getFn(0),B=W.slice(3);if((Z=SQ())&&a["on"+
B]===void 0)a.addEventListener(B,N),_.Ao(function(){return void a.removeEventListener(B,N)});
else if(Z||!yFv.includes(B))a["on"+B]=N}else{Eme(a,W,w);return}else if(W.startsWith("data-")&&typeof w==="string")try{w=a8I(w)}catch(I){w="zSoyz"}typeof w!=="function"||a._disposeEffects!=null?(VS.enableAttributeSanitization&&(w=h2U(a.tagName,W,w)),W==="style"?W8E(a,W,w):W.startsWith("prop:")?(W=W.slice(5),a[W]=w):Eme(a,W,w)):(a._signalProps||(a._signalProps=[]),a._signalValues||(a._signalValues=[]),a._signalProps.push(W))}};
ZH8=function(a,W,w){w=(w===void 0?{}:w).isReactive;if(W==null?0:W.el){var Z=W.el;if(typeof Z==="function")Z(a);else{var N;(N=Z.onRender)==null||N.call(Z,a);a._disposeRef||(a._disposeRef=function(){var B;(B=Z.onUnmount)==null||B.call(Z);delete a._disposeRef},w&&_.Ao(function(){var B;
return void((B=a._disposeRef)==null?void 0:B.call(a))}))}}};
Nte=function(a){return zO(a)&&dj in a};
tJU=function(a){return Nte(a)?a[dj].flattened:a};
$dI=function(a,W){var w=_.TH.apply(2,arguments),Z;W=(Z=W)!=null?Z:{};Z={};return Z.type=a,Z.props=W,Z.children=w,Z[zv]=!0,Z};
_.Ha=function(a){return a.children};
Ei=function(a){var W=BtH!==$dI;BtH=a?l87:$dI;return W};
aT=function(a){return _.tL(a)?"nodeType"in a:!1};
WS=function(){return document.createTextNode("")};
ww=function(a){a=document.createTextNode(String(a));a._isSignalTextNode=!0;return a};
I8F=function(a){var W=document.createElement("div");if(!(a instanceof iq)){if(a.contentKind!==Z7)throw Error("Ub");a=cP(a.toString())}_.xf(W,a);a=_.l(W.childNodes);for(var w=a.next();!w.done;w=a.next())w.value._isSafeOrSanitizedHtmlNode=!0;return W};
Nx=function(a){a=typeof a;return a==="string"||a==="number"||a==="boolean"};
Pae=function(a){return a instanceof BP||g5(a)||"function"==typeof _.uq&&a instanceof _.uq||!1};
XZe=function(a,W){var w=a.parentElement;if(!w)return W;w.replaceChild(W,a);return W};
vjS=function(a,W){var w=a[0].parentElement;if(w)if(a[0].previousSibling||a[a.length-1].nextSibling){w.insertBefore(W,a[0]);for(var Z=a.length-1;Z>=0;Z--)w.removeChild(a[Z])}else w.textContent="",w.appendChild(W);return W};
gjD=function(a,W){if(a[0].parentElement)for(var w=a[0].parentElement,Z=W.length,N=a.length,B=Z,I=0,X=0,v=a[N-1].nextSibling,U=null;I<N||X<B;)if(a[I]===W[X])I++,X++;else{for(;a[N-1]===W[B-1];)N--,B--;if(N===I)for(var O=B<Z?X?W[X-1].nextSibling:W[B-X]:v;X<B;){var S=W[X++];w.insertBefore(S,O)}else if(B===X)for(;I<N;)O=a[I],U&&U.has(O)||w.removeChild(O),I++;else if(a[I]===W[B-1]&&W[X]===a[N-1])O=a[--N].nextSibling,w.insertBefore(W[X++],a[I++].nextSibling),w.insertBefore(W[--B],O),a[N]=W[B];else{if(!U)for(U=
new Map,O=X;O<B;)U.set(W[O],O++);O=U.get(a[I]);if(O==null)w.removeChild(a[I]),I++;else if(X<O&&O<B){S=I;for(var T=1,p=void 0;++S<N&&S<B&&(p=U.get(a[S]))!=null&&p===O+T;)T++;if(T>O-X)for(S=a[I];X<O;)w.insertBefore(W[X++],S);else w.replaceChild(W[X++],a[I++])}else I++}}return W};
kPE=function(a){if(Array.isArray(a)){if(a.length>1)throw Error("gc`"+a.length+"`"+a.map(ojS).join(", "));a=a[0]}if(a==null)return null;if(!(a instanceof _.Fr)){var W,w;if((W=window)==null?0:(w=W.trustedTypes)==null?0:w.isScript(a))throw Error("fc");if(String(a).trim().length===0)return null;throw Error("hc`"+ojS(a));}return a};
UdC=function(a){if(Array.isArray(a)){if(a.length>1)throw Error("ic`"+a.length+"`"+a.map(ojS).join(", "));a=a[0]}if(a==null)return null;if(!rID(a)){if(String(a).trim().length===0)return null;throw Error("jc`"+ojS(a));}return a};
ojS=function(a){return"("+typeof a+") "+(a!=null&&typeof a==="object"?a.constructor.name:typeof a)+" "+a};
$6=function(a,W){function w(){N=!1;W.isControlFlowComponent&&gj++;var B=Z[0],I=Z[dj].flattened,X=Ei(!0);try{var v=a(),U=OHS(B,v,Z);Array.isArray(U)||(Z[dj].flattened=[U]);var O=Z[dj].flattened;if(I&&(!Array.isArray(I)||I.length!==0)){var S=Array.isArray(I)?I[0]:I,T=S[tS],p=S._disposeEffects;S._disposeEffects=void 0;S=Array.isArray(O)?O[0]:O;S[tS]=T;S[tS]&&(S[tS].numNodes=S===O?1:O.length);S._disposeEffects=p}Z[0]=U;W.isControlFlowComponent&&t6C(!1)}catch(h){throw W.isControlFlowComponent&&t6C(!0),
h;}finally{Ei(X)}}
W=W===void 0?{}:W;var Z=SnF(),N=!0;_.pa(function(){(Yne==null?0:Yne.logger)&&!N?Yne.logger.logGraft(Z[0],w):w()},W.debugName);
return Z};
OHS=function(a,W,w){for(;typeof W==="function";)W=W();if(W!=null&&W[zv]){var Z,N,B;(B=VS.handleError)==null||B.call.apply(B,[VS].concat(_.K8(eQ(Error("kc`"+((Z=W.type)==null?void 0:Z.TAG_NAME)),(N=W.type)==null?void 0:N.TAG_NAME))))}if(a==null)return W==null?WS():Nx(W)?ww(W):Pae(W)?ww(W.toString()):aT(W)?W:W.length===0?WS():Ttm(W,w);if(aT(a)){if(W==null)return XZe(a,WS());if(Nx(W))return K8S(a,W);if(Pae(W))return K8S(a,W.toString());if(aT(W))return XZe(a,W);if(W.length===0)return XZe(a,WS());W=Ttm(W,
w);gjD([a],w[dj].flattened);return W}a=BS(a);if(W==null)return vjS(a,WS());if(Nx(W))return vjS(a,ww(W));if(Pae(W))return vjS(a,ww(W.toString()));if(aT(W))return gjD(a,[W])[0];if(W.length===0)return vjS(a,WS());W=Ttm(W,w);gjD(a,w[dj].flattened);return W};
K8S=function(a,W){a.nodeType===Node.TEXT_NODE?a.textContent!==String(W)&&(a.textContent=String(W)):a=XZe(a,ww(W));return a};
BS=function(a,W,w){return pZS(a,W!=null?W:[],w===void 0?!1:w)};
Ttm=function(a,W){var w=BS(a,void 0,!0);if(w.length===0)return WS();W[dj].flattened=w;return a};
pZS=function(a,W,w,Z,N){W=W===void 0?[]:W;w=w===void 0?!1:w;N=N===void 0?-1:N;if(a==null)return W;if(a instanceof lG)return a=a.render(),pZS(a,W,w,Z,N);if(aT(W)&&W.nodeType===Node.ELEMENT_NODE)switch(W.tagName){case "SCRIPT":w=kPE(a);w!==null&&_.q_(W,w);return;case "STYLE":w=UdC(a);w!==null&&(W.textContent=_.AIe(w));return}Nx(a)&&(a=ww(a),Z&&w&&(Z[N]=a));if(a!=null&&a.contentKind===Z7||a instanceof iq){w=I8F(a);w=Array.from(w.childNodes);w=_.l(w);for(a=w.next();!a.done;a=w.next())rlI(W,a.value);return W}Pae(a)&&
(a=ww(a.toString()),Z&&w&&(Z[N]=a));if(aT(a))return rlI(W,a);if(Array.isArray(a)){for(var B=0;B<a.length;B++)pZS(a[B],W,w,a,B);return W}if(typeof a==="function"){a=$6(a,{debugName:"qmF2ne"})[0];if(Array.isArray(a)){w=_.l(a);for(a=w.next();!a.done;a=w.next())rlI(W,a.value);return W}Z&&w&&(Z[N]=a);return rlI(W,a)}if(a!=null&&a[zv]){Z=Ei(!0);N=BtH;try{B=N.apply(null,[a.type,a.props].concat(_.K8(a.children)))}finally{Ei(Z)}return pZS(B,W,w)}var I;(I=VS.handleError)==null||I.call.apply(I,[VS].concat(_.K8(eQ(Error("lc")))));
return W};
SnF=function(a){var W={};W=Object.assign([],(W[dj]={flattened:[]},W));if(!a)return W;W[0]=Ttm(a,W);return W};
rlI=function(a,W){Array.isArray(a)?a.push(W):a.appendChild(W);return a};
IT=function(a){if(!VS.enableLazyTsx)return a;if(Array.isArray(a)){for(var W=0;W<a.length;W++)a[W]=IT(a[W]);return a}return a instanceof lG?(a=a.render(),IT(a)):a};
hym=function(a,W){var w,Z,N=$E7(a),B=function(p){Z=p;p=Ei(!0);var h=yS(PS);tgx("render",N);try{w=IT(a(W))}finally{$YF("render",N),yS(h),Ei(p)}};
B=VS.enableContextPerComponent?lpI(B,N):ho(B,VS.alwaysTrackContexts||!!Cr);Pdv(Z);if(!W.renderedFromIdom){var I=GO(Z);try{return Alv(a,W,w),w}finally{GO(I)}}!Nte(w)&&Array.isArray(w)&&(w=SnF(w));var X=tJU(w);I=Array.isArray(X)?X[0]:X;var v=!1;if(I){var U,O=(U=W==null?void 0:W.idomKey)!=null?U:a;U=X!==I;I._disposeEffects=B;var S=I[tS]||{},T=Nte(w)?w:S.sourceDynamicRange;Object.assign(S,{key:O,numNodes:U?X.length:1,context:Z,higherOrder:!!I[tS],sourceDynamicRange:T});I[tS]=S}else v=!0;(function(){var p=
GO(Z);try{Alv(a,W,X)}finally{GO(p)}})();
v&&B();return w};
iHm=function(a){var W={},w;for(w in a)W={prev$jscomp$23:void 0,next$jscomp$32:void 0},W.prev$jscomp$23=Xf[w],W.next$jscomp$32=a[w],Xf[w]=function(Z){return function(){var N=_.TH.apply(0,arguments);Z.prev$jscomp$23.apply(null,_.K8(N));Z.next$jscomp$32.apply(null,_.K8(N))}}(W)};
clF=function(){if(SQ())throw Error("mc");return vS};
eyF=function(a,W){if(!a.__unmounted&&W){a.__unmounted=!0;try{a.didUnmount()}catch(N){var w,Z;(Z=VS.handleError)==null||Z.call.apply(Z,[VS].concat(_.K8(eQ(N,(w=a.JSC$8174___type)==null?void 0:w.TAG_NAME))))}Xf.didUnmount(a);a.el=null;W.__instance&&delete W.__instance}};
jgx=function(a,W,w){a._signalProps!=null&&a._disposeEffects==null&&((w===void 0?0:w)?a._disposeEffects=ho(function(){return void njD(a,W)},VS.alwaysTrackContexts||!!Cr):njD(a,W))};
njD=function(a,W){_.pa(function(){for(var w=a._signalProps,Z=a._signalValues,N=0;N<w.length;N++){var B=w[N],I=W[B]();Z[N]!==I&&(Z[N]=I,wZC(a,B,I))}},"e3YVbb")};
L8I=function(a,W,w){var Z,N=[];a._disposeEffects=ho(function(){_.pa(function(){var B=w();if(B===null||B===void 0)B="";if(Nx(B)||B===null)Z!=null||(Z=document.createTextNode("")),Z.parentNode!==a&&(Z._isSignalTextNode=!0,a.insertBefore(Z,W)),Z.textContent=String(B);else if(B!=null&&B.contentKind===Z7||B instanceof iq){for(var I=N.length>0?N[N.length-1].nextSibling:W,X=_.l(N),v=X.next();!v.done;v=X.next())a.removeChild(v.value);B=I8F(B);N=Array.from(B.childNodes);B=_.l(N);for(X=B.next();!X.done;X=B.next())a.insertBefore(X.value,
I)}else throw v=(X=(I=ou)==null?void 0:I.name)!=null?X:"unknown",Error("bc`"+v+"`"+typeof B);},"VvDgC")},VS.alwaysTrackContexts||!!Cr)};
MJH=function(a,W){var w=_.TH.apply(2,arguments);W!=null||(W={});return!VS.enableLazyTsx||ou!=null&&!SQ()?JlC(a,W,w):new F89(a,W,w)};
JlC=function(a,W,w){if(a===_.Ha)return w;if(typeof a==="function"){ou&&!SQ()&&(W.renderedFromIdom=!0);var Z=function(){var B=Rym(a,W,w);if(B)return B;w.length>0&&(W.children=w.length===1?w[0]:w);if(a.componentType===k1){var I;lpI(function(){var X=W;if(a.componentType!==k1)I=!1;else{X||(X={});var v=new gw(X,a),U=yS(PS);try{var O=v.render(X)}finally{yS(U)}O instanceof HTMLElement?(O.__instance=v,v.el=O,v.JSC$8174___type=a,a.TAG_NAME=O.tagName.toLowerCase(),Xf.didPatch(v),I=O):I=O}},a.name);
if(I)return I}return hym(a,W)};
return VS.enableContextBasedComponentStacks?Z():Bo7({component:a,debugInstance:W.debugInstance,fn:Z})}Z=qnm(a,W);for(var N in W)wZC(Z,N,W[N]);jgx(Z,W);BS(w,Z);ZH8(Z,W,{isReactive:!0});QgH(Z,W);return Z};
qnm=function(a,W){a=(xdx.has(a.toLowerCase())?0:bHm.has(a.startsWith("svg:")?a.replace("svg:",""):a))?document.createElementNS("http://www.w3.org/2000/svg",a.startsWith("svg:")?a.replace("svg:",""):a):sgS(a,W)||document.createElement(a);a[uIx]=!0;return a};
Ca9=function(a){if(a){var W;(W=a._disposeRef)==null||W.call(a);var w;(w=a._disposeEffects)==null||w.call(a);a.__instance&&a.__instance instanceof oT&&(W=a.__instance,eyF(W,a),W instanceof gw&&W.disposeEffects());for(W=0;W<a.childNodes.length;W++)Ca9(a.childNodes[W])}};
DdU=function(a){GPe.push(a)===1&&requestAnimationFrame(function(){setTimeout(function(){var W=[].concat(_.K8(GPe));GPe=[];W=_.l(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;try{for(var Z=0;Z<w.length;Z++)Ca9(w[Z])}catch(N){Z=w=void 0,(Z=(w=VS).handleError)==null||Z.call.apply(Z,[w].concat(_.K8(eQ(N))))}}})})};
_.k=function(a,W){return BtH.apply(null,[a,W].concat(_.K8(_.TH.apply(2,arguments))))};
ddU=function(){var a=document.body.firstElementChild;window.ng||a.__ngContext__||(a.__ngContext__={},a.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=f8C)};
_.Y=function(a){var W=a.cond;if(W===void 0)return a.else&&a.else();var w=_.XT(function(){return!!W()},void 0,"y0Xknf"),Z=function(){var N=W();
if(!N){var B;(B=VS.handleError)==null||B.call.apply(B,[VS].concat(_.K8(eQ(mdS.nonNullableCondIsNull()))))}return N};
return $6(function(){var N=w(),B;ho(function(){var I=yS(PS);try{B=IT(N?a.then(Z):a.else&&a.else())}finally{yS(I)}},!0);
return B},{debugName:a.debugInstance,
isControlFlowComponent:!0})};
VJH=function(a){return _.Y(a)};
_.k6=function(a){return a.keyBy==="INDEX"?zyD(a):HH8(a)};
ylm=function(a){a=_.l(a);for(var W=a.next();!W.done;W=a.next()){var w=void 0;(w=W.value)==null||w()}};
HH8=function(a){var W=a.keyBy===void 0||a.keyBy==="REFERENCE",w=W?function(O){return O}:a.keyBy,Z=[],N=[],B=[],I=[],X=[],v=[],U=!0;
_.Ao(function(){ylm(I)});
return $6(function(){var O=a.each(),S=O.length;if(S===0){if(Z.length===0&&!U)return B;ylm(I);Z=O;N=[];for(O=0;O<Z.length;O++)N.push(w(Z[O]));B=[];I=[];X=[];v=[];a.fallback&&(I[0]=Ejv(function(){B[0]=IT(a.fallback())}));
U=!1;return B}for(var T=new aWE,p=Z.length-1;p>=0;p--)T.push(N[p],p);p=Array(S);for(var h=Array(S),L=Array(S),F=Array(S),x=Array(W?0:S),G={i$jscomp$485:0};G.i$jscomp$485<S;G={i$jscomp$485:G.i$jscomp$485,item$jscomp$103:void 0,key$jscomp$523:void 0},G.i$jscomp$485++){G.item$jscomp$103=O[G.i$jscomp$485];G.key$jscomp$523=w(G.item$jscomp$103);var V=T.pop(G.key$jscomp$523);V!=null?(L[G.i$jscomp$485]=B[V],h[G.i$jscomp$485]=N[V],p[G.i$jscomp$485]=I[V],F[G.i$jscomp$485]=X[V],W||(x[G.i$jscomp$485]=v[V]),va(function(d){return function(){F[d.i$jscomp$485](d.i$jscomp$485);
if(!W)x[d.i$jscomp$485](d.item$jscomp$103)}}(G)),delete I[V]):p[G.i$jscomp$485]=Ejv(function(d){return function(){var ZD=_.l(_.$1(d.i$jscomp$485,void 0,"g4fKif")),aC=ZD.next().value;
ZD=ZD.next().value;F[d.i$jscomp$485]=ZD;h[d.i$jscomp$485]=d.key$jscomp$523;if(W)L[d.i$jscomp$485]=IT(a.children(d.item$jscomp$103,aC));else{var Bv=_.l(_.$1(d.item$jscomp$103,void 0,"Ile0Kc"));ZD=Bv.next().value;Bv=Bv.next().value;x[d.i$jscomp$485]=Bv;L[d.i$jscomp$485]=IT(a.children(ZD,aC))}}}(G))}ylm(I);
Z=O;N=h;B=L;I=p;X=F;v=x;U=!1;return L},{debugName:a.debugInstance,
isControlFlowComponent:!0})};
zyD=function(a){var W=[],w=[],Z=[],N=[],B=!1;_.Ao(function(){for(var I=_.l(N),X=I.next();!X.done;X=I.next())X=X.value,X()});
return $6(function(){var I=a.each();B&&I.length>0&&(N.pop()(),W.pop(),B=!1);for(var X=Array(I.length),v={i$jscomp$486:0};v.i$jscomp$486<I.length;v={i$jscomp$486:v.i$jscomp$486},v.i$jscomp$486++)if(v.i$jscomp$486<W.length)W[v.i$jscomp$486]!==I[v.i$jscomp$486]&&(va(function(O){return function(){return void w[O.i$jscomp$486](I[O.i$jscomp$486])}}(v)),W[v.i$jscomp$486]=I[v.i$jscomp$486]),X[v.i$jscomp$486]=Z[v.i$jscomp$486];
else{var U=Ejv(function(O){return function(){W[O.i$jscomp$486]=I[O.i$jscomp$486];var S=_.l(_.$1(I[O.i$jscomp$486],void 0,"QVJXFd")),T=S.next().value;S=S.next().value;w[O.i$jscomp$486]=S;X[O.i$jscomp$486]=IT(a.children(T,O.i$jscomp$486))}}(v));
N[v.i$jscomp$486]=U}for(;W.length>I.length;)W.pop(),N.pop()(),w.pop();I.length===0&&!B&&a.fallback&&(v=Ejv(function(){X[0]=IT(a.fallback())}),N[0]=v,B=!0);
return Z=X},{debugName:a.debugInstance,
isControlFlowComponent:!0})};
Ejv=function(a){var W=Cr;return ho(function(w){var Z=yS(PS);try{w.parent=W,a(w)}finally{yS(Z)}},!1)};
_.Ut=function(a){return a};
_.Sm=function(a){return{isDefault:!0,children:a.children}};
_.Y6=function(a){var W=Wox(a),w=_.XT(function(){return wHC(W)},void 0,"BHmkEe");
return $6(function(){var Z=w(),N;ho(function(){var B=yS(PS);try{N=IT(Z())}finally{yS(B)}});
return N},{debugName:a.debugInstance,
isControlFlowComponent:!0})};
Wox=function(a){a=a.children;return Array.isArray(a)?a:[a]};
ZMF=function(a){var W=a.props;a=a.getChildren()[0];return W.when?{when:W.when,children:a}:{isDefault:!0,children:a}};
wHC=function(a){var W=function(){return null};
a=_.l(a);for(var w=a.next();!w.done;w=a.next())if(w=w.value,w!=null&&w[zv]&&(w=w.type===_.Sm?{isDefault:!0,children:w.children[0]}:{when:w.props.when,children:w.children[0]}),w instanceof lG&&(w=ZMF(w)),w.isDefault)W=w.children;else if(w.when())return w.children;return W};
NU9=function(a){var W=null,w;return{value:null,onRender:function(Z){if(w&&Z!==w){var N;(N=W)==null||N();w._disposeRef=void 0}w=Z;W=a(Z)||null},
onUnmount:function(){var Z;(Z=W)==null||Z();W=null}}};
$6x=function(a){var W=clF();if(W==null)throw t2x.PRIMITIVE_INVALID_HOOK_CALL();var w=W.hookCounter++;W.hooks||(W.hooks=[]);var Z=W.hooks;Z[w]||(Z[w]={key:a,host:W});if(a!==Z[w].key){if(W.JSC$8174___type){var N;a=(N=W.JSC$8174___type)==null?void 0:N.name}else a=W instanceof gw?$E7(W.functionComponent):"<"+W.el.tagName.toLowerCase()+">";throw t2x.OUT_OF_ORDER_HOOK_CALL(a);}return Z[w]};
BUE=function(a,W){return!a||a.length!==(W==null?void 0:W.length)||a.some(function(w,Z){return w!==W[Z]})};
TU=function(a,W){var w=$6x("onChange"),Z=clF();BUE(w.deps,W)&&(w.deps=W,w.pendingEffect=a,Z.__syncEffects||(Z.__syncEffects=[]),Z.__syncEffects.push(w))};
XHS=function(a,W){var w;W!=null?w=W:w=_.FB9(document).getAppContext();w.get(lW7).JSC$25345_getEventTarget().dispatchEvent(new IWD(PFx,a,Z7))};
_.KF=function(a,W){var w=w===void 0?{enableDevtools:!1}:w;var Z=function(){var B=yS(PS);try{return ho(function(){var I=_.FB9(_.hv(a)),X;var v=Vm7({rootElement:{value:a},appContext:w.appContext||(I==null?void 0:(X=I.getOptionalAppContext)==null?void 0:X.call(I)),dispatcher:I});I=GO(v);v=Ei(!0);gj++;try{BS(W(),a),t6C(!1)}catch(U){throw t6C(!0),U;}finally{Ei(v),GO(I)}},!1)}catch(I){throw VS.enableContextBasedComponentStacks&&Y1(I),I;
}finally{yS(B)}},N=VS.enableContextBasedComponentStacks?Z():Tv(Z);
a[vUD]=!0;w.legacyTriggerSoyRendererEvents&&XHS(a,w.appContext);return function(){a.textContent="";N();a[vUD]=!1}};
_.pF=function(a){if(ZJH(HM)){var W;(W=VS.handleError)==null||W.call.apply(W,[VS].concat(_.K8(eQ(Error("ac")))))}var w=Cr,Z=VS.enableContextBasedComponentStacks?void 0:ou;Promise.resolve().then(function(){if(w&&!w.isDisposed){var N=GO(w);try{VS.enableContextBasedComponentStacks?a():Tv(function(){return void a()},Z)}catch(B){throw VS.enableContextBasedComponentStacks&&Y1(B),B;
}finally{GO(N)}}})};
rw=function(a,W){TU(function(){return to(a)},W)};
_.AS=function(a){SQ()?_.pF(function(){to(a)}):TU(function(){return to(a)},[])};
oUF=function(a){var W=[].concat(_.K8(a));a.length=0;a=_.l(W);for(W=a.next();!W.done;W=a.next()){W=W.value;gUE(W);var w=W.pendingEffect;W.pendingEffect=null;if(w=w==null?void 0:w())W.pendingCleanup=w}};
gUE=function(a){var W=a.pendingCleanup;a.pendingCleanup=null;W==null||W()};
kcx=function(a,W){if(SQ())return a();var w=$6x("useMemoInternal");BUE(w.deps,W)&&(w.deps=W,w.value=a());return w.value};
hS=function(a,W){return kcx(a,W)};
iG=function(a){return kcx(a,[])};
U6C=function(){var a=_.TH.apply(0,arguments),W=iG(function(){return a.map(function(w){return _.$1(w,void 0,"lnSD0c")})});
rw(function(){for(var w=0;w<a.length;w++)(0,W[w][1])(a[w])},a);
return W.map(function(w){return _.l(w).next().value})};
cS=function(a){return iG(function(){return{value:a}})};
_.em=function(a,W){if(!a)return null;a=Object.keys(a);a=_.l(a);for(var w=a.next();!w.done;w=a.next()){w=w.value;var Z=w.toLowerCase();if(Z.indexOf(W,Z.length-W.length)>-1)return w}return null};
_.jm=function(){var a=arguments,W=_.nF;a.length>1?W[a[0]]=a[1]:a.length===1&&Object.assign(W,a[0])};
_.LF=function(a,W){return a in _.nF?_.nF[a]:W};
_.JS=function(a,W){return!!_.LF(a,W)};
OMF=function(a){var W=_.nF.EXPERIMENT_FLAGS;return W?W[a]:void 0};
Yfm=function(a){SfF.forEach(function(W){return W(a)})};
_.Mx=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(W){_.Ff(W)}}:a};
_.Ff=function(a){var W=_.RT("yt.logging.errors.log");W?W(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(W=_.LF("ERRORS",[]),W.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.jm("ERRORS",W));Yfm(a)};
_.qx=function(a,W,w,Z,N){var B=_.RT("yt.logging.errors.log");B?B(a,"WARNING",W,w,Z,void 0,N):(B=_.LF("ERRORS",[]),B.push([a,"WARNING",W,w,Z,void 0,N]),_.jm("ERRORS",B))};
Ko9=function(a,W){W=a.split(W);for(var w={},Z=0,N=W.length;Z<N;Z++){var B=W[Z].split("=");if(B.length===1&&B[0]||B.length===2)try{var I=TU9(B[0]||""),X=TU9(B[1]||"");if(I in w){var v=w[I];Array.isArray(v)?_.ZE(v,X):w[I]=[v,X]}else w[I]=X}catch(T){var U=T,O=B[0],S=String(Ko9);U.args=[{key:O,value:B[1],query:a,method:pHE===S?"unchanged":S}];rfe.hasOwnProperty(O)||_.qx(U)}}return w};
AfU=function(a){var W=[];_.T5.forEach(a,function(w,Z){var N=_.Qv(Z);_.x6(Array.isArray(w)?w:[w],function(B){B==""?W.push(N):W.push(N+"="+_.Qv(B))})});
return W.join("&")};
_.bG=function(a){a.charAt(0)==="?"&&(a=a.substring(1));return Ko9(a,"&")};
_.st=function(a){return a.indexOf("?")!==-1?(a=(a||"").split("#")[0],a=a.split("?",2),_.bG(a.length>1?a[1]:a[0])):{}};
_.uG=function(a,W){return h3F(a,W||{},!0)};
iMe=function(a,W){return h3F(a,W||{},!1)};
h3F=function(a,W,w){var Z=a.split("#",2);a=Z[0];Z=Z.length>1?"#"+Z[1]:"";var N=a.split("?",2);a=N[0];N=_.bG(N[1]||"");for(var B in W)if(w||!_.T5.containsKey(N,B))N[B]=W[B];return _.CF(a,N)+Z};
dw=function(a){if(!W)var W=window.location.href;var w=_.GU(a)[1]||null,Z=_.D7(a);return w&&Z?fF(a,W):Z?_.D7(W)===Z&&(Number(_.GU(W)[4]||null)||null)===(Number(_.GU(a)[4]||null)||null):!0};
_.e3E=function(a){a=cfC(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
cfC=function(a){a=_.D7(a);return a!==null?a.split(".").reverse():null};
TU9=function(a){return a&&a.match(nUS)?a:mB(a)};
_.Vv=function(a){return new jU9(a)};
_.K=function(){LoU||(LoU=new Jf8);return LoU};
M2U=function(a){var W=_.zU,w,Z;_.P(function(N){w=_.K();return(Z=w.resolve(_.Vv(W)))?(a(Z),N.return(Promise.resolve(Z))):N.return(w.resolve(new Foe(W)).then(function(B){a(B);return B}))})};
_.r=function(a){a=HS(a);return typeof a==="string"&&a==="false"?!1:!!a};
_.yv=function(a,W){a=HS(a);return a===void 0&&W!==void 0?W:Number(a||0)};
R38=function(a){a=HS(a);return Array.isArray(a)?_.pY(a,function(W){return Number(W||0)}):[Number(a||0)]};
_.Et=function(a){a=HS(a);return a!==void 0?String(a):""};
_.a0=function(a){a=HS(a);return Array.isArray(a)?_.pY(a,function(W){return String(W||"")}):[String(a||"")]};
qfU=function(){return _.LF("EXPERIMENTS_TOKEN","")};
HS=function(a){return _.LF("EXPERIMENT_FLAGS",{})[a]};
QUv=function(){for(var a=[],W=_.LF("EXPERIMENTS_FORCED_FLAGS",{}),w=_.l(Object.keys(W)),Z=w.next();!Z.done;Z=w.next())Z=Z.value,a.push({key:Z,value:String(W[Z])});w=_.LF("EXPERIMENT_FLAGS",{});Z=_.l(Object.keys(w));for(var N=Z.next();!N.done;N=Z.next())N=N.value,N.startsWith("force_")&&W[N]===void 0&&a.push({key:N,value:String(w[N])});return a};
bME=function(){if(!x6S)return null;var a=x6S();return"open"in a?a:null};
_.sUU=function(a){switch(_.Wi(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Wi=function(a){return a&&"status"in a?a.status:-1};
_.wz=function(a,W){typeof a==="function"&&(a=_.Mx(a));return window.setTimeout(a,W)};
_.Zp=function(a,W){typeof a==="function"&&(a=_.Mx(a));return window.setInterval(a,W)};
_.NY=function(a){window.clearTimeout(a)};
CFv=function(a){a=_.st(a);for(var W=_.l(uve),w=W.next();!w.done;w=W.next())if(a[w.value]!==void 0)return!0;return!1};
fWe=function(a,W,w,Z,N,B,I,X){w=w===void 0?"GET":w;Z=Z===void 0?"":Z;X=X===void 0?!1:X;var v=bME();if(!v)return null;var U=function(){(v&&"readyState"in v?v.readyState:0)===4&&W&&_.Mx(W)(v)};
"onloadend"in v?v.addEventListener("loadend",U,!1):v.onreadystatechange=U;_.r("debug_forward_web_query_parameters")&&(a=GcC(a,window.location.search));v.open(w,a,!0);B&&(v.responseType=B);I&&(v.withCredentials=!0);w=w==="POST"&&(window.FormData===void 0||!(Z instanceof FormData));if(N=D6e(a,N))for(var O in N)v.setRequestHeader(O,N[O]),"content-type"===O.toLowerCase()&&(w=!1);w&&v.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(X&&"setAttributionReporting"in XMLHttpRequest.prototype){a=
{eventSourceEligible:!0,triggerEligible:!1};try{v.setAttributionReporting(a)}catch(S){_.qx(S)}}v.send(Z);return v};
D6e=function(a,W){W=W===void 0?{}:W;var w=dw(a),Z=_.LF("INNERTUBE_CLIENT_NAME"),N=_.r("web_ajax_ignore_global_headers_if_set"),B;for(B in d6E){var I=_.LF(d6E[B]),X=B==="X-Goog-AuthUser"||B==="X-Goog-PageId";B!=="X-Goog-Visitor-Id"||I||(I=_.LF("VISITOR_DATA"));var v;if(!(v=!I)){if(!(v=w||(_.D7(a)?!1:!0))){v=a;var U;if(U=_.r("add_auth_headers_to_remarketing_google_dot_com_ping")&&B==="Authorization"&&(Z==="TVHTML5"||Z==="TVHTML5_UNPLUGGED"||Z==="TVHTML5_SIMPLY"))U=cfC(v),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&&(v=_.tw(v)||"",v=v.split("/"),v="/"+(v.length>1?v[1]:""),U=v==="/pagead");v=U?!0:!1}v=!v}v||N&&W[B]!==void 0||Z==="TVHTML5_UNPLUGGED"&&X||(W[B]=I)}"X-Goog-EOM-Visitor-Id"in W&&"X-Goog-Visitor-Id"in W&&delete W["X-Goog-Visitor-Id"];if(w||!_.D7(a))W["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(w||!_.D7(a)){try{var O=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(S){}O&&(W["X-YouTube-Time-Zone"]=
O)}document.location.hostname.endsWith("youtubeeducation.com")||!w&&_.D7(a)||(W["X-YouTube-Ad-Signals"]=AfU(m6S()));return W};
_.V2e=function(a,W){var w=_.D7(a);_.r("debug_handle_relative_url_for_query_forward_killswitch")||!w&&dw(a)&&(w=document.location.hostname);var Z=_.tw(a);Z=(w=w&&(w.endsWith("youtube.com")||w.endsWith("youtube-nocookie.com")))&&Z&&Z.startsWith("/api/");if(!w||Z)return a;var N=_.bG(W),B={};_.x6(uve,function(I){N[I]&&(B[I]=N[I])});
return iMe(a,B)};
z37=function(a,W){W.method="POST";W.postParams||(W.postParams={});return _.Bi(a,W)};
HM7=function(a,W){var w=_.LF("XSRF_FIELD_NAME"),Z;W.headers&&(Z=W.headers["Content-Type"]);return!W.excludeXsrf&&(!_.D7(a)||W.withCredentials||_.D7(a)===document.location.hostname)&&W.method==="POST"&&(!Z||Z==="application/x-www-form-urlencoded")&&!(W.postParams&&W.postParams[w])};
_.Bi=function(a,W){var w=W.format||"JSON";a=yf7(a,W);var Z=EUU(a,W),N=!1,B=aGD(a,function(v){if(!N){N=!0;X&&_.NY(X);var U=_.sUU(v),O=null,S=400<=v.status&&v.status<500,T=500<=v.status&&v.status<600;if(U||S||T)O=WmU(a,w,v,W.convertToSafeHtml);U&&(U=wGD(w,v,O));O=O||{};S=W.context||_.NH;U?W.onSuccess&&W.onSuccess.call(S,v,O):W.onError&&W.onError.call(S,v,O);W.onFinish&&W.onFinish.call(S,v,O)}},W.method,Z,W.headers,W.responseType,W.withCredentials);
Z=W.timeout||0;if(W.onTimeout&&Z>0){var I=W.onTimeout;var X=_.wz(function(){N||(N=!0,B.abort(),_.NY(X),I.call(W.context||_.NH,B))},Z)}return B};
yf7=function(a,W){W.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var w=_.LF("XSRF_FIELD_NAME");if(W=W.urlParams)W[w]&&delete W[w],a=_.uG(a,W);return a};
EUU=function(a,W){var w=_.LF("XSRF_FIELD_NAME"),Z=_.LF("XSRF_TOKEN"),N=W.postBody||"",B=W.postParams;HM7(a,W)&&(B||(B={}),B[w]=Z);(_.r("ajax_parse_query_data_only_when_filled")&&B&&Object.keys(B).length>0||B)&&typeof N==="string"&&(N=_.bG(N),_.T5.extend(N,B),N=W.postBodyFormat&&W.postBodyFormat==="JSON"?JSON.stringify(N):_.ld(N));B=N||B&&!_.T5.isEmpty(B);!ZS8&&B&&W.method!=="POST"&&(ZS8=!0,_.Ff(Error("Gc")));return N};
WmU=function(a,W,w,Z){var N=null;switch(W){case "JSON":try{var B=w.responseText}catch(I){throw Z=Error("Hc"),Z.params=a,_.qx(Z),I;}a=w.getResponseHeader("Content-Type")||"";B&&a.indexOf("json")>=0&&(B.substring(0,5)===")]}'\n"&&(B=B.substring(5)),N=JSON.parse(B));break;case "XML":if(a=(a=w.responseXML)?NQm(a):null)N={},_.x6(a.getElementsByTagName("*"),function(I){N[I.tagName]=tHx(I)})}Z&&$M8(N);
return N};
$M8=function(a){if(_.tL(a))for(var W in a)W==="html_content"||Pv(W,"_html")?a[W]=cP(a[W]):$M8(a[W])};
wGD=function(a,W,w){if(W&&W.status===204)return!0;switch(a){case "JSON":return!!w;case "XML":return Number(w&&w.return_code)===0;case "RAW":return!0;default:return!!w}};
NQm=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null};
tHx=function(a){var W="";_.x6(a.childNodes,function(w){W+=w.nodeValue});
return W};
BQS=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
lGS=function(a){if(!a.stack)return!0;var W=!a.stack.includes("\n");return W&&a.stack.includes("ErrorType: ")||W&&a.stack.includes("Anonymous function (Unknown script")||a.stack.toLowerCase()==="not available"?!0:!1};
_.I0=function(a){_.OW.call(this);this.JSC$8352_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!a};
P6U=function(a,W){var w=a.length,Z=0,N=function(){return a.charCodeAt(Z++)};
do{var B=IGS(N);if(B===Infinity)break;var I=B>>3;switch(B&7){case 0:B=IGS(N);if(I===W)return B;break;case 1:if(I===W)return;Z+=8;break;case 2:B=IGS(N);if(I===W)return a.substr(Z,B);Z+=B;break;case 5:if(I===W)return;Z+=4;break;default:return}}while(Z<w)};
IGS=function(a){var W=a(),w=W&127;if(W<128)return w;W=a();w|=(W&127)<<7;if(W<128)return w;W=a();w|=(W&127)<<14;if(W<128)return w;W=a();return W<128?w|(W&127)<<21:Infinity};
vsF=function(a,W,w,Z){if(a)if(Array.isArray(a)){var N=Z;for(Z=0;Z<a.length&&!(a[Z]&&(N+=XG9(Z,a[Z],W,w),N>500));Z++);Z=N}else if(typeof a==="object")for(N in a){if(a[N]){var B=N;var I=a[N],X=W,v=w;B=typeof I!=="string"||B!=="clickTrackingParams"&&B!=="trackingParams"?0:(I=P6U(atob(I.replace(/-/g,"+").replace(/_/g,"/")),2))?XG9(B+".ve",I,X,v):0;Z+=B;Z+=XG9(N,a[N],W,w);if(Z>500)break}}else w[W]=Pi(a),Z+=w[W].length;else w[W]=Pi(a),Z+=w[W].length;return Z};
XG9=function(a,W,w,Z){w+="."+a;a=Pi(W);Z[w]=a;return w.length+a.length};
Pi=function(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(W){return"unable to serialize "+typeof a+" ("+W.message+")"}};
gsU=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}};
_.vi=function(a,W,w,Z,N){_.XQ.set(a,W,{maxAge:w,path:"/",domain:Z===void 0?"youtube.com":Z,secure:N===void 0?!1:N})};
_.osm=function(a,W,w){_.XQ.remove(a,W===void 0?"/":W,w===void 0?"youtube.com":w)};
_.gz=function(){if(_.r("embeds_web_enable_cookie_detection_fix")){if(!_.NH.navigator.cookieEnabled)return!1}else if(!_.XQ.isEnabled())return!1;if(!_.XQ.isEmpty())return!0;_.r("embeds_web_enable_cookie_detection_fix")?_.XQ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.XQ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.XQ.get("TESTCOOKIESENABLED")!=="1")return!1;_.XQ.remove("TESTCOOKIESENABLED");return!0};
kqe=function(){var a=_.NH.navigator;return a?a.connection:void 0};
UMS=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(a){}};
_.S$x=function(){var a=kqe();if(a){var W=OSS[a.type||"unknown"]||"CONN_UNKNOWN";a=OSS[a.effectiveType||"unknown"]||"CONN_UNKNOWN";W==="CONN_CELLULAR_UNKNOWN"&&a!=="CONN_UNKNOWN"&&(W=a);if(W!=="CONN_UNKNOWN")return W;if(a!=="CONN_UNKNOWN")return a}};
TQe=function(){var a=kqe();if(a!=null&&a.effectiveType)return Y$C.hasOwnProperty(a.effectiveType)?Y$C[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.kq=function(){try{return _.o0(),!0}catch(a){return!1}};
_.o0=function(a){if(_.LF("DATASYNC_ID")!==void 0)return _.LF("DATASYNC_ID");throw new _.Uw("Datasync ID not set",a===void 0?"unknown":a);};
_.Ow=function(a){this.mechanism=a};
Sg=function(a){this.mechanism=a};
Yq=function(a){this.storage_=a;this.cachedIsStorageAvailable_=null};
KmD=function(){var a=null;try{a=_.NH.localStorage||null}catch(W){}Yq.call(this,a)};
pGD=function(){var a=null;try{a=_.NH.sessionStorage||null}catch(W){}Yq.call(this,a)};
T4=function(a,W){this.mechanism_=a;this.JSC$8454_prefix_=W+"::"};
_.rsS=function(a){var W=new KmD;return W.isAvailable()?a?new T4(W,a):W:null};
_.As9=function(a){var W=new pGD;return W.isAvailable()?a?new T4(W,a):W:null};
iSm=function(){var a;return(a=h9I())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
_.rz=function(a){csE||(_.K3?_.K3.logError(a):(_.p3.push({type:"ERROR",payload:a}),_.p3.length>10&&_.p3.shift()))};
hw=function(a,W){csE||(_.K3?_.K3.logEvent(a,W):(_.p3.push({type:"EVENT",eventType:a,payload:W}),_.p3.length>10&&_.p3.shift()))};
id=function(a){if(a.indexOf(":")>=0)throw Error("Oc");};
ci=function(a){return a.substr(0,a.indexOf(":"))||a};
jmx=function(){return(e97||ns8)&&eg("applewebkit")&&!eg("version")&&(!eg("safari")||eg("gsa/"))};
eg=function(a){var W=_.S9();return W?W.toLowerCase().indexOf(a)>=0:!1};
FmU=function(a,W,w,Z){W=ci(W);var N=a instanceof Error?a:Error("Pc`"+a);if(N instanceof n3)return N;a={objectStoreNames:w,dbName:W,dbVersion:Z};if(N.name==="QuotaExceededError")return new n3("QUOTA_EXCEEDED",a);if(_.jg&&N.name==="UnknownError")return new n3("QUOTA_MAYBE_EXCEEDED",a);if(N instanceof Lme)return new n3("MISSING_INDEX",Object.assign({},a,{objectStore:N.objectStore,index:N.index}));if(N.name==="InvalidStateError"&&JsF.some(function(B){return N.message.includes(B)}))return new n3("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if(N.name==="AbortError")return new n3("UNKNOWN_ABORT",a,N.message);N.args=[Object.assign({},a,{name:"IdbError",originalName:N.name})];N.level="WARNING";return N};
L3=function(a,W,w){var Z=iSm();return new n3("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:W,version:w,hasSucceededOnce:Z==null?void 0:Z.hasSucceededOnce}})};
MHv=function(a){if(!a)throw Error();throw a;};
R97=function(a){return a};
q$I=function(a,W,w){var Z=function(){try{a.removeEventListener("success",N),a.removeEventListener("error",B)}catch(I){}},N=function(){W(a.result);
Z()},B=function(){w(a.error);
Z()};
a.addEventListener("success",N);a.addEventListener("error",B)};
Qme=function(a){return new Promise(function(W,w){q$I(a,W,w)})};
MY=function(a){return new Jw(new FQ(function(W,w){q$I(a,W,w)}))};
xM9=function(a,W){return new Jw(new FQ(function(w,Z){var N=function(){var B=a?W(a):null;B?B.then(function(I){a=I;N()},Z):w()};
N()}))};
sme=function(a,W,w){return new Promise(function(Z,N){var B=W!==void 0?self.indexedDB.open(a,W):self.indexedDB.open(a);var I=w.blocked,X=w.blocking,v=w.terminated,U=w.upgrade,O=w.closed,S,T=function(){S||(S=new R0(B.result,{closed:O}));return S};
B.addEventListener("upgradeneeded",function(p){try{if(p.newVersion===null)throw Error("Uc");if(B.transaction===null)throw Error("Vc");p.dataLoss&&p.dataLoss!=="none"&&hw("IDB_DATA_CORRUPTED",{reason:p.dataLossMessage||"unknown reason",dbName:ci(a)});var h=T(),L=new bSU(B.transaction);U&&U(h,function(F){return p.oldVersion<F&&p.newVersion>=F},L);
L.done.catch(function(F){N(F)})}catch(F){N(F)}});
B.addEventListener("success",function(){var p=B.result;X&&p.addEventListener("versionchange",function(){X(T())});
p.addEventListener("close",function(){hw("IDB_UNEXPECTEDLY_CLOSED",{dbName:ci(a),dbVersion:p.version});v&&v()});
Z(T())});
B.addEventListener("error",function(){N(B.error)});
I&&B.addEventListener("blocked",function(){I()})})};
utI=function(a,W,w){w=w===void 0?{}:w;return sme(a,W,w)};
_.QJ=function(a,W){W=W===void 0?{}:W;var w,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return _.tq(I,2),w=self.indexedDB.deleteDatabase(a),Z=W,(N=Z.blocked)&&w.addEventListener("blocked",function(){N()}),_.g(I,Qme(w),4);
if(I.nextAddress!=2)return _.qY(I,0);B=_.Pb(I);throw FmU(B,a,"",-1);})};
Gqe=function(a,W){var w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,_.xq(C69,W),2);w=Z.yieldResult;return Z.return(_.bd(w,["databases"],{enableRetries:!0,mode:"readwrite"},function(N){var B=N.objectStore("databases");return B.get(a.actualName).then(function(I){if(I?a.actualName!==I.actualName||a.publicName!==I.publicName||a.userIdentifier!==I.userIdentifier:1)return B.put(a).then(function(){})})}))})};
_.sw=function(a,W){var w;return _.P(function(Z){if(Z.nextAddress==1)return a?_.g(Z,_.xq(C69,W),2):Z.return();w=Z.yieldResult;return Z.return(w.delete("databases",a))})};
_.DME=function(a,W){var w,Z;return _.P(function(N){return N.nextAddress==1?(w=[],_.g(N,_.xq(C69,W),2)):N.nextAddress!=3?(Z=N.yieldResult,_.g(N,_.bd(Z,["databases"],{enableRetries:!0,mode:"readonly"},function(B){w.length=0;return ud(B.objectStore("databases"),{},function(I){a(I.getValue())&&w.push(I.getValue());return I.continue()})}),3)):N.return(w)})};
fGU=function(a,W){return _.DME(function(w){return w.publicName===a&&w.userIdentifier!==void 0},W)};
VHe=function(){var a,W,w,Z;return _.P(function(N){switch(N.nextAddress){case 1:a=iSm();if((W=a)==null?0:W.hasSucceededOnce)return N.return(!0);var B;if(B=dM7)B=/WebKit\/([0-9]+)/.exec(_.S9()),B=!!(B&&parseInt(B[1],10)>=600);B&&(B=/WebKit\/([0-9]+)/.exec(_.S9()),B=!(B&&parseInt(B[1],10)>=602));if(B||C3)return N.return(!1);try{if(w=self,!(w.indexedDB&&w.IDBIndex&&w.IDBKeyRange&&w.IDBObjectStore))return N.return(!1)}catch(I){return N.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return N.return(!1);
_.tq(N,2);Z={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.g(N,Gqe(Z,mMm),4);case 4:return _.g(N,_.sw("yt-idb-test-do-not-use",mMm),5);case 5:return N.return(!0);case 2:return _.Pb(N),N.return(!1)}})};
HSC=function(){if(z9x!==void 0)return z9x;csE=!0;return z9x=VHe().then(function(a){csE=!1;var W;if((W=h9I())!=null&&W.expiringStorage_){var w;W={hasSucceededOnce:((w=iSm())==null?void 0:w.hasSucceededOnce)||a};var Z;(Z=h9I())==null||Z.set("LAST_RESULT_ENTRY_KEY",W,2592E3,!0)}return a})};
G4=function(){return _.RT("ytglobal.idbToken_")||void 0};
_.f3=function(){var a=G4();return a?Promise.resolve(a):HSC().then(function(W){(W=W?mMm:void 0)&&_.Dp("ytglobal.idbToken_",W);return W})};
yse=function(a){if(!_.kq())throw a=new n3("AUTH_INVALID",{dbName:a}),_.rz(a),a;var W=_.o0();return{actualName:a+":"+W,publicName:a,userIdentifier:W}};
Esv=function(a,W,w,Z){var N,B,I,X,v,U;return _.P(function(O){switch(O.nextAddress){case 1:return B=(N=Error().stack)!=null?N:"",_.g(O,_.f3(),2);case 2:I=O.yieldResult;if(!I)throw X=L3("openDbImpl",a,W),_.r("ytidb_async_stack_killswitch")||(X.stack=X.stack+"\n"+B.substring(B.indexOf("\n")+1)),_.rz(X),X;id(a);v=w?{actualName:a,publicName:a,userIdentifier:void 0}:yse(a);_.tq(O,3);return _.g(O,Gqe(v,I),5);case 5:return _.g(O,utI(v.actualName,W,Z),6);case 6:return O.return(O.yieldResult);case 3:return U=
_.Pb(O),_.tq(O,7),_.g(O,_.sw(v.actualName,I),9);case 9:_.qY(O,8);break;case 7:_.Pb(O);case 8:throw U;}})};
a9E=function(a,W,w){w=w===void 0?{}:w;return Esv(a,W,!1,w)};
WXx=function(a,W,w){w=w===void 0?{}:w;return Esv(a,W,!0,w)};
w_e=function(a,W){W=W===void 0?{}:W;var w,Z;return _.P(function(N){if(N.nextAddress==1)return _.g(N,_.f3(),2);if(N.nextAddress!=3){w=N.yieldResult;if(!w)return N.return();id(a);Z=yse(a);return _.g(N,_.QJ(Z.actualName,W),3)}return _.g(N,_.sw(Z.actualName,w),0)})};
ZDe=function(a,W,w){a=a.map(function(Z){return _.P(function(N){return N.nextAddress==1?_.g(N,_.QJ(Z.actualName,W),2):_.g(N,_.sw(Z.actualName,w),0)})});
return Promise.all(a).then(function(){})};
NSe=function(a){var W=W===void 0?{}:W;var w,Z;return _.P(function(N){if(N.nextAddress==1)return _.g(N,_.f3(),2);if(N.nextAddress!=3){w=N.yieldResult;if(!w)return N.return();id(a);return _.g(N,fGU(a,w),3)}Z=N.yieldResult;return _.g(N,ZDe(Z,W,w),0)})};
tWS=function(a,W){W=W===void 0?{}:W;var w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,_.f3(),2);if(Z.nextAddress!=3){w=Z.yieldResult;if(!w)return Z.return();id(a);return _.g(Z,_.QJ(a,W),3)}return _.g(Z,_.sw(a,w),0)})};
dz=function(a,W){return $1C(a,W)};
l9H=function(a){return _.xq(BSD(),a)};
I9I=function(a,W,w,Z){var N,B,I;return _.P(function(X){switch(X.nextAddress){case 1:return N={config:a,hashData:W,timestamp:Z!==void 0?Z:(0,_.mG)()},_.g(X,l9H(w),2);case 2:return B=X.yieldResult,_.g(X,B.clear("hotConfigStore"),3);case 3:return _.g(X,B.put("hotConfigStore",N),4);case 4:return I=X.yieldResult,X.return(I)}})};
P07=function(a,W,w,Z,N){var B,I,X;return _.P(function(v){switch(v.nextAddress){case 1:return B={config:a,hashData:W,configData:w,timestamp:N!==void 0?N:(0,_.mG)()},_.g(v,l9H(Z),2);case 2:return I=v.yieldResult,_.g(v,I.clear("coldConfigStore"),3);case 3:return _.g(v,I.put("coldConfigStore",B),4);case 4:return X=v.yieldResult,v.return(X)}})};
X_U=function(a){var W,w;return _.P(function(Z){return Z.nextAddress==1?_.g(Z,l9H(a),2):Z.nextAddress!=3?(W=Z.yieldResult,w=void 0,_.g(Z,_.bd(W,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(N){return _.VJ(N.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(B){w=B.getValue()})}),3)):Z.return(w)})};
v79=function(a){var W,w;return _.P(function(Z){return Z.nextAddress==1?_.g(Z,l9H(a),2):Z.nextAddress!=3?(W=Z.yieldResult,w=void 0,_.g(Z,_.bd(W,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(N){return _.VJ(N.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(B){w=B.getValue()})}),3)):Z.return(w)})};
g7e=function(){return _.P(function(a){return _.g(a,NSe("ytGcfConfig"),0)})};
o7x=function(){return"INNERTUBE_API_KEY"in _.nF&&"INNERTUBE_API_VERSION"in _.nF};
_.z4=function(){return{innertubeApiKey:_.LF("INNERTUBE_API_KEY"),innertubeApiVersion:_.LF("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.LF("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.LF("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.LF("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.LF("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.LF("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.LF("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.LF("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.JS("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.JS("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.LF("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.KXv=function(a){var W={client:{hl:a.innertubeContextHostLanguage,gl:a.innertubeContextGeoLocation,clientName:a.innertubeContextClientName,clientVersion:a.innertubeContextClientVersion,configInfo:a.innertubeContextClientConfigInfo}};navigator.userAgent&&(W.client.userAgent=String(navigator.userAgent));var w=_.NH.devicePixelRatio;w&&w!=1&&(W.client.screenDensityFloat=String(w));w=qfU();w!==""&&(W.client.experimentsToken=w);w=QUv();w.length>0&&(W.request={internalExperimentFlags:w});kGx(a,void 0,W);
U1H(void 0,W);ODe(void 0,W);S_v(a,void 0,W);Y_E(void 0,W);_.r("start_client_gcf")&&TSS(void 0,W);_.LF("DELEGATED_SESSION_ID")&&!_.r("pageid_as_header_web")&&(W.user={onBehalfOfUser:_.LF("DELEGATED_SESSION_ID")});!_.r("fill_delegate_context_in_gel_killswitch")&&(a=_.LF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(W.user=Object.assign({},W.user,{serializedDelegationContext:a}));a=_.LF("INNERTUBE_CONTEXT");var Z;if(_.r("enable_persistent_device_token")&&(a==null?0:(Z=a.client)==null?0:Z.rolloutToken)){var N;
W.client.rolloutToken=a==null?void 0:(N=a.client)==null?void 0:N.rolloutToken}Z=Object;N=Z.assign;a=W.client;w={};for(var B=_.l(Object.entries(_.bG(_.LF("DEVICE","")))),I=B.next();!I.done;I=B.next()){var X=_.l(I.value);I=X.next().value;X=X.next().value;I==="cbrand"?w.deviceMake=X:I==="cmodel"?w.deviceModel=X:I==="cbr"?w.browserName=X:I==="cbrver"?w.browserVersion=X:I==="cos"?w.osName=X:I==="cosver"?w.osVersion=X:I==="cplatform"&&(w.platform=X)}W.client=N.call(Z,a,w);return W};
kGx=function(a,W,w){a=a.innertubeContextClientName;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(W){w=_.Hi(W,p_E,96)||new p_E;var Z=rkF();Z=Object.keys(Ake).indexOf(Z);Z=Z===-1?null:Z;Z!==null&&_.yJ(w,3,Z);_.ZP(W,96,w)}else w&&(w.client.mainAppWebInfo=(Z=w.client.mainAppWebInfo)!=null?Z:{},w.client.mainAppWebInfo.webDisplayMode=rkF())};
U1H=function(a,W){var w=_.RT("yt.embedded_player.embed_url");w&&(a?(W=_.Hi(a,hO7,7)||new hO7,_.Xu(W,4,w),_.ZP(a,7,W)):W&&(W.thirdParty={embedUrl:w}))};
ODe=function(a,W){var w;if(_.r("web_log_memory_total_kbytes")&&((w=_.NH.navigator)==null?0:w.deviceMemory)){var Z;w=(Z=_.NH.navigator)==null?void 0:Z.deviceMemory;a?_.Ew(a,95,Jz(w*1E6)):W&&(W.client.memoryTotalKbytes=""+w*1E6)}};
S_v=function(a,W,w){if(a.appInstallData)if(W){var Z;w=(Z=_.Hi(W,ax,62))!=null?Z:new ax;_.Xu(w,6,a.appInstallData);_.ZP(W,62,w)}else w&&(w.client.configInfo=w.client.configInfo||{},w.client.configInfo.appInstallData=a.appInstallData)};
Y_E=function(a,W){var w=_.S$x();w&&(a?_.yJ(a,61,iDU[w]):W&&(W.client.connectionType=w));_.r("web_log_effective_connection_type")&&(w=TQe())&&(a?_.yJ(a,94,ckF[w]):W&&(W.client.effectiveConnectionType=w))};
_.jVD=function(a,W,w){w=w===void 0?{}:w;var Z={};_.LF("EOM_VISITOR_DATA")?Z={"X-Goog-EOM-Visitor-Id":_.LF("EOM_VISITOR_DATA")}:Z={"X-Goog-Visitor-Id":w.visitorData||_.LF("VISITOR_DATA","")};if(W&&W.includes("www.youtube-nocookie.com"))return Z;W=w.authorization||_.LF("AUTHORIZATION");W||(a?W="Bearer "+_.RT("gapi.auth.getToken")().access_token:(eOE.instance||(eOE.instance=new eOE),a=n7U(),_.r("pageid_as_header_web")||delete a["X-Goog-PageId"],Z=Object.assign({},Z,a)));W&&(Z.Authorization=W);return Z};
TSS=function(a,W){var w=LXE();if(w){var Z=w.coldConfigData,N=w.coldHashData;w=w.hotHashData;if(a){var B;W=(B=_.Hi(a,ax,62))!=null?B:new ax;Z=_.Xu(W,1,Z);_.Xu(Z,3,N).setHotHashData(w);_.ZP(a,62,W)}else W&&(W.client.configInfo=W.client.configInfo||{},Z&&(W.client.configInfo.coldConfigData=Z),N&&(W.client.configInfo.coldHashData=N),w&&(W.client.configInfo.hotHashData=w))}};
WI=function(a){for(var W=a.length;--W>=0;)a[W]=0};
JkC=function(a,W,w,Z,N){this.static_tree=a;this.extra_bits=W;this.extra_base=w;this.elems=Z;this.max_length=N;this.has_stree=a&&a.length};
FXI=function(a,W){this.dyn_tree=a;this.max_code=0;this.stat_desc=W};
wo=function(a,W){a.pending_buf[a.pending++]=W&255;a.pending_buf[a.pending++]=W>>>8&255};
ZV=function(a,W,w){a.bi_valid>16-w?(a.bi_buf|=W<<a.bi_valid&65535,wo(a,a.bi_buf),a.bi_buf=W>>16-a.bi_valid,a.bi_valid+=w-16):(a.bi_buf|=W<<a.bi_valid&65535,a.bi_valid+=w)};
NE=function(a,W,w){ZV(a,w[W*2],w[W*2+1])};
MWS=function(a,W){var w=0;do w|=a&1,a>>>=1,w<<=1;while(--W>0);return w>>>1};
ROD=function(a,W,w){var Z=Array(16),N=0,B;for(B=1;B<=15;B++)Z[B]=N=N+w[B-1]<<1;for(w=0;w<=W;w++)N=a[w*2+1],N!==0&&(a[w*2]=MWS(Z[N]++,N))};
q_I=function(a){var W;for(W=0;W<286;W++)a.dyn_ltree[W*2]=0;for(W=0;W<30;W++)a.dyn_dtree[W*2]=0;for(W=0;W<19;W++)a.bl_tree[W*2]=0;a.dyn_ltree[512]=1;a.opt_len=a.static_len=0;a.last_lit=a.matches=0};
QVx=function(a){a.bi_valid>8?wo(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf);a.bi_buf=0;a.bi_valid=0};
x19=function(a,W,w){QVx(a);wo(a,w);wo(a,~w);tF.arraySet(a.pending_buf,a.window,W,w,a.pending);a.pending+=w};
bDC=function(a,W,w,Z){var N=W*2,B=w*2;return a[N]<a[B]||a[N]===a[B]&&Z[W]<=Z[w]};
sVv=function(a,W,w){for(var Z=a.heap[w],N=w<<1;N<=a.heap_len;){N<a.heap_len&&bDC(W,a.heap[N+1],a.heap[N],a.depth)&&N++;if(bDC(W,Z,a.heap[N],a.depth))break;a.heap[w]=a.heap[N];w=N;N<<=1}a.heap[w]=Z};
f9m=function(a,W,w){var Z=0;if(a.last_lit!==0){do{var N=a.pending_buf[a.d_buf+Z*2]<<8|a.pending_buf[a.d_buf+Z*2+1];var B=a.pending_buf[a.l_buf+Z];Z++;if(N===0)NE(a,B,W);else{var I=$m[B];NE(a,I+256+1,W);var X=uze[I];X!==0&&(B-=C0e[I],ZV(a,B,X));N--;I=N<256?BI[N]:BI[256+(N>>>7)];NE(a,I,w);X=GGe[I];X!==0&&(N-=D17[I],ZV(a,N,X))}}while(Z<a.last_lit)}NE(a,256,W)};
d1I=function(a,W){var w=W.dyn_tree,Z=W.stat_desc.static_tree,N=W.stat_desc.has_stree,B=W.stat_desc.elems,I,X=-1;a.heap_len=0;a.heap_max=573;for(I=0;I<B;I++)w[I*2]!==0?(a.heap[++a.heap_len]=X=I,a.depth[I]=0):w[I*2+1]=0;for(;a.heap_len<2;){var v=a.heap[++a.heap_len]=X<2?++X:0;w[v*2]=1;a.depth[v]=0;a.opt_len--;N&&(a.static_len-=Z[v*2+1])}W.max_code=X;for(I=a.heap_len>>1;I>=1;I--)sVv(a,w,I);v=B;do I=a.heap[1],a.heap[1]=a.heap[a.heap_len--],sVv(a,w,1),Z=a.heap[1],a.heap[--a.heap_max]=I,a.heap[--a.heap_max]=
Z,w[v*2]=w[I*2]+w[Z*2],a.depth[v]=(a.depth[I]>=a.depth[Z]?a.depth[I]:a.depth[Z])+1,w[I*2+1]=w[Z*2+1]=v,a.heap[1]=v++,sVv(a,w,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1];I=W.dyn_tree;v=W.max_code;Z=W.stat_desc.static_tree;N=W.stat_desc.has_stree;B=W.stat_desc.extra_bits;var U=W.stat_desc.extra_base,O=W.stat_desc.max_length,S,T=0;for(S=0;S<=15;S++)a.bl_count[S]=0;I[a.heap[a.heap_max]*2+1]=0;for(W=a.heap_max+1;W<573;W++){var p=a.heap[W];S=I[I[p*2+1]*2+1]+1;S>O&&(S=O,T++);I[p*2+1]=S;if(!(p>
v)){a.bl_count[S]++;var h=0;p>=U&&(h=B[p-U]);var L=I[p*2];a.opt_len+=L*(S+h);N&&(a.static_len+=L*(Z[p*2+1]+h))}}if(T!==0){do{for(S=O-1;a.bl_count[S]===0;)S--;a.bl_count[S]--;a.bl_count[S+1]+=2;a.bl_count[O]--;T-=2}while(T>0);for(S=O;S!==0;S--)for(p=a.bl_count[S];p!==0;)Z=a.heap[--W],Z>v||(I[Z*2+1]!==S&&(a.opt_len+=(S-I[Z*2+1])*I[Z*2],I[Z*2+1]=S),p--)}ROD(w,X,a.bl_count)};
m19=function(a,W,w){var Z,N=-1,B=W[1],I=0,X=7,v=4;B===0&&(X=138,v=3);W[(w+1)*2+1]=65535;for(Z=0;Z<=w;Z++){var U=B;B=W[(Z+1)*2+1];++I<X&&U===B||(I<v?a.bl_tree[U*2]+=I:U!==0?(U!==N&&a.bl_tree[U*2]++,a.bl_tree[32]++):I<=10?a.bl_tree[34]++:a.bl_tree[36]++,I=0,N=U,B===0?(X=138,v=3):U===B?(X=6,v=3):(X=7,v=4))}};
VWe=function(a,W,w){var Z,N=-1,B=W[1],I=0,X=7,v=4;B===0&&(X=138,v=3);for(Z=0;Z<=w;Z++){var U=B;B=W[(Z+1)*2+1];if(!(++I<X&&U===B)){if(I<v){do NE(a,U,a.bl_tree);while(--I!==0)}else U!==0?(U!==N&&(NE(a,U,a.bl_tree),I--),NE(a,16,a.bl_tree),ZV(a,I-3,2)):I<=10?(NE(a,17,a.bl_tree),ZV(a,I-3,3)):(NE(a,18,a.bl_tree),ZV(a,I-11,7));I=0;N=U;B===0?(X=138,v=3):U===B?(X=6,v=3):(X=7,v=4)}}};
zOS=function(a){var W=4093624447,w;for(w=0;w<=31;w++,W>>>=1)if(W&1&&a.dyn_ltree[w*2]!==0)return 0;if(a.dyn_ltree[18]!==0||a.dyn_ltree[20]!==0||a.dyn_ltree[26]!==0)return 1;for(w=32;w<256;w++)if(a.dyn_ltree[w*2]!==0)return 1;return 0};
ln=function(a,W,w){a.pending_buf[a.d_buf+a.last_lit*2]=W>>>8&255;a.pending_buf[a.d_buf+a.last_lit*2+1]=W&255;a.pending_buf[a.l_buf+a.last_lit]=w&255;a.last_lit++;W===0?a.dyn_ltree[w*2]++:(a.matches++,W--,a.dyn_ltree[($m[w]+256+1)*2]++,a.dyn_dtree[(W<256?BI[W]:BI[256+(W>>>7)])*2]++);return a.last_lit===a.lit_bufsize-1};
PI=function(a,W){a.msg=Ix[W];return W};
XU=function(a){for(var W=a.length;--W>=0;)a[W]=0};
vI=function(a){var W=a.state,w=W.pending;w>a.avail_out&&(w=a.avail_out);w!==0&&(tF.arraySet(a.output,W.pending_buf,W.pending_out,w,a.next_out),a.next_out+=w,W.pending_out+=w,a.total_out+=w,a.avail_out-=w,W.pending-=w,W.pending===0&&(W.pending_out=0))};
Ox=function(a,W){var w=a.block_start>=0?a.block_start:-1,Z=a.strstart-a.block_start,N=0;if(a.level>0){a.strm.data_type===2&&(a.strm.data_type=zOS(a));d1I(a,a.l_desc);d1I(a,a.d_desc);m19(a,a.dyn_ltree,a.l_desc.max_code);m19(a,a.dyn_dtree,a.d_desc.max_code);d1I(a,a.bl_desc);for(N=18;N>=3&&a.bl_tree[HDx[N]*2+1]===0;N--);a.opt_len+=3*(N+1)+5+5+4;var B=a.opt_len+3+7>>>3;var I=a.static_len+3+7>>>3;I<=B&&(B=I)}else B=I=Z+5;if(Z+4<=B&&w!==-1)ZV(a,W?1:0,3),x19(a,w,Z);else if(a.strategy===4||I===B)ZV(a,2+(W?
1:0),3),f9m(a,go,km);else{ZV(a,4+(W?1:0),3);w=a.l_desc.max_code+1;Z=a.d_desc.max_code+1;N+=1;ZV(a,w-257,5);ZV(a,Z-1,5);ZV(a,N-4,4);for(B=0;B<N;B++)ZV(a,a.bl_tree[HDx[B]*2+1],3);VWe(a,a.dyn_ltree,w-1);VWe(a,a.dyn_dtree,Z-1);f9m(a,a.dyn_ltree,a.dyn_dtree)}q_I(a);W&&QVx(a);a.block_start=a.strstart;vI(a.strm)};
S6=function(a,W){a.pending_buf[a.pending++]=W};
Ym=function(a,W){a.pending_buf[a.pending++]=W>>>8&255;a.pending_buf[a.pending++]=W&255};
ykE=function(a,W){var w=a.max_chain_length,Z=a.strstart,N=a.prev_length,B=a.nice_match,I=a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,X=a.window,v=a.w_mask,U=a.prev,O=a.strstart+258,S=X[Z+N-1],T=X[Z+N];a.prev_length>=a.good_match&&(w>>=2);B>a.lookahead&&(B=a.lookahead);do{var p=W;if(X[p+N]===T&&X[p+N-1]===S&&X[p]===X[Z]&&X[++p]===X[Z+1]){Z+=2;for(p++;X[++Z]===X[++p]&&X[++Z]===X[++p]&&X[++Z]===X[++p]&&X[++Z]===X[++p]&&X[++Z]===X[++p]&&X[++Z]===X[++p]&&X[++Z]===X[++p]&&X[++Z]===X[++p]&&Z<O;);
p=258-(O-Z);Z=O-258;if(p>N){a.match_start=W;N=p;if(p>=B)break;S=X[Z+N-1];T=X[Z+N]}}}while((W=U[W&v])>I&&--w!==0);return N<=a.lookahead?N:a.lookahead};
KJ=function(a){var W=a.w_size,w;do{var Z=a.window_size-a.lookahead-a.strstart;if(a.strstart>=W+(W-262)){tF.arraySet(a.window,a.window,W,W,0);a.match_start-=W;a.strstart-=W;a.block_start-=W;var N=w=a.hash_size;do{var B=a.head[--N];a.head[N]=B>=W?B-W:0}while(--w);N=w=W;do B=a.prev[--N],a.prev[N]=B>=W?B-W:0;while(--w);Z+=W}if(a.strm.avail_in===0)break;N=a.strm;w=a.window;B=a.strstart+a.lookahead;var I=N.avail_in;I>Z&&(I=Z);I===0?w=0:(N.avail_in-=I,tF.arraySet(w,N.input,N.next_in,I,B),N.state.wrap===
1?N.adler=E7C(N.adler,w,I,B):N.state.wrap===2&&(N.adler=TK(N.adler,w,I,B)),N.next_in+=I,N.total_in+=I,w=I);a.lookahead+=w;if(a.lookahead+a.insert>=3)for(Z=a.strstart-a.insert,a.ins_h=a.window[Z],a.ins_h=(a.ins_h<<a.hash_shift^a.window[Z+1])&a.hash_mask;a.insert&&!(a.ins_h=(a.ins_h<<a.hash_shift^a.window[Z+3-1])&a.hash_mask,a.prev[Z&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=Z,Z++,a.insert--,a.lookahead+a.insert<3););}while(a.lookahead<262&&a.strm.avail_in!==0)};
abU=function(a,W){for(var w;;){if(a.lookahead<262){KJ(a);if(a.lookahead<262&&W===0)return 1;if(a.lookahead===0)break}w=0;a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,w=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);w!==0&&a.strstart-w<=a.w_size-262&&(a.match_length=ykE(a,w));if(a.match_length>=3)if(w=ln(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 w=ln(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(w&&(Ox(a,!1),a.strm.avail_out===0))return 1}a.insert=a.strstart<2?a.strstart:2;return W===4?(Ox(a,
!0),a.strm.avail_out===0?3:4):a.last_lit&&(Ox(a,!1),a.strm.avail_out===0)?1:2};
pJ=function(a,W){for(var w,Z;;){if(a.lookahead<262){KJ(a);if(a.lookahead<262&&W===0)return 1;if(a.lookahead===0)break}w=0;a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,w=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;w!==0&&a.prev_length<a.max_lazy_match&&a.strstart-w<=a.w_size-262&&(a.match_length=ykE(a,w),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){Z=a.strstart+a.lookahead-3;w=ln(a,a.strstart-1-a.prev_match,a.prev_length-3);a.lookahead-=a.prev_length-1;a.prev_length-=2;do++a.strstart<=Z&&(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(w&&(Ox(a,!1),a.strm.avail_out===0))return 1}else if(a.match_available){if((w=
ln(a,0,a.window[a.strstart-1]))&&Ox(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&&(ln(a,0,a.window[a.strstart-1]),a.match_available=0);a.insert=a.strstart<2?a.strstart:2;return W===4?(Ox(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(Ox(a,!1),a.strm.avail_out===0)?1:2};
WOe=function(a,W){for(var w,Z,N,B=a.window;;){if(a.lookahead<=258){KJ(a);if(a.lookahead<=258&&W===0)return 1;if(a.lookahead===0)break}a.match_length=0;if(a.lookahead>=3&&a.strstart>0&&(Z=a.strstart-1,w=B[Z],w===B[++Z]&&w===B[++Z]&&w===B[++Z])){for(N=a.strstart+258;w===B[++Z]&&w===B[++Z]&&w===B[++Z]&&w===B[++Z]&&w===B[++Z]&&w===B[++Z]&&w===B[++Z]&&w===B[++Z]&&Z<N;);a.match_length=258-(N-Z);a.match_length>a.lookahead&&(a.match_length=a.lookahead)}a.match_length>=3?(w=ln(a,1,a.match_length-3),a.lookahead-=
a.match_length,a.strstart+=a.match_length,a.match_length=0):(w=ln(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++);if(w&&(Ox(a,!1),a.strm.avail_out===0))return 1}a.insert=0;return W===4?(Ox(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(Ox(a,!1),a.strm.avail_out===0)?1:2};
wJe=function(a,W){for(var w;;){if(a.lookahead===0&&(KJ(a),a.lookahead===0)){if(W===0)return 1;break}a.match_length=0;w=ln(a,0,a.window[a.strstart]);a.lookahead--;a.strstart++;if(w&&(Ox(a,!1),a.strm.avail_out===0))return 1}a.insert=0;return W===4?(Ox(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(Ox(a,!1),a.strm.avail_out===0)?1:2};
ro=function(a,W,w,Z,N){this.good_length=a;this.max_lazy=W;this.nice_length=w;this.max_chain=Z;this.func=N};
ZxF=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 tF.Buf16(1146);this.dyn_dtree=new tF.Buf16(122);this.bl_tree=new tF.Buf16(78);XU(this.dyn_ltree);XU(this.dyn_dtree);XU(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new tF.Buf16(16);this.heap=new tF.Buf16(573);XU(this.heap);this.heap_max=this.heap_len=0;this.depth=new tF.Buf16(573);XU(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};
NKe=function(a,W){if(!a||!a.state||W>5||W<0)return a?PI(a,-2):-2;var w=a.state;if(!a.output||!a.input&&a.avail_in!==0||w.status===666&&W!==4)return PI(a,a.avail_out===0?-5:-2);w.strm=a;var Z=w.last_flush;w.last_flush=W;if(w.status===42)if(w.wrap===2)a.adler=0,S6(w,31),S6(w,139),S6(w,8),w.gzhead?(S6(w,(w.gzhead.text?1:0)+(w.gzhead.hcrc?2:0)+(w.gzhead.extra?4:0)+(w.gzhead.name?8:0)+(w.gzhead.comment?16:0)),S6(w,w.gzhead.time&255),S6(w,w.gzhead.time>>8&255),S6(w,w.gzhead.time>>16&255),S6(w,w.gzhead.time>>
24&255),S6(w,w.level===9?2:w.strategy>=2||w.level<2?4:0),S6(w,w.gzhead.os&255),w.gzhead.extra&&w.gzhead.extra.length&&(S6(w,w.gzhead.extra.length&255),S6(w,w.gzhead.extra.length>>8&255)),w.gzhead.hcrc&&(a.adler=TK(a.adler,w.pending_buf,w.pending,0)),w.gzindex=0,w.status=69):(S6(w,0),S6(w,0),S6(w,0),S6(w,0),S6(w,0),S6(w,w.level===9?2:w.strategy>=2||w.level<2?4:0),S6(w,3),w.status=113);else{var N=8+(w.w_bits-8<<4)<<8;N|=(w.strategy>=2||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6;w.strstart!==0&&(N|=
32);w.status=113;Ym(w,N+(31-N%31));w.strstart!==0&&(Ym(w,a.adler>>>16),Ym(w,a.adler&65535));a.adler=1}if(w.status===69)if(w.gzhead.extra){for(N=w.pending;w.gzindex<(w.gzhead.extra.length&65535)&&(w.pending!==w.pending_buf_size||(w.gzhead.hcrc&&w.pending>N&&(a.adler=TK(a.adler,w.pending_buf,w.pending-N,N)),vI(a),N=w.pending,w.pending!==w.pending_buf_size));)S6(w,w.gzhead.extra[w.gzindex]&255),w.gzindex++;w.gzhead.hcrc&&w.pending>N&&(a.adler=TK(a.adler,w.pending_buf,w.pending-N,N));w.gzindex===w.gzhead.extra.length&&
(w.gzindex=0,w.status=73)}else w.status=73;if(w.status===73)if(w.gzhead.name){N=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>N&&(a.adler=TK(a.adler,w.pending_buf,w.pending-N,N)),vI(a),N=w.pending,w.pending===w.pending_buf_size)){var B=1;break}B=w.gzindex<w.gzhead.name.length?w.gzhead.name.charCodeAt(w.gzindex++)&255:0;S6(w,B)}while(B!==0);w.gzhead.hcrc&&w.pending>N&&(a.adler=TK(a.adler,w.pending_buf,w.pending-N,N));B===0&&(w.gzindex=0,w.status=91)}else w.status=91;if(w.status===
91)if(w.gzhead.comment){N=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>N&&(a.adler=TK(a.adler,w.pending_buf,w.pending-N,N)),vI(a),N=w.pending,w.pending===w.pending_buf_size)){B=1;break}B=w.gzindex<w.gzhead.comment.length?w.gzhead.comment.charCodeAt(w.gzindex++)&255:0;S6(w,B)}while(B!==0);w.gzhead.hcrc&&w.pending>N&&(a.adler=TK(a.adler,w.pending_buf,w.pending-N,N));B===0&&(w.status=103)}else w.status=103;w.status===103&&(w.gzhead.hcrc?(w.pending+2>w.pending_buf_size&&vI(a),
w.pending+2<=w.pending_buf_size&&(S6(w,a.adler&255),S6(w,a.adler>>8&255),a.adler=0,w.status=113)):w.status=113);if(w.pending!==0){if(vI(a),a.avail_out===0)return w.last_flush=-1,0}else if(a.avail_in===0&&(W<<1)-(W>4?9:0)<=(Z<<1)-(Z>4?9:0)&&W!==4)return PI(a,-5);if(w.status===666&&a.avail_in!==0)return PI(a,-5);if(a.avail_in!==0||w.lookahead!==0||W!==0&&w.status!==666){Z=w.strategy===2?wJe(w,W):w.strategy===3?WOe(w,W):AF[w.level].func(w,W);if(Z===3||Z===4)w.status=666;if(Z===1||Z===3)return a.avail_out===
0&&(w.last_flush=-1),0;if(Z===2&&(W===1?(ZV(w,2,3),NE(w,256,go),w.bi_valid===16?(wo(w,w.bi_buf),w.bi_buf=0,w.bi_valid=0):w.bi_valid>=8&&(w.pending_buf[w.pending++]=w.bi_buf&255,w.bi_buf>>=8,w.bi_valid-=8)):W!==5&&(ZV(w,0,3),x19(w,0,0),W===3&&(XU(w.head),w.lookahead===0&&(w.strstart=0,w.block_start=0,w.insert=0))),vI(a),a.avail_out===0))return w.last_flush=-1,0}if(W!==4)return 0;if(w.wrap<=0)return 1;w.wrap===2?(S6(w,a.adler&255),S6(w,a.adler>>8&255),S6(w,a.adler>>16&255),S6(w,a.adler>>24&255),S6(w,
a.total_in&255),S6(w,a.total_in>>8&255),S6(w,a.total_in>>16&255),S6(w,a.total_in>>24&255)):(Ym(w,a.adler>>>16),Ym(w,a.adler&65535));vI(a);w.wrap>0&&(w.wrap=-w.wrap);return w.pending!==0?0:1};
tyI=function(a){if(!(this instanceof tyI))return new tyI(a);a=this.options=tF.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 $n8;this.strm.avail_out=0;var W=this.strm;var w=a.level,Z=a.method,N=a.windowBits,B=a.memLevel,I=a.strategy;if(W){var X=1;w===-1&&(w=6);N<0?(X=0,N=-N):N>15&&
(X=2,N-=16);if(B<1||B>9||Z!==8||N<8||N>15||w<0||w>9||I<0||I>4)W=PI(W,-2);else{N===8&&(N=9);var v=new ZxF;W.state=v;v.strm=W;v.wrap=X;v.gzhead=null;v.w_bits=N;v.w_size=1<<v.w_bits;v.w_mask=v.w_size-1;v.hash_bits=B+7;v.hash_size=1<<v.hash_bits;v.hash_mask=v.hash_size-1;v.hash_shift=~~((v.hash_bits+3-1)/3);v.window=new tF.Buf8(v.w_size*2);v.head=new tF.Buf16(v.hash_size);v.prev=new tF.Buf16(v.w_size);v.lit_bufsize=1<<B+6;v.pending_buf_size=v.lit_bufsize*4;v.pending_buf=new tF.Buf8(v.pending_buf_size);
v.d_buf=v.lit_bufsize;v.l_buf=3*v.lit_bufsize;v.level=w;v.strategy=I;v.method=Z;if(W&&W.state){W.total_in=W.total_out=0;W.data_type=2;w=W.state;w.pending=0;w.pending_out=0;w.wrap<0&&(w.wrap=-w.wrap);w.status=w.wrap?42:113;W.adler=w.wrap===2?0:1;w.last_flush=0;if(!BKC){Z=Array(16);for(B=I=0;B<28;B++)for(C0e[B]=I,N=0;N<1<<uze[B];N++)$m[I++]=B;$m[I-1]=B;for(B=I=0;B<16;B++)for(D17[B]=I,N=0;N<1<<GGe[B];N++)BI[I++]=B;for(I>>=7;B<30;B++)for(D17[B]=I<<7,N=0;N<1<<GGe[B]-7;N++)BI[256+I++]=B;for(N=0;N<=15;N++)Z[N]=
0;for(N=0;N<=143;)go[N*2+1]=8,N++,Z[8]++;for(;N<=255;)go[N*2+1]=9,N++,Z[9]++;for(;N<=279;)go[N*2+1]=7,N++,Z[7]++;for(;N<=287;)go[N*2+1]=8,N++,Z[8]++;ROD(go,287,Z);for(N=0;N<30;N++)km[N*2+1]=5,km[N*2]=MWS(N,5);lbU=new JkC(go,uze,257,286,15);Ib7=new JkC(km,GGe,0,30,15);P8S=new JkC([],XJm,0,19,7);BKC=!0}w.l_desc=new FXI(w.dyn_ltree,lbU);w.d_desc=new FXI(w.dyn_dtree,Ib7);w.bl_desc=new FXI(w.bl_tree,P8S);w.bi_buf=0;w.bi_valid=0;q_I(w);w=0}else w=PI(W,-2);w===0&&(W=W.state,W.window_size=2*W.w_size,XU(W.head),
W.max_lazy_match=AF[W.level].max_lazy,W.good_match=AF[W.level].good_length,W.nice_match=AF[W.level].nice_length,W.max_chain_length=AF[W.level].max_chain,W.strstart=0,W.block_start=0,W.lookahead=0,W.insert=0,W.match_length=W.prev_length=2,W.match_available=0,W.ins_h=0);W=w}}else W=-2;if(W!==0)throw Error(Ix[W]);a.header&&(W=this.strm)&&W.state&&W.state.wrap===2&&(W.state.gzhead=a.header);if(a.dictionary){var U;typeof a.dictionary==="string"?U=vpF(a.dictionary):gpS.call(a.dictionary)==="[object ArrayBuffer]"?
U=new Uint8Array(a.dictionary):U=a.dictionary;a=this.strm;B=U;I=B.length;if(a&&a.state)if(U=a.state,W=U.wrap,W===2||W===1&&U.status!==42||U.lookahead)W=-2;else{W===1&&(a.adler=E7C(a.adler,B,I,0));U.wrap=0;I>=U.w_size&&(W===0&&(XU(U.head),U.strstart=0,U.block_start=0,U.insert=0),w=new tF.Buf8(U.w_size),tF.arraySet(w,B,I-U.w_size,U.w_size,0),B=w,I=U.w_size);w=a.avail_in;Z=a.next_in;N=a.input;a.avail_in=I;a.next_in=0;a.input=B;for(KJ(U);U.lookahead>=3;){B=U.strstart;I=U.lookahead-2;do U.ins_h=(U.ins_h<<
U.hash_shift^U.window[B+3-1])&U.hash_mask,U.prev[B&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=B,B++;while(--I);U.strstart=B;U.lookahead=2;KJ(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=Z;a.input=N;a.avail_in=w;U.wrap=W;W=0}else W=-2;if(W!==0)throw Error(Ix[W]);this._dict_set=!0}};
op9=function(a,W){W=W||{};W.gzip=!0;W=new tyI(W);W.push(a,!0);if(W.err)throw W.msg||Ix[W.err];return W.result};
Unx=function(a,W){var w=kCe();w&&w.publish.call(w,a.toString(),a,W)};
KOv=function(a,W,w){var Z=kCe();if(!Z)return 0;var N=Z.subscribe(a.toString(),function(B,I){var X=_.RT("ytPubsub2Pubsub2SkipSubKey");X&&X==N||(X=function(){if(Ox8[N])try{if(I&&a instanceof SdE&&a!=B)try{var v=a.dataClass,U=I;if(!U.args||!U.version)throw Error("Xc");try{if(!v.version_){var O=new v;v.version_=O.version}var S=v.version_}catch(T){}if(!S||U.version!=S)throw Error("Yc");try{I=Reflect.construct(v,_.Wl(U.args))}catch(T){throw T.message="yt.pubsub2.Data.deserialize(): "+T.message,T;}}catch(T){throw T.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+T.message,T;}W.call(w||window,I)}catch(T){_.Ff(T)}},YdS[a.toString()]?_.RT("yt.scheduler.instance")?_.hF.addLowPriorityJob(X):_.wz(X,0):X())});
Ox8[N]=!0;TKS[a.toString()]||(TKS[a.toString()]=[]);TKS[a.toString()].push(N);return N};
hzF=function(){var a=pJ8,W=KOv(rGI,function(w){a.apply(void 0,arguments);AGx(W)});
return W};
AGx=function(a){var W=kCe();W&&(typeof a==="number"&&(a=[a]),_.x6(a,function(w){W.unsubscribeByKey(w);delete Ox8[w]}))};
kCe=function(){return _.RT("ytPubsub2Pubsub2Instance")};
ixE=function(a,W,w){w=w===void 0?{sampleRate:.1}:w;Math.random()<Math.min(.02,w.sampleRate/100)&&Unx("meta_logging_csi_event",{timerName:a,timelineData:W})};
_.cGe=function(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.M_(a):null:null};
_.cI=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.lq(a):null:null};
npI=function(){ezS||(ezS=_.cI(_.LF("WORKER_SERIALIZATION_URL")));return ezS||void 0};
_.LO9=function(){var a=npI();jsv||a===void 0||(jsv=new Worker(_.IJ(a),void 0));return jsv};
_.JGe=function(){return typeof Worker==="function"&&npI()?!0:!1};
_.qdC=function(){if(_.JGe()&&!FO7){var a=function(w){w=w.data;if(w.op==="gzippedGelBatch"){var Z=Mye.get(w.key);Z&&(RzS(w.gzippedBatch,Z.latencyPayload,Z.url,Z.options,Z.sendFn),Mye.delete(w.key))}},W=_.LO9();
W&&(W.addEventListener("message",a),W.onerror=function(){Mye.clear()},FO7=!0)}};
GCI=function(a,W,w,Z,N){N=N===void 0?!1:N;var B={startTime:(0,_.mG)(),ticks:{},infos:{}};if(e6)try{var I=QsU(W);if(I!=null&&(I>xnF||I<bxU))Z(a,w);else{if(_.r("gzip_gel_with_worker")&&(_.r("initial_gzip_use_main_thread")&&!ssC||!_.r("initial_gzip_use_main_thread"))){FO7||_.qdC();var X=_.LO9();if(X&&!N){Mye.set(ubm,{latencyPayload:B,url:a,options:w,sendFn:Z});X.postMessage({op:"gelBatchToGzip",serializedBatch:W,key:ubm});ubm++;return}}var v=op9(C88(W));RzS(v,B,a,w,Z)}}catch(U){_.qx(U),Z(a,w)}else Z(a,
w)};
RzS=function(a,W,w,Z,N){ssC=!1;var B=(0,_.mG)();W.ticks.gelc=B;nJ++;_.r("disable_compression_due_to_performance_degredation")&&B-W.startTime>=Dne&&(fbS++,_.r("abandon_compression_after_N_slow_zips")?nJ===_.yv("compression_disable_point")&&fbS>dnU&&(e6=!1):e6=!1);mnx(W);Z.headers||(Z.headers={});Z.headers["Content-Encoding"]="gzip";Z.postBody=a;Z.postParams=void 0;N(w,Z)};
Vy9=function(a){var W=W===void 0?!1:W;var w=w===void 0?!1:w;var Z=(0,_.mG)(),N={startTime:Z,ticks:{},infos:{}},B=W?_.RT("yt.logging.gzipForFetch",!1):!0;if(e6&&B){if(!a.body)return a;try{var I=w?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);B=I;if(!w&&typeof I==="string"){var X=QsU(I);if(X!=null&&(X>xnF||X<bxU))return a;w=W?{level:1}:void 0;B=op9(C88(I),w);var v=(0,_.mG)();N.ticks.gelc=v;if(W){nJ++;if((_.r("disable_compression_due_to_performance_degredation")||_.r("disable_compression_due_to_performance_degradation_lr"))&&
v-Z>=Dne)if(fbS++,_.r("abandon_compression_after_N_slow_zips")||_.r("abandon_compression_after_N_slow_zips_lr")){W=fbS/nJ;var U=dnU/_.yv("compression_disable_point");nJ>0&&nJ%_.yv("compression_disable_point")===0&&W>=U&&(e6=!1)}else e6=!1;mnx(N)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=B;return a}catch(O){return _.qx(O),a}}else return a};
QsU=function(a){try{return(new Blob(a.split(""))).size}catch(W){return _.qx(W),null}};
mnx=function(a){_.r("gel_compression_csi_killswitch")||!_.r("log_gel_compression_latency")&&!_.r("log_gel_compression_latency_lr")||ixE("gel_compression",a,{sampleRate:.1})};
zzm=function(){this.blockSize=-1};
j6=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()};
yGC=function(a){a=Object.assign({},a);delete a.Authorization;var W=HxE();if(W){var w=new j6;w.update(_.LF("INNERTUBE_API_KEY"));w.update(W);a.hash=_.EI(w.digest(),3)}return a};
JF=function(){Epe||(Epe=new _.LJ("yt.innertube"));return Epe};
a3S=function(a,W,w,Z){if(Z)return null;Z=JF().get("nextId",!0)||1;var N=JF().get("requests",!0)||{};N[Z]={method:a,request:W,authState:yGC(w),requestTime:Math.round((0,_.mG)())};JF().set("nextId",Z+1,86400,!0);JF().set("requests",N,86400,!0);return Z};
Whv=function(a){var W=JF().get("requests",!0)||{};delete W[a];JF().set("requests",W,86400,!0)};
ZCS=function(a){var W=JF().get("requests",!0);if(W){for(var w in W){var Z=W[w];if(!(Math.round((0,_.mG)())-Z.requestTime<6E4)){var N=Z.authState,B=yGC(_.jVD(!1));_.T5.equals(N,B)&&(N=Z.request,"requestTimeMs"in N&&(N.requestTimeMs=Math.round((0,_.mG)())),wue(a,Z.method,N,{}));delete W[w]}}JF().set("requests",W,86400,!0)}};
NiU=function(a){var W;return(a=a==null?void 0:(W=a.error)==null?void 0:W.code)&&a>=400&&a<=599?!1:!0};
tMx=function(a){var W;a=a==null?void 0:(W=a.error)==null?void 0:W.code;return!(a!==400&&a!==415)};
BiE=function(){if($jv)return $jv();var a={};$jv=dz("LogsDatabaseV2",{objectStores:(a.LogsRequestsStore={addedAtVersion:2},a),shared:!1,upgrade:function(W,w,Z){w(2)&&FU(W,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});w(3);w(5)&&(Z=Z.objectStore("LogsRequestsStore"),Z.JSC$8513_wrapped.indexNames.contains("newRequest")&&Z.JSC$8513_wrapped.deleteIndex("newRequest"),ME(Z,"newRequestV2",["status","interface","timestamp"]));w(7)&&W.JSC$8498_wrapped.objectStoreNames.contains("sapisid")&&W.JSC$8498_wrapped.deleteObjectStore("sapisid");
w(9)&&W.JSC$8498_wrapped.objectStoreNames.contains("SWHealthLog")&&W.JSC$8498_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return $jv()};
Rx=function(a){return _.xq(BiE(),a)};
I3E=function(a,W){var w,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return w={startTime:(0,_.mG)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.g(I,Rx(W),2);if(I.nextAddress!=3)return Z=I.yieldResult,N=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:_.LF("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.g(I,Z.put("LogsRequestsStore",N),3);B=I.yieldResult;w.ticks.tc=(0,_.mG)();l3I(w);return I.return(B)})};
PhF=function(a,W){var w,Z,N,B,I,X,v,U;return _.P(function(O){if(O.nextAddress==1)return w={startTime:(0,_.mG)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.g(O,Rx(W),2);if(O.nextAddress!=3)return Z=O.yieldResult,N=_.LF("INNERTUBE_CONTEXT_CLIENT_NAME",0),B=[a,N,0],I=[a,N,(0,_.mG)()],X=IDBKeyRange.bound(B,I),v="prev",_.r("use_fifo_for_networkless")&&(v="next"),U=void 0,_.g(O,_.bd(Z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(S){return _.VJ(S.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:X,direction:v},function(T){T.getValue()&&(U=T.getValue(),a==="NEW"&&(U.status="QUEUED",T.update(U)))})}),3);
w.ticks.tc=(0,_.mG)();l3I(w);return O.return(U)})};
XuF=function(a,W){var w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,Rx(W),2);w=Z.yieldResult;return Z.return(_.bd(w,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(N){var B=N.objectStore("LogsRequestsStore");return B.get(a).then(function(I){if(I)return I.status="QUEUED",B.put(I).then(function(){return I})})}))})};
voF=function(a,W,w,Z){w=w===void 0?!0:w;var N;return _.P(function(B){if(B.nextAddress==1)return _.g(B,Rx(W),2);N=B.yieldResult;return B.return(_.bd(N,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(I){var X=I.objectStore("LogsRequestsStore");return X.get(a).then(function(v){return v?(v.status="NEW",w&&(v.sendCount+=1),Z!==void 0&&(v.options.compress=Z),X.put(v).then(function(){return v})):Jw.resolve(void 0)})}))})};
gox=function(a,W){var w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,Rx(W),2);w=Z.yieldResult;return Z.return(w.delete("LogsRequestsStore",a))})};
ooe=function(a){var W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,Rx(a),2);W=Z.yieldResult;w=(0,_.mG)()-2592E6;return _.g(Z,_.bd(W,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(N){return ud(N.objectStore("LogsRequestsStore"),{},function(B){if(B.getValue().timestamp<=w)return B.delete().then(function(){return B.continue()})})}),0)})};
kXv=function(){_.P(function(a){return _.g(a,NSe("LogsDatabaseV2"),0)})};
l3I=function(a){_.r("nwl_csi_killswitch")||ixE("networkless_performance",a,{sampleRate:1})};
_.OCe=function(a){return _.xq(UjS(),a)};
S69=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,_.OCe(a),2);W=Z.yieldResult;w=(0,_.mG)()-2592E6;return _.g(Z,_.bd(W,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(N){return ud(N.objectStore("SWHealthLog"),{},function(B){if(B.getValue().timestamp<=w)return B.delete().then(function(){return B.continue()})})}),0)})};
Y6I=function(a){var W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,_.OCe(a),2);W=w.yieldResult;return _.g(w,W.clear("SWHealthLog"),0)})};
_.qE=function(a,W,w,Z,N,B,I){N=N===void 0?"":N;B=B===void 0?!1:B;I=I===void 0?!1:I;if(a)if(w&&!eg("cobalt"))_.qx(new _.Uw("Legacy referrer-scrubbed ping detected")),a&&TiI(a,void 0,{scrubReferrer:!0});else if(N)fWe(a,W,"POST",N,Z);else if(_.LF("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Z||I)fWe(a,W,"GET","",Z,void 0,B,I);else{b:{try{c:{var X=new KhI({url:a});if(j$e(X.JSC$7383_url_,puF)==="1")var v=null;else{var U=j$e(X.JSC$7383_url_,r7x);if(U==="1"){var O=j$e(X.JSC$7383_url_,A7e);if(O)try{v={version:3,
directUrl:decodeURIComponent(O),asyncUrl:LHE(X.JSC$7383_url_,"act=1","ri=1",h5F(X))};break c}catch(h){}}v=U==="2"?{version:4,directUrl:LHE(X.JSC$7383_url_,"dct=1","suid="+X.suid_,""),asyncUrl:LHE(X.JSC$7383_url_,"act=1","ri=1","suid="+X.suid_)}:null}}if(v){var S=_.tw(a);var T=!(!S||!S.endsWith("/aclk")||_.JK(a,"ri")!=="1");break b}}catch(h){}T=!1}if(T){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var p=!0;break b}}catch(h){}p=!1}p?(W&&W(),w=!0):w=!1}else w=
!1;w||TiI(a,W)}};
TiI=function(a,W,w){w=w===void 0?{}:w;var Z=new Image,N=""+iCE++;c7E[N]=Z;Z.onload=Z.onerror=function(){W&&c7E[N]&&W();delete c7E[N]};
w.scrubReferrer&&(Z.referrerPolicy="no-referrer");Z.src=a};
Ql=function(a,W){e5C(a,W==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
noE=function(a){var W;return((W=document.featurePolicy)==null?0:W.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
j1m=function(a){if(!a)return!1;try{var W;if(((W=_.bG(a))==null?void 0:W.asm)==="4")return!0}catch(w){_.Ff(w)}return!1};
e5C=function(a,W){W?(a=noE(a),_.qE(a,void 0,void 0,void 0,"",!0,!0)):_.qE(a)};
J7H=function(){Lh7||(Lh7=new _.LJ("yt.offline"));return Lh7};
FhH=function(a){if(_.r("offline_error_handling")){var W=J7H().get("errors",!0)||{};W[a.message]={name:a.name,stack:a.stack};a.level&&(W[a.message].level=a.level);J7H().set("errors",W,2592E3,!0)}};
R5F=function(a,W,w,Z){Z=Z===void 0?!1:Z;W=_.r("web_fp_via_jspb")?Object.assign({},W):W;_.r("use_cfr_monitor")&&MME(a,W);if(_.r("use_request_time_ms_header"))W.headers&&dw(a)&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.mG)())));else{var N;if((N=W.postParams)==null?0:N.requestTimeMs)W.postParams.requestTimeMs=Math.round((0,_.mG)())}w&&Object.keys(W).length===0?_.qE(a):W.compress?W.postBody?(typeof W.postBody!=="string"&&(W.postBody=JSON.stringify(W.postBody)),GCI(a,W.postBody,
W,_.Bi,Z)):GCI(a,JSON.stringify(W.postParams),W,z37,Z):_.Bi(a,W)};
q6e=function(a,W){_.r("use_event_time_ms_header")&&dw(a)&&(W.headers||(W.headers={}),W.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.mG)())));return W};
_.xjF=function(){Q1S||(Q1S=new _.xm({logOfflineErrors:!0,enablePolling:!0}));return Q1S};
MME=function(a,W){var w=W.onError?W.onError:function(){};
W.onError=function(N,B){bn().requestComplete(a,!1);w(N,B)};
var Z=W.onSuccess?W.onSuccess:function(){};
W.onSuccess=function(N,B){bn().requestComplete(a,!0);Z(N,B)}};
_.bCH=function(){return _.D7(document.location.toString())!=="www.youtube-nocookie.com"};
_.ChD=function(){return _.RT("ytNetworklessLoggingInitializationOptions")?_.s1E.isNwlInitialized:_.uKm};
GX9=function(a,W){if(_.r("polymer_on_demand_shady_dom")){var w;var Z=(w=a.__shady_native_firstElementChild)!=null?w:a.firstElementChild}else Z=a.firstElementChild;for(;Z;){if(a=W(Z)?Z:GX9(Z,W))return a;Z=Z.nextElementSibling}return null};
f3S=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var W=DjI+"VisibilityState";if(W in a)return a[W]};
_.djE=function(a,W){var w;sx(a,function(Z){w=W[Z];return!!w});
return w};
_.CJ=function(a){var W=mj7(a);W?W.focus():_.un(a)};
mj7=function(a){return(a=GX9(a,function(W){return _.GK(W)?VMe(W)&&!!W.offsetParent:!1}))?a:null};
_.un=function(a,W){a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1");a.focus(W)};
z5I=function(a,W,w,Z){Z=Z===void 0?{}:Z;a.addEventListener&&(W!="mouseenter"||"onmouseenter"in document?W!="mouseleave"||"onmouseenter"in document?W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"):W="mouseout":W="mouseover");return _.T5.findKey(DV,function(N){var B=typeof N[4]==="boolean"&&N[4]==!!Z,I=_.tL(N[4])&&_.tL(Z)&&_.T5.equals(N[4],Z);return!!N.length&&N[0]==a&&N[1]==W&&N[2]==w&&(B||I)})};
_.mQ=function(a,W,w,Z){Z=Z===void 0?{}:Z;if(!a||!a.addEventListener&&!a.attachEvent)return"";var N=z5I(a,W,w,Z);if(N)return N;N=++HCI.count+"";var B=!(W!="mouseenter"&&W!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var I=B?function(X){X=new fJ(X);if(!_.LY(X.relatedTarget,function(v){return v==a},!0))return X.currentTarget=a,X.type=W,w.call(a,X)}:function(X){X=new fJ(X);
X.currentTarget=a;return w.call(a,X)};
I=_.Mx(I);a.addEventListener?(W=="mouseenter"&&B?W="mouseover":W=="mouseleave"&&B?W="mouseout":W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"),y7m()||typeof Z==="boolean"?a.addEventListener(W,I,Z):a.addEventListener(W,I,!!Z.capture)):a.attachEvent("on"+W,I);DV[N]=[a,W,w,I,Z];return N};
_.aCF=function(a,W,w){var Z=Z===void 0?{}:Z;var N=_.mQ(a,W,function(){_.EoH(N);w.apply(a,arguments)},Z)};
_.EoH=function(a){a&&(typeof a=="string"&&(a=[a]),_.x6(a,function(W){if(W in DV){var w=DV[W],Z=w[0],N=w[1],B=w[3];w=w[4];Z.removeEventListener?y7m()||typeof w==="boolean"?Z.removeEventListener(N,B,w):Z.removeEventListener(N,B,!!w.capture):Z.detachEvent&&Z.detachEvent("on"+N,B);delete DV[W]}}))};
Vl=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_=_.mQ(window,"mousemove",(0,_.Sk)(this.onMouseMove_,this));this.timerId_=_.Zp((0,_.Sk)(this.checkPosition_,this),25)};
wAH=function(){var a={};var W=a.preferMobileEvents===void 0?!1:a.preferMobileEvents;a=a.enableScrollEventListener===void 0?!0:a.enableScrollEventListener;if(_.RT("_lact",window)==null){var w=parseInt(_.LF("LACT"),10);w=isFinite(w)?Date.now()-Math.max(w,0):-1;_.Dp("_lact",w,window);_.Dp("_fact",w,window);w==-1&&_.zK();_.mQ(document,"keydown",_.zK);_.mQ(document,"keyup",_.zK);_.mQ(document,"mousedown",_.zK);_.mQ(document,"mouseup",_.zK);W?_.mQ(window,"touchmove",function(){WVE("touchmove",200)},{passive:!0}):
(_.mQ(window,"resize",function(){WVE("resize",200)}),a&&_.mQ(window,"scroll",function(){WVE("scroll",200)}));
new Vl(function(){WVE("mouse",100)});
_.mQ(document,"touchstart",_.zK,{passive:!0});_.mQ(document,"touchend",_.zK,{passive:!0})}};
WVE=function(a,W){Zp7[a]||(Zp7[a]=!0,_.hF.addLowPriorityJob(function(){_.zK();Zp7[a]=!1},W))};
_.zK=function(){_.RT("_lact",window)==null&&wAH();var a=Date.now();_.Dp("_lact",a,window);_.RT("_fact",window)==-1&&_.Dp("_fact",a,window);(a=_.RT("ytglobal.ytUtilActivityCallback_"))&&a()};
_.HI=function(){var a=_.RT("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)};
_.Z8=function(a,W,w){var Z=_.ag();if(Z&&W){var N=Z.subscribe(a,function(){var B=arguments,I=function(){WZ[N]&&W.apply&&typeof W.apply=="function"&&W.apply(w||window,B)};
try{_.N$S[a]?I():_.wz(I,0)}catch(X){_.Ff(X)}},w);
WZ[N]=!0;wt[a]||(wt[a]=[]);wt[a].push(N);return N}return 0};
_.tKe=function(a){var W=_.ag();W&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),_.x6(a,function(w){W.unsubscribeByKey(w);delete WZ[w]}))};
_.$te=function(a,W){var w=_.ag();w&&w.publish.apply(w,arguments)};
_.lC9=function(a){var W=_.ag();if(W)if(W.clear(a),a)B$e(a);else for(var w in wt)B$e(w)};
_.ag=function(){return _.NH.ytPubsubPubsubInstance};
B$e=function(a){wt[a]&&(a=wt[a],_.x6(a,function(W){WZ[W]&&delete WZ[W]}),a.length=0)};
ICx=function(){var a,W;return"h5vcc"in Nd&&((a=Nd.h5vcc.traceEvent)==null?0:a.traceBegin)&&((W=Nd.h5vcc.traceEvent)==null?0:W.traceEnd)?1:"performance"in Nd&&Nd.performance.mark&&Nd.performance.measure?2:0};
PO7=function(a){var W=ICx();switch(W){case 1:Nd.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:Nd.performance.mark(a+"-start");break;case 0:break;default:_.l9(W,"unknown trace type")}};
XAe=function(a){var W=ICx();switch(W){case 1:Nd.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:W=a+"-start";var w=a+"-end";Nd.performance.mark(w);Nd.performance.measure(a,W,w);break;case 0:break;default:_.l9(W,"unknown trace type")}};
vQC=function(a){var W,w;(w=(W=window).onerror)==null||w.call(W,a.message,"",0,0,a)};
gQS=function(a){if(_.r("web_lifecycle_error_handling_killswitch"))return a();try{return a()}catch(W){vQC(W)}};
oQI=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("/")};
_.A=function(a,W){if(a)return a[W.name]};
BZ=function(){var a=_.RT("yt.logging.ims");a||(a=new tl,_.Dp("yt.logging.ims",a));return a};
rt9=function(a,W){if(a.endpoint==="log_event"){kDH(a);var w=Ute(a),Z=OpH(a.payload)||"",N=SNe(Z),B=200;if(N){if(N.enabled===!1&&!_.r("web_payload_policy_disabled_killswitch"))return;B=YNv(N.tier);if(B===400){T$8(a,W);return}}la[w]=!0;w={cttAuthInfo:w,isJspb:!1,tier:B};BZ().storePayload(w,a.payload);KVF(W,!1,w,pA7(Z))}};
hSD=function(a,W,w){if(W.endpoint==="log_event"){kDH(void 0,W);var Z=Ute(W,!0),N=SNe(a),B=200;if(N){if(N.enabled===!1&&!_.r("web_payload_policy_disabled_killswitch"))return;B=YNv(N.tier);if(B===400){Ate(a,W,w);return}}la[Z]=!0;Z={cttAuthInfo:Z,isJspb:!0,tier:B};BZ().storePayload(Z,Z2(W.payload));KVF(w,!0,Z,pA7(a))}};
KVF=function(a,W,w,Z){W=W===void 0?!1:W;Z=Z===void 0?!1:Z;a&&(Ig=new a);a=_.yv("tvhtml5_logging_max_batch_ads_fork")||_.yv("tvhtml5_logging_max_batch")||_.yv("web_logging_max_batch")||100;var N=(0,_.mG)(),B=ipE(W,w.tier),I=B.lastDebounceQueueFromLogTimeMs;Z&&(B.useVideoStatsEndPoint=!0);Z=0;w&&(Z=BZ().getSequenceCount(w));var X=function(){ctv({writeThenSend:!0},W,w.tier)};
Z>=1E3?X():Z>=a?eSF||(eSF=nQS(function(){X();eSF=void 0},0)):N-I>=10&&(j5H(W,w.tier),B.lastDebounceQueueFromLogTimeMs=N)};
T$8=function(a,W){if(a.endpoint==="log_event"){_.r("more_accurate_gel_parser")&&BZ().storePayload({isJspb:!1},a.payload);kDH(a);var w=Ute(a),Z=new Map;Z.set(w,[a.payload]);var N=OpH(a.payload)||"";W&&(Ig=new W);return new _.PZ(function(B,I){Ig&&Ig.isReady()?LVx(Z,Ig,B,I,{bypassNetworkless:!0},!0,pA7(N)):B()})}};
Ate=function(a,W,w){if(W.endpoint==="log_event"){kDH(void 0,W);var Z=Ute(W,!0),N=new Map;N.set(Z,[Z2(W.payload)]);w&&(Ig=new w);return new _.PZ(function(B){Ig&&Ig.isReady()?JtF(N,Ig,B,{bypassNetworkless:!0},!0,pA7(a)):B()})}};
Ute=function(a,W){var w="";if(a.dangerousLogToVisitorSession)w="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(W===void 0?0:W){W=a.cttAuthInfo.token;w=a.cttAuthInfo;var Z=new FV9;w.videoId?Z.setVideoId(w.videoId):w.playlistId&&XI(Z,2,MKF,xd(w.playlistId));RSC[W]=Z}else W=a.cttAuthInfo,w={},W.videoId?w.videoId=W.videoId:W.playlistId&&(w.playlistId=W.playlistId),qNv[a.cttAuthInfo.token]=w;w=a.cttAuthInfo.token}return w};
ctv=function(a,W,w){a=a===void 0?{}:a;W=W===void 0?!1:W;new _.PZ(function(Z,N){var B=ipE(W,w),I=B.useVideoStatsEndPoint;B.useVideoStatsEndPoint=!1;Q5E(B.queueTimer);Q5E(B.queueMaxTimer);B.queueMaxTimer=0;Ig&&Ig.isReady()?w===void 0&&_.r("enable_web_tiered_gel")?xte(Z,N,a,W,300,I):xte(Z,N,a,W,w,I):(j5H(W,w),Z())})};
xte=function(a,W,w,Z,N,B){var I=Ig;w=w===void 0?{}:w;Z=Z===void 0?!1:Z;N=N===void 0?200:N;B=B===void 0?!1:B;var X=new Map,v=new Map,U={isJspb:Z,cttAuthInfo:void 0,tier:N},O={isJspb:Z,cttAuthInfo:void 0};if(Z){W=_.l(Object.keys(la));for(N=W.next();!N.done;N=W.next())N=N.value,v=_.r("enable_web_tiered_gel")?BZ().smartExtractMatchingEntries({keys:[U,O],sizeLimit:1E3}):BZ().extractMatchingEntries({isJspb:!0,cttAuthInfo:N}),v.length>0&&X.set(N,v),(_.r("web_fp_via_jspb_and_json")&&w.writeThenSend||!_.r("web_fp_via_jspb_and_json"))&&
delete la[N];JtF(X,I,a,w,!1,B)}else{X=_.l(Object.keys(la));for(U=X.next();!U.done;U=X.next())U=U.value,O=_.r("enable_web_tiered_gel")?BZ().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:U,tier:N},{isJspb:!1,cttAuthInfo:U}],sizeLimit:1E3}):BZ().extractMatchingEntries({isJspb:!1,cttAuthInfo:U}),O.length>0&&v.set(U,O),(_.r("web_fp_via_jspb_and_json")&&w.writeThenSend||!_.r("web_fp_via_jspb_and_json"))&&delete la[U];LVx(v,I,a,W,w,!1,B)}};
j5H=function(a,W){a=a===void 0?!1:a;W=W===void 0?200:W;var w=function(){ctv({writeThenSend:!0},a,W)},Z=ipE(a,W),N=Z===bpe||Z===s59?5E3:uMv;
_.r("web_gel_timeout_cap")&&!Z.queueMaxTimer&&(N=nQS(function(){w()},N),Z.queueMaxTimer=N);
Q5E(Z.queueTimer);N=_.LF("LOGGING_BATCH_TIMEOUT",_.yv("web_gel_debounce_ms",1E4));_.r("shorten_initial_gel_batch_timeout")&&COF&&(N=GD8);N=nQS(function(){_.yv("gel_min_batch_size")>0?BZ().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:W})>=DtC&&w():w()},N);
Z.queueTimer=N};
LVx=function(a,W,w,Z,N,B,I){N=N===void 0?{}:N;var X=Math.round((0,_.mG)()),v=a.size,U=fCS(I);a=_.l(a);var O=a.next();for(I={};!O.done;I={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},O=a.next()){var S=_.l(O.value);O=S.next().value;S=S.next().value;I.batchRequest=_.T5.unsafeClone({context:_.KXv(W.config_||_.z4())});if(!_.wT(S)&&!_.r("throw_err_when_logevent_malformed_killswitch")){Z();break}I.batchRequest.events=S;
(S=qNv[O])&&dtD(I.batchRequest,O,S);delete qNv[O];I.dangerousLogToVisitorSession=O==="visitorOnlyApprovedKey";mte(I.batchRequest,X,I.dangerousLogToVisitorSession);VKE(N);I.onSuccess$jscomp$3=function(T){_.r("start_client_gcf")&&_.hF.addLowPriorityJob(function(){return _.P(function(p){return _.g(p,zSI(T),0)})});
v--;v||w()};
I.networkFailures=0;I.onError$jscomp$5=function(T){return function(){T.networkFailures++;if(N.bypassNetworkless&&T.networkFailures===1)try{wue(W,U,T.batchRequest,Hpm({writeThenSend:!0},T.dangerousLogToVisitorSession,T.onSuccess$jscomp$3,T.onError$jscomp$5,B)),COF=!1}catch(p){_.Ff(p),Z()}v--;v||w()}}(I);
try{wue(W,U,I.batchRequest,Hpm(N,I.dangerousLogToVisitorSession,I.onSuccess$jscomp$3,I.onError$jscomp$5,B)),COF=!1}catch(T){_.Ff(T),Z()}}};
JtF=function(a,W,w,Z,N,B){Z=Z===void 0?{}:Z;var I=Math.round((0,_.mG)()),X={value:a.size},v=new Map([].concat(_.K8(a)));v=_.l(v);for(var U=v.next();!U.done;U=v.next()){var O=_.l(U.value).next().value,S=a.get(O);U=new ytx;var T=W.config_||_.z4(),p=new vZ,h=new EQe;_.Xu(h,1,T.innertubeContextHostLanguage);_.Xu(h,2,T.innertubeContextGeoLocation);_.yJ(h,16,T.innertubeContextClientNameFieldNumber);_.Xu(h,17,T.innertubeContextClientVersion);if(T.innertubeContextClientConfigInfo){var L=T.innertubeContextClientConfigInfo,
F=new ax;L.coldConfigData&&_.Xu(F,1,L.coldConfigData);L.appInstallData&&_.Xu(F,6,L.appInstallData);L.coldHashData&&_.Xu(F,3,L.coldHashData);L.hotHashData&&F.setHotHashData(L.hotHashData);_.ZP(h,62,F)}(L=_.NH.devicePixelRatio)&&L!=1&&_.Ew(h,65,_.IE(L));L=qfU();L!==""&&_.Xu(h,54,L);L=QUv();if(L.length>0){F=new agI;for(var x=0;x<L.length;x++){var G=new gt;G.setKey(L[x].key);XI(G,2,WYx,xd(L[x].value));og(F,15,gt,G)}_.ZP(p,5,F)}kGx(T,h);U1H(p);ODe(h);S_v(T,h);Y_E(h);_.r("start_client_gcf")&&TSS(h);_.LF("DELEGATED_SESSION_ID")&&
!_.r("pageid_as_header_web")&&(T=new kj,_.Xu(T,3,_.LF("DELEGATED_SESSION_ID")));!_.r("fill_delegate_context_in_gel_killswitch")&&(L=_.LF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(F=_.Hi(p,kj,3)||new kj,T=p,L=_.Xu(F,18,L),_.ZP(T,3,L));T=h;L=_.l(Object.entries(_.bG(_.LF("DEVICE",""))));for(F=L.next();!F.done;F=L.next())x=_.l(F.value),F=x.next().value,x=x.next().value,F==="cbrand"?_.Xu(T,12,x):F==="cmodel"?_.Xu(T,13,x):F==="cbr"?_.Xu(T,87,x):F==="cbrver"?_.Xu(T,88,x):F==="cos"?_.Xu(T,18,
x):F==="cosver"?_.Xu(T,19,x):F==="cplatform"&&_.yJ(T,42,gsU(x));p.setClient(h);_.ZP(U,1,p);if(h=RSC[O])a:{if(_.I$(h,Un(h,MKF,1)))p=1;else if(h.getPlaylistId())p=2;else break a;_.ZP(U,4,h);h=U.getContext()||new vZ;T=_.Hi(h,kj,3)||new kj;L=new On;L.setToken(O);_.yJ(L,1,p);og(T,12,On,L);_.ZP(h,3,T)}delete RSC[O];O=O==="visitorOnlyApprovedKey";wXe()||_.SJ(U,2,I);!O&&(p=_.LF("EVENT_ID"))&&(h=Ztv(),T=new NJm,_.Xu(T,1,p),_.SJ(T,2,h),_.ZP(U,5,T));VKE(Z);if(_.r("jspb_serialize_with_worker")&&(p=_.LO9())&&
Z.writeThenSend){_.txF.set($wF,{client:W,resolve:w,networklessOptions:Z,isIsolated:N,useVSSEndpoint:B,dangerousLogToVisitorSession:O,requestsOutstanding:X});p.postMessage({op:"gelBatchToSerialize",batchRequest:Z2(U),clientEvents:S,key:$wF});$wF++;break}if(S){p=[];for(h=0;h<S.length;h++)try{p.push(new Yj(S[h]))}catch(V){_.Ff(new _.Uw("Transport failed to deserialize "+String(S[h])))}S=p}else S=[];S=_.l(S);for(p=S.next();!p.done;p=S.next())og(U,3,Yj,p.value);S={startTime:(0,_.mG)(),ticks:{},infos:{}};
U=U.serialize();S.ticks.geljspc=(0,_.mG)();_.r("log_jspb_serialize_latency")&&ixE("gel_jspb_serialize",S,{sampleRate:.1});_.BJ7(U,W,w,Z,N,B,O,X)}};
_.BJ7=function(a,W,w,Z,N,B,I,X){Z=Z===void 0?{}:Z;X=X===void 0?{value:0}:X;B=fCS(B);Z=Hpm(Z,I,function(v){_.r("start_client_gcf")&&_.hF.addLowPriorityJob(function(){return _.P(function(U){return _.g(U,zSI(v),0)})});
X.value--;X.value||w()},function(){X.value--;
X.value||w()},N);
Z.headers["Content-Type"]="application/json+protobuf";Z.postBodyFormat="JSPB";Z.postBody=a;wue(W,B,"",Z);COF=!1};
VKE=function(a){_.r("always_send_and_write")&&(a.writeThenSend=!1)};
Hpm=function(a,W,w,Z,N){a={retry:!0,onSuccess:w,onError:Z,networklessOptions:a,dangerousLogToVisitorSession:W,bypassMonitoring:!!N,headers:{},postBodyFormat:"",postBody:"",compress:_.r("compress_gel")||_.r("compress_gel_lr")};wXe()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.mG)())));return a};
mte=function(a,W,w){wXe()||(a.requestTimeMs=String(W));_.r("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!w&&(W=_.LF("EVENT_ID"))&&(w=Ztv(),a.serializedClientEventId={serializedEventId:W,clientCounter:String(w)})};
Ztv=function(){var a=_.LF("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*65535/2));a++;a>65535&&(a=1);_.jm("BATCH_CLIENT_COUNTER",a);return a};
dtD=function(a,W,w){if(w.videoId)var Z="VIDEO";else if(w.playlistId)Z="PLAYLIST";else return;a.credentialTransferTokenTargetId=w;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:W,scope:Z}]};
kDH=function(a,W){var w=_.Et("il_payload_scraping")==="enable_il_payload_scraping";if(!_.RT("yt.logging.transport.enableScrapingForTest"))if(w)lg8=[],_.Dp("yt.logging.transport.enableScrapingForTest",!0),_.Dp("yt.logging.transport.scrapedPayloadsForTesting",lg8),_.Dp("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Dp("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Dp("yt.logging.transport.scrapeClientEvent",!0);else return;w=_.RT("yt.logging.transport.scrapedPayloadsForTesting");var Z=_.RT("yt.logging.transport.payloadToScrape");W&&(W=_.RT("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(W.payload)())&&w.push(W);W=_.RT("yt.logging.transport.scrapeClientEvent");if(Z&&Z.length>=1)for(var N=0;N<Z.length;N++)if(a&&a.payload[Z[N]])if(W)w.push(a.payload);else{var B=void 0;w.push(((B=a)==null?void 0:B.payload)[Z[N]])}_.Dp("yt.logging.transport.scrapedPayloadsForTesting",
w)};
wXe=function(){return _.r("use_request_time_ms_header")||_.r("lr_use_request_time_ms_header")};
nQS=function(a,W){return _.r("transport_use_scheduler")===!1?_.wz(a,W):_.r("logging_avoid_blocking_during_navigation")||_.r("lr_logging_avoid_blocking_during_navigation")?_.TP(_.hF,function(){if(_.IgD().currentState==="none")a();else{var w={};_.IgD().install((w.none={callback:a},w))}},W):_.TP(_.hF,a,W)};
Q5E=function(a){_.r("transport_use_scheduler")?_.hF.cancelJob(a):_.NY(a)};
zSI=function(a){var W,w,Z,N,B,I,X,v,U,O;return _.P(function(S){return S.nextAddress==1?(Z=(W=a)==null?void 0:(w=W.responseContext)==null?void 0:w.globalConfigGroup,N=_.A(Z,PxU),I=(B=Z)==null?void 0:B.hotHashData,X=_.A(Z,XXx),U=(v=Z)==null?void 0:v.coldHashData,(O=_.K().resolve(_.Vv(KH)))?I?N?_.g(S,vJC(O,I,N),2):_.g(S,vJC(O,I),2):S.jumpTo(2):S.return()):U?X?_.g(S,gJD(O,U,X),0):_.g(S,gJD(O,U),0):S.jumpTo(0)})};
ipE=function(a,W){W=W===void 0?200:W;return a?W===300?bpe:oJ9:W===300?s59:k$8};
SNe=function(a){if(_.r("enable_web_tiered_gel")){a=Uw8[a||""];var W,w,Z,N=_.K().resolve(_.Vv(KH))==null?void 0:(W=OtH())==null?void 0:(w=W.loggingHotConfig)==null?void 0:(Z=w.eventLoggingConfig)==null?void 0:Z.payloadPolicies;if(N)for(W=0;W<N.length;W++)if(N[W].payloadNumber===a)return N[W]}};
OpH=function(a){a=Object.keys(a);a=_.l(a);for(var W=a.next();!W.done;W=a.next())if(W=W.value,Uw8[W])return W};
YNv=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}};
pA7=function(a){return a==="gelDebuggingEvent"};
fCS=function(a){return(a===void 0?0:a)&&_.r("vss_through_gel_video_stats")?"video_stats":"log_event"};
rt=function(a,W,w,Z){Z=Z===void 0?{}:Z;var N={},B=Math.round(Z.timestamp||(0,_.mG)());N.eventTimeMs=B<Number.MAX_SAFE_INTEGER?B:0;N[a]=W;a=_.HI();N.context={lastActivityMs:String(Z.timestamp||!isFinite(a)?-1:a)};Z.sequenceGroup&&!_.r("web_gel_sequence_info_killswitch")&&(a=N.context,W=Z.sequenceGroup,W={index:S8H(W),groupKey:W},a.sequence=W,Z.endOfSequence&&delete pH[Z.sequenceGroup]);(Z.sendIsolatedPayload?T$8:rt9)({endpoint:"log_event",payload:N,cttAuthInfo:Z.cttAuthInfo,dangerousLogToVisitorSession:Z.dangerousLogToVisitorSession},
w)};
S8H=function(a){pH[a]=a in pH?pH[a]+1:0;return pH[a]};
_.ia=function(a,W,w){w=w===void 0?{}:w;var Z=Al;_.JS("ytLoggingEventsDefaultDisabled",!1)&&Al===Al&&(Z=null);rt(a,W,Z,w)};
_.cZ=function(){if(_.r("web_fp_via_jspb")){var a=!0;a=a===void 0?!1:a;var W=Y8I;Y8I=[];if(W){W=_.l(W);for(var w=W.next();!w.done;w=W.next())w=w.value,a?rt(w.payloadName,w.payload,Al,w.options):_.ia(w.payloadName,w.payload,w.options)}ctv(void 0,!0);if(!_.r("web_fp_via_jspb_and_json"))return}ctv(void 0,!1)};
TJ8=function(a,W){var w;if((w=W)==null?0:w.componentStack)return W;if(a=a.componentStack)W||(W={}),W.componentStack=a;return W};
KYe=function(){_.x6(_.LF("ERRORS")||[],function(a){_.eJ.apply(null,a)});
_.jm("ERRORS",[])};
_.nH=function(a){_.eJ(a)};
_.jJ=function(a){_.eJ(a,"WARNING")};
pXE=function(a){a instanceof Error?_.eJ(a):(a=_.tL(a)?JSON.stringify(a):String(a),a=new _.Uw(a),a.name="RejectedPromiseError",_.jJ(a))};
rQ9=function(a,W,w,Z,N,B){W=W===void 0?"Unknown file":W;w=w===void 0?0:w;var I=!1,X=OMF("log_window_onerror_fraction");if(X&&Math.random()<X)I=!0;else{X=document.getElementsByTagName("script");for(var v=0,U=X.length;v<U;v++)if(X[v].src.indexOf("/debug-")>0){I=!0;break}}I&&(I=!1,N?I=!0:(typeof a==="string"?X=a:ErrorEvent&&a instanceof ErrorEvent?(I=!0,X=a.message,W=a.filename,w=a.lineno,Z=a.colno):(X="Unknown error",W="Unknown file",w=0),N=new _.Uw(X),N.name="UnhandledWindowError",N.message=X,N.fileName=
W,N.lineNumber=w,isNaN(Z)?delete N.columnNumber:N.columnNumber=Z),_.r("wiz_enable_component_stack_propagation_killswitch")||(B=TJ8(N,B)),B&&_.LH(N,B),I?_.eJ(N):_.jJ(N))};
_.eJ=function(a,W,w,Z,N,B,I,X){B=B===void 0?{}:B;B.name=w||_.LF("INNERTUBE_CONTEXT_CLIENT_NAME",1);B.version=Z||_.LF("INNERTUBE_CONTEXT_CLIENT_VERSION");w=B;W=W===void 0?"ERROR":W;I=I===void 0?!1:I;W=W===void 0?"ERROR":W;I=I===void 0?!1:I;if(a&&(a.hasOwnProperty("level")&&a.level&&(W=a.level),_.r("console_log_js_exceptions")&&(Z=[],Z.push("Name: "+a.name),Z.push("Message: "+a.message),a.hasOwnProperty("params")&&Z.push("Error Params: "+JSON.stringify(a.params)),a.hasOwnProperty("args")&&Z.push("Error args: "+
JSON.stringify(a.args)),Z.push("File name: "+a.fileName),Z.push("Stacktrace: "+a.stack),Z=Z.join("\n"),window.console.log(Z,a)),!(AQm>=5))){Z=[];N=_.l(hIe);for(B=N.next();!B.done;B=N.next()){B=B.value;try{B()&&Z.push(B())}catch(F){}}Z=[].concat(_.K8(ite),_.K8(Z));var v=cQx(a);N=v.message||"Unknown Error";B=v.name||"UnknownError";var U=v.stack||a.stacktrace||"Not available";if(U.startsWith(B+": "+N)){var O=U.split("\n");O.shift();U=O.join("\n")}O=v.lineNumber||"Not available";v=v.fileName||"Not available";
var S=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var T=0;T<a.args.length&&!(S=vsF(a.args[T],"params."+T,w,S),S>=500);T++);else if(a.hasOwnProperty("params")&&a.params){var p=a.params;if(typeof a.params==="object")for(T in p){if(p[T]){var h="params."+T,L=Pi(p[T]);w[h]=L;S+=h.length+L.length;if(S>500)break}}else w.params=Pi(p)}if(Z.length)for(T=0;T<Z.length&&!(S=vsF(Z[T],"params.context."+T,w,S),S>=500);T++);navigator.vendor&&!w.hasOwnProperty("vendor")&&(w["device.vendor"]=navigator.vendor);
T={message:N,name:B,lineNumber:O,fileName:v,stack:U,params:w,sampleWeight:1};w=Number(a.columnNumber);isNaN(w)||(T.lineNumber=T.lineNumber+":"+w);if(a.level==="IGNORED")a=0;else a:{a=eI7();w=_.l(a.messageWeights);for(Z=w.next();!Z.done;Z=w.next())if(Z=Z.value,T.message&&T.message.match(Z.messageRegExp)){a=Z.weight;break a}a=_.l(a.callbackWeights);for(w=a.next();!w.done;w=a.next())if(w=w.value,w.callback(T)){a=w.weight;break a}a=1}T.sampleWeight=a;a=_.l(nJm);for(w=a.next();!w.done;w=a.next())if(w=
w.value,w.patternsForType[T.name])for(N=_.l(w.patternsForType[T.name]),Z=N.next();!Z.done;Z=N.next())if(B=Z.value,Z=T.message.match(B.regexp)){T.params["params.error.original"]=Z[0];N=B.groups;B={};for(O=0;O<N.length;O++)B[N[O]]=Z[O+1],T.params["params.error."+N[O]]=Z[O+1];T.message=w.messageFn(B);break}T.params||(T.params={});a=eI7();T.params["params.errorServiceSignature"]="msg="+a.messageWeights.length+"&cb="+a.callbackWeights.length;T.params["params.serviceWorker"]="false";_.NH.document&&_.NH.document.querySelectorAll&&
(T.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Jl(jde,"sample")).constructor!==Jl&&(T.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(T);if(T.sampleWeight!==0&&!LYI.has(T.message)){if(I&&_.r("web_enable_error_204"))JQD(W===void 0?"ERROR":W,T);else{W=W===void 0?"ERROR":W;W==="ERROR"?(FYC.publish("handleError",T),_.r("record_app_crashed_web")&&MxU===0&&T.sampleWeight===1&&(MxU++,I={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.r("report_client_error_with_app_crash_ks")||(I.systemHealth={crashData:{clientError:{logMessage:{message:T.message}}}}),_.ia("appCrashed",I)),RIe++):W==="WARNING"&&FYC.publish("handleWarning",T);if(_.r("kevlar_gel_error_routing")){I=W;X=X===void 0?{}:X;b:{a=_.l(q8C);for(w=a.next();!w.done;w=a.next())if(eg(w.value.toLowerCase())){a=!0;break b}a=!1}if(a)X=void 0;else{w={stackTrace:T.stack};T.fileName&&(w.filename=T.fileName);a=T.lineNumber&&T.lineNumber.split?T.lineNumber.split(":"):[];a.length!==
0&&(a.length!==1||isNaN(Number(a[0]))?a.length!==2||isNaN(Number(a[0]))||isNaN(Number(a[1]))||(w.lineNumber=Number(a[0]),w.columnNumber=Number(a[1])):w.lineNumber=Number(a[0]));a={level:"ERROR_LEVEL_UNKNOWN",message:T.message,errorClassName:T.name,sampleWeight:T.sampleWeight};I==="ERROR"?a.level="ERROR_LEVEL_ERROR":I==="WARNING"&&(a.level="ERROR_LEVEL_WARNNING");w={isObfuscated:!0,browserStackInfo:w};X.pageUrl=window.location.href;X.kvPairs=[];_.LF("FEXP_EXPERIMENTS")&&(X.experimentIds=_.LF("FEXP_EXPERIMENTS"));
Z=_.LF("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!OMF("web_disable_gel_stp_ecatcher_killswitch")&&Z)for(N=_.l(Object.keys(Z)),B=N.next();!B.done;B=N.next())B=B.value,X.kvPairs.push({key:B,value:String(Z[B])});if(Z=T.params)for(N=_.l(Object.keys(Z)),B=N.next();!B.done;B=N.next())B=B.value,X.kvPairs.push({key:"client."+B,value:String(Z[B])});Z=_.LF("SERVER_NAME");N=_.LF("SERVER_VERSION");Z&&N&&(X.kvPairs.push({key:"server.name",value:Z}),X.kvPairs.push({key:"server.version",value:N}));X={errorMetadata:X,
stackTrace:w,logMessage:a}}X&&(_.ia("clientError",X),(I==="ERROR"||_.r("errors_flush_gel_always_killswitch"))&&_.cZ())}_.r("suppress_error_204_logging")||JQD(W,T)}try{LYI.add(T.message)}catch(F){}AQm++}}};
JQD=function(a,W){var w=W.params||{};a={urlParams:{a:"logerror",t:"jserror",type:W.name,msg:W.message.substr(0,250),line:W.lineNumber,level:a,"client.name":w.name},postParams:{url:_.LF("PAGE_NAME",window.location.href),file:W.fileName},method:"POST"};w.version&&(a["client.version"]=w.version);if(a.postParams){W.stack&&(a.postParams.stack=W.stack);W=_.l(Object.keys(w));for(var Z=W.next();!Z.done;Z=W.next())Z=Z.value,a.postParams["client."+Z]=w[Z];if(w=_.LF("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(W=
_.l(Object.keys(w)),Z=W.next();!Z.done;Z=W.next())Z=Z.value,a.postParams[Z]=w[Z];(w=_.LF("LAVA_VERSION"))&&(a.postParams["lava.version"]=w);w=_.LF("SERVER_NAME");W=_.LF("SERVER_VERSION");w&&W&&(a.postParams["server.name"]=w,a.postParams["server.version"]=W)}_.Bi(_.LF("ECATCHER_REPORT_HOST","")+"/error_204",a)};
_.QdU=function(a,W){W=W===void 0?"ERROR":W;var w=w===void 0?{}:w;var Z=_.RT("ytbin.polymer.shared.lib.tampering.info");Z&&(Z=Z())&&(w["params.tamperingInfo"]=Z.sort().join(","));_.eJ(a,W,void 0,void 0,!0,w)};
_.LH=function(a){var W=_.TH.apply(1,arguments);a.args||(a.args=[]);Array.isArray(a.args)&&a.args.push.apply(a.args,_.K8(W))};
xwI=function(a){a.level="IGNORED"};
btU=function(a,W){ite.push(a);W();ite.pop()};
qd=function(a,W){for(var w in W)W.hasOwnProperty(w)&&(a=_.Rg(a,w,W[w]));return a};
_.sdm=function(a,W,w){w=w===void 0?!1:w;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 W=_.yv("polymer_report_client_url_requested_rate"),!w&&Math.random()<W&&_.jJ(new _.Uw("urlForEndpoint used on client endpoint",a)),null;var Z=_.yv("polymer_report_missing_web_navigation_endpoint_rate");if(a.liveChatEndpoint||a.liveChatReplayEndpoint)Z=0;if(!a.commandMetadata&&!a.clickTrackingParams&&Math.random()<Z){var N={},B;for(B in a)N[B]="1";_.jJ(new _.Uw("Missing navigation data",
N))}N="";if(a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url)N=a.commandMetadata.webCommandMetadata.url;else if(a.searchEndpoint)Math.random()<Z&&_.jJ(new _.Uw("Should not manually handle search",a)),N="/results?search_query="+encodeURIComponent(a.searchEndpoint.query).replace(/%20/g,"+"),a.searchEndpoint.params&&(N+="&sp="+a.searchEndpoint.params);else if(a.watchEndpoint)Math.random()<Z&&_.jJ(new _.Uw("Should not manually handle watch",a)),N="/watch?v="+
a.watchEndpoint.videoId,a.watchEndpoint.playlistId&&(N+="&list="+a.watchEndpoint.playlistId),a.watchEndpoint.index&&(N+="&index="+a.watchEndpoint.index),a.watchEndpoint.startTimeSeconds&&(N+="&t="+a.watchEndpoint.startTimeSeconds);else if(a.browseEndpoint)Z=a.browseEndpoint.browseId,(B=a.browseEndpoint.canonicalBaseUrl)?N=B:Z&&(N=Z.substr(0,2),N=N==="FE"?Z==="FEwhat_to_watch"?"/":Z==="FEmy_videos"?"/my_videos":"/feed/"+Z.substr(2):N==="VL"?"/playlist?list="+Z.substr(2):"/channel/"+Z),N&&a.browseEndpoint.query&&
(N=qd(N+"/search",{query:a.browseEndpoint.query})),N&&a.browseEndpoint.params&&(N=qd(N,{params:a.browseEndpoint.params}));else{if(a.urlEndpoint)return a.urlEndpoint.url;a.signInEndpoint?(N="https://accounts.google.com/ServiceLogin",Z={},_.T5.extend(Z,W||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),W=Z):a.uploadEndpoint?N="//www.youtube.com/upload":a.liveChatEndpoint?(N=a.liveChatEndpoint,Z=_.T5.clone(N),_.tL(N.continuation)&&(B=Object.keys(N.continuation)[0],
Z.continuation=N.continuation[B].continuation),N=qd("/youtubei/v1/live_chat/get_live_chat",Z)):a.liveChatReplayEndpoint?(N=_.T5.clone(a.liveChatReplayEndpoint),N.currentPlayerState&&(_.T5.extend(N,N.currentPlayerState),delete N.currentPlayerState),N=qd("/youtubei/v1/live_chat/get_live_chat_replay",N)):a.liveChatItemContextMenuEndpoint?N=qd("/youtubei/v1/live_chat/get_item_context_menu",a.liveChatItemContextMenuEndpoint):a.liveChatPurchaseMessageEndpoint?N=qd("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
a.liveChatPurchaseMessageEndpoint):a.openSuperStickerBuyFlowCommand?N=qd("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",a.openSuperStickerBuyFlowCommand):a.videoEditEndpoint?N=qd("/edit",{video_id:a.videoEditEndpoint.videoId}):a.liveDashboardEndpoint?N=a.liveDashboardEndpoint.videoId?qd("/live_dashboard",{v:a.liveDashboardEndpoint.videoId}):"/live_dashboard":a.signalNavigationEndpoint&&a.signalNavigationEndpoint.signal&&a.signalNavigationEndpoint.signal==="WEBCAM"?N="/webcam":a.getPdgBuyFlowCommand&&
(N=qd(a.getPdgBuyFlowCommand.buyflowApiPath,{params:a.getPdgBuyFlowCommand.params}))}return N||w?qd(N,W||{}):(_.jJ(new _.Uw("Error: Can't construct url for endpoint","keys:"+Object.keys(a).sort().join(","),a)),null)};
um7=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};
_.G$F=function(a,W){var w=W+a,Z=Cxe.get(w);if(Z)return Z;a=W+"-"+a.replace(/([A-Z])/g,"-$1").toLowerCase();Cxe.set(w,a);return a};
Dw9=function(a){var W=_.em(a,"action")||_.em(a,"command")||_.em(a,"endpoint");if(!W)return null;W=_.G$F(W,"yt");_.A(a,_.Qz)&&(W+="-"+_.A(a,_.Qz).signal.toLowerCase().replace(/_/g,"-"));return W};
Vx8=function(a){try{var W=Object.keys(a)}catch(N){return[]}for(var w=0;w<W.length;w++){var Z=W[w];if(fgv.test(Z)||dw7.test(Z))return mwE(a[Z])}return[]};
mwE=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||[]};
Ht9=function(a,W){W=W===void 0?!1:W;var w=_.K().resolve(_.Vv(xj));w||(w=new zIH,_.K().addProvider({provide:xj,useValue:w}));return w&&a&&!_.T5.isEmpty(a)?w.getUrl(a,W):""};
yQD=function(a,W,w){w=w===void 0?"":w;if(W){a.data=W;var Z=Ht9(W);Z?(hY(a,Z),um7(W)||!dw(Z)?a.rel="nofollow":a.removeAttribute("rel"),_.A(W,_.ba)&&_.A(W,_.ba).target==="TARGET_NEW_WINDOW"?a.target="_blank":w?a.target=w:a.removeAttribute("target")):(a.removeAttribute("href"),a.removeAttribute("rel"),a.removeAttribute("target"))}};
_.GP=function(a,W){var w=Cr;if(SQ())EJe(a,function(){var B=_.TH.apply(0,arguments);ca(w,function(){W.apply(null,_.K8(B))})});
else{var Z=_.sn.getInstance(),N=cS(W);TU(function(){N.value=W});
_.AS(function(){var B={},I=_.ua(Z,(B[a]=function(){var X=_.TH.apply(0,arguments);ca(w,function(){N.value.apply(N,_.K8(X))})},B));
return function(){var X={};_.CH(Z,(X[a]="",X),I)}})}};
_.D8=function(a){return SQ()?aK9(a):Wdm(a)};
_.fH=function(a){return SQ()?aK9(a):Wdm(a)};
Wdm=function(a){return iG(function(){return aK9(a)})};
aK9=function(a){var W=NU9(function(w){W.value&&W.value===w||(W.__count=W.__count?W.__count+1:1);W.value=w;var Z=function(){var N=yS(null);try{return a==null?void 0:a(w)}finally{yS(N)}}();
return function(){Z==null||Z();W.value=null}});
return W};
w$8=function(a){var W=Cr,w=VS.enableContextBasedComponentStacks?void 0:ou;return{getFn:function(){return function(Z){if(!W.isDisposed){var N=function(){return to(function(){return a(Z)})};
if(VS.enableContextBasedComponentStacks)try{var B=N()}catch(I){throw VS.enableContextBasedComponentStacks&&Y1(I),I;}else B=Tv(N,w);B!==!0&&Z.stopPropagation()}}}}};
tLe=function(a,W){if(SQ())ZAx(a,function(Z){var N=yS(null);try{W(Z)}finally{yS(N)}});
else{var w=cS(W);TU(function(){w.value=W});
_.AS(function(){var Z=a.value;if(Z){var N=function(B){w.value(B)};
Z.addEventListener("yt-service-request-sent",N,void 0);return function(){Z?Z.removeEventListener("yt-service-request-sent",N,void 0):N2U(a)}}N2U(a)})}};
N2U=function(a){var W;(W=VS.handleError)==null||W.call.apply(W,[VS].concat(_.K8(eQ(t2x.LOG_NULL_EL_REF_VALUE(),a.__expectedTagName,2))))};
dt=function(a){if(typeof a.children==="function")return a.children(),null;a=_.l(a.children);for(var W=a.next();!W.done;W=a.next())W=W.value,W();return null};
$XD=function(a){var W;return((W=a.prototype)==null?void 0:W.render)===void 0};
B2F=function(a){a=a.items.map(a.children);return a.length>0&&typeof a[0]==="string"?a.join(""):a};
IKI=function(a,W,w){w=w===void 0?!1:w;if(VS.enableContextBasedComponentStacks)try{lKE(a,W,w)}catch(Z){throw Y1(Z),Z;}else Tv(function(){return lKE(a,W,w)})};
lKE=function(a,W,w){w=((w===void 0?0:w)?P5e:X$I)(a,function(){m8(W)});
return w===null?a:w};
m8=function(a){if(a!==void 0&&a!==null)if(a instanceof lG)for(var W=Jo;FT()!=null&&uIx in FT()&&W.contains(FT());)qk();else if(Array.isArray(a))for(W=_.l(a),a=W.next();!a.done;a=W.next())m8(a.value);else if(a instanceof BP||"function"==typeof _.uq&&a instanceof _.uq)fa(a.toString());else if(aT(a)){if(FT()!==a){var w,Z;W=(Z=(w=ou)==null?void 0:w.name)!=null?Z:"unknown";throw Error("ec`"+a.tagName+"`"+W);}qk()}else if(a!=null&&a.contentKind===Z7||a instanceof iq)for(W=I8F(a),W=Array.from(W.childNodes),
W=_.l(W),a=W.next();!a.done;a=W.next())Jo.appendChild(a.value),qk();else if(g5(a)&&(a=a.toString()),w=typeof a,w==="boolean"||w==="number"||w==="string")fa(a);else if(typeof a==="function"){W=Jo;var N=FT();N&&(N._isSignalTextNode||N._isSafeOrSanitizedHtmlNode)||L8I(W,N,a);qk()}else if(a.type===B2F)m8(a.type(Object.assign({},a.props,{children:a.children[0]})));else{Xf.beforeVisit(a);if(typeof a.type==="string"){a:{a.__open||CnH(a.type,a.props.idomKey);N=Jo;for(W in a.props)if(a.props[W]!==v_D){var B=
a.props[W];w=si;w.push(W);w.push(B)}W=VS.attributes;W=W===void 0?Vz:W;B=Jo;w=La(B);z2e(B,w,W);jgx(N,a.props,!0);if((a.props.skip||a.props.skipchildren)&&Jo.hasChildNodes())x1();else{if(a.type==="style"&&UdC(a.children)===null){x1();W=void 0;break a}m8(a.children)}GK7();a.__open&&(a.__open=!1);ZH8(N,a.props);W=N}return W}if(a.type===_.Ha)m8(a.children);else if(!g_x(a)){W=a;try{o_x(W)}catch(I){a=I,(B=VS.handleError)==null||B.call.apply(B,[VS].concat(_.K8(eQ(a,(N=W.type)==null?void 0:N.TAG_NAME))))}W.__open&&
(GK7(),W.__open=!1)}}};
kwS=function(a,W){var w;$XD(a)?w=new gw(W,a):w=new a(W);w.JSC$8174___type=a;w.__updateContext={nextState:w.state,isForced:!1};return w};
o_x=function(a){var W=a.type,w=W.TAG_NAME;if(W===dt)a.props.children=a.children,W(a.props);else{a.children.length>0&&(a.props.children=a.children);var Z;(Z=a.props).idomKey||(Z.idomKey=W);if(w){var N=CnH(w,a.props.idomKey);a.__open=!0;var B=N.__instance}B||(B=kwS(W,a.props),B.props=null,N&&(N.__instance=B,B.el=N));var I;w=((I=B.__updateContext)!=null?I:{nextState:B.state,isForced:!1}).nextState;B.__updateContext=void 0;W.getDerivedStateFromProps&&(w=W.getDerivedStateFromProps(a.props,w));B.props=
a.props;B.state=w;I=function(){var X=B;Xf.beforeRender(X);var v=X.render(X.props);Xf.afterRender(X,v);v?(X.props.idomKey&&(v.props.idomKey=X.props.idomKey),X=v):X=void 0;if(v=X)if(v.__open=a.__open,X=m8(v),a.__open=v.__open,!W.TAG_NAME)if(X)W.TAG_NAME=X.tagName.toLowerCase(),X.__instance=B,B.el=X;else{var U;if((U=B.hooks)==null?0:U.length){var O;(O=VS.handleError)==null||O.call.apply(O,[VS].concat(_.K8(eQ(Error("kd")))))}}B.didPatch();Xf.didPatch(B)};
(w=B.functionComponent)?Bo7({component:w,debugInstance:B.props.debugInstance,fn:I}):I()}};
g_x=function(a){var W=a.type;if(!$XD(W)||W===dt||W.componentType===k1)return!1;a.props.children=a.children.length>1?a.children:a.children[0];var w,Z=(w=a.props.idomKey)!=null?w:a.type,N;if(FT()&&((N=FT()[tS])==null?void 0:N.key)===Z){var B=FT(),I=B[tS];if(!I)throw Error("dc`"+B.tagName);var X;(X=I.updateSignalsFromIdomProps)==null||X.call(I,a.props);UXv(I);return!0}if(OAF.has(W.name))throw X=W.name,W=(I=(B=ou)==null?void 0:B.name)!=null?I:"unknown",Error("cc`"+X+"`"+W);Rym(a.type,a.props,a.children);
a.props.renderedFromIdom=!0;(X=Bo7({component:a.type,debugInstance:a.props.debugInstance,fn:function(){return hym(a.type,a.props)}}))&&SbD(X);
return!0};
YbI=function(a){for(var W=0;W<BS(a).length;W++)qk()};
UXv=function(a){var W=T2E();if(W)YbI(W);else for(var w=0;w<a.numNodes;w++)(W=T2E())?YbI(W):qk()};
T2E=function(){var a;return(a=FT()[tS])==null?void 0:a.sourceDynamicRange};
SbD=function(a){a=tJU(a);a=Array.isArray(a)?a:[a];a=_.l(a);for(var W=a.next();!W.done;W=a.next())Jo.insertBefore(W.value,FT()),qk()};
KdI=function(a){var W=clF(),w=iG(function(){return{value:typeof a==="function"?a():a}});
return[w.value,function(Z){if(vS!==null){var N;(N=VS.handleError)==null||N.call.apply(N,[VS].concat(_.K8(eQ(Error("ld")))))}w.value=typeof Z==="function"?Z(w.value):Z;W.__updateContext={nextState:W.state,isForced:!0};Z=GO(W.effectContext);N=Ei(!1);try{if(W.el){var B,I={},X=(I.props=W.props,I.type=W.JSC$8174___type,I.children=(B=W.props.children)!=null?B:[],I[zv]=!0,I);try{IKI(W.el,X,!0)}catch(O){var v,U;(U=VS.handleError)==null||U.call.apply(U,[VS].concat(_.K8(eQ(O,(v=W.JSC$8174___type)==null?void 0:
v.TAG_NAME))))}}}finally{Ei(N),GO(Z)}}]};
zP=function(a,W){var w=Cr,Z=function(N){ca(w,function(){W(N)})};
window.addEventListener(a,Z,void 0);_.Ao(function(){window.removeEventListener(a,Z,void 0)})};
_.yz=function(a,W){var w=Cr;_.AS(function(){var Z,N=(Z=W.observer)!=null?Z:_.K().resolve(HZ);if(Z=a.value){var B=p$9(Z),I=[];W.showOption&&I.push(N.observe(Z,function(){ca(w,function(){W.visibilityCallback(!0)})},W.showOption));
W.hideOption&&I.push(N.observe(Z,function(){ca(w,function(){W.visibilityCallback(!1)})},W.hideOption));
W.prescanOption&&W.prescanCallback&&I.push(N.observe(Z,function(){ca(w,function(){W.prescanCallback()})},W.prescanOption));
var X;B.visibilityMonitorKeys=((X=B.visibilityMonitorKeys)!=null?X:[]).concat(I)}})};
p$9=function(a){var W;return(W=a.polymerController)!=null?W:a};
_.En=function(a){a.componentType=k1};
iAS=function(a,W){var w=ruH;return _.k(_.Ha,null,uJ(VS.enableLazyTsx,function(){return _.k(AuU,{id:w,value:a,children:W})},function(){var Z=hn9(w,a);
fr(Z);Z=GO(Z);try{return W()}finally{GO(Z)}}))};
AuU=function(a){var W=a.children;a=hn9(a.id,a.value);fr(a);a=GO(a);try{return _.k(_.Ha,null,IT(W()))}finally{GO(a)}};
hn9=function(a,W){return Object.assign(Object.create(cue),{id:a,contextValue:W})};
enm=function(a){var W,w=Cr;_.pa(function(){var Z=GO(w),N=Ei(!W);try{if(W)IKI(W,a.children(),!0);else if(W=IT(a.children()),!(W instanceof Element))throw Error("md");}finally{Ei(N),GO(Z)}});
return W};
n_F=function(a){var W,w=ho(function(){var Z=Ei(!0);try{W=BS(a())}finally{Ei(Z)}},!1);
return[W,w]};
Lde=function(a){a=a.buf.charCodeAt(a.pos++);return jtH[a]};
aU=function(a){var W=0,w=0;do{var Z=Lde(a);W|=(Z&31)<<w;w+=5}while(Z&32);return W<0?W+4294967296:W};
ML8=function(a,W,w){Jue(a,W);a[W][Fdv].unshift(w)};
Jue=function(a,W){if(!a[W]||!a[W][Fdv]){var w=a[W],Z=w?[w]:[];a[W]=function(){for(var N=_.l(Z),B=N.next();!B.done;B=N.next())B.value.apply(this,arguments)};
a[W][Fdv]=Z}};
Rnm=function(a){if(!a)return[];var W=[];a=_.l(a);for(var w=a.next();!w.done;w=a.next())w=w.value,Array.isArray(w)?W.push.apply(W,_.K8(Rnm(w))):W.push(w);return W};
_.wU=function(a,W){if(a&&qbC.test(a)||a==="//")return a;if(Qt8===void 0){Qt8=!1;try{var w=new URL("b","http://a");w.pathname="c%20d";Qt8=w.href==="http://a/c%20d"}catch(Z){}}W||(W=document.baseURI||window.location.href);if(Qt8)try{return(new URL(a,W)).href}catch(Z){return a}WH||(WH=document.implementation.createHTMLDocument("temp"),WH.base=WH.createElement("base"),WH.head.appendChild(WH.base),WH.anchor=WH.createElement("a"),WH.body.appendChild(WH.anchor));WH.base.href=W;WH.anchor.href=a;return WH.anchor.href||
a};
bAC=function(a,W){return a.replace(xXC,function(w,Z,N,B){return Z+"'"+_.wU(N.replace(/["']/g,""),W)+"'"+B})};
ste=function(a){return a.substring(0,a.lastIndexOf("/")+1)};
Gw9=function(){uq7=!1;for(var a=ZW.length,W=0;W<a;W++){var w=ZW[W];if(w)try{w()}catch(Z){setTimeout(function(){throw Z;})}}ZW.splice(0,a);
C5E+=a};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(a){console.log("["+a.is+"]: registered")};
fKH=function(a){DXI.push(a)};
N6=function(a){return dXe[a]||(dXe[a]=a.indexOf("-")<0?a:a.replace(mX8,function(W){return W[1].toUpperCase()}))};
tf=function(a){return dXe[a]||(dXe[a]=a.replace(VLe,"-$1").toLowerCase())};
zn7=function(a,W){var w=W.parentInfo&&zn7(a,W.parentInfo);if(w)for(a=w.firstChild,w=0;a;a=a.nextSibling){if(W.parentIndex===w++)return a}else return a};
HA7=function(a,W){a=a._methodHost||a;return function(w){if(a[W])a[W](w,w.detail);else console.warn("listener method `"+W+"` not defined")}};
$U=function(a){return a.indexOf(".")>=0};
BH=function(a){var W=a.indexOf(".");return W===-1?a:a.slice(0,W)};
yum=function(a,W){return a.indexOf(W+".")===0};
lF=function(a,W){return W.indexOf(a+".")===0};
IU=function(a,W,w){return W+w.slice(a.length)};
E_9=function(a,W){return a===W||yum(a,W)||lF(a,W)};
PH=function(a){if(Array.isArray(a)){for(var W=[],w=0;w<a.length;w++)for(var Z=a[w].toString().split("."),N=0;N<Z.length;N++)W.push(Z[N]);return W.join(".")}return a};
aBU=function(a){return Array.isArray(a)?PH(a).split("."):a.toString().split(".")};
Xv=function(a,W,w){W=aBU(W);for(var Z=0;Z<W.length;Z++){if(!a)return;a=a[W[Z]]}w&&(w.path=W.join("."));return a};
W5D=function(a,W,w){var Z=aBU(W),N=Z[Z.length-1];if(Z.length>1){for(W=0;W<Z.length-1;W++)if(a=a[Z[W]],!a)return;a[N]=w}else a[W]=w;return Z.join(".")};
we9=function(a,W,w){var Z=a[W];if(!Z)Z=a[W]={};else if(!a.hasOwnProperty(W)&&(Z=a[W]=Object.create(a[W]),w))for(var N in Z)for(a=Z[N],W=Z[N]=Array(a.length),w=0;w<a.length;w++)W[w]=a[w];return Z};
gU=function(a,W,w,Z,N,B){if(W){var I=!1,X=vH++,v;for(v in w){var U=N?BH(v):v;if(U=W[U])for(var O=0,S=U.length,T=void 0;O<S&&(T=U[O]);O++)T.info&&T.info.lastRun===X||N&&!Zjx(v,T.trigger)||(T.info&&(T.info.lastRun=X),T.fn(a,v,w,Z,T.info,N,B),I=!0)}return I}return!1};
Zjx=function(a,W){if(W){var w=W.name;return w==a||!(!W.structured||!yum(w,a))||!(!W.wildcard||!lF(w,a))}return!0};
NPI=function(a,W,w,Z,N){W=typeof N.method==="string"?a[N.method]:N.method;w=N.property;W?W.call(a,a.__data[w],Z[w]):N.dynamicFn||console.warn("observer method `"+N.method+"` not defined")};
t4e=function(a,W,w,Z){w={value:w,queueProperty:!0};Z&&(w.path=Z);(0,_.oU)(a).dispatchEvent(new CustomEvent(W,{detail:w}))};
$sC=function(a,W,w,Z,N,B){B=(Z=(B?BH(W):W)!=W?W:null)?Xv(a,Z):a.__data[W];Z&&B===void 0&&(B=w[W]);t4e(a,N.eventName,B,Z)};
BPU=function(a,W,w,Z,N){w=a.__data[W];kU&&(w=kU(w,N.attrName,"attribute",a));a._propertyToAttribute(W,N.attrName,w)};
IBH=function(a){var W=a.constructor.__orderedComputedDeps;if(!W){W=new Map;for(var w=a.__computeEffects,Z=lBE(a),N=Z.counts,B=Z.ready,I=Z.total;Z=B.shift();)W.set(Z,W.size),(Z=w[Z])&&Z.forEach(function(X){X=X.info.methodInfo;--I;--N[X]===0&&B.push(X)});
I!==0&&console.warn("Computed graph for "+a.localName+" incomplete; circular?");a.constructor.__orderedComputedDeps=W}return W};
lBE=function(a){var W=a.__computeInfo,w={};a=a.__computeEffects;var Z=[],N=0,B;for(B in W){var I=W[B];N+=w[B]=I.args.filter(function(v){return!v.literal}).length+(I.dynamicFn?1:0)}for(var X in a)W[X]||Z.push(X);
return{counts:w,ready:Z,total:N}};
XeF=function(a,W,w,Z,N){W=PKI(a,W,w,Z,N);if(W===Uf)return!1;N=N.methodInfo;if(a.__dataHasAccessor&&a.__dataHasAccessor[N])return a._setPendingProperty(N,W,!0);a[N]=W;return!1};
oD8=function(a,W,w,Z,N,B,I){w.bindings=w.bindings||[];Z={kind:Z,target:N,parts:B,literal:I,isCompound:B.length!==1};w.bindings.push(Z);Z.target&&Z.kind!="attribute"&&Z.kind!="text"&&!Z.isCompound&&Z.parts[0].mode==="{"&&(w=Z.parts[0],B=w.negate,Z.listenerEvent=w.event||tf(N)+"-changed",Z.listenerNegate=B);N=W.nodeInfoList.length;for(w=0;w<Z.parts.length;w++){var X=Z.parts[w];X.compoundIndex=w;B=a;I=W;var v=Z,U=X,O=N;if(!U.literal)if(v.kind==="attribute"&&v.target[0]==="-")console.warn("Cannot set attribute "+
v.target+' because "-" is not a valid attribute starting character');else for(X=U.dependencies,v={index:O,binding:v,part:U,evaluator:B},U=0;U<X.length;U++)O=X[U],typeof O=="string"&&(O=vDD(O),O.wildcard=!0),B._addTemplatePropertyEffect(I,O.rootProperty,{fn:gDe,info:v,trigger:O})}};
gDe=function(a,W,w,Z,N,B,I){I=I[N.index];var X=N.binding,v=N.part;B&&v.source&&W.length>v.source.length&&X.kind=="property"&&!X.isCompound&&I.__isPropertyEffectsClient&&I.__dataHasAccessor&&I.__dataHasAccessor[X.target]?(w=w[W],W=IU(v.source,X.target,W),I._setPendingPropertyOrPath(W,w,!1,!0)&&a._enqueueClient(I)):(W=N.evaluator._evaluateBinding(a,v,W,w,Z,B),W!==Uf&&(X.isCompound&&(w=I.__dataCompoundStorage[X.target],w[v.compoundIndex]=W,W=w.join("")),X.kind==="attribute"||X.target!=="textContent"&&
(X.target!=="value"||I.localName!=="input"&&I.localName!=="textarea")||(W=W==void 0?"":W),v=W,kU&&(v=kU(v,X.target,X.kind,I)),X.kind=="attribute"?a._valueToNodeAttribute(I,v,X.target):(X=X.target,I.__isPropertyEffectsClient&&I.__dataHasAccessor&&I.__dataHasAccessor[X]?I.__readOnly&&I.__readOnly[X]||I._setPendingProperty(X,v)&&a._enqueueClient(I):a._setUnmanagedPropertyToNode(I,X,v))))};
k9m=function(a,W,w){if(w.listenerEvent){var Z=w.parts[0];a.addEventListener(w.listenerEvent,function(N){var B=w.target,I=Z.source,X=Z.negate,v=N.detail,U=v&&v.path;U?(I=IU(B,I,U),N=v&&v.value):N=N.currentTarget[B];W.__readOnly&&W.__readOnly[I]||!W._setPendingPropertyOrPath(I,X?!N:N,!0,!!U)||v&&v.queueProperty||W._invalidateProperties()})}};
UsU=function(a,W,w,Z,N,B){B=W.static||B&&(typeof B!=="object"||B[W.methodName]);N={methodName:W.methodName,args:W.args,methodInfo:N,dynamicFn:B};for(var I=0,X=void 0;I<W.args.length&&(X=W.args[I]);I++)X.literal||a._addPropertyEffect(X.rootProperty,w,{fn:Z,info:N,trigger:X});B&&a._addPropertyEffect(W.methodName,w,{fn:Z,info:N});return N};
PKI=function(a,W,w,Z,N){Z=a._methodHost||a;var B=Z[N.methodName];if(B)return a=a._marshalArgs(N.args,W,w),a===Uf?Uf:B.apply(Z,a);N.dynamicFn||console.warn("method `"+N.methodName+"` not defined")};
Ojm=function(a){for(var W="",w=0;w<a.length;w++)W+=a[w].literal||"";return W};
TP9=function(a){if(a=a.match(/([^\s]+?)\(([\s\S]*)\)/)){var W={methodName:a[1],static:!0,args:SBI};return a[2].trim()?YBH(a[2].replace(/\\,/g,"&comma;").split(","),W):W}return null};
YBH=function(a,W){W.args=a.map(function(w){w=vDD(w);w.literal||(W.static=!1);return w},this);
return W};
vDD=function(a){a=a.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var W={name:a,value:"",literal:!1},w=a[0];w==="-"&&(w=a[1]);w>="0"&&w<="9"&&(w="#");switch(w){case "'":case '"':W.value=a.slice(1,-1);W.literal=!0;break;case "#":W.value=Number(a),W.literal=!0}W.literal||(W.rootProperty=BH(a),W.structured=$U(a),W.structured&&(W.wildcard=a.slice(-2)==".*",W.wildcard&&(W.name=a.slice(0,-2))));return W};
K59=function(a,W,w){a=Xv(a,w);a===void 0&&(a=W[w]);return a};
pe9=function(a,W,w,Z){Z={indexSplices:Z};Of&&!a._overrideLegacyUndefined&&(W.splices=Z);a.notifyPath(w+".splices",Z);a.notifyPath(w+".length",W.length);Of&&!a._overrideLegacyUndefined&&(Z.indexSplices=[])};
S2=function(a,W,w,Z,N,B){pe9(a,W,w,[{index:Z,addedCount:N,removed:B,object:W,type:"splice"}])};
rxI=function(a){a=bAC((a.body?a.body:a).textContent,a.baseURI);var W=document.createElement("style");W.textContent=a;return W};
hgU=function(a){a=a.trim().split(/\s+/);for(var W=[],w=0;w<a.length;w++)W.push.apply(W,_.K8(Ax9(a[w])));return W};
Ax9=function(a){var W=YU.import(a);if(!W)return console.warn("Could not find style data in module named",a),[];if(W._styles===void 0){a=[];a.push.apply(a,_.K8(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W)));var w=W.querySelector("template");w&&a.push.apply(a,_.K8(ijC(w,W.assetpath)));W._styles=a}return W._styles};
ijC=function(a,W){if(!a._styles){for(var w=[],Z=a.content.querySelectorAll("style"),N=0;N<Z.length;N++){var B=Z[N],I=B.getAttribute("include");I&&w.push.apply(w,_.K8(hgU(I).filter(function(X,v,U){return U.indexOf(X)===v})));
W&&(B.textContent=bAC(B.textContent,W));w.push(B)}a._styles=w}return a._styles};
egD=function(a){return(a=YU.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 W=[];a=a.querySelectorAll("link[rel=import][type~=css]");for(var w=0;w<a.length;w++){var Z=a[w];if(Z.import){var N=Z.import;if((Z=Z.hasAttribute("shady-unscoped"))&&!N._unscopedStyle){var B=rxI(N);B.setAttribute("shady-unscoped","");N._unscopedStyle=B}else N._style||(N._style=rxI(N));W.push(Z?N._unscopedStyle:N._style)}}return W};
jLF=function(a){a=a.trim().split(/\s+/);for(var W="",w=0;w<a.length;w++)W+=nDF(a[w]);return W};
nDF=function(a){var W=YU.import(a);if(W&&W._cssText===void 0){var w=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W),Z=W.querySelector("template");Z&&(w+=L5U(Z,W.assetpath));W._cssText=w||null}W||console.warn("Could not find style data in module named",a);return W&&W._cssText||""};
L5U=function(a,W){var w="";a=ijC(a,W);for(W=0;W<a.length;W++){var Z=a[W];Z.parentNode&&Z.parentNode.removeChild(Z);w+=Z.textContent}return w};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(a){var W="";a=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a);for(var w=0;w<a.length;w++)W+=a[w].textContent;return W};
Tc=function(a,W){return{index:a,removed:[],addedCount:W}};
F5m=function(a,W,w,Z){var N=0,B=0,I=0,X=0,v=Math.min(W-N,Z-B);if(N==0&&B==0)a:{for(I=0;I<v;I++)if(a[I]!==w[I])break a;I=v}if(W==a.length&&Z==w.length){X=a.length;for(var U=w.length,O=0;O<v-I&&Jx8(a[--X],w[--U]);)O++;X=O}N+=I;B+=I;W-=X;Z-=X;if(W-N==0&&Z-B==0)return[];if(N==W){for(W=Tc(N,0);B<Z;)W.removed.push(w[B++]);return[W]}if(B==Z)return[Tc(N,W-N)];v=N;I=B;Z=Z-I+1;X=W-v+1;W=Array(Z);for(U=0;U<Z;U++)W[U]=Array(X),W[U][0]=U;for(U=0;U<X;U++)W[0][U]=U;for(U=1;U<Z;U++)for(O=1;O<X;O++)if(a[v+O-1]===
w[I+U-1])W[U][O]=W[U-1][O-1];else{var S=W[U-1][O]+1,T=W[U][O-1]+1;W[U][O]=S<T?S:T}v=W.length-1;I=W[0].length-1;Z=W[v][I];for(a=[];v>0||I>0;)v==0?(a.push(2),I--):I==0?(a.push(3),v--):(X=W[v-1][I-1],U=W[v-1][I],O=W[v][I-1],S=U<O?U<X?U:X:O<X?O:X,S==X?(X==Z?a.push(0):(a.push(1),Z=X),v--,I--):S==U?(a.push(3),v--,Z=U):(a.push(2),I--,Z=O));a.reverse();W=void 0;v=[];for(I=0;I<a.length;I++)switch(a[I]){case 0:W&&(v.push(W),W=void 0);N++;B++;break;case 1:W||(W=Tc(N,0));W.addedCount++;N++;W.removed.push(w[B]);
B++;break;case 2:W||(W=Tc(N,0));W.addedCount++;N++;break;case 3:W||(W=Tc(N,0)),W.removed.push(w[B]),B++}W&&v.push(W);return v};
M4U=function(a,W){return F5m(a,a.length,W,W.length)};
Jx8=function(a,W){return a===W};
qBm=function(a){if(a instanceof Rg9)return a.value;throw Error("Dd`"+a);};
QLm=function(a,W){for(var w in W)w===null?a.style.removeProperty(w):a.style.setProperty(w,W[w])};
xsx=function(a,W){return(a=window.getComputedStyle(a).getPropertyValue(W))?a.trim():""};
CK9=function(a){requestAnimationFrame(function(){bjE?bjE(a):(sL8||(sL8=new Promise(function(W){u77=W}),document.readyState==="complete"?u77():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&u77()})),sL8.then(function(){a&&a()}))})};
fB9=function(a){G9S=a&&a.shimcssproperties?!1:DsF||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
Hjm=function(a){if(!(dsF.indexOf(a)>-1)&&a!=="touchend"&&msv&&V4H&&zgI)return{passive:!0}};
WIe=function(a){for(var W=yxx?["click"]:dsF,w=0,Z;w<W.length;w++)Z=W[w],a?(EDF.length=0,document.addEventListener(Z,are,!0)):document.removeEventListener(Z,are,!0)};
KM=function(a){var W=a.type;return dsF.indexOf(W)>-1?W==="mousemove"?(W=a.buttons===void 0?1:a.buttons,a instanceof window.MouseEvent&&!w67&&(W=Zw8[a.which]||0),!!(W&1)):(a.button===void 0?0:a.button)===0:!1};
NXx=function(a){if(a.type==="click"){if(a.detail===0)return!0;var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);if(!W.nodeType||W.nodeType!==Node.ELEMENT_NODE)return!0;W=W.getBoundingClientRect();var w=a.pageX;a=a.pageY;return!(w>=W.left&&w<=W.right&&a>=W.top&&a<=W.bottom)}return!1};
trC=function(a,W,w){a.movefn=W;a.upfn=w;document.addEventListener("mousemove",W);document.addEventListener("mouseup",w)};
rU=function(a){document.removeEventListener("mousemove",a.movefn);document.removeEventListener("mouseup",a.upfn);a.movefn=null;a.upfn=null};
$mD=function(a,W){for(var w=document.elementFromPoint(a,W),Z=w;Z&&Z.shadowRoot&&!window.ShadyDOM;){var N=Z;Z=Z.shadowRoot.elementFromPoint(a,W);if(N===Z)break;Z&&(w=Z)}return w};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var W=BX7(a);return W.length>0?W[0]:a.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var W=a.type,w=a.currentTarget.__polymerGestures;if(w&&(w=w[W])){if(!a.__polymerGesturesHandled&&(a.__polymerGesturesHandled={},W.slice(0,5)==="touch")){var Z=a.changedTouches[0];W==="touchstart"&&a.touches.length===1&&(lrI=Z.identifier);if(lrI!==Z.identifier)return;msv||(W==="touchstart"||W==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a)}Z=
a.__polymerGesturesHandled;if(!Z.skip){for(var N=0,B;N<Af.length;N++)B=Af[N],w[B.name]&&!Z[B.name]&&B.flow&&B.flow.start.indexOf(a.type)>-1&&B.reset&&B.reset();for(N=0;N<Af.length;N++)B=Af[N],w[B.name]&&!Z[B.name]&&(Z[B.name]=!0,B[W](a))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var W=a.changedTouches[0],w=a.type;if(w==="touchstart")Ir8=W.clientX,PLE=W.clientY,X6e=!1;else if(w==="touchmove"&&!X6e){X6e=!0;w="auto";for(var Z=BX7(a),N=0,B;N<Z.length;N++)if(B=Z[N],B.__polymerGesturesTouchAction){w=B.__polymerGesturesTouchAction;break}Z=!1;N=Math.abs(Ir8-W.clientX);W=Math.abs(PLE-W.clientY);a.cancelable&&(w==="none"?Z=!0:w==="pan-x"?Z=W>N:w==="pan-y"&&(Z=N>W));Z?a.preventDefault():
hf("track")}};
cH=function(a,W,w){return iF[W]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,W,w),!0):!1};
e2=function(a,W,w){return iF[W]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,W,w),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,W,w){var Z=iF[W],N=Z.deps,B=Z.name,I=a.__polymerGestures;I||(a.__polymerGestures=I={});for(var X=0,v,U;X<N.length;X++)v=N[X],yxx&&dsF.indexOf(v)>-1&&v!=="click"||((U=I[v])||(I[v]=U={_count:0}),U._count===0&&a.addEventListener(v,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Hjm(v)),U[B]=(U[B]||0)+1,U._count=(U._count||0)+1);a.addEventListener(W,w);Z.touchAction&&_.nM(a,Z.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,W,w){var Z=iF[W],N=Z.deps;Z=Z.name;var B=a.__polymerGestures;if(B)for(var I=0,X,v;I<N.length;I++)X=N[I],(v=B[X])&&v[Z]&&(v[Z]=(v[Z]||1)-1,v._count=(v._count||1)-1,v._count===0&&a.removeEventListener(X,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Hjm(X)));a.removeEventListener(W,w)};
vBI=function(a){Af.push(a);for(var W=0;W<a.emits.length;W++)iF[a.emits[W]]=a};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){for(var W=0,w;W<Af.length;W++){w=Af[W];for(var Z=0,N;Z<w.emits.length;Z++)if(N=w.emits[Z],N===a)return w}return null};
_.nM=function(a,W){msv&&a instanceof HTMLElement&&j2.run(function(){a.style.touchAction=W});
a.__polymerGesturesTouchAction=W};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,W,w){W=new Event(W,{bubbles:!0,cancelable:!0,composed:!0});W.detail=w;(0,_.oU)(a).dispatchEvent(W);W.defaultPrevented&&(a=w.preventer||w.sourceEvent)&&a.preventDefault&&a.preventDefault()};
hf=function(a){a=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a.info&&(a.info.prevent=!0)};
LM=function(a,W,w,Z){W&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,a,{x:w.clientX,y:w.clientY,sourceEvent:w,preventer:Z,prevent:function(N){return hf(N)}})};
gBE=function(a,W,w){if(a.prevent)return!1;if(a.started)return!0;w=Math.abs(a.y-w);return Math.abs(a.x-W)>=5||w>=5};
oBE=function(a,W,w){if(W){var Z=a.moves[a.moves.length-2],N=a.moves[a.moves.length-1],B=N.x-a.x,I=N.y-a.y,X=0;if(Z){var v=N.x-Z.x;X=N.y-Z.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,"track",{state:a.state,x:w.clientX,y:w.clientY,dx:B,dy:I,ddx:v,ddy:X,sourceEvent:w,hover:function(){return $mD(w.clientX,w.clientY)}})}};
Ume=function(a,W,w){var Z=Math.abs(W.clientX-a.x),N=Math.abs(W.clientY-a.y),B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(w||W);!B||kb7[B.localName]&&B.hasAttribute("disabled")||!(isNaN(Z)||isNaN(N)||Z<=25&&N<=25||NXx(W))||a.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,"tap",{x:W.clientX,y:W.clientY,sourceEvent:W,preventer:w})};
OwE=function(a,W,w,Z,N){var B;N&&(B=typeof w==="object"&&w!==null)&&(Z=a.__dataTemp[W]);Z=Z!==w&&(Z===Z||w===w);B&&Z&&(a.__dataTemp[W]=w);return Z};
Ya9=function(){if(Jf&&!Fv){if(!Sae){Sae=!0;var a=document.createElement("style");a.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(a)}return!0}return!1};
KID=function(){return TXe};
p6e=function(a,W){TXe=a;Object.setPrototypeOf(a,W.prototype);new W;TXe=null};
ryC=function(a,W){for(var w=0;w<W.length;w++){var Z=W[w];if(!!a!=!!Z.__hideTemplateChildren__)if(Z.nodeType===Node.TEXT_NODE)a?(Z.__polymerTextContent__=Z.textContent,Z.textContent=""):Z.textContent=Z.__polymerTextContent__;else if(Z.localName==="slot")if(a)Z.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.oU)((0,_.oU)(Z).parentNode).replaceChild(Z.__polymerReplaced__,Z);else{var N=Z.__polymerReplaced__;N&&(0,_.oU)((0,_.oU)(N).parentNode).replaceChild(Z,N)}else Z.style&&(a?(Z.__polymerDisplay__=
Z.style.display,Z.style.display="none"):Z.style.display=Z.__polymerDisplay__);Z.__hideTemplateChildren__=a;Z._showHideChildren&&Z._showHideChildren(a)}};
Ayv=function(a){return(a=a.__dataHost)&&a._methodHost||a};
cyv=function(a,W,w){var Z=w.mutableData?hiE:M6;RU.mixin&&(Z=RU.mixin(Z));var N=function(){return Z.apply(this,arguments)||this};
_.c(N,Z);N.prototype.__templatizeOptions=w;N.prototype._bindTemplate(a);iwU(N,a,W,w);return N};
JyH=function(a,W,w,Z){var N=w.forwardHostProp;if(N&&W.hasHostProps){var B=a.localName=="template",I=W.templatizeTemplateClass;if(!I){if(B){var X=w.mutableData?ei7:nBC;I=function(){return X.apply(this,arguments)||this};
_.c(I,X);I=W.templatizeTemplateClass=I}else{var v=a.constructor;I=function(){return v.apply(this,arguments)||this};
_.c(I,v);I=W.templatizeTemplateClass=I}var U=W.hostProps,O;for(O in U)I.prototype._addPropertyEffect("_host_"+O,I.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:jaD(N)}),I.prototype._createNotifyingProperty("_host_"+O);q6&&Z&&LIC(W,w,Z)}a.__dataProto&&Object.assign(a.__data,a.__dataProto);if(B)p6e(a,I),a.__dataTemp={},a.__dataPending=null,a.__dataOld=null,a._enableProperties();else{Object.setPrototypeOf(a,I.prototype);W=W.hostProps;for(var S in W)S="_host_"+S,S in a&&(W=a[S],delete a[S],a.__data[S]=
W)}}};
jaD=function(a){return function(W,w,Z){a.call(W.__templatizeOwner,w.substring(6),Z[w])}};
iwU=function(a,W,w,Z){var N=w.hostProps||{},B;for(B in Z.instanceProps){delete N[B];var I=Z.notifyInstanceProp;I&&a.prototype._addPropertyEffect(B,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:FID(I)})}if(Z.forwardHostProp&&W.__dataHost)for(var X in N)w.hasHostProps||(w.hasHostProps=!0),a.prototype._addPropertyEffect(X,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:MrH()})};
FID=function(a){return function(W,w,Z){a.call(W.__templatizeOwner,W,w,Z[w])}};
MrH=function(){return function(a,W,w){a.__dataHost._setPendingPropertyOrPath("_host_"+W,w[W],!0,!0)}};
RU=function(a,W,w){if(Q8&&!Ayv(a))throw Error("Jd");w=w||{};if(a.__templatizeOwner)throw Error("Kd");a.__templatizeOwner=W;var Z=(W?W.constructor:M6)._parseTemplate(a),N=Z.templatizeInstanceClass;N||(N=cyv(a,Z,w),Z.templatizeInstanceClass=N);var B=Ayv(a);JyH(a,Z,w,B);w=function(){return N.apply(this,arguments)||this};
_.c(w,N);w.prototype._methodHost=B;w.prototype.__dataHost=a;w.prototype.__templatizeOwner=W;w.prototype.__hostProps=Z.hostProps;return w};
LIC=function(a,W,w){w=w.constructor._properties;a=a.propertyEffects;W=W.instanceProps;for(var Z in a)if(!(w[Z]||W&&W[Z]))for(var N=a[Z],B=0;B<N.length;B++){var I=N[B].info.part;if(!I.signature||!I.signature.static){console.warn("Property '"+Z+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
Ri9=function(a,W){for(var w;W;)if(w=W.__dataHost?W:W.__templatizeInstance)if(w.__dataHost!=a)W=w.__dataHost;else return w;else W=(0,_.oU)(W).parentNode;return null};
xU=function(a){return a.localName==="slot"};
qa9=function(){for(var a=bF.prototype,W="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),w={},Z=0;Z<W.length;w={method$jscomp$32:void 0},Z++)w.method$jscomp$32=W[Z],a[w.method$jscomp$32]=function(N){return function(){return this.node[N.method$jscomp$32].apply(this.node,arguments)}}(w)};
Qae=function(a,W){for(var w={},Z=0;Z<W.length;w={name$jscomp$378:void 0},Z++)w.name$jscomp$378=W[Z],Object.defineProperty(a,w.name$jscomp$378,{get:function(N){return function(){return this.node[N.name$jscomp$378]}}(w),
configurable:!0})};
xmI=function(){for(var a=bF.prototype,W=["textContent","innerHTML","className"],w={},Z=0;Z<W.length;w={name$jscomp$379:void 0},Z++)w.name$jscomp$379=W[Z],Object.defineProperty(a,w.name$jscomp$379,{get:function(N){return function(){return this.node[N.name$jscomp$379]}}(w),
set:function(N){return function(B){this.node[N.name$jscomp$379]=B}}(w),
configurable:!0})};
bwC=function(){sf=document.documentElement.getAttribute("dir");sf=document.documentElement.getAttribute("dir");for(var a=0;a<uF.length;a++){var W=uF[a];W.__autoDirOptOut||W.setAttribute("dir",sf)}};
Gbm=function(){CM=!0;requestAnimationFrame(function(){CM=!1;sam(uN8);setTimeout(function(){for(var a=0,W=Gc.length;a<W;a++)CLH(Gc.shift())})})};
sam=function(a){for(;a.length;)CLH(a.shift())};
CLH=function(a){var W=a[0],w=a[1];a=a[2];try{w.apply(W,a)}catch(Z){setTimeout(function(){throw Z;})}};
_.DmC=function(a,W,w){CM||Gbm();uN8.push([a,W,w])};
_.DW=function(a,W,w){CM||Gbm();Gc.push([a,W,w])};
mm9=function(a,W){W=W===void 0?!1:W;if(!frC||!dmx||!frC.handlesDynamicScoping)return null;var w=dmx.ScopingShim;if(!w)return null;var Z=w.scopeForNode(a),N=(0,_.oU)(a).getRootNode(),B=function(I){if((0,_.oU)(I).getRootNode()===N){var X=Array.from(frC.nativeMethods.querySelectorAll.call(I,"*"));X.push(I);for(I=0;I<X.length;I++){var v=X[I];if((0,_.oU)(v).getRootNode()===N){var U=w.currentScopeForNode(v);U!==Z&&(U!==""&&w.unscopeNode(v,U),w.scopeNode(v,Z))}}}};
B(a);return W?(W=new MutationObserver(function(I){for(var X=0;X<I.length;X++)for(var v=I[X],U=0;U<v.addedNodes.length;U++){var O=v.addedNodes[U];O.nodeType===Node.ELEMENT_NODE&&B(O)}}),W.observe(a,{childList:!0,
subtree:!0}),W):null};
VrU=function(){document.body.removeAttribute("unresolved")};
adD=function(a){var W=a=a.replace(ziC,"").replace(Hw8,""),w=new yye;w.start=0;w.end=W.length;for(var Z=w,N=0,B=W.length;N<B;N++)if(W[N]==="{"){Z.rules||(Z.rules=[]);var I=Z,X=I.rules[I.rules.length-1]||null;Z=new yye;Z.start=N+1;Z.parent=I;Z.previous=X;I.rules.push(Z)}else W[N]==="}"&&(Z.end=N+1,Z=Z.parent||w);return EBC(w,a)};
EBC=function(a,W){var w=W.substring(a.start,a.end-1);a.parsedCssText=a.cssText=w.trim();a.parent&&(w=W.substring(a.previous?a.previous.end:a.parent.start,a.start-1),w=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(w),w=w.replace(WaS," "),w=w.substring(w.lastIndexOf(";")+1),w=a.parsedSelector=a.selector=w.trim(),a.atRule=w.indexOf("@")===0,a.atRule?w.indexOf("@media")===0?a.type=4:w.match(wNI)&&(a.type=7,a.keyframesName=a.selector.split(WaS).pop()):w.indexOf("--")===
0?a.type=1E3:a.type=1);if(w=a.rules)for(var Z=0,N=w.length,B=void 0;Z<N&&(B=w[Z]);Z++)EBC(B,W);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 W=arguments[1],w=6-W.length;w--;)W="0"+W;return"\\"+W})};
Z4e=function(a,W,w){w=w===void 0?"":w;var Z="";if(a.cssText||a.rules){var N=a.rules;if(N&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(N))for(var B=0,I=N.length,X=void 0;B<I&&(X=N[B]);B++)Z=Z4e(X,W,Z);else W?W=a.cssText:(W=a.cssText,W=W.replace(NOI,"").replace(taC,""),W=W.replace($9F,"").replace(BOE,"")),(Z=W.trim())&&(Z="  "+Z+"\n")}Z&&(a.selector&&(w+=a.selector+" {\n"),w+=Z,a.selector&&(w+="}\n\n"));return w};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(a){a=a[0];return!!a&&!!a.selector&&a.selector.indexOf("--")===0};
IdI=function(a){if(a=ld8[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1};
PVS=function(a){return a._applyShimCurrentVersion===a._applyShimNextVersion};
vXF=function(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,XNm.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};
oXx=function(a){if(!a)return"";typeof a==="string"&&(a=adD(a));return Z4e(a,gX9)};
kSF=function(a){!a.__cssRules&&a.textContent&&(a.__cssRules=adD(a.textContent));return a.__cssRules||null};
O4C=function(a,W,w,Z){if(a){var N=!1,B=a.type;if(Z&&B===4){var I=a.selector.match(U9U);I&&(window.matchMedia(I[1]).matches||(N=!0))}B===1?W(a):w&&B===7?w(a):B===1E3&&(N=!0);if((a=a.rules)&&!N)for(N=0,B=a.length,I=void 0;N<B&&(I=a[N]);N++)O4C(I,W,w,Z)}};
S98=function(a,W){var w=a.indexOf("var(");if(w===-1)return W(a,"","","");a:{var Z=0;var N=w+3;for(var B=a.length;N<B;N++)if(a[N]==="(")Z++;else if(a[N]===")"&&--Z===0)break a;N=-1}Z=a.substring(w+4,N);w=a.substring(0,w);a=S98(a.substring(N+1),W);B=Z.indexOf(",");if(B===-1)return W(w,Z.trim(),"",a);N=Z.substring(0,B).trim();Z=Z.substring(B+1).trim();return W(w,N,Z,a)};
Y9U=function(a){if(fM!==void 0)return fM;if(a.__cssBuild===void 0){var W=a.getAttribute("css-build");if(W)a.__cssBuild=W;else{a:{W=a.localName==="template"?a.content.firstChild:a.firstChild;if(W instanceof Comment&&(W=W.textContent.trim().split(":"),W[0]==="css-build")){W=W[1];break a}W=""}if(W!==""){var w=a.localName==="template"?a.content.firstChild:a.firstChild;w.parentNode.removeChild(w)}a.__cssBuild=W}}return a.__cssBuild||""};
KaI=function(a,W,w,Z){for(var N=W._noAccessors,B=Object.getOwnPropertyNames(W),I=0;I<B.length;I++){var X=B[I];if(!(X in Z))if(N)a[X]=W[X];else{var v=Object.getOwnPropertyDescriptor(W,X);v&&(v.configurable=!0,Object.defineProperty(a,X,v))}}for(var U in TOS)W[U]&&(w[U]=w[U]||[],w[U].push(W[U]))};
pN7=function(a,W,w){W=W||[];for(var Z=a.length-1;Z>=0;Z--){var N=a[Z];N?Array.isArray(N)?pN7(N,W):W.indexOf(N)<0&&(!w||w.indexOf(N)<0)&&W.unshift(N):console.warn("behavior is null, check for missing or 404 import")}return W};
rNe=function(a,W){for(var w in W){var Z=a[w],N=W[w];a[w]=!("value"in N)&&Z&&"value"in Z?Object.assign({value:Z.value},N):N}};
i49=function(a,W,w){var Z={},N=function(){return W.apply(this,arguments)||this};
_.c(N,W);N._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(I)for(var v=0,U;v<I.length;v++)U=I[v],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 W._finalizeClass.call(this)};
N.prototype.created=function(){W.prototype.created.call(this);var v=Z.created;if(v)for(var U=0;U<v.length;U++)v[U].call(this)};
N.prototype._registered=function(){var v=N.prototype;if(!v.hasOwnProperty("__hasRegisterFinished")){v.__hasRegisterFinished=!0;W.prototype._registered.call(this);Jf&&X(v);v=Object.getPrototypeOf(this);var U=Z.beforeRegister;if(U)for(var O=0;O<U.length;O++)U[O].call(v);if(U=Z.registered)for(O=0;O<U.length;O++)U[O].call(v)}};
N.prototype._applyListeners=function(){W.prototype._applyListeners.call(this);var v=Z.listeners;if(v)for(var U=0;U<v.length;U++){var O=v[U];if(O)for(var S in O)this._addMethodEventListenerToNode(this,S,O[S])}};
N.prototype._ensureAttributes=function(){var v=Z.hostAttributes;if(v)for(var U=v.length-1;U>=0;U--){var O=v[U],S;for(S in O)this._ensureAttribute(S,O[S])}W.prototype._ensureAttributes.call(this)};
N.prototype.ready=function(){W.prototype.ready.call(this);var v=Z.ready;if(v)for(var U=0;U<v.length;U++)v[U].call(this)};
N.prototype.attached=function(){W.prototype.attached.call(this);var v=Z.attached;if(v)for(var U=0;U<v.length;U++)v[U].call(this)};
N.prototype.detached=function(){W.prototype.detached.call(this);var v=Z.detached;if(v)for(var U=0;U<v.length;U++)v[U].call(this)};
N.prototype.attributeChanged=function(v,U,O){W.prototype.attributeChanged.call(this);var S=Z.attributeChanged;if(S)for(var T=0;T<S.length;T++)S[T].call(this,v,U,O)};
_.dU.Object.defineProperties(N,{properties:{configurable:!0,enumerable:!0,get:function(){var v={};if(I)for(var U=0;U<I.length;U++)rNe(v,I[U].properties);rNe(v,a.properties);return v}},
observers:{configurable:!0,enumerable:!0,get:function(){var v=[];if(I)for(var U=0,O;U<I.length;U++)O=I[U],O.observers&&(v=v.concat(O.observers));a.observers&&(v=v.concat(a.observers));return v}}});
if(w){Array.isArray(w)||(w=[w]);var B=W.prototype.behaviors;var I=pN7(w,null,B);N.prototype.behaviors=B?B.concat(w):I}var X=function(v){if(I)for(var U=I,O=0;O<U.length;O++)KaI(v,U[O],Z,ANC);KaI(v,a,Z,hh8)};
Jf||X(N.prototype);N.generatedFrom=a;return N};
jIF=function(a){var W=typeof a!=="string"?a:{is:a,notifyObserversOnUndefined:!0};W.fastInit===void 0&&(W.fastInit=!0);return function(w){if(!W.disableInheritanceCheck&&Object.getPrototypeOf(w.prototype).constructor!==_.mo)throw Error("Od");var Z=w.prototype;Z.is=W.is;ML8(Z,"created",function(){this.hostElement=this;this.polymerController=this});
cN8(Z,w,W.fastInit);W.notifyObserversOnUndefined&&(Z._overrideLegacyUndefined=!0);if(ehH)for(var N=_.l(Object.getOwnPropertyNames(Z)),B=N.next();!B.done;B=N.next()){B=B.value;var I=Object.getOwnPropertyDescriptor(Z,B);I.enumerable===!1&&(I.enumerable=!0,Object.defineProperty(Z,B,I))}if("template"in w)var X=function(){return w.template};
else W.template!==void 0&&(X=W.template);if(X!==void 0){var v;Object.defineProperty(Z,"_template",{get:function(){v===void 0&&(v=X());return v},
set:function(U){v=U},
configurable:!0,enumerable:!0})}Polymer(Z);w[nXC]=Z}};
Lae=function(a){a=a===void 0?{}:a;a.fastInit===void 0&&(a.fastInit=!0);return function(W){if(!a.disableInheritanceCheck&&Object.getPrototypeOf(W.prototype).constructor!==V8)throw Error("Pd");cN8(W.prototype,W,a.fastInit)}};
cN8=function(a,W,w){w=w===void 0?!1:w;JNe(W);w?ML8(a,"created",function(){this.disableEnforceFastDefaultValuesCheck||Fae(W,this)}):ML8(a,"ready",function(){for(var Z={},N=_.l(Rnm(this.behaviors)),B=N.next();!B.done;B=N.next())B=B.value,B.properties&&Object.assign(Z,MaS(this,B.properties));
Object.assign(Z,MaS(this,this.properties));Fae(W,this);N=_.l(Object.keys(Z));for(B=N.next();!B.done;B=N.next())B=B.value,this[B]=Z[B]})};
Fae=function(a,W){if(ehH){a=new a;for(var w=_.l(Object.getOwnPropertyNames(a)),Z=w.next();!Z.done;Z=w.next())Z=Z.value,W[Z]=a[Z];for(w=W;w&&w!==Object.prototype;w=Object.getPrototypeOf(w)){Z=_.l(Object.getOwnPropertyNames(w));for(var N=Z.next();!N.done;N=Z.next())N=N.value,a.hasOwnProperty(N)||Object.defineProperty(a,N,Rhe(W,N))}}else a.apply(W)};
Rhe=function(a,W){return{get:function(){var w=a[W];return w instanceof Function?w.bind(a):w},
set:function(w){a[W]=w}}};
MaS=function(a,W){if(!W)return{};for(var w={},Z=_.l(Object.keys(W)),N=Z.next();!N.done;N=Z.next())if(N=N.value,!W[N].readOnly){var B=a[N];B!==void 0&&(w[N]=B)}return w};
JNe=function(a){var W=new a;a=a.prototype.properties||{};for(var w=_.l(Object.keys(a)),Z=w.next();!Z.done;Z=w.next())if(Z=Z.value,W.hasOwnProperty(Z)){var N=a[Z];typeof N==="function"&&(a[Z]=N={type:N});W[Z]!=null&&N.type===Object&&(N.type=q9D(W[Z].constructor))}};
q9D=function(a){for(var W=_.l(QIU),w=W.next();!w.done;w=W.next())if(w=w.value,a===w)return w;return Object};
x9F=function(a){return function(W,w){W.behaviors=W.behaviors||[];W.behaviors.push(a||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",W,w).prototype:void 0));Object.defineProperty(W,w,{get:function(){return this},
enumerable:!0,configurable:!0})}};
b47=function(a){a=a===void 0?{}:a;return function(W,w){W.properties=W.properties||{};a.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?a.type=q9D(Reflect.getMetadata("design:type",W,w)):a.type=String);var Z=a,N=W.properties[w];W.properties[w]=N?Object.assign({},N,Z):Z}};
sIe=function(a){return function(W,w){W.listeners=W.listeners||{};W.listeners[a]=w}};
u2v=function(){var a=_.TH.apply(0,arguments);if(a.length===0)throw Error("Qd");return function(W,w){W.observers=W.observers||[];W.observers.push(w+"("+a.join(",")+")")}};
CVv=function(){var a=_.TH.apply(0,arguments);return function(W,w,Z){var N=Object.getOwnPropertyDescriptor(W,w).get,B="__compute__"+w;Object.defineProperty(W,B,{value:N,enumerable:!0});W.properties=W.properties||{};N=W.properties[w];N||(N={},W.properties[w]=N);N.computed=B+"("+a.join(",")+")";Z.get=void 0}};
_.zc=function(a,W,w){_.OW.call(this);this.JSC$9126_id_=null;this.usingListeners_=!1;this.JSC$9126_listener_=a;this.handler_=w;this.JSC$9126_win_=W||window;this.callback_=(0,_.Sk)(this.JSC$9128_doAction_,this)};
HH=function(a){this.range_=a};
y8=function(a){this.range_=a};
WG=function(a,W,w){_.OW.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=a;this.scrollTimer_=new _.Ef(50);this.JSC$9205_eventHandler_=new _.am(this);this.scrollDelta_=new _.r3;this.containerIsActuallyContent_=a.tagName==="BODY"||a.tagName==="HTML";this.containerBounds_=GSS(a);this.containerIsActuallyContent_&&(a=_.lf(),this.containerBounds_.height=a.height,this.containerBounds_.width=a.width);this.margin_=W||0;if(W){if(W=this.containerBounds_.clone(),a=this.margin_){var Z=
Math.min(a,W.height*.25);W.top+=Z;W.height-=2*Z;a=Math.min(a,W.width*.25);W.left+=a;W.width-=2*a}}else W=this.containerBounds_;this.scrollBounds_=W;w||this.JSC$9205_eventHandler_.listen(_.hv(this.containerNode_),"mousemove",this.JSC$9207_onMouseMove);this.JSC$9205_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9207_onTick_)};
_.wQ=function(a){this.mechanism=a};
ZG=function(a,W){this.JSC$9303_key_=a;this.JSC$9303_value_=W};
fd8=function(a){if(a>=55296&&a<=57343||a>1114111)return"\ufffd";a in D9S&&(a=D9S[a]);var W="";a>65535&&(a-=65536,W+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023);return W+=String.fromCharCode(a)};
d97=function(a,W){return a<W?1:-1};
Vae=function(){return function(a){return a.charAt(1)==="#"?a.charAt(2)==="X"||a.charAt(2)==="x"?fd8(parseInt(a.substr(3),16)):fd8(parseInt(a.substr(2),10)):m9e[a.slice(1,-1)]}};
yN9=function(a){return a.slice(1,a.length-1).trim().replace(zhm,function(W){return H47[W]||" "})};
NM=function(a){return a===32||a===9};
ts=function(a,W){return W<a.length?a.charCodeAt(W):-1};
EXx=function(a){for(;a;){if(a._lastLineBlank)return!0;var W=a.type;if(W==="list"||W==="item")a=a._lastChild;else break}return!1};
$s=function(a){if(aLU.test(a)){var W=1,w=0,Z=0;for(a[w]=="|"&&w++;w<a.length;){switch(a[w]){case "|":Z=1;break;case " ":break;case "\t":break;default:Z&&(Z=0,W++)}w++}return WKS.test(a)?-W:W}return 0};
wzE=function(a){return a=="table"||a=="row"||a=="cell"};
Zox=function(){return new BG("document",[[1,1],[0,0]])};
NkU=function(){};
l6=function(){var a={safe:!1};a=a||{};a.softbreak=a.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=a};
ILH=function(a,W){var w="";if(a)if(a=a.toLowerCase(),a===" "||tFe.test(a))w="space";else if($T8.test(a))w="esc";else if(a.length==1){if(!W||BkS.test(a))w=a}else w=lLx.test(a)?a.replace("arrow",""):a=="multiply"?"*":a;return w};
gTC=function(a,W){var w=a.hasModifiers;if(W.key)w=ILH(W.key,w);else if(W.detail&&W.detail.key)w=ILH(W.detail.key,w);else{w=W.keyIdentifier;var Z="";w&&(w in PBU?Z=PBU[w]:Xzx.test(w)?(w=parseInt(w.replace("U+","0x"),16),Z=String.fromCharCode(w).toLowerCase()):Z=w.toLowerCase());(w=Z)||(w=W.keyCode,Z="",Number(w)&&(w>=65&&w<=90?Z=String.fromCharCode(32+w):w>=112&&w<=123?Z="f"+(w-112+1):w>=48&&w<=57?Z=String(w-48):w>=96&&w<=105?Z=String(w-96):Z=vTv[w]),w=Z);w=w||""}return w===a.key&&(!a.hasModifiers||
!!W.shiftKey===!!a.shiftKey&&!!W.ctrlKey===!!a.ctrlKey&&!!W.altKey===!!a.altKey&&!!W.metaKey===!!a.metaKey)};
k1m=function(a){return a.length===1?{combo:a,key:a,event:"keydown"}:a.split("+").reduce(function(W,w){var Z=w.split(":");w=Z[0];Z=Z[1];w in oTF?(W[oTF[w]]=!0,W.hasModifiers=!0):(W.key=w,W.event=Z||"keydown");return W},{combo:a.split(":").shift()})};
UTS=function(a){return a.trim().split(" ").map(function(W){return k1m(W)})};
OoC=function(a,W){if(a&&a.fn){var w=a.fn;a.fn=function(){try{w.apply(this,arguments)}catch(Z){if(Z instanceof Im)console.warn("Argument '"+Z.arg+"'"+(W?" for method '"+W+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw Z;}}}return a};
SyE=function(){var a=_.TH.apply(0,arguments);return a.length===0?function(W){return W}:a.length===1?a[0]:a.reduce(function(W,w){return function(){return W(w.apply(null,_.K8(_.TH.apply(0,arguments))))}})};
YyH=function(){var a=_.TH.apply(0,arguments);return function(W){return function(w,Z){w=W(w,Z);var N=function(){throw Error("Ae");},B={getState:w.getState,
dispatch:function(I){return N.apply(null,[I].concat(_.K8(_.TH.apply(1,arguments))))}};
Z=a.map(function(I){return I(B)});
N=SyE.apply(null,_.K8(Z))(w.dispatch);return Object.assign({},w,{dispatch:N})}}};
pzx=function(a){Object.keys(a).forEach(function(W){var w=a[W];if(typeof w(void 0,{type:TkS})==="undefined")throw Error("Be`"+W);if(typeof w(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+KK7()})==="undefined")throw Error("Ce`"+W+"`"+TkS);})};
PG=function(a){for(var W=Object.keys(a),w={},Z=0;Z<W.length;Z++){var N=W[Z];typeof a[N]==="function"&&(w[N]=a[N])}var B=Object.keys(w);try{pzx(w)}catch(X){var I=X}return function(X,v){X=X===void 0?{}:X;if(I)throw I;for(var U=!1,O={},S=0;S<B.length;S++){var T=B[S],p=X[T],h=(0,w[T])(p,v);if(typeof h==="undefined")throw X=v&&v.type,Error("De`"+(X?'"'+String(X)+'"':"(unknown type)")+"`"+T);O[T]=h;U=U||h!==p}return(U=U||B.length!==Object.keys(X).length)?O:X}};
rDv=function(a,W,w){function Z(){if(O)throw Error("Ee");return X}
function N(p){if(typeof p!=="function")throw Error("Fe`"+typeof p);if(O)throw Error("Ge");var h=!0;U===v&&(U=v.slice());U.push(p);return function(){if(h){if(O)throw Error("He");h=!1;U===v&&(U=v.slice());var L=U.indexOf(p);U.splice(L,1);v=null}}}
function B(p){if(typeof p!=="object"||p===null)var h=!1;else{for(h=p;Object.getPrototypeOf(h)!==null;)h=Object.getPrototypeOf(h);h=Object.getPrototypeOf(p)===h}if(!h)throw Error("Ie`"+typeof p);if(typeof p.type==="undefined")throw Error("Je");if(O)throw Error("Ke");try{O=!0,X=I(X,p)}finally{O=!1}h=v=U;for(var L=0;L<h.length;L++)(0,h[L])();return p}
if(typeof W==="function"&&typeof w==="function"||typeof w==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof W==="function"&&typeof w==="undefined"&&(w=W,W=void 0);if(typeof w!=="undefined"){if(typeof w!=="function")throw Error("Me`"+typeof w);return w(rDv)(a,W)}if(typeof a!=="function")throw Error("Ne`"+typeof a);var I=a,X=W,v=[],U=v,O=!1;B({type:TkS});var S={},T=(S.dispatch=B,S.subscribe=N,S.getState=Z,S.replaceReducer=function(p){if(typeof p!=="function")throw Error("Oe`"+
typeof p);I=p;B({type:ADC});return T},S[hEU]=function(){var p={};
return p.subscribe=function(h){function L(){h.next&&h.next(Z())}
if(typeof h!=="object"||h===null)throw new TypeError("Pe`"+typeof h);L();return{unsubscribe:N(L)}},p[hEU]=function(){return this},p},S);
return T};
ioe=function(a){function W(){N&&(N=!1,a());B&&Z()}
function w(){requestAnimationFrame(W)}
function Z(){var X=Date.now();if(N){if(X-I<2)return;B=!0}else N=!0,B=!1,setTimeout(w,20);I=X}
var N=!1,B=!1,I=0;return Z};
Xt=function(a){return typeof a==="number"?a:parseFloat(a)||0};
cDS=function(a){return _.TH.apply(1,arguments).reduce(function(W,w){return W+Xt(a["border-"+w+"-width"])},0)};
_.n=function(a,W){W=eB(cP(W));a.innerHTML=W};
jYD=function(a){var W=eEH;W||(W=nTS(),W=eEH=_.T5.transpose(W));W=W[a];return typeof W==="string"?W:_.vG(a)};
LK9=function(a){a=String(a).toLowerCase();var W=nTS()[a];return typeof W==="string"?W:_.gQ(a)};
JD9=function(a){a=a.toLowerCase();a=nTS()[a];return typeof a==="string"?a:null};
nTS=function(){if(!FKC){for(var a=Object.assign({},MFe),W=_.l(REm),w=W.next();!w.done;w=W.next())w=w.value,a[w.toLowerCase()]=w;FKC=a}return FKC};
xTE=function(a,W){var w=window.customElements;return w&&w.get(a)||qyF[a]===!0?2:W.name==="HTMLUnknownElement"?1:W.name==="HTMLElement"&&QYe.test(a)?3:0};
ukx=function(a,W){switch(W){case "innerHTML":return box(a)===1?2:null;case "textContent":return a=box(a),a===1||a===6?1:null;default:var w,Z;return(Z=(w=sY9[a.localName])==null?void 0:w[W])!=null?Z:null}};
box=function(a){var W=a.localName,w=xTE(W,a.constructor);switch(w){case 0:case 1:return CBU(W,a);case 3:case 2:return 1;default:_.l9(w,"got an unknown element classification")}};
CBU=function(a,W){var w=Object.hasOwnProperty.call(G1U,a)?G1U[a]:null;return w!==null?w:Object.hasOwnProperty.call(DTI,a)&&W instanceof SVGElement?DTI[a]:null};
fLe=function(a,W){return W};
mTC=function(a){return(a=a.split(dTe,2))?{url:a[0],metadata:a[1]}:null};
zE8=function(a){var W=String(a.url).replace(VFU,encodeURIComponent);if(a=a.metadata){VFU.lastIndex=0;if(VFU.test(a))return null;W+=" "+a}return W};
aAS=function(a){function W(U){var O=U.localName;if(!U.getAttribute("is")&&xTE(O,U.constructor)===2){var S;return(S=v)!=null?S:v=document.createElement("polyresinuncustomized")}(U=X[O])||(U=X[O]=document.createElement(O));return U}
var w=a.reportHandler||void 0,Z=a.safeTypesBridge||HoU,N=/^$/;if(a=a.allowedIdentifierPrefixes){a=_.l(a);for(var B=a.next();!B.done;B=a.next())N=new RegExp(N.source+"|^"+_.yD7(B.value))}w&&w(!1,"initResin",null);var I=ETF(N,Z,w),X={},v=null;return function(U,O,S){var T=U.nodeType;if(T!==Node.ELEMENT_NODE){if(T===Node.TEXT_NODE){O=U.parentElement;S=!O;if(O&&O.nodeType===Node.ELEMENT_NODE){T=O.localName;var p=xTE(T,O.constructor);switch(p){case 0:case 1:O=CBU(T,O);S=O===1||O===6;break;case 3:case 2:S=
!0;break;default:_.l9(p,"got an unknown element classification")}}if(S)return function(x){return""+Z(x,"STRING",x)}}return function(x){if(!x&&x!==document.all)return x;
w&&w(!0,"Failed to sanitize "+(U.parentElement&&U.parentElement.nodeName)+" #text node to value "+x,U.parentElement);return om}}var h=U.localName;
T=W(U);var L=null;switch(S){case "attribute":if(LK9(O)in T)break;return function(x){return x};
case "property":if(O in T){L=ukx(T,O);break}if((p=JD9(O))&&p in T)break;return function(x){return x};
default:_.l9(S,"got an unknown resin type, expected either 'property' or 'attribute'")}var F=S==="attribute"?O.toLowerCase():jYD(O);L||(L=YxE(h,F,function(x){var G=U.getAttribute(x);return!G||/[\[\{]/.test(x)?null:G}));
return function(x){var G=ks,V=null;if(!x&&x!==document.all)return x;if(L!=null){var d=I[L],ZD=d.safeType;V=d.safeReplacement;ZD&&(G=Z(x,ZD,ks));G===ks&&(d.filterString?(G=String(Z(x,"STRING",x)),G=d.filterString(h,F,G)):d.filterRaw&&(G=d.filterRaw(h,F,x,U)),G===V&&(G=ks))}G===ks&&(G=V||om,w&&w(!0,"Failed to sanitize attribute of <"+h+">: <"+h+" "+F+'="'+x+'">',U));return G}}};
ETF=function(a,W,w){return[,{filterRaw:function(Z,N,B){return B},
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:Wl7,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Wl7,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:om,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:w08,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(Z,N,B){B=
String(B).toLowerCase();return pII(Z,N,B)?B:om},
safeReplacement:om,safeType:void 0},,{filterRaw:void 0,filterString:function(Z,N,B){return a.test(B)?B:om},
safeReplacement:om,safeType:"CONSTANT"},{filterRaw:function(Z,N,B,I){if(typeof B==="string")var X=(X=B.match(ZIv))?X.map(mTC).filter(Boolean):[];else if(Array.isArray(B))X=B;else return Wl7;var v=X;X=[];var U=[],O={};if(Array.isArray(v))for(var S=0,T=v.length;S<T;++S){var p=v[S],h=p&&p.url;if(h){var L=W(h,"URL",O);if(L){var F=L!==O;(F?X:U).push({url:F?L:h,metadata:p.metadata})}}}else U.push(v);v=U.length?JSON.stringify(U):null;U=ks;if(X.length){if(!Array.isArray(X))throw Error();U=X.map(zE8).filter(Boolean).join(" , ")||
ks}v&&w&&w(!0,"Failed to sanitize attribute value of <"+Z+">: <"+Z+" "+N+'="'+B+'">: '+v,I);return U===ks?Wl7:U},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Nm7=function(a){var W=aAS(a);return function(w,Z,N,B){return B||B===document.all?W(w,Z,N)(B):B}};
U$=function(a,W){function w(){function N(X,v,U){for(v=Reflect.getMetadata("parameters",X)||[];v.length<=U;)v.push(null);v[U]=v[U]||[];v[U].push(I);Reflect.defineMetadata(v,X);return X}
var B=_.TH.apply(0,arguments);if(this instanceof w)return Z.apply(this,B),this;var I=new (Function.prototype.bind.apply(w,[null].concat(_.K8(B))));N.annotation=I;return N}
var Z=t5H(W);w.prototype.toString=function(){return"@"+a};
return w.annotationCls=w};
t5H=function(a){return function(){var W=_.TH.apply(0,arguments),w=this;a.forEach(function(Z,N){N=W[N];if(Array.isArray(Z))w[Z[0]]=N&&N!==void 0?N:Z[1];else for(var B in Z)w[B]=N&&N[B]!==void 0?N[B]:Z[B]})}};
$SC=function(a){return a!==void 0&&a!==null};
O$=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 W=a.indexOf("\n");return W===-1?a:a.substring(0,W)};
BmF=function(a){a.__forward_ref__=BmF;a.toString=function(){return O$(this())};
return a};
SH=function(a){return typeof a==="function"&&a.hasOwnProperty("__forward_ref__")&&a.__forward_ref__===BmF?a():a};
lA7=function(a){return a?a.map(function(W){return new (Function.prototype.bind.apply(W.type.annotationCls,[null].concat(_.K8(W.args?W.args:[]))))}):[]};
IAx=function(a){for(var W=[],w=0;w<a.length;++w){if(W.indexOf(a[w])>-1){W.push(a[w]);break}W.push(a[w])}return W};
PE7=function(a){return a.length>1?" ("+IAx(a.slice().reverse()).map(function(W){return O$(W.token)}).join(" -> ")+")":""};
v2C=function(a,W,w,Z){if(Z){var N=Error("We``"+(Z instanceof Error?Z.message:Z));N.ngOriginalError=Z}else N=Error();N.addKey=X07;N.keys=[W];N.injectors=[a];N.constructResolvingMessage=w;N.message=N.constructResolvingMessage();N.ngOriginalError=Z;return N};
X07=function(a,W){this.injectors.push(a);this.keys.push(W);this.message=this.constructResolvingMessage()};
g2F=function(a,W){return v2C(a,W,function(){return"No provider for "+O$(this.keys[0].token)+"!"+PE7(this.keys)})};
o2F=function(a,W){return v2C(a,W,function(){return"Cannot instantiate cyclic dependency!"+PE7(this.keys)})};
k6S=function(a,W,w){return v2C(a,w,function(){var Z=O$(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+Z+"!"+PE7(this.keys)+"."},W)};
USx=function(a,W){for(var w=[],Z=0,N=W.length;Z<N;Z++){var B=W[Z];B&&B.length!=0?w.push(B.map(O$).join(" ")):w.push("?")}return Error("$e`"+O$(a)+"`"+w.join(", ")+"`"+O$(a))};
r9U=function(a){var W=void 0,w=void 0;if(a&&a.useClass!==void 0){W=a.useClass;var Z=SH(a.useClass);var N=OIF.factory(Z);Z=SMU(Z)}else a&&a.useExisting!==void 0?(N=function(B){return B},Z=[YMe(Ys.get(SH(a.useExisting)))]):a&&a.useFactory!==void 0?(N=a.useFactory,Z=TmE(a.useFactory,a.deps)):(w=a.useValue,N=function(){return a.useValue},Z=Klm);
return new p08(N,Z,W,w)};
hW8=function(a){return new A9U(Ys.get(SH(a.provide)),[r9U(a)],a.multi)};
c9e=function(a){a=iI7(a,[]).map(hW8);for(var W=new Map,w=0;w<a.length;w++){var Z=a[w],N=W.get(Z.key.id);if(N){if(Z.multiProvider!==N.multiProvider)throw Error("bf`"+N+"`"+Z);if(Z.multiProvider)for(var B=0;B<Z.resolvedFactories.length;B++)N.resolvedFactories.push(Z.resolvedFactories[B]);else W.set(Z.key.id,Z)}else N=void 0,Z.multiProvider?N=new A9U(Z.key,Z.resolvedFactories.slice(),Z.multiProvider):N=Z,W.set(Z.key.id,N)}return Array.from(W.values())};
iI7=function(a,W){a.forEach(function(w){if(w instanceof eWS)W.push({provide:w,useClass:w});else if(w&&typeof w=="object"&&w.provide!==void 0)W.push(w);else if(w instanceof Array)iI7(w,W);else throw Error("Ze`"+w);});
return W};
TmE=function(a,W){if(W){var w=W.map(function(Z){return[Z]});
return W.map(function(Z){return n2S(a,Z,w)})}return SMU(a)};
SMU=function(a){var W=OIF.parameters(a);if(!W)return[];if(W.some(function(w){return w==null}))throw USx(a,W);
return W.map(function(w){return n2S(a,w,W)})};
n2S=function(a,W,w){var Z=null,N=!1;if(!Array.isArray(W))return W instanceof jNF?LlI(W.token,N,null):LlI(W,N,null);for(var B=null,I=0;I<W.length;++I){var X=W[I];if(X instanceof eWS)Z=X;else if(X instanceof jNF)Z=X.token;else if(X instanceof J98)N=!0;else if(X instanceof Fle||X instanceof M5H)B=X}Z=SH(Z);if(Z!=null)return LlI(Z,N,B);throw USx(a,w);};
LlI=function(a,W,w){return new RWE(Ys.get(SH(a)),W,w)};
qMe=function(a,W){for(var w=Array(a.providers.length),Z=0;Z<a.providers.length;++Z){var N=Z;if(Z<0||Z>=a.providers.length)throw Error("af`"+Z);w[N]=W(a.providers[Z])}return w};
QNC=function(a){return typeof a==="function"&&OIF.parameters(a).every(function(W){return!!W})};
sNv=function(a){var W=xS9;bI9.get(a)||bI9.set(a,new W);return bI9.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,W){var w,Z;if(a.contains(W))return!0;a=_.Tq(a).querySelectorAll("content,slot");for(w=0;w<a.length;++w){var N=_.Tq(a[w]).getDistributedNodes();for(Z=0;Z<N.length;++Z)if(N[Z].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(N[Z],W))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],uDe=a.pageX,CEe=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,W=KS.length;a<W;a++)document.addEventListener(KS[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,W=KS.length;a<W;a++)document.removeEventListener(KS[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 W=_.Tq(a).rootTarget;a.type!=="touchmove"&&G6I!==W&&(G6I=W,DSH=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Tq(a).path));if(!DSH.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(DSH,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 W=[],w=a.indexOf(fA7),Z=0;Z<=w;Z++)if(a[Z].nodeType===Node.ELEMENT_NODE){var N=a[Z],B=N.style;B.overflow!=="scroll"&&B.overflow!=="auto"&&(B=window.getComputedStyle(N));B.overflow!=="scroll"&&B.overflow!=="auto"||W.push(N)}return W};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a,W,w){if(W||w)for(var Z=Math.abs(w)>=Math.abs(W),N=0;N<a.length;N++){var B=a[N];if(Z?w<0?B.scrollTop>0:B.scrollTop<B.scrollHeight-B.clientHeight:W<0?B.scrollLeft>0:B.scrollLeft<B.scrollWidth-B.clientWidth)return B}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){var W={deltaX:a.deltaX,deltaY:a.deltaY};"deltaX"in a||("wheelDeltaX"in a&&"wheelDeltaY"in a?(W.deltaX=-a.wheelDeltaX,W.deltaY=-a.wheelDeltaY):"wheelDelta"in a?(W.deltaX=0,W.deltaY=-a.wheelDelta):"axis"in a?(W.deltaX=a.axis===1?a.detail:0,W.deltaY=a.axis===2?a.detail:0):a.targetTouches&&(a=a.targetTouches[0],W.deltaX=uDe-a.pageX,W.deltaY=CEe-a.pageY));return W};
dS7=function(a){this.element=a;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
V5x=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");_.Tq(this.waveContainer).appendChild(this.wave);mSH(this)};
pS=function(a,W){for(var w in a)if(w.toLowerCase()===W.toLowerCase())return a[w]};
zWD=function(a,W){for(var w in a)if(w.toLowerCase()===W.toLowerCase()){delete a[w];break}};
y97=function(a){a=_.T5.clone(a);for(var W=0;W<HIU.length;++W){var w=HIU[W],Z=pS(a,w);Z&&(a["X-Goog-Upload-Header-"+w]=Z,zWD(a,w))}return a};
E29=function(a){a=_.T5.clone(a);zWD(a,"X-Goog-Upload-Status")};
WsU=function(a){return aQU.some(function(W){return W.test(a)})};
tX9=function(a,W){var w;var Z=(w=a.formContent)==null?void 0:w.locale;w=Z==null?void 0:Z.split("-")[0];Z=Z&&w5U.includes(Z)?Z:w&&w5U.includes(w)?w:void 0;Z=(Z!=null?Z:"en").replaceAll("-","_").toLowerCase();var N;a=((N=a.initializationData)==null?0:N.useNightlyRelease)?"nightly":"live";var B;return(W==null?0:(B=W.getEnableAlohaBinarySplit)==null?0:B.call(W))?_.ya(Zk8,a):_.ya(NDU,a,Z)};
BDF=function(a,W,w,Z){if($5E)return $5E;var N=tX9(a,Z);return $5E=W.feedbackV2GlobalObject?Promise.resolve(W.feedbackV2GlobalObject):new Promise(function(B,I){var X=_.PM("SCRIPT");_.Q$(X,N);X.onload=function(){W.feedbackV2GlobalObject?B(W.feedbackV2GlobalObject):I(Error("ef"))};
X.onerror=function(){I(Error("ff`"+N.toString()))};
w.body.appendChild(X)})};
IQD=function(a,W,w,Z){if(lQx)return lQx;var N=tX9(a,Z);return lQx=W.feedbackV2GlobalObject?Promise.resolve(W.feedbackV2GlobalObject):new Promise(function(B,I){var X=_.PM("SCRIPT");_.Q$(X,N);X.onload=function(){W.feedbackV2GlobalObject?B(W.feedbackV2GlobalObject):I(Error("ef"))};
X.onerror=function(){I(Error("ff`"+N.toString()))};
w.body.appendChild(X)})};
Pge=function(a,W,w,Z,N){N=N===void 0?!0:N;var B,I,X,v,U;return _.P(function(O){switch(O.nextAddress){case 1:return B=Date.now(),_.g(O,BDF(a,w,Z,W),2);case 2:I=O.yieldResult;if(!(N||((v=a.initializationData)==null?0:v.useNightlyRelease)||((U=a.initializationData)==null?0:U.isLocalServer))){X=I.initializeFeedbackClient(a,B,W);O.jumpTo(3);break}return _.g(O,I.initializeFeedbackClientAsync(a,B,W),4);case 4:X=O.yieldResult;case 3:return X.initiateAloha(),O.return(X)}})};
X5x=function(a,W,w,Z){var N,B,I;return _.P(function(X){if(X.nextAddress==1)return N=Date.now(),_.g(X,IQD(a,w,Z.document,W),2);if(X.nextAddress!=3)return B=X.yieldResult,_.g(X,B.initializeFeedbackClientAsync(a,N,W,Z),3);I=X.yieldResult;I.initiateAloha();return X.return(I)})};
vOI=function(a,W,w){var Z=!0;Z=Z===void 0?!0:Z;var N,B,I,X,v,U,O,S,T,p;return _.P(function(h){N=w||_.NH;if((B=W)==null?0:(X=(I=B).getEnableAlohaBinarySplit)==null?0:X.call(I)){v=N;if(v.isFormOpened)throw U=Error("gf"),U.name="DuplicateFormError",U;v.isFormOpened=!0;a.callbacks=a.callbacks||{};O=a.callbacks.onClose||function(){};
a.callbacks.onClose=function(L){v.isFormOpened=!1;O(L)};
try{return h.return(X5x(a,W,v,N))}catch(L){throw v.isFormOpened=!1,L;}}else{S=N;if(S.isFormOpened)throw T=Error("gf"),T.name="DuplicateFormError",T;S.isFormOpened=!0;a.callbacks=a.callbacks||{};p=a.callbacks.onClose||function(){};
a.callbacks.onClose=function(L){S.isFormOpened=!1;p(L)};
try{return h.return(Pge(a,W,S,N.document,Z))}catch(L){throw S.isFormOpened=!1,L;}}_.Xd(h)})};
Ok9=function(a,W){return _.P(function(w){return w.return(new Promise(function(Z){var N=gOC(W!=null?W:"")+"/aloha_form_properties?productId="+a;oOe(N,function(B){B=B.target;var I=null;try{var X=JSON,v=X.stringify;if(B.JSC$7703_xhr_){var U=B.JSC$7703_xhr_.responseText;U.indexOf(")]}'\n")==0&&(U=U.substring(5));var O=(0,_.rQ)(U)}else O=void 0;I=Z_C(kiS,v.call(X,O))}catch(S){v=new kiS,O=U5v(),O=_.As(O,13,!1),O=_.As(O,14,!0),O=_.As(O,15,!0),O=_.As(O,20,!1),I=_.ZP(v,1,O)}Z(I)},"GET","",{},2E3,!0)}))})};
gOC=function(a){return WsU(a)?a:"https://www.google.com/tools/feedback"};
Ks8=function(a){a=a.match(new RegExp(Sle,"gi"))||[];a=_.l(a);for(var W=a.next();!W.done;W=a.next()){W=W.value;a:{var w=_.l(YlS);for(var Z=w.next();!Z.done;Z=w.next())if(Z.value.test(W)){w=!1;break a}w=!0}if(!w)a:{w=_.l(TDD);for(Z=w.next();!Z.done;Z=w.next())if(Z.value.test(W)){w=!0;break a}w=!1}if(w)return!0}return!1};
p5S=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"}};
Ad9=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var W=Array(a),w=new Uint8Array(a);window.crypto.getRandomValues(w);for(var Z=0;Z<W.length;Z++)W[Z]=w[Z];return W}catch(B){}W=Array(a);for(w=0;w<a;w++){Z=Date.now();for(var N=0;N<Z%23;N++)W[w]=Math.random();W[w]=Math.floor(Math.random()*256)}if(rdE)for(w=1,Z=0;Z<rdE.length;Z++)W[w%a]^=W[(w-1)%a]/4^rdE.charCodeAt(Z),w++;return W};
hs=function(a){a=Ad9(a);for(var W=[],w=0;w<a.length;w++)W.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[w]&63));return W.join("")};
ikv=function(a){a&&_.ia("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:haS,clientScreenNonce:a})};
cde=function(a){return _.LF("client-screen-nonce-store",{})[a===void 0?0:a]};
ea9=function(a,W){W=W===void 0?0:W;var w=_.LF("client-screen-nonce-store");w||(w={},_.jm("client-screen-nonce-store",w));w[W]=a};
nOe=function(a){a=a===void 0?0:a;return a===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
jkx=function(a){return _.LF(nOe(a===void 0?0:a))};
_.eH=function(a){return(a=jkx(a===void 0?0:a))?new _.cG({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Lsx=function(){var a=_.LF("csn-to-ctt-auth-info");a||(a={},_.jm("csn-to-ctt-auth-info",a));return a};
Jd8=function(){return Object.values(_.LF("client-screen-nonce-store",{})).filter(function(a){return a!==void 0})};
_.nS=function(a){a=cde(a===void 0?0:a);if(!a&&!_.JS("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
MXU=function(a){for(var W=_.l(Object.values(Fsx)),w=W.next();!w.done;w=W.next())if(_.nS(w.value)===a)return!0;return!1};
RaU=function(a,W,w){var Z=Lsx();(w=_.nS(w))&&delete Z[w];W&&(Z[a]=W)};
jH=function(a){return Lsx()[a]};
_.qlx=function(a,W,w,Z){w=w===void 0?0:w;if(a!==cde(w)||W!==_.LF(nOe(w)))if(RaU(a,Z,w),ea9(a,w),_.jm(nOe(w),W),W=function(){setTimeout(function(){ikv(a)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(W)}catch(N){W()}else W()};
Qk8=function(a,W){W=W===void 0?"":W;var w=[],Z;for(Z in a)if(a.hasOwnProperty(Z)){var N=W!==""?W+"."+Z:Z;typeof a[Z]==="object"?w.push.apply(w,_.K8(Qk8(a[Z],N))):w.push([N,a[Z]])}w.sort();return w};
_.bkm=function(a){var W=_.TH.apply(1,arguments);if(!LS(a)||W.some(function(Z){return!LS(Z)}))throw Error("hf");
W=_.l(W);for(var w=W.next();!w.done;w=W.next())x5E(a,w.value)};
x5E=function(a,W){for(var w in W)if(LS(W[w])){if(w in a&&!LS(a[w]))throw Error("jf");w in a||(a[w]={});x5E(a[w],W[w])}else if(skS(W[w])){if(w in a&&!skS(a[w]))throw Error("kf");w in a||(a[w]=[]);uwe(a[w],W[w])}else a[w]=W[w];return a};
uwe=function(a,W){W=_.l(W);for(var w=W.next();!w.done;w=W.next())w=w.value,LS(w)?a.push(x5E({},w)):skS(w)?a.push(uwe([],w)):a.push(w);return a};
LS=function(a){return typeof a==="object"&&!Array.isArray(a)};
skS=function(a){return typeof a==="object"&&Array.isArray(a)};
Gie=function(a){for(var W=_.l(Object.entries(Cg7)),w=W.next();!w.done;w=W.next())if(w=_.l(w.value),w.next(),w=w.next().value,w==="SLI_STATUS_"+a)return w;return"SLI_STATUS_UNKNOWN"};
_.Js=function(a,W,w,Z){return D59(a,W,function(){return new _.fQx(a,W,w,Z)})};
_.d5S=function(){return _.Js("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
m5F=function(){return _.Js("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Ft=function(){return _.Js("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
VXI=function(){return _.Js("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
zam=function(){return _.Js("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
HkC=function(){return _.Js("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
a$H=function(a){a&&(a.dataset?a.dataset[yd8()]="true":_.bq([_.z2(EOx)],a,"data-loaded","true".toString()))};
W1m=function(a){return a?a.dataset?a.dataset[yd8()]:a.getAttribute("data-loaded"):null};
yd8=function(){return wyx.loaded||(wyx.loaded="loaded".replace(/\-([a-z])/g,function(a,W){return W.toUpperCase()}))};
_.MM=function(a,W,w){Z9U(a,W,w===void 0?null:w)};
_.tSI=function(a,W){a&&W&&(a=""+_.lA(W),(a=NIF[a])&&_.tKe(a))};
Z9U=function(a,W,w){w=w===void 0?null:w;var Z=_.$PE(a),N=document.getElementById(Z),B=N&&W1m(N),I=N&&!B;B?W&&W():(W&&(B=_.Z8(Z,W),W=""+_.lA(W),NIF[W]=B),I||(N=BIF(a,Z,function(){W1m(N)||(a$H(N),_.$te(Z),_.wz(function(){_.lC9(Z)},0))},w)))};
BIF=function(a,W,w,Z){Z=Z===void 0?null:Z;var N=_.PM("SCRIPT");N.id=W;N.onload=function(){w&&setTimeout(w,0)};
N.onreadystatechange=function(){switch(N.readyState){case "loaded":case "complete":N.onload()}};
Z&&N.setAttribute("nonce",Z);_.Q$(N,_.TO(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(N,a.firstChild);return N};
_.$PE=function(a){var W=document.createElement("a");hY(W,a);return"js-"+Rm(W.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
l$9=function(a){var W=_.LF("INNERTUBE_HOST_OVERRIDE");W&&(a=String(W)+String(_.qM(a)));return a};
I$S=function(a){var W={};_.r("json_condensed_response")&&(W.prettyPrint="false");return a=iMe(a,W)};
_.Q3=function(a){return dw(a)?"same-origin":"include"};
_.xs=function(a){return dw(a)?"same-origin":"cors"};
b6=function(a,W,w){w=w===void 0?{}:w;a={method:W===void 0?"POST":W,mode:_.xs(a),credentials:_.Q3(a)};W={};for(var Z=_.l(Object.keys(w)),N=Z.next();!N.done;N=Z.next())N=N.value,w[N]&&(W[N]=w[N]);Object.keys(W).length>0&&(a.headers=W);return a};
_.s$=function(a,W){W=W===void 0?{}:W;return"service:"+a+"/"+Object.keys(W).sort().map(function(w){return w+":"+W[w]}).join("/")};
PcE=function(a){var W,w,Z,N;a=(W=_.A(a,_.u6))==null?void 0:(w=W.watchEndpointSupportedOnesieConfig)==null?void 0:(Z=w.html5PlaybackOnesieConfig)==null?void 0:(N=Z.commonConfig)==null?void 0:N.url;if(!a)return[];W=new _.CS(a);return W.JSC$7940_domain_?["https://"+W.JSC$7940_domain_+"/generate_204"]:[]};
_.g$U=function(){return Xy9()||jmx()||v$x&&eg("version/")?!0:_.LF("EOM_VISITOR_DATA")?!1:!0};
o$9=function(a){var W=a.docid||a.video_id||a.videoId||a.id;if(W)return W;W=a.raw_player_response;W||(a=a.player_response)&&(W=JSON.parse(a));return W&&W.videoDetails&&W.videoDetails.videoId||null};
k_m=function(a){return a.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Gq=function(a){return!isNaN(Number(a))&&!_.vv(a)};
_.fS=function(a,W,w,Z){Z=Z===void 0?!0:Z;var N=_.LF("VALID_SESSION_TEMPDATA_DOMAINS",[]),B=_.D7(window.location.href);B&&N.push(B);B=_.D7(a);if(_.f7(N,B)||!B&&_.IC(a,"/"))if(N=document.createElement("a"),hY(N,a),a=N.href)if(a=_.qM(a),a=_.DG(a))Z&&!W.csn&&(W.itct||W.ved)&&(W=Object.assign({csn:_.nS()},W)),w?(w=parseInt(w,10),isFinite(w)&&w>0&&UPv(a,W,w)):UPv(a,W)};
S1e=function(a){var W=_.LF("VALID_SESSION_TEMPDATA_DOMAINS",[]),w=_.D7(window.location.href);w&&W.push(w);w=_.D7(a);if(!(_.f7(W,w)||!w&&_.IC(a,"/")))return null;a=_.qM(a);(a=_.DG(a))?(a=O9F(a),a=(a=_.XQ.get(a,void 0)||null)?_.bG(a):{}):a=null;return a};
UPv=function(a,W,w){a=O9F(a);W=W?_.ld(W):"";w=w||5;_.g$U()&&_.vi(a,W,w)};
O9F=function(a){for(var W=_.l(Y19),w=W.next();!w.done;w=W.next())a=_.dQ(a,w.value);return"ST-"+Rm(a).toString(36)};
TIx=function(a,W){a.commandMetadata&&_.A(a.commandMetadata,_.mm)&&_.A(a.commandMetadata,_.mm).url&&(a=_.st(_.A(a.commandMetadata,_.mm).url).adurl)&&_.e3E(a)&&_.fS(_.qM(a),{encoded_ad_playback_context:W})};
_.K19=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("tf"));return a instanceof Promise?a:Promise.resolve()};
_.zq=function(a){var W;_.djE(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.V3()==a&&(W=document):W=a;if(W&&(a=_.djE(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],W))){a.call(W)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.V3=function(){var a=a===void 0?!1:a;var W=_.djE(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;W&&W.shadowRoot;)W=W.shadowRoot.fullscreenElement;return W?W:null};
_.HG=function(a,W){W=W===void 0?!0:W;a.addEventListener("wheel",py7);a.overscrollConfig={cooldown:W}};
_.y3=function(a){a.overscrollConfig=void 0;a.removeEventListener("wheel",py7)};
py7=function(a){var W=a.deltaY,w=a.target,Z=null;if(window.Polymer&&window.Polymer.Element){if(w=a.path||a.composedPath&&a.composedPath()){w=_.l(w);for(var N=w.next();!N.done&&(N=N.value,!r1E(N,W));N=w.next())if(N.overscrollConfig){Z=N;break}}}else for(;w&&!r1E(w,W);){if(w.overscrollConfig){Z=w;break}w=w.parentElement}Z&&(W=Z.overscrollConfig,W.cooldown?(Z=a.deltaY,w=W.lastDeltaY||0,W.lastDeltaY=Z,N=W.lastStopped||0,w&&N&&w>0==Z>0?Math.abs(w)>=Math.abs(Z)?(Z=N+1200,w=!1):(Z=N+600,w=!0):(Z=Date.now()+
600,w=!0),Z>Date.now()&&(a.preventDefault(),w&&(W.lastStopped=Date.now()))):a.preventDefault())};
r1E=function(a,W){return W<0&&a.scrollTop>0||W>0&&a.scrollTop<a.scrollHeight-a.clientHeight-1?(a=getComputedStyle(a).overflowY,a=="auto"||a=="scroll"):!1};
_.E$=function(a,W,w,Z){Z||(Z={bubbles:!0,cancelable:!1,composed:!0});w!==null&&w!==void 0&&(Z.detail=w);var N=new CustomEvent(W,Z);_.r("untrack_fire_custom_event_killswitch")?a.dispatchEvent(N):to(function(){return void a.dispatchEvent(N)});
return N};
_.aV=function(a,W,w,Z){W=new A1D(W,!(Z===void 0||!Z),w);_.E$(a,"yt-action",W);return W.returnValue};
_.W_=function(a,W,w){return _.aV(a,W,w,!0)};
_.wS=function(a,W,w){return _.aV(a,W,w)[0]};
_.N1=function(a,W,w,Z){W&&W.length&&W.forEach(function(N){var B=Dw9(N);B&&(_.r("handle_service_request_actions")&&N.commandMetadata&&N.commandMetadata.webCommandMetadata&&N.commandMetadata.webCommandMetadata.sendPost?_.Z9(w?w:a,[N]):_.W_(a,B,[N,w,Z]))})};
_.Z9=function(a,W){var w=[a];W&&w.push.apply(w,W);W=_.aV(a,"yt-service-request",w);return W.length>0&&(W=W[0],_.E$(a,"yt-service-request-sent",W),W&&W.ajaxPromise)?(W.ajaxPromise.then(function(Z){_.E$(a,"yt-service-request-completed",Z)},function(Z){_.E$(a,"yt-service-request-error",{error:Z,
params:w})},a),W.ajaxPromise):_.tk()};
_.B_=function(a,W){if(_.r("handle_service_request_actions"))_.N1(W,a,W);else{a=_.l(a);for(var w=a.next();!w.done;w=a.next()){w=w.value;var Z=void 0;((Z=_.A(w,_.$7))==null?0:Z.commands)?_.B_(_.A(w,_.$7).commands,W):(Z=void 0,((Z=_.A(w,_.l0))==null?0:Z.actions)?_.B_(_.A(w,_.l0).actions,W):(Z=void 0,((Z=_.A(w.commandMetadata,_.mm))==null?0:Z.sendPost)?_.Z9(W,[w]):_.N1(W,[w],W)))}}};
_.i9e=function(a,W,w){W=W===void 0?{}:W;typeof W==="function"&&(W={callback:W});w||W._c&&W._c.jsl&&W._c.jsl.h||_.T5.extend(W,{_c:{jsl:{h:_.LF("GAPI_HINT_PARAMS")}}});(W.gapiHintOverride||_.LF("GAPI_HINT_OVERRIDE"))&&(w=_.st(document.location.href).gapi_jsh)&&_.T5.extend(W,{_c:{jsl:{h:w}}});hTU(a,W)};
_.P_=function(a,W,w){W=W===void 0?{}:W;a=(a=a in IV?IV[a]:w)||"";w={};for(var Z in W){w={key$jscomp$788:w.key$jscomp$788};w.key$jscomp$788=Z;var N=function(B){return function(){return String(W[B.key$jscomp$788])}}(w);
a=a.replace(new RegExp("\\$\\{"+w.key$jscomp$788+"\\}","gi"),N);a=a.replace(new RegExp("\\$"+w.key$jscomp$788,"gi"),N)}return a};
_.Xz=function(a,W){return c1C(a in IV?IV[a]:{},W)};
c1C=function(a,W){var w=_.LF("I18N_PLURAL_RULES");w||(w=function(Z){return Z==1?"one":"other"});
return(a=a["case"+W]||a[w(W)])?a.replace("#",W.toString()):W+""};
jZF=function(a){var W=eTx(a),w=document.getElementById(W),Z=w&&W1m(w);Z||w&&!Z||(w=n$e(a,W,function(){if(!W1m(w)){a$H(w);_.$te(W);var N=_.v_(_.lC9,W);_.wz(N,0)}}))};
n$e=function(a,W,w){var Z=document.createElement("link");Z.id=W;Z.onload=function(){w&&setTimeout(w,0)};
a=_.TO(a);_.s0(Z,a,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(Z);return Z};
eTx=function(a){var W=_.PM("A");hY(W,vP(a));return"css-"+Rm(W.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.J1v=function(a){var W=L18();a!==W&&(W=_.gS(),!_.r("web_autonav_allow_off_by_default")&&a||_.oV(0,141,!0),_.oV(0,140,!a),W.save())};
L18=function(){var a=_.gS();return _.r("web_autonav_allow_off_by_default")&&!a.getFlag(141)&&_.LF("AUTONAV_OFF_BY_DEFAULT")?!1:!a.getFlag(140)};
F1S=function(a,W){var w,Z;a=((w=a.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Z=w.videoAuthorizationToken)==null?void 0:Z.credentialTransferTokens)||[];for(w=0;w<a.length;++w)if(a[w].scope===W)return a[w].token||void 0};
MSe=function(a){for(var W=0,w=0;w<a.length;w++)W=W*31+a.charCodeAt(w),w<a.length-1&&(W%=0x800000000000);return W%1E5};
_.k7=function(a){return _.RT("ytcsi."+(a||"")+"data_")||RTx(a)};
_.q19=function(a){a=_.k7(a);a.metadata||(a.metadata={});return a.metadata};
_.QZx=function(a){a=_.k7(a);a.tick||(a.tick={});return a.tick};
_.xPI=function(a){a=_.k7(a);if(a.gel){var W=a.gel;W.gelInfos||(W.gelInfos={});W.gelTicks||(W.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
_.b9I=function(a){a=_.xPI(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
sZe=function(a){var W=_.k7(a).nonce;W||(W=hs(16),_.k7(a).nonce=W);return W};
RTx=function(a){var W={tick:{},info:{}};_.Dp("ytcsi."+(a||"")+"data_",W);return W};
uHe=function(){var a=_.RT("ytcsi.debug");a||(a=[],_.Dp("ytcsi.debug",a),_.Dp("ytcsi.reference",{}));return a};
_.G_E=function(a){a=a||"";var W=Ccx();if(W[a])return W[a];var w=uHe(),Z={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};w.push(Z);return W[a]=Z};
DPD=function(a){a=a||"";var W=Ccx();W[a]&&delete W[a];var w=uHe(),Z={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};w.push(Z);W[a]=Z};
Ccx=function(){var a=_.RT("ytcsi.reference");if(a)return a;uHe();return _.RT("ytcsi.reference")};
_.dPe=function(a){return f$E[a]||"LATENCY_ACTION_UNKNOWN"};
H9C=function(a,W,w){w=w===void 0?{}:w;var Z=!1;_.JS("ytLoggingEventsDefaultDisabled",!1)&&(Z=!0);Z=Z?null:Al;w=w===void 0?{}:w;var N=Math.round(w.timestamp||(0,_.mG)());_.SJ(W,1,N<Number.MAX_SAFE_INTEGER?N:0);N=new mPI;if(w.lact)_.SJ(N,1,isFinite(w.lact)?w.lact:-1);else if(w.timestamp)_.SJ(N,1,-1);else{var B=_.HI();_.SJ(N,1,isFinite(B)?B:-1)}if(w.sequenceGroup&&!_.r("web_gel_sequence_info_killswitch")){B=w.sequenceGroup;var I=S8H(B),X=new VSx;_.SJ(X,2,I);_.Xu(X,1,B);_.ZP(N,3,X);w.endOfSequence&&delete zTF[w.sequenceGroup]}_.ZP(W,
33,N);(w.sendIsolatedPayload?Ate:hSD)(a,{endpoint:"log_event",payload:W,cttAuthInfo:w.cttAuthInfo,dangerousLogToVisitorSession:w.dangerousLogToVisitorSession},Z)};
_.O_=function(){return(_.r("csi_use_time_origin")||_.r("csi_use_time_origin_tvhtml5"))&&_.U_.timeOrigin?Math.floor(_.U_.timeOrigin):_.U_.timing.navigationStart};
_.y1x=function(a,W){_.SW("_start",a,W)};
_.Y7=function(a,W){if(!_.r("web_csi_action_sampling_enabled")||!_.k7(W).actionDisabled){var w=_.G_E(W||"");_.bkm(w.info,a);a.loadType&&(w=a.loadType,_.q19(W).loadType=w);_.bkm(_.b9I(W),a);w=sZe(W);W=_.k7(W).cttAuthInfo;E$e().info(a,w,W)}};
at7=function(){var a,W,w,Z;return((Z=_.K().resolve(_.Vv(KH))==null?void 0:(a=OtH())==null?void 0:(W=a.loggingHotConfig)==null?void 0:(w=W.csiConfig)==null?void 0:w.debugTicks)!=null?Z:[]).map(function(N){return Object.values(N)[0]})};
_.SW=function(a,W,w){if(!_.r("web_csi_action_sampling_enabled")||!_.k7(w).actionDisabled){var Z=sZe(w),N;if(N=_.r("web_csi_debug_sample_enabled")&&Z){(_.K().resolve(_.Vv(KH))==null?0:OtH())&&!WvE&&(WvE=!0,_.SW("gcfl",(0,_.mG)(),w));var B,I,X;N=(_.K().resolve(_.Vv(KH))==null?void 0:(B=OtH())==null?void 0:(I=B.loggingHotConfig)==null?void 0:(X=I.csiConfig)==null?void 0:X.debugSampleWeight)||0;if(B=N!==0)b:{B=at7();if(B.length>0)for(I=0;I<B.length;I++)if(a===B[I]){B=!0;break b}B=!1}B?(N=MSe(Z)%N!==0,
_.k7(w).debugTicksExcludedLogged||(B={},B.debugTicksExcluded=N,_.Y7(B,w)),_.k7(w).debugTicksExcludedLogged=!0):N=!1}if(!N){a[0]!=="_"&&w1U(a,w,W);N=_.G_E(w||"");N.tick[a]=W||(0,_.mG)();if(N.callback&&N.callback[a])for(N=_.l(N.callback[a]),B=N.next();!B.done;B=N.next())B=B.value,B();N=_.xPI(w);N.gelTicks&&(N.gelTicks[a]=!0);B=_.QZx(w);N=W||(0,_.mG)();_.r("log_repeated_ytcsi_ticks")?a in B||(B[a]=N):B[a]=N;B=_.k7(w).cttAuthInfo;a==="_start"?E$e().baseline(Z,W,B):E$e().tick(a,Z,W,B);_.Zmx(w);return N}}};
w1U=function(a,W,w){if(_.U_.mark)if(a.startsWith("mark_")||(a="mark_"+a),W&&(a+=" ("+W+")"),w===void 0||_.r("web_csi_disable_alt_time_performance_mark"))_.U_.mark(a);else{w=_.r("csi_use_performance_navigation_timing")?w-_.U_.timeOrigin:w-(_.U_.timeOrigin||_.U_.timing.navigationStart);try{_.U_.mark(a,{startTime:w})}catch(Z){}}};
NF9=function(){var a,W=(a=_.U_.getEntriesByType)==null?void 0:a.call(_.U_,"mark");W&&W.forEach(function(w){if(w.name.startsWith("mark_")){var Z;(Z=_.U_.clearMarks)==null||Z.call(_.U_,w.name)}})};
_.tiU=function(){switch(f3S()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.$KI=function(a){var W={},w=function(B,I,X){I=I.match("_rid")?I.split("_rid")[0]:I;typeof X==="number"&&(X=JSON.stringify(X));B.requestIds?B.requestIds.push({endpoint:I,id:X}):B.requestIds=[{endpoint:I,id:X}]};
a=_.l(Object.entries(a));for(var Z=a.next();!Z.done;Z=a.next()){var N=_.l(Z.value);Z=N.next().value;N=N.next().value;switch(Z){case "GetBrowse_rid":w(W,Z,N);break;case "GetGuide_rid":w(W,Z,N);break;case "GetHome_rid":w(W,Z,N);break;case "GetPlayer_rid":w(W,Z,N);break;case "GetSearch_rid":w(W,Z,N);break;case "GetSettings_rid":w(W,Z,N);break;case "GetTrending_rid":w(W,Z,N);break;case "GetWatchNext_rid":w(W,Z,N);break;case "yt_red":W.isRedSubscriber=!!N;break;case "yt_ad":W.isMonetized=!!N}}return W};
_.BF7=function(a){var W=_.TG("aft",a);if(W)return W;W=_.LF((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var w=W.length,Z=0;Z<w;Z++){var N=_.TG(W[Z],a);if(N)return N}return NaN};
_.lt8=function(a,W){_.Dp("ytglobal.timing"+(W||"")+"ready_",a)};
_.TG=function(a,W){if(a=_.QZx(W)[a])return typeof a==="number"?a:a[a.length-1]};
_.Zmx=function(a){var W=_.TG("_start",a),w=_.BF7(a),Z=!ItH;W&&w&&Z&&(Unx(Pwe,new X1H(Math.round(w-W),a)),ItH=!0)};
gK7=function(a){RTx(a);vK8();NF9();a||(_.LF("TIMING_ACTION")&&_.jm("PREVIOUS_ACTION",_.LF("TIMING_ACTION")),_.jm("TIMING_ACTION",""))};
_.oKH=function(a){a=a===void 0?{}:a;_.Mx(function(){KD();DPD();gK7();_.lt8(!1);a.cttAuthInfo&&(_.k7().cttAuthInfo=a.cttAuthInfo);_.jm("TIMING_AFT_KEYS",[]);a.isHot?_.pD({loadType:"hot"}):_.pD({loadType:"warm"});_.jm("TIMING_ACTION","");delete _.LF("TIMING_INFO",{}).yt_lt;_.Mx(_.y1x)(a.startTime,void 0)})()};
_.rS=function(a,W,w,Z){W=W===void 0?{}:W;_.Mx(function(){var N=w?w:a;kVx(N);var B=W.sampleRate;if(!_.r("web_csi_action_sampling_enabled")||B===void 0||B<=1)B=!1;else{var I=sZe(N);B=MSe(I)%B!==0}B&&(_.k7(N).actionDisabled=!0);_.G_E(N||"").info.actionType=a;W.cttAuthInfo&&(_.k7(N).cttAuthInfo=W.cttAuthInfo);_.jm(N+"TIMING_ACTION",a);_.Mx(_.y1x)(W.startTime,N);B={actionType:Z||_.dPe(a)};W.logPreviousAction&&(B.previousAction=_.dPe(_.LF("TIMING_ACTION")));(I=_.nS())&&I!=="UNDEFINED_CSN"&&(B.clientScreenNonce=
I);_.pD(B,N);_.lt8(!0,N)})()};
kVx=function(a){_.Mx(function(){KD(a);DPD(a);gK7(a)})()};
UKe=function(){_.Mx(function(){var a=[],W;for(W in _.RT("ytcsi.".slice(0,-1)))W.endsWith("data_")&&a.push(W.slice(0,-5));a=_.l(a);for(W=a.next();!W.done;W=a.next())kVx(W.value);KD()})()};
_.SVD=function(a){return _.Mx(function(){return _.OmI("_start",a)})()};
_.pD=function(a,W,w){_.Mx(_.Y7)(a,W,w===void 0?!1:w)};
_.Ak=function(a,W,w){return _.Mx(_.SW)(a,W,w)};
_.OmI=function(a,W){return _.Mx(function(){var w=_.QZx(W);return a in w})()};
TFE=function(a){if(!_.r("universal_csi_network_ticks"))return"";a=_.tw(a)||"";for(var W=Object.keys(YVU),w=0;w<W.length;w++){var Z=W[w];if(a.includes(Z))return Z}return""};
p1H=function(a){if(!_.r("universal_csi_network_ticks"))return function(){};
var W=YVU[a];return W?(_.hk(W),function(){var w=_.r("universal_csi_network_ticks")?(w=Kve[a])?_.hk(w):!1:!1;return w}):function(){}};
_.hk=function(a,W,w){return _.Mx(function(){if(_.OmI(a,w))return!1;_.Ak(a,W,w);return!0})()};
_.i0=function(a,W,w){_.Mx(function(){if(!_.SVD(w)||_.OmI(a,w))return!1;_.Ak(a,W,w);return!0})()};
_.c_=function(a){return _.Mx(_.TG)(a,void 0)};
KD=function(a){_.SVD(a)&&_.Ak("aa",void 0,a)};
_.c29=function(a,W,w,Z,N,B,I,X,v){var U=r2e();X=new _.cG({veType:W,youtubeData:B,jspbYoutubeData:X});B=eW({},U);N&&(B.cttAuthInfo=N);N={csn:U,pageVe:X.getAsJson()};_.r("expectation_logging")&&v&&v.screenCreatedLoggingExpectations&&(N.screenCreatedLoggingExpectations=v.screenCreatedLoggingExpectations);w&&w.visualElement?(N.implicitGesture={parentCsn:w.clientScreenNonce,gesturedVe:w.visualElement.getAsJson()},I&&(N.implicitGesture.gestureType=I)):w&&_.jJ(new _.Uw("newScreen() parent element does not have a VE - rootVe",
W));Z&&(N.cloneCsn=Z);a?rt("screenCreated",N,a,B):_.ia("screenCreated",N,B);Unx(rGI,new A2E(U));nD.clear();hxS.clear();imE.clear();return U};
Jk=function(a,W,w,Z,N){exe(a,W,w,[Z],N===void 0?!1:N)};
exe=function(a,W,w,Z,N){N=N===void 0?!1:N;for(var B=eW({cttAuthInfo:jH(W)||void 0},W),I=_.l(Z),X=I.next();!X.done;X=I.next()){X=X.value;var v=X.getAsJson();(_.T5.isEmpty(v)||!v.trackingParams&&!v.veType)&&_.jJ(Error("uf"));if(_.r("no_client_ve_attach_unless_shown")){var U=nKH(X,W);if(v.veType&&!hxS.has(U)&&!imE.has(U)&&!N){if(!_.r("il_attach_cache_limit")||nD.size<1E3){nD.set(U,[a,W,w,X]);return}_.r("il_attach_cache_limit")&&nD.size>1E3&&_.jJ(new _.Uw("IL Attach cache exceeded limit"))}X=nKH(w,W);
nD.has(X)?jrI(w,W):imE.set(X,!0)}}Z=Z.filter(function(O){O.csn!==W?(O.csn=W,O=!0):O=!1;return O});
w={csn:W,parentVe:w.getAsJson(),childVes:_.pY(Z,function(O){return O.getAsJson()})};
W==="UNDEFINED_CSN"?Fz("visualElementAttached",B,w):a?rt("visualElementAttached",w,a,B):_.ia("visualElementAttached",w,B)};
J2S=function(a,W,w,Z,N){Lve(a,W,w,N)};
Lve=function(a,W,w,Z){Fve(w,W);var N=eW({cttAuthInfo:jH(W)||void 0},W);w={csn:W,ve:w.getAsJson(),eventType:1};Z&&(w.clientData=Z);W==="UNDEFINED_CSN"?Fz("visualElementShown",N,w):a?rt("visualElementShown",w,a,N):_.ia("visualElementShown",w,N)};
MiH=function(a,W,w,Z){Fve(w,W);var N=eW({cttAuthInfo:jH(W)||void 0},W);w={csn:W,ve:w.getAsJson(),eventType:4};Z&&(w.clientData=Z);W==="UNDEFINED_CSN"?Fz("visualElementShown",N,w):a?rt("visualElementShown",w,a,N):_.ia("visualElementShown",w,N)};
RxF=function(a,W,w,Z,N){var B=(Z=Z===void 0?!1:Z)?16:8;Z=eW({cttAuthInfo:jH(W)||void 0,endOfSequence:Z},W);w={csn:W,ve:w.getAsJson(),eventType:B};N&&(w.clientData=N);W==="UNDEFINED_CSN"?Fz("visualElementHidden",Z,w):a?rt("visualElementHidden",w,a,Z):_.ia("visualElementHidden",w,Z)};
Qrx=function(a,W,w,Z,N){qVv(a,W,w,void 0,Z,N)};
qVv=function(a,W,w,Z,N){Fve(w,W);Z=Z||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var B=eW({cttAuthInfo:jH(W)||void 0},W);w={csn:W,ve:w.getAsJson(),gestureType:Z};N&&(w.clientData=N);W==="UNDEFINED_CSN"?Fz("visualElementGestured",B,w):a?rt("visualElementGestured",w,a,B):_.ia("visualElementGestured",w,B)};
xKD=function(a,W,w,Z){var N=eW({cttAuthInfo:jH(W)||void 0},W);w={csn:W,ve:w.getAsJson(),clientData:Z};W==="UNDEFINED_CSN"?Fz("visualElementStateChanged",N,w):a?rt("visualElementStateChanged",w,a,N):_.ia("visualElementStateChanged",w,N)};
bmx=function(){var a=Ad9(16);for(var W=[],w=0;w<a.length;w++)W.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[w]&63));return W.join("")};
Fz=function(a,W,w){srI.push({payloadName:a,payload:w,jspbPayload:void 0,options:W});uWE||(uWE=hzF())};
pJ8=function(a){if(srI){for(var W=_.l(srI),w=W.next();!w.done;w=W.next())w=w.value,w.payload&&(w.payload.csn=a.csn,_.ia(w.payloadName,w.payload,w.options));srI.length=0}uWE=0};
nKH=function(a,W){return""+a.getAsJson().veType+a.getAsJson().veCounter+W};
Fve=function(a,W){if(_.r("no_client_ve_attach_unless_shown")){var w=nKH(a,W);hxS.set(w,!0);jrI(a,W)}};
jrI=function(a,W){a=nKH(a,W);nD.has(a)&&(W=nD.get(a)||[],Jk(W[0],W[1],W[2],W[3],!0),nD.delete(a))};
eW=function(a,W){_.r("log_sequence_info_on_gel_web")&&(a.sequenceGroup=W);return a};
_.M1=function(a,W,w){_.Mx(Jk)(void 0,a,W,w)};
_.RV=function(a,W,w){_.Mx(exe)(void 0,a,W,w)};
_.q1=function(a,W){_.Mx(J2S)(void 0,a,W,void 0,void 0,void 0)};
_.Qw=function(a,W,w){_.Mx(function(){_.x6(W,function(Z){MiH(void 0,a,Z,w)})})()};
_.x7=function(a,W,w,Z){_.Mx(function(){_.x6(W,function(N){RxF(void 0,a,N,w,Z)})})()};
_.b0=function(a,W,w){_.Mx(Qrx)(void 0,a,W,w,void 0)};
_.s_=function(a,W,w,Z){_.Mx(qVv)(void 0,a,W,w,Z,void 0)};
_.u0=function(a,W,w){_.Mx(xKD)(void 0,a,W,w,void 0)};
GG=function(a){return CD.get(a)};
Cw9=function(a,W){CD.set(a,W)};
GVH=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(a){return(+a^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+a/4).toString(16)})};
mKe=function(a,W){W=W===void 0?{}:W;if(D9&&D9.sample(a,W)){var w=DKF++,Z,N;a=new ftv(a,W,performance.now(),w,dK8,(N=(Z=fD)==null?void 0:Z.traceId)!=null?N:w);if(fD){var B;(B=fD).children||(B.children=[]);fD.children.push(a)}w=_.l(D9.spanProcessors);for(Z=w.next();!Z.done;Z=w.next())B=N=void 0,(B=(N=Z.value).onSpanStart)==null||B.call(N,a);return fD=a}};
Vi8=function(a){var W;return(W=D9)==null?void 0:W.sample(a,void 0)};
zxU=function(a){dK8=GVH();D9=a};
HmU=function(a,W,w){if(!a)return W(w);var Z=void 0;try{return W(w)}catch(N){throw Z="error",N;}finally{a==null||a.close(Z)}};
y28=function(a,W){var w=Object.keys(a);a=new _.Uw("[Command Handler] "+W,{filteredCommandNames:w,originalCommand:a});_.eJ(a)};
EKC=function(a,W){y28(a,W+" was called but not set")};
aie=function(a){return function(){return new a}};
dS=function(a){return function(){return _.K().resolve(a)}};
Wjv=function(a,W){var w=_.A(a,_.Qz);if(w&&(w=W[w.signal]))return w();a=_.l(Object.keys(a));for(w=a.next();!w.done;w=a.next())if(w=w.value,W[w]&&(w=W[w]))return w()};
mX=function(a,W,w,Z){return{browseEndpoint:{browseId:a},commandMetadata:{webCommandMetadata:{url:W,rootVe:w,webPageType:Z===void 0?"WEB_PAGE_TYPE_BROWSE":Z}}}};
wnI=function(a,W,w){var Z=W=W===void 0?0:W;w=w===void 0?0:w;var N=w-Z;return _.Vw(a,"PPSV",void 0,void 0,(N>600?0:N<60||w<=0||Z/w>.9)?0:W)};
_.Vw=function(a,W,w,Z,N){var B="/watch?v="+a;a={videoId:a};W&&(a.playlistId=W,B+="&list="+W);Z&&(B+="&pp="+Z);N&&(a.startTimeSeconds=N,B+="&t="+N+"s");W={watchEndpoint:a,commandMetadata:{webCommandMetadata:{url:B,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};w&&(W.clickTrackingParams=w);Z&&(_.A(W,_.u6).playerParams=Z);return W};
ZUE=function(a){return{browseEndpoint:{browseId:"VL"+a},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+a,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
NqC=function(a){if(a){var W;if(a){var w=(W=_.A(a.commandMetadata,_.mm))==null?void 0:W.url;W=!(!w||w==="/service_ajax")}else W=!1;if(W)return a;var Z;if(a=(Z=_.A(a,_.$7))==null?void 0:Z.commands)for(Z=_.l(a),a=Z.next();!a.done;a=Z.next())if(a=NqC(a.value))return a}};
_.zG=function(a){return{runs:[{text:a}]}};
tfH=function(a,W){return a&&W?{runs:[{text:a,navigationEndpoint:W}]}:void 0};
H_=function(a){return a?_.zG(a):void 0};
_.yw=function(a){return a?{simpleText:a}:void 0};
_.E_=function(a){var W=a.type;a=a.payload;W={type:W};a!==void 0&&(W.payload=a);return W};
$DD=function(a,W,w){for(var Z=Object.assign({},a),N=_.l(Object.keys(W)),B=N.next();!B.done;B=N.next()){B=B.value;var I=a[B],X=W[B];if(X===void 0)delete Z[B];else if(I===void 0)Z[B]=X;else if(Array.isArray(X)&&Array.isArray(I))Z[B]=w?[].concat(_.K8(I),_.K8(X)):X;else if(!Array.isArray(X)&&_.tL(X)&&!Array.isArray(I)&&_.tL(I))Z[B]=$DD(I,X,w);else if(typeof X===typeof I)Z[B]=X;else return W=new _.Uw("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:B,originalValue:I,updateValue:X}),
_.eJ(W),a}return Z};
Ii8=function(a){if(!a.length)return"";try{if(BqE)return BqE.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(I){}for(var W=0,w=[],Z=a.length;W<Z;){for(var N=0;N<1024&&W<Z;){var B=a[W++];if(B<128)liv[N++]=B;else{if(B<224)B=(B&31)<<6|a[W++]&63;else if(B<240)B=(B&15)<<12|(a[W++]&63)<<6|a[W++]&63;else{if(N+1===1024){--W;break}B=(B&7)<<18|(a[W++]&63)<<12|(a[W++]&63)<<6|a[W++]&63;B-=65536;liv[N++]=55296|B>>10;B=56320|B&1023}liv[N++]=B}}B=String.fromCharCode.apply(String,
liv);N<1024&&(B=B.substring(0,N));w.push(B)}return w.join("")};
XnC=function(a,W){var w;if((w=PTe)==null?0:w.encodeInto)return W=PTe.encodeInto(a,W),W.read<a.length?a.length*4:W.written;for(var Z=w=0;Z<a.length;Z++){var N=a.charCodeAt(Z);N<128?W[w++]=N:(N<2048?W[w++]=N>>6|192:((N&64512)===55296&&Z+1<a.length&&(a.charCodeAt(Z+1)&64512)===56320?(N=65536+((N&1023)<<10)+(a.charCodeAt(++Z)&1023),W[w++]=N>>18|240,W[w++]=N>>12&63|128):W[w++]=N>>12|224,W[w++]=N>>6&63|128),W[w++]=N&63|128)}return w};
viE=function(a,W){a=new Uint8Array(a);W&&a.set(W);return a};
_.WJ=function(a){a=new gi7(new oie([_.UR(decodeURIComponent(a))]));if(kpH(a,2)){var W=as(a);var w=a.pos;var Z=a.arrayView;w=w===void 0?0:w;var N=W===void 0?-1:W;w=w===void 0?0:w;N=N===void 0?-1:N;if(Z.totalLength&&N){N<0&&(N=Z.totalLength-w);Z.focus(w);if(!(w-Z.arrayPos+N<=Z.arrays[Z.arrayIdx].length)){var B=Z.arrayIdx,I=Z.arrayPos;Z.focus(w+N-1);I=new Uint8Array(Z.arrayPos+Z.arrays[Z.arrayIdx].length-I);for(var X=0,v=B;v<=Z.arrayIdx;v++)I.set(Z.arrays[v],X),X+=Z.arrays[v].length;Z.arrays.splice(B,
Z.arrayIdx-B+1,I);Z.arrayIdx=0;Z.arrayPos=0;Z.focus(w)}B=Z.arrays[Z.arrayIdx];Z=new DataView(B.buffer,B.byteOffset+w-Z.arrayPos,N)}else Z=new DataView(new ArrayBuffer(0));Z=new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength);a.pos+=W;W=Z}else W=void 0;W=W?Ii8(W):void 0;a=kpH(a,4)?as(a):void 0;Z=UDI[a];if(typeof Z==="undefined")throw a=new _.Uw("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:a}),_.eJ(a),a;return{entityTypeFieldNumber:a,entityType:Z,entityId:W}};
_.Nn=function(a,W,w){w=w===void 0?0:w;var Z=new OUx;if(PTe)a=PTe.encode(a);else{var N=new Uint8Array(Math.ceil(a.length*1.2)),B=XnC(a,N);N.length<B&&(N=new Uint8Array(B),B=XnC(a,N));N.length>B&&(N=N.subarray(0,B));a=N}a!==void 0&&(wK(Z,18),N=a.length,wK(Z,N),Zb(Z,N),Z.buf.set(a,Z.pos),Z.pos+=N);a=S5I[W];if(typeof a==="undefined")throw w=new _.Uw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:W}),_.eJ(w),w;a!==void 0&&(wK(Z,32),wK(Z,a));wK(Z,40);wK(Z,1);W=new Uint8Array(Z.buf.buffer,
Z.buf.byteOffset,Z.pos);return encodeURIComponent(_.EI(W,w))};
Y5v=function(a){a=a.key||a.id;if(!a)throw Error("yf");return a};
KjH=function(a,W){a=a===void 0?{}:a;return Tqv(a,W)};
pne=function(a,W,w,Z){if(Z===void 0)return Z=Object.assign({},a[W]||{}),w=(delete Z[w],Z),Z={},Object.assign({},a,(Z[W]=w,Z));var N={},B={};return Object.assign({},a,(B[W]=Object.assign({},a[W],(N[w]=Z,N)),B))};
rA8=function(a,W,w,Z,N){var B=a[W];if(B==null||!B[w])return a;Z=$DD(B[w],Z,N==="REPEATED_FIELDS_MERGE_OPTION_APPEND");N={};B={};return Object.assign({},a,(B[W]=Object.assign({},a[W],(N[w]=Z,N)),B))};
_.tG=function(a,W,w){return a[W]?a[W][w]||null:null};
hXS=function(){if(AAU)return AAU();var a={};AAU=dz("PersistentEntityStoreDb",{objectStores:(a.EntityStore={addedAtVersion:1},a.EntityAssociationStore={addedAtVersion:2},a),shared:!1,upgrade:function(W,w){w(1)&&ME(FU(W,"EntityStore",{keyPath:"key"}),"entityType","entityType");w(2)&&(W=FU(W,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),ME(W,"byParentEntityKey","parentEntityKey"),ME(W,"byChildEntityKey","childEntityKey"))},
version:3});return AAU()};
iU7=function(a){return _.xq(hXS(),a)};
$p=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
eXv=function(a){return _.xq(cA9(),a)};
ni7=function(a){return new BJ("WRONG_DATA_TYPE",{encoderVersion:a})};
jwF=function(a){return a instanceof Error?new BJ("UNKNOWN_ENCODE_ERROR",{originalMessage:a.message}):new BJ("UNKNOWN_ENCODE_ERROR")};
Lj9=function(a){return a instanceof Error?new BJ("UNKNOWN_DECODE_ERROR",{originalMessage:a.message}):new BJ("UNKNOWN_DECODE_ERROR")};
JAS=function(a,W){a=a instanceof BJ?a:W(a);_.eJ(a);throw a;};
FjF=function(a){a=(new TextEncoder).encode(a).subarray(0,16);var W=new Uint8Array(16);W.set(a);return W};
RXE=function(a){var W=MfH[a];if(W)return W;_.jJ(new _.Uw("Entity model not found.",{entityType:a}))};
_.l8=function(){q5D||(q5D=QwH());return q5D};
QwH=function(){var a,W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.tq(Z,2),_.g(Z,_.f3(),4);if(Z.nextAddress!=2){a=Z.yieldResult;if(!a||!_.kq()||typeof _.NH.BroadcastChannel==="undefined")return Z.return();W=new xDv;return Z.return(new Is(a,W))}w=_.Pb(Z);w instanceof Error&&_.eJ(w);return Z.return()})};
_.PJ=function(a,W){var w;return _.P(function(Z){if(Z.nextAddress==1){w=a.mutations;if(!w||w.length<=0)return Z.return();W&&W.dispatch(_.E_({type:"ENTITY_LOADED",payload:w}));return _.g(Z,bU9(w),2)}w.length=0;_.Xd(Z)})};
bU9=function(a){var W;return _.P(function(w){return w.nextAddress==1?_.g(w,_.l8(),2):(W=w.yieldResult)?_.g(w,_.Xb(W,"readwrite",function(Z){for(var N={},B=_.l(a),I=B.next(),X={};!I.done;X={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},I=B.next())X.mutation$jscomp$4=I.value,X.mutation$jscomp$4.entityKey&&swH(X.mutation$jscomp$4)&&(X.mutationEntityType$jscomp$3=(0,_.T5.getAnyKey)(X.mutation$jscomp$4.payload),I=void 0,X.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(I=function(v){return function(){return _.uS7(Z,
v.mutation$jscomp$4.payload[v.mutationEntityType$jscomp$3],v.mutationEntityType$jscomp$3)}}(X)),X.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(I=function(v){return function(){return CTS(Z,v.mutation$jscomp$4.entityKey)}}(X)),X.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(I=function(v){return function(){return Gp8(Z,v.mutation$jscomp$4.entityKey,v.mutation$jscomp$4.payload[v.mutationEntityType$jscomp$3],v.mutationEntityType$jscomp$3)}}(X)),I&&(N[X.mutation$jscomp$4.entityKey]=
N[X.mutation$jscomp$4.entityKey]?N[X.mutation$jscomp$4.entityKey].then(I):I()));
return Jw.all(Object.values(N))}),0):w.return()})};
swH=function(a){var W;a=(W=a.options)==null?void 0:W.persistenceOption;return a==="ENTITY_PERSISTENCE_OPTION_PERSIST"||a==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
dD8=function(a,W){var w,Z;_.P(function(N){if(N.nextAddress==1)return _.g(N,_.l8(),2);if(N.nextAddress!=3)return(w=N.yieldResult)?_.g(N,_.Xb(w,"readonly",function(B){var I={},X=Object.keys(W).map(function(v){var U=W[v]?[].concat(_.K8(W[v])):[];return DDv(B,v,U,I)});
return Jw.all(X).then(function(){return I})}),3):N.return();
Z=N.yieldResult;Object.keys(Z).length>0&&a.dispatch(fie(Z));_.Xd(N)})};
DDv=function(a,W,w,Z){return vJ(a,W,w).then(function(N){Z[W]=mDx(w,N)})};
mDx=function(a,W){if(W.length!==a.length)throw Error("Bf");return W.reduce(function(w,Z,N){w[a[N]]=Z;return w},{})};
HUm=function(a){var W=a.filter(function(N){var B;return(N==null?void 0:(B=N.transferEntity)==null?void 0:B.transferState)==="TRANSFER_STATE_COMPLETE"}).length,w=a.filter(function(N){var B;
return(N==null?void 0:(B=N.transferEntity)==null?void 0:B.transferState)==="TRANSFER_STATE_FAILED"}).length,Z=a.filter(function(N){var B;
return(N==null?void 0:(B=N.transferEntity)==null?void 0:B.transferState)&&Vfm.includes(N.transferEntity.transferState)});
if(!(W||Z!=null&&Z.length))return 0;W=_.zXx(Z)+W;a=a.length-w;return a===0?0:Math.round(W*100/a)/100};
_.zXx=function(a){var W=[];W=W.concat.apply(W,_.K8(a.filter(function(B){return B.streamEntity}).map(function(B){var I=Object.assign({},B.streamEntity),X,v=(X=B.transferEntity)==null?void 0:X.transferState;
I.streamsProgress=I.streamsProgress||[];I.streamsProgress=I.streamsProgress.map(function(U){var O=Object.assign({},U);O.numBytesDownloaded=v==="TRANSFER_STATE_COMPLETE"?U.numTotalBytes:U.numBytesDownloaded;return O});
return I}).map(function(B){return B.streamsProgress})));
var w=a=0;W=_.l(W);for(var Z=W.next();!Z.done;Z=W.next()){var N=Z.value;Z=Number(N.numBytesDownloaded);N=Number(N.numTotalBytes);w+=isNaN(Z)?0:Z;a+=isNaN(N)?0:N}return a===0?0:Math.round(w*100/a)/100};
yAD=function(a){if(!a||!a.expirationTimestamp||!a.action)return!1;var W=(0,_.mG)()/1E3;return Number(a.expirationTimestamp)>=W};
gK=function(a){return a&&a.expirationTimestamp&&a.action?yAD(a)&&a.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.os=function(a){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(a||"TRANSFER_STATE_UNKNOWN")};
Eiv=function(a){var W=new OUx;if(a!==void 0){var w=Math.ceil(Math.log2(a.length*4+2)/7);w=w===void 0?2:w;wK(W,10);W.submessagePosStack.push(W.pos);W.submessagePosStack.push(w);W.pos+=w;Zb(W,a.length*1.2);w=XnC(a,W.buf.subarray(W.pos));W.pos+w>W.buf.length&&(Zb(W,w),w=XnC(a,W.buf.subarray(W.pos)));W.pos+=w;a=W.submessagePosStack.pop();w=W.submessagePosStack.pop();for(var Z=W.pos-w-a;a--;){var N=a?128:0;W.view.setUint8(w++,Z&127|N);Z>>=7}}W=new Uint8Array(W.buf.buffer,W.buf.byteOffset,W.pos);return(new TextDecoder("utf-8")).decode(W)};
_.kp=function(a){var W=0;a=_.l(a);for(var w=a.next(),Z={};!w.done;Z={transferState$jscomp$3:void 0},w=a.next()){var N=w.value,B=void 0;w=(B=N.streamEntity)!=null?B:{};B=void 0;Z.transferState$jscomp$3=(B=N.transferEntity)==null?void 0:B.transferState;B=N=void 0;((N=w)==null?0:(B=N.streamsProgress)==null?0:B.length)&&w.streamsProgress.forEach(function(I){return function(X){X=Number(I.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?X.numTotalBytes:X.numBytesDownloaded);isFinite(X)&&(W+=X)}}(Z))}return W};
aje=function(a){return a.some(function(W){var w;if(!(W==null?0:(w=W.transferEntity)==null?0:w.transferState)){var Z;return!(W==null?0:(Z=W.policyEntity)==null?0:Z.action)||W.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Vfm.includes(W.transferEntity.transferState)})};
W67=function(a,W){if(!W)return!1;if(_.r("of_pb_en_po_ks"))return!0;var w;a=(w=_.tG(a,"offlineVideoPolicy",_.Nn(W,"offlineVideoPolicy")))!=null?w:void 0;return!!a&&gK(a)};
_.Zlm=function(a){var W=["TRANSFER_STATE_COMPLETE"];W=W===void 0?wTe:W;return a.filter(function(w){var Z,N;return W.includes((N=(Z=w.transferEntity)==null?void 0:Z.transferState)!=null?N:"TRANSFER_STATE_UNKNOWN")})};
Nlx=function(a,W){if(W){var w,Z=(w=_.tG(a,"playbackData",_.Nn(W,"playbackData")))!=null?w:null,N;w=(N=_.tG(a,"transfer",_.Nn(W,"transfer")))!=null?N:null;var B;N=(B=_.tG(a,"offlineVideoStreams",_.Nn(W,"offlineVideoStreams")))!=null?B:null;var I;a=(I=_.tG(a,"offlineVideoPolicy",_.Nn(W,"offlineVideoPolicy")))!=null?I:null;if(Z||w||N||a)return{playbackDataEntity:Z,transferEntity:w,streamEntity:N,policyEntity:a}}};
_.Ud=function(a){var W=a.playbackData;if(!W)return[];var w=[];W=_.l(Object.keys(W));for(var Z=W.next();!Z.done;Z=W.next()){var N=Z.value;if(!tG7(a,_.WJ(N).entityId)&&(Z=Nlx(a,_.WJ(N).entityId))){var B=void 0,I=void 0;N=(I=Number((B=_.tG(a,"playbackData",N))==null?void 0:B.streamDownloadTimestampSeconds))!=null?I:(0,_.mG)();w.push({entity:Z,streamDownloadTimestamp:N})}}return w.sort(function(X,v){var U=X.streamDownloadTimestamp,O=v.streamDownloadTimestamp;return O===U?X.entity.streamEntity&&!v.entity.streamEntity?
1:-1:O-U}).map(function(X){return X.entity})};
$7H=function(a){return _.Zlm(_.Ud(a))};
_.BlD=function(a){return _.Ud(a).filter(function(W){var w;if(((w=W.policyEntity)==null?0:w.action)&&W.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var Z;if((Z=W.transferEntity)==null?0:Z.transferState){var N;return Vfm.includes((N=W.transferEntity)==null?void 0:N.transferState)}return!0})};
tG7=function(a,W){var w;return((w=_.tG(a,"downloadStatusEntity",_.Nn(W,"downloadStatusEntity")))==null?void 0:w.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
ljx=function(a){var W;if(a==null?0:(W=a.playbackDataEntity)==null?0:W.key)return _.WJ(a.playbackDataEntity.key).entityId;var w;if(a==null?0:(w=a.transferEntity)==null?0:w.key)return _.WJ(a.transferEntity.key).entityId;var Z;if(a==null?0:(Z=a.streamEntity)==null?0:Z.key)return _.WJ(a.streamEntity.key).entityId;var N;if(a==null?0:(N=a.policyEntity)==null?0:N.key)return _.WJ(a.policyEntity.key).entityId};
P3D=function(a){var W=new Set,w;a=(w=a.mainDownloadsListEntity)==null?void 0:w[Ijm];var Z;if(!(a==null?0:(Z=a.downloads)==null?0:Z.length))return W;var N;a==null||(N=a.downloads)==null||N.forEach(function(B){(B==null?0:B.videoItem)&&W.add(B.videoItem)});
return W};
Od=function(a,W){if(W){var w=_.tG(a,"mainVideoEntity",_.Nn(W,"mainVideoEntity")),Z=_.tG(a,"downloadStatusEntity",_.Nn(W,"downloadStatusEntity")),N=_.tG(a,"ytMainChannelEntity",_.Nn(W,"ytMainChannelEntity")),B={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};a=Nlx(a,W);Z=(Z==null?void 0:Z.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.r("woffle_render_failed_download_state_ks")&&(Z==null?void 0:Z.downloadState)==="DOWNLOAD_STATE_FAILED";!a&&Z&&(a=B);if(a&&w&&
N)return Object.assign({},{videoEntity:w,channelEntity:N},a)}};
vS7=function(a,W){return XTI(a,W)==="TRANSFER_STATE_COMPLETE"&&W67(a,W)};
gSS=function(a,W){if(!W)return!1;var w;a=(w=_.tG(a,"playbackData",_.Nn(W,"playbackData")))!=null?w:void 0;return!!a&&!!a.playerResponseJson};
XTI=function(a,W){if(!W)return"TRANSFER_STATE_UNKNOWN";var w=_.tG(a,"transfer",_.Nn(W,"transfer"));if(w){var Z;return(Z=w.transferState)!=null?Z:"TRANSFER_STATE_UNKNOWN"}w=_.tG(a,"offlineOrchestrationActionWrapperEntity",_.Nn(W,"offlineOrchestrationActionWrapperEntity"));a=_.tG(a,"mainVideoEntity",_.Nn(W,"mainVideoEntity"));return w||a?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
oSx=function(a,W){if(!W)return"TRANSFER_STATE_UNKNOWN";if(a=_.tG(a,"transfer",_.Nn(W,"transfer"))){var w;return(w=a.transferState)!=null?w:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
fjx=function(a,W){return W&&(a=_.tG(a,"videoPlaybackPositionEntity",_.Nn(W,"videoPlaybackPositionEntity")),a==null?0:a.lastPlaybackPositionSeconds)?Number(a.lastPlaybackPositionSeconds):0};
m7C=function(a,W){return d7e(a).some(function(w){var Z;return(w==null?void 0:(Z=w.mainPlaylistEntity)==null?void 0:Z.playlistId)===W})};
zue=function(a,W,w){var Z=VGx(a,W);if(!Z.length)return[];W=[];Z=_.l(Z);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;var B=Od(a,N);w&&XTI(a,N)!=="TRANSFER_STATE_COMPLETE"||B&&W.push(B)}return W};
VGx=function(a,W){if(!W)return[];var w=_.Nn(W,"mainPlaylistEntity"),Z;W=(Z=a.mainPlaylistEntity)==null?void 0:Z[w];Z=[];if(W==null||!W.videos)return Z;W=_.l(W.videos);for(w=W.next();!w.done;w=W.next()){w=w.value;var N=void 0,B=void 0,I=void 0,X=(N=a)==null?void 0:(B=N.mainPlaylistVideoEntity)==null?void 0:(I=B[w])==null?void 0:I.video;X&&(w=_.WJ(X).entityId)&&Z.push(w)}return Z};
HlC=function(a,W){if(W){var w=_.tG(a,"mainPlaylistEntity",_.Nn(W,"mainPlaylistEntity")),Z=_.tG(a,"mainPlaylistDownloadStateEntity",_.Nn(W,"mainPlaylistDownloadStateEntity"));a=_.tG(a,"ytMainChannelEntity",_.Nn(W,"ytMainChannelEntity"));if(Z&&w)return Object.assign({},{mainPlaylistEntity:w,mainPlaylistDownloadStateEntity:Z},!!a&&{channelEntity:a})}};
d7e=function(a){return yMU(a).sort(function(W,w){return w.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return W.downloadedPlaylistEntities})};
yMU=function(a){var W=a.mainPlaylistDownloadStateEntity,w=[];if(!W)return w;for(var Z=_.l(Object.keys(W)),N=Z.next();!N.done;N=Z.next()){var B=N.value;N=HlC(a,_.WJ(B).entityId);var I=void 0;B=Number((I=W[B])==null?void 0:I.addedTimestampMillis);I=isNaN(B)?(0,_.mG)():B;N!==void 0&&w.push({downloadedPlaylistEntities:N,addedTimestampMillis:I})}return w};
ESF=function(a){var W,w=(W=a.mainPlaylistVideoEntity)!=null?W:{};return new Set(d7e(a).reduce(function(Z,N){Z=Z===void 0?[]:Z;var B,I;N==null||(B=N.mainPlaylistEntity)==null||(I=B.videos)==null||I.forEach(function(X){var v;(X=(v=w[X])==null?void 0:v.video)&&Z.push(X)});
return Z},[]))};
ale=function(a){return"downloadedMusicPlaylistEntities"in a};
WFU=function(a){return"mainPlaylistEntity"in a&&"mainPlaylistDownloadStateEntity"in a};
woE=function(a){return"videoEntity"in a&&"channelEntity"in a};
ZzH=function(a){var W=a.musicPlaylistDownloadMetadataEntity,w=[];if(!W)return w;for(var Z=_.l(Object.keys(W)),N=Z.next();!N.done;N=Z.next()){N=N.value;a:{var B=a,I=_.WJ(N).entityId;if(I){var X=_.tG(B,"musicPlaylist",_.Nn(I,"musicPlaylist"));B=_.tG(B,"musicPlaylistDownloadMetadataEntity",_.Nn(I,"musicPlaylistDownloadMetadataEntity"));if(X&&B){X={musicPlaylistEntity:X,musicPlaylistDownloadStateEntity:B};break a}}X=void 0}B=void 0;N=Number((B=W[N])==null?void 0:B.addedTimestampMillis);N=isNaN(N)?(0,_.mG)():
N;X!==void 0&&w.push({downloadedMusicPlaylistEntities:X,addedTimestampMillis:N})}return w};
N7U=function(a){var W=new Set;a=_.l(a);for(var w=a.next();!w.done;w=a.next())if(w=w.value,"musicPlaylistEntity"in w&&"musicPlaylistDownloadStateEntity"in w){w=_.l(w.musicPlaylistEntity.tracks);for(var Z=w.next();!Z.done;Z=w.next())W.add(Z.value)}return W};
tTS=function(a,W){if(W){var w=_.tG(a,"musicTrack",_.Nn(W,"musicTrack")),Z=_.tG(a,"musicArtist",_.Nn(W,"musicArtist"))||{};if((a=Nlx(a,W))&&w&&Z)return Object.assign({},{musicTrackEntity:w,musicArtistEntity:Z},a)}};
$aE=function(a){var W=a.musicTrackDownloadMetadataEntity,w=[];if(!W)return[];W=_.l(Object.keys(W));for(var Z=W.next();!Z.done;Z=W.next()){var N=Z.value;Z=tTS(a,_.WJ(N).entityId);var B=void 0;N=Number((B=_.tG(a,"musicTrackDownloadMetadataEntity",N))==null?void 0:B.addedTimestampMillis);B=isNaN(N)?(0,_.mG)():N;Z!==void 0&&w.push({downloadedMusicEntities:Z,addedTimestampMillis:B})}return w};
IlF=function(a,W){if(!W)return[];if(Object.values(B78).includes(W))return llE(a,W);W=_.Nn(W,"musicPlaylist");var w;a=(w=a.musicPlaylist)==null?void 0:w[W];w=[];if(a==null||!a.tracks)return w;a=_.l(a.tracks);for(W=a.next();!W.done;W=a.next())(W=_.WJ(W.value).entityId)&&w.push(W);return w};
llE=function(a,W){var w=new Set,Z=ZzH(a).map(function(B){return B.downloadedMusicPlaylistEntities});
Z=N7U(Z);Z=_.l(Z);for(var N=Z.next();!N.done;N=Z.next())(N=_.WJ(N.value).entityId)&&w.add(N);return PHF(a).downloadedMusicEntities.filter(function(B){var I;if((I=B.musicTrackEntity)!=null&&I.videoId){B=B.musicTrackEntity;if(I=W==="PPOM"?!0:!w.has(B.videoId))b:switch(B=B.musicVideoType,W){case "PPSE":I=B==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:I=B!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}B=I}else B=!1;return B}).map(function(B){var I;
return(I=B.musicTrackEntity)==null?void 0:I.videoId})};
PHF=function(a){var W=$aE(a).sort(function(w,Z){return Z.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return"downloadedMusicEntities"in w?w.downloadedMusicEntities:ale(w)?w.downloadedMusicPlaylistEntities:{}});
a=ZzH(a).sort(function(w,Z){return Z.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return"downloadedMusicEntities"in w?w.downloadedMusicEntities:ale(w)?w.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:W,downloadedMusicPlaylistEntities:a}};
vcU=function(a,W){W=_.LF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?IlF(a,W):VGx(a,W);if(!W.length)return"TRANSFER_STATE_UNKNOWN";W=W.map(function(w){return oSx(a,w)});
return Xo8(W)};
Xo8=function(a){var W=new Set(a);if(W.has("TRANSFER_STATE_FAILED")&&W.size===1)return"TRANSFER_STATE_FAILED";W.delete("TRANSFER_STATE_FAILED");if(W.has("TRANSFER_STATE_UNKNOWN")&&W.size===1)return"TRANSFER_STATE_PRE_TRANSFER";W.delete("TRANSFER_STATE_UNKNOWN");if(W.has("TRANSFER_STATE_PRE_TRANSFER")&&W.size===1||W.size===0)return"TRANSFER_STATE_PRE_TRANSFER";a=W.has("TRANSFER_STATE_TRANSFERRING");W=W.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return a||W?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Sy=function(a){var W=a.mainVideoDownloadStateEntity,w=[];if(!W)return[];W=_.l(Object.keys(W));for(var Z=W.next();!Z.done;Z=W.next()){var N=Z.value;if(!tG7(a,_.WJ(N).entityId)){Z=Od(a,_.WJ(N).entityId);var B=void 0,I=void 0;N=(I=Number((B=_.tG(a,"mainVideoDownloadStateEntity",N))==null?void 0:B.addedTimestampMillis))!=null?I:(0,_.mG)();Z!==void 0&&w.push({downloadedVideoEntities:Z,addedTimestampMillis:N})}}return w};
gc7=function(a){return Sy(a).sort(function(W,w){return w.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return W.downloadedVideoEntities})};
_.kzm=function(a){var W=ESF(a),w=_.Yp(a),Z=P3D(a),N=Sy(a).filter(function(I){var X,v;if((I==null?void 0:(X=I.downloadedVideoEntities)==null?void 0:(v=X.transferEntity)==null?void 0:v.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var U,O;I=I==null?void 0:(U=I.downloadedVideoEntities)==null?void 0:(O=U.videoEntity)==null?void 0:O.key;return _.r("kevlar_use_library_entity")?I&&(Z.has(I)||w[I]):I&&!W.has(I)}),B=yMU(a).filter(function(I){return vcU(a,I.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.K8(N),_.K8(B)).sort(function(I,X){return X.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return oc9(I)})};
Uax=function(a,W){if(W&&W67(a,W)){var w,Z,N=(Z=(w=_.tG(a,"playbackData",_.Nn(W,"playbackData")))!=null?w:void 0)==null?void 0:Z.playerResponseJson;if(N){try{var B=JSON.parse(N);var I=_.tG(a,"transfer",_.Nn(W,"transfer")),X=fjx(a,W);X&&(B=Object.assign({},B,{playerConfig:Object.assign({},B.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+X*1E3}}})}));B.cotn=I==null?void 0:I.cotn}catch(v){}return B}}};
_.Yjv=function(a){var W,w,Z;a=(Z=(w=((W=a.downloadsPageViewConfigurationEntity)!=null?W:{})[Ozm])==null?void 0:w.smartDownloadsOptInBannerVisibility)!=null?Z:{};var N;return(N=_.A(a,Sj9))!=null?N:{}};
_.Yp=function(a){var W,w,Z;a=(Z=(w=((W=a.mainDownloadsListEntity)!=null?W:{})[_.T78])==null?void 0:w.downloads)!=null?Z:[];W={};w=_.l(a);for(Z=w.next();!Z.done;Z=w.next())a=void 0,W[(a=Z.value.videoItem)!=null?a:""]=!0;return W};
KFE=function(a){var W=_.Yp(a);if(Object.keys(W).length===0)return!1;var w=a.mainVideoEntity;if(!w)return!0;w=_.l(Object.keys(w));for(var Z=w.next();!Z.done;Z=w.next()){Z=Z.value;var N=_.WJ(Z).entityId;if(W[Z]&&!tG7(a,N))return!1}return!0};
_.TC=function(a){var W=_.Yp(a);return Sy(a).sort(function(w,Z){return w.addedTimestampMillis-Z.addedTimestampMillis}).map(function(w){return w.downloadedVideoEntities}).filter(function(w){var Z;
return(w=w==null?void 0:(Z=w.videoEntity)==null?void 0:Z.key)&&!!W[w]})};
oc9=function(a){return"downloadedVideoEntities"in a?a.downloadedVideoEntities:"downloadedPlaylistEntities"in a?a.downloadedPlaylistEntities:{}};
poH=function(a){var W=_.Yp(a),w=ESF(a),Z=Sy(a).filter(function(N){var B,I;return(N=N==null?void 0:(B=N.downloadedVideoEntities)==null?void 0:(I=B.videoEntity)==null?void 0:I.key)&&!W[N]&&!w.has(N)});
a=yMU(a);return[].concat(_.K8(Z),_.K8(a)).sort(function(N,B){return B.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return oc9(N)})};
_.Kx=function(a){if(!_.r("kevlar_use_library_entity"))return poH(a);var W=Sy(a).filter(function(Z){var N,B;if(N=Z=Z==null?void 0:(N=Z.downloadedVideoEntities)==null?void 0:(B=N.videoEntity)==null?void 0:B.key){var I,X,v;N=((X=(I=a.mainDownloadsListEntity)==null?void 0:I[Ijm])==null?0:(v=X.downloads)==null?0:v.length)?P3D(a).has(Z):!1}return N}),w=yMU(a);
return[].concat(_.K8(W),_.K8(w)).sort(function(Z,N){return N.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return oc9(Z)})};
r4I=function(a){var W=_.Yp(a),w=ESF(a);return gc7(a).filter(function(Z){var N;return(Z=Z==null?void 0:(N=Z.videoEntity)==null?void 0:N.key)&&!W[Z]&&!w.has(Z)})};
A4e=function(a){if(!_.r("kevlar_use_library_entity"))return r4I(a);var W=_.Yp(a),w=P3D(a);return gc7(a).filter(function(Z){var N;return(Z=Z==null?void 0:(N=Z.videoEntity)==null?void 0:N.key)&&!W[Z]&&w.has(Z)})};
h_e=function(a,W){W=_.Nn(W,"settingEntity");var w,Z,N;return!!((N=(Z=((w=a.settingEntity)!=null?w:{})[W])==null?void 0:Z.settingOptionValue)!=null?N:{}).boolValue};
_.px=function(a){var W=_.TC(a);if(aje(W))return 0;var w=[];W=_.l(W);for(var Z=W.next();!Z.done;Z=W.next()){Z=Z.value;var N=void 0,B=void 0;if((N=Z)==null?0:(B=N.videoEntity)==null?0:B.key)N=_.WJ(Z.videoEntity.key).entityId,Z=a,N=_.Nn(N,"mainVideoDownloadStateEntity"),Z=_.tG(Z,"mainVideoDownloadStateEntity",N),(Z=Number(Z==null?void 0:Z.addedTimestampMillis))&&w.push(Z)}return Math.max.apply(Math,_.K8(w))};
_.rK=function(a){return a.ui.richGridMiniMode};
_.AG=function(a){return a.ui.richGridItemsPerRow};
_.izU=function(a){return a.ui.richGridSlimItemsPerRow};
_.c49=function(a){return a.ui.guideIsExpanded};
_.hG=function(a){return a.ui.miniplayerIsActive};
_.e_S=function(a){return a.ui.singleOptionSurveyIsActive};
_.i8=function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.ncF=function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.ji9=function(a){return a.ui.inlinePreviewIsActive};
_.LFH=function(a){return a.ui.inlinePreviewIsEnabled};
_.J4E=function(a){return a.ui.miniplayerPlaybackState};
FFH=function(a){return a.ui.isOnline};
_.MTe=function(a){return a.ui.frostedGlassMode};
_.cJ=function(a,W){return XTI(a.entities,W)};
_.ey=function(a,W){return vcU(a.entities,W)};
R_e=function(a,W){var w;if(W){var Z;a=(Z=_.tG(a.entities,"offlineVideoPolicy",_.Nn(W,"offlineVideoPolicy")))==null?void 0:Z.action}else a=void 0;return(w=a)!=null?w:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
qjx=function(a,W){var w;W?(a=_.tG(a.entities,"offlineVideoPolicy",_.Nn(W,"offlineVideoPolicy")),a=Number(a==null?void 0:a.expirationTimestamp)):a=void 0;return(w=a)!=null?w:0};
_.QiI=function(a){return _.Ud(a.entities).length};
xam=function(a,W){return Od(a.entities,W)};
bz7=function(a,W){return HlC(a.entities,W)};
nx=function(a,W){return(a=Od(a.entities,W))?_.zXx([a]):0};
_.siE=function(a,W){var w=_.LF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(w){var Z=a.entities;var N=IlF(Z,W);if(N.length){var B=[];N=_.l(N);for(var I=N.next();!I.done;I=N.next())(I=tTS(Z,I.value))&&B.push(I);Z=B}else Z=[]}else Z=zue(a.entities,W);var X;if(w){var v=a.entities;W?(W=_.Nn(W,"musicPlaylist"),v=(X=v.musicPlaylist)==null?void 0:X[W],X=v!=null&&v.tracks?v.tracks.length:0):X=0}else X=a.entities,W?(W=_.Nn(W,"mainPlaylistEntity"),X=(v=X.mainPlaylistEntity)==null?void 0:v[W],X=X!=null&&X.videos?
X.videos.length:0):X=0;return Z.length!==X?0:Z?HUm(Z):0};
_.u88=function(a){return a.download.isLeaderTab};
_.CHx=function(a,W,w){if(!W&&w){var Z=a.entities;if(w){var N=Eiv(w),B,I;W=(I=(B=_.tG(Z,"offlineabilityEntity",_.Nn(N,"offlineabilityEntity")))==null?void 0:B.addToOfflineButtonState)!=null?I:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else W="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else B=a.entities,W?(I=Eiv(W),W=(N=(Z=_.tG(B,"offlineabilityEntity",_.Nn(I,"offlineabilityEntity")))==null?void 0:Z.addToOfflineButtonState)!=null?N:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):W="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return W};
Gzx=function(a,W){a=a.entities;if(W){W=Eiv(W);var w,Z;W=(Z=(w=_.tG(a,"offlineabilityEntity",_.Nn(W,"offlineabilityEntity")))==null?void 0:w.addToOfflineButtonState)!=null?Z:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else W="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return W};
_.DaE=function(a){var W=a.entities;a=FFH(a);var w=h_e(W,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.r("kevlar_modern_downloads_page")&&w)var Z=!1;else{var N,B;W=(B=(N=((Z=W.downloadsPageViewConfigurationEntity)!=null?Z:{})[Ozm])==null?void 0:N.smartDownloadsOptInBannerVisibility)!=null?B:{};Z=a?!!W.visibleWithConnection:!!W.visibleWithoutConnection}return Z};
_.flF=function(a){return h_e(a.entities,"SMART_DOWNLOADS_ENABLED")};
_.da7=function(a){return KFE(a.entities)};
ma9=function(a){return _.TC(a.entities).every(function(W){var w;return(W==null?void 0:(w=W.transferEntity)==null?void 0:w.transferState)&&!Vfm.includes(W.transferEntity.transferState)})};
_.VTC=function(a,W){return tG7(a.entities,W)};
z_7=function(a,W){if(W){var w,Z;a=(Z=(w=_.tG(a.entities,"downloadStatusEntity",_.Nn(W,"downloadStatusEntity")))==null?void 0:w.downloadState)!=null?Z:"DOWNLOAD_STATE_UNKNOWN"}else a="DOWNLOAD_STATE_UNKNOWN";return a};
jy=function(a,W){return fjx(a.entities,W)};
aJS=function(a){a=_.Hzm(a);var W=a.hours===void 0?0:a.hours,w=a.minutes===void 0?0:a.minutes,Z=a.seconds===void 0?0:a.seconds,N=W>0;a=[];N&&(W=_.y4I(W),a.push(W));W=N;W=W===void 0?!1:W;w=(["af","be","lt"].includes(_.Lx)||W)&&w<10?Ece().format(w):(new Intl.NumberFormat("en-u-nu-latn")).format(w);a.push(w);w=Ece().format(Z);a.push(w);w=":";"da fi id si sr sr-Latn".split(" ").includes(_.Lx)&&(w=".");return a.join(w)};
_.Hzm=function(a){var W=a.hours||0,w=a.minutes||0,Z=a.seconds||0;W=Z+w*60+W*3600+(a.days||0)*86400+(a.weeks||0)*604800+(a.months||0)*2629800+(a.years||0)*31557600;if(W<=0)return{hours:0,minutes:0,seconds:0};a=W;W=Math.floor(a/3600);a%=3600;w=Math.floor(a/60);Z=Math.floor(a%60);return{hours:W,minutes:w,seconds:Z}};
_.y4I=function(a){a=(new Intl.NumberFormat("en-u-nu-latn")).format(a);var W=["fr"],w="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(_.Lx)?a.replace(",","\u00a0"):W.includes(_.Lx)?a.replace(",","\u202f"):w.includes(_.Lx)?a.replace(",","."):a};
Ece=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
WTx=function(a){try{return(new _.JG(5)).format(a)}catch(W){}};
Fb=function(a){return{thumbnailOverlayDownloadingRenderer:{state:a}}};
wEe=function(a){if(a=WTx(a))return{thumbnailOverlaySidePanelRenderer:{text:_.zG(a),icon:{iconType:"PLAYLISTS"}}}};
ZBF=function(){var a=_.P_("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.zG(a),icon:{iconType:"PLAY_ALL"}}}};
N9C=function(a){a=_.Mn(a,2);return _.Lx!=="ru"&&_.Lx!=="es_419"&&_.Lx!=="es-419"&&_.Lx!=="es"&&_.Lx!=="es_US"&&_.Lx!=="es-US"&&_.Lx!=="fr"&&_.Lx!=="pl"&&_.Lx!=="it"&&_.Lx!=="nl"&&_.Lx!=="uk"&&_.Lx!=="fr_CA"&&_.Lx!=="fr-CA"||a===""?a:a[0].toLocaleUpperCase()+a.substring(1)};
$Jm=function(a){return function(W){var w=a(),Z=_.Mn(W,w.dateFormat);W=_.Mn(W,w.timeFormat);var N=twe.DATETIMEFORMATS[w.joinerStyle];N=N.replace(/'(?!')/g,"");N=N.replace("{0}",W);N=N.replace("{1}",Z);return w.capitalize(N)}};
B98=function(a){return a?typeof a.seconds==="string"&&(a.nanos===void 0||typeof a.nanos==="number"):!1};
lJI=function(a){return new Date(Number(a.seconds)*1E3+(a.nanos||0)*1E-6)};
_.Mn=function(a,W){if(typeof a.getTime==="function")a={date:a};else if(B98(a))a={date:lJI(a)};else if(typeof B98(a.timestamp)&&typeof a.i18nInternalSecondsEastOfUtc==="number")a={date:lJI(a.timestamp),timeZone:Rs(-a.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(a));var w=a;a=w.date;w=w.timeZone;W=IJ9(W).format(a,w);_.Lx==="zh-TW"&&(a=w?Number(IJ9("H").format(a,w)):a.getHours(),W=a<5?W.replace("\u4e0a\u5348","\u51cc\u6668"):a<8?W.replace("\u4e0a\u5348","\u65e9\u4e0a"):a<12?
W.replace("\u4e0a\u5348","\u4e0a\u5348"):a<13?W.replace("\u4e0b\u5348","\u4e2d\u5348"):a<19?W.replace("\u4e0b\u5348","\u4e0b\u5348"):W.replace("\u4e0b\u5348","\u665a\u4e0a"));return W};
IJ9=function(a){if(PMF.has(a))return PMF.get(a);var W=XE8(a);W=vVI(W);gVx!==!0&&(gVx=!0);oVI=!0;oVI=!1;W=new Qb(W,twe);PMF.set(a,W);return W};
XE8=function(a){return(new Qb(a,twe)).patternParts_.map(function(W){return W.type===0?"'"+W.text+"'":W.text}).join("")};
vVI=function(a){return _.Lx==="en"||_.Lx==="es_US"||_.Lx==="es-US"?a:a.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(W,w,Z){return"H".repeat(w.length)+Z})};
pEC=function(a,W){kZF||(_.xp=_.UJH,kZF=new OBe);var w=kZF;a:if(a=SFD(a),W=SFD(W||new Date),a>W)w=a.getTime()-W.getTime()>6048E5?_.Mn(a,1):YF9(a);else{for(var Z=0;T9S(a,12*(Z+1))<W;)++Z;if(Z>0)w=w.format(-Z,0);else{for(Z=0;T9S(a,Z+1)<W;)++Z;if(Z>0)w=w.format(-Z,2);else{a=W.getTime()-a.getTime();W=_.l(KTH);for(Z=W.next();!Z.done;Z=W.next()){Z=Z.value;var N=Z.unit,B=Math.floor(a/Z.unitDuration);if(B>=(Z.threshold===void 0?1:Z.threshold)){w=w.format(-B,N);break a}}w=w.format(-0,7)}}}return w};
SFD=function(a){if(typeof a.getTime==="function")return a;if(B98(a))return lJI(a);throw Error("Df`"+JSON.stringify(a));};
T9S=function(a,W){for(var w=0,Z;;++w)if(Z=new Date(a.getFullYear(),a.getMonth()+W,a.getDate()-w,a.getHours(),a.getMinutes(),a.getSeconds()),Z.getMonth()===(a.getMonth()+W)%12)return Z};
_.b8=function(a){return{runs:[{text:a}]}};
_.sd=function(a){if(a&&a.simpleText)return a.simpleText;var W="";if(a&&a.runs)for(var w=0;w<a.runs.length;w++)a.runs[w].text&&(W+=a.runs[w].text);return W};
Acv=function(a,W,w,Z){return a.videoEntity&&!a.policyEntity&&w!=="DOWNLOAD_STATE_FAILED"?[Fb("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:gK(a.policyEntity)&&W!=="TRANSFER_STATE_FAILED"&&W!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?W==="TRANSFER_STATE_PAUSED_BY_USER"?[Fb("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.os(W)?[Fb("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:a.videoEntity.lengthSeconds?rcI(a.videoEntity.lengthSeconds,Z):[]:
[Fb("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
rcI=function(a,W){var w=[{thumbnailOverlayTimeStatusRenderer:{text:_.zG(aJS({seconds:a})),style:"DEFAULT"}}];W&&(a=W<=0||a<=0?0:W>=a?100:Math.ceil(W*100/a),a>0&&w.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:a}}));return w};
hlm=function(a,W,w,Z,N){if(W==="TRANSFER_STATE_UNKNOWN"||!a)return{};if(_.os(W)||W==="TRANSFER_STATE_PRE_TRANSFER")var B=[Fb("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var I,X;if(W==="TRANSFER_STATE_COMPLETE"&&((I=a.mainPlaylistEntity)==null?0:(X=I.videos)==null?0:X.length)){if(_.r("web_modern_collections_v2")){var v;var U=(B=a.mainPlaylistEntity)==null?void 0:(v=B.videos)==null?void 0:v.length;B=(B=WTx(U))?{thumbnailOverlayBottomPanelRenderer:{text:_.zG(B),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var O;B=wEe((U=a.mainPlaylistEntity)==null?void 0:(O=U.videos)==null?void 0:O.length)}var S;B=[ZBF(),Object.assign({},(S=B)!=null?S:{})]}else B=[]}S=B;a:if(W==="TRANSFER_STATE_PRE_TRANSFER")w=H_(_.P_("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(W==="TRANSFER_STATE_TRANSFER_IN_QUEUE")w=H_(_.P_("WAITING_TO_DOWNLOAD"));else if(_.os(W))w=Math.floor(w*100).toString(),w=H_(_.P_("DOWNLOADING_PERCENT",{percent:w},"Downloading... "+w+"%"));else{if(Z&&(_.r("playlist_is_offline_selector_killswitch")&&
(N=_.K().resolve(_.xm).isNetworkAvailable()),N)){w=tfH(_.P_("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ZUE(Z));break a}w=void 0}W=W==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.P_("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},S.length?{thumbnailOverlays:S}:{},w?{viewPlaylistText:w}:{viewPlaylistText:_.b8("")},W.length?{badges:W}:{})};
iBU=function(a,W,w,Z,N,B){if(W==="TRANSFER_STATE_UNKNOWN"||!a)return{};if(Z==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var I=Acv(a,W,Z);if(a.videoEntity&&!a.policyEntity&&Z!=="DOWNLOAD_STATE_FAILED"){var X=_.P_("WAITING_TO_DOWNLOAD");if(X)return{shortViewCountText:_.b8(X),publishedTimeText:void 0,thumbnailOverlays:I}}if(!gK(a.policyEntity)){B=a.policyEntity&&!yAD(a.policyEntity)?_.P_("DOWNLOAD_EXPIRED",{},"Download expired"):
_.P_("TRANSFER_FAILED",{},"Download failed");var v;if((v=a.policyEntity)==null?0:v.shortMessageForDisabledAction)B=a.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:H_(B),publishedTimeText:void 0,thumbnailOverlays:I}}if(W==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.b8(_.P_("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:I};if(W==="TRANSFER_STATE_FAILED"||W==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.b8(_.P_("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:I};if(W==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(v=_.P_("WAITING_TO_DOWNLOAD"),Z==="DOWNLOAD_STATE_PAUSED"&&(v=_.P_("DOWNLOAD_PAUSED",{},"Download paused")),v))return{shortViewCountText:_.b8(v),publishedTimeText:void 0,thumbnailOverlays:I};if(_.os(W))return a=Math.floor(w*100).toString(),{shortViewCountText:_.b8(_.P_("DOWNLOADING_PERCENT",{percent:a},"Downloading... "+a+"%")),publishedTimeText:void 0,thumbnailOverlays:I};W=void 0;a.videoEntity.publishedTimestampMillis&&
(W=new Date,N&&(W=new Date(N)),W=H_(pEC(new Date(Number(a.videoEntity.publishedTimestampMillis)),W)));N=[];_.r("kevlar_woffle_badge_killswitch")||(N=[{metadataBadgeRenderer:{label:_.P_("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var U;a=H_((U=a.videoEntity.localizedStrings)==null?void 0:U.viewCount);return Object.assign({},B?{shortViewCountText:void 0}:{shortViewCountText:a},B?{}:{publishedTimeText:W},{badges:N,thumbnailOverlays:I})};
elF=function(a,W){a=a===void 0?ccv:a;switch(W.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:W.payload.playlistId,inviteLinkURL:W.payload.inviteLinkUrl};default:return a}};
jXC=function(a,W){a=a===void 0?nVE:a;switch(W.type){case "SET_CURRENT_FORM_ID":return W=W.payload.formId,a.currentFormId===W?a:{currentFormId:W,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var w=W.payload;W=w.groupId;w=w.command;if(a.currentFormId){var Z=Object.assign({},a.commandsMap);Z[W]=w;a=Object.assign({},a,{commandsMap:Z})}return a;case "RESET_COMMAND_MAP":return Object.assign({},a,{commandsMap:{}});default:return a}};
Jc8=function(a,W){a=a===void 0?LT8:a;switch(W.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},a,{guideIsExpanded:W.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},a,{scrollAtTop:W.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},a,{guideIsVisibleButNotPersistent:W.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},a,{miniplayerIsActive:W.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},a,{singleOptionSurveyIsActive:W.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},a,{slimlineSurveyRatingSelectedIndex:W.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},a,{richGridMiniMode:W.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},a,{richGridItemsPerRow:W.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},a,{richGridSlimItemsPerRow:W.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},a,{richGridContainerWidth:W.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},a,{richGridStyle:W.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},a,{currentPageType:W.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},a,{inlinePreviewIsActive:W.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},a,{inlinePreviewIsEnabled:W.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},a,{darkModeIsEnabled:W.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
a,{miniplayerPlaybackState:W.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},a,{tabGesturesIsActive:W.payload});case "SET_ONLINE_STATUS":return Object.assign({},a,{isOnline:W.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},a,{chipBarIsSticky:W.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},a,{frostedGlassMode:W.payload});default:return a}};
Mwx=function(a,W){a=a===void 0?FT7:a;switch(W.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},a,{transcription:W.payload});case "SET_OVERLAY_STATE":return Object.assign({},a,{overlay:W.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return a}};
DJS=function(){return PG(Object.assign({},{continuation:Rlm,entities:KjH,download:qFH,reportChannelAbuse:QXU,share:xJ8,talkToRecs:bBe,ui:Jc8,voiceSearch:Mwx,watch:sXS,ypc:u48,shorts:CMe,radioButtonGroup:jXC,collabInviteLink:elF},GZe))};
mJ8=function(){return _.r("web_player_entities_middleware")?new u8(DJS(),[fJ9,dJ9]):new u8(DJS(),[fJ9])};
_.Cx=function(){Vwe||(Vwe=mJ8());return Vwe};
zlE=function(a,W,w){if(a.length)return{titleText:_.zG(W!=null?W:_.P_("DOWNLOADS",void 0,"Downloads")),contents:a.map(function(Z){var N=Z.videoEntity;Z={videoId:N.videoId,title:H_(N.title),shortBylineText:H_(Z.channelEntity.title),thumbnail:N.thumbnail};var B=N.videoId?jy(_.Cx().getState(),N.videoId):0;N.videoId&&w?Z.navigationEndpoint=_.Vw(N.videoId,w,void 0,void 0,B):N.videoId&&(Z.navigationEndpoint=wnI(N.videoId,B,N.lengthSeconds));N.lengthSeconds&&(Z.thumbnailOverlays=rcI(N.lengthSeconds,B));return{playlistPanelVideoRenderer:Z}}),
totalVideos:a.length}};
HBS=function(a){return(a=(0,_.T5.getValueByKeys)(a,"playlistId"))?{playlistId:a}:null};
ycI=function(){return{}};
EV8=function(a,W){return new _.PZ(function(w,Z){a.then(function(N){if(N){if(N=W(N))return w(N);Z()}},Z)})};
ahI=function(a){var W,w,Z,N=(W=a.contents)==null?void 0:(w=W.twoColumnWatchNextResults)==null?void 0:(Z=w.autoplay)==null?void 0:Z.autoplay,B,I,X;W=(B=a.contents)==null?void 0:(I=B.twoColumnWatchNextResults)==null?void 0:(X=I.playlist)==null?void 0:X.playlist;return N&&W&&W.playlistId?{rawResponse:a,autoplayRenderer:N,playlistPanelRenderer:W,playlistId:W.playlistId}:null};
w7E=function(a){var W=W===void 0?"UNKNOWN_INTERFACE":W;if(a.length===1)return a[0];var w=W49[W];if(w){w=new RegExp(w);for(var Z=_.l(a),N=Z.next();!N.done;N=Z.next())if(N=N.value,w.exec(N))return N}var B=[];Object.entries(W49).forEach(function(I){var X=_.l(I);I=X.next().value;X=X.next().value;W!==I&&B.push(X)});
w=new RegExp(B.join("|"));a.sort(function(I,X){return I.length-X.length});
Z=_.l(a);for(N=Z.next();!N.done;N=Z.next())if(N=N.value,!w.exec(N))return N;return a[0]};
_.GC=function(a){return"/youtubei/v1/"+w7E(a)};
_.Db=function(a){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:a}}}}};
_.fx=function(a){return _.Db(_.b8(a))};
ZN9=function(a,W){var w={mode:"NORMAL"};a&&(w.autoplayVideo=a.navigationEndpoint,w.nextButtonVideo=a.navigationEndpoint);W&&(w.previousButtonVideo=W.navigationEndpoint);return w};
$Rm=function(a,W,w){if(!w||!w.sets)return{sets:[ZN9(a,W)]};var Z=w.sets.find(function(I){return I.mode==="NORMAL"}),N=(0,_.T5.unsafeClone)(w);
if(!Z)return N.sets.push(ZN9(a,W)),N;if(!a)return w;Z=_.T5.getValueByKeys.apply(null,[Z].concat(_.K8(N4x)));var B=_.T5.getValueByKeys.apply(null,[a].concat(_.K8(t7U)));if(Z===B)return w;N.sets=N.sets.filter(function(I){return I.mode!=="NORMAL"});
N.sets.push(ZN9(a,W));return N};
B49=function(a){return!!a.playlistPanelVideoRenderer&&!a.playlistPanelVideoRenderer.unplayableText};
lhE=function(a){return!!a.playlistPanelVideoRenderer&&!!a.playlistPanelVideoRenderer.title};
IhU=function(a,W){if(W.contents&&!(a>=W.contents.length)&&(a=W.contents.slice(a).find(B49)))return a.playlistPanelVideoRenderer};
PiD=function(a,W){if(W.contents)return(W=W.contents.find(function(w){return!!w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.videoId===a}))?W.playlistPanelVideoRenderer:void 0};
X7U=function(a,W){return W.contents?W.contents.findIndex(function(w){return!!w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.videoId===a}):-1};
vH8=function(a,W){return W.contents?W.contents.findIndex(function(w){return!!w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.playlistSetVideoId===a}):-1};
gH7=function(a,W){a.contents&&W!==-1&&a.contents.splice(W,1).length===1&&a.totalVideos!==void 0&&(--a.totalVideos,delete a.videoCountText)};
_.oHv=function(a){var W=[];if(!a||!a.contents)return W;a=_.l(a.contents);for(var w=a.next();!w.done;w=a.next())w=w.value,w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.videoId&&W.push(w.playlistPanelVideoRenderer.videoId);return W};
_.kRU=function(a){if(a&&a.contents)return(a=a.contents.find(function(W){return!!W.playlistPanelVideoRenderer&&!!W.playlistPanelVideoRenderer.selected})||a.contents[a.currentIndex])?a.playlistPanelVideoRenderer:void 0};
URv=function(a,W,w,Z,N,B,I){N=N===void 0?!1:N;B=B===void 0?!1:B;I=I===void 0?!1:I;if(a.contents&&a.contents.length!==0){Z&&(a.contents=a.contents.filter(Z));Z=a.contents.length;for(var X=0;X<Z;X++){var v=a.contents[X].playlistPanelVideoRenderer;v&&(X===W?(B&&delete v.menu,v.indexText=_.b8("\u25b6")):N||a.isInfinite||v.indexText===void 0?delete v.indexText:v.indexText=_.b8((X+1+w).toString()))}a.currentIndex=W+w;I&&(delete a.videoCountText,a.totalVideos=Z)}};
_.YAD=function(a){a=ON9(a);if(a){var W=a.length;var w=-77%W;w<0&&(w=W+w);a=a.slice(W-w)+a.slice(0,W-w)}else a="";w="";for(W=0;W<a.length&&a[W]!==SAD;W++)w+=a[W];return w};
_.T4I=function(a,W){var w=document.body;W=W===void 0?function(X){return X}:W;
var Z,N=null;a=_.l(a);for(Z=a.next();!Z.done;Z=a.next()){var B=Z.value;Z=document.createElement("div");N||(N=Z);var I=B[0];B=B[1];I&&(Z.id=W(I));if(B)for(I=_.l(B),B=I.next();!B.done;B=I.next())Z.classList.add(W(B.value));w.appendChild(Z);w=Z}return[N,w]};
K4m=function(a,W){for(var w="",Z=0;Z<W;Z++)w+=a.charAt(Math.floor(Math.random()*a.length));return w};
dK=function(a){return K4m("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",a)};
mO=function(a){return K4m("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",a)};
Vb=function(a){return K4m("0123456789",a)};
zC=function(){var a=performance.now(),W=new Date;var w="2."+W.getFullYear()+String(W.getMonth()+1).padStart(2,"0")+String(W.getDate()).padStart(2,"0");for(var Z,N=Math.floor(Math.random()*11)+15,B=[],I=0;I<N;I++)B.push(Math.floor(Math.random()*26476865)+24547720);Z=B.join(",");var X=dK(10),v=dK(100),U=dK(102),O=dK(106),S=dK(108),T=dK(11),p=dK(1140),h=dK(123),L=dK(14),F=dK(16),x=dK(1900),G=dK(23),V=dK(26),d=dK(34),ZD=dK(397),aC=dK(44),Bv=dK(5),Am=dK(72),e9=dK(74),cv=dK(75),C7=dK(88),RC=dK(91),G8="rr2---sn-q4flrner rr1---sn-ntqe6n7r rr4---sn-5hne6nzk rr1---sn-hgn7ynek rr1---sn-q4fl6n6d rr2---sn-5hneknek rr2---sn-aigzrn7d rr5---sn-q4fl6n6d rr5---sn-hgn7rn7r rr3---sn-q4flrnsk rr1---sn-ntqe6n7k rr5---sn-q4fl6nde rr5---sn-q4flrnes rr4---sn-q4flrney rr4---sn-5hne6nsz rr4---sn-ntq7yned rr4---sn-q4fl6nsy rr3---sn-5hneknee rr5---sn-hgn7rn7k rr2---sn-q4fl6ns7".split(" ");
var QF=G8[Math.floor(Math.random()*G8.length)];var vl=(new Date("2010-01-01")).getTime();var Hl=(new Date(vl+Math.random()*((new Date).getTime()-vl))).toISOString().split("T")[0];for(var SV,Ny=[],Bl=0;Bl<4;Bl++)Ny.push(Math.floor(Math.random()*100));SV=Ny.join(".");var JL=Number(Vb(5)),Pl=Number(Vb(6)),W9=Number(Vb(7)),rC=Number(Vb(9)),le=Vb(1),rT=Vb(10),Re=Vb(16),u9=Vb(19),eV=Vb(2),DE=Vb(20),mi=Vb(21),p6=Vb(3),VF=Vb(4),K6=Vb(5),P2=Vb(6),AL=Vb(7),KK=Vb(8),P9=Vb(9);var ox=K4m("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var CK=[mO(5),mO(5),mO(5)].join("%2C"),Y8=[Vb(3),Vb(5),Vb(5)].join("%2C"),hl=mO(0),bA=mO(1),i9=mO(10),fK=mO(108),XL=mO(11),Aw=mO(12),ch=mO(13),Ui=mO(14),$q=mO(15),zH=mO(16),pM=mO(17),T8=mO(18),Jm=mO(19),sS=mO(2),kR=mO(20),tz=mO(22),L_=mO(23),gf=mO(24),YR=mO(266),OR=mO(3),oE=mO(30),iY=mO(34),$R=mO(35),pv=mO(36),Oi=mO(4),xb=mO(40),mH=mO(43),Qo=mO(47),pN=mO(5),vM=mO(6),Hv=mO(7),OI=mO(75),XX=mO(8),RP=mO(80),GH=mO(9),tI="https://www."+mO(12)+".com",Ca={},po={},u5={},HKm={},AE={},fL={},d1={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:Z}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:w},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+mO(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:w},{key:"client.name",value:"WEB"},{key:"client.fexp",value:Z}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:mi+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+mO(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:xb,ypcGetOfflineUpsellEndpoint:{params:RP}},trackingParams:$R+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&cnr="+eV+"&ratebypass=yes&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&c=WEB&txp="+AL+"&n="+F+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Pl,width:640,height:360,lastModified:Re,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:AL,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Y8+"&mn="+
CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&cnr="+eV+"&ratebypass=yes&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&c=WEB&txp="+AL+"&n="+F+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+fK+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Pl,width:1280,
height:720,lastModified:Re,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:AL,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+Y8+"&mn="+CK+"&ms="+
CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+P9+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:W9,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:P9,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:W9,approxDurationMs:AL},{itag:248,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+Y8+"&mn="+CK+"&ms="+CK+"&mv="+
bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fwebm&ns="+gf+"&gir="+OR+"&clen="+P9+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:W9,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:P9,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:W9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:399,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+P9+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:W9,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:P9,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:W9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:136,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+P9+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:W9,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:P9,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Pl,approxDurationMs:AL},{itag:247,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+Y8+"&mn="+
CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fwebm&ns="+gf+"&gir="+OR+"&clen="+P9+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:W9,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:P9,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Pl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:398,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+P9+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:W9,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:P9,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Pl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:135,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Pl,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Pl,approxDurationMs:AL},{itag:244,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+Y8+"&mn="+
CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fwebm&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+fK+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:Pl,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Pl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:397,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Pl,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Pl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:134,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Pl,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Pl,highReplication:!0,approxDurationMs:AL},{itag:243,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fwebm&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:Pl,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Pl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:396,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Pl,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Pl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:133,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Pl,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Pl,approxDurationMs:AL},{itag:242,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+Y8+"&mn="+
CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fwebm&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:Pl,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Pl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:395,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Pl,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Pl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:160,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Pl,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:JL,approxDurationMs:AL},{itag:278,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+Y8+"&mn="+
CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fwebm&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:Pl,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:JL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:394,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&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="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=video%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:JL,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:JL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:AL},{itag:140,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=audio%2Fmp4&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Pl,
initRange:{start:"0",end:"631"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Pl,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:AL,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+
eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=audio%2Fwebm&ns="+gf+"&gir="+OR+"&clen="+AL+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'audio/webm; codecs="opus"',bitrate:JL,initRange:{start:"0",end:"265"},indexRange:{start:p6,
end:VF},lastModified:Re,contentLength:AL,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:JL,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:AL,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=audio%2Fwebm&ns="+
gf+"&gir="+OR+"&clen="+AL+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'audio/webm; codecs="opus"',bitrate:JL,initRange:{start:"0",end:"265"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:AL,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:JL,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:AL,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+QF+".googlevideo.com/videoplayback?expire="+rT+"&ei="+G+"&ip="+SV+"&id=o-AF"+mH+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Y8+"&mn="+CK+"&ms="+CK+"&mv="+bA+"&mvi="+le+"&pl="+eV+"&initcwndbps="+AL+"&siu="+le+"&spc="+aC+"&vprv="+le+"&svpuc="+le+"&mime=audio%2Fwebm&ns="+gf+"&gir="+OR+"&clen="+KK+"&dur="+KK+"&lmt="+Re+"&mt="+rT+"&fvip=3&keepalive="+OR+"&c=WEB&txp="+
AL+"&n="+zH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'audio/webm; codecs="opus"',bitrate:Pl,initRange:{start:"0",end:"265"},indexRange:{start:p6,end:VF},lastModified:Re,contentLength:KK,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Pl,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:AL,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="+P9+"&docid="+T+"&ei="+G+"&feature="+X+"&fexp="+hl+"&ns="+sS+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+bA+"&el="+i9+"&len="+VF+"&of="+tz+
"&uga="+eV+"&vm="+YR},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+P9+"&docid="+T+"&ei="+G+"&feature="+X+"&fexp="+hl+"&ns="+sS+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+bA+"&el="+i9+"&len="+VF+"&of="+tz+"&uga="+eV+"&vm="+YR},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+P9+"&docid="+T+"&ei="+G+"&feature="+X+"&fexp="+hl+"&ns="+sS+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
bA+"&el="+i9+"&len="+VF+"&of="+tz+"&uga="+eV+"&vm="+YR},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+G+"&m="+C7+"&oid="+tz+"&plid="+F+"&pltype="+Hv+"&ptchn="+tz+"&ptk="+L+"&video_id="+T},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+P9+"&docid="+T+"&ei="+G+"&event="+Ui+"&feature="+X+"&fexp="+hl+"&ns="+sS+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+bA},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+T+"&ei="+G+"&feature="+
X+"&len="+VF+"&ns="+sS+"&plid="+F+"&ver="+le,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+T+"&caps="+OR+"&opi="+P9+"&xoaf="+le+"&hl="+sS+"&ip="+SV+"&ipbits="+le+"&expire="+rT+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+SV+"&key="+OR+"&lang="+Bv,name:{simpleText:vM},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+T+"&caps="+OR+"&opi="+P9+"&xoaf="+le+"&hl="+sS+"&ip="+SV+"&ipbits="+le+"&expire="+rT+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+SV+"&key="+OR+"&kind="+OR+"&lang="+sS,name:{simpleText:XL},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:XL,title:Oi,lengthSeconds:"1155",keywords:[GH,XX,XL,vM],
channelId:gf,isOwnerViewing:!1,shortDescription:$q,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+pv+"G&rs="+iY,width:168,height:94},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+pv+"G&rs="+iY,width:196,height:110},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+pv+"G&rs="+d,width:246,height:138},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+pv+"G&rs="+d,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
T+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:AL,author:ch,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:AL,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+tz+"/featured_channel.jpg?v="+XX,width:40,height:40}]},trackingParams:$R+"=",navigationEndpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{url:"/channel/"+gf,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:gf}},channelName:ch,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:XX}]},subscribed:!1,enabled:!0,type:"FREE",channelId:gf,showPreferences:!1,subscribedButtonText:{runs:[{text:vM}]},unsubscribedButtonText:{runs:[{text:T8}]},trackingParams:$R+"=",unsubscribeButtonText:{runs:[{text:kR}]},serviceEndpoints:[{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[gf],params:XX}},{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:xb,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:$R+"=",dialogMessages:[{runs:[{text:XX},{text:Jm},{text:zH}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:kR}]},serviceEndpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[gf],params:XX}},accessibility:{label:Hv},trackingParams:$R+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Aw}]},accessibility:{label:pM},trackingParams:$R+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:T8}},unsubscribeAccessibility:{accessibilityData:{label:GH}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:KK},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[gf],params:XX}},unsubscribeCommand:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[gf],params:XX}},addToWatchLaterCommand:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:XL,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:XL}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+T+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+pv+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
T+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+XL,width:1280,height:720},title:{simpleText:pM},description:{simpleText:Jm},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+pM,externalChannelId:gf,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:AL,category:"Travel & Events",publishDate:Hl,ownerChannelName:ch,uploadDate:Hl}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Hv},trackingParams:$R+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:xb,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:$R+"="}}],headerText:{simpleText:i9},icon:{infoCardIconRenderer:{trackingParams:$R+"="}},closeButton:{infoCardIconRenderer:{trackingParams:$R+"="}},trackingParams:$R+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:$R+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+XL+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:ox,interpreterSafeUrl:(Ca.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+oE+".js",Ca),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:ch},{text:Hv,bold:!0}]},endpoint:{clickTrackingParams:xb,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:$R+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:T8}]},actionButton:{buttonRenderer:{text:{runs:[{text:kR}]},navigationEndpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+T,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
T,target:"TARGET_NEW_WINDOW"}},trackingParams:$R+"="}},trackingParams:$R+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Am+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Am+"=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:AL,endMs:AL,title:{accessibility:{accessibilityData:{label:vM}},simpleText:XX},metadata:{simpleText:pM},callToAction:{simpleText:$q},dismiss:{simpleText:T8},endpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{url:"/channel/"+gf,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:gf}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Hv}]},subscribed:!1,enabled:!0,type:"FREE",channelId:gf,showPreferences:!1,
subscribedButtonText:{runs:[{text:XX}]},unsubscribedButtonText:{runs:[{text:XX}]},trackingParams:$R+"=",unsubscribeButtonText:{runs:[{text:i9}]},serviceEndpoints:[{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[gf],params:XX}},{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:xb,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:$R+
"=",dialogMessages:[{runs:[{text:Oi},{text:Aw},{text:T8}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:i9}]},serviceEndpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[gf],params:XX}},accessibility:{label:Ui},trackingParams:$R+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:pN}]},
accessibility:{label:XX},trackingParams:$R+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:zH}},unsubscribeAccessibility:{accessibilityData:{label:Jm}}}},trackingParams:$R+"=",isSubscribe:!0,id:DE}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+pv+"G&rs="+d,width:168,height:94},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+pv+"G&rs="+iY,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+pv+"G&rs="+d,width:246,height:138},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+pv+"G&rs="+d,width:336,height:188},{url:"https://i.ytimg.com/vi/"+T+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:AL,endMs:AL,title:{accessibility:{accessibilityData:{label:Hv}},simpleText:kR},metadata:{simpleText:XL},endpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
XL,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:XL,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+QF+".googlevideo.com/videoplayback?source=youtube&oeis="+le+"&c=WEB&oad="+VF+"&ovd="+VF+"&oaad="+K6+"&oavd="+K6+"&ocs="+p6+"&oewis="+le+"&oputc="+le+"&ofpcc="+le+"&siu="+le+"&msp="+le+"&odepv="+le+
"&id=o-AF"+mH+"&ip="+SV+"&initcwndbps="+AL+"&mt="+rT+"&oweuc="+hl}}}}},trackingParams:$R+"=",id:DE,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:XX}},simpleText:pM},style:"DEFAULT"}}]}}],startMs:AL,trackingParams:$R+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:le,offsetEndMilliseconds:K6},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+P9+";dc_trk_cid="+P9+";dc_dbm_token="+S+";ord="+rT+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+le+";dc_rui="+le+";dc_exteid="+DE+";dc_av="+p6+";dc_sk="+le+";dc_ctype="+eV+";dc_ref=http://www.youtube.com/video/"+XL+";dc_pubid="+le+";dc_btype=23?gclid="+RC+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+le+"&ns="+le+"&event="+le+"&device="+le+"&content_v="+T+"&el="+i9+"&ei="+G+"&devicever="+w+"&bti="+AL+"&format="+P2+"&break_type="+le+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+le+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+SV+"&slot_pos="+le+"&slot_len="+le+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Y8+"&ad_len="+K6+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
XL+"&aqi="+G+"&ad_rmp="+le+"&sli="+le}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+
";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+P2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+AL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&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"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&ctype="+p6+"&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"+
p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_engaged_view&ctype="+p6+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+P2+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
P9+";dc_trk_cid="+P9+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+le+";ord="+P9+";dc_rui="+le+";dc_exteid="+u9+";dc_av="+le+";dc_sk="+le+";dc_ctype="+eV+";dc_pubid="+le+";dc_btype=3?gclid="+RC+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+L_+"&ad_cpn=[AD_CPN]&id="+vM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vM+"&dc_pubid="+le+"&dc_exteid="+DE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+L_+"&ad_cpn=[AD_CPN]&id="+vM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+le},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vM+"&avm="+le+"&dc_pubid="+le+"&dc_exteid="+
DE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&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="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
U+"&sig="+L_+"&ad_cpn=[AD_CPN]&id="+vM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+le},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vM+"&dc_pubid="+le+"&dc_exteid="+DE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+P2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+P2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:xb,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+
p6+"&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/"+T+"/mqdefault.jpg",width:320,height:180}]},trackingParams:$R+"="},trackingParams:$R+
"=",templatedCountdown:{templatedAdText:{text:GH,isTemplated:!0,trackingParams:$R+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:zH,isTemplated:!1,trackingParams:$R+"="},trackingParams:$R+"="}},trackingParams:$R+"=",skipOffsetMilliseconds:5E3}},trackingParams:$R+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Oi},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$R+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:i9,isTemplated:!1,trackingParams:$R+"="},trackingParams:$R+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:XX,isTemplated:!0,trackingParams:$R+"="}},trackingParams:$R+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:xb,openPopupAction:{popup:{aboutThisAdRenderer:{url:(po.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+sS+"&origin=www.youtube.com&ata_theme="+Oi,po),trackingParams:$R+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:$R+"="}},hoverText:{runs:[{text:Ui}]},trackingParams:$R+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qo+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:$R+"="},headline:{text:Oi,isTemplated:!1,trackingParams:$R+"="},description:{text:T8,
trackingParams:$R+"="},actionButton:{buttonRenderer:{text:{simpleText:Ui},navigationEndpoint:{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+P9+";dc_trk_cid="+P9+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+le+";ord="+P9+";dc_rui="+le+";dc_exteid="+DE+";dc_av="+le+";dc_sk="+le+";dc_ctype="+eV+";dc_pubid="+le+";dc_btype=3?gclid="+RC+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$R+"="}},startMs:le,trackingParams:$R+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Hv},elementId:$q}},elementId:GH,trackingParams:$R+"=",legacyInfoCardVastExtension:zH,sodarExtensionData:{siub:ch,bgub:XX,scs:XX,bgp:XX},externalVideoId:XL,adLayoutLoggingData:{serializedAdServingDataEntry:GH},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qo+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:$R+"="},
headline:{text:XX,isTemplated:!1,trackingParams:$R+"="},description:{text:kR,isTemplated:!1,trackingParams:$R+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:vM},navigationEndpoint:{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+P9+";dc_trk_cid="+P9+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+le+";ord="+P9+";dc_rui="+le+";dc_exteid="+
DE+";dc_av="+le+";dc_sk="+le+";dc_ctype="+eV+";dc_pubid="+le+";dc_btype=3?gclid="+RC+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+
le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$R+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:$R+"="}},navigationEndpoint:{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+P9+";dc_trk_cid="+
P9+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+le+";ord="+P9+";dc_rui="+le+";dc_exteid="+DE+";dc_av="+le+";dc_sk="+le+";dc_ctype="+eV+";dc_pubid="+le+";dc_btype=3?gclid="+RC+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+
h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$R+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:$R+"="},abandonCommands:{commands:[{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&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="+le+";dc_exteid="+DE+";met="+le+";ecn"+
le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:xb,commandExecutorCommand:{commands:[{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Ui,isTemplated:!1,trackingParams:$R+
"="},trackingParams:$R+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:$q},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+AL+";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="+P9+";dc_trk_cid="+P9+";ord="+rT+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+le+";dc_rui="+le+";dc_exteid="+DE+";dc_av="+p6+";dc_sk="+le+";dc_ctype="+eV+";dc_ref=http://www.youtube.com/video/"+XL+";dc_pubid="+le+";dc_btype=23?gclid="+RC+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+le+"&ns="+le+"&event="+le+"&device="+le+"&content_v="+T+"&el="+i9+"&ei="+G+"&devicever="+w+"&bti="+AL+"&format="+P2+"&break_type="+le+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+le+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+SV+"&slot_pos="+le+"&slot_len="+le+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Y8+"&ad_len="+K6+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+XL+"&aqi="+G+"&ad_rmp="+le+"&sli="+le}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+P2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+
V+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+AL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&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"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&ctype="+p6+"&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"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_engaged_view&ctype="+p6+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+P2+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+L_+"&ad_cpn=[AD_CPN]&id="+
vM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vM+"&dc_pubid="+le+"&dc_exteid="+DE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+
"&sig="+L_+"&ad_cpn=[AD_CPN]&id="+vM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+le},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vM+"&avm="+le+"&dc_pubid="+le+"&dc_exteid="+DE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&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="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+L_+"&ad_cpn=[AD_CPN]&id="+vM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+le},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vM+"&dc_pubid="+le+"&dc_exteid="+DE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+P2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+P2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+
p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&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/"+T+"/mqdefault.jpg",width:320,height:180}]},trackingParams:$R+"="},trackingParams:$R+"=",templatedCountdown:{templatedAdText:{text:GH,isTemplated:!0,trackingParams:$R+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Oi,isTemplated:!1,trackingParams:$R+"="},trackingParams:$R+"="}},
trackingParams:$R+"=",skipOffsetMilliseconds:5E3}},trackingParams:$R+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:pM},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$R+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:zH,isTemplated:!1,trackingParams:$R+"="},trackingParams:$R+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:GH,
isTemplated:!0,trackingParams:$R+"="}},trackingParams:$R+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:xb,openPopupAction:{popup:{aboutThisAdRenderer:{url:(u5.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+sS+"&origin=www.youtube.com&ata_theme="+Oi,u5),trackingParams:$R+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:$R+"="}},hoverText:{runs:[{text:Jm}]},trackingParams:$R+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+e9+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:$R+"="},headline:{text:GH,isTemplated:!1,trackingParams:$R+"="},description:{text:zH,trackingParams:$R+"="},actionButton:{buttonRenderer:{text:{simpleText:Ui},navigationEndpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$R+"="}},startMs:le,trackingParams:$R+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:T8},elementId:Oi}},elementId:Hv,trackingParams:$R+"=",legacyInfoCardVastExtension:$q,sodarExtensionData:{siub:i9,bgub:XX,scs:Hv,bgp:pM},externalVideoId:XL,adLayoutLoggingData:{serializedAdServingDataEntry:Jm},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+e9+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:$R+"="},headline:{text:$q,
isTemplated:!1,trackingParams:$R+"="},description:{text:pM,isTemplated:!1,trackingParams:$R+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Ui},navigationEndpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$R+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:$R+"="}},navigationEndpoint:{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+
le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$R+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:$R+"="},abandonCommands:{commands:[{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&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="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+eV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:xb,commandExecutorCommand:{commands:[{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Hv,isTemplated:!1,trackingParams:$R+"="},trackingParams:$R+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:i9},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+le+";dc_exteid="+DE+";met="+le+";ecn"+le+"="+le+";etm1="+le+";eid1="+
AL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Ui}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ui}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:K6,offsetEndMilliseconds:P2},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+eV+"&token=ALHj"+ZD+"&index="+le+"&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="+w+"&m_pos_ms="+K6}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Jm}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:P2,offsetEndMilliseconds:P2},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+p6+"&token=ALHj"+ZD+"&index="+le+"&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="+
w+"&m_pos_ms="+P2}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Hv}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:P2,offsetEndMilliseconds:P2},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+p6+"&token=ALHj"+ZD+"&index="+le+"&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="+
w+"&m_pos_ms="+P2}},adSlotLoggingData:{serializedSlotAdServingDataEntry:kR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:P2,offsetEndMilliseconds:P2},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+p6+"&token=ALHj"+ZD+"&index="+le+"&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="+
w+"&m_pos_ms="+P2}},adSlotLoggingData:{serializedSlotAdServingDataEntry:XL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:P2,offsetEndMilliseconds:eV},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+p6+"&token=ALHj"+ZD+"&index="+le+"&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="+
w+"&m_pos_ms="+P2}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ui}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:eV,offsetEndMilliseconds:eV},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+eV+"&token=ALHj"+ZD+"&index="+le+"&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="+
w+"&m_pos_ms="+eV}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Oi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:kR,isTemplated:!1,trackingParams:$R+"="},description:{text:ch,isTemplated:!1,trackingParams:$R+"="},actionButton:{buttonRenderer:{text:{simpleText:pN},navigationEndpoint:{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
P9+";dc_trk_cid="+P9+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+le+";ord="+P9+";dc_rui="+le+";dc_exteid="+DE+";dc_av="+le+";dc_sk="+le+";dc_ctype="+eV+";dc_pubid="+le+";dc_btype=3?gclid="+RC+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$R+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qo+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:$R+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+cv+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:$R+"="},navigationEndpoint:{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+P9+";dc_trk_cid="+P9+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+le+";ord="+P9+
";dc_rui="+le+";dc_exteid="+DE+";dc_av="+le+";dc_sk="+le+";dc_ctype="+eV+";dc_pubid="+le+";dc_btype=3?gclid="+RC+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$R+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xb,openPopupAction:{popup:{aboutThisAdRenderer:{url:(HKm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+sS+"&origin=www.youtube.com&ata_theme="+Oi,HKm),trackingParams:$R+"="}},popupType:"DIALOG"}},trackingParams:$R+"="}},hoverText:{runs:[{text:XX}]},trackingParams:$R+"="}},adVideoId:XL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:XL},associatedCompositePlayerBytesLayoutId:zH}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:T8}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Ui,isTemplated:!1,trackingParams:$R+"="},description:{text:Aw,isTemplated:!1,trackingParams:$R+"="},actionButton:{buttonRenderer:{text:{simpleText:T8},navigationEndpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+
h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$R+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+e9+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:$R+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+OI+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:$R+"="},navigationEndpoint:{clickTrackingParams:xb,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+
le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$R+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xb,openPopupAction:{popup:{aboutThisAdRenderer:{url:(AE.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+sS+"&origin=www.youtube.com&ata_theme="+Oi,AE),trackingParams:$R+"="}},popupType:"DIALOG"}},trackingParams:$R+"="}},
hoverText:{runs:[{text:XL}]},trackingParams:$R+"="}},adVideoId:XL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+XL+"&cid="+V+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:zH},associatedCompositePlayerBytesLayoutId:zH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:zH,
isTemplated:!1,trackingParams:$R+"="},description:{text:kR,isTemplated:!1,trackingParams:$R+"="},actionButton:{buttonRenderer:{text:{simpleText:kR},navigationEndpoint:{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+P9+";dc_trk_cid="+P9+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+le+";ord="+P9+";dc_rui="+le+";dc_exteid="+DE+";dc_av="+le+";dc_sk="+le+";dc_ctype="+
eV+";dc_pubid="+le+";dc_btype=3?gclid="+RC+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+
d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:$R+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qo+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:$R+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+cv+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:$R+
"="},navigationEndpoint:{clickTrackingParams:xb,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+P9+";dc_trk_cid="+P9+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+le+";ord="+P9+";dc_rui="+le+";dc_exteid="+DE+";dc_av="+le+";dc_sk="+le+";dc_ctype="+eV+";dc_pubid="+le+";dc_btype=3?gclid="+RC+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+h+"AxAA&ase=2&num="+le+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+d+"&adurl="+tI+"&label=video_click_to_advertiser_site&ctype="+p6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:$R+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xb,openPopupAction:{popup:{aboutThisAdRenderer:{url:(fL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+sS+"&origin=www.youtube.com&ata_theme="+Oi,fL),trackingParams:$R+"="}},popupType:"DIALOG"}},trackingParams:$R+
"="}},hoverText:{runs:[{text:Ui}]},trackingParams:$R+"="}},adVideoId:XL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+h+"AxAA&sigh="+T+"&cid="+V+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:vM},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:zH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Aw}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:oE,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:oE,command:{innertubeCommand:{clickTrackingParams:xb,ypcGetOfflineUpsellEndpoint:{params:RP}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:$R+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:rT,nanos:rC}}}},cxe=JSON.stringify(d1),mA=performance.now()-a;return{objectRepresentation:d1,jsonRepresentation:cxe,generationTime:mA}};
p7I=function(a,W){if(a===W)return!0;if(!a||!W||typeof a!==typeof W)return!1;if(a instanceof Array&&W instanceof Array){if(a.length!==W.length)return!1;for(var w=0;w<a.length;w++)if(!p7I(a[w],W[w]))return!1;return!0}if(typeof a==="object"&&typeof W==="object"&&a&&W){for(w in a)if(!(w in W&&p7I(a[w],W[w])))return!1;for(var Z in W)if(!(Z in a))return!1;return!0}return!1};
_.yb=function(){if(!HJ){HJ=new BM(new rbH);var a=_.yv("client_streamz_web_flush_count",-1);a!==-1&&(HJ.invocationLimit=a)}return HJ};
Ed=function(a,W,w,Z){if(a===W)return!0;if(Array.isArray(a)&&Array.isArray(W)){if(a.length!==W.length)return!1;for(var N=0;N<a.length;N++)if(!Ed(a[N],W[N],w,Z))return!1;return!0}if(a instanceof Set||W instanceof Set){if(a instanceof Set&&W instanceof Set){if(a.size!==W.size)return!1;Z=_.l(a.values());for(N=Z.next();!N.done;N=Z.next())if(!W.has(N.value))return!1;return!0}return!1}if(a instanceof Function){if(Z)return!0;a.name===""&&_.eJ(Error("Hf"),"ERROR");return!1}if(a instanceof Date&&W instanceof
Date)return a.getTime()===W.getTime();if(a instanceof Object&&W instanceof Object){if(AbU(a)&&AbU(W))try{return a.equals(W)}catch(I){_.eJ(Error("If`"+I),"ERROR")}N=Object.getOwnPropertyNames(a).filter(function(I){return w?a[I]!==void 0:!0});
var B=Object.getOwnPropertyNames(W).filter(function(I){return w?W[I]!==void 0:!0});
if(N.length!==B.length)return!1;N=_.l(N);for(B=N.next();!B.done;B=N.next())if(B=B.value,!Ed(a[B],W[B],w,Z))return!1;return!0}return!1};
AbU=function(a){a=Object.getPrototypeOf(a).equals;return a instanceof Function&&a.length===1};
_.cbv=function(){return _.P(function(a){if(a.nextAddress==1)return hKE!==2?a.jumpTo(2):_.g(a,iNe(),3);a.nextAddress!=2&&(hKE=a.yieldResult);return a.return(hKE)})};
_.jcm=function(){return _.P(function(a){if(a.nextAddress==1)return _.r("ab_pl_man")?eKe!==2?a.jumpTo(2):_.g(a,nHe(),3):a.return(1);a.nextAddress!=2&&(eKe=a.yieldResult);return a.return(eKe)})};
F48=function(){return _.P(function(a){if(a.nextAddress==1)return _.r("ab_fk_sk_cl")?L4v!==2?a.jumpTo(2):_.g(a,Jbe(),3):a.return(1);a.nextAddress!=2&&(L4v=a.yieldResult);return a.return(L4v)})};
_.qA7=function(){return _.P(function(a){if(a.nextAddress==1)return _.r("ab_det_apb_b")?M77!==2?a.jumpTo(2):_.g(a,RKS(),3):a.return(1);a.nextAddress!=2&&(M77=a.yieldResult);return a.return(M77)})};
bN9=function(){var a;return _.P(function(W){if(W.nextAddress==1)return _.g(W,Promise.all([_.cbv(),_.qA7(),_.jcm(),F48()]),2);if(W.nextAddress!=3)return Qc8()?W.return(!0):_.g(W,_.xRU(),3);a=W.yieldResult;return W.return(a===0)})};
Qc8=function(){var a=!1,W=function(w,Z){scF.increment(Z,w);w===0&&(a=!0)};
W(_.uiF(),"j.s_");W(hKE,"f.i_");W(M77,"a.b_");W(eKe,"p.m_");W(L4v,"i.f_");Ci8===2&&(Ci8=_.GRC(_.T4I(DRv)));W(Ci8,"e.h_");_.r("ks_det_gpbl")||W(_.fhv(),"p.i_");_.r("ks_get_o_pp")||W(_.dRF(),"g.o_");_.r("ab_deg_unex_thr")||W(_.mRE(),"a.o_");W(V7U,"s.t_");_.r("ab_det_sc_inj_enf")&&W(_.zK8(),"s.i_");W(HNv,"d.p_");W(_.ybS(_.a1),"o.p_");W(_.EHx()===0?0:_.asv(),"o.a_");return _.r("debug_sk_em_precheck")?!0:a};
wwU=function(){var a=[].concat(_.K8(Wz8));try{var W=zC();a.push({jsonRepresentation:W.jsonRepresentation,objectRepresentation:W.objectRepresentation})}catch(w){a=[].concat(_.K8(Wz8))}return a};
Z0S=function(){var a=["adPlacements","adSlots"];try{return a.filter(function(){return!0}).length!==a.length?0:1}catch(W){return 0}};
_.dRF=function(){if(Z0S()===0)return 0;var a=zC(),W=a.objectRepresentation,w=(0,_.T5.unsafeClone)(W),Z=[];if(W&&typeof W==="object")for(var N in W)Z.push(N);else return 4;a=a.objectRepresentation.adPlacements;if(!(a&&a.length>0))return 4;try{if(!p7I(Z,Object.getOwnPropertyNames(W)))return 0}catch(B){return 0}return p7I(w,W)?1:0};
_.ybS=function(a){var W=Object.getOwnPropertyNames(Object.prototype);a=_.l(a);for(var w=a.next();!w.done;w=a.next()){w=_.YAD(w.value);for(var Z=_.l(W),N=Z.next();!N.done;N=Z.next())if(w===N.value)return 0}return 1};
Nnm=function(a){var W=_.YAD(a[1]);if(a[0]===null)return W;a=a[0];for(var w={},Z=0;Z<a.length;Z++){var N=_.YAD(a[Z]);if(Z===0)w[N]=W;else{var B={};B[N]=w;w=B}}return w};
_.EHx=function(){for(var a=_.Wu,W=0;W<a.length;W++){var w=Nnm(a[W]),Z=[];Z.push(w);if(Z.length===0)return 0}return 1};
_.asv=function(){for(var a=_.Wu,W={},w=0;w<a.length;W={nKd:void 0},w++){var Z=[Nnm(a[w])];W.nKd=[];Z.forEach(function(N){return function(B){N.nKd[N.nKd.length]=B}}(W));
if(W.nKd.length===0)return 0}return 1};
_.uiF=function(){for(var a=_.l(wwU()),W=a.next();!W.done;W=a.next()){var w=W.value;W=w.jsonRepresentation;w=w.objectRepresentation;try{var Z=JSON.parse(W);if(!Ed(Z,w,!1,!1))return 0}catch(N){return 0}}return 1};
_.zK8=function(){try{var a=_.a0("ab_det_sc_inj_val");a.length===1&&a[0]===""&&(a=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var W=document.querySelectorAll("script"),w=_.l(W),Z=w.next();!Z.done;Z=w.next())for(var N=Z.value,B=_.l(a),I=B.next();!I.done;I=B.next()){var X=I.value;W=void 0;if((W=N.textContent)==null?0:W.includes(X))return 0}}catch(v){return 4}return 1};
_.xRU=function(){var a,W,w,Z,N,B,I;return _.P(function(X){switch(X.nextAddress){case 1:_.tq(X,2),a=_.l(Wz8),W=a.next();case 4:if(W.done)return X.return(1);Z=w=W.value;N=Z.jsonRepresentation;B=Z.objectRepresentation;return _.g(X,(new Response(N,{status:200})).json(),7);case 7:I=X.yieldResult;if(!Ed(I,B,!1,!1))return X.return(0);W=a.next();X.jumpTo(4);break;case 2:return _.Pb(X),X.return(4)}})};
_.mRE=function(){try{btoa("abc")}catch(a){return 0}return 1};
iNe=function(){var a,W,w,Z,N,B,I,X,v,U,O;return _.P(function(S){switch(S.nextAddress){case 1:_.tq(S,2),a=_.l(wwU()),W=a.next();case 4:if(W.done)return S.return(1);Z=w=W.value;N=Z.jsonRepresentation;B=Z.objectRepresentation;I=btoa(N);X="data:application/json;base64,"+I;v=new Request(X);Object.defineProperty(v,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(v,"method",{get:function(){return"POST"}});
Object.defineProperty(v,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(v,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(v,"body",{get:function(){return new ReadableStream}});
return _.g(S,fetch(v),7);case 7:return U=S.yieldResult,_.g(S,U.json(),8);case 8:O=S.yieldResult;if(!Ed(O,B,!1,!1))return S.return(0);W=a.next();S.jumpTo(4);break;case 2:return _.Pb(S),S.return(4)}})};
_.GRC=function(a){var W=_.l(a);a=W.next().value;W=W.next().value;try{var w=document.createElement("div");document.body.appendChild(w);var Z=getComputedStyle(w).display;document.body.removeChild(w);if(Z==="none")return 4;var N=getComputedStyle(W).display==="none"?0:1;document.body.removeChild(a);return N}catch(B){return 4}};
Jbe=function(){var a,W,w;return _.P(function(Z){a=new _.wi;W=document.createElement("button");W.classList.add("ytp-ad-skip-button");W.style.opacity="0";W.style.height="0px";W.style.width="0px";W.style.padding="0px";W.style.border="none";w=function(){W.parentElement&&W.parentElement.removeChild(W)};
W.onclick=function(){a.resolve(0);w()};
document.body.appendChild(W);setTimeout(function(){w();a.resolve(1)},50);
return Z.return(a.promise)})};
nHe=function(){var a,W,w,Z,N,B,I;return _.P(function(X){a=new _.wi;W=document.createElement("ytd-player");try{document.body.prepend(W)}catch(v){return X.return(4)}w=function(){W.parentElement&&W.parentElement.removeChild(W)};
W.getElementsByTagName("div").length>0?Z=W.getElementsByTagName("div")[0]:(Z=document.createElement("div"),W.appendChild(Z));N=document.createElement("div");Z.appendChild(N);B=document.createElement("video");I=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"});B.src=_.oJ(_.Yf(I));B.ontimeupdate=function(){w();a.resolve(0)};
N.appendChild(B);B.classList.add("html5-main-video");setTimeout(function(){N.classList.add("ad-interrupting")},200);
setTimeout(function(){w();a.resolve(1)},5E3);
return X.return(a.promise)})};
tDe=function(a,W){var w,Z;return _.P(function(N){switch(N.nextAddress){case 1:w=[],Z=0;case 2:if(!(Z<3)){N.jumpTo(4);break}return _.g(N,fetch(a,{cache:"no-store",method:W}).then(function(B){w.push(B.status)}).catch(function(){w.push(-1)}),3);
case 3:Z++;N.jumpTo(2);break;case 4:return N.return(w)}})};
$LC=function(a){return a.domainLookupStart===0&&a.domainLookupEnd===0&&a.connectStart===0&&a.connectEnd===0};
BnI=function(a,W,w){w=w===void 0?"GET":w;var Z,N,B,I,X,v,U,O,S,T;return _.P(function(p){if(p.nextAddress==1)return _.g(p,Promise.all([tDe(a,w),tDe(W,w)]),2);Z=p.yieldResult;N=_.l(Z);B=N.next().value;I=N.next().value;X=B;v=I;if(Math.min.apply(Math,_.K8(v))!==Math.max.apply(Math,_.K8(v))||Math.min.apply(Math,_.K8(X))!==Math.max.apply(Math,_.K8(X)))return p.return(2);if(Math.min.apply(Math,_.K8(v))===Math.min.apply(Math,_.K8(X)))return p.return(1);O=(U=performance.getEntriesByName(a))==null?void 0:U[0];
T=(S=performance.getEntriesByName(W))==null?void 0:S[0];return O&&T?$LC(T)?p.return(1):$LC(O)?p.return(0):p.return(1):p.return(2)})};
RKS=function(){var a;return _.P(function(W){var w=[];var Z;var N,B,I;(N=Z=(N=zC().objectRepresentation.streamingData)==null?void 0:(B=N.formats)==null?void 0:(I=B[0])==null?void 0:I.url)&&N&&!Z.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(N=N.replace("initcwndbps","ctier=L&initcwndbps"),Z={testUrl:N,baseUrl:Z,method:"GET"}):Z=void 0;Z&&w.push(Z);_.r("ab_net_tp_e")&&w.push({testUrl:_.NH.location.origin+"/ad_companion",baseUrl:_.NH.location.origin+"/generate_204",method:"OPTIONS"});if(_.r("ad_net_pb_ab")){var X;
b:{Z=/api\/stats\/ads/;var v,U,O,S;N=(X=zC().objectRepresentation.adPlacements)==null?void 0:(v=X[0])==null?void 0:(U=v.adPlacementRenderer)==null?void 0:(O=U.renderer)==null?void 0:(S=O.linearAdSequenceRenderer)==null?void 0:S.linearAds;if(N!=null&&N.length&&(X=_.A(N[0],ls7))&&(X=X.pings,X!=null&&X.impressionPings))for(v=[].concat(_.K8(X.impressionPings)),X.progressPings&&(v=[].concat(_.K8(v),_.K8(X.progressPings))),X=_.l(v),v=X.next();!v.done;v=X.next())if(v=v.value,v.baseUrl&&Z.test(v.baseUrl)){X=
v.baseUrl.replace("https://www.youtube.com","");break b}X=void 0}X&&w.push({testUrl:_.NH.location.origin+X,baseUrl:_.NH.location.origin+"/feed/download",method:"GET"})}if(_.r("ad_net_pb_pbp")){var T;b:{X=/api\/stats\/qoe/;if(v=zC().objectRepresentation.playbackTracking){U=[];U.push(v==null?void 0:(T=v.videostatsPlaybackUrl)==null?void 0:T.baseUrl);var p;U.push(v==null?void 0:(p=v.videostatsDelayplayUrl)==null?void 0:p.baseUrl);var h;U.push(v==null?void 0:(h=v.videostatsWatchtimeUrl)==null?void 0:
h.baseUrl);var L;U.push(v==null?void 0:(L=v.ptrackingUrl)==null?void 0:L.baseUrl);var F;U.push(v==null?void 0:(F=v.qoeUrl)==null?void 0:F.baseUrl);var x;U.push(v==null?void 0:(x=v.atrUrl)==null?void 0:x.baseUrl);T=_.l(U);for(p=T.next();!p.done;p=T.next())if((p=p.value)&&X.test(p)){T=p.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}T=void 0}T&&w.push({testUrl:_.NH.location.origin+T,baseUrl:_.NH.location.origin+"/feed/download",method:"GET"})}w=w.length!==0?w[Math.floor(Math.random()*
w.length)]:void 0;return(a=w)?W.return(BnI(a.testUrl,a.baseUrl,a.method)):W.return(4)})};
_.fhv=function(){if(_.NH.nZK===void 0||_.NH.nZK===null||typeof _.NH.nZK!=="function")return 2;try{return _.NH.nZK()===!0?0:1}catch(a){return 0}};
IsE=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.l9(a,"unknown result type")}};
_.PN9=function(a,W){var w=Number(_.LF("CATSTAT",0));if(W.nau===void 0)return w;W=W.nau;a=IsE(a);return w&~(3<<W)|a<<W};
Xw9=function(a){var W,w;if((a=(W=a.auxiliaryUi)==null?void 0:(w=W.messageRenderers)==null?void 0:w.bkaEnforcementMessageViewModel)&&a.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return a};
gZE=function(){for(var a=_.l(Object.values(_.vZe)),W=a.next();!W.done;W=a.next())W=W.value,W.isAsync&&W.nau&&_.jm("CATSTAT",_.PN9(2,W))};
_.$o=function(a,W){a=_.Z3("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",a);(W===void 0?0:W)?_.oZx(a,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Nj(_.t7(),a,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
ULI=function(){if(!kue){if(Polymer.Base){var a=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{a.apply(this,arguments)}catch(S){_.Ff(S)}};
var W=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{W.apply(this,arguments)}catch(S){_.Ff(S)}};
var w=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{w.apply(this,arguments)}catch(S){_.Ff(S)}};
var Z=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{Z.apply(this,arguments)}catch(S){_.Ff(S)}};
var N=Polymer.Base._listen,B=new WeakMap;Polymer.Base._listen=function(S,T,p){var h=function(){try{p.apply(this,arguments)}catch(L){_.Ff(L)}};
B.set(p,h);N.call(this,S,T,h)};
var I=Polymer.Base._unlisten;Polymer.Base._unlisten=function(S,T,p){I.call(this,S,T,B.get(p))}}if(Polymer.Async){var X=Polymer.Async,v=X._atEndOfMicrotask;
X._atEndOfMicrotask=function(){try{v.apply(X,arguments)}catch(S){_.Ff(S)}}}if(Polymer.RenderStatus){var U=Polymer.RenderStatus,O=U.afterNextRender;
U.afterNextRender=function(S,T,p){O.call(U,S,function(){try{T.apply(this,arguments)}catch(h){_.Ff(h)}},p)}}kue=!0}};
_.Bu=function(a){var W=a?_.tw(a):"";if(W){if(W.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(W.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(W.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(W.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(W.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(W.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";W=W.toLowerCase();if(W==="/")return"home";if(W===
"/channel_memberships")return"channel-memberships-shopfront";if(W.indexOf("/feed/trending")===0)return"trending";if(W.indexOf("/feed/explore")===0)return"explore";if(W.indexOf("/live")===0)return"live";if(W.indexOf("/results")===0)return"search";if(W.indexOf("/sports")===0)return"sports";if(W.indexOf("/fashion")===0||W.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(W))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(W))return"learning";
if(W.indexOf("/channel/")===0||W.indexOf("/user/")===0||W.indexOf("/gaming")===0||W.indexOf("/post/")===0)return"channel";if(O0m(a))return"show";if(W==="/playlist"||W.indexOf("/playlist/")===0||W==="/view_play_list"||W.indexOf("/view_play_list/")===0||W.indexOf("/show/")===0)return"playlist";if(W==="/feed/history"||W.indexOf("/feed/history/")===0)return"history";if(W==="/new")return"labs";if(W==="/feed/subscriptions")return"subscriptions";if(W.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(W==="/history_controls")return"standalone";if(W.indexOf("/account")===0||W==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(W.indexOf("/paid_memberships")===0||W.indexOf("/refund")===0||W.indexOf("/purchases")===0||W.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(W.indexOf("/product")===0)return"yts-products";if(W.indexOf("/premium")===0||W.indexOf("/musicpremium")===0)return W.indexOf("/premium/offers")===0||W.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(W===
"/cart/checkout"||W==="/cart")return"ypc-checkout";if(W.indexOf("/feed/downloads")===0||W.indexOf("/redeem")===0||W.indexOf("/reporthistory")===0)return"browse";if(W.indexOf("/hashtag")===0)return"hashtag-landing-page";if(W.indexOf("/handle")===0)return"handle";if(W.indexOf("/source")===0)return"audio-pivot";if(W.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(W.indexOf("/playables")===0)return"playables";if(W.indexOf("/create/live/join")===0)return"open-in-app";if(W.indexOf("/shorts")===
0)return"shorts";if(W.indexOf("/feed/channels")===0)return"subscriptions-channels";(W=a?_.tw(a):"")&&W.indexOf("/watch")===0&&_.r("web_watch_enable_learning_journey")?(a=_.st(a),a=!!a.list&&a.list.indexOf("LJPP")===0):a=!1;if(a)return"learning_journey_watch"}};
_.lh=function(a){var W,w;(a=(w=_.A(a==null?void 0:a.commandMetadata,_.mm))==null?void 0:w.url)&&(W=_.Bu(a));return W};
O0m=function(a){var W=a?_.tw(a):"";if(!W)return!1;W=W.toLowerCase();return W.indexOf("/show/")===0||W.indexOf("/playlist")===0&&(a=_.st(a),a.list&&a.list.indexOf("EL")===0)?!0:!1};
XK=function(a){var W="unknown",w;var Z=((w=_.A(a==null?void 0:a.commandMetadata,_.mm))==null?void 0:w.webPageType)||"";Z?(w=Z.toLowerCase(),w.startsWith("web_page_type_")&&(w=w.slice(14))):w=Z;w&&Sqe[w.toUpperCase()]?W=Sqe[w.toUpperCase()]:_.A(a,_.I1)||_.A(a,YqF)?W="browse":_.A(a,_.Pu)?W="search":_.A(a,_.u6)&&(W="watch");W==="watch"&&_.lh(a||null)==="learning_journey_watch"&&(W="learning_journey_watch");W==="unknown"&&_.jJ(Error("Kf`"+JSON.stringify({clickTrackingParams:a==null?void 0:a.clickTrackingParams,
commandMetadata:a==null?void 0:a.commandMetadata,allEndpointKeys:Object.keys(a||[])})));return W};
_.vu=function(a){if(!_.TnH||a)_.TnH=_.lf();return _.TnH};
_.KzC=function(a){return!!_.A(a,_.u6)||!!_.A(a,_.gi)&&_.r("kevlar_enable_shorts_prefetch")};
_.pwC=function(a,W){a=_.A(a,_.u6)||_.A(a,_.gi);return"v"+a.videoId+(a.playlistId?"-pl"+a.playlistId:"")+(W?"-an1":"")+(a.params?"-pr"+a.params:"")};
ApF=function(a){var W=_.yv("web_pbj_log_warning_rate",0);W=W>0&&Math.random()<W;if(!_.A(a,_.gi))return W&&_.jJ(Error("Nf")),!1;var w;return _.r("shorts_controller_retrieve_seedless_sequence_v2")&&((w=_.A(a,_.gi))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:rp7(a)?!0:(W&&_.jJ(Error("Of")),!1)};
rp7=function(a){var W=(_.A(a,_.u6)||_.A(a,_.gi)).videoId;if(!W||!hvE.test(W))return!1;var w;return(a=(w=_.A(a.commandMetadata,_.mm))==null?void 0:w.url)&&(a.includes(W)||a.startsWith("/clip"))?!0:!1};
_.cp7=function(){var a=_.gS();return a.getFlag(192)?a.getFlag(190):!(_.r("web_watch_cinematics_disabled_by_default")||_.r("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&i08())};
_.o1=function(a,W,w){var Z={};Z.currentUrl=W;Z.vis=a.vis!==void 0?a.vis:0;Z.splay=!1;W=_.gS();Z.autoCaptionsDefaultOn=W.getFlag(66);W.getFlag(141)?W.getFlag(140)?Z.autonavState="STATE_OFF":Z.autonavState="STATE_ON":Z.autonavState="STATE_NONE";Z.html5Preference="HTML5_PREF_WANTS";isNaN(_.LF("STS"))||(Z.signatureTimestamp=_.LF("STS"));a.autonav&&(Z.autoplay=!0,Z.autonav=!0);a.mutedAutoplay&&(Z.autoplay=!0,Z.mutedAutoplay=!0);a.inlinePlayback&&(Z.autoplay=!0,Z.autonav=!1,Z.isInlineUnmutedPlayback=!!a.inlineUnmuted);
Z.referer=w;Z.lactMilliseconds=a.lact!==void 0?a.lact.toString():"-1";_.r("enable_unknown_lact_fix_on_html5")&&Z.lactMilliseconds==="-1"&&_.jJ(new _.Uw("Unknown LACT is set in playbackContext.",{"lact in tempData":a.lact||"undefined",autonav:a.autonav||"undefined"}));a={};W.getFlag(194)&&(a.hasShownAmbientMode=!0);W.getFlag(192)&&(a.hasToggledOffAmbientMode=!0);_.cp7()&&(a.watchAmbientModeEnabled=!0);Z.watchAmbientModeContext=a;return Z};
ev7=function(a){var W={},w=a.pbis||0;w&&(W.playbackBeginsInSeconds=w);a.prefetch_reason&&a.prefetch_reason==="hc_pbis"&&(W.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return W};
_.nZx=function(a){var W=new ko(_.LF("ONE_PICK_URL",""));W.urlParamMap_.set("hostId",a);(a=_.LF("GAPI_LOCALE"))&&W.urlParamMap_.set("hl",a);(a=_.LF("SESSION_INDEX"))&&W.urlParamMap_.set("authuser",a);(a=_.LF("DELEGATED_SESSION_ID"))&&W.urlParamMap_.set("groupId",a);return W};
LzH=function(){var a=_.K(),W=a.resolve(_.U6);a=a.resolve(_.O6);return new j7F(W,a)};
FzE=function(a){if(window.IntersectionObserver)return new Jp9(a,400);throw new TypeError("Vf");};
Rvv=function(){var a=Hammer.TouchAction,W=a.prototype.preventDefaults;a.prototype.preventDefaults=function(w){var Z=this.actions.indexOf("pan-down")>-1;if(!Z)return W.call(this,w);if(!MDF){var N=w.srcEvent;w=w.direction;var B;if((B=this.manager)==null?0:B.session.prevented)N.preventDefault();else if(Z&&w&Hammer.DIRECTION_DOWN)return this.preventSrc(N)}}};
qqv=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};
_.xL7=function(){return Q7I?Promise.resolve(Q7I):new Promise(function(a,W){var w=self.indexedDB.open("swpushnotificationsdb");w.onerror=W;w.onsuccess=function(){var Z=w.result;if(Z.objectStoreNames.contains("swpushnotificationsstore"))Q7I=Z,a(Q7I);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.xL7()};
w.onupgradeneeded=b0e})};
b0e=function(a){a=a.target.result;a.objectStoreNames.contains("swpushnotificationsstore")&&a.deleteObjectStore("swpushnotificationsstore");a.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
uje=function(a){var W=s7E(),w;return _.P(function(Z){switch(Z.nextAddress){case 1:return _.tq(Z,2),_.g(Z,a.match(W,{cacheName:"yt-appshell-assets"}),4);case 4:w=Z.yieldResult;_.qY(Z,3);break;case 2:_.Pb(Z);case 3:return Z.return(w)}})};
s7E=function(){var a=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?CNe.registration.scope:Guv;a.endsWith("/")&&(a=a.slice(0,-1));return a+"/app_shell_home"};
DL8=function(a){a.map(function(W){return W.source}).join("|")};
_.fsS=function(a){return _.P(function(W){return W.return(uje(a))})};
dLm=function(){var a=window.caches,W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,_.fsS(a),2);W=w.yieldResult;return w.return(!!W)})};
aH9=function(){_.P(function(a){if(a.nextAddress==1){if(mLI)return a.jumpTo(0);mLI=!0;if(_.r("enable_system_health_primes_monitoring"))return _.Zp(VDe,3E4),zvI(),a.return();if(!(Math.random()<_.yv("web_system_health_fraction")))return a.jumpTo(0);H0m={heightPixels:screen.height,widthPixels:screen.width};SM&&!isNaN(SM.jsHeapSizeLimit)&&(H0m.memoryTotalKbytes=String(Math.round(SM.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(H0m.devicePixelRatio=window.devicePixelRatio);return _.g(a,yp8(),4)}_.Zp(VDe,
3E4);return _.g(a,EZF(),0)})};
yp8=function(){return _.P(function(a){if(a.nextAddress==1)return Yo.intersectionObserverPresent="IntersectionObserver"in window,Yo.serviceWorkerPresent="serviceWorker"in navigator,Yo.webSharePresent="share"in navigator,Yo.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Yo.cacheStoragePresent="caches"in window,Yo.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Yo.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Yo.webkitTemporaryStoragePresent="webkitTemporaryStorage"in TX&&TX.webkitTemporaryStorage&&"queryUsageAndQuota"in TX.webkitTemporaryStorage,Yo.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.g(a,HSC(),2);Yo.indexedDbPresent=a.yieldResult;Yo.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Yo.broadcastChannelPresent="BroadcastChannel"in window;Yo.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Yo.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Yo.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Xd(a)})};
VDe=function(){var a=9E4+Math.random()*2E3;_.HI()>a||(_.r("enable_system_health_primes_monitoring")?zvI():EZF())};
EZF=function(){var a;return _.P(function(W){if(W.nextAddress==1)return _.g(W,W79(),2);a=W.yieldResult;_.ia("systemHealthCaptured",a);_.Xd(W)})};
zvI=function(){var a={metric:{}},W=wpD();W.networkEvents.length&&(a.metric.networkEvents=Zge(W));_.ia("systemHealthCaptured",a)};
W79=function(){var a,W,w,Z,N,B,I,X,v,U;return _.P(function(O){switch(O.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)};W=window.screen;_.r("enable_is_extended_monitoring")&&W&&"isExtended"in W&&(a.isExtended=!!W.isExtended);w={metric:{staticContext:H0m,dynamicContext:a,webMetric:N0U,webApiSupport:Yo}};
if(Z=_.nS())w.csn=Z;SM&&(w.metric.webMetric.currentHeapKbytes=Math.round(SM.usedJSHeapSize/1E3));window.matchMedia&&(w.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,w.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,w.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in TX&&typeof TX.getBattery==="function")){O.jumpTo(2);break}return _.g(O,TX.getBattery(),3);case 3:if(N=
O.yieldResult)w.metric.dynamicContext.chargingStatus=N.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(w.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Yo.storageEstimatePresent)return _.g(O,navigator.storage.estimate(),8);if(!Yo.webkitTemporaryStoragePresent){O.jumpTo(5);break}return _.g(O,tNF(),7);case 7:B=O.yieldResult;O.jumpTo(5);break;case 8:B=O.yieldResult;case 5:return w.metric.dynamicContext.deviceStorageQuotaMbytes=((I=B)==null?0:I.quota)?String(Math.round(B.quota/
1048576/10)*10):"-1",w.metric.dynamicContext.deviceStorageUsageMbytes=((X=B)==null?0:X.usage)?String(Math.round(B.usage/1048576/10)*10):"-1",v=w.metric.dynamicContext,_.g(O,dLm(),9);case 9:return v.hasAppShell=O.yieldResult,U=wpD(),U.networkEvents.length&&(w.metric.networkEvents=Zge(U)),O.return(w)}})};
tNF=function(){return new Promise(function(a){var W;Yo.webkitTemporaryStoragePresent&&(W=TX.webkitTemporaryStorage)!=null&&W.queryUsageAndQuota?TX.webkitTemporaryStorage.queryUsageAndQuota(function(w,Z){a({usage:w,quota:Z})}):a(void 0)})};
_.KC=function(a){a&=16777215;a=[(a&16711680)>>16,(a&65280)>>8,a&255];return $vD(a[0],a[1],a[2])};
_.pC=function(a){a=[(a&16711680)>>>16,(a&65280)>>>8,a&255,(a&4278190080)>>>24];var W=_.B0F(a,function(w){return w==(w&255)});
a[3]=(a[3]/255).toFixed(3);if(!W)throw Error("Wf`"+a.join(","));return"rgba("+a.join(",")+")"};
_.lHx=function(a){return[(a&16711680)>>>16,(a&65280)>>>8,a&255]};
_.IHm=function(a){a=a.map(function(W){W/=255;return W<=.03928?W/12.92:Math.pow((W+.05)/1.05,2.4)});
return a[0]*.2126+a[1]*.7152+a[2]*.0722};
ri=function(a,W){a=_.lHx(a);return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+W+")"};
_.Pj9=function(){try{return!!self.localStorage}catch(a){return!1}};
o4U=function(){if(Xpx())_.jJ(Error("Xf"));else{var a=document.createElement("iframe");a.style.display="none";var W=W===void 0?window.location.href:W;var w=_.cI(_.LF("PERSIST_IDENTITY_IFRAME_URL"));W=w?w:(new URL(W)).host.indexOf("studio")===0?_.ya(v4e,"persist_identity"):_.ya(g4F,"persist_identity");_.YmC(a,1,W);a.id="persist_identity";var Z;(Z=document.body)==null||Z.appendChild(a)}};
Xpx=function(){var a=kd9;a||(a=document.querySelector("#persist_identity"));return a};
UvI=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(W){a=!0}return(_.LF("INNERTUBE_CLIENT_NAME")==="WEB"||_.LF("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a};
OgI=function(a,W){if(!UvI())return!1;W||(W=_.LF("LOGIN_INFO"));return W?(a.session_logininfo=W,!0):!1};
YDv=function(a,W){a=a===void 0?!1:a;if((W===void 0||!W)&&SDU!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.JS("LOG_STICKINESS",!1)){W=_.nS();var w=_.eH(),Z={identityStickinessData:{initialState:SDU}};W&&w&&_.u0(W,w,Z)}if(W=Xpx())if(w=W.src?(new URL(W.src)).origin:"*",a){var N;(N=W.contentWindow)==null||N.postMessage({action:"clear"},w)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(a=window.sessionStorage.getItem("session_logininfo"))){var B;(B=W.contentWindow)==null||B.postMessage({loginInfo:a},w)}};
_.A7=function(a){a=a===void 0?!0:a;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.jm("LOGIN_INFO",""),a&&window.sessionStorage.setItem("from_switch_account","1"),YDv(!0,a)}catch(W){}};
T09=function(a){a&&(a.startsWith("https://accounts.google.com/AddSession")?_.A7():a.startsWith("https://accounts.google.com/ServiceLogin")?_.A7():a.startsWith("https://myaccount.google.com")&&_.MF(a).getPath().endsWith("/youtubeoptions")&&_.A7())};
h7=function(a,W){T09(a);if(_.JS("LOGGED_IN",!0)&&UvI()){var w=S1e(a);w==null&&(w={});OgI(w,W)&&_.fS(a,w)}};
K7H=function(){function a(W){for(W=W.target;W&&W.nodeName!=="A";)if(W=W.parentNode,!(W&&W instanceof HTMLElement))return;if(W&&!W.hasAttribute("download")&&W.getAttribute("rel")!=="external"&&W.href)return W.href}
document.addEventListener("mousedown",function(W){W.button!==0&&(W=a(W))&&h7(W)});
document.addEventListener("click",function(W){(W=a(W))&&h7(W)})};
Ae7=function(){var a=new ppU;try{if(_.JS("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(X){a.increment(5,!1);return}if(_.LF("LOGIN_INFO")){var W=reU?reU:window.location;_.LF("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&o4U();var w=S1e(W.href);w==null&&(w={});var Z=w.session_logininfo,N=Number(window.sessionStorage.getItem("stickiness_reload")),B=Z===_.LF("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
N>=2||B)N>=2?a.increment(2,B):B?a.increment(7,B):window.sessionStorage.getItem("session_logininfo")||(a.increment(3,B),SDU="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.LF("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.LF("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))a.increment(4,B),window.sessionStorage.removeItem("stickiness_reload");
else if(N<2){window.sessionStorage.setItem("stickiness_reload",String(N+1));var I=W.href;I=_.dQ(I,"sttick");h7(I,window.sessionStorage.getItem("session_logininfo"));I=_.uG(I,{sttick:N});a.increment(N,B);_.Cv(W,I)}}else a.increment(6,!1)}else _.A7(!1)}catch(X){}};
_.ih=function(a,W,w,Z,N){W=W===void 0?{}:W;w=w===void 0?"":w;Z=Z===void 0?window:Z;a=_.CF(a,W);h7(a);w=_.SB(a+w,N);_.Cv(Z.location,w)};
hN7=function(a){if(a.urlEndpoint){if(a=_.st(a.urlEndpoint.url),a.adurl)return mB(a.adurl)}else if(a.watchEndpoint)return"//www.youtube.com/watch?v="+a.watchEndpoint.videoId;return null};
ig7=function(a){if(!a||!a.reportingPings)return null;var W={};a.reportingPings.forEach(function(w){w.pingType in W?W[w.pingType].push(w.url):W[w.pingType]=[w.url]});
return{adpings:AfU(W)}};
_.eM=function(a){a=a===void 0?!1:a;var W=_.gS(),w="USER_INTERFACE_THEME_LIGHT";W.getFlag(165)?w="USER_INTERFACE_THEME_DARK":W.getFlag(174)?w="USER_INTERFACE_THEME_LIGHT":_.cu()&&(w="USER_INTERFACE_THEME_DARK");return a?w:ce8()||w};
_.eN7=function(){return!_.r("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.cu=function(){return _.eN7()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.nC=function(){var a=_.gS();return _.eN7()&&!a.getFlag(165)&&!a.getFlag(174)};
ce8=function(){var a=a===void 0?window.location.href:a;if(_.r("kevlar_disable_theme_param"))return null;var W=_.tw(a);if(_.n47(W))return"USER_INTERFACE_THEME_DARK";try{var w=_.st(a).theme;return j3E.get(w)||null}catch(Z){}return null};
_.n47=function(a){return _.r("enable_dark_theme_only_on_shorts")?!(a==null||!a.startsWith("/shorts/")):!1};
_.F7H=function(a,W,w,Z,N){W=W===void 0?!1:W;w=w===void 0?!1:w;var B=_.LF("INNERTUBE_CONTEXT");if(!B)return _.eJ(Error("ag")),{};B=(0,_.T5.unsafeClone)(B);_.r("web_no_tracking_params_in_shell_killswitch")||delete B.clickTracking;B.client||(B.client={});var I=B.client;I.clientName==="MWEB"&&I.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(I.clientFormFactor=_.LF("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");I.screenWidthPoints=window.innerWidth;I.screenHeightPoints=window.innerHeight;I.screenPixelDensity=
Math.round(window.devicePixelRatio||1);I.screenDensityFloat=window.devicePixelRatio||1;I.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());I.userInterfaceTheme=_.eM();if(!W){var X=_.S$x();X&&(I.connectionType=X);_.r("web_log_effective_connection_type")&&(X=TQe())&&(B.client.effectiveConnectionType=X)}var v;if(_.r("web_log_memory_total_kbytes")&&((v=_.NH.navigator)==null?0:v.deviceMemory)){var U;v=(U=_.NH.navigator)==null?void 0:U.deviceMemory;B.client.memoryTotalKbytes=""+v*1E6}W&&Z&&!_.r("web_it_context_set_original_url_ks")&&
(I.originalUrl=L7m(_.NH.location.href,Z).toString());_.r("web_gcf_hashes_innertube")&&(X=LXE())&&(U=X.coldConfigData,v=X.coldHashData,X=X.hotHashData,B.client.configInfo=B.client.configInfo||{},U&&(B.client.configInfo.coldConfigData=U),v&&(B.client.configInfo.coldHashData=v),X&&(B.client.configInfo.hotHashData=X));U=_.st(_.NH.location.href);!_.r("web_populate_internal_geo_killswitch")&&U.internalcountrycode&&(I.internalGeo=U.internalcountrycode);!_.r("web_populate_client_screen_killswitch")&&N&&(I.clientScreen=
N);I.clientName==="MWEB"||I.clientName==="WEB"?(I.mainAppWebInfo={graftUrl:Z||_.NH.location.href},_.r("kevlar_woffle")&&_.jM.instance&&(Z=_.jM.instance,I.mainAppWebInfo.pwaInstallabilityStatus=!Z.appInstalledEventFired&&Z.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),I.mainAppWebInfo.webDisplayMode=rkF(),I.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):I.clientName==="TVHTML5"&&(!_.r("web_lr_app_quality_killswitch")&&
(Z=_.LF("LIVING_ROOM_APP_QUALITY"))&&(I.tvAppInfo=Object.assign(I.tvAppInfo||{},{appQuality:Z})),Z=_.LF("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(I.tvAppInfo=Object.assign(I.tvAppInfo||{},{certificationScope:Z}));!_.r("web_populate_time_zone_itc_killswitch")&&(Z=UMS())&&(I.timeZone=Z);(Z=qfU())?I.experimentsToken=Z:delete I.experimentsToken;I=QUv();Z=_.JeD();Z=(0,_.T5.getValues)(Z.tokenJars);B.request=Object.assign({},B.request,{internalExperimentFlags:I,consistencyTokenJars:Z});!_.r("web_prequest_context_killswitch")&&
(I=_.LF("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(B.request.externalPrequestContext=I);Z=_.gS();I=Z.getFlag(58);Z=Z.get("gsml","");B.user=Object.assign({},B.user);I&&(B.user.enableSafetyMode=I);Z&&(B.user.lockedSafetyMode=!0);_.r("warm_op_csn_cleanup")?w&&(W=_.nS())&&(B.clientScreenNonce=W):!W&&(W=_.nS())&&(B.clientScreenNonce=W);a&&(B.clickTracking={clickTrackingParams:a});if(a=_.RT("yt.mdx.remote.remoteClient_"))B.remoteClient=a;_.LC.getInstance().setLocationOnInnerTubeContext(B);try{var O=m6S(),
S=O.bid;delete O.bid;B.adSignalsInfo={params:[],bid:S};for(var T=_.l(Object.entries(O)),p=T.next();!p.done;p=T.next()){var h=_.l(p.value),L=h.next().value,F=h.next().value;O=L;S=F;a=void 0;(a=B.adSignalsInfo.params)==null||a.push({key:O,value:""+S})}var x,G;if(((x=B.client)==null?void 0:x.clientName)==="TVHTML5"||((G=B.client)==null?void 0:G.clientName)==="TVHTML5_UNPLUGGED"){var V=_.LF("INNERTUBE_CONTEXT");V.adSignalsInfo&&(B.adSignalsInfo.advertisingId=V.adSignalsInfo.advertisingId,B.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",B.adSignalsInfo.limitAdTracking=V.adSignalsInfo.limitAdTracking)}}catch(d){_.eJ(d)}return B};
_.J7=function(){return{isShellLoad:_.JS("IS_SHELL_LOAD",!1)}};
RN8=function(){navigator.serviceWorker.getRegistrations().then(function(a){a.forEach(MNH)})};
MNH=function(a){a&&_.qDU(Q3D,a.scope)};
_.qDU=function(a,W){W={scope:W||_.Et("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.IJ(a),W)};
FK=function(a,W,w,Z){if(W&&W.serializedYpcCujLoggingParams){if(w){var N={};N.transactionErrorType=w;Z&&(N.errorMessage=Z);W.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:N}}}w={};w.ypcCujContext=W;a=_.Z3("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",a,w);_.Nj(_.t7(),a,"FLOW_TYPE_YPC_ACQUISITION")}};
_.xv9=function(a,W,w,Z){var N={};N.serializedTransactionFlowLoggingParams=W;w&&(N.errorType=w);Z&&(N.errorMessage=Z);_.ia(a,N);_.cZ()};
_.bgH=function(a){a&&_.xv9("transactionFlowStarted",a)};
_.s37=function(a){a&&_.xv9("transactionFlowCancelled",a)};
_.Mj=function(a,W,w){W&&_.xv9("transactionFlowFailed",W,a,w)};
_.R1=function(){this.megabloxUrl_=null};
_.qj=function(a){try{var W=uG8==null?void 0:uG8.composedPath(a)}catch(w){W=a.composedPath?a.composedPath():[]}return W&&W.length>0?W:a.composedPath?a.composedPath():[]};
_.QV=function(a){return _.qj(a)[0]};
_.xo=function(a){if(!(a instanceof Element))return null;a=a.classList?Array.from(a.classList):void 0;if(!a)return null;var W=a.indexOf("style-scope");return W>-1&&W+1<a.length?a[W+1]:null};
bh=function(a){if(!(a instanceof HTMLElement))return null;var W=a&&(a.$$||a.polymerController)?a.tagName.toLowerCase():null;return W?W:_.xo(a)};
CjI=function(a,W){return a.replace(/[^a-z]*[^\s]+/g,function(w){return w+".style-scope."+W})};
Gdv=function(a,W){return W?a.split(",").map(function(w){return CjI(w.trim(),W)}).join(", "):a};
_.s6=function(a){var W,w,Z,N;return(N=(Z=(w=(W=a.root)!=null?W:a.shadowRoot)!=null?w:a.__shady_native_shadowRoot)!=null?Z:a.__shady_shadowRoot)!=null?N:a};
uh=function(a){return a instanceof ShadowRoot?ShadowRoot:a instanceof DocumentFragment?DocumentFragment:a instanceof Document?Document:HTMLElement};
Dvm=function(a){var W,w,Z;return(Z=(w=(W=a.parentElement)!=null?W:a.__shady_native_parentElement)!=null?w:a.__shady_parentElement)!=null?Z:null};
fH8=function(a){var W,w,Z;return(Z=(w=(W=a.parentNode)!=null?W:a.__shady_native_parentNode)!=null?w:a.__shady_parentNode)!=null?Z:null};
dvH=function(a){var W,w,Z;return(Z=(w=(W=a.__shady_parentNode)!=null?W:a.__shady_native_parentNode)!=null?w:a.parentNode)!=null?Z:null};
mvF=function(a){var W,w;return(w=(W=fH8(a))!=null?W:a.host)!=null?w:null};
VNv=function(a){var W,w,Z;return(Z=(w=(W=a.nextSibling)!=null?W:a.__shady_native_nextSibling)!=null?w:a.__shady_nextSibling)!=null?Z:null};
zN8=function(a){var W,w,Z;return(Z=(w=(W=a.previousSibling)!=null?W:a.__shady_native_previousSibling)!=null?w:a.__shady_previousSibling)!=null?Z:null};
Hgv=function(a){var W,w,Z;return(Z=(w=(W=a.nextElementSibling)!=null?W:a.__shady_native_nextElementSibling)!=null?w:a.__shady_nextElementSibling)!=null?Z:null};
yem=function(a){var W,w,Z;return(Z=(w=(W=a.previousElementSibling)!=null?W:a.__shady_native_previousElementSibling)!=null?w:a.__shady_previousElementSibling)!=null?Z:null};
E48=function(a){var W,w,Z;return new Set([].concat(_.K8((W=a.children)!=null?W:[]),_.K8((w=a.__shady_native_children)!=null?w:[]),_.K8((Z=a.__shady_children)!=null?Z:[])))};
aqI=function(a){var W,w,Z;return new Set([].concat(_.K8((W=a.childNodes)!=null?W:[]),_.K8((w=a.__shady_native_childNodes)!=null?w:[]),_.K8((Z=a.__shady_childNodes)!=null?Z:[])))};
Wxx=function(a){if(!a)return null;var W=_.xo(a);if(!W){var w;return(w=Node.prototype.getRootNode)==null?void 0:w.call(a)}W=W.toUpperCase();for(a=Dvm(a);a&&a.tagName!==W;)a=Dvm(a);return a?_.s6(a):null};
w3H=function(a){for(;a&&!(a instanceof HTMLElement);)a=mvF(a);return a};
ZGv=function(a){var W=w3H(a);return a===W?_.xo(a):W?bh(W):null};
NyD=function(a){return(a=w3H(a))?bh(a):null};
tOv=function(a){if(a instanceof Comment)return!1;if(a instanceof Text){var W,w;if(((w=(W=a.textContent)==null?void 0:W.trim())!=null?w:"")==="")return!1}return!0};
CC=function(a,W,w){var Z=W(a);for(w=w===void 0?NyD(a):w;Z&&(ZGv(Z)!==w||!tOv(Z));)a=Z,Z=W(a);return Z};
$Qe=function(a,W,w){if(!W)return null;a=NyD(a);return ZGv(W)===a&&tOv(W)?W:CC(W,w,a)};
Bym=function(a){return CC(a,dvH,_.xo(a))};
lq7=function(a){return CC(a,Hgv)};
IqF=function(a){return CC(a,VNv)};
Prm=function(a){return CC(a,yem)};
X3U=function(a){return CC(a,zN8)};
vtC=function(a){return $Qe(a,a.firstChild||a.__shady_native_firstChild||a.__shady_firstChild||null,VNv)};
gtF=function(a){var W,w,Z;var N=(Z=(w=(W=a.firstElementChild)!=null?W:a.__shady_native_firstElementChild)!=null?w:a.__shady_firstElementChild)!=null?Z:null;return $Qe(a,N,Hgv)};
ot7=function(a){var W,w,Z;var N=(Z=(w=(W=a.lastChild)!=null?W:a.__shady_native_lastChild)!=null?w:a.__shady_lastChild)!=null?Z:null;return $Qe(a,N,zN8)};
kAE=function(a){var W,w,Z;var N=(Z=(w=(W=a.lastElementChild)!=null?W:a.__shady_native_lastElementChild)!=null?w:a.__shady_lastElementChild)!=null?Z:null;return $Qe(a,N,yem)};
UQH=function(a){var W=NyD(a);return Array.from(aqI(a)).filter(function(w){return ZGv(w)===W})};
OGe=function(a){var W=bh(a);return Array.from(E48(a)).filter(function(w){return _.xo(w)===W})};
_.GX=function(a,W,w){if(a instanceof HTMLElement&&_.xo(a)===w){var Z=Array.from(a.classList).indexOf("style-scope");if(Z===-1)a.classList.add("style-scope"),a.classList.add(W);else if(!(Z+1>=a.classList.length)){Z=a.classList[Z+1];var N,B;a==null||(N=a.classList)==null||(B=N.replace)==null||B.call(N,Z,W)}}if(a instanceof HTMLElement||a instanceof DocumentFragment)for(N=_.l(E48(a)),B=N.next();!B.done;B=N.next())_.GX(B.value,W,w);return a};
D3=function(a,W){if(a instanceof HTMLElement&&_.xo(a)===W){var w=Array.from(a.classList).indexOf("style-scope");w===-1||w+1>=a.classList.length||a.classList.remove("style-scope",a.classList[w+1])}if(a instanceof HTMLElement||a instanceof DocumentFragment){w=_.l(a.children);for(var Z=w.next();!Z.done;Z=w.next())D3(Z.value,W)}return a};
_.SYS=function(a,W){return uh(a).prototype.appendChild.call(a,W)};
YYE=function(a,W){if(a===W)return!0;a=aqI(a);return Array.from(a).some(function(w){return YYE(w,W)})};
_.M=function(a,W){if(a instanceof fC)return a;(W==null?0:W.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(a,"ownerDocument")&&Object.defineProperty(a,"ownerDocument",{get:function(){return window.document}});
return new fC(a)};
Kx9=function(){var a=fC.prototype,W=[].concat(_.K8(TyS?[]:["getRootNode"]),["setAttribute","removeAttribute"]);W=_.l(W);for(var w=W.next(),Z={};!w.done;Z={method$jscomp$50:void 0},w=W.next())Z.method$jscomp$50=w.value,a[Z.method$jscomp$50]=function(N){return function(){return this.host[N.method$jscomp$50].apply(this.host,arguments)}}(Z)};
r87=function(){var a=fC.prototype,W=[].concat(_.K8(TyS?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.K8(p3e?[]:["querySelector","querySelectorAll"]));W=_.l(W);for(var w=W.next(),Z={};!w.done;Z={method$jscomp$51:void 0},w=W.next())Z.method$jscomp$51=w.value,a[Z.method$jscomp$51]=function(N){return function(){return this.root[N.method$jscomp$51].apply(this.root,arguments)}}(Z)};
iGF=function(){var a=fC.prototype,W=[].concat(_.K8(A89?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.K8(h7I?[]:["parentNode"]));W=_.l(W);for(var w=W.next(),Z={};!w.done;Z={prop$jscomp$62:void 0},w=W.next())Z.prop$jscomp$62=w.value,Object.defineProperty(a,Z.prop$jscomp$62,{get:function(N){return function(){return this.host[N.prop$jscomp$62]}}(Z),
configurable:!0})};
ntI=function(){var a=fC.prototype,W=["activeElement"].concat(_.K8(A89?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.K8(c8U?[]:["children"]),_.K8(e78?[]:["lastChild"]));W=_.l(W);for(var w=W.next(),Z={};!w.done;Z={prop$jscomp$63:void 0},w=W.next())Z.prop$jscomp$63=w.value,Object.defineProperty(a,Z.prop$jscomp$63,{get:function(N){return function(){return this.root[N.prop$jscomp$63]}}(Z),
configurable:!0})};
j4v=function(){for(var a=fC.prototype,W=_.l(["innerHTML","textContent"]),w=W.next(),Z={};!w.done;Z={prop$jscomp$64:void 0},w=W.next())Z.prop$jscomp$64=w.value,Object.defineProperty(a,Z.prop$jscomp$64,{get:function(N){return function(){return this.root[N.prop$jscomp$64]}}(Z),
set:function(N){return function(B){this.root[N.prop$jscomp$64]=B}}(Z),
configurable:!0})};
LxH=function(a){var W=fC.prototype;a=_.l(Object.entries(a));for(var w=a.next(),Z={};!w.done;Z={fn$jscomp$361:void 0},w=a.next()){var N=_.l(w.value);w=N.next().value;N=N.next().value;Z.fn$jscomp$361=N;W[w]=function(B){return function(){return B.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.K8(arguments)))}}(Z)}};
FxD=function(){for(var a=fC.prototype,W=_.l(Object.entries(J8F)),w=W.next(),Z={};!w.done;Z={fn$jscomp$362:void 0},w=W.next()){var N=_.l(w.value);w=N.next().value;N=N.next().value;Z.fn$jscomp$362=N;Object.defineProperty(a,w,{get:function(B){return function(){return B.fn$jscomp$362.apply(null,[this.host.node||this.host].concat(_.K8(arguments)))}}(Z),
configurable:!0})}};
_.di=function(a){return a instanceof MOH||a instanceof Document?a:new MOH(a)};
R79=function(){for(var a=MOH.prototype,W=_.l("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),w=W.next(),Z={};!w.done;Z={method$jscomp$52:void 0},w=W.next())Z.method$jscomp$52=w.value,a[Z.method$jscomp$52]=function(N){return function(){return HTMLElement.prototype[N.method$jscomp$52].call.apply(HTMLElement.prototype[N.method$jscomp$52],[this.node].concat(_.K8(arguments)))}}(Z)};
qYU=function(){for(var a=MOH.prototype,W=_.l("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),w=W.next(),Z={};!w.done;Z={prop$jscomp$65:void 0},w=W.next())Z.prop$jscomp$65=w.value,Object.defineProperty(a,Z.prop$jscomp$65,{get:function(N){return function(){var B;return(B=this.node["__shady_native_"+N.prop$jscomp$65])!=null?B:this.node[N.prop$jscomp$65]}}(Z),
configurable:!0})};
_.mh=function(a,W,w){w===void 0&&(w=!a.classList.contains(W));w?a.classList.add(W):a.classList.remove(W)};
_.VV=function(a,W,w){w===void 0&&(w=!a.hasAttribute(W));if(W==="class")throw Error("eg");w?_.di(a).setAttribute(W,""):_.di(a).removeAttribute(W)};
Q4E=function(a){return(a.localName!=="slot"?[]:(0,_.zX)(a).assignedNodes({flatten:!0})).filter(function(W){return W.nodeType===Node.ELEMENT_NODE})};
_.xQS=function(a){return(a=_.M(a).querySelector("slot"))&&a.localName==="slot"?Q4E(a):[]};
_.Hu=function(a,W){window.ShadyCSS&&window.ShadyCSS.styleSubtree(a,W)};
bGC=function(a,W){var w=W.bind(a);return function(Z){w(Z,Z.detail)}};
_.yV=function(a,W){var w=s47.get(a);w||(w=new WeakMap,s47.set(a,w));if(w.has(W))return w.get(W);if(_.r("web_fi_listen_disable_bound_fn_helper")){var Z=W.bind(a);a=function(N){Z(N,N==null?void 0:N.detail)}}else a=bGC(a,W);
w.set(W,a);return a};
GAU=function(a,W){uCU(a);a.created[Cr8].push(W)};
uCU=function(a){if(!a.created||!a.created[Cr8]){var W=a.created,w=W?[W]:[];a.created=function(){for(var Z=_.l(w),N=Z.next();!N.done;N=Z.next())N.value.apply(this)};
a.created[Cr8]=w}};
DQe=function(a){return function(){var W=_.TH.apply(0,arguments);return function(w,Z,N){a.apply(null,_.K8(W))(w,Z,N)}}};
fqS=function(){return function(){var a=_.TH.apply(0,arguments);return function(W,w,Z){x9F.apply(null,_.K8(a))(W,w,Z)}}};
_.R=function(a){return fqS()(a)};
_.Q=function(){return DQe(CVv).apply(null,_.K8(_.TH.apply(0,arguments)))};
_.E6=function(a){return _.r("pbcm_fi_listen_decorators")?dQv(a):DQe(sIe)(a)};
dQv=function(a){return function(W,w){GAU(W,function(){var Z=this[w],N=_.r("web_fi_listen_disable_bound_fn_helper")?function(B){Z(B,B.detail)}.bind(this):bGC(this,Z);
mQU.has(a)?cH(this.hostElement,a,N):this.hostElement.addEventListener(a,N)})}};
_.a5=function(){return DQe(u2v).apply(null,_.K8(_.TH.apply(0,arguments)))};
_.b=function(a){a=a===void 0?{}:a;return DQe(b47)(a)};
_.WA=function(a){if(a.hostElement&&a!==a.hostElement){var W=_.Tq(a.hostElement);W=a.renderIdom?W:W.shadowRoot}W||(a=a.root,W=a instanceof Node?_.Tq(a):null);return W};
_.w$=function(a){return VOE?z79(a):function(W,w){Object.defineProperty(W,w,{get:function(){var Z;return(Z=_.WA(this))==null?void 0:Z.querySelector(a)},
enumerable:!0,configurable:!0})}};
z79=function(a){return function(W,w){Object.defineProperty(W,w,{get:function(){var Z,N=(Z=_.M(this.hostElement))==null?void 0:Z.querySelector(a);if(N)return N;var B;Z=(B=this.is)!=null?B:"yt-undefined-target";HG7!=null||(HG7=Date.now());(Rm(Z)+HG7)%100>_.yv("pbcm_fi_query_decorators_fallback_logging_pct")||(y8S!=null||(y8S=new EtF),aUe.has(Z)||(aUe.add(Z),y8S.increment(Z)));var I;return(I=_.WA(this))==null?void 0:I.querySelector(a)},
enumerable:!0,configurable:!0})}};
_.ZC=function(a){return VOE?WRe(a):function(W,w){Object.defineProperty(W,w,{get:function(){var Z;return(Z=_.WA(this))==null?void 0:Z.querySelectorAll(a)},
enumerable:!0,configurable:!0})}};
WRe=function(a){return function(W,w){Object.defineProperty(W,w,{get:function(){var Z,N=(Z=_.M(this.hostElement))==null?void 0:Z.querySelectorAll(a);if(N==null?0:N.length)return N;var B;return(B=_.WA(this))==null?void 0:B.querySelectorAll(a)},
enumerable:!0,configurable:!0})}};
wRe=function(a){return function(W){if(![_.mo,_.u].includes(Object.getPrototypeOf(W.prototype).constructor))throw Error("fg");jIF(Object.assign({},typeof a!=="string"?a:{is:a,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(W)}};
_.BA=function(){var a=a===void 0?{}:a;return function(W){if(![V8,_.Nt].includes(Object.getPrototypeOf(W.prototype).constructor))throw Error("gg");Lae(Object.assign({},a,{disableInheritanceCheck:!0}))(W)}};
N8v=function(a,W){ZdE[a]!=null||(ZdE[a]=new Set);ZdE[a].add(W)};
_.lO=function(){var a=_.a5.apply(null,_.K8(_.TH.apply(0,arguments)));return function(W,w){N8v(W.is,w);a(W,w)}};
XM=function(a,W,w){if(I5(a)&&!tdF.has(W)){W=W.replace(/^JSC\$[\d]+_/,"");W=W.replace(/\.\d+(\.|$)/g,function(B,I){return".#"+I});
PA[a]!=null||(PA[a]={});var Z,N;(Z=PA[a])[N=W]!=null||(Z[N]=new Set);PA[a][W].has(w)||(PA[a][W].add(w),_.ia("polymerPropertyAccessEvent",{componentName:a,propertyName:W,accessType:w}))}};
$lF=function(){return _.r("polymer_property_access_logging_debug")||_.r("polymer_enable_property_access_logging")};
I5=function(a){if(_.r("polymer_property_access_logging_debug"))return!0;if(!_.r("polymer_enable_property_access_logging"))return!1;B8H||(B8H=Date.now());return(Rm(a)+B8H)%100<_.yv("polymer_property_access_logging_percent")};
lUE=function(a,W){return I5(W)&&a.hostElement.loggingStatus?new Proxy(a,{get:function(w,Z,N){if(w.hostElement.loggingStatus.bypassProxyController)return w[Z];w.hostElement.loggingStatus.isExternalGet=!0;var B=w[Z];w.hostElement.loggingStatus.isExternalGet=!1;if(B instanceof Function)return function(){var I=_.TH.apply(0,arguments);try{return w.hostElement.loggingStatus.currentExternalCall=Z,XM(W,Z,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),B.apply(this===N?w:this,I)}finally{w.hostElement.loggingStatus.currentExternalCall=
void 0}};
XM(W,Z,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return B},
set:function(w,Z,N){if(w.hostElement.loggingStatus.bypassProxyController)return w[Z]=N,!0;w.hostElement.loggingStatus.isRendererStamper?XM(W,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):w.hostElement.loggingStatus.isDeclarativeExternal||XM(W,Z,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{w.hostElement.loggingStatus.currentExternalSet=Z,w[Z]=N}finally{w.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):a};
IUS=function(a,W){a&&a.loggingStatus&&!a.loggingStatus.isDeclarativeExternal&&!a.loggingStatus.isExternalGet&&a.loggingStatus.currentExternalSet!==W&&XM(a.tagName.toLowerCase(),W,"PROPERTY_ACCESS_GET_INTERNAL")};
vA=function(a,W,w){a&&(w||a.loggingStatus&&!a.loggingStatus.isInitializing&&!a.loggingStatus.isDefiningPropertyAccessor&&a.loggingStatus.currentExternalSet!==W)&&XM(a.tagName.toLowerCase(),W,"PROPERTY_ACCESS_SET_INTERNAL")};
PCI=function(){return{_definePropertyAccessor:function(a,W){var w=this,Z=w.hostElement.loggingStatus;Z&&(Z.isDefiningPropertyAccessor=!0);var N=w[a];N!==void 0&&(w.__data?w._setPendingProperty(a,N):(w.__dataProto!=null||(w.__dataProto={}),w.__dataProto[a]=N));Z&&(Z.isDefiningPropertyAccessor=!1);Object.defineProperty(this,a,{get:function(){IUS(w.hostElement,a);return this.__data[a]},
set:function(B){W||this._setPendingProperty(a,B,!0)&&this._invalidateProperties()}})},
created:function(){var a=this._setPendingProperty.bind(this);this._setPendingProperty=function(W,w,Z){vA(this.hostElement,W);return a.apply(this,[W,w,Z])}}}};
XRU=function(a){$lF()&&_.R(g$.prototype)(a.prototype,"__templateBindingLoggingBehavior")};
vlE=function(a,W){if(W.resolvedFactories.length!==a.resolvedFactories.length)return!0;W=_.l(W.resolvedFactories.entries());for(var w=W.next();!w.done;w=W.next()){var Z=_.l(w.value);w=Z.next().value;Z=Z.next().value;if(Z.providerClass){if(Z.providerClass!==a.resolvedFactories[w].providerClass)return!0}else if(Z.providerValue){if(Z.providerValue!==a.resolvedFactories[w].providerValue)return!0}else if(Z.factory!==a.resolvedFactories[w].factory)return!0}return!1};
glx=function(a,W){a=_.l(a);for(var w=a.next();!w.done;w=a.next())if(w=w.value,w.constructor===Array)glx(w,W);else{var Z=W;Z.has(w)||(w.inject&&Z.add(w),w.behaviors&&glx(w.behaviors,Z))}};
o5=function(a,W){var w=a[W];a[W]=function(){var Z=_.TH.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(w)return w.apply(this,Z)}};
OdD=function(){_.kQ.Class=function(w,Z){w=olS(w,Z);o5(w.prototype,"created");return w};
o5(UN.prototype,"_initializeProperties");o5(_.ON.prototype,"_initializeProperties");if(knE)o5(UlC,"created");else{var a=function(){o5(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))a();else{var W=customElements.define;customElements.define=function(w,Z,N){W.call(customElements,w,Z,N);w==="tp-yt-iron-list"&&(a(),customElements.define=W)}}}};
Yux=function(a,W){a.prototype.behaviors=a.prototype.behaviors||[];a.prototype.behaviors.unshift(Sue.InjectBehavior);a.prototype.provide=W};
_.TD=function(a){return function(W){if(!a.disableElementRegistration){a.noInjection||Yux(W,a.providers);var w=W.prototype;w.__templateHelpers||x9F(SK.prototype)(w,"__templateHelpers");w=a.is;T8x||(T8x=Date.now());(Rm(w)+T8x)%100<_.yv("polymer_log_prop_change_observer_percent")&&x9F(YQ.prototype)(W.prototype,"__propertyObserverObserver");W.prototype.behaviors=W.prototype.behaviors||[];W.prototype.behaviors.unshift(_.KRC.YtHostElementBehavior);XRU(W);wRe({is:a.is,notifyObserversOnUndefined:a.notifyObserversOnUndefined!==
!1,fastInit:a.fastInit,template:a.template,disableEnforceFastDefaultValuesCheck:!0})(W)}}};
_.C=function(a){return _.TD({is:a.is,template:a.template,disableElementRegistration:a.disableElementRegistration,cssBuildOptOut:a.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
AV8=function(a,W){if(pR7){a=new a;for(var w=_.l(Object.getOwnPropertyNames(a)),Z=w.next();!Z.done;Z=w.next())Z=Z.value,W[Z]=a[Z];for(w=W;w&&w!==Object.prototype;w=Object.getPrototypeOf(w)){Z=_.l(Object.getOwnPropertyNames(w));for(var N=Z.next();!N.done;N=Z.next())N=N.value,a.hasOwnProperty(N)||Object.defineProperty(a,N,rVS(W,N))}}else a.apply(W)};
rVS=function(a,W){return{get:function(){var w=a[W];return w instanceof Function?w.bind(a):w},
set:function(w){a[W]=w}}};
id7=function(a,W){for(var w=a._noAccessors,Z=_.l(Object.getOwnPropertyNames(a)),N=Z.next();!N.done;N=Z.next())if(N=N.value,!hCe.has(N))if(w)W[N]=a[N];else{var B=Object.getOwnPropertyDescriptor(a,N);B&&(B.configurable=!0,Object.defineProperty(W,N,B))}};
cVE=function(a,W,w){return function(Z){if(w){var N=w();Z.model=N}if(a[W])a[W](Z,Z.detail)}};
Kp=function(a){var W=[];if(typeof a==="string")a.length>0&&W.push.apply(W,_.K8(a.split(".")));else{a=_.l(a);for(var w=a.next();!w.done;w=a.next())w=w.value,typeof w==="string"?W.push.apply(W,_.K8(w.split("."))):W.push(w)}return W};
eC9=function(a,W){if(W[W.length-1]!=="*"&&W[W.length-1]!=="splices"){for(var w=0;w<W.length;w++){if(!a)return;a=a[W[w]]}return a}};
nlD=function(a,W){if(a.length>W.length)return!1;for(var w=0;w<a.length;w++)if(a[w]!==W[w])return!1;return!0};
LRI=function(a,W,w){if(W.type==="compute"){var Z=W.getter.bind(w);var N=W.args}else Z=function(){return w[W.method.methodName].apply(w,_.K8(_.TH.apply(0,arguments)))},N=W.method.args;
jy8(a,W.propertyKey,Z,N,W.value)};
FRH=function(a,W){if(W.readOnly){var w=Object.getOwnPropertyDescriptor(a.model,W.propertyKey);Object.defineProperty(a.model,W.propertyKey,{get:w.get,set:function(){}});
a.model[JVS(W.propertyKey)]=w.set}};
MdF=function(a,W,w){if(w){var Z=W.propertyKey,N=W.selector;W=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.K8(W.selectorArgs.map(function(B){return{type:"path",path:B}})));
jy8(a,Z,function(B){var I=_.TH.apply(1,arguments);return N.apply(null,[w.getState()].concat(_.K8(I)))},W)}};
quF=function(a,W,w){var Z=_.vG(W.propertyKey)+"-changed";RC9(a,function(N){var B={value:N.value,queueProperty:!0};N.path.split(".").length>1&&(B.path=N.path);w.dispatchEvent(new CustomEvent(Z,{detail:B}))},[{type:"wildcard",
path:W.propertyKey}])};
Qy9=function(a,W,w){RC9(a,function(){w[W.method.methodName].apply(w,_.K8(_.TH.apply(0,arguments)))},W.method.args)};
JVS=function(a){return"_set"+(a.charAt(0).toUpperCase()+a.slice(1))};
xle=function(){var a,W=ho(function(w){a=w},!1);
return[a,W]};
GnS=function(a){a=a.trim().replace(bdF,",").replace(syE,"$1");var W=a[0];W==="-"&&(W=a[1]);if(W>="0"&&W<="9")return{type:"literal",value:Number(a)};if(W==="'"||W==='"')return{type:"literal",value:a.slice(1,-1)};if(W=a.match(u07)){W=W[1];var w=CCe[W];if(w)return{type:w,path:a.slice(0,-(W.length+1))}}return{type:"path",path:a}};
mlH=function(a){var W=a.match(Dl9);if(W)return a={methodName:W[1],args:fU8},W[2].trim()&&(W=W[2].replace(dlv,"&comma;").split(","),a.args=W.map(GnS)),a};
Vd7=function(a,W,w,Z){Z=Z===void 0?!1:Z;W=_.vG(W);var N=kU;N&&(w=N(w,W,"attribute",a));pp(a,w,W,Z)};
pp=function(a,W,w,Z){W=zCS(W,Z===void 0?!1:Z);W===void 0?a.removeAttribute(w):a.setAttribute(w,W)};
zCS=function(a,W){switch(typeof a){case "object":case "function":if(a instanceof Date)return a.toString();if(a){if((W===void 0?0:W)&&!_.r("polymer_reflect_objects_as_boolean_killswitch"))return a?"":void 0;W=window.trustedTypes?window.trustedTypes.isHTML(a)||window.trustedTypes.isScript(a)||window.trustedTypes.isScriptURL(a):void 0;if(W)return a;try{return JSON.stringify(a)}catch(w){_.jJ(Error("Cg`"+a))}}break;case "boolean":return a?"":void 0;default:return a!==null&&a!==void 0?a.toString():void 0}};
Hde=function(a){if(a===void 0)throw Error("Dg");return a};
wdD=function(a,W,w,Z){var N=yV7(Z);if(N.length){Z=w;var B="property";Elm.test(w)?B="attribute":w[w.length-1]==="$"&&(w=w.slice(0,-1),B="attribute");var I=avv(N);I&&B==="attribute"&&(w==="class"&&a.hasAttribute("class")&&(I+=" "+a.getAttribute(w)),pp(a,I,w));B==="attribute"&&Z==="disable-upgrade$"&&a.setAttribute("disable-upgrade","");a.localName==="input"&&Z==="value"&&a.setAttribute("value","");a.removeAttribute(Z);B==="property"&&(w=_.gQ(w));W=Hde(W);Wbe(W,B,w,N);return!0}return w.slice(0,3)===
"on-"?(a.removeAttribute(w),(B=W).events!=null||(B.events=[]),W.events.push({name:w.slice(3),value:Z}),!0):w==="id"?(W.id=Z,!0):!1};
yV7=function(a){for(var W=[],w=0,Z;(Z=ZfS.exec(a))!==null;){Z.index>w&&W.push({type:"literal",value:a.slice(w,Z.index)});var N=Z[1][0];w=!!Z[2];Z=Z[3].trim();if(N==="{")throw Error("Eg");(N=mlH(Z))?W.push({type:"method",negate:w,signature:N}):W.push({type:"path",negate:w,path:Z});w=ZfS.lastIndex}w&&w<a.length&&(a=a.substring(w))&&W.push({type:"literal",value:a});return W};
avv=function(a){for(var W="",w=0;w<a.length;w++){var Z=a[w];Z.type==="literal"&&(W+=Z.value)}return W};
Wbe=function(a,W,w,Z){a.bindings!=null||(a.bindings=[]);a.bindings.push({kind:W,target:w,parts:Z})};
lvS=function(a,W,w){var Z=!1;if(a.localName==="template"){Z=w;var N=W.stripWhitespace;N=NM9(a,N===void 0?!1:N);var B=a.content.ownerDocument.createDocumentFragment();N.content=B;B.appendChild(a.content);Z&&(Z.templateInfo=N);Z=!0}else a.localName==="slot"&&(W.hasInsertionPoint=!0);if(a.firstChild&&(N=w,a.localName!=="script"&&a.localName!=="style")){B=0;for(var I=a.firstChild;I;){var X=I;if(X.localName==="template"){var v=X.getAttribute("is");if((I=v==="dom-if")||v==="dom-repeat"){X.removeAttribute("is");
v=X.ownerDocument.createElement("ps-"+v);X.parentNode.replaceChild(v,X);v.appendChild(X);var U=Array.from(X.attributes);U=_.l(U);for(var O=U.next();!O.done;O=U.next())O=O.value,I?t8x.has(O.name)&&pp(v,O.value,O.name):$re.has(O.name)?pp(v,O.value,O.name):BMv.has(O.name),X.removeAttribute(O.name);I=v}else I=X}if(I.nodeType===Node.TEXT_NODE){X=void 0;v=a;for(U=I;((X=U.nextSibling)==null?void 0:X.nodeType)===Node.TEXT_NODE;)O=void 0,(O=U).textContent!=null||(O.textContent=""),U.nextSibling.textContent&&
(U.textContent+=U.nextSibling.textContent),v.removeChild(U.nextSibling);if(W.stripWhitespace&&I.textContent&&!I.textContent.trim()){a.removeChild(I);I=I.nextSibling;continue}}lvS(I,W,{parentIndex:B,parentInfo:N});I.parentNode&&B++;I=I.nextSibling}}var S;if((S=a.hasAttributes)==null?0:S.call(a)){S=w=Hde(w);N=!1;B=Array.from(a.attributes);B=_.l(B);for(X=B.next();!X.done;X=B.next())X=X.value,N=wdD(a,S,X.name,X.value)||N;Z=N||Z}a.nodeType===Node.TEXT_NODE&&(S=yV7(a.textContent),S.length&&(a.textContent=
avv(S)||" ",w=Hde(w),Wbe(w,"text","textContent",S),Z=!0));w&&Z&&(w.infoIndex=W.nodeInfoList.push(w)-1)};
NM9=function(a,W){W={nodeInfoList:[],stripWhitespace:(W===void 0?!1:W)||a.hasAttribute("strip-whitespace")};lvS(a.content,W);return W};
Ivx=function(a){Object.assign(a,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
XdI=function(a,W,w){W.signalCache!=null||(W.signalCache={});var Z=W.signalCache[w];if(!Z){var N=w.split("."),B,I;Z=_.r("web_polysi_immutable_root_fix_killswitch")?!((B=a.options)==null?0:(I=B.immutableProps)==null?0:I.has(N[0])):!PQE(a,N[0]);if(N.length>1&&Z){var X=a.getPathMutationSignal(N);Z=function(){var v=ca(a.owner,function(){return a.getWithPath([N[0]])}),U,O=(U=X())==null?void 0:U.value;
return{rootWasDefined:v!==void 0,value:O}}}else Z=function(){var v=a.getWithPath(N);
return{rootWasDefined:v!==void 0,value:v}};
W.signalCache[w]=Z}return Z()};
gvS=function(a,W,w,Z,N){W=W.parts.map(function(I,X){if(I.type==="literal"){w.partWasDefined!=null||(w.partWasDefined=[]);var v;(v=w.partWasDefined)[X]||(v[X]=I.value!==void 0);return I.value}var U;if(I.type==="method"){var O,S=(O=(U=w.partWasDefined)==null?void 0:U[X])!=null?O:!1;S||(S=I.signature.args.every(function(h){return h.type==="literal"}));
var T=!1,p=!0;U=I.signature.args.map(function(h){if(h.type==="literal")return h.value;if(h.type!=="path")throw Error("Fg`"+h.type);var L=XdI(a,w,h.path);h=L.value;L=L.rootWasDefined;T||(T=L);p&&(p=L);return h});
S||(S=N===1?p:T);w.partWasDefined!=null||(w.partWasDefined={});w.partWasDefined[X]=S;if(!S)return;U=(X=XdI(a,w,I.signature.methodName).value)&&typeof X==="function"?X.apply(Z,U):void 0}else O=XdI(a,w,I.path),U=O.value,w.partWasDefined!=null||(w.partWasDefined={}),(S=w.partWasDefined)[X]||(S[X]=U!==void 0||O.rootWasDefined);I.negate&&(U=!U);return U});
if(W.length===1){var B;return((B=w.partWasDefined)==null?0:B[0])?W[0]:vvm}return W.join("")};
ov7=function(a){return typeof a==="object"&&!!a&&"notifyPath"in a&&"canNotifyPath"in a};
kxx=function(a){return typeof a==="object"&&!!a&&"notifyPath"in a};
UrS=function(a){return"polymerController"in a};
Of7=function(a,W){W=""+Kp(W)[0];if(ov7(a))return a.canNotifyPath(W);if(UrS(a)&&ov7(a.polymerController))return a.polymerController.canNotifyPath(W);if(kxx(a)){var w;return!((w=a.properties)==null||!w[W])}if(UrS(a)&&kxx(a.polymerController)){var Z;return!((Z=a.polymerController.properties)==null||!Z[W])}return!1};
SPe=function(a,W,w){ov7(a)||kxx(a)?a.notifyPath(W,w):UrS(a)&&(ov7(a.polymerController)||kxx(a.polymerController))&&a.polymerController.notifyPath(W,w)};
TMC=function(a,W,w){if(w!==vvm){a.kind==="attribute"||a.target!=="textContent"&&(a.target!=="value"||W.localName!=="input"&&W.localName!=="textarea")||(w=w===void 0?"":w);var Z,N=(Z=YPe.Polymer)==null?void 0:Z.sanitizeDOMValue;N&&(w=N(w,a.target,a.kind,W));if(a.kind==="attribute"){a=a.target;if(a==="class"||a==="name"||a==="slot")W=(0,_.zX)(W);pp(W,w,a)}else if(a=a.target,w!==W[a]||typeof w==="object")W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!0,XM(W.localName,a,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
W[a]=w,W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!1)}};
KbS=function(a,W,w,Z){var N=W.parts[0];if(W.parts.length!==1||N.type!=="path"||!Of7(w,W.target))return!1;var B=_.l(N.path.split(".")),I=B.next().value,X=bJ(B);if(!_.r("web_polysi_immutable_root_fix_killswitch")&&PQE(a,I))return!1;Z.signalCache!=null||(Z.signalCache={});B=Z.signalCache[N.path];var v;B=(v=B)==null?void 0:v().value;if((B==null?void 0:B.path)!==void 0){Z=Kp(B.path);var U=Kp(N.path);Z=[W.target].concat(_.K8(Z.slice(U.length-1)));SPe(w,Z,N.negate?!B.value:B.value);return!0}var O=r$(a,I);
var S=O.getChangeRecordSignal(X),T=!1;B=function(){if(!T){var h=ca(a.owner,function(){return O.getWithPath([])});
T||(T=h!==void 0)}return{value:S(),rootWasDefined:T}};
Z.signalCache[N.path]=B;Z.partWasDefined!=null||(Z.partWasDefined={});B=B();(U=Z.partWasDefined)[0]||(U[0]=B.rootWasDefined);var p=ca(a.owner,function(){return O.getWithPath(X)});
Z.partWasDefined[0]&&ca(a.owner,function(){return void TMC(W,w,N.negate?!p:p)});
return!0};
pdS=function(a,W,w,Z,N,B){if(!KbS(a,W,w,Z)){var I=gvS(a,W,Z,N,B);ca(a.owner,function(){return void TMC(W,w,I)})}};
rEU=function(a,W,w,Z,N,B){w=_.l(w);for(var I=w.next(),X={};!I.done;X={infoIndex:void 0},I=w.next()){I=I.value;var v=I.bindings;X.infoIndex=I.infoIndex;I=I.parentInfo;if(v){v=_.l(v);for(var U=v.next(),O={};!U.done;O={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},U=v.next()){O.b$jscomp$254=U.value;if(X.infoIndex===void 0)throw Error("Gg");O.bindingCtx$jscomp$4={};a.effect(function(S,T){return function(){N&&!N()||pdS(a,S.b$jscomp$254,W[T.infoIndex],S.bindingCtx$jscomp$4,Z,B)}}(O,X))}}I&&rEU(a,W,[I],
Z,N,B)}};
AEH=function(a,W){a=(W.parentInfo?AEH(a,W.parentInfo):a).firstChild;for(var w=0;a;a=a.nextSibling)if(W.parentIndex===w++)return a;throw Error("Hg");};
ifC=function(a,W,w,Z){a=document.importNode(a.content,!0);a.__noInsertionPoint=!(Z==null?0:Z.hasInsertionPoint);for(var N=Array(W.length),B={},I=0;I<W.length;I++){var X=W[I],v=AEH(a,X);N[I]=v;X.id&&(B[X.id]=v);if(X.templateInfo){var U=v.parentElement;U&&(U.templateInfo=X.templateInfo,U.parentSignalProxy=w,U.eventListenerHost=Z.eventListenerHost,U.stampingEnabled=Z.enabledSignal)}U=void 0;if((U=X.events)==null?0:U.length)for(U=0;U<X.events.length;U++){var O=X.events[U];htm(Z.eventListenerHost,v,O.name,
O.value,Z.getModel)}}rEU(w,N,W,Z.thisCtx,Z.enabledSignal,Z.methodInvocationRequirement);return{root:a,nodes:N,nodesById:B}};
etI=function(a,W){a=a();var w;(w=cEE.ShadyCSS)==null||w.prepareTemplate(a,W);W=NM9(a);return{template:a,nodeInfoList:W.nodeInfoList,hasInsertionPoint:W.hasInsertionPoint}};
LbS=function(){nvI=!1;for(var a=At.length,W=0;W<a;W++){var w=At[W];if(w)try{w()}catch(Z){Promise.resolve().then(function(){throw Z;})}}At.splice(0,a);
jDI+=a};
Rtx=function(a){nvI||(nvI=!0,JE8.textContent=(Fb8++).toString());At.push(a);return M8S++};
_.cA=function(a,W,w){ht++;a=W?new qPH(ht,a,W,w):new QDU(ht,a);iO.set(ht,a);return ht};
xr7=function(a){(a=iO.get(a))&&a.cancel()};
sDm=function(a,W){a=bfe.get(a);return a?(W=a.get(W))?W:null:null};
_.eK=function(a,W,w,Z){var N=sDm(a,W);if(!N){N=new uJE;var B=bfe.get(a);B||(B=new Map,bfe.set(a,B));B.set(W,N)}a=w.bind(a);N.run(a,Z,void 0)};
_.CQC=function(a,W){var w;(w=sDm(a,W))==null||w.cancel()};
Gx7=function(a){var W;(W=sDm(a,"doRender"))==null||W.flush()};
np=function(a){var W;return(W=a.hostElement)!=null?W:a};
Drv=function(a){var W=a.indexOf(".");return W===-1?a:a.slice(0,W)};
fvm=function(a,W,w,Z,N,B){B=(N=(Z=B?Drv(W):W)?W:null)?a.get(N):a.__data[W];N&&B===void 0&&(B=w[W]);_.E$(a.hostElement,k_m(Z)+"-changed",{value:B,queueProperty:!0,path:N!=null?N:void 0},{bubbles:!1,composed:!1})};
dre=function(a,W){a.__isReflecting=!0;Vd7(a.hostElement,W,a.__data[W]);a.__isReflecting=!1};
mrF=function(a){if(a._onIronRequestResizeNotifications){var W=a._onIronRequestResizeNotifications.bind(a);a._onIronRequestResizeNotifications=function(w){_.QV(w)!==a.hostElement&&W(w)}}a._ariaActiveAttributeChanged&&(a._ariaActiveAttributeChanged=a._ariaActiveAttributeChanged.bind(a.hostElement));
a._activeChanged&&(a._activeChanged=function(w){a.toggles?pp(a.hostElement,w?"true":"false",a.ariaActiveAttribute):a.hostElement.removeAttribute(a.ariaActiveAttribute);a._changedButtonState()});
a._asyncClick&&(a._asyncClick=function(){_.cA(function(){a.hostElement.click()},1)});
!a.keyEventTarget||a.keyEventTarget instanceof EventTarget||(a.keyEventTarget=np(a.keyEventTarget));a._disabledChanged&&(a._disabledChanged=a._disabledChanged.bind(a.hostElement));a._observeItems&&(a._observeItems=function(w){var Z=np(w);return _.Tq(Z).observeNodes(function(N){a._updateItems();a._updateSelected();_.E$(Z,"iron-items-changed",N,{bubbles:!1,cancelable:!1})})});
a._updateItems&&a._updateItems===_.jK._updateItems&&(a._updateItems=function(){var w=_.Tq(a.hostElement).queryDistributedElements(a.selectable||"*");w=Array.prototype.filter.call(w,a._bindFilterItem);a._setItems(w)});
a._computeKeyboardClass&&(a._computeKeyboardClass=function(w){_.mh(a.hostElement,"keyboard-focus",w)});
a.ensureRipple&&(a.ensureRipple=function(w){if(a.hasRipple&&!a.hasRipple()){if(!a._createRipple)return;a._ripple=a._createRipple();a._ripple.noink=a.noink;var Z=a._rippleContainer||a.hostElement;Z&&_.M(Z).appendChild(a._ripple)}var N;if(w&&((N=a._ripple)==null?0:N.uiDownAction)){Z=_.M(a._rippleContainer||a.hostElement);var B;N=(B=w.composedPath())==null?void 0:B[0];Z.contains(N)&&a._ripple.uiDownAction(w)}});
a._updateMultiselectable&&(a._updateMultiselectable=function(w){w?a.hostElement.setAttribute("aria-multiselectable","true"):a.hostElement.removeAttribute("aria-multiselectable")})};
V8U=function(a,W,w){w=_.l(w);for(var Z=w.next();!Z.done;Z=w.next())AV8(Z.value.constructor,a);AV8(W.constructor,a)};
Hfe=function(a,W){a=_.l(a);for(var w=a.next();!w.done;w=a.next())if(w=w.value,w.type==="signal"){var Z=w.propertyKey;if(W.hasOwnProperty(Z)&&W[Z]!=null&&w.attributeType===Object){a:{Z=W[Z].constructor;for(var N=_.l(zte),B=N.next();!B.done;B=N.next())if(B=B.value,Z===B){Z=B;break a}Z=Object}w.attributeType=Z}}};
yEI=function(){};
EvC=function(a){var W;return(W=a.hostElement)!=null?W:a};
amE=function(){throw Error("Lg");};
WMv=function(a,W){a.constructor.prototype.useSignals=!0;var w=new a.constructor;V8U(w,a,W.behaviors);Hfe(W.reactiveSchemas,w);w={};for(var Z=_.l(W.reactiveSchemas),N=Z.next();!N.done;N=Z.next())N=N.value,N.type==="signal"&&(w[N.propertyKey]=N.attributeType);var B={copyPropertiesToProto:amE,didRegister:!1,typesForSignals:w},I=["disable-upgrade"].concat(_.K8(W.observedAttributes)),X=function(v){Lp.call(this,a,W,B,v)};
_.c(X,Lp);_.dU.Object.defineProperties(X,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I}}});
B.copyPropertiesToProto=function(){for(var v=0;v<W.behaviors.length;v++)id7(W.behaviors[v],X.prototype);id7(a,X.prototype)};
W.legacyOptimizations||B.copyPropertiesToProto();X.prototype.is=a.is;return X};
wk7=function(a,W){if(Object.getPrototypeOf(W.prototype).constructor!==_.u)throw Error("Mg");W.prototype.is=a.is;return WMv(W.prototype,a)};
ZPF=function(a){return a.type==="compute"||a.type==="computeWithMethod"};
N_x=function(a){for(var W=a.reactiveSchemas.filter(ZPF),w=new Map,Z=new Map,N=new Map,B=_.l(W),I=B.next();!I.done;I=B.next())I=I.value,w.set(I.propertyKey,I),Z.set(I.propertyKey,[]),N.set(I.propertyKey,0);B=0;W=_.l(W);for(I=W.next();!I.done;I=W.next()){I=I.value;for(var X=_.l(I.type==="computeWithMethod"?I.method.args:I.args),v=X.next();!v.done;v=X.next())v=v.value,v.type!=="literal"&&(v=v.path.split(".")[0],Z.has(v)&&(Z.get(v).push(I.propertyKey),N.set(I.propertyKey,N.get(I.propertyKey)+1),B++))}I=
[].concat(_.K8(Z.keys())).filter(function(U){return N.get(U)===0});
for(W=[];I.length;)for(X=I.shift(),W.push(w.get(X)),X=_.l(Z.get(X)),v=X.next();!v.done;v=X.next())v=v.value,N.set(v,N.get(v)-1),B--,N.get(v)===0&&I.push(v);w=a.reactiveSchemas.filter(function(U){return!ZPF(U)});
a.reactiveSchemas=[].concat(_.K8(w),_.K8(W))};
tvm=function(a,W){if(W.properties)for(var w=_.l(Object.entries(W.properties)),Z=w.next();!Z.done;Z=w.next()){var N=_.l(Z.value);Z=N.next().value;N=N.next().value;a.properties[Z]=typeof N==="function"?{type:N}:N}W.observers&&a.observers.push.apply(a.observers,_.K8(W.observers));W.disabledPolySiReactions&&a.disabledPolySiReactions.push.apply(a.disabledPolySiReactions,_.K8(W.disabledPolySiReactions))};
$$I=function(a,W){for(var w=W.length-1;w>=0;w--){var Z=W[w];Array.isArray(Z)?$$I(a,Z):a.indexOf(Z)<0&&a.unshift(Z)}};
B_C=function(a,W){a.reactiveSchemas=a.reactiveSchemas.filter(function(w){return w.type==="observe"&&W.includes(w.method.methodName)||ZPF(w)&&W.includes(w.propertyKey)?!1:!0})};
ImH=function(a,W){var w=W.prototype,Z,N,B={is:a.is,reactiveSchemas:[],observedAttributes:[],behaviors:[Sue.InjectBehavior,SK.prototype],disableElementRegistration:a.disableElementRegistration,provide:(Z=a.providers)!=null?Z:[],reactivityMode:a.reactivityMode,signalProperties:(N=w.signalProperties)!=null?N:[]};"template"in W?B.templateGetter=function(){return W.template}:a.getTemplate&&(B.templateGetter=a.getTemplate);
w.behaviors&&$$I(B.behaviors,w.behaviors);lm9(B,W);return B};
lm9=function(a,W){for(var w=W.prototype,Z={properties:{},observers:[],disabledPolySiReactions:[]},N=_.l(a.behaviors),B=N.next();!B.done;B=N.next())tvm(Z,B.value);tvm(Z,w);if(a.signalProperties)for(w=_.l(a.signalProperties),N=w.next();!N.done;N=w.next())delete Z.properties[N.value];w=_.l(Object.entries(Z.properties));for(N=w.next();!N.done;N=w.next()){B=_.l(N.value);N=B.next().value;B=B.next().value;var I=void 0;if((I=a.signalProperties)==null||!I.includes(N)){I=void 0;var X=a,v=B.type;if(!v)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{v=Reflect.getMetadata("design:type",W,N);for(var U=_.l(PuC),O=U.next();!O.done;O=U.next())if(O=O.value,v===O){v=O;break a}v=Object}else v=String;B.computed||B.selector||(X.reactiveSchemas.push({type:"signal",propertyKey:N,value:B.value,attributeType:v,readOnly:B.readOnly}),X.observedAttributes.push(_.vG(N)));B.reflectToAttribute&&X.reactiveSchemas.push({type:"reflect",propertyKey:N});if(B.computed){v=mlH(B.computed);if(!v)throw Error("Ng");X.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:N,method:v,value:B.value})}B.observer&&X.reactiveSchemas.push({type:"observe",method:{methodName:B.observer,args:[{type:"path",path:N}]}});B.notify&&X.reactiveSchemas.push({type:"notify",propertyKey:N});B.selector&&X.reactiveSchemas.push({type:"redux",propertyKey:N,selector:B.selector,selectorArgs:(I=B.selectorArgs)!=null?I:[]})}}Xk8&&N_x(a);W=_.l(Z.observers);for(N=W.next();!N.done;N=W.next())w=a,N=N.value,(B=mlH(N))?w.reactiveSchemas.push({type:"observe",method:B}):console.log('Warning: unable to parse observe declaration: "'+
N+'"');B_C(a,Z.disabledPolySiReactions)};
vxe=function(a,W){for(var w=0;w<W.length;w++){var Z=W[w],N=void 0;(N=Z).showHideApi!=null||(N.showHideApi={});N=void 0;!!a!==!((N=Z.showHideApi)==null||!N.hideTemplateChildren)&&(Z.nodeType===Node.TEXT_NODE?a?(Z.showHideApi.polymerTextContent=Z.textContent,Z.textContent=""):(N=void 0,Z.textContent=(N=Z.showHideApi.polymerTextContent)!=null?N:null):Z instanceof Element&&Z.localName==="slot"?a?(Z.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.zX)((0,_.zX)(Z).parentNode).replaceChild(Z.showHideApi.polymerReplaced,
Z)):(N=Z.showHideApi.polymerReplaced)&&(0,_.zX)((0,_.zX)(N).parentNode).replaceChild(Z,N):Z instanceof HTMLElement&&Z.style&&(a?(Z.showHideApi.polymerDisplay=Z.style.display,Z.style.display="none"):Z.style.display=Z.showHideApi.polymerDisplay));Z.showHideApi.hideTemplateChildren=a;Z.showHideChildren&&Z.showHideChildren(a)}};
oxx=function(){if(!gx7){var a=document.createElement("style");a.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(a);gx7=!0}};
Jt=function(){return _.r("disable_hidden_dom_if_using_stamper")||_.r("creator_disable_hidden_dom_if_using_stamper")};
kWD=function(a,W){var w=_.FM().getState();return W?a.apply(null,[w].concat(_.K8(W))):a(w)};
SHH=function(){if(U$9)return U$9;var a=_.l(_.$1(0,void 0,"Nl6eIe")),W=a.next().value;a.next();var w=a.next().value;_.FM().subscribe(function(){OPI(w)});
return U$9=W};
OPI=function(a){_.r("delay_redux_signal_update_killswitch")?a(function(W){return W+1}):YHH||(YHH=!0,Promise.resolve().then(function(){a(function(W){return W+1});
YHH=!1}))};
_.FM=function(){return T_C.getAppStore()};
Mt=function(a,W){return T_C.getSelectFn()(a,W)};
_.R5=function(a){T_C.getDispatchFn()(a)};
KMS=function(a,W){var w={},Z;for(Z in a)w[Z]=W(a[Z],Z);return w};
_.qt=function(a,W){return function(){var w;return(w=_.ik(a))!=null?w:W}};
_.Qn=function(a,W){var w=Object.assign({},a),Z;for(Z in W)W.hasOwnProperty(Z)&&(w[Z]=_.qt(a[Z],W[Z]));return w};
pkx=function(a,W,w){a instanceof Element&&(w.debugName||(w.debugName="<"+a.tagName.toLowerCase()+(a.tagName.includes("-")?">":"."+a.className+">")),_.r("ytwiz_enable_debug_component_props")&&(a.debugProps||(a.debugProps=KMS(W,function(Z){return function(){return Z()}}))))};
_.xQ=function(a,W){var w=function(Z){var N={stack:[],error:void 0,hasError:!1};try{var B=rRm={};var I=ARe(N,mKe("component()")),X;if(((X=w)==null?0:X.idomCompat)&&Z.renderedFromIdom){I==null||I.attr("idomCompat",!0);var v,U=typeof w.idomCompat==="object"?(v=w)==null?void 0:v.idomCompat.callbacks:{},O=_.l(hfC(Z,U,w.debugName)),S=O.next().value;O.next();var T=O.next().value,p=iPU(a,S);B.privateValue=p;rRm=void 0;pkx(p,S,w);I==null||I.attr("debugName",w.debugName);var h=tJU(p),L=Array.isArray(h)?h[0]:
h;L[tS]||(L[tS]={});L[tS].updateSignalsFromIdomProps=T;return p}var F=KMS(Z,cR8);var x=iPU(a,F);B.privateValue=x;rRm=void 0;pkx(x,F,w);I==null||I.attr("debugName",w.debugName);return x}catch(G){N.error=G,N.hasError=!0}finally{efm(N)}};
w.debugName=W===void 0?"":W;return w};
iPU=function(a,W){a=a(W);return IT(a)};
nxH=function(a,W){a[W]||(a=new _.Uw("IDOM interop setter undefined. Key:",W),_.eJ(a))};
cR8=function(a,W){return W==="children"||W==="ref"||typeof a==="function"||a===void 0?a:function(){return _.ik(a)}};
hfC=function(a,W,w){var Z={},N={},B={},I={},X;for(X in a){I={key$jscomp$886:I.key$jscomp$886};I.key$jscomp$886=X;var v=a[I.key$jscomp$886];if(I.key$jscomp$886==="children"||I.key$jscomp$886==="ref")Z[I.key$jscomp$886]=v;else if(typeof v==="function")I.key$jscomp$886 in W||v.length>0?(B[I.key$jscomp$886]=v,Z[I.key$jscomp$886]=function(O){return function(){return B[O.key$jscomp$886].apply(B,_.K8(_.TH.apply(0,arguments)))}}(I)):Z[I.key$jscomp$886]=v;
else if(!(a[I.key$jscomp$886]===void 0&&I.key$jscomp$886 in W)){var U=_.l(_.$1(a[I.key$jscomp$886],{debugName:"__cwis:"+w+":"+I.key$jscomp$886},"cEBU8c"));v=U.next().value;U=U.next().value;Z[I.key$jscomp$886]=v;N[I.key$jscomp$886]=U}}return[Z,N,function(O){var S={},T;for(T in O)S={key$jscomp$887:S.key$jscomp$887,val$jscomp$117:void 0},S.key$jscomp$887=T,S.val$jscomp$117=O[S.key$jscomp$887],S.key$jscomp$887!=="children"&&S.key$jscomp$887!=="ref"&&(typeof S.val$jscomp$117==="function"?S.key$jscomp$887 in
W?B[S.key$jscomp$887]=S.val$jscomp$117:S.val$jscomp$117.length>0&&(B[S.key$jscomp$887]=S.val$jscomp$117,_.jJ(new _.Uw("Callback detected that was not set in the idomCompat callbacks map. Key:",S.key$jscomp$887))):S.key$jscomp$887 in W&&S.val$jscomp$117===void 0||(nxH(N,S.key$jscomp$887),va(function(p){return function(){N[p.key$jscomp$887](p.val$jscomp$117)}}(S))))}]};
JRD=function(a,W,w){var Z=i49(a.prototype,jje,a.prototype.behaviors);Z.prototype.is=W;Z.prototype.localName=W;w&&LMS(Z,w);return function(N){N&&(Z.prototype.hostElement=N);var B=new Z;B.root=B;B.hostElement=N;return B}};
LMS=function(a,W){var w;Object.defineProperty(a.prototype,"_template",{get:function(){w===void 0&&(w=W());return w},
set:function(Z){w=Z},
configurable:!0,enumerable:!0})};
Qjv=function(a,W,w,Z){function N(){if(!p){for(var h=new Set,L=_.l(O),F=L.next();!F.done;F=L.next()){F=F.value;for(var x=_.l(Object.getOwnPropertyNames(F)),G=x.next();!G.done;G=x.next()){G=G.value;var V=void 0,d=(V=Object.getOwnPropertyDescriptor(F,G))==null?void 0:V.value;d&&d instanceof Function&&!bO(G)&&(!X[G]||_.r("polymer_forward_method_killswitch"))&&h.add(G)}}L=_.l(Object.entries(Object.getOwnPropertyDescriptors(a.prototype)));for(F=L.next();!F.done;F=L.next())x=_.l(F.value),F=x.next().value,
x=x.next().value,x.value instanceof Function&&!bO(F)&&h.add(F);p=h}return p}
FMS(a,W,Z==null?void 0:Z.providers);cN8(a.prototype,a,!0);var B=JRD(a,W,w),I,X=(I=a.prototype.properties)!=null?I:{},v,U,O=(U=(v=a.prototype.behaviors)==null?void 0:v.flat(Infinity))!=null?U:[];w=_.l(O);for(I=w.next();!I.done;I=w.next())X=Object.assign({},I.value.properties,X);var S=[].concat(_.K8(MvU),_.K8(Object.keys(X).map(function(h){return _.vG(h)}))),T=!1,p;
return{ctor:function(h,L){var F=B(h),x,G;h=[].concat(_.K8((x=Z==null?void 0:Z.allowedProps)!=null?x:[]),_.K8((G=Z==null?void 0:Z.allowedPropsFromBehaviors)!=null?G:[]));F.allowedProps=h.length>0?h:void 0;x={};G=_.l(S);for(h=G.next();!h.done;h=G.next())h=h.value,x[h]=_.gQ(h);F.__dataAttributes=x;var V=F.ready.bind(F);F.ready=function(){L.beforeReady();V();if(I5(W)&&!T){var d=F.__templateInfo;if(d==null?0:d.hostProps){d=_.l(Object.keys(d.hostProps));for(var ZD=d.next();!ZD.done;ZD=d.next())XM(W,ZD.value,
"PROPERTY_ACCESS_GET_INTERNAL")}T=!0}};
F._overrideLegacyUndefined=!0;return F},
props:X,observedAttributes:S,getInitialMethods:N,getPropsToForwardBeforeRegister:function(){for(var h=[],L=new Set,F=_.l(Object.keys(X)),x=F.next();!x.done;x=F.next())x=x.value,h.push([x,X[x].readOnly]),L.add(x);F=N();x=_.l(Object.keys(Object.getOwnPropertyDescriptors(a.prototype)));for(var G=x.next();!G.done;G=x.next())G=G.value,!RfC(G)||F.has(G)||L.has(G)||(h.push([G,!1]),L.add(G));L=_.l(qHD);for(F=L.next();!F.done;F=L.next())h.push([F.value,!0]);return h},
getPropsToForwardBeforeReady:function(h){for(var L=[],F=_.l(Object.entries(h)),x=F.next();!x.done;x=F.next()){var G=_.l(x.value);x=G.next().value;G=G.next().value;if(RfC(x)&&!(G instanceof Function)&&(L.push([x,!1]),I5(W))){var V=G=void 0;(V=(G=h)._createPropertyAccessor)==null||V.call(G,x)}}return L},
shouldForwardProp:RfC,shouldLog:I5}};
FMS=function(a,W,w){Yux(a,w);a.prototype.behaviors.unshift(x$v);if($lF()){if(I5(W)){var Z;(Z=a.prototype).behaviors!=null||(Z.behaviors=[]);a.prototype.behaviors.unshift(PCI())}XRU(a)}_.R(SK.prototype)(a.prototype,"__templateHelpers")};
bO=function(a){return bPU.has(a)||a.startsWith("__compute__")};
RfC=function(a){return!bO(a)&&!a.startsWith("_")&&!a.endsWith("_")};
D$E=function(a,W){function w(){var T=v();T=_.l(T);for(var p=T.next();!p.done;p=T.next()){var h=_.l(p.value);p=h.next().value;h=h.next().value;sjU(S.prototype,p,h)}Z=!0}
var Z=!1,N=a.ctor,B=a.getInitialMethods,I=a.observedAttributes,X=a.getPropsToForwardBeforeReady,v=a.getPropsToForwardBeforeRegister,U=a.shouldForwardProp,O=a.shouldLog,S=function(){var T=HTMLElement.call(this)||this;T.didForwardDynamicProps=!1;T.loggingStatus={};Z||w();T.inst=N(T,{beforeReady:function(){T.didForwardDynamicProps||(T.forwardDynamicProps(),T.didForwardDynamicProps=!0)}});
T.controllerProxy=lUE(T.inst,W);T.forwardMethods();return T};
_.c(S,HTMLElement);S.prototype.forwardMethods=function(){for(var T=this,p=_.l(this.inst.getExtraMethodsToForward()),h=p.next(),L={};!h.done;L={method$jscomp$62:void 0},h=p.next()){var F=_.l(h.value);h=F.next().value;F=F.next().value;L.method$jscomp$62=F;this[h]=function(x){return function(){return x.method$jscomp$62.call.apply(x.method$jscomp$62,[T.inst].concat(_.K8(_.TH.apply(0,arguments))))}}(L)}p=_.l(B());
for(L=p.next();!L.done;L=p.next())L=L.value,U(L)&&uyH(this,L),O(W)&&!bO(L)&&CuS(this.inst,L)};
S.prototype.forwardDynamicProps=function(){var T=X(this.inst);T=_.l(T);for(var p=T.next();!p.done;p=T.next()){var h=_.l(p.value);p=h.next().value;h=h.next().value;sjU(this,p,h);O(W)&&!bO(p)&&GW8(this.inst,p)}};
S.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
S.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
S.prototype.attributeChangedCallback=function(T,p,h){this.inst.attributeChangedCallbackWrapper(T,p,h)};
_.dU.Object.defineProperties(S.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return W}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.dU.Object.defineProperties(S,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I}}});
customElements.define(W,S)};
sjU=function(a,W,w){a.hasOwnProperty(W)||Object.defineProperty(a,W,{get:function(){var Z,N=((Z=a.is)!=null?Z:a.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||XM(N,W,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,Z=this.polymerController[W],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,Z},
set:function(Z){if(!w){var N,B=((N=a.is)!=null?N:a.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||XM(B,W,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=W,this.loggingStatus.bypassProxyController=!0,this.polymerController[W]!==Z&&(N={},this.polymerController.setProperties((N[W]=Z,N)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
uyH=function(a,W,w){var Z=a.polymerController;a[W]=function(){var N=_.TH.apply(0,arguments);a.loggingStatus.currentExternalCall=W;a.loggingStatus.bypassProxyController=!0;var B,I=((B=a.is)!=null?B:a.tagName).toLowerCase();XM(I,W,"PROPERTY_ACCESS_CALL_EXTERNAL");var X;B=(X=w!=null?w:Z[W])==null?void 0:X.call.apply(X,[Z].concat(_.K8(N)));a.loggingStatus.currentExternalCall=void 0;a.loggingStatus.bypassProxyController=!1;return B}};
CuS=function(a,W){var w=a.hostElement,Z=a[W];a[W]=function(){var N=_.TH.apply(0,arguments);if(w.loggingStatus.currentExternalCall!==W){var B,I=((B=w.is)!=null?B:w.tagName).toLowerCase();XM(I,W,"PROPERTY_ACCESS_CALL_INTERNAL")}return Z==null?void 0:Z.apply(a,N)}};
GW8=function(a,W){var w=Object.getOwnPropertyDescriptor(a,W);w&&!w.get&&Object.defineProperty(a,W,{get:function(){IUS(a.hostElement,W);return w.value},
set:function(Z){vA(a.hostElement,W);w.value=Z}})};
fme=function(a){return _.r("poly_si_dom_repeat_detached_fix_killswitch")||a.tagName!=="PS-DOM-REPEAT"?a.tagName==="DOM-REPEAT":!0};
m$U=function(a,W){var w=d$U(a);a instanceof Element&&w.unshift(a);a=_.l(w.filter(fme));for(var Z=a.next();!Z.done;Z=a.next()){var N=void 0;Z=_.l((N=Z.value.__instances)!=null?N:[]);for(N=Z.next();!N.done;N=Z.next())if(N=N.value,N.root){N=Array.from(N.root.children);N=_.l(N);for(var B=N.next();!B.done;B=N.next())w.push.apply(w,_.K8(m$U(B.value,W)))}}return w.filter(function(I){return I.usePatchedLifecycles&&I.lifecycleIsConnected===W})};
d$U=function(a){var W=null;a instanceof Element?W=Element.prototype.querySelectorAll:a instanceof DocumentFragment&&(W=DocumentFragment.prototype.querySelectorAll);return W?Array.from(W.call(a,"*")):[]};
sN=function(a){to(function(){for(var W=_.l(m$U(a,!1)),w=W.next();!w.done;w=W.next()){w=w.value;w.lifecycleIsConnected=!0;try{var Z=void 0,N=void 0,B=void 0,I=void 0;(Z=(I=w.polymerController)!=null?I:w)==null||(B=(N=Z).connectedCallback)==null||B.call(N)}catch(X){_.eJ(X)}}})};
uO=function(a){to(function(){for(var W=_.l(m$U(a,!0)),w=W.next();!w.done;w=W.next()){w=w.value;w.lifecycleIsConnected=!1;try{var Z=void 0,N=void 0,B=void 0,I=void 0;(Z=(I=w.polymerController)!=null?I:w)==null||(B=(N=Z).disconnectedCallback)==null||B.call(N)}catch(X){_.eJ(X)}}})};
W0D=function(){if(!Vv7){Vv7=!0;var a=[Node];Cp&&a.push(Cp.Wrapper);var W=Node.prototype.insertBefore,w=Node.prototype.removeChild;a=_.l(a);for(var Z=a.next(),N={};!Z.done;N={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},Z=a.next())Z=Z.value,N.nativeInsertBefore=Z.prototype.insertBefore,Z.prototype.insertBefore=function(I){return function(X,v){if(X instanceof DocumentFragment){var U=Array.from(X.children);X=I.nativeInsertBefore.call(this,X,v);
if(this.isConnected&&I.nativeInsertBefore===W)for(v=_.l(U),U=v.next();!U.done;U=v.next())sN(U.value);return X}U=X instanceof Element&&X.isConnected;v=I.nativeInsertBefore.call(this,X,v);U&&uO(X);this.isConnected&&sN(X);return v}}(N),N.nativeAppendChild=Z.prototype.appendChild,Z.prototype.appendChild=function(I){return function(X){if(X instanceof DocumentFragment){var v=Array.from(X.children);
X=I.nativeAppendChild.call(this,X);if(this.isConnected){v=_.l(v);for(var U=v.next();!U.done;U=v.next())sN(U.value)}return X}v=X instanceof Element&&X.isConnected;U=I.nativeAppendChild.call(this,X);v&&uO(X);this.isConnected&&sN(X);return U}}(N),N.nativeRemoveChild=Z.prototype.removeChild,Z.prototype.removeChild=function(I){return function(X){var v=X instanceof Element&&X.isConnected,U=I.nativeRemoveChild.call(this,X);
v&&w===I.nativeRemoveChild&&uO(X);return U}}(N),N.nativeReplaceChild=Z.prototype.replaceChild,Z.prototype.replaceChild=function(I){return function(X,v){if(X instanceof DocumentFragment){var U=Array.from(X.children);
X=I.nativeReplaceChild.call(this,X,v);if(this.isConnected)for(uO(v),v=_.l(U),U=v.next();!U.done;U=v.next())sN(U.value);return X}U=X instanceof Element&&X.isConnected;var O=this.isConnected,S=I.nativeReplaceChild.call(this,X,v);O&&uO(v);U&&uO(X);O&&sN(X);return S}}(N);
a=[Element];Cp&&a.push(Cp.Wrapper);a=_.l(a);Z=a.next();for(N={};!Z.done;N={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},Z=a.next())Z=Z.value,Z.prototype.before=zfm(Z.prototype.before),Z.prototype.after=zfm(Z.prototype.after),N.nativeReplaceWith=Z.prototype.replaceWith,Z.prototype.replaceWith=function(I){return function(){var X=_.TH.apply(0,arguments),v=_.l(HP8(X)),U=v.next().value,
O=v.next().value;v=this.isConnected;I.nativeReplaceWith.apply(this,X);X=_.l(O);for(O=X.next();!O.done;O=X.next())uO(O.value);if(v)for(uO(this),U=_.l(U),v=U.next();!v.done;v=U.next())v=v.value,v instanceof Element&&sN(v)}}(N),N.nativeRemove=Z.prototype.remove,Z.prototype.remove=function(I){return function(){var X=this.isConnected;
I.nativeRemove.call(this);X&&uO(this)}}(N),N.nativeInsertAdjacentElement=Z.prototype.insertAdjacentElement,Z.prototype.insertAdjacentElement=function(I){return function(X,v){var U=v.isConnected;
X=I.nativeInsertAdjacentElement.call(this,X,v);U&&uO(v);X.isConnected&&sN(X);return X}}(N),N.nativeSetAttribute=Z.prototype.setAttribute,Z.prototype.setAttribute=function(I){return function(X,v){var U=yRD(this);
if(!U.usePatchedLifecycles)return I.nativeSetAttribute.call(this,X,v);var O=this.getAttribute(X);I.nativeSetAttribute.call(this,X,v);v=this.getAttribute(X);Exm(U,X,O,v)}}(N),N.nativeRemoveAttribute=Z.prototype.removeAttribute,Z.prototype.removeAttribute=function(I){return function(X){var v=yRD(this);
if(!v.usePatchedLifecycles)return I.nativeRemoveAttribute.call(this,X);var U=this.getAttribute(X);I.nativeRemoveAttribute.call(this,X);U!==null&&Exm(v,X,U,null)}}(N),N.nativeToggleAttribute=Z.prototype.toggleAttribute,Z.prototype.toggleAttribute=function(I){return function(X,v){var U=yRD(this);
if(!this.usePatchedLifecycles)return I.nativeToggleAttribute.call(this,X,v);var O=this.getAttribute(X),S=O!==null;v=I.nativeToggleAttribute.call(this,X,v);v!==S&&Exm(U,X,O,v?"":null);return v}}(N);
a=[Document,DocumentFragment,Element,ShadowRoot];Cp&&a.push(Cp.Wrapper);a=_.l(a);for(N=a.next();!N.done;N=a.next())N=N.value,N.prototype.prepend=zfm(N.prototype.prepend),N.prototype.append=zfm(N.prototype.append);(Cp==null?void 0:Cp.noPatch)===!0&&aIv();document.readyState==="complete"?sN(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&sN(document.body)});
var B=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");B&&B.get&&B.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:B.enumerable,configurable:!0,get:B.get,set:function(I){I||uO(this);B.set.call(this,I);return I}})}};
zfm=function(a){return function(){var W=_.TH.apply(0,arguments),w=_.l(HP8(W)),Z=w.next().value;w=w.next().value;a.apply(this,W);W=_.l(w);for(w=W.next();!w.done;w=W.next())uO(w.value);if(this.isConnected)for(Z=_.l(Z),W=Z.next();!W.done;W=Z.next())W=W.value,W instanceof Element&&sN(W)}};
aIv=function(){for(var a=_.l(wt8),W=a.next();!W.done;W=a.next()){W=W.value.prototype;for(var w=_.l(ZT9),Z=w.next();!Z.done;Z=w.next()){Z=Z.value;var N=Object.getOwnPropertyDescriptor(W,Z);N&&Object.defineProperty(W,"__shady_native_"+Z,N)}}};
Exm=function(a,W,w,Z){var N,B;if((N=a.polymerController)==null?0:(B=N.observedAttributes)==null?0:B.includes(W))if(a=a.polymerController,a.attributeChangedCallbackWrapper)a.attributeChangedCallbackWrapper.call(a,W,w,Z);else{var I;(I=a.attributeChangedCallback)==null||I.call(a,W,w,Z)}};
HP8=function(a){var W=[],w=[];a=_.l(a);for(var Z=a.next();!Z.done;Z=a.next())Z=Z.value,Z instanceof Element&&Z.isConnected&&w.push(Z),Z instanceof DocumentFragment?W.push.apply(W,_.K8(Array.from(Z.children))):W.push(Z);return[W,w]};
yRD=function(a){return!(a instanceof Element)&&a.node instanceof Element?a.node:a};
Nxe=function(a,W){var w=W?["children"].concat(_.K8(W)):["children"];W=[];w=_.l(w);for(var Z=w.next();!Z.done;Z=w.next()){var N=Z.value;if(a.hasOwnProperty(N)){Z=a[N];Z=typeof Z==="function"?Z():Z;Z=IT(Array.isArray(Z)?Z:[Z]).flat();if(N!=="children"){N=k_m(N);for(var B=_.l(Z),I=B.next();!I.done;I=B.next())I=I.value,I instanceof Element&&I.setAttribute("slot",N)}W.push(Z)}}W.length===0?a=[]:(a=IT(_.k("div",null,W)),a=Array.from(a.childNodes));return a};
$Cm=function(a,W,w){var Z={};_.pa(function(){var N={},B;for(B in W)if(W.hasOwnProperty(B)){var I=void 0,X=void 0;if(!(((I=w.slotProps)==null?0:I.includes(B))||B==="children"||((X=w.callbackProps)==null?0:X.includes(B))||B==="ref")&&(I=_.ik(W[B]),Z[B]!==I)){Z[B]=I;X=void 0;var v=(X=a.hostElement)!=null?X:a;tYm.has(B)&&(v[B]=I);N[B]=I}}va(function(){if(a.setProperties)a.setProperties(N);else for(var U=_.l(Object.entries(N)),O=U.next();!O.done;O=U.next()){var S=_.l(O.value);O=S.next().value;S=S.next().value;
a[O]=S}})})};
lI8=function(a,W,w,Z){var N=Nxe(w,Z.slotProps),B=_.r("web_wcw_disable_slot_host_shady_dom_wrap")?a:(0,_.zX)(a);N=_.l(N);for(var I=N.next();!I.done;I=N.next())B.appendChild(I.value);$Cm(W,w,Z);Z=_.l(Z.callbackProps||[]);N=Z.next();for(B={};!N.done;B={kebabEventName:void 0,eventListener:void 0},N=Z.next())I=N=N.value,String(N).substring(0,2)==="on"&&w[I]?(B.kebabEventName=k_m(String(N).substring(2)),B.eventListener=w[I],a.addEventListener(B.kebabEventName,B.eventListener),_.Ao(function(O){return function(){a.removeEventListener(O.kebabEventName,
O.eventListener)}}(B))):W[I]=w[I];
if(w.ref){w=_.l(Bx9(w.ref));var X=w.next().value,v=w.next().value,U=W.attached.bind(W);W.attached=function(){X(a);U()};
_.Ao(function(){v()})}};
Bx9=function(a){if(typeof a==="function"){var W;return[function(w){W=a(w)},
function(){var w;(w=W)==null||w()}]}if(!a.onRender||!a.onUnmount)throw Error("Rg");
return[a.onRender,a.onUnmount]};
vwe=function(a,W,w,Z,N){Z=Z===void 0?{}:Z;var B=II8,I=!1;B?(I=!0,II8=void 0):(P$C=W,B=document.createElement(W),P$C=void 0);var X=B;X.usePatchedLifecycles=!0;X.lifecycleIsConnected=!1;B.loggingStatus={};var v=Xt9(a,W,B,Z,N);_.Ao(function(){X.lifecycleIsConnected&&(X.lifecycleIsConnected=!1,v.disconnectedCallback())});
I||lI8(B,v,w,Z);return B};
Xt9=function(a,W,w,Z,N){N=N===void 0?Qjv:N;gw9[W]!=null||(gw9[W]=N(a,W,Z==null?void 0:Z.getTemplate,Z));var B=gw9[W],I=B.ctor;N=B.getInitialMethods;var X=B.getPropsToForwardBeforeReady;a=B.getPropsToForwardBeforeRegister;Z=B.shouldForwardProp;var v=B.observedAttributes,U=B.shouldLog,O=I(w,{beforeReady:function(){var S=O;S._takeAttributes?S._takeAttributes():S.setPropertiesFromInitialAttributeValues&&S.setPropertiesFromInitialAttributeValues();S=_.l(X(w.polymerController));for(var T=S.next();!T.done;T=
S.next()){var p=_.l(T.value);T=p.next().value;p=p.next().value;sjU(w,T,p);U(W)&&!bO(T)&&GW8(w.polymerController,T)}w.polymerController=lUE(O,W)}});
w.polymerController=O;w.polymerController.observedAttributes=v;B=_.l(O.getExtraMethodsToForward());for(I=B.next();!I.done;I=B.next())v=_.l(I.value),I=v.next().value,v=v.next().value,uyH(w,I,v);N=_.l(N());for(B=N.next();!B.done;B=N.next())B=B.value,Z(B)&&uyH(w,B),U(W)&&!bO(B)&&CuS(O,B);a=_.l(a());for(Z=a.next();!Z.done;Z=a.next())N=_.l(Z.value),Z=N.next().value,N=N.next().value,sjU(w,Z,N);return O};
kg8=function(a,W){return GD===W?(a.isInert=!0,GD="",!0):owF===W?(a.isInert=!0,owF="",!0):!1};
UC7=function(a){var W=DC;DC=a;return W};
SrU=function(a){if(fp.has(a))owF=a;else if(d$.has(a)&&DC&&OT8(DC)===a){var W;(W=DC)._numRenders!=null||(W._numRenders=0);DC._numRenders++;if(DC._numRenders>1)throw Error("Sg");return DC}};
YrE=function(a){fp.has(OT8(a))?owF=OT8(a):d$.has(OT8(a))&&DC!==a&&(a._isInert=!0)};
OT8=function(a){var W;return(W=a==null?void 0:a.tagName.toLowerCase())!=null?W:""};
Tx7=function(a,W){if(a.componentType===k1)throw Error("Tg");d$.add(W);var w=function(){var Z=HTMLElement.call(this)||this;Z.is=W;if(P$C===W)return Z.isInert=!0,Z;Z.createElement();return Z};
_.c(w,HTMLElement);w.prototype.createElement=function(){if(!this.isInert){II8=this;var Z=_.l(n_F(function(){return _.k(a,null)})).next().value;
II8=void 0;Ivx(this);return Z}};
customElements.define(W,w)};
ptI=function(a,W,w,Z,N){a.prototype.is=W;(Z==null?0:Z.useSink)?K0E(a,W,w,Z,N):(w=Qjv(a,W,w,Z),D$E(w,W));return a};
K0E=function(a,W,w,Z,N){W0D();var B=_.xQ(function(I){return vwe(a,W,I,Object.assign({},Z,{getTemplate:w}),N)},"a");
Tx7(B,W);return B};
A6F=function(a){return!r6S.has(a)};
c6v=function(a,W,w,Z){function N(){if(!S){for(var T=new Set(hAH),p=_.l(B.behaviors),h=p.next();!h.done;h=p.next()){h=h.value;for(var L=_.l(Object.getOwnPropertyNames(h)),F=L.next();!F.done;F=L.next()){F=F.value;var x=void 0,G=(x=Object.getOwnPropertyDescriptor(h,F))==null?void 0:x.value;G&&G instanceof Function&&(!U[F]||_.r("polymer_forward_method_killswitch"))&&T.add(F)}}p=_.l(Object.entries(Object.getOwnPropertyDescriptors(a.prototype)));for(h=p.next();!h.done;h=p.next())L=_.l(h.value),h=L.next().value,
L=L.next().value,L.value instanceof Function&&T.add(h);S=T}return S}
var B=ImH({is:W,disableElementRegistration:!1,getTemplate:w,providers:Z==null?void 0:Z.providers,reactivityMode:Z==null?void 0:Z.reactivityMode},a);if((Z==null?0:Z.allowedProps)||(Z==null?0:Z.allowedPropsFromBehaviors)){var I,X;B.allowedProps=[].concat(_.K8((I=Z.allowedProps)!=null?I:[]),_.K8((X=Z.allowedPropsFromBehaviors)!=null?X:[]))}var v=wk7(B,a);W=v.observedAttributes;var U={};w=_.l(B.reactiveSchemas);for(Z=w.next();!Z.done;Z=w.next())if(Z=Z.value,Z.type==="signal")U[Z.propertyKey]={readOnly:Z.readOnly},
Z.readOnly&&(U[JVS(Z.propertyKey)]={readOnly:!0});else if(Z.type==="compute"||Z.type==="computeWithMethod"||Z.type==="redux")U[Z.propertyKey]={readOnly:!0};var O=B.reactiveSchemas.length,S;return{ctor:function(T,p){T=new v(T);T.beforeReady=p.beforeReady;return T},
props:U,observedAttributes:W,getInitialMethods:N,getPropsToForwardBeforeRegister:function(){for(var T=[],p=new Set,h=_.l(iTe),L=h.next();!L.done;L=h.next())L=L.value,T.push([L,L!=="observers"&&L!=="properties"]),p.add(L);h=_.l(Object.keys(U));for(L=h.next();!L.done;L=h.next())L=L.value,T.push([L,U[L].readOnly]),p.add(L);h=N();L=_.l(Object.keys(Object.getOwnPropertyDescriptors(a.prototype)));for(var F=L.next();!F.done;F=L.next())F=F.value,!A6F(F)||h.has(F)||p.has(F)||(T.push([F,!1]),p.add(F));T.push(["allowedProps",
!0]);return T},
getPropsToForwardBeforeReady:function(T){var p=[];T=_.l(Object.keys(T));for(var h=T.next();!h.done;h=T.next()){h=h.value;var L=N();A6F(h)&&!L.has(h)&&p.push([h,!1])}T=_.l(B.reactiveSchemas.slice(O));for(h=T.next();!h.done;h=T.next())h=h.value,h.type!=="compute"&&h.type!=="computeWithMethod"&&h.type!=="redux"&&h.type!=="signal"||p.push([h.propertyKey,h.type==="signal"?h.readOnly:!0]);return p},
shouldForwardProp:A6F,shouldLog:I5}};
_.D=function(a,W,w,Z){var N,B,I=(B=(N=Z)==null?void 0:N.mode)!=null?B:0;Z!=null||(Z={});var X;(X=Z).reactivityMode!=null||(X.reactivityMode=0);I===1&&_.a0("creator_poly_si_disable_list").includes(W)&&(I=2);return I===1?ptI(a,W,w,Object.assign({},Z,{useSink:!0}),c6v):ptI(a,W,w,Object.assign({},Z,{useSink:I===2}))};
_.mV=function(){return function(a,W,w,Z){var N,B,I=(B=(N=Z)==null?void 0:N.mode)!=null?B:2;Z!=null||(Z={});var X;(X=Z).reactivityMode!=null||(X.reactivityMode=0);if(I===0)throw Error("Ug`"+I);return K0E(a,W,w,Z,I===1?c6v:void 0)}};
_.Vn=function(a){return _.r("creator_poly_si_killswitch")?!1:_.r("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||_.r(a+"_holdback_enabled")&&_.r("kevlar_polysi_holdback")?!1:_.r(a)};
zD=function(a){return a?a.icon?a.icon.iconType.toLowerCase():a.customThumbnail?"member":"":""};
eAv=function(a){if(!a)return"";a=_.l(a);for(var W=a.next();!W.done;W=a.next())if((W=W.value)&&W.liveChatAuthorBadgeRenderer&&(W=zD(W.liveChatAuthorBadgeRenderer))&&W!=="verified")return W;return""};
nwE=function(a,W){if(!a)return null;var w;return((w=a.find(function(Z){return Z&&Z.liveChatAuthorBadgeRenderer?zD(Z.liveChatAuthorBadgeRenderer)===W:!1}))==null?void 0:w.liveChatAuthorBadgeRenderer)||null};
_.RAU=function(a){var W=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;a=j2v(a);W=j2v(W);var w=L0m(a.hex);W=L0m(W.hex);var Z=W[0]/255;var N=W[1]/255,B=W[2]/255,I=Math.max(Z,N,B),X=Math.min(Z,N,B),v=0,U=0,O=.5*(I+X);I!=X&&(I==Z?v=60*(N-B)/(I-X):I==N?v=60*(B-Z)/(I-X)+120:I==B&&(v=60*(Z-N)/(I-X)+240),U=0<O&&O<=.5?(I-X)/(2*O):(I-X)/(2-2*O));Z=[Math.round(v+360)%360,U,O];w=J6E(w,W);for(a=F0e(a.hex);w<4.5;){a=Z[2]>=.5?a.darker((4.5-w)/2):a.brighter((4.5-w)/2);w=a.toString();
N=MYe(w);if(!N.length)throw Error("Sd`"+w);w=N;w=J6E(w,W)}return a.hex()};
J6E=function(a,W){a=_.IHm(a);W=_.IHm(W);return(Math.max(a,W)+.05)/(Math.min(a,W)+.05)};
_.HA=function(a){return"#"+("000000"+(a&16777215).toString(16)).slice(-6)};
_.qrS=function(a){for(var W=0,w=0;w<a.length;w++)W=a.charCodeAt(w)+((W<<5)-W);a="#";for(w=0;w<3;w++)a+=("00"+(W>>w*8&255).toString(16)).slice(-2);return a};
Q2m=function(a){a=(a||"").split(":");a.length===1&&a.unshift("yt-icons");a[1]=a[1].toLowerCase();return a};
Gge=function(a,W){var w=(W=W===void 0?!1:W)?xCe:bTS,Z=W?s2S:uZ8;a.getIconNames().forEach(function(N){N=W?N:N.substring(N.indexOf(":")+1);a.name==="yt-icons"?C$S.add(N):N.includes("-filled")?w.add(N):Z.add(N)})};
yn=function(a,W,w,Z){w=w===void 0?!1:w;Z=Z===void 0?!1:Z;var N,B,I;return _.P(function(X){if(X.nextAddress==1)return _.g(X,DCx,2);if(Z)return X.return(C$S.has(a));N=w?xCe:bTS;B=w?s2S:uZ8;return W?(I=a.includes("-filled")?a:a.concat("-filled"),X.return(N.has(I))):X.return(B.has(a))})};
_.mCH=function(a){if(fI7(a))return a;var W=a=a.toLowerCase();(a=dCC.get(a))&&(W=a);return W};
_.EN=function(a){if(fI7(a))return a.toString();var W=VYe.get(a);if(W)return W;W=a.toLowerCase();var w="yt-icons",Z=W.replace(/_/g,"-");switch(a){case "MY_CHANNEL":W="account_circle";break;case "ADD_TO_LIBRARY":W="add";break;case "ALERT_WARN_RED":W="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":W="person_music";break;case "BLOCK_USER":W="block";break;case "CAPTIONS":W="closed_caption";break;case "CLOSED_CAPTION":w="av";W="closed-caption";break;case "COLLECTION":w="maps";W="layers";break;case "CONTACT":w=
"icons";W="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":w="ytcp-icons";W=Z.split("creator-studio-")[1];break;case "DISMISSAL":W="close";break;case "DO_NOT_DISTURB":W="block";break;case "DOGFOOD":w="icons";W="pets";break;case "DRAFT":W="paper_corner_folded";break;
case "EMPTY_LIKE":W="like_outline";break;case "EXIT_APP":W="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":W=Z;break;case "GAMES":w="ytg";W="my-games";break;case "GO_TO_PAGE":W="arrow-forward";break;case "GROUP":w="social";break;case "HIDE":W="not_interested";break;case "INPUT_COMPONENT":w="icons";W="settings-input-component";break;case "KIDS_BLOCK":W="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":w="ytg";W="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":w=
"ytg";W="membership-post-purchase";break;case "MULTIVIEW":W="screen_multi_view";break;case "MY_LOCATION":w="maps";W=Z;break;case "NOTIFICATIONS_INBOX":W="NOTIFICATIONS";break;case "NEXT":W="chevron_right";break;case "OFFLINE":W="power-settings-new";break;case "PAUSE":w="miniplayer";break;case "PAYMENT":w="icons";break;case "PHONE_DOWNLOAD":W="phone_download";break;case "PREMIUM_STANDALONE":w="yt-logos";W="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":w="yt-logos";W="premium_standalone_cairo";
break;case "QUESTION_ANSWER":W="question_answer";break;case "REDEEM":w="icons";W="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":W="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":W="library_add";break;case "SCHOOL":w="yt-sys-icons";W="creator_academy";break;case "SETTINGS_LIGHT":W="settings_applications";break;case "SETTINGS_MATERIAL":W="settings";break;case "SEARCH_HISTORY":W="watch_history";break;case "SHOPPING_BAG":W="bag";break;case "SOCIAL":case "PEOPLE":w=
"yt-icons";W="people";break;case "STAFF_PICK":w="ytg";W="spotlight";break;case "START_DVR":W="add";break;case "STOP_DVR":w="av";W="stop";break;case "TAB_LIKED":W="like";break;case "TAB_INBOX":W="mail";break;case "TERMS_OF_SERVICE":w="icons";W="description";break;case "TRENDING":W="fire";break;case "UNBLOCK_USER":W="remove";break;case "UNPLUGGED_DARK_THEME":w="image";W="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":W="live";break;case "UNPLUGGED_SPORTS":w="ytu";W="visibility-off";break;
case "VIDEOS":w="av";W="play-circle-filled";break;case "YOUTUBE":w="yt-logos";W="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":w="yt-logos-ext";W="yt-logo-red-updated";break;case "YOUTUBE_LOGO":w="yt-logos-ext";W="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":w="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":w="shorts";W=Z;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":w="yt-sys-icons";W="youtube_improve_tv";break;case "OUTLINE_BAG":w=
"yt-sys-icons";W="bag";break;case "QUEUE_PLAY_LAST":w="yt-sys-icons";W="list_queue_last";break;case "SLASH_CIRCLE_LEFT":W="slash_circle_left";break;case "SPEED_1_POINT_2X":W="1_point_2x";break;case "SPEED_1_POINT_5X":W="1_point_5x";break;case "SPEED_1_POINT_8X":W="1_point_8x";break;case "SPEED_POINT_2X":W="point_2x";break;case "SPEED_POINT_5X":W="point_5x";break;case "SPEED_POINT_8X":W="point_8x";break;case "SPEED_1X":W="1x";break;case "SPEED_2X":W="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":w="yt-sys-icons";
W="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":w="yt-sys-icons";W="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":w="yt-sys-icons",W="tic_tac_toe"}W=w+":"+W;VYe.set(a,W);return W};
fI7=function(a){var W;_.r("kevlar_use_wil_icons")?W=!!_.K().resolve(_.ad).resolveIcon({iconName:a.toString()}):W=!1;return W};
_.wJ=function(a,W,w,Z){w=w===void 0?{}:w;Z=Z===void 0?!1:Z;w===null&&(w={});var N=_.a0("kevlar_command_handler_command_banlist");N=_.l(N);for(var B=N.next();!B.done;B=N.next())if(B=a?a.hasOwnProperty(B.value):void 0,B)return!1;N=_.A(a.commandMetadata,_.mm);return Z&&N!=null&&N.url?!1:!W.disableCommandHandlerOverride&&_.WX.instance?(Z=_.WX.instance,w.form||(w.form={element:W}),w.form.element||(w.form.element=W),!w.clickedVisualElement&&W.visualElement&&(w.clickedVisualElement=W.visualElement),Z.resolveCommand(a,
w),!0):!1};
zAI=function(a,W){a=Zg(a);for(var w=_.l(a.visibilityMonitorKeys||[]),Z=w.next();!Z.done;Z=w.next())W.unobserveByKey(Z.value);a.visibilityMonitorKeys=void 0};
au9=function(a,W){if(_.nS()){if(_.r("kevlar_vimio_use_shared_monitor"))HTv(a,W.data);else if(!HTv(a,W.data))return;var w=W.data,Z=y6v(w);if(_.r("enable_client_ve_spec_logging"))zAI(a,W.observer);else{var N=Zg(a);N.trackedParams&&N.trackedParams!==Z&&zAI(a,W.observer)}N=Zg(a);!w||N.data&&N.data===w||(N.data=w);Ew8(a,W);N.trackedParams=Z}};
Ew8=function(a,W){var w=W.observer;if(!w&&_.r("web_skip_missing_vimio_observer")){var Z,N;_.jJ(new _.Uw("VisibilityObserver is not defined.",a.tagName,a.trackedParams,(Z=W.data)==null?void 0:Z.trackingParams,(N=W.data)==null?void 0:N.loggingDirectives))}else{var B=W.layer,I=W.visibilityCallback||function(){},X=W.prescanCallback,v=Zg(a);
Z=[];W.showOption&&Z.push(w.observe(a,function(){W.skipLogging&&W.skipLogging()||_.Nw().reportShown(v,void 0,B);I(!0)},W.showOption));
W.hideOption&&Z.push(w.observe(a,function(){_.Nw().reportHidden(v,void 0,B);I(!1)},W.hideOption));
W.prescanOption&&X&&Z.push(w.observe(a,function(){X()},W.prescanOption));
v.visibilityMonitorKeys=Z}};
HTv=function(a,W){a=Zg(a);if(a.visualElement&&!W)return!0;if(!W)return!1;var w=!1;if(_.r("enable_client_ve_spec_logging")){var Z,N;w=!!((Z=W.loggingDirectives)==null?0:(N=Z.clientVeSpec)==null?0:N.uiType)}Z=y6v(W);if(!Z&&!w)return!1;_.r("mweb_component_visibility_logging")&&(a.veContainer||(a.veContainer={}),a.veContainer.trackingParams=Z);if(a.trackedParams&&a.trackedParams===Z)return!1;var B;if(_.r("enable_client_ve_spec_logging")&&((B=a.visualElement)==null?0:B.isClientVe())){var I;B=(I=a.visualElement)==
null?void 0:I.getAsJspb();var X,v,U,O;if(_.yo(B,2)===((X=W.loggingDirectives)==null?void 0:(v=X.clientVeSpec)==null?void 0:v.uiType)&&_.yo(B,3,-1)===((U=W.loggingDirectives)==null?void 0:(O=U.clientVeSpec)==null?void 0:O.elementIndex))return!1}if(_.r("enable_client_ve_spec_logging")){var S,T;!a.visualElement&&((S=W.loggingDirectives)==null?0:(T=S.clientVeSpec)==null?0:T.uiType)&&(X=W.loggingDirectives.clientVeSpec,W=X.uiType,I=X.elementIndex,X=X.clientYoutubeData,a.visualElement=_.tQ(_.$J(),{veType:W,
elementIndex:I,clientYouTubeData:X}))}return!0};
y6v=function(a){if(a==null?0:a.rendererContext){var W=_.A(a.rendererContext,_.WfU);if(W==null?0:W.loggingDirectives)return W.loggingDirectives.trackingParams}return(a==null?0:a.loggingDirectives)?a.loggingDirectives.trackingParams:a==null?void 0:a.trackingParams};
Zg=function(a){var W;return(W=a.polymerController)!=null?W:a};
tUx=function(a){_.Nw();if(_.Mx(BX().JSC$10377_elementShouldLogGesture).bind(BX())(a,4)){wKF(a);var W=ZRe(a);NZm.set(a,W)}};
wKF=function(a){NZm.has(a)&&(NZm.get(a).cancel("untrack hover element"),NZm.delete(a))};
ZRe=function(a){var W,w=[],Z=!1,N=new _.PZ(function(B,I){lx(a,"mouseenter",_.Mx(function(){var X,v,U;return _.P(function(O){if(O.nextAddress==1)return W=(0,_.mG)(),X=$hx(a),w.push(X),v=BZx(a,function(){Z=!0;I(Error("Vg"))}),_.g(O,X,2);
if(O.nextAddress!=3)return v&&Id(v),U=luD(a),w.push(U),_.g(O,U,3);B();_.Xd(O)})}))});
N.then(function(){var B=(0,_.mG)()-W;B=Math.round(B);if(!(500>B||6E5<=B)){var I=a.getScreenLayer?a.getScreenLayer():void 0;I=_.nS(I)||"";var X=IuC(_.Nw(),a);_.s_(I,a.visualElement?a.visualElement:_.PX(X),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:B}})}tUx(a)},function(){Xm&&(Xm(),Xm=null);
Z&&(wKF(a),tUx(a))});
return N};
$hx=function(a){var W;return(new _.PZ(function(w,Z){Xm=function(){Z(Error("Wg"))};
W=_.hF.debounce(_.Mx(function(){Id(N);w()}),1,100);
var N=_.vX(a,"mousemove",W)})).thenCatch(function(){var w=_.hF.cancelDebouncedJobMap.get(W);
w&&_.hF.cancelJob(w)})};
luD=function(a){var W;return(new _.PZ(function(w,Z){Xm=function(){Z(Error("Xg"))};
W=lx(a,"mouseleave",_.Mx(function(){w()}))})).thenCatch(function(){Id(W)})};
BZx=function(a,W){return lx(a,"mouseleave",_.Mx(W))};
XKI=function(a){Pl8&&_.gJ.cancel(Pl8);Pl8=_.gJ.run(function(){_.E$(a,"yt-visibility-refresh");Pl8=0})};
vEx=function(a){a=Number(a);return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
oEm=function(a){if(!a)return!1;if(_.A(a,_.gES))return!0;var W;if(a=(W=_.A(a,_.$7))==null?void 0:W.commands)for(W=_.l(a),a=W.next();!a.done;a=W.next())if(_.A(a.value,_.gES))return!0;return!1};
ksH=function(a){var W=!0;W=W===void 0?!0:W;if(!a.useSignals&&!a.experimentalPropertiesChanged||_.r("experimental_templating_behavior_nopatch_killswitch")){var w=a._propertiesChanged;a._propertiesChanged=function(Z,N,B){W?a.debounceRender():a.doRender();w&&w.call(a,Z,N,B)}}};
UhF=function(a,W){if(a.useSignals||a.experimentalPropertiesChanged)if(_.r("experimental_templating_behavior_nopatch_killswitch"))a.experimentalPropertiesChanged=function(){};
else return;var w=new Set,Z=[a].concat(_.K8(a.behaviors));Z=_.l(Z);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;for(var B in N.properties)w.has(B)||(a._addPropertyEffect(B,"function",W),w.add(B))}};
OR9=function(){var a=Polymer.Element,W=a._prepareTemplate;a._prepareTemplate=function(){W.call(this);var w=this.prototype;if(w.experimentalTemplatingInUse&&w.experimentalTemplatingInUse()&&w.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.eJ(Error("Yg"));else{w=this.template.content.childNodes;for(var Z=w.length-1;Z>=0;Z--){var N=w[Z];N.nodeName!=="STYLE"&&N.nodeName!=="LINK"&&N.nodeName!=="SCRIPT"&&N.nodeName!=="#comment"&&N.remove()}}}};
SLF=function(a){var W=!0;W=W===void 0?!0:W;OR9();var w=a.ready;a.ready=function(){this._template=null;w.call(this)};
UhF(a,W?a.debounceRender:a.doRender)};
TZF=function(a,W,w){if(w===null||w===void 0)return w;var Z=YxE(a.tagName.toLowerCase(),W,function(){throw Error("Qb");});
if(Z===null)return w;Z=YLF[Z];var N;if((N=Z.isUnwrappable)==null?0:N.call(Z,w)){if(Z.unwrap)return Z.unwrap(w);throw Error("ah");}return Z.filterString?Z.filterString(a.tagName,W,String(w)):w};
Kfe=function(a,W,w){var Z=W[W.length-1]!=="$",N=TZF(a,W,w);if(Z)if(typeof N==="function"&&W.startsWith("reactiveon")&&W===W.toLowerCase()){var B=Cr;nmx(a,W.slice(8),function(I){ca(B,function(){N(I)})})}else a[W]=N;
else w=N==null?null:String(N),e2e(a,W.slice(0,-1),w)};
kJ=function(a){pKE.length===0&&requestAnimationFrame(function(){setTimeout(function(){var W=pKE.slice();pKE.length=0;W=_.l(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;try{w()}catch(Z){_.od(Z)}}})});
pKE.push(a)};
rCU=function(a){if(a){var W=a.component;if(W){var w;W==null||(w=W.events)==null||w.publish("DISCONNECTED");var Z;W==null||(Z=W.onDisconnected)==null||Z.call(W)}var N,B;(N=a.__spec)==null||(B=N.didUnmount)==null||B.call(N);for(W=0;W<a.childNodes.length;W++)rCU(a.childNodes[W])}};
O8=function(a,W,w){var Z=W&&W.key,N=bk;N[0]=a;N[1]=Z;N[2]=void 0;for(var B in W)W.hasOwnProperty(B)&&(a=W[B],Z=si,Z.push(B),Z.push(a));W=bk;a:{if(B=bk[2])for(a=0;a<B.length;a+=2)if(B[a]==="nonce"){B=B[a+1];break a}B=""}B=CnH(W[0],W[1],B);a=La(B);Z=W[2];if(!a.staticsApplied&&(a.staticsApplied=!0,Z&&Z.length))if((N=a._attrsArr)&&N.length){for(N=0;N<Z.length;N+=2)U8[Z[N]]=N+1;N=a._attrsArr||(a._attrsArr=cFv(0));for(var I=0,X=0;X<N.length;X+=2){var v=N[X],U=N[X+1],O=U8[v];O?Z[O]===U&&delete U8[v]:(N[I]=
v,N[I+1]=U,I+=2)}na(N,I);for(var S in U8)M69(B,S,Z[U8[S]],Vz),delete U8[S]}else for(S=0;S<Z.length;S+=2)M69(B,Z[S],Z[S+1],Vz);z2e(B,a,Vz);na(W,0);w&&w(Jo);GK7()};
AC9=function(a){var W=a.toString().toLowerCase();return function(w,Z){O8(W,w,Z)}};
_.Sx=function(a,W,w){w===void 0?delete a[W.name]:a[W.name]=w};
_.YJ=function(a){var W={androidIncludeFontPadding:!1},w=0,Z=[],N=[],B=[];if(a.simpleText)return W.content=a.simpleText,W;if(a.runs===void 0)return W.content="",W;a=_.l(a.runs);for(var I=a.next();!I.done;I=a.next()){I=I.value;var X=I.text,v=void 0,U=(v=X)==null?void 0:v.length;if(X&&U){Z.push(X);if(I.bold||I.italics||I.strikethrough||I.underline||I.textColor!=null&&I.textColor!==0||I.deemphasize){X=N;v=X.push;var O={startIndex:w,length:U};I.bold&&(O.weightLabel="FONT_WEIGHT_MEDIUM");I.italics&&(O.italic=
!0);I.strikethrough&&(O.strikethrough="LINE_STYLE_SINGLE");I.underline&&(O.underline="LINE_STYLE_SINGLE");I.textColor!=null&&I.textColor!==0?document.documentElement.hasAttribute("dark")?O.fontColor=I.darkModeTextColor||I.textColor:O.fontColor=I.textColor:I.deemphasize&&(document.documentElement.hasAttribute("dark")?O.fontColor=parseInt("ff"+hpU("#aaa").substring(1),16):O.fontColor=parseInt("ff"+hpU("#606060").substring(1),16));v.call(X,O)}I.navigationEndpoint&&(X=B,v=X.push,O={startIndex:w,length:U,
onTap:{innertubeCommand:I.navigationEndpoint}},I.loggingDirectives&&_.Sx(O,iRv,I.loggingDirectives),v.call(X,O));w+=U}}W.content=Z.join("");W.styleRuns=N.length?N:void 0;W.commandRuns=B.length?B:void 0;return W};
epv=function(a){if(a==null||!a.runs)return!0;a=_.l(a.runs);for(var W=a.next();!W.done;W=a.next())if(W=W.value,W.bracket||W.errorUnderline||W.deemphasize||_.A(W,T$)||_.A(W,cCU))return!1;return!0};
nES=function(a,W){return function(w){var Z=W.unit;if(Z!==w)throw Error("dh`"+a+"`"+Z+"`"+w);return W}};
Kt=function(a){if(!((a==null?0:a.value)&&(a==null?0:a.unit)))return"";switch(a.unit){case "DIMENSION_UNIT_FRACTION":var W="%";break;default:W="px"}a=a.value;W==="%"&&(a*=100);return""+a+W};
j8I=function(a){try{return a()}catch(W){_.jJ(W)}};
_.rJ=function(a){var W=_.A(a,_.pt);if(W)return W;if((W=_.A(a,Lfe))&&W.commands)return JCx(W.commands);if((W=_.A(a,FfC))&&W.commands)return JCx(W.commands);if((a=_.A(a,MUH))&&a.identifier&&a.command&&(Rp9||(Rp9=[]),!Rp9.includes(a.identifier)))return Rp9.push(a.identifier),_.A(a.command,_.pt)};
JCx=function(a){if(a.length!==0){var W=[];a=_.l(a);for(var w=a.next();!w.done;w=a.next())(w=_.rJ(w.value))&&W.push(w);return{commandExecutorCommand:{commands:W}}}};
_.hQ=function(a){var W=a.defaultTarget,w=a.elementConfig,Z=a.elementsCommand,N=a.skipOnClick,B=a.forceNewState,I=a.additionalCommandArgs,X=a.innertubeCommand||_.rJ(Z);if(X){a={};var v=qLS(X);Z=v.navigatingCommand;v=v.href;Z&&v?(a.href$=v,Q8e(a,Z,v,W),_.r("web_atagconfig_pointerdown")&&xh8(a,Z),B&&(a["force-new-state$"]=!0)):(a.role$="button",a.href$="javascript:void(0);");_.A(X,bRS)&&(a["aria-haspopup$"]=!0);N||(a.onclick=function(U){if(s8E(U)){var O=Object.assign({},{form:{element:U.target,event:U}},
I);U.preventDefault();_.AQ(X,O)}});
return Object.assign({},w,a)}};
uVE=function(a){if(a.length){if(a.length===1)return a[0];var W={};_.Sx(W,_.$7,{commands:a});return W}};
ix=function(a){return a&&a.href$!=="javascript:void(0);"};
qLS=function(a){var W,w=((W=_.A(a,_.$7))==null?void 0:W.commands)||[a];a=_.l(w);for(W=a.next();!W.done;W=a.next()){W=W.value;var Z=void 0,N=void 0;w=(N=_.A((Z=W)==null?void 0:Z.commandMetadata,_.mm))==null?void 0:N.url;_.r("web_remove_web_navigation_endpoint_data")||(Z=void 0,w=w||((Z=_.A(W,ClD))==null?void 0:Z.url));if(w&&w!=="/service_ajax"){if(Z=U0(w,Gs9))return a=_.oJ(Z),{navigatingCommand:W,href:a};_.jJ(new _.Uw("AttributedString URL could not be sanitized",w))}}return{}};
s8E=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)};
Q8e=function(a,W,w,Z){w=!dw(w);var N,B,I;if((N=_.A(W,_.I1))!=null&&N.nofollow||(B=_.A(W,_.u6))!=null&&B.nofollow||(I=_.A(W,_.ba))!=null&&I.nofollow||w)a.rel$="nofollow";var X;W=((X=_.A(W,_.ba))==null?void 0:X.target)==="TARGET_NEW_WINDOW"?"_blank":Z===void 0?"":Z;a.target$=W};
xh8=function(a,W){W.clickTrackingParams&&(a.params={itct:W.clickTrackingParams});a.onpointerdown=function(w){Dhe(w)};
a._data=W};
fuI=function(a){(a.loggingUrls||[]).forEach(function(W){Ql(W.baseUrl,W.attributionSrcMode)})};
dhv=function(a){a.currentTarget._data&&fuI(a.currentTarget._data)};
Dhe=function(a){var W=a.currentTarget;a=j8I(function(){return W.href});
var w=W.params;a&&_.fS(a,w||{},8,!0)};
mhS=function(a,W){if(W=_.A(W,_.ba))(W==null?void 0:W.target)==="TARGET_NEW_WINDOW"&&(a.target="_blank"),W.nofollow&&(a.rel="nofollow")};
VUU=function(a){a=_.A(a==null?void 0:a.commandMetadata,_.mm);return(a==null?0:a.url)?a.url:null};
_.cX=function(a,W){(a=_.rJ(a))&&_.AQ(a,W)};
_.AQ=function(a,W){M2U(function(w){W?w.resolveCommand(a,W):w.resolveCommand(a)})};
EEv=function(a,W){var w=["yt-core-attributed-string__link"];W!=null&&W.noLinkColor||((W==null?0:W.isOverlay)?w.push("yt-core-attributed-string__link--overlay-call-to-action-color"):w.push("yt-core-attributed-string__link--call-to-action-color"),(W==null?0:W.linkInheritColor)&&w.push("yt-core-attributed-string--link-inherit-color"));w={className:w.join(" "),tabindex$:"0"};var Z=a.onTap||a.onLongPress;if(!Z)return w;var N=zpm(a);N&&(w["aria-label$"]=N);W=_.hQ({elementsCommand:Z,elementConfig:w,skipOnClick:!(W==
null||!W.skipOnClick),forceNewState:!0});a.onLongPress&&(Z=new HRE(function(){var B=_.rJ(a.onLongPress);B&&_.K().resolve(_.zU).resolveCommand(B)}),W&&yCx(Z,W));
return W||w};
zpm=function(a){var W,w;return(W=a.onTapOptions)==null?void 0:(w=W.accessibilityInfo)==null?void 0:w.accessibilityLabel};
aXC=function(a){var W=a;a<=16777215&&(W+=parseInt("ff000000",16));return _.pC(W)};
W9v=function(a){var W=a.isDarkTheme;var w=a.extension;a=a.runColor;var Z=void 0;if(w=w==null?void 0:w.colorMap){W=W?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";w=_.l(w);for(var N=w.next();!N.done;N=w.next())if(N=N.value,W===N.key){Z=N.value;break}}Z==null&&a&&(Z=a);if(Z)return aXC(Z)};
ex=function(a){var W=a.config;var w=a.image;var Z=a.imageConfig;var N=a.imageWrapperConfig;var B=a.run;var I=a.tag;var X=a.textLength;var v=a.startIndex===void 0?0:a.startIndex;a=a.length;v===void 0&&(v=0);B={run:B,startIndex:v,endIndex:a!==void 0?v+a:X,tag:I};w&&(B.image=w);Z&&(B.imageConfig=Z);N&&(B.imageWrapperConfig=N);W&&(B.config=W);return B};
ZOD=function(a,W){var w=[];w.push("yt-core-attributed-string");(W==null?0:W.className)&&w.push(W==null?void 0:W.className);(W==null?0:W.ellipsisTruncate)?w.push("yt-core-attributed-string--ellipsis-truncate"):(W==null?0:W.noWrap)?w.push("yt-core-attributed-string--white-space-no-wrap"):(W==null?0:W.noPreWrap)||w.push("yt-core-attributed-string--white-space-pre-wrap");(W==null?0:W.linkInheritColor)&&w.push("yt-core-attributed-string--link-inherit-color");a.alignment&&w.push(wL9(a.alignment));a.lineBreakMode&&
w.push("yt-core-attributed-string--word-wrapping");return w.join(" ")};
Ns8=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}};
tbv=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"}};
wL9=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"}};
Bs7=function(a,W,w){var Z=W;a.content&&w&&(w=a.content.indexOf("\n"),w!==-1&&(Z=Math.min(W,w)));if(!a.content||a.content.length<=Z)W=a;else if(a.attachmentRuns||a.commandRuns||a.decorationRuns||a.styleRuns||a.paragraphStyleRuns){W=nt(a.content,Z);w=Z;var N=a.attachmentRuns;if(N){var B=[];N=_.l(N);for(var I=N.next();!I.done;I=N.next())I=Object.assign({},I.value),I.startIndex===void 0||I.startIndex>=w||(I.length||(I.length=0),I.length+I.startIndex>w&&(I.length=w-I.startIndex),B.push(I));w=B}else w=
void 0;B=$3e(Z,a.commandRuns);N=Z;var X=a.decorationRuns;if(X){I=[];X=_.l(X);for(var v=X.next();!v.done;v=X.next()){v=v.value;var U=_.A(v.textDecorator,jx);if(U&&U.startIndex!==void 0&&!(U.startIndex>=N)){v=Object.assign({},v,{textDecorator:{highlightTextDecorator:Object.assign({},U)}});U=_.A(v.textDecorator,jx);if(!U.length||U.length+U.startIndex>N)U.length=N-U.startIndex;I.push(v)}}N=I}else N=void 0;I=$3e(Z,a.styleRuns);if(X=a.paragraphStyleRuns)for(a=[],X=_.l(X),v=X.next();!v.done;v=X.next()){var O=
v.value;v=Object.assign({},O);if(!(v.startIndex===void 0||v.startIndex>=Z)){if(!v.length||v.length+v.startIndex>Z)v.length=Z-v.startIndex;U=[];var S=void 0,T=void 0;if((S=O)==null?0:(T=S.listGroup)==null?0:T.listItems)for(O=_.l(O.listGroup.listItems),S=O.next();!S.done;S=O.next())if(S=Object.assign({},S.value),!(S.startIndex===void 0||S.startIndex>=Z)){if(!S.length||S.length+S.startIndex>Z)S.length=Z-S.startIndex;U.push(S)}U.length>0&&(v.listGroup||(v.listGroup={}),v.listGroup=Object.assign({},v.listGroup,
{listItems:U}));a.push(v)}}else a=void 0;W={content:W,attachmentRuns:w,commandRuns:B,decorationRuns:N,styleRuns:I,paragraphStyleRuns:a}}else W=Object.assign({},a,{content:nt(a.content,Z)});return W};
$3e=function(a,W){if(W){var w=[];W=_.l(W);for(var Z=W.next();!Z.done;Z=W.next())if(Z=Object.assign({},Z.value),!(Z.startIndex===void 0||Z.startIndex>=a)){if(!Z.length||Z.length+Z.startIndex>a)Z.length=a-Z.startIndex;w.push(Z)}return w}};
nt=function(a,W){var w=W,Z;if(Z=w>0)Z=a.charCodeAt(w-1),Z=Z>=55296&&Z<=56319;Z&&(w=a.charCodeAt(w),Z=w>=56320&&w<=57343);Z&&--W;return a.substring(0,W)};
XLU=function(a,W,w){w=w===void 0?lXE:w;if(a){var Z=_.K().resolve(HZ);Z||_.r("mweb_no_observer_killswitch")?au9(a,{data:W,observer:Z,visibilityCallback:w,hideOption:IXD,showOption:PDH,layer:a.layer}):_.jJ(new _.Uw("Warning: monitorVisibility called with null observer",a.tagName,W==null?void 0:W.loggingDirectives,W==null?void 0:W.trackingParams))}else _.jJ(new _.Uw("Warning: monitorVisibility called with null element",W==null?void 0:W.loggingDirectives,W==null?void 0:W.trackingParams,W==null?void 0:
W.rendererContext))};
Sh9=function(a,W){var w=[],Z=a.content.length,N,B=(N=_.K().resolve(_.Vv(_.Lt)))==null?void 0:N();if(a.paragraphStyleRuns){N=_.l(a.paragraphStyleRuns);for(var I=N.next();!I.done;I=N.next()){var X=w.push,v=X.apply;var U=void 0;I=I.value;if((U=I.listGroup)!=null&&U.listItems){U=[];b:switch(I.listGroup.listType){case "LIST_TYPE_BULLET":var O="ul";break b;default:O="span"}U.push(ex({run:I,textLength:Z,tag:O,config:{className:"yt-core-attributed-string__list-group"},startIndex:I.startIndex,length:I.length}));
O=_.l(I.listGroup.listItems);for(var S=O.next();!S.done;S=O.next()){S=S.value;b:switch(I.listGroup.listType){case "LIST_TYPE_BULLET":var T="li";break b;default:T="span"}U.push(ex({run:I,textLength:Z,tag:T,startIndex:S.startIndex,length:S.length}))}I=U}else I=[];v.call(X,w,_.K8(I))}}if(a.styleRuns&&(W==null||!W.noStyleRuns))for(N=_.l(a.styleRuns),X=N.next();!X.done;X=N.next()){X=X.value;v=W9v({extension:_.A(X.styleRunExtensions,vye),isDarkTheme:B===void 0?!1:B,runColor:X.fontColor});U=[];v&&U.push("yt-core-attributed-string--link-inherit-color");
X.italic&&U.push("yt-core-attributed-string--italicized");X.underline&&X.strikethrough?U.push("yt-core-attributed-string--underline-strikethrough",tbv(X.underline)):X.underline?U.push("yt-core-attributed-string--underlined",tbv(X.underline)):X.strikethrough&&U.push("yt-core-attributed-string--strikethrough",tbv(X.strikethrough));if(X.baselineOffset){a:switch(X.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":I="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":I=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:I="yt-core-attributed-string--baseline-offset-unknown"}U.push(I)}I=U.join(" ");U=X;O={};if(U.weight||U.weightLabel)O.fontWeight=Ns8(U).toString();v&&(O.color=v);w.push(ex({run:X,textLength:Z,tag:"span",config:{className:I,style:O},startIndex:X.startIndex,length:X.length}))}if(a.decorationRuns)for(N=_.l(a.decorationRuns),X=N.next();!X.done;X=N.next())X=X.value,v={},X.textDecorator&&(O=X.textDecorator,I=B===void 0?!1:B,S=[],U=
_.A(O,jx),O=_.A(O,gyD),U?(O=S,S=O.concat,T=[],(I=W9v({extension:_.A(U.highlightTextDecoratorExtensions,oyx),isDarkTheme:I,runColor:U.backgroundColor}))&&T.push("background-color: "+I+";"),U.backgroundCornerRadius!==void 0&&T.push("border-radius: "+U.backgroundCornerRadius+"px;"),U.leftPadding!==void 0&&T.push("padding-left: "+U.leftPadding+"px;"),U.rightPadding!==void 0&&T.push("padding-right: "+U.rightPadding+"px;"),U.topPadding!==void 0&&T.push("padding-top: "+U.topPadding+"px;"),U.bottomPadding!==
void 0&&T.push("padding-bottom: "+U.bottomPadding+"px;"),S=S.call(O,T)):O&&(U=S,S=U.concat,I=I?"#2ba640":"#107516",I=O.color?aXC(O.color):I,I=["padding: 2px;","border-top: solid "+I+" 2px;","border-bottom: solid "+I+" 2px;","background: linear-gradient(135deg, "+I+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+I+" 3px, rgba(0, 0, 0, 0) 3px);"],S=S.call(U,I)),I=S.join(" "),v.style$=I,I=X.textDecorator,U=[],O=_.A(I,gyD),_.A(I,jx)?U.push("yt-core-attributed-string--highlight-text-decorator"):
O&&U.push("yt-core-attributed-string--bracket-text-decorator"),I=U.join(" "),v.className=I,v.dir="auto"),I=_.A(X.textDecorator,jx),U=_.A(X.textDecorator,gyD),O=_.A(X.textDecorator,jx),S=_.A(X.textDecorator,gyD),w.push(ex({run:X,textLength:Z,tag:"span",config:v,startIndex:(I==null?void 0:I.startIndex)||(U==null?void 0:U.startIndex)||0,length:(O==null?void 0:O.length)||(S==null?void 0:S.length)||0}));if(a.commandRuns&&(W==null||!W.noEndpoints))for(B=_.l(a.commandRuns),N=B.next();!N.done;N=B.next())N=
N.value,X=EEv(N,W),w.push(ex({run:N,textLength:Z,tag:"a",config:X,startIndex:N.startIndex,length:N.length}));if(a.attachmentRuns)for(a=_.l(a.attachmentRuns),B=a.next();!B.done;B=a.next()){B=B.value;v=X=void 0;N={className:"yt-core-attributed-string--inline-block-mod"};if((v=B.element)==null?0:v.properties){v=(X=B.element)==null?void 0:X.properties;X=[];v=_.A(v,kam);if(v==null?0:v.margin)v=v.margin,v.left&&X.push("margin-left: "+Kt(v.left)+";"),v.right&&X.push("margin-right: "+Kt(v.right)+";"),v.top&&
X.push("margin-top: "+Kt(v.top)+";"),v.bottom&&X.push("margin-bottom: "+Kt(v.bottom)+";");X=X.length!==0?X.join(" "):void 0;N.style$=X}I=void 0;X={alt:"",preserveHeight:!0,preserveWidth:!0};v=["yt-core-attributed-string__image-element"];if(B.alignment){a:switch(B.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"}v.push(U)}if((I=B.element)==null?0:I.properties)I=[],U=_.A(B.element.properties,kam),(U==null?0:U.height)&&I.push("height: "+Kt(U.height)+";"),(U==null?0:U.width)&&I.push("width: "+Kt(U.width)+";"),I=I.length!==0?I.join(" "):void 0,X.style$=I,U=void 0,I=((U=_.A(B.element.properties,U37))==null?void 0:U.label)||"",X.alt=I;X.className=v.join(" ");v=void 0;O=U=void 0;I=((O=B.element)==null?0:O.type)?(U=_.A(B.element.type,OO7))==null?
void 0:U.image:void 0;w.push(ex({run:B,textLength:Z,tag:"img",image:I,imageConfig:X,imageWrapperConfig:N,startIndex:B.startIndex,length:(v=B.length)!=null?v:0}))}if(W==null?0:W.headerRuns)for(W=_.l(W.headerRuns),a=W.next();!a.done;a=W.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":B=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":B="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":B="yt-core-attributed-string--heading-3";break a}B=void 0}w.push(ex({run:a,textLength:Z,tag:"span",config:B?{className:B}:void 0,startIndex:a.startIndex,length:a.length}))}return w};
_.JQ=function(a){return(a==null?void 0:a.content)!==void 0};
YhH=function(a){return _.JQ(a)?a:_.YJ(a)};
Ts7=function(a){return a.image!==void 0&&a.imageConfig!==void 0};
K9E=function(a,W){if(W==null?0:W.userInput)for(a=_.l(a),W=a.next();!W.done;W=a.next())if(W=W.value,W.tag!=="a"&&W.tag!=="li"){var w=void 0;(w=W).config||(w.config={});W.config.dir=W.tag==="ul"?_.K().resolve(_.Fm):"auto"}};
pLF=function(a){return function(W){var w=a.run;(w.onTap!==void 0||w.onLongPress!==void 0)&&_.A(w,iRv)&&XLU(W,{loggingDirectives:_.A(w,iRv)})}};
r3v=function(a){return function(W){for(var w in a)(Vz[w]||Vz[jQ["default"]])(W,w,a[w])}};
c3x=function(a,W){A3F(W);var w={data:null,start:0,end:a.length,parts:[]};W=_.l(W);for(var Z=W.next();!Z.done;Z=W.next())Z=Z.value,hrI(w,Z.startIndex,Z.endIndex,Z);iOD(a,w);return w};
hrI=function(a,W,w,Z){for(var N=_.l(a.parts),B=N.next();!B.done;B=N.next()){B=B.value;if(typeof B==="string")throw Error("fh");if(B.start<=W&&w<=B.end){hrI(B,W,w,Z);return}}a.parts.push({data:Z,parts:[],start:W,end:w})};
iOD=function(a,W){for(var w=W.parts.length;w>=0;w--){var Z=W.parts[w],N=W.parts[w-1],B=w===W.parts.length?W.end:Z.start;N=w===0?W.start:N.end;B!==N&&W.parts.splice(w,0,a.slice(N,B));Z&&iOD(a,Z)}};
A3F=function(a){a.sort(function(W,w){if(W.startIndex<w.startIndex)return-1;if(w.startIndex<W.startIndex)return 1;W=W.endIndex-W.startIndex;w=w.endIndex-w.startIndex;return W>w?-1:w>W?1:0})};
_.erD=function(a){var W=a.thumbnails;if(W){a={sources:[]};W=_.l(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;var Z={};Z.url=w.url;Z.width=w.width;Z.height=w.height;a.sources.push(Z)}return a}};
nyS=function(a,W,w,Z){if(!W)return a.length>=1?a[a.length-1]:null;if(Z)for(var N=_.l(a),B=N.next();!B.done;B=N.next()){B=B.value;var I=void 0,X=(I=B.url)==null?void 0:I.indexOf(Z);if(X!==void 0&&X>=0)return B}Z=_.l(a);for(N=Z.next();!N.done;N=Z.next())if(N=N.value,N.width&&N.height&&(w&&N.width>=W||!w&&N.height>=W))return N;for(W=a.length-1;W>=0;W--)if(w&&a[W].width||!w&&a[W].height)return a[W];return a[0]};
_.j6e=function(a){var W;return(a=(W=a.sources)==null?void 0:W[0])?a.width/a.height:0};
_.L9e=function(a){if(a.sources){a=_.l(a.sources);for(var W=a.next();!W.done;W=a.next()){W=W.value;var w=void 0;if((w=W.clientResource)==null?0:w.imageName)return W}}};
J3m=function(a){var W;if((W=a.clientResource)!=null&&W.imageColor)return _.pC(a.clientResource.imageColor)};
_.Mb9=function(a,W,w,Z,N,B,I){if(!W||W.length===0||W[0].clientResource)return null;if(w&&W[0].url)return W[0].url;Z===void 0&&(Z=!0);if(Z){var X;a=F99*(N||(a==null?void 0:(X=a.getBoundingClientRect())==null?void 0:X.width)||0)}else{var v;a=F99*(B||(a==null?void 0:(v=a.getBoundingClientRect())==null?void 0:v.height)||0)}W=nyS(W,a,Z,I);return(W==null?0:W.url)?W.url:(W==null?0:W.imageData)?W.imageData:null};
Rrm=function(a,W,w){w=w?[w]:[];a.opacity&&w.push("opacity: "+a.opacity+";");W&&a.placeholderColor?(a=_.pC(a.placeholderColor),w.push("background-color: "+a+";")):w.push("background-color: transparent;");return w.join(" ")};
qhU=function(a,W,w,Z,N){var B=["yt-core-image"];W&&B.push(W);w||B.push("yt-core-image--fill-parent-height");Z||B.push("yt-core-image--fill-parent-width");switch(a.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":B.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":B.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":B.push("yt-core-image--content-mode-center");break;default:B.push("yt-core-image--content-mode-scale-to-fill")}a.flipForRtlLayout&&
B.push("yt-core-image--flip-rtl");switch(N){case "TOP_START":var I;B.push(((I=document.body)==null?void 0:I.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return B.join(" ")};
x38=function(a){var W;if(a==null?0:(W=a.clientResource)==null?0:W.imageName){var w;a=(w=a.clientResource)==null?void 0:w.imageName;a:{switch(a){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":w="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":w="yt-logos-ext:yt-logo-updated";break a}w=void 0}return w||Q6U.get(a)||a}};
Mw=function(a){return _.r("mweb_wiz_skip_render")?bOC(a):s6I(a)};
bOC=function(a){return function(W){var w=CnH("wink-root");x1();GK7();IKI(w,_.k(a,W))}};
s6I=function(a){var W=W===void 0?!1:W;return function(w){if(!W||!_.r("mweb_skip_keto_to_c3_if_no_data")||w.data!==void 0){var Z=Ei(!1);try{var N=w.children;_.r("mweb_render_outside_patch_killswitch")||Jo?N?m8(_.k(a,w,N)):m8(_.k(a,w)):_.jJ(new _.Uw("ketoToC3 called outside of a patch",{tagName:a.TAG_NAME}))}finally{Ei(Z)}}}};
uYe=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Ga9=function(a,W){a.onViewportEntered=W;CDE.observe(a)};
D3D=function(){var a={rootMargin:"10%",threshold:.01};_.r("mweb_enable_set_io_root_to_null_safari")?a.root=null:_.r("mweb_enable_set_io_root_to_body_safari")&&(a.root=document.body);return new IntersectionObserver(function(W,w){W.filter(function(Z){return Z.intersectionRect.height>0}).forEach(function(Z){Z=Z.target;
if(!_.r("mweb_enable_only_update_image_when_connected")||Z.isConnected!==!1){var N;(N=Z.onViewportEntered)==null||N.call(Z);w.unobserve(Z)}})},a)};
fXI=function(a,W,w,Z,N){function B(){if(Z){var X=Z.loadedClass,v=Z.notifyOnUnloaded;X&&_.Rd(a,X);v&&a.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function I(){var X=w(W,a);X&&a.getAttribute("src")!==X&&(_.r("mweb_enable_only_update_image_when_connected")&&a.isConnected===!1||X===a.src||(a.src=X),B())}
N=N===void 0?!0:N;a.removeAttribute("src");B();W&&(N?Ga9(a,I):I())};
d3F=function(a,W,w){if(!W)return!1;W=w(W,a);w=a.getAttribute("src");return W&&W===w&&a.complete};
m3S=function(a,W){for(var w in W)w==="className"?a.className=W[w]:(Vz[w]||Vz[jQ.default])(a,w,W[w])};
Vbx=function(a,W,w,Z){Mw(_.qw)({contentMode:W.contentMode,loadedClass:W.loadedClass,isPreloaded:W.isPreloaded,notifyOnLoaded:W.notifyOnLoaded,notifyOnUnloaded:W.notifyOnUnloaded,preferredThumbnail:W.preferredThumbnail,preserveHeight:W.preserveHeight,preserveWidth:W.preserveWidth,objectPosition:W.objectPosition,targetWidth:W.targetWidth,targetHeight:W.targetHeight,shouldShowPlaceholder:W.shouldShowPlaceholder,useWidth:W.useWidth,alt:W.alt,className:W.className,onerror:W.onerror,onload:W.onload,style$:W.style$,
color:W.color,width:W.width,height:W.height,"aria-hidden$":W["aria-hidden$"],draggable:W.draggable,"data-disabled$":W["data-disabled$"],data:a,callback:w,renderLazy:Z===void 0?!0:Z,hideOn404:!1})};
HOE=function(a,W,w){w=w===void 0?!1:w;var Z=a.sources!==void 0?a:_.erD(a);if(Z){var N=W.onload;W.onload=function(v){var U=v.target;w&&U.naturalWidth===120||_.QD(U,"yt-core-image--loaded");W.notifyOnLoaded&&U.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));N==null||N(v)};
W.targetWidth&&W.preserveWidth&&(W.width=W.targetWidth);W.targetHeight&&W.preserveHeight&&(W.height=W.targetHeight);var B=_.L9e(Z),I=B&&x38(B);if(I)return(a=J3m(B))&&(W.color=a),{type:"icon",iconName:I,config:Object.assign({},W,W.alt?{}:{"aria-hidden$":"true"},{"aria-label$":W.alt,role:"img"})};if(a.sources===void 0){W.alt=a.accessibility&&a.accessibility.accessibilityData&&a.accessibility.accessibilityData.label||W.alt;W.style$=Rrm(a,W.shouldShowPlaceholder,W.style$);var X;W.isPreloaded=!((X=_.A(a,
zrx))==null||!X.isPreloaded)}W.contentMode&&!Z.contentMode&&(Z.contentMode=W.contentMode);W.className=qhU(Z,W.className,W.preserveHeight,W.preserveWidth,W.objectPosition);W.loadedClass="yt-core-image--loaded";return{type:"image",image:Z,config:W}}};
_.xJ=function(){var a=_.TH.apply(0,arguments);return _.fH(function(W){var w=a.map(function(Z){return Z(W)});
return function(){return void w.forEach(function(Z){return void(Z==null?void 0:Z())})}})};
bx=function(a,W){var w=W==null?void 0:W.initial;return _.XT(function(){_.ik(!0);return w=a(w)},{equals:W==null?void 0:W.isEqual},"rSlKsc")};
y3E=function(a,W){if(a===W)return!0;if(a===void 0||W===void 0)return!1;var w,Z,N,B,I,X,v,U;return a.content===W.content&&((w=a.styleRuns)==null?void 0:w.length)===((Z=W.styleRuns)==null?void 0:Z.length)&&((N=a.commandRuns)==null?void 0:N.length)===((B=W.commandRuns)==null?void 0:B.length)&&((I=a.attachmentRuns)==null?void 0:I.length)===((X=W.attachmentRuns)==null?void 0:X.length)&&((v=a.decorationRuns)==null?void 0:v.length)===((U=W.decorationRuns)==null?void 0:U.length)};
Wqe=function(a,W){if(a){var w=YhH(a);if(w!=null&&w.content)if(_.r("attr_string_reactive"))Mw(EyI)({text:a,config:W});else{var Z=!(W==null||!W.ariaLabel)||!(w.commandRuns&&w.commandRuns.length!==0||w.paragraphStyleRuns&&w.paragraphStyleRuns.length!==0);a=Z?W==null?void 0:W.ariaLabel:null;Z=Z?"text":null;O8("span",{className:ZOD(w,W),dir$:(W==null?0:W.userInput)?"auto":void 0,"aria-label$":a,role$:Z},function(){if(w.styleRuns||w.commandRuns||w.attachmentRuns||w.decorationRuns){var N=Sh9(w,W);K9E(N,
W);N=c3x(w.content,N);N=_.l(N.parts);for(var B=N.next();!B.done;B=N.next())ao9(B.value)}else fa(w.content)})}}};
ao9=function(a){typeof a==="string"?fa(a):Ts7(a.data)?O8("span",a.data.imageWrapperConfig,function(){Vbx(a.data.image,a.data.imageConfig)}):O8(a.data.tag,a.data.config,function(W){pLF(a.data)(W);
W=_.l(a.parts);for(var w=W.next();!w.done;w=W.next())ao9(w.value)})};
Z2S=function(a){return a.parts.map(w4E)};
w4E=function(a){if(typeof a==="string")return a;a=Ts7(a.data)?_.k("span",{el:_.xJ(r3v(a.data.imageWrapperConfig))},_.k(_.qw,Object.assign({},{data:a.data.image},a.data.imageConfig))):_.k(a.data.tag,{el:_.xJ(pLF(a.data),r3v(a.data.config))},a.parts.map(w4E));return IT(a)};
Na8=function(a,W){return a===W?!0:a===void 0||W===void 0?!1:a.noStyleRuns===W.noStyleRuns&&a.noLinkColor===W.noLinkColor&&a.noEndpoints===W.noEndpoints&&a.headerRuns===W.headerRuns&&a.isOverlay===W.isOverlay&&a.linkInheritColor===W.linkInheritColor&&a.userInput===W.userInput};
tEe=function(a){return function(){var W,w,Z,N,B,I,X,v,U,O,S,T,p,h;return{ariaLabel:(W=a.ariaLabel)==null?void 0:W.call(a),className:(w=a.className)==null?void 0:w.call(a),ellipsisTruncate:(Z=a.ellipsisTruncate)==null?void 0:Z.call(a),isOverlay:(N=a.isOverlay)==null?void 0:N.call(a),linkInheritColor:(B=a.linkInheritColor)==null?void 0:B.call(a),noEndpoints:(I=a.noEndpoints)==null?void 0:I.call(a),noStyleRuns:(X=a.noStyleRuns)==null?void 0:X.call(a),noLinkColor:(v=a.noLinkColor)==null?void 0:v.call(a),
noPreWrap:(U=a.noPreWrap)==null?void 0:U.call(a),noWrap:(O=a.noWrap)==null?void 0:O.call(a),skipOnClick:(S=a.skipOnClick)==null?void 0:S.call(a),stopPropagation:(T=a.stopPropagation)==null?void 0:T.call(a),userInput:(p=a.userInput)==null?void 0:p.call(a),headerRuns:(h=a.headerRuns)==null?void 0:h.call(a)}}};
$A7=function(a){return a.value===""||a.value==="true"?!0:a.value==="false"?!1:isNaN(Number(a.value))?a.value:Number(a.value)};
s8=function(a,W){a=new BaH(a,W);_.eJ(a);throw a;};
loF=function(a,W,w){var Z=UC7(a);a._numRenders=0;try{var N=n_F(function(){return _.k(W,Object.assign({},w))})}catch(I){var B=function(X){X.args||(X.args=[]);
X.args.push("Error in web component wrapper");X.args.push(a.tagName.toLowerCase());return X};
_.nH(I instanceof Error?B(I):new BaH("Wiz rendering error",a.tagName.toLowerCase()));throw I;}finally{UC7(Z)}return N};
_.Ct=function(a,W,w){function Z(O){var S={};O=_.l(O);for(var T=O.next();!T.done;T=O.next()){T=T.value;var p=void 0,h=void 0,L=void 0,F=_.gQ((L=(h=(p=T).getAttribute)==null?void 0:h.call(p,"slot"))!=null?L:"children");if(p=S[F])p.push(T);else if(F in B||F==="children")S[F]=[T]}O=_.l(Object.keys(S));F=O.next();for(T={};!F.done;T={content$jscomp$55:void 0},F=O.next())F=F.value,F!=="children"&&(T.content$jscomp$55=S[F],S[F]=function(x){return function(){return x.content$jscomp$55}}(T));
return S}
w=w===void 0?{}:w;a.componentType!==k1||s8("Components must be marked reactive to be used from web component wrapper.",W);fp.has(W)&&s8("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",W);var N,B=(N=w.props)!=null?N:{};d$.add(W);var I=Io8();N=function(){var O=I.apply(this,arguments)||this;O.rawProps={};O.queuingRender=!1;O.dispose=function(){};
O.isWebComponentWrapper=!0;O.isReparenting=!1;O.hasRendered=!1;return O};
_.c(N,I);N.prototype.render=function(){this.hasRendered=!0;for(var O=_.l([].concat(_.K8(this.attributes))),S=O.next();!S.done;S=O.next())S=S.value,S.name!=="slot"&&this.removeAttribute(S.name);O=Object.assign({},this.componentProps,this.slotProps);S=_.l(loF(this,a,O));O=S.next().value;S=S.next().value;!(O[0]instanceof Element)||O.length>1?s8("Wrapped Wiz components must return a single root element.",W):(O=O[0].tagName.toLowerCase(),O!==W&&s8("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(O+" !== '"+W),W),this.dispose=S)};
N.prototype.setUpProps=function(){for(var O=this.rawProps,S=this.attributes,T=_.l(Object.keys(B)),p=T.next();!p.done;p=T.next()){p=p.value;var h=void 0;((h=this)==null?0:h[p])&&this[p]!==P1e&&O[p]===void 0&&(O[p]=this[p],(h=Object.getOwnPropertyDescriptor(this.constructor.prototype,p))&&Object.defineProperty(this,p,h))}T=_.l(S);for(p=T.next();!p.done;p=T.next()){h=p.value;p=_.gQ(h.name);var L=p==="class"&&!S.getNamedItem("class-name");if(p in B||L)h=$A7(h),p!=="class"||O.className?O[p]=h:O.className=
h}S={};for(var F in B)B[F]!==_.ux&&B[F]!==X4v&&(O[F]instanceof Function&&s8("Function props must be configured as STATIC, not SIGNAL.",W),p=_.l(_.$1(O[F],void 0,"Ri8MSe")),T=p.next().value,p=p.next().value,S[F]=p,O[F]=T);O=_.l([O,S]);this.componentProps=O.next().value;this.setters=O.next().value;this.slotProps=Z(this.childNodes)};
N.prototype.connectedCallback=function(){GD===W&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in B&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
N.prototype.disconnectedCallback=function(){if(!this._isInert){var O;a:{if(_.veH)for(O=this;O;){if(_.gex.has(O)){O=!0;break a}O=O.parentElement}O=!1}if(O)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){O=_.l([].concat(_.K8(this.attributes)));for(var S=O.next();!S.done;S=O.next())S=S.value,S.name!=="slot"&&this.removeAttribute(S.name)}this.innerText="";Ivx(this)}}};
N.prototype._setPendingPropertyOrPath=function(){};
N.prototype.notifyPath=function(){};
_.dU.Object.defineProperties(N.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var X=_.l(Object.keys(B)),v=X.next(),U={};!v.done;U={prop$jscomp$103:void 0},v=X.next())U.prop$jscomp$103=v.value,v=void 0,((v=w.legacyPolymer)==null?0:v.forwardHostProps)&&tYm.has(U.prop$jscomp$103)||Object.defineProperty(N.prototype,U.prop$jscomp$103,{set:function(O){return function(S){var T=this;this._isInert||(this.setters?va(function(){var p,h;return void((h=(p=T.setters)[O.prop$jscomp$103])==null?void 0:h.call(p,S))}):(this.rawProps[O.prop$jscomp$103]=S,this.queuingRender&&O.prop$jscomp$103===
"data"&&S!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(U),
get:oe7.has(U.prop$jscomp$103)?void 0:function(){return P1e}});
customElements.define(W,N)};
_.kfS=function(a,W){return(a=_.G$(a,W))?_.oJ(_.SB(a)):null};
_.Dg=function(a){if(a=_.G$(a,Number.MAX_VALUE,void 0,"width"))return _.SB(a)};
_.G$=function(a,W,w,Z){Z=Z===void 0?"width":Z;if(!a||!a.length)return null;if(_.r("kevlar_tuner_should_always_use_device_pixel_ratio")){var N=window.devicePixelRatio;_.r("kevlar_tuner_should_clamp_device_pixel_ratio")?N=Math.min(N,_.yv("kevlar_tuner_clamp_device_pixel_ratio")):_.r("kevlar_tuner_should_use_thumbnail_factor")&&(N=_.yv("kevlar_tuner_thumbnail_factor"));UAx=N}else UAx||(UAx=window.devicePixelRatio);N=UAx;_.r("kevlar_tuner_should_always_use_device_pixel_ratio")?W*=N:N>1&&(W*=N);if(_.r("kevlar_tuner_min_thumbnail_quality"))return a[0].url||
null;N=a.length;if(_.r("kevlar_tuner_max_thumbnail_quality"))return a[N-1].url||null;if(w)for(var B=0;B<N;B++)if(a[B].url.indexOf(w)>=0)return a[B].url||null;for(w=0;w<N;w++)if(a[w][Z]>=W)return a[w].url||null;for(W=N-1;W>0;W--)if(a[W][Z])return a[W].url||null;return a[0].url||null};
YJ8=function(){ft.size?setTimeout(function(){dJ(O27)},0):SJv=0};
O27=function(){var a=(0,_.mG)(),W=null,w=!1;ft.forEach(function(N){N.loaded=!0;N.loadTime=a;N.pendingPaint=!1;var B=Tae.get(N);B&&B.resolve(a);W=N;w||!N.ftlEligible&&N.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(w=!0)});
var Z;((Z=W)==null?0:Z.markDirty)&&W.markDirty();ft.clear();SJv=0;w&&KqE(a)};
p4m=function(a){ft.add(a);a.pendingPaint=!0;SJv||(SJv=_.mY(_.hF,YJ8))};
rHm=function(a){a.loaded=!1;a.loadTime=Infinity;var W=Tae.get(a);W&&(W.reject(Error("lh")),Tae.delete(a));a.pendingPaint&&(ft.delete(a),a.pendingPaint=!1)};
_.AHU=function(a){var W=a.indexOf(":");return W===-1?{originalName:a}:{originalName:a.substring(0,W),datasyncId:a.substring(W+1)}};
_.i2x=function(){return _.P(function(a){if(h6e!==void 0)return a.return(h6e);h6e=new Promise(function(W){var w;return _.P(function(Z){switch(Z.nextAddress){case 1:return _.tq(Z,2),_.g(Z,_.VD.open("test-only"),4);case 4:return _.g(Z,_.VD.delete("test-only"),5);case 5:_.qY(Z,3);break;case 2:if(w=_.Pb(Z),w instanceof Error&&w.name==="SecurityError")return W(!1),Z.return();case 3:W("caches"in window),_.Xd(Z)}})});
return a.return(h6e)})};
neU=function(){return _.P(function(a){if(a.nextAddress==1)return _.g(a,_.i2x(),2);if(!a.yieldResult)return a.return(void 0);cHF||(cHF=new e6H);return a.return(cHF)})};
jKD=function(a){var W,w,Z,N;return _.P(function(B){switch(B.nextAddress){case 1:return _.g(B,neU(),2);case 2:W=B.yieldResult;if(!W)throw Error("nh");return _.g(B,W.open("yt-player-local-img"),3);case 3:return w=B.yieldResult,_.g(B,w.match(a),4);case 4:Z=B.yieldResult;if(!Z)throw Error("oh");return _.g(B,Z.blob(),5);case 5:return N=B.yieldResult,B.return(N)}})};
LqC=function(a,W){for(var w in a)if(a.hasOwnProperty(w)&&W[w])return w;return null};
JHE=function(a){return"stamp"+a.replace("-","_")+"_"};
Fqe=function(a){var W=a.match(/\[\[([\w\.]+)\]\]/);if(W&&W.length>1)return W[1];_.eJ(Error("qh`"+a));return null};
MES=function(a){return a===void 0?_.JS("REUSE_COMPONENTS",!1):a||!1};
QKe=function(a,W,w){w&&(W.is?(R6e.has(W)&&(a=R6e.get(W),w=a.listener,delete W[a.property],w.type==="element"&&W.removeEventListener(w.eventName,w.handler),R6e.delete(W)),qJI(W)):W.__proto__==HTMLElement.prototype&&(W=new _.Uw("Rendererstamper removed a non custom element","Stamper: "+a+" element: "+(W&&W.nodeName)),_.jJ(W)))};
xAm=function(a,W,w,Z){var N=W.node?W.node:W;_.M(w).parentNode===N&&(W.removeChild(w),QKe(a,w,Z));if(a=z$.get(w))z$.delete(w),_.hF.cancelJob(a);w.hidden=!1};
b2m=function(a,W,w,Z){if(W&&W.children&&(w=W.children[w]))if(_.JS("DEFERRED_DETACH"))for(;w&&!z$.has(w);){var N=a,B=W,I=w,X=Z;I.hidden=!0;N=_.TP(_.hF,xAm.bind(null,N,B,I,X),0);z$.set(I,N);w=w.nextElementSibling}else for(;(I=W.lastElementChild)&&(W.removeChild(I),QKe(a,I,Z),I!=w););};
sKm=function(a){var W=_.D8();_.AS(function(){for(var w=_.l(a.slotContent),Z=w.next();!Z.done;Z=w.next())W.value.appendChild(Z.value)});
return _.k("__slot-el",{el:W,skip:!0})};
_.HX=function(a,W,w){w=w===void 0?u6U:w;fp.add(W);var Z;(Z=w).propNames!=null||(Z.propNames=[]);var N=new Set(w.propNames),B=Io8();Z=function(){var U=B.call(this)||this;U.props={};U.isUpdating=!1;U.hasAttached=!1;U.isInert=!1;U.updateQueued=!1;U.initialClasses=[];kg8(U,W);return U};
_.c(Z,B);Z.prototype.forwardKebabCaseProp=function(U,O){U=_.gQ(U);if(N.has(U)||U==="children")this.props[U]=O};
Z.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var U=_.l(this.initialClasses),O=U.next();!O.done;O=U.next())(O=O.value)&&this.classList.add(O);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
Z.prototype.handleSlottedContent=function(){for(var U=new Map,O=_.l(this.children),S=O.next();!S.done;S=O.next()){S=S.value;var T=void 0,p=(T=S.getAttribute("slot"))!=null?T:"children";(T=U.get(p))?T.push(S):U.set(p,[S]);if(!S.getAttribute("key")){var h=void 0,L=void 0;S.setAttribute("key",p+"_"+((L=(h=T)==null?void 0:h.length)!=null?L:0))}}U=_.l(U);for(O=U.next();!O.done;O=U.next())S=_.l(O.value),O=S.next().value,S=S.next().value,this.forwardKebabCaseProp(O,_.k(sKm,{slotContent:S}))};
Z.prototype.connectedCallback=function(){var U=this;if(!kg8(this,W)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var O=_.l(this.attributes),S=O.next();!S.done;S=O.next())S=S.value,this.forwardKebabCaseProp(S.name,$A7(S));this.handleSlottedContent();w.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){U.afterFirstPatch()});
this.hasAttached=!0}};
Z.prototype.attributeChangedCallback=function(U,O,S){this.isInert||this.isUpdating||this.isConnected||U!=="class"||this.initialClasses.push.apply(this.initialClasses,_.K8(S.split(" ")))};
Z.prototype.disconnectedCallback=function(){Ca9(this)};
Z.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var U,O;IKI(this,_.k(a,Object.assign({},this.props,{idomKey:(O=(U=this.__incrementalDOMData)==null?void 0:U.key)!=null?O:W})),!0)}catch(T){var S=T instanceof Error?T:new _.Uw("Wiz rendering error");S.args||(S.args=[]);S.args.push("Error in deprecated web component wrapper");S.args.push(W.toLowerCase());_.eJ(S);throw T;}finally{this.updateQueued=this.isUpdating=!1}}};
Z.prototype.enqueueUpdate=function(){var U=this;return _.P(function(O){if(w.synchronous)return U.update(),O.return();if(U.updateQueued)return O.return();U.updateQueued=!0;return O.return(Promise.resolve().then(function(){U.update()}))})};
Z.prototype.notifyPath=function(){w.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.dU.Object.defineProperties(Z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var I=_.l(w.propNames),X=I.next(),v={};!X.done;v={prop$jscomp$105:void 0},X=I.next())v.prop$jscomp$105=X.value,Object.defineProperty(Z.prototype,v.prop$jscomp$105,{set:function(U){return function(O){this.isInert||O===this.props[U.prop$jscomp$105]||(this.props[U.prop$jscomp$105]=O,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(v)});
customElements.define(W,Z)};
_.C1v=function(a,W){return _.tG(a.entities,"markersEngagementPanelSyncEntity",W)};
Gf9=function(a,W){return _.tG(a.entities,"fantasyWinProbabilityEntity",W)};
DAD=function(a,W){return _.tG(a.entities,"fantasyTeamEntity",W)};
fom=function(a,W){return _.tG(a.entities,"fantasyPlayerEntity",W)};
dAx=function(a,W){return _.tG(a.entities,"booleanEntity",W)};
mAU=function(a,W){return _.tG(a.entities,"qrCodeEntity",W)};
VEI=function(a){return _.tG(a.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
z6S=function(){if(yD)return yD;if(window.lottie)return yD=Promise.resolve(window.lottie);var a=_.cI(_.LF("LOTTIE_URL"));return a?yD=new Promise(function(W,w){var Z=document.createElement("script");Z.addEventListener("load",function(){W(lottie)});
Z.addEventListener("error",function(N){var B="Lottie library failed to load.";N?N.message&&(B+=" Original description: "+N.message,_.LH(N,B)):N=Error(B);_.jJ(N);w(N)});
Z.setAttribute("async","");_.Q$(Z,a);document.head.appendChild(Z)}):Promise.reject(Error("rh"))};
H2E=function(){return yD?yD:z6S()};
yHE=function(){var a=VEI(_.Cx().getState());if(a&&a.animationStyle)switch(a.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return E8.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return E8.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return E8.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
Eem=function(a){if(a)switch(a){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.r("kevlar_use_wil_icons"))return(a=yHE())?a:E8.get("LIKE")}};
a4F=function(a){var W=Eem(a);if(W)return W;switch(a){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return E8.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return E8.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return E8.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return E8.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return E8.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return E8.get("NOTIFICATION_BELL")}};
wYv=function(a,W){if(!a||WeD)W=!1;else{if(a.closest){var w=!!Eem(W);w=_.LF("ID_TOKEN")&&w?!!a.closest("segmented-like-dislike-button-view-model"):!1}else w=!1;if(!w)if(a.closest)if(w=!_.LF("ID_TOKEN"),a=a.closest("ytd-subscription-notification-toggle-button-renderer-next"),w||!a)w=!1;else{var Z;w=((Z=a.data)==null?void 0:Z.targetId)==="notification-bell"&&W!=="EXPAND_MORE"}else w=!1;W=w}return W};
ZXx=function(a){var W,w;return _.P(function(Z){switch(Z.nextAddress){case 1:return _.tq(Z,2),_.g(Z,fetch(a),4);case 4:return W=Z.yieldResult,_.g(Z,W.json(),5);case 5:return Z.return(Z.yieldResult);case 2:w=_.Pb(Z),_.jJ(w),_.Xd(Z)}})};
NeI=function(a,W){var w,Z,N;return _.P(function(B){if(B.nextAddress==1)return(w=W?a.pathDarkTheme:a.path)?_.g(B,Promise.all([ZXx(w),z6S()]),2):B.return();Z=B.yieldResult;N=Z[0];at.set(w,N);_.Xd(B)})};
_.W$=function(){var a=_.TH.apply(0,arguments);return function(){for(var W="",w=_.l(a),Z=w.next();!Z.done;Z=w.next())if(Z=Z.value,typeof Z==="function"&&(Z=Z()),Z)if(typeof Z==="string")W+=" "+Z;else for(var N in Z)if(Z.hasOwnProperty(N)){var B=Z[N];typeof B==="function"&&(B=B());B&&(W+=" "+N)}W=W.trim()||void 0;return _.ik(W)}};
_.w2=function(a){var W;var w=a.data;var Z=a.className;var N=a.animationName;var B=a.animationRef;var I=(W=a.elRefForInterop)||_.D8(),X;_.Ao(function(){var O;return void((O=X)==null?void 0:O.destroy())});
var v;_.Ka(function(){var O=_.ik(N);if(O!==v){v=O;var S=Object.assign({},{animationName:O,animationRef:_.ik(B)},_.ik(w));try{_.K().resolve(tj9)().then(function(h){var L;(L=X)==null||L.destroy();L=S.animationRef;var F=S.listeners;h=h.loadAnimation(Object.assign({},{container:I.value},S.animationConfig));L&&(L.lottieEl=h);if(F)for(L=_.l(Object.entries(F)),F=L.next();!F.done;F=L.next()){var x=_.l(F.value);F=x.next().value;(x=x.next().value)&&h.addEventListener(F,x)}X=h})}catch(h){O=h;
var T="LottieComponent error.";O.message&&(T+=" Original description: "+O.message);_.LH(O,T);_.jJ(O);var p;((p=S.listeners)==null?0:p.error)&&S.listeners.error(O)}}});
var U=_.W$("ytLottieComponentHost",Z);return _.k(VJH,{cond:function(){return!W},
then:function(){return _.k("lottie-component",{class:U,el:I})}})};
$2m=function(a){var W=_.D8(),w=_.l(U6C(a.data.animationConfig.name||"",a.className)),Z=w.next().value;w=w.next().value;var N=iG(function(){return a.data.animationRef});
rw(function(){a.data.animationRef&&(a.data.animationRef.lottieEl=N==null?void 0:N.lottieEl)},[a.data.animationRef]);
return _.k("lottie-component",{skip:!0,class:_.W$(w,"ytLottieComponentHost"),el:W},_.k(_.w2,{data:a.data,animationRef:N,animationName:Z,elRefForInterop:W}))};
l4F=function(a,W,w,Z){function N(I,X){if(W.value===X&&a!=null&&a.value){for(;a.value.firstChild;)a.value.removeChild(a.value.firstChild);a.value.classList.add("yt-spec-icon-shape");I(a.value,Z)}}
w=_.BeU(_.K().resolve(_.ad),w);if(typeof w==="function")W.value=null,N(w,null);else{var B=new _.PZ(w.then,w);W.value=B;B.then(function(I){N(I,B)})}};
PtU=function(a,W){var w=document.createElement("div"),Z=_.KF(w,function(){return _.k(_.Y,{cond:a,then:function(N){return _.k(I4U,{data:N,options:W})}})});
return[w,Z]};
_.ZK=function(){for(var a=[],W=_.l(_.TH.apply(0,arguments)),w=W.next();!w.done;w=W.next())if(w=w.value)if(typeof w==="string")a.push(w);else{w=_.l(Object.entries(w));for(var Z=w.next();!Z.done;Z=w.next()){var N=_.l(Z.value);Z=N.next().value;(N=N.next().value)&&a.push(Z)}}return a.join(" ")};
oh8=function(a){var W=_.D8(),w=cS(),Z=Gq(a.character)||Gq(a.previousCharacter);TU(function(){if(a.marginMultiplier){var N;(N=w.value)==null||N.cancel();Z?(N=a.previousCharacter?Number(a.previousCharacter)+10:a.rollUp?0:30,a.shouldAnimate||(N-=XYx(a,N))):(N=a.rollUp?0:2,a.shouldAnimate||(N-=a.rollUp?-1:1));W.value.style.marginTop="-"+N*a.marginMultiplier+"px";a.shouldAnimate?w.value=vh8(W.value,a,N,Z):W.value.style.display=a.character?"":"none"}});
return _.k("animated-rolling-character",{el:W,class:"animated-rolling-character-wiz"},uJ(Z,function(){for(var N=[],B=1;B<30;B++)N.push(_.k("div",null,B%10));return _.k(_.Ha,null,_.k("div",null,"\u00a0"),N,_.k("div",null,"\u00a0"))},function(){return ghv(a.character)}))};
ghv=function(a){return _.k(_.Ha,null,_.k("div",null,"\u00a0"),_.k(_.Ha,null,uJ(!a||_.vv(a),function(){return _.k("div",null,"\u00a0")},function(){return _.k("div",null,a)})),_.k("div",null,"\u00a0"))};
vh8=function(a,W,w,Z){w=new Animation(new KeyframeEffect(a,[{transform:"translateY(0px)"},{transform:"translateY("+(Z?XYx(W,w):W.rollUp?-1:1)*W.marginMultiplier+"px)"}],kl8),document.timeline);W.character?(a.style.display="",w.onfinish=null):w.onfinish=function(){a.style.display="none"};
w.play();return w};
XYx=function(a,W){var w=Number(a.character)+10;if(a.previousCharacter)if(a.character){var Z=Number(a.character),N=Number(a.previousCharacter);a=a.rollUp?N<Z?w:w+10:N<Z?w-10:w}else a=a.rollUp?30:0;else a=a.character==="0"?w:a.rollUp?w-10:w+10;return W-a};
_.NX=function(a,W){return function(w){var Z={},N;for(N in w){var B=void 0,I=void 0;((B=W)==null?0:(I=B.callbacks)==null?0:I[N])||(Z[N]=w[N])}return _.k(enm,null,function(){for(var X in Z)w[X]=_.ik(Z[X]);w.disableReactiveLogging=!0;return _.k(a,Object.assign({},w))})}};
_.tu=function(a){var W=cS(),w=cS();rw(function(){W.value=a.numberText;w.value=a.numberValue},[a.numberText]);
var Z=a.fontSizeMultiplier?a.heightPx*a.fontSizeMultiplier:a.heightPx,N=hS(function(){if(a.numberText){var I=a.numberText;var X=a.forceRollUp||!w.value||!a.numberValue||w.value<a.numberValue;var v=!!a.shouldAnimate,U=W.value,O=[],S=0,T=0,p=(U?U.replace(/\D/g,"").length:0)-(I?I.replace(/\D/g,"").length:0);U=U?U.split(/(\d)/).filter(Boolean):[];for(I=I.split(/(\d)/).filter(Boolean);p<0;){var h=I[T];O.push({character:h,rollUp:X,marginMultiplier:Z,shouldAnimate:v});T++;Gq(h)&&p++}for(;S<p;)h=U[S],O.push({previousCharacter:h,
rollUp:X,marginMultiplier:Z,shouldAnimate:v}),S++,Gq(h)||p++;for(;T<I.length;)p=I[T],h=U[S],Gq(p)===Gq(h)?(T++,S++):Gq(p)?(S++,p=void 0):Gq(h)&&(T++,h=void 0),O.push({character:p,previousCharacter:h,rollUp:X,marginMultiplier:Z,shouldAnimate:v});X=O}else X=[];return X},[a.numberText]),B=a.numberText?["height: "+Z+"px;",
"line-height: "+a.heightPx+"px;"].join(" "):"";return _.k("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:B,dir:"ltr","aria-hidden":"true"},N.map(function(I){return _.k(oh8,Object.assign({},I))}))};
U2H=function(a){var W=a.nodeName;if(a.id)return W+="#"+a.id;if(a.classList)for(var w=_.l(a.classList),Z=w.next();!Z.done;Z=w.next())W+="."+Z.value;a.parentElement&&(W=U2H(a.parentElement)+" > "+W);return W};
OXI=function(a){return function(W){var w=mKe("event",{type:W.type});w&&W.target&&w.attr("nodepath",U2H(W.target));return HmU(w,a,W)}};
_.$_=function(a){a&&Vi8("event")&&(a=OXI(a));return w$8(function(W){var w,Z=(w=a)==null?void 0:w(W);return typeof Z==="boolean"?Z:!0})};
B$=function(a){return function(){return a()?a():void 0}};
SpF=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})};
YpS=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})};
Te8=function(a){var W=_.l(_.$1(a,void 0,"Clci1e")),w=W.next().value,Z=W.next().value;w.current=a;return[w,function(N){return void Z(w.current=N)}]};
_.l5=function(a){var W=bx(function(){return Te8(a())},{isEqual:function(w,Z){return w[0].current===Z[0].current}});
return[function(){return W()[0]()},
function(w){return void W()[1](w)}]};
_.It=function(a){return function(){var W="",w;for(w in a){for(var Z=a[w];typeof Z==="function";)Z=Z();Z!==void 0&&Z!==null&&(W+="; "+w+": "+Z)}return W.length>0?_.ik(W.slice(2)):_.ik()}};
KeC=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"}};
AJm=function(a,W,w,Z,N,B){var I=pYv(a),X=I.disabled,v=I.iconPosition,U=I.style,O=I.focused,S=function(){return!!h()&&v()==="icon-only"},T=function(){return!!h()&&v()==="icon-only-40"},p=function(){return!!h()&&v()==="icon-with-label"},h=function(){return!!W||!(Z==null||!Z())};
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(O()||(B==null?void 0:B()))&&!X()},
hasIconLeading:function(){return!!h()&&v()==="leading"},
hasIconTrailing:function(){return!!h()&&v()==="trailing"},
hasIconLeadingTrailing:function(){return!!h()&&!!(w||N!=null&&N())&&v()==="leading-trailing"},
hasIconOnly:S,hasIconOnly40:T,hasIconWithLabel:p,iconButton:function(){return S()||T()||p()},
visiblyDisabled:function(){return(X()?"disabled":a().state)==="disabled"||X()},
overrideSmallSizeIcon:function(){return rJ8(a(),h())},
iconToRender:W?W:function(){return _.k(_.P$,{icon:Z,size:function(){return Xq(a(),!0)},
active:function(){return a().toggled}})},
secondaryIconToRender:w?w:function(){return _.k(_.P$,{icon:N,size:function(){return Xq(a(),!0)},
active:function(){return a().toggled}})}}};
pYv=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(W){var w,Z;return(Z=(w=a()).onTap)==null?void 0:Z.call(w,W)},
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(W){var w,Z;return(Z=(w=a()).onToggle)==null?void 0:Z.call(w,W)},
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}}};
hPF=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};
rJ8=function(a,W){W=(a.iconPosition==="icon-only"||a.iconPosition==="icon-only-40"||a.iconPosition==="icon-with-label")&&W;return!a.segmentedPosition&&W&&a.size==="S"};
iXU=function(){return!_.r("web_disable_backdrop_filter")};
Xq=function(a,W){switch(a.size){case "XS":return 16;case "S":return rJ8(a,W)?24:16;default:return 24}};
cJv=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"}};
ePH=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"}};
nh9=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"}};
jHm=function(a){if(a.style==="overlay-dark"&&a.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
Le9=function(a){if(!a)return{};var W=a.color,w=a.backgroundColor;a=a.borderColor;var Z="";W&&(Z+="color: "+W+";");w&&(Z+="background-color: "+w+";");a&&(Z+="border-color: "+a+";");return{style:Z}};
RPm=function(a,W,w){var Z=a.buttonText,N=a.formattedButtonText,B=a.formattedButtonTextLegacy,I=a.animatedTextProps,X=a.style,v=a.size,U=a.focused,O=a.disabled,S=a.onTap,T=a.alignByText,p=a.aTagConfig,h=a.customColors,L=a.segmentedPosition,F=a.toggled,x=a.toggleable,G=a.accessibilityLabel,V=a.onToggle,d=a.iconPosition,ZD=a.oneOffCustomTextWrap,aC=a.disableTextEllipsis,Bv=a.disableBackdropFilter,Am=a.tooltipText,e9=a.ariaHidden,cv=a.tabIndex,C7=a.state,RC=a.type;X==="call-to-action-inverse"&&(RC="text");
X==="overlay-dark"&&RC!=="filled"&&RC!=="tonal"&&(RC="tonal");var G8=!!W&&d==="leading",QF=!!W&&d==="trailing",vl=!!W&&!!w&&d==="leading-trailing",Hl=!!W&&d==="icon-only",SV=!!W&&d==="icon-only-40",Ny=!!W&&d==="icon-with-label",Bl=Hl||SV||Ny;O&&(C7="disabled");var JL=C7==="disabled"||O;C7=rJ8(a,!!W);var Pl={},W9=(Pl["yt-spec-button-shape-next"]=!0,Pl[cJv(RC)]=!0,Pl[ePH(X)]=!JL,Pl["yt-spec-button-shape-next--disabled"]=!!JL,Pl[nh9(v)]=!0,Pl["yt-spec-button-shape-next--focused"]=!!U&&!O,Pl["yt-spec-button-shape-next--icon-trailing"]=
QF,Pl["yt-spec-button-shape-next--icon-leading"]=G8,Pl["yt-spec-button-shape-next--icon-leading-trailing"]=vl,Pl["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=vl&&!(Z||N),Pl["yt-spec-button-shape-next--icon-button"]=Hl||Ny,Pl["yt-spec-button-shape-next--icon-only-default"]=SV,Pl["yt-spec-button-shape-next--align-by-text"]=!!T,Pl["yt-spec-button-shape-next--segmented-start"]=L==="start",Pl["yt-spec-button-shape-next--segmented-end"]=L==="end",Pl["yt-spec-button-shape-next--override-small-size-icon"]=
C7,Pl["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!ZD,Pl["yt-spec-button-shape-next--disable-text-ellipsis"]=!!aC,Pl["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!Bv&&iXU(),Pl),rC=function(){if(I)Mw(_.tu)(I);else if(B)B(d==="icon-with-label"||ZD?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(N){var DE=d==="icon-with-label"||ZD;Wqe(Object.assign({},N,DE?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!DE})}else Z&&fa(Z)},le=function(DE){S==null||S(DE);
x&&(V==null||V(DE))},rT=p?JJD:Fee,Re=p?"aria-current$":"aria-pressed$",u9=function(){W&&(G8||vl||Bl)&&function(){v$({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){W()})}();
(Z||N||B||I)&&!Bl&&function(){v$({className:"yt-spec-button-shape-next__button-text-content"},function(){rC()})}();
QF&&function(){v$({className:"yt-spec-button-shape-next__icon"},function(){W()})}();
vl&&function(){v$({className:"yt-spec-button-shape-next__secondary-icon"},function(){w()})}();
O||Mw(_.g2)({model:{color:hPF(a)}})},eV=function(){var DE={};
rT(Object.assign({},(DE.className=_.ZK(W9),DE.onclick=p?void 0:le,DE.disabled=O,DE["aria-disabled$"]=JL,DE.style=O&&p?"pointer-events:none":void 0,DE[Re]=x?!!F:void 0,DE["aria-label$"]=G,DE.title$=Am!=null?Am:"",DE["aria-hidden$"]=e9,DE.tabindex$=cv,DE),p,Le9(h)),function(){u9()})};
Ny?(v={},X=(v["yt-spec-button-shape-with-label"]=!0,v["yt-spec-button-shape-with-label--is-overlay"]=X==="overlay"||X==="overlay-dark",v),Mjv({className:_.ZK(X)},function(){eV();v$({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},rC)})):eV()};
qpC=function(a,W){if(!Cr){var w;UES(function(){return w=iAS(a,W)});
return w}return iAS(a,W)};
QHx=function(){var a=RqI(Cr||void 0,ruH);return a===MmC||(a==null?void 0:a.name)==="\u0275NotFound"?void 0:a};
sHx=function(a){var W=a.data;var w=a.icon;var Z=a.secondaryIcon;var N=a.iconName;var B=a.secondaryIconName;QHx();var I=W.size;a=W.style;var X=W.focused,v=W.disabled,U=W.onTap,O=W.alignByText,S=W.aTagConfig,T=W.customColors,p=W.segmentedPosition,h=W.toggled,L=W.toggleable,F=W.accessibilityLabel,x=W.onToggle,G=W.iconPosition,V=W.oneOffCustomTextWrap,d=W.disableTextEllipsis,ZD=W.disableBackdropFilter,aC=W.tooltipText,Bv=W.ariaHidden,Am=W.tabIndex,e9=!!w||!!N,cv=w,C7=Z;if(N){var RC=Xq(W,!0);cv=function(){return _.k(_.P$,
{icon:N,size:RC,active:W.toggled})}}if(B){var G8=Xq(W,!0);
C7=function(){return _.k(_.P$,{icon:B,size:G8,active:W.toggled})}}var QF=W.state;
w=W.type;a==="call-to-action-inverse"&&(w="text");a==="overlay-dark"&&w!=="filled"&&w!=="tonal"&&(w="tonal");var vl=e9&&G==="leading",Hl=e9&&G==="trailing",SV=e9&&(!!Z||!!B)&&G==="leading-trailing";Z=e9&&G==="icon-only";var Ny=e9&&G==="icon-only-40";G=e9&&G==="icon-with-label";var Bl=Z||Ny||G;v&&(QF="disabled");var JL=QF==="disabled"||v;e9=rJ8(W,e9);QF={};var Pl=_.ZK((QF["yt-spec-button-shape-next"]=!0,QF[cJv(w)]=!0,QF[ePH(a)]=!JL,QF["yt-spec-button-shape-next--disabled"]=!!JL,QF[nh9(I)]=!0,QF["yt-spec-button-shape-next--focused"]=
!!X&&!v,QF["yt-spec-button-shape-next--icon-trailing"]=Hl,QF["yt-spec-button-shape-next--icon-leading"]=vl,QF["yt-spec-button-shape-next--icon-leading-trailing"]=SV,QF["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=SV&&!(W.buttonText||W.formattedButtonText),QF["yt-spec-button-shape-next--icon-button"]=Z||G,QF["yt-spec-button-shape-next--icon-only-default"]=Ny,QF["yt-spec-button-shape-next--align-by-text"]=!!O,QF["yt-spec-button-shape-next--segmented-start"]=p==="start",QF["yt-spec-button-shape-next--segmented-end"]=
p==="end",QF["yt-spec-button-shape-next--override-small-size-icon"]=e9,QF["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!V,QF["yt-spec-button-shape-next--disable-text-ellipsis"]=!!d,QF["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!ZD&&iXU(),QF)),W9=_.$_(function(rC){U==null||U(rC);L&&(x==null||x(rC))});
I=function(){return S?_.k(_.ot,{aTagConfig:S,disabled:v,className:Pl,style:Le9(T).style,title:aC!=null?aC:"",ariaLabel:F,ariaCurrent:L&&h},_.k(_.Ha,null,x2S(W,vl,SV,Hl,Bl,cv,C7))):_.k("button",{"on:click":W9,class:Pl,title:aC!=null?aC:"",style:v&&S?"pointer-events:none":Le9(T).style,disabled:v,"aria-pressed":L?!!h:void 0,"aria-label":F?F:void 0,"aria-disabled":JL,"aria-hidden":Bv,tabindex:Am},_.k(_.Ha,null,x2S(W,vl,SV,Hl,Bl,cv,C7)))};
X={};a=(X["yt-spec-button-shape-with-label"]=!0,X["yt-spec-button-shape-with-label--is-overlay"]=a==="overlay"||a==="overlay-dark",X);return _.k("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},G?_.k("label",{class:_.ZK(a)},I(),_.k("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},bX7(W))):I())};
bX7=function(a){var W=a.formattedButtonText,w=a.animatedTextProps,Z=a.buttonText,N=a.oneOffCustomTextWrap;a=a.iconPosition;return w?_.k(_.tu,{numberText:w.numberText,numberValue:w.numberValue,heightPx:w.heightPx,fontSizeMultiplier:w.fontSizeMultiplier,shouldAnimate:w.shouldAnimate,forceRollUp:w.forceRollUp}):W?(w=a==="icon-with-label"||N,_.k(_.k_,{text:Object.assign({},W,w?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!w})):Z};
x2S=function(a,W,w,Z,N,B,I){return _.k(_.Ha,null,uJ(B&&(W||w||N),function(){return _.k(_.Ha,null,_.k("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},B==null?void 0:B()))}),uJ((a.buttonText||a.formattedButtonText||a.animatedTextProps)&&!N,function(){return _.k(_.Ha,null,_.k("div",{class:"yt-spec-button-shape-next__button-text-content"},bX7(a)))}),uJ(Z,function(){return _.k(_.Ha,null,_.k("div",{class:"yt-spec-button-shape-next__icon"},B==null?void 0:B()))}),uJ(w,function(){return _.k(_.Ha,
null,_.k("div",{class:"yt-spec-button-shape-next__secondary-icon"},I==null?void 0:I()))}),uJ(!a.disabled&&!0,function(){return _.k(_.g2,{model:{color:hPF(a)}})}))};
Ub=function(a,W){_.AQ(a,Object.assign({},W,{forceClickLogging:!0}))};
un9=function(a,W,w,Z){var N=void 0;return function(B){var I=_.rJ(w?a==null?void 0:a.onDisabledTap:a==null?void 0:a.onTap);if(I){var X;N=(X=N)!=null?X:W==null?void 0:W.value;if(I)if(_.r("web_button_vm_click_client_ve_killswitch"))Ub(I,Object.assign({},{form:{element:N,event:B}},void 0));else{var v;X=I==null?void 0:I.clickTrackingParams;var U,O=a==null?void 0:(v=a.loggingDirectives)==null?void 0:(U=v.clientVeSpec)==null?void 0:U.uiType;v=O&&!X?_.Ob(O):void 0;Ub(I,Object.assign({},{form:{element:N,event:B}},
{clickedVisualElement:v}))}}Z&&Z(B)}};
CtF=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"}};
Gl7=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"}};
D2v=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"}};
f4I=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"}};
d2x=function(a,W){return _.tG(a.entities,"engagementToolbarStateEntityPayload",W)};
Vj7=function(a){(a=_.PX(a))&&_.m2H(a)};
_.m2H=function(a){var W=_.nS();W&&_.q1(W,a)};
zP9=function(a,W,w){_.aV(a,"yt-open-popup-action",[W,w||a])};
HXI=function(a,W){var w=_.em(a,"endpoint"),Z=_.em(a,"action");return(w=Z?Z:w)&&W&&(w=W.navigationEndpointPopupMap[w])&&(a=_.RT(w,a),(w=_.em(a,"renderer"))&&W.supportedPopups.hasOwnProperty(w))?{openPopupAction:{popupType:W.popupTypeMap[w],popup:a}}:null};
yJU=function(a,W,w,Z){if(Z){var N;w=w==null?void 0:(N=w.data)==null?void 0:N.contents;(N=w instanceof Array&&w.length?w[0]:w)&&(w=_.em(N,"renderer"))&&Z.supportedPopups.hasOwnProperty(w)&&(W.stopPropagation(),zP9(a,{openPopupAction:{popupType:Z.popupTypeMap[w],popup:N}}))}};
WPC=function(a,W,w,Z){Z=Z===void 0?!1:Z;var N=Ehe(W);if(N){N.href&&h7(N.href);var B=W.button;B=B!==void 0?B===0&&!SL(W):!SL(W);N.data&&B&&aSe(a,N,W,w,Z)}};
aSe=function(a,W,w,Z,N){N=N===void 0?!1:N;var B=_.yv("pbj_navigate_limit",-1)===0;wOv(W);_.K().resolve(_.Vv(xj));var I=W.data;if(Object.keys(I).length!==0)if(!_.r("unplugged_web_disable_actions_for_cec_endpoint")&&_.A(I,_.$7))_.r("endpoint_behavior_command_executor_fix_killswitch")||(w.preventDefault(),w.stopPropagation()),_.N1(a,[I],a);else if(Z=HXI(I,Z))I.loggingUrls&&I.loggingUrls.forEach(function(v){v.baseUrl&&_.qE(v.baseUrl)}),w.preventDefault(),w.stopPropagation(),zP9(a,Z,W);
else{var X=Z$m(0,W.data,w);if(a=W.getForm)a=a(),X.tempData=X.tempData||{},X.tempData=Object.assign({},X.tempData,a);a=_.qj(w);if(Z=a.find(function(v){return!!v.visualElement}))X.createScreenConfig=X.createScreenConfig||{},X.createScreenConfig.clickedVisualElement=Z.visualElement;
if(!B)if(w.preventDefault(),w.stopPropagation(),_.A(I,_.N6S)&&!N&&_.WX.instance)_.WX.instance.resolveCommand(I,X);else if(_.r("kevlar_command_handler_formatted_string")&&!N&&_.WX.instance&&ttS(I))N=a.find(function(v){return!!v.is})||w.target,w={form:Object.assign({},X,{event:w,
element:N,originatingNode:W})},_.WX.instance.resolveCommand(I,w);else{I=_.qj(w);w=[];for(N=0;N<I.length;N++)(B=I[N].is)&&w.push(B);btU({parents:w.join(","),text:W.innerText},function(){_.E$(W,"yt-navigate",X)})}}};
$ce=function(a){if(a=Ehe(a))wOv(a),T09(a.href)};
Ehe=function(a){a=_.qj(a);for(var W,w=0;w<a.length;w++)if(W=a[w],W.tagName==="A"&&W.classList.contains("yt-simple-endpoint")){if(!W.data)break;return W}return null};
SL=function(a){return a.shiftKey||a.altKey||a.metaKey||a.ctrlKey};
B6x=function(a,W){var w={itct:W.clickTrackingParams};_.r("kevlar_client_side_screens")&&(!_.A(W,_.gi)||_.r("kevlar_exclude_endpoint_killswitch"))&&(w.endpoint=JSON.stringify(W));_.r("enable_unknown_lact_fix_on_html5")&&_.K().resolve(_.Vv(_.Y_))&&(w.lact=_.HI());OgI(w);_.fS(a,w)};
wOv=function(a){a.href&&Object.keys(a.data).length!==0&&B6x(a.href,a.data)};
ttS=function(a){for(var W=_.l(lSm),w=W.next();!w.done;w=W.next())if(a[w.value])return!1;return!0};
_.Tw=function(a,W){if(W){var w={};ISI.forEach(function(Z){Z=PSI(W,Z,"--yt-lightsource-");Object.assign(w,Z)});
XO8.forEach(function(Z){Z=PSI(W,Z,"--yt-basic-");Object.assign(w,Z)});
_.Hu(a,w)}};
PSI=function(a,W,w){var Z={};Z[w+_.vG(W)]=a&&a[W]?_.pC(a[W]):"";return Z};
_.pA=function(a,W,w){KA[a]||(KA[a]={});KA[a][W]=w};
_.r2=function(a){KA[a]||(KA[a]={});return KA[a]};
vG9=function(a){if(!a)return{};var W=a.foregroundTitleColor,w=a.backgroundColor;a=a.borderColor;var Z="text";a?Z="outline":w&&(Z="filled");return{type:Z,customColors:{color:W?_.pC(W):void 0,backgroundColor:w?_.pC(w):void 0,borderColor:a?_.pC(a):void 0}}};
O$H=function(a){var W=a.renderer;var w=a.element;var Z=a.commandController;var N=a.onTapCallback;var B=a.skipCommandHandling;var I=a.overrides;var X=a.forceIcon;var v=a.forceModernIconButton;var U=a.forceDisabled;var O=a.isSubscribe===void 0?!1:a.isSubscribe;var S=a.isPressed===void 0?!1:a.isPressed;var T=a.useButtonSize===void 0?!1:a.useButtonSize;a=gGE(W);O&&(a.style="mono",a.type="filled");X=!W.icon||!X&&W.text?W.icon?W.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:v?"icon-only":"icon-only-40";X==="icon-only-40"&&(a.type="text");var p;v=Object;O=v.assign;T=oGS(W,T);S=!!W.isSelected||!_.r("web_propagate_is_pressed_killswitch")&&!!S;var h=W.isSelected!==void 0;U=U===void 0?W.isDisabled:U;var L=W.text?_.YJ(W.text):void 0;var F,x,G,V=((F=W.accessibilityData)==null?void 0:(x=F.accessibilityData)==null?void 0:x.label)||((G=W.accessibility)==null?void 0:G.label);F=V?V:_.sd(W.text);w=kFS(W,w,Z,N,B);Z=Ucm(W);Z!=null&&Z.length?(Z=_.hQ({innertubeCommand:uVE(Z),
forceNewState:!0}),Z=ix(Z)?Z:void 0):Z=void 0;return O.call(v,{},a,T,{iconPosition:X},I,{focused:!1,toggled:S,toggleable:h,disabled:U,formattedButtonText:L,accessibilityLabel:F,onTap:w,aTagConfig:Z},vG9((p=W.colorData)==null?void 0:p.basicColorPaletteData),{oneOffCustomTextWrap:W.oneOffCustomTextWrap})};
kFS=function(a,W,w,Z,N){return function(B){var I=Ucm(a);Z(I,B);if(!N){I=_.l(I);for(var X=I.next();!X.done;X=I.next())Ub(X.value,{form:{element:W,event:B},commandController:w})}}};
Ucm=function(a){var W=[];a.command&&W.push(a.command);a.serviceEndpoint&&W.push(a.serviceEndpoint);a.navigationEndpoint&&W.push(a.navigationEndpoint);return W};
oGS=function(a,W){if(W)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"}}};
gGE=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"}}};
_.Au=function(a){return _.XT(function(){SHH()();return Mt(a)},void 0,"Icv7j")};
hu=function(a,W){return _.tG(a.entities,"likeStatusEntity",W)};
S4C=function(a,W){return _.tG(a.entities,"likeCountEntity",W)};
_.Y4C=function(a,W){return _.tG(a.entities,"stringEntity",W)};
T6D=function(a,W){if(!a)return!1;var w,Z=(w=_.A(a,_.l0))==null?void 0:w.signal;if(Z&&W.signalEndpointMap)return!!W.signalEndpointMap[Z];var N;if((w=(N=_.A(a,_.i5))==null?void 0:N.request)&&W.continuationEndpointMap)return!!W.continuationEndpointMap[w];for(var B in a)if(W.commandEndpointMap[B])return!0;return!1};
KPS=function(a,W){if(W.streamingEndpointMap)for(var w in a)if(W.streamingEndpointMap[w]&&(a=W.streamingEndpointMap[w]))return a()};
pOH=function(a,W){var w,Z=(w=_.A(a,_.l0))==null?void 0:w.signal;if(Z&&W.signalEndpointMap&&(w=W.signalEndpointMap[Z]))return w();var N;if((w=(N=_.A(a,_.i5))==null?void 0:N.request)&&W.continuationEndpointMap&&(N=W.continuationEndpointMap[w]))return N();for(var B in a)if(W.commandEndpointMap[B]&&(a=W.commandEndpointMap[B]))return a()};
r0I=function(a){var W={"Content-Type":"application/json"};_.LF("EOM_VISITOR_DATA")?W["X-Goog-EOM-Visitor-Id"]=_.LF("EOM_VISITOR_DATA"):_.LF("VISITOR_DATA")&&(W["X-Goog-Visitor-Id"]=_.LF("VISITOR_DATA"));W["X-Youtube-Bootstrap-Logged-In"]=_.LF("LOGGED_IN",!1);_.LF("DEBUG_SETTINGS_METADATA")&&(W["X-Debug-Settings-Metadata"]=_.LF("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=_.LF("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(W["X-Youtube-Client-Name"]=a),(a=_.LF("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(W["X-Youtube-Client-Version"]=
a),(a=_.LF("CHROME_CONNECTED_HEADER"))&&(W["X-Youtube-Chrome-Connected"]=a),(a=_.LF("DOMAIN_ADMIN_STATE"))&&(W["X-Youtube-Domain-Admin-State"]=a),_.JS("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(a=_.LF("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(W["X-YouTube-Lava-Device-Context"]=a));return W};
A0F=function(a,W){W.watchNextResponse||W.reelItemWatchResponse?W.watchNextResponse?a.content=W.watchNextResponse:a.content=W.reelItemWatchResponse:W.playerResponse?a.player=W.playerResponse:W.reelWatchSequenceResponse&&(a.reelSequence=W.reelWatchSequenceResponse)};
c$=function(a){return function(){return new a}};
eL=function(a){var W=_.K();return function(){return W.resolve(a)}};
_.nA=function(a){if(!a)return null;for(var W=[],w=0;w<a.textSegments.length;w++){var Z=a.textSegments[w];Z.text?W.push(Z):Z.emojiId&&W.push({emoji_id:Z.emojiId})}return{text_segments:W}};
nGU=function(a,W,w,Z,N,B,I){B=B===void 0?[]:B;var X=new _.jL;X.endpoint=w;if(!w)return _.nH(new _.Uw("handle undefined endpoint",W.tagName)),X;var v=Vx8(w);v.length&&(_.N1(a,v,W,Z),X.actions=v);w.loggingUrls&&w.loggingUrls.forEach(function(O){O.baseUrl&&Ql(O.baseUrl,O.attributionSrcMode)});
v=!_.r("web_skip_impression_click_killswitch")&&Z&&Z.impression;if(w.clickTrackingParams&&!hdD(w)&&!i$U(W)&&!v&&(v=_.$J(),!_.LA(v,W))){var U=W.getScreenLayer&&W.getScreenLayer();U?v.clickCommand(w,null,U):v.clickCommand(w,null)}v=!1;for(U=0;U<B.length;U++)if((0,B[U])(W,w,Z)){v=!0;break}!v&&c08(w)&&(X.ajaxPromise=edU(a,W,w,Z,N,I));return X};
i$U=function(a){var W;return(a=(W=a.data)==null?void 0:W.navigationEndpoint)&&!!a.clickTrackingParams};
hdD=function(a){var W=_.A(a,_.l0);if(W&&(W=W.signal)&&jMx.indexOf(W)>=0)return!0;for(var w in a)if(LPv.indexOf(w)>=0)return!0;return!1};
c08=function(a){var W;if(((W=_.A(a,_.l0))==null?void 0:W.signal)==="CLIENT_SIGNAL")return!1;for(var w in a)if(J0C.indexOf(w)>=0)return!1;a=Object.keys(a);return a.length===1&&a[0]==="loggingUrls"?!1:!0};
sMI=function(a,W,w,Z,N,B,I){var X=_.Ju.instance;if(X&&_.Fq(X,Z))var v=_.MX(X,Z,N).then(function(O){return(O==null?0:O.data)?O:{data:O}});
else v=a.requestDataForServiceEndpoint(Z,N),_.A(Z,FPv)||_.A(Z,MtD)||_.A(Z,_.Rd8)||_.A(Z,q4E)||_.jJ(new _.Uw("No RequestBuilder for endpoint",Z));var U=_.Rt();U.promise.thenCatch(function(){var O=_.em(Z,"action")||_.em(Z,"command")||_.em(Z,"endpoint");O&&(O=Z[O],O.hasOwnProperty("onFailureAction")?_.N1(W,[O.onFailureAction],w):O.hasOwnProperty("onFailureCommand")&&_.N1(W,O.onFailureCommand,w));v.cancel("Resolver promise rejected")});
v.then(function(O){if(O){var S=O.error;if(S){if(B&&B.onServerError)B.onServerError(Z,O);U.reject(new _.Uw("Response error",Z,S))}else if(O=O.data)if(S=O.error){if(B&&B.onServerError)B.onServerError(Z,O);U.reject(new _.Uw("Returned error",Z,S))}else{QM9(W,w,O,Z);xc8(O);if(S=mwE(O))for(var T=_.l(S),p=T.next();!p.done;p=T.next()){p=p.value;var h=_.K().resolve(_.Vv(b$C))||qX;if(!_.Ju.instance||!h.some(function(F){return!!_.A(Z,F)})||_.r("kevlar_response_processor_allowlist_killswitch")){var L=h=void 0;
((L=_.A((h=p)==null?void 0:h.commandMetadata,_.mm))==null?0:L.sendPost)?_.Z9(W,[p]):_.N1(W,[p],w)}}(T=_.A(O==null?void 0:O.frameworkUpdates,Q6))&&I&&I(T);if(B&&B.onSuccess)B.onSuccess(Z,O);U.resolve(new _.x_(O,S))}}else U.reject(new _.Uw("Invalid service endpoint provided",Z))},function(O){U.reject(O)});
return U.promise};
xc8=function(a){var W;(a=(W=_.A(a==null?void 0:a.onResponseReceivedCommand,_.u99))==null?void 0:W.continuationItems)&&(a==null?void 0:a.length)===1&&_.A(a[0],CSF)&&_.Ak("so_r",void 0,"search_overview_answer")};
edU=function(a,W,w,Z,N,B){var I;return(I=W.getNetworkManager&&W.getNetworkManager()?W.getNetworkManager():_.K().resolve(_.Vv(_.U6)))?sMI(I,a,W,w,Z,N,B):_.od("No network manager.")};
QM9=function(a,W,w,Z){if(w=w.trackingParams||w.loggingDirectives&&w.loggingDirectives.trackingParams){var N;(_.A(Z,GFC)||_.A(Z,DcD)||_.A(Z,fSD))&&Z.clickTrackingParams?N=_.PX(Z.clickTrackingParams):_.r("web_graft_to_parent_command")&&Z.clickTrackingParams&&(N=_.PX(Z.clickTrackingParams));var B;Z=(B=W.getScreenLayer)==null?void 0:B.call(W);W=_.$J().graftServerVe(w,N,Z);_.W_(a,"yt-store-grafted-ve-action",[W])}};
_.dc7=function(a){var W=new Image;return new _.PZ(function(w,Z){W.addEventListener("load",function(){w()});
W.addEventListener("error",function(){Z()});
W.src=a})};
mcE=function(a){return!!a};
VtH=function(a){return!!a};
zd9=function(a,W,w){var Z=a.rowIndex;Z!==void 0&&_.W_(a.hostElement,"yt-section-reactive-dismissal",[Z,W,w])};
_.b5=function(a,W,w){a=_.l(a);for(var Z=a.next();!Z.done;Z=a.next()){Z=Z.value;if(Z===W)break;for(var N=_.l(w),B=N.next();!B.done;B=N.next())if(B=B.value,Z.tagName===B||!_.r("web_event_button_role_check_killswitch")&&Z.role==="button"&&B==="BUTTON")return!0}return!1};
_.sb=function(a,W,w){a=_.l(a);for(var Z=a.next();!Z.done;Z=a.next()){Z=Z.value;if(Z===W)break;for(var N=_.l(w),B=N.next();!B.done;B=N.next())if(Z.id===B.value)return!0}return!1};
CA=function(a,W){if(!a&&!W)return"medium";a=Math.max(a||0,W||0);return a>=256?"large":a>=96?"medium":"small"};
H$x=function(a){switch(a){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.fA=function(){var a=_.K().resolve(_.Vv(_.Gw));return a?(a=a.getCurrentPage())?_.DK(a):null:null};
_.d2=function(){var a=_.fA();if(!a){var W=_.K().resolve(_.Vv(_.Gw)),w=W?typeof W:"no page manager";W=W?W.getCurrentPage():null;w=new _.Uw("Player is missing when requested.",w,W?W.tagName:"no page");_.eJ(w)}return a};
_.DK=function(a){return a&&a.getPlayer?a.getPlayer():null};
y0x=function(a,W){a={args:{raw_player_response:a}};W&&(a.args=Object.assign({},a.args,W));return a};
EGC=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)}};
_.aOD=function(a,W){var w={url:"/watch?v="+a.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};a.playlistId&&(w.url+="&list="+a.playlistId);a.playerParams&&(w.url+="&pp="+a.playerParams);a={watchEndpoint:a,commandMetadata:{webCommandMetadata:w}};W&&(a.clickTrackingParams=W);return a};
wge=function(){return Wuv||!!_.RT("yt.player.Application")};
NYI=function(){return Z1F||!!document.querySelector("link#player-css")};
$fm=function(){function a(){Wuv=!0;tlD.resolve()}
var W,w;return _.P(function(Z){tlD||(tlD=new _.wi,wge()?a():(W=document.createElement("script"),W.addEventListener("load",a),w=_.TO(_.LF("PLAYER_JS_URL")),_.Q$(W,w),document.head.appendChild(W)));return Z.return(tlD.promise)})};
lOe=function(){function a(){Z1F=!0;BYH.resolve()}
if(!BYH)if(BYH=new _.wi,NYI())a();else{var W=document.createElement("link");W.id="player-css";W.addEventListener("load",a);var w=_.TO(_.LF("PLAYER_CSS_URL"));_.s0(W,w,"stylesheet");document.head.appendChild(W)}return BYH.promise};
IOS=function(){return wge()&&NYI()?Promise.resolve([]):Promise.all([$fm(),lOe()])};
P7S=function(a,W,w){var Z={args:{}};a&&(Z.args.raw_player_response=a);W&&(Z.args.raw_watch_next_response=W);w&&(Z.args=Object.assign({},Z.args,w));return Z};
o5S=function(a,W,w){var Z=!1;Z=Z===void 0?!0:Z;a=typeof a==="string"?_.md(document,a):a;var N=Xgx+"_"+_.lA(a),B=v5H[N];if(B&&Z)return g5x(W,w)?B.api.loadVideoByPlayerVars(W.args||null):B.loadNewVideoConfig(W),B.api;B=new V6(a,N,W,w,void 0);v5H[N]=B;B.addOnDisposeCallback(function(){delete v5H[B.getId()]});
return B.api};
g5x=function(a,W){return W&&W.serializedExperimentFlags?W.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):a&&a.args&&a.args.fflags?a.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
krv=function(){var a=new _.wi;a.resolved=!1;var W=a.resolve;a.resolve=function(w){a.resolved=!0;W(w)};
return a};
O1m=function(a){var W={};Ufv().install((W.document_disposed={callback:a},W))};
zw=function(a,W){if(!a&&Math.random()<=_.yv("kevlar_unified_player_logging_threshold")){a=Error("th`"+(W?W:"Unspecified error"));if(_.r("kevlar_unified_player_throw_errors"))throw a;_.jJ(a)}};
_.S28=function(){var a=_.RT("ytDebugData.callbacks");a||(a={},_.Dp("ytDebugData.callbacks",a));return a};
TYm=function(a,W){var w=_.S28();if(_.r("web_dd_iu")||Y2U.includes(a))w[a]=W};
KuF=function(){return _.P(function(a){return a.return({isLeader:_.u88(_.Cx().getState()),c:_.LF("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.LF("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
pgC=function(){var a;_.P(function(W){if(W.nextAddress==1)return TYm("APP_STATE",KuF),_.g(W,_.K().resolve(_.H$),2);a=W.yieldResult;TYm("PI",function(){return _.P(function(w){return w.return(a.getVideoStats())})});
_.Xd(W)})};
rPx=function(a){var W=_.DG(_.qM(_.NH.location.href));a=_.DG(_.qM(a));return _.r("kevlar_clear_non_displayable_url_params")?W==y6(a):y6(W)==y6(a)};
y6=function(a){var W=_.API(a);a=a.slice(0);var w=["frags"];_.r("kevlar_hide_pp_url_param")&&w.push("pp");_.r("kevlar_hide_time_continue_url_param")&&w.push("time_continue");w=_.l(w);for(var Z=w.next();!Z.done;Z=w.next())Z=Z.value,a=_.dQ(_.DG(a),Z);return _.DG(a)+(W?"#"+W:"")};
Eb=function(a,W){W=Number(W)*1E3;var w=Math.round((0,_.mG)()),Z=w.toString();a={innertubeResponse:a,serverDateTimestampMs:Z,lastModifiedTimestampMs:Z,expireTimestampMs:(w+W).toString()};if(W=_.LF("INNERTUBE_CONTEXT_CLIENT_NAME"))a.clientName=W;return a};
i1m=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++hLv};
_.cP8=function(){var a=_.eH(),W=_.nS();W&&a&&_.x7(W,[a],!0)};
n5F=function(a){return a&&eLx.some(function(W){return a.includes(W)})};
RL7=function(a){var W=_.A(a,_.ba);if(!W)return!1;var w=W.url,Z=W.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!w)return _.eJ(Error("yh")),!1;if(W.target==="TARGET_NEW_WINDOW"){var N={};_.r("resolve_url_parent_tracking_params")&&(!_.D7(w)||fF(window.location.href,w))&&(N={endpoint:a,itct:a.clickTrackingParams});OgI(N);a=null;try{if(Z){a:{var B=w,I=N;Z=Z===void 0?!1:Z;I&&_.fS(B,I);var X=_.SB(B),v=_.oJ(X);B!=v&&_.qx(Error("Yf`"+B));B=v;try{if(Z){v=B;v=noE(v);h7(v);a=_.Lv(window,v,"_blank",
"attributionsrc");break a}}catch(T){_.Ff(T)}h7(B);a=_.Lv(window,X,"_blank")}jBm(_.K().resolve(LuD),a,w);return!0}}catch(T){_.eJ(T)}_.fS(w,N);N={target:"_blank",noopener:_.r("set_window_noopener_ks")&&!W.allowOpener};W=window;X=g5(w)?w:_.SB(typeof w.href!="undefined"?w.href:String(w));a=self.crossOriginIsolated!==void 0;B="strict-origin-when-cross-origin";window.Request&&(B=(new Request("/")).referrerPolicy);v=N.noreferrer;if(a&&v&&B==="unsafe-url")throw Error("qe");B=v&&!a;v=N.target||w.target;Z=
[];I=[];var U=!1;for(S in N){var O=N[S];switch(S){case "width":case "height":case "top":case "left":Z.push(S+"="+O);break;case "target":break;case "noopener":case "noreferrer":O?I.push(S):(U=!0,I.push(S+"=false"));break;case "attributionsrc":Z.push(S+(O?"="+O:""));break;default:Z.push(S+"="+(O?1:0))}}var S=v!==void 0&&!["_blank","_self","_top","_parent",""].includes(v);S=j9()&&S;JPe&&a&&Z.length===0&&I.length>0&&!S&&!U?(I.length===2&&(I=["noreferrer"]),_.Lv(W,X,v,I[0]),a=Fue()):(S=Z.join(","),_.qH()&&
W.navigator&&W.navigator.standalone&&v&&v!="_self"?(S=_.PM("A"),hY(S,X),S.target=v,B&&(S.rel="noreferrer"),((N=N.attributionsrc)||N==="")&&S.setAttribute("attributionsrc",N),N=document.createEvent("MouseEvent"),N.initMouseEvent("click",!0,!0,W,1),S.dispatchEvent(N),S=Fue()):B?(S=_.Lv(W,"",v,S),W=_.oJ(X),S&&(S.opener=null,W===""&&(W="javascript:''"),W='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+aL(W)+'">',W=cP(W),(N=S.document)&&N.write&&(N.write(eB(W)),
N.close()))):((S=_.Lv(W,X,v,S))&&N.noopener&&(S.opener=null),S&&N.noreferrer&&(S.opener=null)),a=S);jBm(_.K().resolve(LuD),a,w);return!0}S=_.tw(w);S=n5F(S)||w==="https://studio.youtube.com/";W=!(!_.D7(w)||fF(window.location.href,w));N=w.indexOf("disable_polymer=1")>=0;if(W||N||S)h7(w),KD(),_.ih(w,void 0,void 0,window.top,Mlx);else return _.jJ(new _.Uw("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",a)),!1;return!0};
_.xfU=function(a,W){W=W===void 0?0:W;if(!(_.A(a,q2C)||_.A(a,QBE)||_.A(a,_.ba)&&_.A(a,_.ba).url))return!1;var w,Z=(w=_.A(a,_.ba))==null?void 0:w.url;w=Z?{externalLinkData:{url:Z}}:null;return _.$J().clickCommand(a,w,W)};
_.We=function(a,W){return _.tG(a.entities,"subscriptionStateEntity",W)};
b18=function(a,W){return _.tG(a.entities,"subscriptionNotificationStateEntity",W)};
sBe=function(a,W){return _.tG(a.entities,"upcomingEventReminderStateEntity",W)};
u57=function(a,W){return _.tG(a.entities,"engagementToolbarSurfaceEntityPayload",W)};
C7e=function(a,W){return _.tG(a.entities,"triStateButtonStateEntityPayload",W)};
GrD=function(a,W){return _.tG(a.entities,"commerceCartCheckoutButtonEntity",W)};
_.DfU=function(a,W){return _.tG(a.entities,"playlistLoopStateEntity",W)};
fOI=function(a,W){return _.tG(a.entities,"commandEntity",W)};
mfU=function(a,W,w,Z,N){N=N===void 0?{}:N;return function(B){var I,X;var v=((I=a.loggingDirectives)==null?0:(X=I.clientVeSpec)==null?0:X.uiType)?_.Ob(a.loggingDirectives.clientVeSpec.uiType):void 0;N.clickedVisualElement||(N.clickedVisualElement=v);v=dfI(a,W);w(v,B);v=_.l(v);for(I=v.next();!I.done;I=v.next()){I=I.value;X=Z;var U=B,O=N;O.form?O.form.event=U:O.form={element:X,event:U};Ub(I,O)}}};
dfI=function(a,W){var w=[];W?(a.toggledCommand&&w.push(a.toggledCommand),a.toggledServiceEndpoint&&w.push(a.toggledServiceEndpoint)):(a.defaultCommand&&w.push(a.defaultCommand),a.defaultServiceEndpoint&&w.push(a.defaultServiceEndpoint),a.defaultNavigationEndpoint&&w.push(a.defaultNavigationEndpoint));return w};
Vl9=function(a,W){var w=a.toggledStyle||a.style,Z;switch((Z=W?w:a.style)==null?void 0:Z.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"}}};
zLv=function(a,W){W=W.uniqueId+"-border";var w,Z;var N=(Z=(w=_.K().resolve(_.Vv(_.Lt)))==null?void 0:w())!=null?Z:!1;return{animationRef:a,animationConfig:{name:W,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(N?"dark":"light")+"_v2.json"}}};
_.wP=function(){return _.P(function(a){return a.nextAddress==1?_.g(a,_.K().resolve(_.H$),2):a.return(_.K().resolve(H1C)())})};
_.ZB=function(){return _.K().resolve(H1C)()};
_.Ns=function(){return iG(function(){return{lottieEl:void 0}})};
yPF=function(a,W){return a.startsWith(W.uniqueId)};
E59=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,_.wP(),2);W=Z.yieldResult;if((w=W)==null||!w.addEventListener)return tx(),Z.return();W.addEventListener("onCueRangeEnter",a);_.Xd(Z)})};
aex=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,_.wP(),2);W=Z.yieldResult;if((w=W)==null||!w.removeEventListener)return tx(),Z.return();W.removeEventListener("onCueRangeEnter",a);_.Xd(Z)})};
WwD=function(a){var W,w,Z,N,B;_.P(function(I){if(I.nextAddress==1)return _.g(I,_.wP(),2);W=I.yieldResult;if((w=W)==null||!w.addCueRange)return tx(),I.return();Z=_.l(a.timings);for(N=Z.next();!N.done;N=Z.next())B=N.value,W.addCueRange(a.uniqueId+"-"+B,B/1E3,(B+100)/1E3);_.Xd(I)})};
wje=function(a){var W,w,Z,N,B;_.P(function(I){if(I.nextAddress==1)return _.g(I,_.wP(),2);W=I.yieldResult;if((w=W)==null||!w.removeCueRange)return tx(),I.return();Z=_.l(a.timings);for(N=Z.next();!N.done;N=Z.next())B=N.value,W.removeCueRange(a.uniqueId+"-"+B);_.Xd(I)})};
ZeS=function(){var a,W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,_.wP(),2);a=Z.yieldResult;if((W=a)==null||!W.getPlayerState)return tx(),Z.return();w=a.getPlayerState();return Z.return(w===2)})};
tx=function(){_.jJ(new _.Uw("Smartimation player does not exist or is corrupted"))};
Brx=function(a){var W=Nrx;tuD.push(a);$8e||(W(function(){for(var w=_.l(tuD),Z=w.next();!Z.done;Z=w.next())Z=Z.value,Z();tuD.length=0;$8e=!1}),$8e=!0)};
Nrx=function(a){Promise.resolve().then(a)};
$D=function(a){a=_.l(KdI(a));var W=a.next().value,w=a.next().value,Z=!1;_.AS(function(){return function(){Z=!0}});
return[W,function(N){Brx(function(){Z&&!_.r("cow_prevent_state_setter_after_cleanup_killswitch")||w(N)})}]};
IeS=function(a){function W(U){var O;return _.P(function(S){if(S.nextAddress==1)return(O=!yPF(U,Z)||!Z.enabled)?S.jumpTo(2):_.g(S,ZeS(),3);S.nextAddress!=2&&(O=S.yieldResult);if(O)return S.return();w();setTimeout(function(){v(!1)},1500);
_.Xd(S)})}
function w(){setTimeout(function(){v(!0);var U;(U=B.lottieEl)==null||U.goToAndPlay(0)},150)}
var Z=a.settings;var N=a.className;a=a.children;var B=_.Ns(),I=_.l($D(!1)),X=I.next().value,v=I.next().value;Z||(Z={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.jJ(new _.Uw("Smartimation Settings is undefined")));rw(function(){if(Z.experimentEnabled)return Z.enabled?E59(W):(v(!1),aex(W)),function(){aex(W)}},[Z.enabled,
Z.experimentEnabled]);rw(function(){if(Z.experimentEnabled)return WwD(Z),function(){wje(Z)}},[Z.timings.join("")]);
return _.k("yt-smartimation",{class:leU(N,X,Z)},uJ(Z.experimentEnabled,function(){return _.k("div",{class:"smartimation__border"},_.k($2m,{className:"smartimation__border-gradient",data:zLv(B,Z)}))}),_.k("div",{class:"smartimation__content"},a))};
leU=function(a,W,w){var Z=["smartimation"];a&&Z.push(a);w.experimentEnabled&&Z.push("smartimation--experiment-enabled");W&&Z.push("smartimation--active-border");try{var N;var B=(N=window.CSS)!=null&&N.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(I){_.jJ(new _.Uw("Smartimation CSS.supports threw an error")),B=!1}B&&Z.push("smartimation--enable-masking");
return Z.join(" ")};
PIC=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(W){return _.jJ(new _.Uw("Smartimation CSS.supports threw an error")),!1}};
OeH=function(a,W,w,Z,N){var B=a.playlistId?Xje:vYF;W=W();w=w();N=!!a.videoId&&N()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.os(W))return gYv({data:a,actionType:B,disabled:N},w);if(a.videoId&&Z())return oYe({data:a,actionType:B,disabled:N});switch(W){case "TRANSFER_STATE_UNKNOWN":return oYe({data:a,actionType:B,disabled:N});case "TRANSFER_STATE_FAILED":return a.videoId?k3E({data:a,actionType:B,disabled:N}):U8v({data:a,actionType:B,disabled:N});case "TRANSFER_STATE_COMPLETE":return U8v({data:a,
actionType:B,disabled:N});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return gYv({data:a,actionType:B,disabled:N},w);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return a.videoId?k3E({data:a,actionType:B,disabled:N}):oYe({data:a,actionType:B,disabled:N});default:return oYe({data:a,actionType:B,disabled:N})}};
SZS=function(a,W){var w=a.onTapCommand,Z=_.rJ(w);if(a.videoId&&_.A(Z,_.Be))return _.A(Z,_.Be).action=W,w;a.playlistId&&_.A(Z,_.lK)&&(_.A(Z,_.lK).action=W);return w};
oYe=function(a){var W=a.data;var w=a.actionType;a=a.disabled;return{text:YZD,iconType:"OFFLINE_DOWNLOAD",onTap:SZS(W,w.ACTION_ADD),disabled:a}};
gYv=function(a,W){var w=a.data;var Z=a.actionType;a=a.disabled;var N="OFFLINE_DOWNLOAD";W>=0&&W<=.1?N="OFFLINE_DOWNLOADING_ZERO":W>.1&&W<=.3?N="OFFLINE_DOWNLOADING_TWENTY":W>.3&&W<=.5?N="OFFLINE_DOWNLOADING_FORTY":W>.5&&W<=.7?N="OFFLINE_DOWNLOADING_SIXTY":W>.7&&W<1?N="OFFLINE_DOWNLOADING_EIGHTY":W===1&&(N="OFFLINE_PIN");return{text:TrS,iconType:N,onTap:SZS(w,Z.ACTION_REMOVE_WITH_PROMPT),disabled:a}};
U8v=function(a){var W=a.data;var w=a.actionType;a=a.disabled;return{text:KwS,iconType:"OFFLINE_PIN",onTap:SZS(W,w.ACTION_REMOVE_WITH_PROMPT),disabled:a}};
k3E=function(a){var W=a.data;var w=a.actionType;a=a.disabled;return{text:pjv,iconType:"OFFLINE_DOWNLOAD",onTap:SZS(W,w.ACTION_RETRY),disabled:a}};
rTF=function(){var a=_.l($D(!1)),W=a.next().value,w=a.next().value;return function(){w(!W)}};
ATv=function(a){return iG(function(){return{value:a}})};
hQe=function(a,W){var w=ATv(a),Z=ATv(W);rw(function(){w.value=a},[a]);
rw(function(){Z.value=W},W&&W.length>=1?W:[void 0]);
var N=iG(function(){return{value:void 0}});
if(a!==w.value||Z.value!==W||N.value===void 0)N.value=Mt(a,W);var B=rTF();_.AS(function(){function I(){var v=Mt(w.value,W);v!==N.value&&(N.value=v,B())}
var X=_.FM().subscribe(I);I();return X});
return N.value};
IL=function(a,W){return hQe(a,[W])};
_.X7=function(a,W){var w=SHH();return _.XT(function(){w();return Mt(a,[_.ik(W)||""])},void 0,"HaeHEc")};
ieH=function(a){var W=_.X7(_.cJ,function(){return a().videoId}),w=_.X7(_.ey,function(){return a().playlistId});
return function(){return a().videoId?W:a().playlistId?w:_.l(_.$1("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
cTI=function(a){var W=_.X7(nx,function(){return a().videoId}),w=_.X7(_.siE,function(){return a().playlistId});
return function(){return a().videoId?W:a().playlistId?w:_.l(_.$1(0,void 0,"K4tgOc")).next().value}};
eQF=function(a){var W=_.X7(_.VTC,function(){return a().videoId});
return function(){return a().videoId?W:_.l(_.$1(!1,void 0,"Oaxwcf")).next().value}};
nYC=function(a){var W=_.X7(Gzx,function(){return a().videoId});
return function(){return a().videoId?W:_.l(_.$1("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
jRv=function(){return{}};
Fw9=function(a){var W=a.backgroundLottieRef;var w=a.foregroundLottieRef;var Z=a.children;var N=a.wrapperClass;a=a.disableAnimation;a=(_.r("web_animated_actions")||_.r("web_animated_actions_v2"))&&!a;return _.k("yt-animated-action",{class:_.W$("animated-action__container",N)},_.k("div",{class:"animated-action__content-with-background"},uJ(a,function(){return _.k(Lwv,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:W,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(JTe()?"dark":"light")+"_v5.json"}}})}),Z),uJ(a,function(){return _.k(Lwv,{lottiePlayerProps:{animationRef:w,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(JTe()?"dark":"light")+"_v4.json"}}})}))};
Lwv=function(a){var W=a.wrapperClass;var w=a.lottieClass;a=a.lottiePlayerProps;return _.k("div",{class:_.ZK("animated-action__lottie",W),"aria-hidden":"true"},_.k($2m,{className:w,data:a}))};
JTe=function(){var a,W;return(W=(a=_.K().resolve(_.Vv(_.Lt)))==null?void 0:a())!=null?W:!1};
MuC=function(){var a,W;return(W=(a=_.K().resolve(_.Vv(_.Lt)))==null?void 0:a())!=null?W:!1};
qZ7=function(a,W){a=a===void 0?RQ9:a;switch(W.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},a,{isOpen:W.payload});default:return a}};
x8F=function(a,W){a=a===void 0?QRe:a;switch(W.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},a,{isAllowed:W.payload});default:return a}};
sR9=function(a,W){a=a===void 0?beE:a;switch(W.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},a,{errorMessage:W.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},a,{title:W.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},a,{privacy:W.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},a,{isDisabled:W.payload});default:return a}};
CIv=function(a,W){a=a===void 0?usU:a;switch(W.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},a,{isOpen:W.payload});default:return a}};
D8I=function(a,W){a=a===void 0?G3C:a;switch(W.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},a,{isFullscreen:W.payload});case "SET_NAVIGATION_BUTTON":var w=W.payload.targetId,Z=Object.assign({},a.navigationButtons);Z[w]=W.payload.button;return Object.assign({},a,{navigationButtons:Z});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},a,{topPanelId:W.payload});case "SET_SECONDARY_HEADER":return w=W.payload.panelId,Z=Object.assign({},a.secondaryHeader),Z[w]=W.payload.secondaryHeader,
Object.assign({},a,{secondaryHeader:Z});default:return a}};
Vu8=function(){return PG(Object.assign({},{entities:KjH,voiceSearch:Mwx,engagementPanel:D8I,bottomSheet:qZ7,cinematicSetting:x8F,shorts:CMe,drawerLayout:CIv,createPlaylist:sR9,locationCollection:fe8,reportChannel:d8m,reportForm:m87},GZe))};
zQU=function(a,W){return"https://www.gstatic.com/youtube/img/lottie/"+a+"/"+W+".json"};
He9=function(a){return{lottiePlayerProps:{animationConfig:{name:a.name,path:zQU("custom_animated_like_icon",a.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:a.totalFrames,lazyLoad:!0}};
yTI=function(a,W){_.hF.addLowPriorityJob(function(){var w,Z,N;return _.P(function(B){switch(B.nextAddress){case 1:return _.tq(B,2),_.g(B,z6S(),4);case 4:return _.g(B,fetch(a),5);case 5:return w=B.yieldResult,_.g(B,w.json(),6);case 6:Z=B.yieldResult;at.set(a,Z);requestAnimationFrame(function(){W(Z)});
_.qY(B,0);break;case 2:N=_.Pb(B),_.jJ(N),_.Xd(B)}})})};
EYD=function(a){var W={animationConfig:{},listeners:{}},w=function(){a(!0)};
W.listeners.data_failed=w;W.listeners.error=w;W.listeners.data_ready=function(){a(!1)};
return W};
ve=function(a){var W=a.model;var w=a.subscribed;var Z=a.isOverlay;var N=a.element;var B=a.commandController;var I=a.notificationState;if(w){var X,v;var U=(W==null?void 0:(X=W.buttonStyle)==null?void 0:X.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:W==null?void 0:(v=W.unsubscribeButtonContent)==null?void 0:v.buttonText}else{var O;U=W==null?void 0:(O=W.subscribeButtonContent)==null?void 0:O.buttonText}a:{var S;switch(W==null?void 0:(S=W.buttonStyle)==
null?void 0:S.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":X="S";break a;default:X="M"}}a:if(Z)Z="overlay";else switch(W.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":Z="overlay";break a;default:Z="mono"}a:if(w)var T="tonal";else switch((T=W.buttonStyle)==
null?void 0:T.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":T="tonal";break a;default:T="filled"}return{style:Z,type:T,state:W.disableSubscribeButton?"disabled":"active",size:X,focused:a.focused,toggled:w,accessibilityLabel:axF(W,w,I),buttonText:U,iconPosition:W.disableNotificationBell?"none":"leading-trailing",onTap:WDC(W,w,N,B),disableTextEllipsis:!!a.disableTextEllipsis}};
WDC=function(a,W,w,Z){return function(N){if(W){var B;var I=a.disableNotificationBell?_.rJ(a==null?void 0:(B=a.unsubscribeButtonContent)==null?void 0:B.onTapCommand):_.rJ(a==null?void 0:a.onShowSubscriptionOptions)}else{var X;I=_.rJ(a==null?void 0:(X=a.subscribeButtonContent)==null?void 0:X.onTapCommand)}I&&Ub(I,{form:{element:w},commandController:Z});N.stopPropagation()}};
axF=function(a,W,w){if(W){if(a==null?0:a.disableNotificationBell){var Z;return a==null?void 0:(Z=a.unsubscribeButtonContent)==null?void 0:Z.accessibilityText}switch(w){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var N;return a==null?void 0:(N=a.bellAccessibilityData)==null?void 0:N.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var B;return a==null?void 0:(B=a.bellAccessibilityData)==null?void 0:B.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var I;return a==null?void 0:(I=
a.bellAccessibilityData)==null?void 0:I.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var X;return a==null?void 0:(X=a.bellAccessibilityData)==null?void 0:X.disabledLabel;default:var v;return a==null?void 0:(v=a.unsubscribeButtonContent)==null?void 0:v.accessibilityText}}else{var U;return a==null?void 0:(U=a.subscribeButtonContent)==null?void 0:U.accessibilityText}};
gP=function(a){if(!a)return null;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};
wCm=function(a,W,w){w.subscribed!==W&&((w=w.key)&&_.R5(_.oL("subscriptionStateEntity",w,{key:w,subscribed:W})),a.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:W})),W||_.aV(a,"yt-unsubscribe-action"))};
NHC=function(a){a=_.A(_.rJ(a),_.kD);var W,w,Z,N;return(N=_.A(a==null?void 0:(W=a.panelLoadingStrategy)==null?void 0:(w=W.inlineContent)==null?void 0:(Z=w.sheetViewModel)==null?void 0:Z.content,ZZE))==null?void 0:N.listItems};
tz7=function(a,W){if(a.onShowSubscriptionOptions&&W&&(a=NHC(a.onShowSubscriptionOptions),a!=null&&a.length)){var w=gP(W);a.forEach(function(Z){Z=_.A(Z,_.UB);var N,B,I,X,v=Z==null?void 0:(N=Z.leadingImage)==null?void 0:(B=N.sources)==null?void 0:(I=B[0])==null?void 0:(X=I.clientResource)==null?void 0:X.imageName;Z&&v&&(Z.isSelected=v===w)})}};
$WD=function(a,W,w,Z){W&&w?a.style.width=w+"px":!W&&Z&&(a.style.width=Z+"px")};
BHx=function(a,W,w){var Z;(Z=a.lottieEl)==null||Z.goToAndPlay(0);var N;(N=W.lottieEl)==null||N.goToAndPlay(0);_.OB(_.hF,function(){var B;(B=w.lottieEl)==null||B.goToAndPlay(0)},300)};
vLU=function(a){var W=_.D8(),w=_.D8(),Z=_.D8(),N=_.Ns(),B=_.Ns(),I=_.Ns(),X=_.K().resolve(lxF),v,U=(v=IL(_.We,a.data.stateEntityStoreKey))!=null?v:void 0,O,S,T,p=(T=IL(b18,(S=(O=a.data.notificationStateEntityStoreKeys)==null?void 0:O.subsNotificationStateKey)!=null?S:""))!=null?T:void 0;v=!!a.data.disableNotificationBell;var h=!a.data.enableSubscribeButtonPostClickAnimation;O=_.l($D(0));var L=O.next().value,F=O.next().value;O=_.l($D(0));var x=O.next().value,G=O.next().value;O=_.l($D(!1));var V=O.next().value,
d=O.next().value;O=_.l($D(!1));var ZD=O.next().value,aC=O.next().value,Bv=cS(!1),Am=cS("");O=_.l($D(!1));var e9=O.next().value,cv=O.next().value,C7=function(){aC(!0);_.OB(_.hF,function(){aC(!1)},1500)};
rw(function(){ZD&&!h&&U&&BHx(N,B,I)},[ZD]);
rw(function(){!h&&U&&(a.animateWidth&&$WD(W.value,!!U.subscribed,L,x),U.subscribed&&U.key===Am.value&&C7(),U.key&&(Am.value=U.key))},[U==null?void 0:U.subscribed,
U==null?void 0:U.key]);var RC=hS(function(){var JL=a.data,Pl=!(U==null||!U.subscribed),W9=!!a.isOverlay,rC=V?W.value:void 0,le=p==null?void 0:p.state;tz7(JL,le);return ve({model:JL,subscribed:Pl,isOverlay:W9,element:rC,notificationState:le,disableTextEllipsis:!0,focused:e9})},[a.data,
U,p,e9,a.isOverlay,V]),G8=function(){var JL=_.K().resolve(_.Vv(_.S4));JL&&cv(JL.isKeyBoardInUse())},QF=function(){cv(!1)};
tLe(W,function(JL){vl();U&&(JL.detail.endpoint.subscribeEndpoint||JL.detail.endpoint.unsubscribeEndpoint)&&wCm(W.value,!U.subscribed,U)});
_.GP("yt-player-subscribe",function(JL){U&&JL===a.data.channelId&&wCm(W.value,!0,U)});
_.GP("yt-player-unsubscribe",function(JL){U&&JL===a.data.channelId&&wCm(W.value,!1,U)});
_.GP("yt-update-subscribe-button-action",function(JL){JL=_.A(JL,IxI);U&&JL&&JL.channelId===a.data.channelId&&wCm(W.value,!!JL.subscribed,U)});
_.AS(function(){W.value&&(W.value.addEventListener("focusin",G8),W.value.addEventListener("focusout",QF));_.TP(_.hF,function(){vl()});
d(!0);return function(){W.value&&(W.value.removeEventListener("focusin",G8),W.value.removeEventListener("focusout",QF))}});
var vl=function(){if(!h&&a.animateWidth&&(w==null?0:w.value)&&(Z==null?0:Z.value)&&!Bv.value){var JL=_.l((U==null?0:U.subscribed)?[w,Z]:[Z,w]),Pl=JL.next().value;JL=JL.next().value;Pl=Math.ceil(Pl.value.getBoundingClientRect().width);JL=Math.ceil(JL.value.getBoundingClientRect().width);F(Pl);G(JL);$WD(W.value,!(U==null||!U.subscribed),Pl,JL);Bv.value=!0}},Hl=function(){var JL=gP(p==null?void 0:p.state);
return h||JL!=="NOTIFICATIONS_NONE"?function(){return X(JL)}:function(){Mw(PZx)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:I})}};
O=function(){var JL=gP(p==null?void 0:p.state);return h||JL!=="NOTIFICATIONS_NONE"?function(){return _.k(_.P$,{icon:JL!=null?JL:void 0})}:function(){return _.k(PZx,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:I})}};
var SV=!(U==null||!U.subscribed)&&!v&&!(p==null||!p.state),Ny=!(U==null?0:U.subscribed),Bl=Ny&&!v&&!(p==null||!p.state);v={};S={};return _.k("yt-subscribe-button-view-model",{class:_.ZK(a.className,"yt-subscribe-button-view-model-wiz",(v["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(U==null||!U.subscribed)&&a.animateWidth&&ZD,v["yt-subscribe-button-view-model-wiz--hidden"]=!(U==null?0:U.subscribed)&&a.data.hideWhenUnsubscribed,v)),el:W},_.k(XCU,{backgroundLottieRef:N,foregroundLottieRef:B,
wrapperClass:_.ZK("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(S["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=a.animateWidth&&ZD,S["yt-subscribe-button-view-model-wiz__static-width"]=!a.animateWidth,S)),disableAnimation:h},_.k("div",{el:w,class:_.ZK("yt-subscribe-button-view-model-wiz__container"),idomKey:a.data.channelId},_.r("web_wiz_button_shape")?_.k(sHx,{data:RC,icon:SV?O():void 0,secondaryIcon:SV?function(){return _.k(_.P$,{icon:"EXPAND"})}:
void 0}):_.k(dt,null,function(){RPm(RC,SV?Hl():void 0,SV?function(){return X("EXPAND")}:void 0)}))),_.k("div",{el:Z,
class:"yt-subscribe-button-view-model-wiz__invisible"},!a.animateWidth||h||Bv.value?null:_.r("web_wiz_button_shape")?_.k(sHx,{data:ve({model:a.data,subscribed:Ny,isOverlay:!!a.isOverlay,element:W.value,disableTextEllipsis:!0}),icon:Bl?function(){var JL;return _.k(_.P$,{icon:(JL=gP(p==null?void 0:p.state))!=null?JL:void 0})}:void 0,
secondaryIcon:Bl?function(){return _.k(_.P$,{icon:"EXPAND"})}:void 0}):_.k(dt,null,function(){RPm(ve({model:a.data,
subscribed:Ny,isOverlay:!!a.isOverlay,element:W.value,disableTextEllipsis:!0}),Bl?function(){return X(gP(p==null?void 0:p.state))}:function(){},Bl?function(){return X("EXPAND")}:void 0)})))};
gLv=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}};
oLC=function(a,W,w){w.subscribed!==W&&((w=w.key)&&_.R5(_.oL("subscriptionStateEntity",w,{key:w,subscribed:W})),a.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:W})),W||_.aV(a,"yt-unsubscribe-action"))};
k7E=function(a){a=_.A(_.rJ(a),_.kD);var W,w,Z,N;return(N=_.A(a==null?void 0:(W=a.panelLoadingStrategy)==null?void 0:(w=W.inlineContent)==null?void 0:(Z=w.sheetViewModel)==null?void 0:Z.content,ZZE))==null?void 0:N.listItems};
UWx=function(a,W){if(a.onShowSubscriptionOptions&&W&&(a=k7E(a.onShowSubscriptionOptions),a!=null&&a.length)){var w=gLv(W);a.forEach(function(Z){Z=_.A(Z,_.UB);var N,B,I,X,v=Z==null?void 0:(N=Z.leadingImage)==null?void 0:(B=N.sources)==null?void 0:(I=B[0])==null?void 0:(X=I.clientResource)==null?void 0:X.imageName;Z&&v&&(Z.isSelected=v===w)})}};
OZF=function(a,W,w,Z){W&&w?a.style.width=w+"px":!W&&Z&&(a.style.width=Z+"px")};
SGD=function(a,W,w){var Z;(Z=a.lottieEl)==null||Z.goToAndPlay(0);var N;(N=W.lottieEl)==null||N.goToAndPlay(0);_.OB(_.hF,function(){var B;(B=w.lottieEl)==null||B.goToAndPlay(0)},300)};
YD=function(){return _.K().resolve(_.Vv(YGI))||{}};
THD=function(a){return typeof a==="function"};
_.T9=function(a){Object.keys(a);var W=function(w,Z){var N=W.mapping||a;if(!w)return _.k(_.Ha,null);if(Array.isArray(w)&&(w=KDD(N,W,w),Array.isArray(w))){if(!w.length)return _.k(_.Ha,null);if(w.length>1){for(var B=!1,I=!1,X=[],v={},U=0;U<w.length;v={data$jscomp$1832:void 0},U++)if(v.data$jscomp$1832=w[U],v.data$jscomp$1832){var O=pC8(v.data$jscomp$1832,N),S=O.mappingEntry;O=O.rendererName;S&&O&&(S&&(!THD(S)&&r$e(S)&&(I=!0),!THD(S)&&S.asyncId||(B=!0)),X.push(A$H(v.data$jscomp$1832,S,O,W,Z)))}return I&&
!B?_.k(_.Ha,null,hUH()):_.k(_.Ha,null,X)}w=w[0]}if(!w)return _.k(_.Ha,null);w=KDD(N,W,[w])[0];if(!w)return _.k(_.Ha,null);B=pC8(w,N);N=B.mappingEntry;B=B.rendererName;return N&&B?_.k(_.Ha,null,A$H(w,N,B,W,Z)):_.k(_.Ha,null)};
W.mapping=a;return W};
_.iZe=function(a){var W=void 0,w;for(w in a)if(a.hasOwnProperty(w)){W=w;break}return W};
KDD=function(a,W,w){var Z,N=(Z=YD().preProcessOptions)==null?void 0:Z.idomOptions;if(!N)return w;YD();return N.preProcessPropsIdom(a,w,W.triggerRerender)};
pC8=function(a,W){return(a=_.iZe(a))?{mappingEntry:W[a],rendererName:a}:{mappingEntry:void 0,rendererName:void 0}};
A$H=function(a,W,w,Z,N){if(!W)return _.k(_.Ha,null);var B={};N&&N[w]&&(B=Object.assign({},N[w]));a[w]!==void 0&&(B.data=a[w]);if(THD(W))return W.debugName||(W.debugName=w),_.k(W,B);W.asyncId&&(Z.pendingIdsMap=Z.pendingIdsMap||{},Z.pendingIdsMap[w]=W.asyncId);return W.templateFn?W.templateFn(B):r$e(W)?hUH():_.k(_.Ha,null)};
r$e=function(a){var W;return(W=a.showPlaceholder)!=null?W:YD().defaultShowPlaceholder};
hUH=function(){var a=YD().placeholder;return a()};
c$7=function(a,W){W=W===void 0?{shouldPersist:!0}:W;return{useUpdatableData:function(w,Z){var N=[],B=_.l(_.l5(function(){var U=w();if(Z!=null&&Z.length&&N){var O=N.length>0;for(var S=!1,T=0;T<Z.length;T++){var p=Z[T]();O&&p!==N[T]&&(S=!0);N[T]=p}O=S}else O=!1;if(O)_.Kj.remove(v());else if(O=_.Kj.get(v()))return O;return U})),I=B.next().value,X=B.next().value,v=_.XT(function(){return a(w())},void 0,"VFraLb");
_.Ka(function(){if(v()!=null){pj.set(v(),[I,X,!1]);var U=v();_.Ao(function(){pj.delete(U)})}});
return[I,function(U){X(U);W.shouldPersist&&_.Kj.set(v(),U)}]},
getData:function(w){var Z;return(Z=pj.get(a(w)))==null?void 0:Z[0]()},
updateData:function(w,Z){w=a(w);var N=pj.get(w);if(!N)return!1;var B=_.l(N);N=B.next().value;B=B.next().value;Z=Z(N());B(Z);W.shouldPersist&&_.Kj.set(w,Z);return!0},
useUpdatableDataIdom:function(w,Z){var N=a(w),B=_.Kj.get(N),I=_.l($D(B!=null?B:w)),X=I.next().value,v=I.next().value,U=cS(B!=null?B:w);rw(function(){if(N!=null)return pj.set(N,[function(){return U.value},
function(O){v(O);U.value=O},
pj.has(N)]),_.hF.addJob(function(){_.rP(_.hF,function(){var O=pj.get(N);O&&(O[2]=!1)},0)},8),function(){var O;
((O=pj.get(N))==null?0:O[2])||pj.delete(N)}},[N]);
rw(function(){X!==w&&(v(w),U.value=w)},Z?[].concat(_.K8(Z),[N]):[N]);
return[X,v]}}};
eU9=function(a){var W=_.l(_.$1(!0,void 0,"bKtO6d")),w=W.next().value;W.next();return function(){var Z=IT(a.children());return _.k(_.Y,{cond:w,then:function(){return Z},
else:a.fallback})}()};
_.Ax=function(a){var W=nLm(a),w=W.data,Z=W.mapping,N=W.wrapper;W=W.pendingFallback;var B=function(){return jWU(_.ik(w))},I=function(){var X=B(),v=[];
X=_.l(X);for(var U=X.next();!U.done;U=X.next()){var O=void 0;U=U.value;var S=void 0;for(O in U)if(!(!U).hasOwnProperty(O)){S=O;break}(O=S)&&v.push(O)}return v};
return a.data?_.k(eU9,{fallback:W},function(){return _.k(_.k6,{each:I},function(X,v){var U=N?function(S){return N(function(){return Z[X](S,v)},O,v)}:function(S){return Z[X](S,v)};
U.debugName||(U.debugName=String(X));if(!Z[String(X)])return document.createComment("");var O=LDv(B,X,v);return _.k(U,{data:O})})}):_.k(_.Ha,null)};
nLm=function(a){var W=a.targetId||J$9(a.children);if(!a.data||!W||_.r("mweb_new_replaceables_killswitch"))return Object.assign({},a,{mapping:a.children,wrapper:void 0});var w="stamper-"+FD8++,Z=function(){var X;return(X=_.ik(a.targetId))!=null?X:w};
W=_.l(Mzm(function(){var X=jWU(a.data());X.targetId=Z;return X})).next().value;
var N=Object.assign({},YD().replaceableMapping,a.children);if(a.replacementWrapper){var B=N.notificationTextRenderer,I=N.notificationMultiActionRenderer;B&&(N.notificationTextRenderer=function(X,v){return a.replacementWrapper(B({data:X.data},v))});
I&&(N.notificationMultiActionRenderer=function(X,v){return a.replacementWrapper(I({data:X.data},v))})}return Object.assign({},a,{data:W,
mapping:N,wrapper:function(X,v,U){return qpC({targetId:Z,stamperIndex:U},X)}})};
LDv=function(a,W,w){var Z;return _.XT(function(){var N=a()[w()];if(N)Z=N[W];else return _.jJ(new _.Uw("Stamper failed to find "+String(W)+" at index "+w()+" of data array of length "+(a().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),Z;return N[W]},void 0,"DHuMIe")};
J$9=function(a){a=_.l(Object.keys(a));for(var W=a.next();!W.done;W=a.next())if(W=W.value,RUm.includes(W)||qG9.includes(W)||QWe.includes(W))return!0;return!1};
jWU=function(a){return a?Array.isArray(a)?a:[a]:[]};
xWH=function(a){a=_.A(a,_.hx);return(a==null?void 0:a.iconName)&&!(a==null?0:a.title)};
u1E=function(a,W,w){var Z;return _.k(_.Ha,null,a==null?void 0:(Z=a.actions)==null?void 0:Z.map(function(N){return _.k("div",{class:function(){var B={"yt-flexible-actions-view-model-wiz__action":!0};B["yt-flexible-actions-view-model-wiz__action--row-action"]=W;B["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(xWH(N))var I=!0;else if(I=_.A(N,_.iK),(I==null?0:I.isToggled)&&xWH(I==null?void 0:I.toggledButtonViewModel)||(I==null||!I.isToggled)&&xWH(I==null?void 0:I.defaultButtonViewModel))I=
!0;else{var X;I=((X=_.A(N,bZS))==null?0:X.playlistId)?!0:!1}B=(B["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=I,B["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=w,B);return _.ZK(B)}},sW8([N],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!W}}))}))};
CZx=function(a){var W=a.layout===1,w,Z=((w=a.data)==null?void 0:w.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";w={};Z=(w["yt-flexible-actions-view-model-wiz"]=!0,w["yt-flexible-actions-view-model-wiz--inline"]=!W,w["yt-flexible-actions-view-model-wiz--scrollable"]=Z,w);var N,B;return _.k("yt-flexible-actions-view-model",{class:_.ZK(a.className,Z)},(N=a.data)==null?void 0:(B=N.actionsRows)==null?void 0:B.map(function(I){if(W){var X;return _.k("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
u1E(I,W,!((X=a.data)==null||!X.respectActionIntrinsicWidth)))}return u1E(I,W,!1)}))};
G79=function(a){return!(a==null||!a.iconName||(a==null?0:a.title))};
DW8=function(a){var W=_.A(a.data.toggleButtonViewModel,_.iK),w,Z=(w=a.data.dislikeEntityKey)!=null?w:"",N=IL(hu,Z);W=Object.assign({},W,{isToggled:N?N.likeStatus==="DISLIKE":W.isToggled});return _.k("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.k(_.ce,{data:W,buttonShapeOverrides:a.buttonShapeOverrideables,onToggle:function(B){N&&B!==(N.likeStatus==="DISLIKE")&&N.key&&_.R5(_.e4("likeStatusEntity",N.key,{likeStatus:B?"DISLIKE":"INDIFFERENT",hadUserInteraction:B}))}}))};
dWe=function(a){var W=_.r("web_supports_animations_api"),w=_.A(a.data.toggleButtonViewModel,_.iK),Z,N,B,I,X=_.l($D({numberText:(I=(Z=a.likeCountEntity)==null?void 0:(N=Z.likeCountIfIndifferent)==null?void 0:N.content)!=null?I:"",numberValue:Number((B=a.likeCountEntity)==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),v=X.next().value,U=X.next().value,O,S,T,p;Z=_.l($D({numberText:(p=(O=a.likeCountEntity)==null?void 0:(S=O.likeCountIfLiked)==null?void 0:S.content)!=null?
p:"",numberValue:Number((T=a.likeCountEntity)==null?void 0:T.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));O=Z.next().value;var h=Z.next().value;S=_.l($D());var L=S.next().value,F=S.next().value,x;S=(x=a.data.likeStatusEntityKey)!=null?x:"";var G,V;x=(V=(G=a.likeCountEntity)==null?void 0:G.key)!=null?V:"";var d=IL(hu,S),ZD=IL(S4C,x);G=hS(function(){return(d==null?void 0:d.likeStatus)==="LIKE"},[d]);
rw(function(){var aC,Bv=ZD&&((aC=ZD.likeCountIfIndifferent)==null?void 0:aC.content)!==v.numberText;if(!L&&Bv){var Am,e9;U({numberText:(e9=ZD==null?void 0:(Am=ZD.likeCountIfIndifferent)==null?void 0:Am.content)!=null?e9:"",numberValue:Number(ZD==null?void 0:ZD.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var cv,C7;h({numberText:(C7=ZD==null?void 0:(cv=ZD.likeCountIfLiked)==null?void 0:cv.content)!=null?C7:"",numberValue:Number(ZD==null?void 0:ZD.likeCountIfLikedNumber),heightPx:36,
shouldAnimate:!0})}},[ZD]);
w=Object.assign({},w,{isToggled:G});W=W&&a.likeCountEntity;return _.k("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.k(_.ce,{data:w,buttonShapeOverrides:a.buttonShapeOverrideables,animatedTextPropsDefault:W?v:void 0,animatedTextPropsToggled:W?O:void 0,onToggle:function(aC){fxx(aC,d,L,F)},
style:function(){return a.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
fxx=function(a,W,w,Z){w&&_.hF.cancelJob(w);w=_.hF.addLowPriorityJob(function(){Z(void 0)},5E3);
Z(w);W&&a!==(W.likeStatus==="LIKE")&&W.key&&_.R5(_.oL("likeStatusEntity",W.key,{key:W.key,likeStatus:a?"LIKE":"INDIFFERENT",hadUserInteraction:a}))};
mWF=function(a,W,w,Z){w&&_.hF.cancelJob(w);w=_.hF.addLowPriorityJob(function(){Z(void 0)},5E3);
Z(w);W&&a!==(W.likeStatus==="LIKE")&&W.key&&_.R5(_.oL("likeStatusEntity",W.key,{key:W.key,likeStatus:a?"LIKE":"INDIFFERENT",hadUserInteraction:a}))};
y$F=function(a){var W,w=_.A((W=a.data)==null?void 0:W.likeButtonViewModel,nj),Z;W=_.A((Z=a.data)==null?void 0:Z.dislikeButtonViewModel,j4);var N,B=(N=IL(hu,(w==null?void 0:w.likeStatusEntityKey)||""))!=null?N:w==null?void 0:w.likeStatusEntity;Z=hS(function(){var I=a.data,X;I=(I==null?void 0:(X=I.timedAnimationData)==null?void 0:X.animationTiming)||[];return{uniqueId:"like-dislike",timings:I,enabled:(B==null?void 0:B.likeStatus)==="INDIFFERENT"&&I.length>0,experimentEnabled:I.length>0}},[a.data,
B]);return _.k("segmented-like-dislike-button-view-model",{class:_.ZK(a.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.k(VzU,{settings:Z},_.k("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},w?_.k(zUx,{data:w,likeCountEntity:a.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,W?_.k(HZx,{data:W,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
ELx=function(a,W){var w=GG(a)||{layerNode:W};w.layerNode=W;Cw9(a,w);a.getScreenLayer=function(){return Lj(w.layerNode)}};
anH=function(a){var W;a=a.parentNode;for(var w;a&&((W=GG(a))==null||!W.isRenderer)&&!((w=a.polymerController)!=null?w:a).isRenderer_;)a=a.parentNode||a.host;if(W=a)return GG(W)};
WyF=function(a){if(a){CD.delete(a);var W=_.K().resolve(HZ);zAI(a,W)}};
ZcE=function(a,W,w){if(w===void 0?0:w){if(w=a.getAttribute("client-ve-type"),W.data&&!W.disableReactiveLogging||w)_.pa(function(){w8C(a,_.ik(W.data))}),_.Ao(function(){return void WyF(a)})}else typeof W.data!=="function"&&w8C(a,W.data)};
w8C=function(a,W){NVD++;tov(a,W)&&_.hF.addJob(function(){_.rP(_.hF,function(){if(tov(a,W)&&a.ownerDocument.documentElement===document.documentElement&&a){var w;if(a.getAttribute("layer")){var Z=w=Number(a.getAttribute("layer")),N=GG(a);N?N.layerNode.layer=Z:ELx(a,new $Ue(Z));(Z=anH(a))&&(N=GG(a))!=null&&(N.layerNode.parent=Z.layerNode)}else if(w=GG(a))w=Lj(w.layerNode);else{w=Lj;Z=new $Ue;if(N=anH(a))Z.parent=N.layerNode;ELx(a,Z);w=w(Z)}w!=null||(w=0);Z=a.getAttribute("client-ve-type");N=Number(Z);
var B=!1;Z=!1;var I=GG(a),X;if((X=I)&&!(X=I[Jx]!==W)&&(X=N)){var v;X=((v=CD.get(a))==null?void 0:v.clientVeType)===void 0}X&&(I[Jx]=W,B=Z=I.isRenderer=!0);CD.has(a)&&(CD.get(a).clientVeType=N);a.visualElement&&(Z=!0);(v=W==null?void 0:W.loggingDirectives)&&v.clientVeSpec&&(I=BV9(_.Nw(),a),v=_.ln7(_.$J(),v,I||void 0,w))&&(a.visualElement=v);!a.visualElement&&N&&B&&(a.veType=N,v=void 0,_.r("wiz_next_client_ve_parent_fix")&&(v=BV9(_.Nw(),a)),v=_.tQ(_.$J(),a,v,w),a.visualElement=v);Z&&(v=_.K().resolve(HZ),
au9(a,{data:W,observer:v,layer:w,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
tov=function(a,W){return(W==null?0:W.trackingParams)||(W==null?0:W.loggingDirectives)||_.A(W==null?void 0:W.rendererContext,_.WfU)||a.getAttribute("client-ve-type")?!0:!1};
P4e=function(a){return _.r("cow_logging_in_component_wrapper")?function(W){ZcE(W,a,!0)}:InC};
InC=function(){};
_.X8I=function(a,W){return _.tG(a.entities,"accountLinkStatusEntity",W)};
vAF=function(a,W){return _.tG(a.entities,"hatsSurveyEntity",W)};
gAH=function(a,W){return _.tG(a.entities,"hatsSurveyStateEntity",W)};
oA7=function(a,W){return _.tG(a.entities,"quantityIncrementerEntity",W)};
Y7H=function(a){var W=a.data;var w=a.className===void 0?"":a.className;var Z=a.setMinWidth;a=a.forceIconOnly;var N=_.D8(P4e({data:W}));Z=Z?"ytwAccountLinkButtonViewModelHostMinWidth":"";var B=_.X7(_.X8I,function(){var S;return(S=_.ik(W).accountLinkStatusEntityKey)!=null?S:""}),I=_.X7(_.X8I,function(){var S;
return(S=_.ik(W).accountLinkStatusSecondaryEntityKey)!=null?S:""}),X=function(){if(!_.r("web_account_link_secondary_killswitch")){var S,T;
return((S=B())==null?void 0:S.linked)||((T=I())==null?void 0:T.linked)}var p;return(p=B())==null?void 0:p.linked};
_.Ka(function(){var S=B();if(S){var T=kt9(new UU8,Oc8(new S7F,!!S.linked));_.wP().then(function(p){p&&(p.setAccountLinkState(_.EI(T.JSC$9981_serializeBinary(),4)),p.updateAccountLinkingConfig(!!S.linked))})}});
var v=function(){return _.A(_.ik(W).toggleButtonViewModel,_.iK)};
_.GP("yt-signal-action-show-account-link-dialog",function(){if(v()){var S=X()?v().toggledButtonViewModel:v().defaultButtonViewModel;S=_.A(S,_.hx);var T;if((T=B())==null?0:T.isWarning){T=_.A(_.ik(W).warningButtonViewModel,_.hx);if(!T){_.qx(Error("zh"));return}S=T}var p;(T=_.rJ((p=S)==null?void 0:p.onTap))&&_.B_([T],N.value)}else _.qx(Error("Ah"))});
var U=function(){var S=v();return Object.assign({},S,{isToggled:X()})},O=a?{iconPosition:"icon-only"}:{};
return _.k("account-link-button-view-model",{class:_.W$("ytwAccountLinkButtonViewModelHost",function(){return _.ik(w)},Z),
el:N,"button-renderer":!0},_.k("div",null,_.k(_.Y,{cond:function(){var S;if((S=B())==null?0:S.isWarning)return(S=_.A(_.ik(W).warningButtonViewModel,_.hx))||_.qx(Error("zh")),S},
then:function(S){return _.k(_.F7,{data:S,buttonOverrides:O})},
else:function(){return _.k(_.ce,{data:U,buttonShapeOverrides:O})}})))};
TVx=function(a){switch(a){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
KyE=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}};
p8S=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--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.AWx=function(a){var W=_.yv("web_generic_client_event_wait_period ",0);W||(W=3E5);var w=rWU.get(a);!_.r("enable_web_client_experiment_event_timeout_killswitch")&&w&&(0,_.mG)()-w<W||(rWU.set(a,(0,_.mG)()),_.ia("genericClientExperimentEvent",{eventType:a}))};
cWF=function(a){var W=a.data;var w=a.children;var Z=hbF(W),N=(W==null?0:W.thumbnailSize)?W.thumbnailSize:"medium";a=!(W==null||!W.doubleStack);var B=!(W==null||!W.experimentEnabled),I={},X=(I["collections-stack-wiz__collection-stack1"]=!0,I[icE(N)]=!0,I);if(W==null?0:W.customClassName1stStack)X[W.customClassName1stStack]=!0;N={};var v=(N["collections-stack-wiz__collection-stack2"]=a,N["collections-stack-wiz__collection-stack2--responsive-mode"]=W==null?void 0:W.enableResponsiveMode,N);if(W==null?
0:W.customClassName2ndStack)v[W.customClassName2ndStack]=!0;return _.k("yt-collections-stack",{class:"collections-stack-wiz",hidden:!B},uJ(W,function(){return _.k("div",null,uJ(W.doubleStack,function(){return _.k("div",{class:_.ZK(v),style:"background-color:"+Z})}),_.k("div",{class:_.ZK(X),
style:"background-color:"+Z}),w)}))};
icE=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""}};
hbF=function(a){if(!a)return"";var W,w=(W=_.K().resolve(_.Vv(_.Lt)))==null?void 0:W(),Z;if(!w&&((Z=a.vibrantColorPalette)==null?0:Z.iconInactiveColor))return ri(a.vibrantColorPalette.iconInactiveColor,"1");var N;return w&&((N=a.darkColorPalette)==null?0:N.iconInactiveColor)?ri(a.darkColorPalette.iconInactiveColor,"1"):a.color?ri(a.color,"1"):a.sampledThumbnailColor?(a=a.sampledThumbnailColor,"rgba("+a.red+","+a.green+","+a.blue+");"):""};
_.Ms=function(a,W){if(!a.includes("DATE_PLACEHOLDER"))return a;var w=new Date(0);w.setUTCSeconds(W);return a.replace("DATE_PLACEHOLDER",ebE(w))};
_.RL=function(a){a=_.nAe(a);return _.r("web_watch_enable_single_column_grid_view")?a:!1};
_.nAe=function(a){return a.watch.isWatchNarrowWidth};
jfS=function(a,W,w){return function(Z){var N=a.command;N&&(Ub(N,{form:{element:w}}),W([N],Z))}};
JWH=function(a,W,w,Z,N){return function(B){var I=Lym(a,w);I&&Ub(I,{form:{element:Z},commandController:N});W&&W.stopPropagation&&B.stopPropagation()}};
Lym=function(a,W){if(a.signInEndpoint&&!_.r("web_subscribe_sign_in_endpoint_killswitch"))return a.signInEndpoint;if(W){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]}};
Fyx=function(a,W){var w,Z,N,B;W=W&&((w=a.unsubscribeAccessibility)==null?void 0:(Z=w.accessibilityData)==null?void 0:Z.label)||((N=a.subscribeAccessibility)==null?void 0:(B=N.accessibilityData)==null?void 0:B.label);return a.longSubscriberCountText?[W,_.sd(a.longSubscriberCountText)].filter(function(I){return I}).join(" "):W};
qs=function(a,W){return W||(a==null?0:a.isChannelDelegate)?"disabled":"active"};
Moe=function(a,W){var w;switch((w=a.style)==null?void 0:w.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:qs(a)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:qs(a)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:qs(a,!0)};case "OVERLAY":return W?{style:"overlay",type:"tonal",state:qs(a)}:{style:"overlay",type:"filled",state:qs(a)};default:return W?{style:"mono",type:"tonal",state:qs(a)}:{style:"mono",type:"filled",state:qs(a)}}};
Rbe=function(a,W){var w=a.map(function(Z){return Z.toString()});
return _.$_(function(Z){if(w.includes(Z.key)){W&&Z.preventDefault();var N;(N=Z.currentTarget)==null||N.click()}})};
_.QP=function(){return Rbe(["Enter"])};
_.q78=function(){return Rbe(["Enter"," "],!0)};
_.xD=function(a){if(a.composedPath)return a.composedPath();if(!a.__composedPath){for(var W=[],w=a.target;w;)W.push(w),w=w.parentNode;W.push(window);a.__composedPath=W}return a.__composedPath};
_.QfD=function(a,W,w){a=_.l(a);for(var Z=a.next();!Z.done;Z=a.next()){Z=Z.value;if(Z===W)break;for(var N=_.l(w),B=N.next();!B.done;B=N.next())if(B=B.value,Z.tagName===B||Z.role==="button"&&B==="BUTTON")return!0}return!1};
bcU=function(a,W){var w,Z=(w=W.observer)!=null?w:_.K().resolve(HZ);if(a){w=xUF(a);var N=[];W.showOption&&N.push(Z.observe(a,function(){W.visibilityCallback(!0)},W.showOption));
W.hideOption&&N.push(Z.observe(a,function(){W.visibilityCallback(!1)},W.hideOption));
W.prescanOption&&W.prescanCallback&&N.push(Z.observe(a,function(){W.prescanCallback()},W.prescanOption));
var B;w.visibilityMonitorKeys=((B=w.visibilityMonitorKeys)!=null?B:[]).concat(N)}};
xUF=function(a){var W;return(W=a.polymerController)!=null?W:a};
_.sB=function(a){return!!_.bK(a)};
_.uK=function(a,W){var w=QHx();rw(function(){var Z=a.value;if(Z)return sfI(Z,W),uge(Z,W,void 0,void 0,void 0,w)},[W])};
_.Cj=function(a,W,w,Z,N,B){var I=QHx();_.Ka(function(){var X=a.value;X&&(sfI(X,W(),B),X=uge(X,W(),w,Z,N,I),_.Ao(X))})};
sfI=function(a,W,w){var Z=C4S(W),N=GtH(W);W=Z&&DUm;var B=N&&fnF;(Z||N)&&bcU(a,{visibilityCallback:function(I){var X=_.K().resolve(_.zU);I&&Z?X.resolveCommand(Z,{form:{element:w?a:void 0},disableClickTracking:!0}):!I&&N&&X.resolveCommand(N,{form:{element:w?a:void 0},disableClickTracking:!0})},
showOption:W,hideOption:B})};
uge=function(a,W,w,Z,N,B){var I=new Map;if(W=_.bK(W)){var X;a=(Z==null?void 0:(X=Z.onTap)==null?void 0:X.value)||a;w=dUE(W,a,w==null?void 0:w.onTap,N,B);a.addEventListener("click",w);I.set("click",w)}return function(){for(var v=_.l(I),U=v.next();!U.done;U=v.next()){var O=_.l(U.value);U=O.next().value;O=O.next().value;a.removeEventListener(U,O)}}};
_.bK=function(a){var W;return(a=(W=_.A(a,G9))==null?void 0:W.onTap)&&_.rJ(a)};
C4S=function(a){var W;return(a=(W=_.A(a,G9))==null?void 0:W.onVisible)&&_.rJ(a)};
GtH=function(a){var W;return(a=(W=_.A(a,G9))==null?void 0:W.onHidden)&&_.rJ(a)};
dUE=function(a,W,w,Z,N){var B=function(X){_.K().resolve(_.zU).resolveCommand(a,X)},I=function(X){Z&&_.QfD(_.xD(X),W,Z)||B(X.target?{form:{element:X.target,
sourceData:a,mutationContext:N}}:void 0)};
w&&(I=function(X){w(X,B)});
return I};
mUS=function(a){var W=a.data;var w=a.className;a=a.alwaysShow;var Z=_.D8();_.uK(Z,W.rendererContext);a:switch(W.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var N="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:N="ytThumbnailHoverOverlayViewModelStyleCover"}N=_.ZK("ytThumbnailHoverOverlayViewModelScrim",N);var B,I=(B=_.A(W==null?void 0:W.rendererContext,_.DB))==null?void 0:B.label,X=_.bK(W.rendererContext)!==void 0;B=X?"button":void 0;X=X?0:void 0;var v=_.q78(),U={};return _.k("thumbnail-hover-overlay-view-model",
{el:Z,class:_.ZK("ytThumbnailHoverOverlayViewModelHost",w,(U.ytThumbnailHoverOverlayViewModelHostForceHover=a,U)),"aria-label":I,role:B,tabindex:X,"on:keypress":v},_.k("div",{class:N},W.icon?_.k(_.qw,{data:W.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,W.text?_.k(_.k_,{text:W.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
VoU=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}};
zbE=function(a){var W=a.numAvatarsInCluster;switch(a.clusterSize){case "small":return W===2?22:18;case "40":return W===2?24:22;default:return W===2?24:20}};
Hc7=function(a,W){return function(w){var Z=Object.keys(W);_.Ka(function(){if(a()){for(var N=_.l(Z),B=N.next();!B.done;B=N.next())B=B.value,w.addEventListener(B,W[B]);_.Ao(function(){for(var I=_.l(Z),X=I.next();!X.done;X=I.next())X=X.value,w.removeEventListener(X,W[X])})}})}};
yWe=function(a){switch(zbE(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""}};
EAC=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""}};
awU=function(a){switch(zbE(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""}};
WN9=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""}};
wcC=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}};
Zbx=function(a){return a==="medium"||a==="48"||a==="large"||a==="extra-large"||a==="extra-extra-large"||a==="giant"};
NNS=function(a){return!!((a==null?0:a.includes(3))||(a==null?0:a.includes(5)))};
$zI=function(a){return{size:tZe(a.data.avatarImageSize),onTap:a.onTap,decorations:a.decorations||[],badgeText:a.badgeText,accessibilityText:a.accessibilityText,avatarButtonCustomClassName:a.avatarButtonCustomClassName,clusterLayoutConfig:a.clusterLayoutConfig}};
tZe=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"}};
BN8=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_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}};
lwv=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""}};
Iwe=function(a){var W=a.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",w,Z=a.avatars&&a.avatars.length>0?(w=_.A(a.avatars[0],_.fj))==null?void 0:w.avatarImageSize:"AVATAR_SIZE_UNKNOWN";w=BN8(Z)||0;if(W){var N,B=(N=a.avatarClusterSize)!=null?N:"AVATAR_SIZE_M";W=BN8(B);var I,X,v=Math.min((X=(I=a.avatars)==null?void 0:I.length)!=null?X:0,4),U;return{avatars:((U=a.avatars)==null?void 0:U.slice(0,4))||[],avatarSizeInPx:w,avatarStackStyle:{width:W+"px",height:W+"px",position:"relative"},avatarStyle:function(S){var T=
zbE({clusterSize:tZe(B),numAvatarsInCluster:v,avatarIndex:S});var p=BN8(B);v===3&&S===2?(p=(p-T)/2,p=(_.LF("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*p):p=void 0;return{position:"absolute",top:v===2&&S===1||v===3&&S===2||v===4&&S>=2?"0":void 0,bottom:v===2&&S===0||v>2&&S<2?"0":void 0,left:v===2&&S===1||v>2&&(S===1||S===3)?"0":void 0,right:v<=3&&S===0||v===4&&(S===0||S===2)?"0":void 0,transform:p?"translateX("+p+"px)":void 0,width:T+"px",height:T+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(S){return{clusterSize:tZe(a.avatarClusterSize),numAvatarsInCluster:v,avatarIndex:S}},
avatarButtonCustomClassName:void 0}}var O;return{avatars:((O=a.avatars)==null?void 0:O.slice())||[],avatarSizeInPx:w,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:lwv(Z),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
Pve=function(a,W,w){return function(){Ub(a,{form:{element:W},commandController:w})}};
Xce=function(a){switch(a){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
vFe=function(a){var W=a.data;return _.k("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:a.hidden===void 0?!1:a.hidden},_.k(_.k_,{text:W.title,className:"yt-thumbnail-overlay-title-view-model__title"}),W.subtitle?_.k(_.k_,{text:W.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
gFD=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"}};
oFv=function(a){var W=a.data;a=a.hidden===void 0?!1:a.hidden;var w={};a={class:_.ZK("yt-page-indicator-view-model",(w["yt-page-indicator-view-model__indicator--hidden"]=!W.indicatorCount,w)),hidden:a};if(W.indicatorCount){w=[];for(var Z=0;Z<W.indicatorCount;Z++){var N={};N=_.ZK("yt-page-indicator-view-model__indicator",(N["yt-page-indicator-view-model__indicator--selected"]=W.selectedIndex===Z,N));w.push(_.k("div",{class:N}))}W=_.k(_.Ha,null,w)}else W=_.k(_.Ha,null);return _.k("yt-page-indicator-view-model",
a,W)};
Uze=function(a){a&&(kYF(a)?delete a.inlinePlayerData:"inlinePlaybackEndpoint"in a&&delete a.inlinePlaybackEndpoint)};
ObD=function(a){if("accessibilityText"in a)return a.accessibilityText||"";if("title"in a){var W,w,Z;return((W=a.title)==null?void 0:(w=W.accessibility)==null?void 0:(Z=w.accessibilityData)==null?void 0:Z.label)||""}if("accessibility"in a){var N,B;return((N=a.accessibility)==null?void 0:(B=N.accessibilityData)==null?void 0:B.label)||""}return""};
kYF=function(a){return"inlinePlayerData"in a};
dP=function(a){return new SQe(a)};
_.YQF=function(a,W,w,Z,N,B){var I=function(U){U.preventDefault()},X=function(){var U=a.value;
if(U)return(U._data=W)?(U.addEventListener("touchstart",Dhe,{passive:!0}),U.addEventListener("click",dhv),W.clickTrackingParams&&(U.params={itct:W.clickTrackingParams}),mhS(U,W),hY(U,VUU(W)||"")):U.addEventListener("click",I),function(){W?(U.removeEventListener("touchstart",Dhe,{passive:!0}),U.removeEventListener("click",dhv)):U.removeEventListener("click",I)}},v=function(){var U=a.value;
if(U){var O=_.hQ({innertubeCommand:W,elementsCommand:w,forceNewState:Z,stopPropagation:B});if(O)return U._data=O._data,O["aria-haspopup$"]&&U.setAttribute("aria-haspopup",O["aria-haspopup$"].toString()),O["force-new-state$"]&&U.setAttribute("force-new-state",O["force-new-state$"].toString()),O.href$&&hY(U,O.href$),O.rel$&&(U.rel=O.rel$),O.role$&&U.setAttribute("role",O.role$),O.target$&&(U.target=O.target$),U.params=O.params,O.onclick&&U.addEventListener("click",O.onclick),O.onpointerdown&&U.addEventListener("onpointerdown",
O.onpointerdown),function(){O.onclick&&U.removeEventListener("click",O.onclick);O.onpointerdown&&U.removeEventListener("onpointerdown",O.onpointerdown)}}};
rw(N?v:X,[W,w])};
TNC=function(a){var W=a.children;var w=a.className;var Z=a.dir;var N=a.style;var B=a.role;var I=a.ariaSelected;var X=a.ariaLabel;var v=a.ariaHidden;var U=a.ariaLabelledby;var O=a.ariaDescribedby;var S=a.command;var T=a.elementsCommand;var p=a.forceNewState;var h=a.isPlaceholder;var L=a.tabIdentifier;var F=a.target;var x=a.tabIndex;var G=a.useATagConfig;var V=a.stopPropagation;a=_.D8();_.YQF(a,S,T,p,G,V);T=_.$_(function(){return V===!1});
return _.k("a",{el:a,"on:click":T,class:w,style:N,dir:Z,role:B?B:S?void 0:"group","aria-hidden":v?!0:void 0,"aria-label":X,"aria-labelledby":U,"aria-describedby":O,"aria-selected":I,tabindex:x!==void 0?x:void 0,target:F,"tab-identifier":L,"force-new-state":p?!0:void 0,"is-placeholder":h?!0:void 0},W)};
pcE=function(a){var W=a.data;a=_.$_(function(){var N=_.A(W.onTap,_.pt);N&&_.K().resolve(_.zU).resolveCommand(N);return!1});
var w={sources:[{url:W.thumbnailUrl,width:120,height:90}]},Z=W.rating&&W.ratingA11yLabel&&W.reviewsCount&&W.reviewsCountA11yLabel;return _.k("place-data-view-model",null,W.placeName&&W.placeCategory?_.k("div",{class:"yt-spec-place-data-view-model-shape","on:click":a},_.k(_.qw,{data:w,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+KN7}),_.k(TNC,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.A(W.onTap,_.pt),forceNewState:!0,
useATagConfig:!0},_.k("h3",{class:"yt-spec-place-data-view-model-shape__name",title:W.placeName},W.placeName)),_.k("div",{class:"yt-spec-place-data-view-model-shape__metadata"},Z?_.k("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.k("span",{class:"score",title:W.ratingA11yLabel},W.rating),_.k("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.k(_.P$,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.k("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:W.reviewsCountA11yLabel},W.reviewsCount)):_.k("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.k("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.k("span",{class:"category",title:W.placeCategory},W.placeCategory)))):null)};
rjF=function(a){return function(W){a&&(a.thumbnailElRef=W.thumbnailElRef,a.thumbnail=W.thumbnail,a.thumbnailOverlays=W.thumbnailOverlays,a.thumbnailSize=W.thumbnailSize)}};
Aje=function(a){var W;return(W=a.sharedUi)==null?void 0:W.animatedThumbnailEnabled};
hFF=function(a){var W;return(W=a.sharedUi)==null?void 0:W.inlinePreviewEnabled};
_.ib9=function(a){var W;return(W=a.sharedUi)==null?void 0:W.currentPageSubType};
cje=function(){return _.k("div",{class:"yt-pinking"},_.k("svg",{class:"yt-pinking__pinking-left"},_.k("defs",null,_.k("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.k("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.k("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.k("svg",{class:"yt-pinking__pinking-right"},_.k("defs",null,_.k("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.k("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.k("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
eF9=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"}};
MZD=function(a){var W=[],w=a.data,Z=CA(a.width,a.height),N=_.K().resolve(_.Vv(nFU)),B=_.D8(function(){W.push("elRef.value set")});
_.AS(function(){W.push("onInit");return function(){W.push("onCleanup")}});
_.AS(function(){var F;(F=a.playbackRef)==null||F.call(a,{thumbnailElRef:B,thumbnail:w.image,thumbnailOverlays:w.overlays,thumbnailSize:Z})});
var I=hQe(Aje),X,v=(X=a.aspectRatio)!=null?X:0,U=(X=(w.image?_.j6e(w.image):v)<=1&&v===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",O=function(){B.value||_.jJ(new _.Uw("Thumbnail elRef.value is null",W.join("\n")));N&&B.value&&N(B.value)},S={};
a:{if(!a.disableRounding&&!a.isClip)switch(Z){case "large":var T="yt-thumbnail-view-model--large";break a;case "small":T="yt-thumbnail-view-model--small";break a;default:T="yt-thumbnail-view-model--medium";break a}T=void 0}v=_.ZK("yt-thumbnail-view-model",a.className,eF9(v),T,(S["yt-thumbnail-view-model--cinematic"]=X,S));S=void 0;var p,h;(T=X?(p=a.data)==null?void 0:(h=p.backgroundColor)==null?void 0:h.lightTheme:void 0)&&(S="background-color:"+ri(T,"1")+";");var L;p=a.hovered&&Z!=="large"&&((L=
w.overlays)==null?void 0:L.some(function(F){return _.A(F,jqv)}));
return _.k("yt-thumbnail-view-model",{class:v,style:S,el:B},uJ(X,function(){return _.k("div",{class:"yt-thumbnail-view-model__blurred-image"},_.k(_.qw,{data:w.image,alt:"",contentMode:U,targetWidth:a.width,onload:O}))}),_.k("div",{class:"yt-thumbnail-view-model__image"},_.k(_.qw,{data:w.image,
alt:"",contentMode:U,targetWidth:a.width,onload:O}),null),uJ(!p,function(){return LNC(w.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:Z,isClip:a.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:a.lockupExperiments}})}),uJ(a.hovered,function(){return JjI(w.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),uJ(a.hovered&&I,function(){return FNe(w.overlays)}),uJ(a.isClip,function(){return cje()}))};
RFe=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"}};
sq9=function(a){var W=_.l($D(-1)),w=W.next().value,Z=W.next().value,N=iG(function(){return new qQF(Z)});
_.AS(function(){Qqe(N,a.data.thumbnails.length);return function(){xzE(N)}});
var B;return _.k("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(B=a.data.thumbnails)==null?void 0:B.map(function(I,X){var v=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!a.data.primaryThumbnail&&X===0&&v.push("yt-collection-thumbnail-slideshow--first-slide");X<=w&&v.push("yt-collection-thumbnail-slideshow--show-slide");X=v.join(" ");return _.k("div",{class:X},bbv(I,{thumbnailViewModel:{disableRounding:a.disableRounding}}))}))};
Cve=function(a){var W=_.l($D(!1)),w=W.next().value,Z=W.next().value;_.AS(function(){if(a){var N=_.K().resolve(_.Vv(uov));if(N){var B={triggeringElement:a,onDwellTriggeredFn:function(){Z(!0)},
onDwellEndFn:function(){Z(!1)}};
N.registerElement(B);return function(){N.unregisterElement(B)}}}});
return w};
GYD=function(a){var W=_.l(_.$1(!1,void 0,"RIOonf")),w=W.next().value,Z=W.next().value;_.AS(function(){var N=a==null?void 0:a();if(N){var B=_.K().resolve(_.Vv(uov));if(B){var I={triggeringElement:N,onDwellTriggeredFn:function(){Z(!0)},
onDwellEndFn:function(){Z(!1)}};
B.registerElement(I);_.Ao(function(){B.unregisterElement(I)})}}});
return w};
dzm=function(a){var W,w=(W=_.K().resolve(_.Vv(_.Lt)))==null?void 0:W(),Z=Cve(a.triggeringElement),N=!!a.data.primaryThumbnail,B=function(){var X;return _.k("div",null,DzD(a.data.primaryThumbnail,{thumbnailViewModel:{width:a.width,height:a.height,aspectRatio:a.aspectRatio,disableRounding:a.disableRounding,className:N?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:a.hovered,playbackRef:a.playbackRef}}),uJ(Z&&((X=a.data.thumbnails)==null?void 0:X.length),function(){return _.k("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.k(fwF,{data:a.data,disableRounding:!N}))}))};
W=a.data.stackColor;var I={experimentEnabled:N,thumbnailSize:CA(a.width,a.height),doubleStack:a.doubleStack,color:w?W==null?void 0:W.darkTheme:W==null?void 0:W.lightTheme,enableResponsiveMode:!1};return _.k("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},uJ(N,function(){return _.k(cWF,{data:I},B())}),uJ(!N,B))};
mz8=function(a,W,w){w?w(W):_.cX(W,a.target?{form:{element:a.target}}:void 0)};
_.m5=function(a,W,w,Z){_.Ka(function(){var N=a.value;if(N){var B=new Map,I,X=(I=W())==null?void 0:I.onTap;X&&(I=function(v){a:{var U=v.composedPath();U=_.l(U);for(var O=U.next();!O.done;O=U.next()){O=O.value;if(O===N)break;if(O.className.indexOf("HostIsClickableAdComponent")>=0||O.tagName==="A".toString()||O.tagName==="BUTTON".toString()){U=!0;break a}}U=!1}U||(_.r("enable_square_image_components_ui_web_with_float_button")?_.E$(a.value,"yt-navigate",{endpoint:_.rJ(X)}):mz8(v,X,w))},(Z==null?0:Z())||
_.r("enable_web_home_top_landscape_image_layout_level_click")?(N.addEventListener("tap",I),B.set("tap",I)):(N.addEventListener("click",I),B.set("click",I)));
_.Ao(function(){for(var v=_.l(B),U=v.next();!U.done;U=v.next()){var O=_.l(U.value);U=O.next().value;O=O.next().value;N.removeEventListener(U,O)}})}})};
VZm=function(a,W){var w,Z=(w=a.interaction)==null?void 0:w.onTap;if(a=_.hQ({elementsCommand:Z,forceNewState:!0,skipOnClick:!0}))return a.onclick=function(N){s8E(N)&&(N.preventDefault(),Z&&mz8(N,Z,W))},ix(a)?a:void 0};
zFm=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"}};
HbU=function(a){switch(a){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"}};
yjF=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"}};
_.EF8=function(a){return _.r("rich_grid_enable_dynamic_offset")&&a?Math.max(Math.round((a-_.yv("rich_grid_dynamic_offset_anchor_width",1300))/100*_.yv("rich_grid_dynamic_offset_offset_per_100",10)),_.yv("rich_grid_dynamic_offset_lower_bound",-60)):0};
akE=function(a,W){switch(W){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}};
WcE=function(a){var W=a.originalContainerWidth;var w=a.sizing;var Z=a.standardUnit;if(a.isCompactList&&W<528)return 1;switch(w){case "STANDARD":return Z;case "COMPACT":return Z+1;case "EXTRA_COMPACT":return _.r("web_responsive_extra_compact_2x")?Z*2:_.r("web_responsive_current")?Z===1?2:Z%2===0?Z/2*3:Z+2:Z<4?Z*2:Math.ceil(Z*3/2);case "MINI":return Z>1?Z*2:3;default:return Z}};
Zh7=function(a){var W=a.containerWidth;var w=a.peek;var Z=a.gutter;var N=a.numItems;a=a.ignoreMaxWidthLimit;W=w?Math.max((W-w-Z*N)/N,0):Math.max((W-Z*(N-1))/N,0);return a?W:Math.min(W,wsm)};
_.VP=function(a){var W=a.containerWidth;var w=a.hasPeek;var Z=a.sizing;var N=a.marginSettings;var B=a.isCompactList;var I=a.enableFullBleedForSingleCol;var X=a.standardUnitMinWidth;Z=Z||"STANDARD";w=!!w;a=W>=528?16:8;var v=w?W>=528?48:24:0;N=akE(W,N);var U=Math.max(W-N*2,0);X=_.r("kevlar_disable_min_width_override")?void 0:X;X=Math.min(Math.max(Math.floor((U-v+a)/((X!=null?X:NdU)+_.EF8(W)+a)),1),6);var O=(I=!!I&&X===1)||X===1&&Z!=="STANDARD";w=w||O?U:Math.min(U,(wsm+a)*X-a);Z=WcE({originalContainerWidth:W,
sizing:Z,standardUnit:X,isCompactList:B});return{itemWidth:Zh7({containerWidth:w,peek:v,gutter:a,numItems:Z,ignoreMaxWidthLimit:O}),gutter:a,maxContainerWidth:w,numItems:Z,margin:I?0:N,contentMargin:akE(W,1),typographyBump:Zh7({containerWidth:w,peek:v,gutter:a,numItems:X,ignoreMaxWidthLimit:O})>400&&!(B&&W<528),standardUnit:X}};
t$8=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"}};
_.$pe=function(a){if(a){var W;if((W=a.responsiveContainerConfiguration)==null?0:W.responsiveSize)return t$8(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"}}};
Bd7=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}};
XsH=function(a,W,w,Z,N,B,I,X){a:switch(a){case 4:B=!!(B&&B<100);break a;default:B=!1}a:switch(a){case 3:case 4:var v=Z==="LOCKUP_CONTENT_TYPE_CHANNEL"||Z==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:v=!1}a:switch(a){case 5:var U=!0;break a;case 4:U=!1;break a;default:U=!1}a:if(a===4&&Z==="LOCKUP_CONTENT_TYPE_SOURCE")var O=1;else switch(a){case 3:O=1;break a;default:O=0}return{isOverlay:U,isCard:lkI(Z,I),sizing:W!=null?W:"STANDARD",typographyBump:w!=null?w:!1,isTiny:B,isCentered:v,isCollection:IkI(Z),
arrangement:O,addMarginForFullbleed:a===1&&Z!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:a===1&&Z==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:PR8(Z,N,X),disableRounding:a===5||lkI(Z,I)||a===1&&Z==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:IkI(Z)?2:0,useLegacyTypography:!(X==null||!X.useLegacyTypography),useRichGridLegacyTypography:!(X==null||!X.useRichGridLegacyTypography)&&!_.r("web_enable_typography_bump")}};
IkI=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}};
lkI=function(a,W){if(W&&a==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(a){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
PR8=function(a,W,w){if(W&&(w==null||!w.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}};
vMU=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"}};
kee=function(a,W,w){a:switch(a.badgeStyle){case "BADGE_OVERLAY":var Z=!0;break a;default:Z=!1}return{type:W?16:gMe(a.badgeStyle),brNzRatingBadgeType:oMx(a.badgeStyle),text:a.badgeText,icon:a.iconName,isOverlay:Z,modern:w||_.r("web_modern_badge_view_model")}};
gMe=function(a){switch(a){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
oMx=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}};
OhE=function(a){var W=a.data?kee(a.data,!!a.workaroundShortsIsThumbnailBadge,a.modern):void 0;return _.k("yt-badge-view-model",{class:_.ZK("yt-badge-view-model-wiz",a.class)},uJ(W==null?void 0:W.brNzRatingBadgeType,function(){return _.k(Upv,{data:W})}),uJ(W&&!W.brNzRatingBadgeType,function(){return _.k(_.z9,{data:W})}))};
_.He=function(a){if(a){var W;return((W=_.K().resolve(_.Vv(_.Lt)))==null?0:W())?a.darkThemeImage:a.image}};
TdF=function(a,W,w,Z,N,B){if(!w)return N&&B&&W==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+N+"px; height: "+B+"px;":"";N=w.size;w=w.allowFullWidth;if(W==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&w)return"width: 100%;";if(N===void 0)return"";switch(a){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+N+"px; height: "+N+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+N+"px; height: "+1/SXS*
N+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+N*YXe+"px; height: "+N+"px;";default:return(Z==null?0:Z.height)&&(Z==null?0:Z.width)?Z.width/Z.height>1?"max-width: "+N*YXe+"px;":"max-width: "+N+"px;":"max-width: "+N+"px;"}};
Kcx=function(a){var W;return a&&((W=_.He(a.themedImage))!=null?W:a.image)};
psE=function(a){var W;return a==null?void 0:(W=a.sources)==null?void 0:W[0]};
Ar8=function(a,W){var w,Z;return!!((a==null?0:(w=a.byline)==null?0:w.hideAvatar)&&((Z=_.A(W,rrv))==null?void 0:Z.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
h$U=function(a,W){var w,Z;return!!((a==null?0:(w=a.byline)==null?0:w.addPadding)&&((Z=_.A(W,rrv))==null?void 0:Z.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
ihC=function(a,W,w,Z){var N={},B=(N["yt-content-metadata-view-model-wiz__delimiter"]=!0,N["yt-content-metadata-view-model-wiz__delimiter--standalone"]=Z,N);return uJ(W-1>w,function(){return _.k("span",{class:_.ZK(B),"aria-hidden":!0},a)})};
e$e=function(a,W){return _.k(_.k_,{text:a.text,linkInheritColor:!0,className:crx(W),userInput:!0})};
jSv=function(a){var W=a.metadataPart;var w=a.isOverlay;var Z=a.useMediumText;var N=a.hideAvatar;var B=1;W.maxLines!==void 0&&(B=W.maxLines);return _.k(_.Ha,null,uJ(W.avatarStack,function(){return nMS(W.avatarStack,{avatarStackViewModel:{isOverlay:w,useMediumText:Z,hideAvatar:N}})}),uJ(W.text,function(){var I=B;
return _.k(_.Ha,null,W.tooltip?_.k("span",{title:W.tooltip,role:"tooltip"},e$e(W,I)):e$e(W,I))}))};
crx=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"}};
Lc7=function(a){var W=a.metadataRow;var w=a.isInline;var Z=a.delimiter;var N=a.isOverlay;var B=a.useMediumText;var I=a.extensions;var X=Ar8(I==null?void 0:I.lockupMetadata,W);a=h$U(I==null?void 0:I.lockupMetadata,W);I=!!((I==null?0:I.lockupMetadata)&&W.badges);var v={};a=(v["yt-content-metadata-view-model-wiz__metadata-row"]=!0,v["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=w,v["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=a,v["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
I,v);var U,O;return _.k("div",{class:_.ZK(a)},(U=W.badges)==null?void 0:U.map(function(S){return _.k("div",{class:"yt-content-metadata-view-model-wiz__badge"},nMS(S))}),(O=W.metadataParts)==null?void 0:O.map(function(S,T){return _.k(_.Ha,null,jSv({metadataPart:S,
isOverlay:N,useMediumText:B,hideAvatar:X}),ihC(Z,W.metadataParts.length,T,!1))}),uJ(W.isSpacerRow&&!w,function(){return _.k("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
JrS=function(a){var W=a.className;var w=a.data;var Z=a.layout===void 0?0:a.layout;var N=a.isOverlay===void 0?!1:a.isOverlay;var B=a.useMediumText;var I=a.extensions;a=_.D8();var X=Z===0;Z={};Z=(Z["yt-content-metadata-view-model-wiz"]=!0,Z["yt-content-metadata-view-model-wiz--inline"]=X,Z["yt-content-metadata-view-model-wiz--tappable"]=_.sB(w.rendererContext),Z["yt-content-metadata-view-model-wiz--medium-text"]=B,Z);_.uK(a,w.rendererContext);return _.k("yt-content-metadata-view-model",{class:_.ZK(W,
Z),el:a},uJ(w.metadataRows,function(){return w.metadataRows.map(function(v,U){return _.k(_.Ha,null,Lc7({metadataRow:v,isInline:X,delimiter:w.delimiter,isOverlay:N,useMediumText:B,extensions:I}),uJ(X&&!v.isSpacerRow,function(){return ihC(w.delimiter,w.metadataRows.length,U,!0)}))})}))};
Fc8=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"}};
M$v=function(a){if(a==null?0:a.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(a==null?void 0:a.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
R$C=function(a){if(a==null?0:a.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(a==null?void 0:a.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
QSe=function(a){var W,w,Z,N,B,I,X={},v=_.ZK(M$v(a.lockupStyle),R$C(a.lockupStyle),(X["yt-lockup-metadata-view-model-wiz"]=!0,X["yt-lockup-metadata-view-model-wiz--overlay"]=(W=a.lockupStyle)==null?void 0:W.isOverlay,X["yt-lockup-metadata-view-model-wiz--card"]=(w=a.lockupStyle)==null?void 0:w.isCard,X["yt-lockup-metadata-view-model-wiz--centered"]=(Z=a.lockupStyle)==null?void 0:Z.isCentered,X["yt-lockup-metadata-view-model-wiz--typography-bump"]=(N=a.lockupStyle)==null?void 0:N.typographyBump,X["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(B=a.lockupStyle)==null?void 0:B.useLegacyTypography,X["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(I=a.lockupStyle)==null?void 0:I.useRichGridLegacyTypography,X)),U,O,S,T,p,h;return _.k("yt-lockup-metadata-view-model",{class:v},uJ(a.data.image,function(){return _.k("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},qXU(a.data.image,{avatarStackViewModel:{overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}}))}),_.k("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},
_.k("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(U=a.data.title)==null?void 0:U.content},uJ(a.data.title,function(){return _.k(_.ot,{command:a.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:a.lockupAccessibilityLabel},_.k(_.k_,{text:a.data.title}))})),_.k("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},qXU(a.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((O=a.lockupStyle)==null?void 0:O.typographyBump)||((S=a.lockupStyle)==null?void 0:S.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((T=a.lockupStyle)==null?void 0:T.arrangement)===0,addPadding:((p=a.lockupStyle)==null?void 0:p.arrangement)===1}}}}})),uJ(a.data.attribution,function(){return _.k("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},qXU(a.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))})),_.k("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},
qXU(a.data.menuButton,((h=a.lockupStyle)==null?0:h.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
xpS=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"}}};
bhD=function(a){var W=_.ib9(_.FM().getState())||"";return a?a+W:""};
sSS=function(a){switch(a){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
CRm=function(a){var W=_.l(_.$1(void 0,void 0,"BIquNb")),w=W.next().value,Z=W.next().value,N=_.l(_.$1(void 0,void 0,"eR0GH"));W=N.next().value;var B=N.next().value,I=_.l(_.$1(void 0,void 0,"UmkP0"));N=I.next().value;var X=I.next().value;I=_.$_(function(O){if(uPE(_.xD(O)))return!1;Z(O);B(void 0);X(void 0);return!0});
var v=_.$_(function(O){a==null||a(O);if(uPE(_.xD(O)))return!1;B(O);Z(void 0);X(void 0);return!0}),U=_.$_(function(O){uPE(_.xD(O))||(X(O),B(void 0),Z(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:w,pointerDownEvent:W,pointerLeaveEvent:N},touchFeedbackOnPointerUp:I,touchFeedbackOnPointerDown:v,touchFeedbackOnPointerLeave:U}};
uPE=function(a){var W=["BUTTON".toString()];a=_.l(a);for(var w=a.next();!w.done;w=a.next()){w=w.value;for(var Z=_.l(W),N=Z.next();!N.done;N=Z.next())if(w.tagName===N.value)return!0}return!1};
GeI=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"}};
Dp8=function(a){var W;return Bs7(a,((W=a.content)==null?void 0:W.length)||0,!0)};
fkS=function(a){var W=Dp8(a),w,Z;return(((w=a.content)==null?void 0:w.length)||0)>(((Z=W.content)==null?void 0:Z.length)||0)};
dpF=function(a){var W=a.isTruncated;var w=a.isAbsoluteButton;var Z=a.lineHeight;var N=a.contentRef.value,B=a.placeholderTruncationTextRef.value,I=a.truncationTextRef.value;a=a.appDirection==="rtl";if(N&&B){var X=B.offsetLeft;a&&(X=N.offsetWidth-B.offsetWidth-B.offsetLeft);if(W){W=B.offsetWidth;B=N.offsetWidth;var v=w?B-W-70:X-70;Z="linear-gradient(\n      to top, transparent 0%,\n      transparent "+Z+"px,\n      #000 "+Z+"px,\n      #000 100%), linear-gradient(\n      to "+((a?"left":"right")+",\n      #000 0px,\n      #000 "+
v+"px,\n      transparent "+(w?B-W:v+70)+"px)");N.style.setProperty("-webkit-mask-image",Z);N.style.setProperty("mask-image",Z)}else N.style.setProperty("-webkit-mask-image",""),N.style.setProperty("mask-image","");w?a?(I.style.setProperty("left","0"),I.style.setProperty("right","unset")):(I.style.setProperty("left",""),I.style.setProperty("right","0")):a?(I.style.setProperty("left","unset"),I.style.setProperty("right",X+"px")):(I.style.setProperty("left",X+"px"),I.style.setProperty("right","unset"))}};
mpF=function(a,W,w,Z,N){var B=_.D8(),I=_.D8(),X=_.D8(),v=Dp8(a),U=_.K().resolve(_.Fm),O=_.l($D(fkS(a))),S=O.next().value,T=O.next().value,p=cS(null);rw(function(){function h(){if(B.value&&I.value&&X.value){var x=B.value;x.scrollHeight-x.offsetHeight>1?(T(!0),Z||dpF({isTruncated:!0,isAbsoluteButton:!0,lineHeight:w,contentRef:B,placeholderTruncationTextRef:I,truncationTextRef:X,appDirection:U})):(x=fkS(a),T(x),Z||dpF({isTruncated:x,isAbsoluteButton:!1,lineHeight:w,contentRef:B,placeholderTruncationTextRef:I,
truncationTextRef:X,appDirection:U}))}}
var L,F;(L=p.value)==null||(F=L.stop)==null||F.call(L);L=new _.yP(h,17);h();p.value=L},[a.content,
W,w,U,Z,N]);_.AS(function(){var h=function(){var F,x;(F=p.value)==null||(x=F.fire)==null||x.call(F)};
if(window.ResizeObserver){var L=new ResizeObserver(h);L.observe(B.value);return function(){var F,x;(F=p.value)==null||(x=F.stop)==null||x.call(F);L.disconnect()}}window.addEventListener("resize",h);
return function(){var F,x;(F=p.value)==null||(x=F.stop)==null||x.call(F);window.removeEventListener("resize",h)}});
return{isTruncated:S,displayText:v,contentRef:B,placeholderTruncationTextRef:I,truncationTextRef:X}};
V$F=function(a){return _.k("button",{"aria-disabled":!0,disabled:!0,class:a.className,el:a.elRef,style:"line-height: "+a.lineHeight+"px;"},_.k(_.k_,{text:a.text}))};
z$U=function(a){var W=a.text;var w=a.alwaysShowTruncationText;var Z=a.truncationText;var N=a.onExpandClick;var B=a.lineHeight===void 0?16:a.lineHeight;var I=a.maxLines===void 0?2:a.maxLines;var X=a.disableTextMask===void 0?!1:a.disableTextMask;var v=a.isOverlay===void 0?!1:a.isOverlay;var U=a.accessibilityLabel===void 0?"":a.accessibilityLabel;var O=a.useMediumText===void 0?!1:a.useMediumText;a=_.$_(function(){return void(N==null?void 0:N())});
var S=mpF(W,I,B,X,O),T=S.isTruncated;W=S.displayText;var p=S.contentRef,h=S.placeholderTruncationTextRef;S=S.truncationTextRef;var L={};w=_.ZK((L["truncated-text-wiz__absolute-button"]=!X,L["truncated-text-wiz__bottom-button"]=X,L["truncated-text-wiz--hidden"]=!(w||T),L));X={};v=_.ZK((X["truncated-text-wiz"]=!0,X["truncated-text-wiz--overlay"]=v,X["truncated-text-wiz--medium-text"]=O,X));return _.k("truncated-text",{class:v,"on:click":a,style:"line-height: "+B+"px;"},_.k("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:p,style:"max-height: "+I*B+"px;"},_.k(_.k_,{text:W}),_.k(V$F,{text:Z,lineHeight:B,elRef:h,className:"truncated-text-wiz__inline-button"})),_.k("button",{"aria-label":U,class:w,el:S,style:"line-height: "+B+"px;"},_.k(_.k_,{text:Z})))};
HhS=function(a){return{content:a!=null?a:""}};
azC=function(a){var W=a.data;var w;a={class:a.className};a:switch(W.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var Z="yt-video-attribute-view-model--vertical";break a;default:Z="yt-video-attribute-view-model--horizontal"}a:switch(W.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var N="yt-video-attribute-view-model--image-small";break a;default:N="yt-video-attribute-view-model--image-large"}a:switch(W.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var B="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":B="yt-video-attribute-view-model--image-avatar";break a;default:B=""}a:switch(W.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var I="yt-video-attribute-view-model--metadata-header";break a;default:I=""}a:switch(W.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var X="yt-video-attribute-view-model--container-card";break a;default:X=""}var v=_.rJ(W.onTap)||_.bK(W.rendererContext)?"yt-video-attribute-view-model--clickable":"";
Z=["yt-video-attribute-view-model",Z,N,B,I,X,v].join(" ");if(W.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var U="";else N=W.lightColorPalette,B=W.darkColorPalette,I=((U=_.K().resolve(_.Vv(_.Lt)))==null?0:U())&&B?B:N,U=(U=I==null?void 0:I.section2Color)?_.pC(U):"";return _.k("yt-video-attribute-view-model",a,_.k("div",{class:Z,style:_.It({"background-color":U})},_.k(TNC,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(w=_.rJ(W.onTap))!=
null?w:_.bK(W.rendererContext),role:"group",ariaLabel:W.title,forceNewState:!0},W.heroText||W.image?_.k(yrx,{data:W}):null,_.k(EMe,{data:W,sizeSmall:W.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
WtE=function(a){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:a.overflowMenuA11yLabel,onTap:function(W){W.preventDefault();W.stopPropagation();if(a.overflowMenuOnTap){var w=_.hQ({elementsCommand:a.overflowMenuOnTap,forceNewState:!0});if(w==null?0:w.onclick)w.onclick(W)}}}};
yrx=function(a){a=a.data;var W,w=((W=_.K().resolve(_.Vv(_.Lt)))==null?0:W())&&a.darkThemeImage?a.darkThemeImage:a.image;W=WtE(a);return _.k("div",{class:"yt-video-attribute-view-model__hero-section"},w?_.k(_.qw,{data:w,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):a.heroText?_.k("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.k("span",{class:"yt-video-attribute-view-model__hero-text"},a.heroText)):null,a.overflowMenuOnTap?
_.k("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.k(EB,{data:W,iconName:"MORE_VERT"})):null)};
EMe=function(a){var W=a.data;a=a.sizeSmall;var w=W.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",Z=_.rJ(W.onTap)||_.bK(W.rendererContext);Z=_.hQ({innertubeCommand:Z});Z=ix(Z);var N={};a={class:_.ZK("yt-video-attribute-view-model__metadata",(N["yt-video-attribute-view-model--small-font"]=a,N)),role:Z?"link":"group"};Z=_.k("h1",{class:"yt-video-attribute-view-model__title"},W.title);w=W.subtitle?_.k("h4",{class:"yt-video-attribute-view-model__subtitle"},w?_.k(z$U,{text:HhS(W.subtitle),truncationText:HhS(W.subtitleTruncationText),
maxLines:2}):_.k("span",null,W.subtitle)):null;if(W.secondarySubtitle){N=W.secondarySubtitle;if(N!=null&&N.attachmentRuns){for(var B=[],I=_.l(N.attachmentRuns),X=I.next();!X.done;X=I.next())X=X.value,X.element&&B.push(Object.assign({},X,{element:Object.assign({},X.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));N=Object.assign({},N,{attachmentRuns:B})}N=_.k("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.k(_.k_,{text:N}))}else N=null;return _.k("div",a,Z,w,N,W.buttonViewModel?wWF(W.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
Nce=function(a){var W={};W=_.ZK("video-summary-content-view-model-wiz",a.className,(W["video-summary-content-view-model-wiz--is-search"]=!!a.isSearch,W));var w=_.A(a.data.likeButtonViewModel,nj),Z=_.A(a.data.dislikeButtonViewModel,j4),N=hS(function(){var B=[],I,X=(I=a.data)==null?void 0:I.paragraphs;if(X==null||!X.length)return[];for(I=0;I<X.length;I++){var v=_.A(X[I],Z5C),U=void 0;I>0&&(U=_.A(X[I-1],Z5C));U&&!!U.marker===!!v.marker?B[B.length-1].paragraphs.push(v):B.push({isList:!!v.marker,paragraphs:[v]})}return B},
[a.data]);
return _.k("video-summary-content-view-model",{class:W},N.map(function(B){return B.isList?_.k("ul",{class:"video-summary-content-view-model-wiz__list"},B.paragraphs.map(function(I){return _.k("li",{class:"video-summary-content-view-model-wiz__list-item"},_.k(_.k_,{text:I.text}))})):B.paragraphs.map(function(I){return _.k("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.k(_.k_,{text:I.text}))})}),uJ(!!w&&!!Z,function(){return _.k("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.k("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.k(zUx,{data:w,
disableIconAnimation:!0})),_.k(HZx,{data:Z}))}))};
_.aa=function(a,W,w,Z,N){Z=Z===void 0?{}:Z;if(!N||Math.random()<5E-4){W=W||null;w=w||null;a=a instanceof Error?a:new _.Uw(a);if(a.args)for(var B=_.l(a.args),I=B.next();!I.done;I=B.next())I=I.value,I instanceof Object&&(Z=Object.assign({},I,Z));Z.category="H5 Ads Control Flow";W&&(Z.slot=W?"slot:  "+W.slotType:"");w&&(Z.layout=w?"layout:  "+w.layoutType:"",Z.layoutId=w.layoutId);N&&(Z.known_error_aggressively_sampled=!0);a.args=[Z];_.jJ(a)}};
_.tCx=function(a,W){_.aV(a,"yt-open-popup-action",[_.Db(W),a])};
_.W6=function(a,W){_.tCx(a,_.b8(W))};
BcD=function(a){if(!a)return"";if($bv[a])return $bv[a];wX||(wX=_.PM("A"));wX.href!==a&&hY(wX,a);var W=wX.pathname;$bv[a]=W.startsWith("/")?W:"/"+W;return $bv[a]};
lz8=function(){var a=BcD(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 W;return(Zr==null?void 0:(W=Zr.response)==null?void 0:W.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"};
_.v0D=function(){var a=Zr==null?void 0:Zr.response,W=a==null?void 0:a.endpoint;if(!W)return(a==null?void 0:a.page)==="watch"?"watch":lz8();var w;a=(w=_.A(W==null?void 0:W.commandMetadata,_.mm))==null?void 0:w.webPageType;w=!1;if(a&&!Iz8.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 Z;return((Z=_.A(W==null?void 0:W.commandMetadata,_.mm))==null?0:Z.url)&&BcD(_.A(W.commandMetadata,_.mm).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var N;return(W=(N=_.A(W,_.I1))==null?void 0:N.browseId)?PXS[W]||"browse":"browse";default:w=!0}if(_.A(W,_.Nm)||_.A(W,XWF))return"sponsorship";N=BcD(window.location.href);if(N.startsWith("/experiments"))return"experiments";if(N.startsWith("/create_channel"))return"create_channel";
if(_.A(W,_.ba)&&N.startsWith("/shorts"))return"shorts";if(_.A(W,_.ba)&&N.startsWith("/watch"))return"watch";w&&(W=new _.Uw("Unsupported mWeb page type",{pathname:N,webPageType:a}),_.eJ(W));return"browse"};
YCS=function(a){var W=a.data;var w=a.inlineMetadata;var Z=a.aspectRatio;var N=a.scrimStyle;var B=a.useDefaultStyle;var I=a.className;var X=cS(new g0x);a=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";a=B?a==="SHORTS_LOCKUP_STYLE_SLIM":W.style==="SHORTS_LOCKUP_STYLE_SLIM";w=w||a||!1;N=N!==void 0?N:1;var v=_.D8(function(F){X.value&&(X.value.hostElement=F,L())});
_.yz(v,{visibilityCallback:function(F){F&&W.onFirstVisible&&_.cX(W.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});I=_.ZK("shortsLockupViewModelHost",I);var U=_.hQ({elementsCommand:W.onTap}),O=_.D8();_.YQF(O,_.rJ(W.onTap));var S=_.$_(function(F){if(U==null?0:U.onclick)U.onclick(F);return!1}),T=_.D8(),p=[];
p.push("shortsLockupViewModelHostThumbnailContainer");Z===1?p.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):Z===2&&p.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");a||p.push("shortsLockupViewModelHostThumbnailContainerRounded");_.r("web_shorts_2_by_3_lockups_study")||_.r("desktop_search_enable_two_by_three_shorts_aspect_ratio")||p.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var h,L=function(){if(X.value){var F;(F=h)==null||
ty(F);F=X.value;var x;F.hostElement&&((x=F.data)==null?0:x.inlinePlayerData)&&(h=dP({mediaRenderer:F,lockupElement:F.hostElement,thumbnailElement:T.value,videoPreviewOpts:o0m}))}};
rw(function(){X.value&&(X.value.data=W,L())},[W]);
return _.k("ytm-shorts-lockup-view-model",{el:v,class:I},_.k("a",{el:O,"on:click":S,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!w,tabindex:w?0:-1},_.k("div",{el:T,class:p.join(" ")},uJ(W.thumbnail,function(){return _.k(_.Ha,null,_.k(_.qw,{data:W.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),w?_.k(koE,{data:W,
scrimStyle:N,useDefaultStyle:B}):null,UbU(W.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),w&&W.menuOnTap?_.k(O57,{data:W,inlineMetadata:w}):null,w?null:_.k(SC9,{useDefaultStyle:B,data:W}))};
koE=function(a){var W=a.data;var w=a.scrimStyle;var Z=a.useDefaultStyle;var N=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";a=Z&&_.r("web_hide_primary_text_for_pivot_panel");var B={};Z=_.ZK("shortsLockupViewModelHostInlineMetadata",(B.shortsLockupViewModelHostMetadataRounded=!(Z?N==="SHORTS_LOCKUP_STYLE_SLIM":W.style==="SHORTS_LOCKUP_STYLE_SLIM"),B.shortsLockupViewModelHostInlineMetadataShortScrim=w===3&&!_.r("enable_shorts_lockup_new_scrim"),
B.shortsLockupViewModelHostInlineMetadataShortScrimNew=w===3&&_.r("enable_shorts_lockup_new_scrim"),B.shortsLockupViewModelHostInlineMetadataMediumScrim=w===2||w===4,B.shortsLockupViewModelHostShowOverPlayer=!0,B));var I,X;N={};return _.k("div",{class:Z+" image-overlay-text"},_.k("h3",{class:_.W$("shortsLockupViewModelHostMetadataTitle",(N.shortsLockupViewModelHostMetadataTitleTextShadow=w===4,N)),"aria-label":W.accessibilityText},uJ(((I=W.overlayMetadata)==null?void 0:I.primaryText)&&!a,function(){return _.k(_.k_,
{text:W.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((X=W.overlayMetadata)==null?0:X.secondaryText)?_.k(Tcm,{data:W,
scrimStyle:w}):null)};
SC9=function(a){var W=a.data;var w=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";a=(a.useDefaultStyle?w==="SHORTS_LOCKUP_STYLE_SLIM":W.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var Z=_.hQ({elementsCommand:W.onTap});w=_.D8();_.YQF(w,_.rJ(W.onTap));var N=_.$_(function(S){if(Z==null?0:Z.onclick)Z.onclick(S);return!1}),B,I,
X,v,U,O={};
return _.k("div",{class:a+" image-overlay-text","on:click":N},_.k("h3",{class:_.W$("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(O.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((B=W.overlayMetadata)==null?0:(I=B.primaryText)==null?0:I.content),O)),"aria-label":W.accessibilityText},_.k("a",{el:w,"on:click":N,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(X=W.overlayMetadata)==null?void 0:(v=X.primaryText)==
null?void 0:v.content},uJ(W.overlayMetadata,function(){return _.k(_.k_,{text:W.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((U=W.overlayMetadata)==null?0:U.secondaryText)?_.k(Tcm,{data:W,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,W.menuOnTap?_.k(O57,{data:W,inlineMetadata:!1}):null)};
Tcm=function(a){var W=a.data;var w=a.scrimStyle;a=a.className;var Z,N={};return _.k("div",{class:_.W$((N.shortsLockupViewModelHostMetadataSubhead=w!==4,N.shortsLockupViewModelHostMetadataSubheadNew=_.r("enable_shorts_lockup_new_scrim"),N.shortsLockupViewModelHostMetadataSubheadTextShadow=w===4,N),a),"aria-hidden":"true"},_.k(_.k_,{text:(Z=W.overlayMetadata)==null?void 0:Z.secondaryText,noStyleRuns:!0}))};
O57=function(a){var W={};W=_.ZK((W.shortsLockupViewModelHostInlineMetadataMenu=a.inlineMetadata,W.shortsLockupViewModelHostOutsideMetadataMenu=!a.inlineMetadata,W.shortsLockupViewModelHostShowOverPlayer=!0,W));return _.k("div",{class:W},_.k(EB,{data:{style:a.inlineMetadata?"overlay":"mono",accessibilityLabel:a.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(w){w.preventDefault();w.stopPropagation();var Z=_.hQ({elementsCommand:a.data.menuOnTap,forceNewState:!0});
if(Z==null?0:Z.onclick)Z.onclick(w)}},
iconName:"MORE_VERT"}))};
$B=function(a,W,w,Z){return a&&W?a!==w||W!==Z?(_.aa(Error("Gh"),void 0,void 0,{"stored-slot":a,"stored-layout":W,"latest-slot":w,"latest-layout":Z}),!1):!0:!1};
Kte=function(a,W,w){return a({targetId:W},function(Z){return w.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},Z,{header:w.continuationItems?w.continuationItems[0]:void 0}):Object.assign({},Z,{contents:w.continuationItems?w.continuationItems:[]})})};
pWe=function(a,W,w,Z){if(W=W.trackingParams){var N,B=(N=w.getScreenLayer)==null?void 0:N.call(w);w=_.nS(B);N=_.eH(B);if(w&&N){var I=_.PX(W);_.r("combine_ve_grafts")?a.graftServerVe(W,N,B):_.M1(w,N,I);Z==null||Z(I)}}};
AOe=function(a){var W;return((W=rOx.get(a))==null?void 0:W.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
cOS=function(a,W){var w={type:W.slotType,controlFlowManagerLayer:h1e.get(W.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W.slotEntryTrigger&&(w.entryTriggerType=W.slotEntryTrigger.triggerType);W.slotPhysicalPosition!==1&&(w.slotPhysicalPosition=W.slotPhysicalPosition);if(a){w.debugData={slotId:W.slotId};if(a=W.slotEntryTrigger)w.debugData.slotEntryTriggerData=i5x(a);a=W.slotFulfillmentTriggers;w.debugData.fulfillmentTriggerData=[];a=_.l(a);for(var Z=a.next();!Z.done;Z=a.next())w.debugData.fulfillmentTriggerData.push(i5x(Z.value));
W=W.slotExpirationTriggers;w.debugData.expirationTriggerData=[];W=_.l(W);for(a=W.next();!a.done;a=W.next())w.debugData.expirationTriggerData.push(i5x(a.value))}return w};
i5x=function(a,W){var w={type:a.triggerType};W!=null&&(w.category=W);a.triggeringSlotId!=null&&(w.triggerSourceData||(w.triggerSourceData={}),w.triggerSourceData.associatedSlotId=a.triggeringSlotId);a.triggeringLayoutId!=null&&(w.triggerSourceData||(w.triggerSourceData={}),w.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return w};
e1C=function(a,W,w,Z){W={opportunityType:W};a&&(Z||w)&&(Z=_.pY(Z||[],function(N){return cOS(a,N)}),W.debugData=Object.assign({},w&&w.length>0?{associatedSlotId:w}:{},Z.length>0?{slots:Z}:{}));
return W};
n0e=function(a){return B6(a.opportunityAdapterMap).concat(B6(a.triggerAdapterMap)).concat(B6(a.fulfillmentAdapterFactoryMap)).concat(B6(a.slotAdapterFactoryMap)).concat(B6(a.layoutRenderingAdapterFactoryMap))};
B6=function(a){var W=[];a=_.l(a.values());for(var w=a.next();!w.done;w=a.next())w=w.value,w.isAdsControlFlowEventListener&&W.push(w);return W};
Ia=function(a){var W=a.slotId,w=a.slotType,Z=a.slotPhysicalPosition;return W===void 0?new lL("Cannot construct a slot due to the missing id.",{adSlotMetadata:a}):w===void 0?new lL("Cannot construct a slot due to the missing type.",{adSlotMetadata:a}):Z===void 0?new lL("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:a}):{slotId:W,slotType:w,slotPhysicalPosition:Z,managerLayer:"external",adSlotLoggingData:a.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new jFe}};
LtS=function(a){var W=a.layoutId,w=a.layoutType;return W===void 0?new P6("Cannot construct a layout due to the missing id.",{adLayoutMetadata:a}):w===void 0?new P6("Cannot construct a layout due to the missing type.",{adLayoutMetadata:a}):{layoutId:W,layoutType:w,managerLayer:"external",adLayoutLoggingData:a.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new jFe,interactionLoggingAdsClientData:{}}};
JOS=function(a){if((a=a.value)&&a.querySelector("img")){var W=a.querySelector("img");W.addEventListener("error",function(){jKD(W.src).then(function(w){(w=_.Yf(w).toString())?W.src=w:W.removeAttribute("src")}).catch(function(){W.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
v6=function(a,W){if(W&&(Ftx(W.viewableCommand)||Ftx(W.endOfSessionCommand))){a=a.value;var w=MC8(W==null?void 0:W.viewableCommand);W=MC8(W==null?void 0:W.endOfSessionCommand);if(!XN){var Z=_.yv("active_view_tos_timeout_ms");XN=Z>0?new R1v(qCE(),Z):new R1v(qCE())}QFS(XN,a);xbF(XN,a,w,W)}};
gX=function(a){XN&&QFS(XN,a.value)};
qCE=function(){var a=_.LF("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(a==null?void 0:a.length)===2?a[1]:null};
Ftx=function(a){a=_.rJ(a);return!(a==null||!a.loggingUrls)&&a.loggingUrls.length>0};
MC8=function(a){if(!a)return[];var W=[],w,Z;((Z=(w=_.rJ(a))==null?void 0:w.loggingUrls)!=null?Z:[]).forEach(function(N){N.baseUrl&&W.push(N.baseUrl)});
return W};
b57=function(a){return a.shorts.isDesktopSmallWidth};
_.sFe=function(a){return a.shorts.isWatchWhileMode};
_.oa=function(a){return a.shorts.isFullscreen};
_.kB=function(a){return a.shorts.isShortsPipActive};
CXx=function(a){var W,w;if(a=(W=_.A(a.reelsAdCardButtoned,uFI))==null?void 0:(w=W.animatedRenderingConfig)==null?void 0:w.easeOutSeconds)return a+"s"};
DbF=function(a,W,w){return _.P(function(Z){return Z.return(new Promise(function(N){var B=new Image;B.onload=function(){N(new Goe(a,W,w,B.naturalWidth,B.naturalHeight))};
B.src=w.toString()}))})};
fzC=function(a,W){return Math.round(a/1E-5)===Math.round(W/1E-5)};
dbU=function(a,W){return Math.round(a/1E-5)===Math.round(W/1E-5)};
mbe=function(a,W){return a.year===W.year&&a.month===W.month&&a.day===W.day};
VCI=function(a,W){return a.year!==W.year?a.year<W.year:a.month!==W.month?a.month<W.month:a.day<W.day};
H5e=function(a){return a.day===z17(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}};
yOv=function(){var a=new Date,W={year:a.getFullYear(),month:a.getMonth(),day:a.getDate()};return{start:W,end:{year:a.getFullYear()+2,month:a.getMonth(),day:a.getDate()},selectedDate:H5e(W)}};
E0x=function(a){return(new Qb(2)).format(new Date(a.year,a.month,a.day))};
acC=function(a){return{year:a.getFullYear(),month:a.getMonth(),day:a.getDate()}};
WA8=function(a,W){a=(a+(Number(W.utcOffsetSec)+(new Date(a*1E3)).getTimezoneOffset()*60))*1E3;W=acC(new Date(a));return{date:W,secondsSinceMidnight:Math.floor((a-(new Date(W.year,W.month,W.day)).getTime())/1E3)}};
wmE=function(a,W){W=W.months.findIndex(function(w){return w.year===a.year&&w.month===a.month});
return W>=0?W:void 0};
ZLE=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(W){return!1}return ZLE(a.parentNode)};
Ua=function(a){return a?!(a.tagName!=="A"||!a.href||!a.classList.contains("yt-simple-endpoint")):!1};
N18=function(a){return a?a.tagName==="IMG"&&a.classList.contains("emoji"):!1};
tse=function(a,W,w){if(!a)return null;var Z=Ua(a);if(Z&&w)return W=a.pathname.substring(a.pathname.indexOf("/channel/")+9),document.createTextNode("@"+W);if(Z&&!w)return document.createTextNode("");if(N18(a))return w=a.alt,a=a.dataset.emojiId,!a&&W&&(W=_.Oa(W,w))&&W.isCustomEmoji&&(a=W.emojiId),a?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+a+">"):document.createTextNode(w);Z=a.cloneNode(!1);for(var N=0;N<a.childNodes.length;++N){var B=tse(a.childNodes[N],W,w);B&&Z.appendChild(B)}return Z};
Sr=function(a){return a?Ua(a)?a:Sr(a.lastChild):null};
$gC=function(a){return a?Ua(a)?a:$gC(a.firstChild):null};
B1I=function(a){if(!a)return null;for(var W=a.previousSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.previousSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.previousSibling;else break;(W=Sr(W))?a=W:a=(a=a.parentNode)?Sr(a.previousElementSibling):null;return a};
lcE=function(a){if(!a)return null;for(var W=a.nextSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.nextSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.nextSibling;else break;return(W=$gC(W))?W:lcE(a.parentNode)};
Icm=function(a){var W=_.YB(),w=W.JSC$9159_getStartNode();if(!ZLE(w.parentNode))return null;W=W.JSC$9159_getStartOffset();if(w.nodeType===Node.TEXT_NODE){var Z=_.LY(w,Ua);if(Z){if(a&&W===0||!a&&W===w.length)return Z}else{if(a&&W===w.length)return!w||w.nodeName==="BR"||w.nextElementSibling&&_.Tb(w.nextElementSibling,"display")==="block"?null:$gC(w.nextElementSibling);if(!a&&W===0)return w?Sr(w.previousElementSibling):null}}if(w.nodeType===Node.ELEMENT_NODE)if(a){if(0<=W&&W<w.childNodes.length)return $gC(w.childNodes[W])}else if(0<
W&&W<=w.childNodes.length)return Sr(w.childNodes[W-1]);return null};
P27=function(a,W,w){if(!a)return null;if(a.nodeType===Node.TEXT_NODE)if(w){var Z=B1I(a);if(Z&&!/^\s+\S/.test(a.wholeText.substr(0,W)))return Z}else if((Z=lcE(a))&&!/\S\s+/.test(a.wholeText.substr(W,a.wholeText.length)))return Z;return a.nodeType===Node.ELEMENT_NODE?w?B1I(a.childNodes[W]):lcE(a.childNodes[W]):P27(a.parentNode,W,w)};
Xm7=function(a){if(a.hasChildNodes())switch(a.tagName){case "DIV":case "A":case "SPAN":var W="";for(a=a.firstChild;a;a=a.nextSibling)W+=Xm7(a);return W;default:return""}else switch(a.nodeType){case 3:return a.textContent;default:return""}};
Kw=function(a,W){return a.year===W.year&&a.month===W.month&&a.day===W.day};
pw=function(a,W){return a.year!==W.year?a.year<W.year:a.month!==W.month?a.month<W.month:a.day<W.day};
vue=function(a){return{year:a.getFullYear(),month:a.getMonth(),day:a.getDate()}};
guC=function(a){var W=N9C;W=W===void 0?N9C:W;W(new Date(a.year,a.month,a.day))};
rX=function(a){return vue(new Date(Number(a.seconds)*1E3))};
ouI=function(a){return a.year!==void 0&&a.month!==void 0&&a.day!==void 0};
kJH=function(a){return a.start!==void 0&&a.end!==void 0};
UgI=function(a){return kJH(a)?a.start:a};
OL7=function(a){return kJH(a)?a.end:void 0};
Yem=function(a,W){for(var w=[],Z=new Date(a.start.year,a.start.month);Z.getFullYear()<a.end.year||Z.getFullYear()===a.end.year&&Z.getMonth()<=a.end.month;){var N=w,B=N.push,I=Z.getFullYear(),X=Z.getMonth(),v=a,U=W,O=void 0,S=[],T=Object.freeze({extraCssClass:"invisible"}),p=new Date(I,X),h=vue(p);p=p.getDay();for(var L=vue(new Date);h.month===X;){p!==SeD&&O||(O=Array.from({length:7}).fill(T),S.push(O));var F={date:{year:I,month:X,day:h.day},extraCssClass:"",debugClass:""};F.extraCssClass=U(F.date,
h,L,v).trim();O[(p-SeD+7)%7]=F;h=h.day===z17(h.year,h.month)?h.month===11?{year:h.year+1,month:0,day:1}:{year:h.year,month:h.month+1,day:1}:{year:h.year,month:h.month,day:h.day+1};p=(p+1)%7}B.call(N,{weeks:S,monthLabel:Ay.SHORTMONTHS[X]+" "+I,year:I,month:X,monthLabelExtraCssClass:S[0][2]===T?"shift-down-label":""});Z.setMonth(Z.getMonth()+1)}return w};
T1v=function(a,W){W=W.months.findIndex(function(w){return w.year===a.year&&w.month===a.month});
return W>=0?W:void 0};
pmx=function(a,W){a:{var w=w===void 0?[2,3]:w;w=_.l(w);for(var Z=w.next();!Z.done;Z=w.next()){var N=new Date;if((new KAH(Z.value)).parse(W,N,{validate:!0})){N.setHours(0,0,0,0);W=N;break a}}W=null}if(!W)return{isValid:!1,value:void 0};W=vue(W);w=a.end;return pw(W,a.start)||pw(w,W)?{isValid:!1,value:void 0}:{isValid:!0,value:W}};
c5v=function(a){var W=r5e;W=W===void 0?A5e:W;var w=a.columnsToShow||[],Z=hJ7(a.columnDimensions,a.columnsToShow,a.leftFloatingColumns,W);return w.map(function(N,B){var I=a.columns[N];if(I===void 0)throw Error("Mh");var X=Z?Z[B]:"";var v=a.getCustomTooltip?a.getCustomTooltip(N,I.headerTooltipParagraphs):I.headerTooltipParagraphs;var U=iLe(a,N);return{type:N,index:B,style:X,classes:U,headerName:I.headerName||"",headerIcon:I.headerIcon,headerTooltipParagraphs:v||[],headerTooltipHelpContext:I.headerTooltipHelpContext,
sortOrders:I.sortOrders||[],selectionState:I.isSelectionCheckbox?a.selectionState:void 0}})};
iLe=function(a,W){var w=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],Z=a.columns[W];if(Z===void 0)return"";var N=w.includes("DEFAULTS")&&Z.cssClass?[Z.cssClass]:[];if(w.includes("SORTING")){Z.sortOrders&&Z.sortOrders.length&&N.push("sortable");if(a.sorting&&a.sorting.columnType===W)a:switch(a.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var B="column-sorted";break a;default:B=""}else B="";B&&N.push(B)}w.includes("FLOATING")&&(W=a.columnsToShow.indexOf(W),a.leftFloatingColumns&&W<a.leftFloatingColumns&&
N.push("floating-column"),a.leftFloatingColumns&&W===a.leftFloatingColumns-1&&N.push("last-floating-column"));w.includes("RIGHT_ALIGN")&&Z.rightAlignHeader&&N.push("right-align");return N.filter(function(I){return I}).join(" ")};
hJ7=function(a,W,w,Z){w=w===void 0?0:w;Z=Z===void 0?A5e:Z;if(a){var N=[],B=0;eJx(a,W,Z).forEach(function(I,X){var v="min-width:"+I.minWidth+"px;padding-left:"+I.paddingLeft+"px;padding-right:"+I.paddingRight+"px;flex:"+I.flexGrow+" 0 "+I.minWidth+"px;";I.maxWidth!==Infinity&&(v=[v,"max-width:"+I.maxWidth+"px;"].join(""));B>0&&X<w&&(v=[v,"left:"+B+"px;"].join(""));N.push(v);B+=I.minWidth+I.paddingLeft+I.paddingRight});
return N}};
eJx=function(a,W,w){w=w===void 0?A5e:w;return W.map(function(Z,N){Z=a&&a[Z]||{};var B=N===0?w.paddingLeftFirstColumn:w.padding;Z.paddingLeft!==void 0&&(B=Z.paddingLeft);N=N===W.length-1?w.paddingRightLastColumn:w.padding;Z.paddingRight!==void 0&&(N=Z.paddingRight);return{paddingLeft:B,paddingRight:N,minWidth:Z.minWidth!==void 0?Z.minWidth:w.minWidth,maxWidth:Z.maxWidth!==void 0?Z.maxWidth:w.maxWidth,flexGrow:Z.flexGrow!==void 0?Z.flexGrow:w.flexGrow}})};
nuD=function(a){var W=a.reduce(function(Z,N){var B=N.columnId,I={};N.headerText&&(I.headerName=_.sd(N.headerText));N.rightAlignHeader&&(I.rightAlignHeader=N.rightAlignHeader);var X;if((X=N.headerIcon)==null?0:X.iconType)I.headerIcon=_.EN(N.headerIcon.iconType);Z[B]=I;return Z},{}),w=a.filter(function(Z){return!Z.hideColumn}).map(function(Z){return Z.columnId});
a=a.filter(function(Z){return!!Z.dimensions}).reduce(function(Z,N){Z[N.columnId]=N.dimensions;
return Z},{});
return{columns:W,columnsToShow:w,columnDimensions:a}};
_.jpm=function(a){return a?a.simpleText?a.simpleText:a.runs?a.runs.map(function(W){return W.text}).join(""):"":""};
RJC=function(a){var W=a.data;var w=a.onTap;var Z=a.isSelected;var N=a.onFocusIn;if(!W)return{};a=LAv(W);Z===void 0&&(Z=W==null?void 0:W.isSelected);var B;return{text:J58(W,a),startIcon:(B=W.icon)==null?void 0:B.iconType,state:Z?0:2,type:0,onTap:FAS(W,w),accessibilityLabel:MsC(W,a),onFocusIn:function(){return N==null?void 0:N()}}};
J58=function(a,W){if(!W)return a.text?_.jpm(a.text):void 0};
FAS=function(a,W){return function(w){W==null||W(w,a)}};
LAv=function(a){a=a.style&&a.style.styleType;return!qeH&&a==="STYLE_EXPLORE_LAUNCHER_CHIP"};
MsC=function(a,W){if(W){var w,Z,N;return(N=(w=a.accessibilityData)==null?void 0:(Z=w.accessibilityData)==null?void 0:Z.label)!=null?N:J58(a,!1)}};
hy=function(a){return{signalAction:{signal:a}}};
bLU=function(){return _.LF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Qp9:_.xgv};
sp9=function(a,W){a=a===void 0?"SOFT_RELOAD_PAGE":a;W=W===void 0?49504:W;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.zG(_.P_("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:W}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:a}}]}}}};
ulC=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.zG(_.P_("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:bLU()}};
C2D=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.zG(_.P_("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:bLU()}};
GJH=function(a,W){var w=_.zG(_.P_("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),Z=_.zG(_.P_("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),N={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.zG(_.P_("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};N.serviceEndpoint=a?a:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[hy("SOFT_RELOAD_PAGE")]}};return{title:w,bodyText:Z,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:N},
style:{value:W!=null?W:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
fc7=function(a){a=a===void 0?{}:a;return{title:_.zG(a.localizedZeroStateTitleText===void 0?"":a.localizedZeroStateTitleText),bodyText:_.zG(a.localizedZeroStateMessage===void 0?"":a.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.zG(a.localizedZeroStateButtonText===void 0?"":a.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[DgC]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.VsC=function(a,W,w,Z,N,B,I,X){Z=Z===void 0?!1:Z;N=N===void 0?!1:N;B=B===void 0?0:B;I=I===void 0?-Infinity:I;X=X===void 0?!1:X;var v=[],U=_.zG(_.P_("SMART_DOWNLOADS",void 0,"Smart downloads"));I=_.zG(dgS(B,I,a.length));B=void 0;Z?B=a.length>0?mgx(a,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.r("kevlar_manual_downloads_above"),U,I):X?{alertBannerViewModel:{heading:{content:w.localizedOptInBannerTitleText===void 0?"":w.localizedOptInBannerTitleText},body:{content:w.localizedPromptMessage===
void 0?"":w.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.P_("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.P_("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:_.T78}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.zG(_.P_("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"}}}:N&&(B={alertBannerViewModel:{heading:{content:w.localizedOptInBannerTitleText===void 0?"":w.localizedOptInBannerTitleText},body:{content:w.localizedOptInMessage===
void 0?"":w.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.P_("TURN_ON",void 0,"Turn on"),accessibilityText:_.P_("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}}}}}});w=_.zG(_.P_("YOUR_DOWNLOADS",void 0,"Your downloads"));N=void 0;W.length>0?(N=void 0,_.r("kevlar_display_downloads_numbers")&&(N=_.zG(_.Xz("VIDEO_COUNT",W.length))),N=mgx(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,w,N)):Z||a.length||(N={backgroundPromoRenderer:{bodyText:_.zG(_.P_("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}}}});B&&!_.r("kevlar_manual_downloads_above")&&v.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:139572}}}});N&&v.push({richSectionRenderer:{content:N,loggingDirectives:{clientVeSpec:{uiType:51721}}}});B&&_.r("kevlar_manual_downloads_above")&&v.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(W.length>0||Z&&a.length>0)&&v.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.zG(_.P_("DOWNLOADS_AVAILABILITY",
void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:v}};
_.HLS=function(a){return zJ8(a,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.y57=function(a){return zJ8(a,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
zJ8=function(a,W){var w=[];a=mgx(a,W,!0);w.push({richSectionRenderer:{content:a}});return{contents:w}};
mgx=function(a,W,w,Z,N){w=w===void 0?!1:w;a={isExpanded:w,contents:iL(a),entitySelectorType:W};Z&&(a.title=Z);N&&(a.subtitle=N);w||(_.r("kevlar_smart_downloads_show_more_button")?(a.showMoreButton={buttonRenderer:{accessibility:{label:_.P_("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.zG(_.P_("SHOW_MORE",void 0,"Show more"))}},a.showLessButton={buttonRenderer:{accessibility:{label:_.P_("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.zG(_.P_("SHOW_LESS",void 0,"Show less"))}}):(a.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.P_("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:_.P_("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:_.P_("VIEW_ALL",void 0,"View all"),accessibilityText:_.P_("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:mX("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:a}};
iL=function(a){var W=[];a=_.l(a);for(var w=a.next();!w.done;w=a.next())if(w=w.value,woE(w)){var Z=W,N=Z.push;var B=void 0;if(w==null?0:(B=w.videoEntity)==null?0:B.videoId){B=jy(_.Cx().getState(),w.videoEntity.videoId);var I=_.Cx().getState();var X=_.Nn(w.videoEntity.videoId,"mainVideoEntity");I=!!_.Yp(I.entities)[X];I={videoId:w.videoEntity.videoId,title:H_(w.videoEntity.title),shortBylineText:H_(w.channelEntity.title),thumbnail:w.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:I&&_.r("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:wnI(w.videoEntity.videoId,B,w.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.P_("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};w.videoEntity.lengthSeconds&&(I.thumbnailOverlays=rcI(w.videoEntity.lengthSeconds,B));I.isWatched=B>0;_.r("kevlar_modern_downloads_page")&&(I.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:w.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.P_("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},I.badges=void 0);w=I}else w={};N.call(Z,{richItemRenderer:{content:{videoRenderer:w},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(WFU(w)){Z=W;N=Z.push;var v=X=B=void 0,U=void 0,O=void 0,S=void 0,T=void 0,p=void 0,h=void 0,L=void 0,F=void 0,x=void 0;I=w.mainPlaylistEntity.playlistId;var G=w==null?void 0:(x=w.mainPlaylistEntity)==null?void 0:(F=x.thumbnailStyleData)==null?void 0:(L=F[0])==null?void 0:(h=L.value)==null?void 0:(p=h.collageThumbnail)==
null?void 0:p.coverThumbnail;if(I&&G){p=ZUE(I);!_.r("enable_offline_playlist_page")&&(w==null?0:(T=w.mainPlaylistEntity)==null?0:T.videos)&&(T=w==null?void 0:(S=w.mainPlaylistEntity)==null?void 0:(O=S.videos)==null?void 0:O[0],O=_.WJ(T).entityId,O=JSON.parse(O).videoId,O!==void 0&&(S=jy(_.Cx().getState(),O),p=_.Vw(O,I,void 0,void 0,S)));O=[];if(w==null?0:(U=w.mainPlaylistEntity)==null?0:(v=U.videos)==null?0:v.length)O=[ZBF(),Object.assign({},(X=wEe(w==null?void 0:w.mainPlaylistEntity.videos.length))!=
null?X:{})];w={playlistId:I,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:G}},navigationEndpoint:p,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:O,title:H_(w.mainPlaylistEntity.title),shortBylineText:H_(w==null?void 0:(B=w.channelEntity)==null?void 0:B.title),badges:[{metadataBadgeRenderer:{label:_.P_("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.r("kevlar_modern_downloads_page")&&(w.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:Eu7,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:I,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.P_("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},w.badges=void 0)}else w=void 0;N.call(Z,{richItemRenderer:{content:{playlistRenderer:w},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return W};
dgS=function(a,W,w){a=a?aNv(a):"";W!==void 0&&isFinite(W)?W===0?W=_.P_("UPDATING",void 0,"Updating..."):(W=pEC(new Date(W),new Date),W=_.P_("UPDATED_TIME",{relative_time:W},"Updated "+W)):W="";var Z="";a&&W&&(Z=" \u2022 ");if(w&&_.r("kevlar_display_downloads_numbers")){w=_.Xz("VIDEO_COUNT",w);if(a||W)Z=" \u2022 ";return w+Z+a+Z+W}return a+Z+W};
W2S=function(a){return d7e(a.entities).length};
_.wVv=function(a,W){var w=t$8(a.responsiveSize),Z;a=!((Z=a.responsiveMap)==null||!Z.some(function(N){return N.containerSize==="CONTAINER_SIZE_NARROW"&&N.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:W,sizing:w,enableFullBleedForSingleCol:!1,isCompactList:w==="COMPACT"&&a}};
ZyU=function(a,W){return _.tG(a.entities,"votingEntity",W)};
NpF=function(a){if(a){var W;return((W=_.K().resolve(_.Vv(_.Lt)))==null?0:W())?a.darkTheme:a.lightTheme}};
tcm=function(a,W,w){return _.k(_.Ha,null,LB9(w,[[0,function(){return _.k("h2",{class:W},a)}],
[1,function(){return _.k("h3",{class:W},a)}],
[2,function(){return _.k("h4",{class:W},a)}]],function(){return _.k("h2",{class:W},a)}))};
$e9=function(a){var W=["shelf-header-layout-wiz"];a.disableHorizontalPadding&&W.push("shelf-header-layout-wiz--disable-horizontal-padding");a.disableVerticalPadding&&W.push("shelf-header-layout-wiz--disable-vertical-padding");a.useResponsiveLayout&&(W.push("shelf-header-layout-wiz--responsive"),a.forceSmallLayout&&W.push("shelf-header-layout-wiz--narrow"));a.isOverlay&&W.push("shelf-header-layout-wiz--is-overlay");a.onClick&&W.push("shelf-header-layout-wiz--tappable");var w=["shelf-header-layout-wiz__title"];
a.forceSmallLayout&&w.push("shelf-header-layout-wiz__title--small-title");var Z=["shelf-header-layout-wiz__leading-image"];a.circularImage&&Z.push("shelf-header-layout-wiz__leading-image--circular-image");var N=_.$_(function(U){var O;(O=a.onClick)==null||O.call(a,U)}),B,I,X,v;
return _.k("yt-shelf-header-layout",{class:W.join(" "),"on:click":N,tabindex:a.onClick?0:void 0},a.leadingIcon?_.k("div",{class:"shelf-header-layout-wiz__leading-icon"},_.k(_.P$,{icon:a.leadingIcon})):a.hasLeadingImage?_.k("div",{class:Z.join(" ")},(B=a.leadingImage)==null?void 0:B.call(a)):_.k(_.Ha,null),_.k("div",{class:"shelf-header-layout-wiz__label-container"},a.hasSuperlabel?_.k("div",{class:"shelf-header-layout-wiz__superlabel"},(I=a.superlabel)==null?void 0:I.call(a)):_.k(_.Ha,null),_.k("div",
{class:"shelf-header-layout-wiz__title-row"},tcm(a.title(),w.join(" "),a.tagLevel),uJ(a.hasDetail,function(){var U;return _.k("div",{class:"shelf-header-layout-wiz__detail"},(U=a.detail)==null?void 0:U.call(a))})),a.hasSublabel?_.k("div",{class:"shelf-header-layout-wiz__sublabel"},(X=a.sublabel)==null?void 0:X.call(a)):_.k(_.Ha,null)),a.hasTrailingActions?_.k("div",{class:"shelf-header-layout-wiz__trailing-actions"},(v=a.trailingActions)==null?void 0:v.call(a)):_.k(_.Ha,null))};
Bp7=function(a){var W=_.A(a==null?void 0:a.avatar,_.fj),w,Z=(w=a==null?void 0:a.image)!=null?w:_.He(a==null?void 0:a.themedImage);return _.k(_.Ha,null,uJ(Z,function(){return _.k(_.qw,{data:Z,alt:"",preserveWidth:!0,preserveHeight:!0})}),uJ(W,function(){return _.k(_.c6,{data:W})}))};
PUm=function(a){var W=_.A(a.bottomBadge,lNe),w=W&&a.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.k(_.Ha,null,uJ(W,function(){return W&&_.k(INU,{data:W,class:w})}),uJ(a.sublabel,function(){return _.k(_.k_,{text:a.sublabel})}))};
XVD=function(a){var W=_.A(a.topBadge,lNe),w=W&&a.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.k(_.Ha,null,uJ(W,function(){return W&&_.k(INU,{data:W,class:w})}),uJ(a.superlabel,function(){return _.k(_.k_,{text:a.superlabel})}))};
o9F=function(a){var W=a.data;var w=a.disableHorizontalPadding;var Z=a.disableVerticalPadding;var N=a.forceSmallLayout;var B=a.useResponsiveLayout;a=a.isOverlay;var I=W.sublabel||W.bottomBadge,X=W.superlabel||W.topBadge,v=_.sB(W.rendererContext);w={hasDetail:!1,title:function(){return _.k(_.k_,{text:W.headline})},
hasTitle:!0,sublabel:I&&function(){return PUm(W)},
hasSublabel:!!I,superlabel:X&&function(){return XVD(W)},
hasSuperlabel:!!X,leadingImage:W.leadingAccessory&&function(){return Bp7(W.leadingAccessory)},
hasLeadingImage:!!W.leadingAccessory,trailingActions:W.trailingActions&&function(){return _.k(_.Ha,null,v9I(W.trailingActions))},
hasTrailingActions:!!W.trailingActions,disableHorizontalPadding:w,disableVerticalPadding:Z,forceSmallLayout:N,useResponsiveLayout:B,isOverlay:a,onClick:v?function(U){var O=_.bK(W.rendererContext);O&&_.AQ(O,{form:{element:U.target,event:U}})}:void 0};
Z=(Z=NpF(W==null?void 0:W.backgroundColor))?"background-color: "+_.pC(Z)+";":void 0;return _.k("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:Z},_.k(g9m,Object.assign({},w)))};
kEm=function(a,W){if(a.simpleText)return Object.assign({},a,{simpleText:nt(a.simpleText,W)});if(!a.runs)return a;for(var w=Object.assign({},a,{runs:[]}),Z=0,N=_.l(a.runs),B=N.next();!B.done;B=N.next())if(B=B.value,B.text)if(Z+B.text.length<=W)w.runs.push(B),Z+=B.text.length;else return w.runs.push(Object.assign({},B,{text:nt(B.text,W-Z)})),w;return a};
UeF=function(a,W){return _.tG(a.entities,"chipBarStateEntity",W)};
Oyv=function(a,W){return _.tG(a.entities,"chipEntity",W)};
YkU=function(a,W,w,Z){return function(){var N=Sk7.has(a.displayType)&&a.selected,B=N&&a.deselectCommand?a.deselectCommand:a.tapCommand;!B||N&&Z||_.cX(B,{form:{element:W==null?void 0:W.value}});w==null||w()}};
Tp8=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""}};
K29=function(a,W){return{triggeringElement:a,onDwellTriggeredFn:function(){var w={triggeringElement:a,loadVideoPreviewEventData:W},Z=document.querySelector(".video-preview");Z&&Z.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:w}))},
onDwellEndFn:function(){var w=document.querySelector(".video-preview");w&&w.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
pVe=function(a,W){var w=_.K().resolve(_.Vv(uov)),Z=function(){var N=W();return w&&N?K29(a.value,N):null};
_.Ka(function(){var N=Z();w&&N&&Promise.resolve().then(function(){w.registerElement(N)});
_.Ao(function(){w&&N&&Promise.resolve().then(function(){w.unregisterElement(N)})})})};
AaI=function(a){var W=a.dataset.resizeObserverId;if(W)return W;W=""+ra9++;return a.dataset.resizeObserverId=W};
hkI=function(a,W){var w=AaI(a);er.has(w)||er.set(w,new Set);er.get(w).add(W);nw.has(w)&&W(Object.assign({},{target:a},nw.get(w)))};
iyH=function(a){a=_.l(a);for(var W=a.next();!W.done;W=a.next()){W=W.value;var w=AaI(W.target),Z=Object.assign({},{target:W.target},nw.get(w));if(Z!=null&&Z.contentRect?Z.contentRect.width!==W.contentRect.width||Z.contentRect.height!==W.contentRect.height:1)for(nw.set(w,{borderBoxSize:W.borderBoxSize,contentBoxSize:W.contentBoxSize,contentRect:W.contentRect,devicePixelContentBoxSize:W.devicePixelContentBoxSize}),w=_.l(er.get(w)||[]),Z=w.next();!Z.done;Z=w.next())Z=Z.value,Z(W)}};
ek7=function(){return jr?jr:jr=new ca7(iyH)};
n9S=function(a,W){var w=AaI(a);er.has(w)&&(er.get(w).delete(W),er.get(w).size===0&&(er.delete(w),nw.delete(w),jr.unobserve(a),delete a.dataset.resizeObserverId));er.size===0&&jr&&(jr.disconnect(),jr=void 0)};
L2e=function(a,W){var w=_.K().resolve(HZ);return j_9.map(function(Z){return w.observe(a,W,Z)})};
Jam=function(a){var W=_.K().resolve(HZ);a.forEach(function(w){W.unobserveByKey(w)})};
_.Rkv=function(a,W){var w=Object.assign({},F2v,W);W=_.l(s0E());var Z=W.next().value,N=W.next().value,B=function(I){var X=I.contentRect.height;if((I=I.contentRect.width)||X||w.canHaveZeroSize)Z.width()===I&&Z.height()===X||N(Z,{height:X,width:I})};
_.AS(function(){var I=a instanceof HTMLElement?a:a.value,X=McC(B,w.throttleMs),v=[];w.useVisibilityObserver&&(v=L2e(I,function(U,O){requestAnimationFrame(function(){O==="visible"?(hkI(I,X),ek7().observe(I)):n9S(I,X)})}));
v.length||(hkI(I,X),ek7().observe(I));_.Ao(function(){v.length&&(Jam(v),v.length=0);n9S(I,X)})});
return Z};
Q_D=function(a){var W=a.data;var w=a.callback;var Z=a.enableSingleChipSelection;var N=a.disableChipsScrollAnimation;var B=_.D8(),I=cS(!1),X=cS(0);a={};a=_.l($D(W.autoselectedChipIndex!=null?(a[W.autoselectedChipIndex]=!0,a):{}));var v=a.next().value,U=a.next().value,O=function(){var Am=B.value;return Am==null||Am.scrollLeft-1<=0},S=function(){var Am=B.value;
return Am==null?!1:Am.scrollLeft+1>=(Am==null?NaN:Am.scrollWidth)-(Am==null?NaN:Am.clientWidth)};
a=_.l($D(O()));var T=a.next().value,p=a.next().value;a=_.l($D(S()));var h=a.next().value,L=a.next().value;a=W.isHorizontallyScrollable;var F=function(Am){B.value!=null&&(_.LF("HTML_DIR")==="rtl"&&(Am=-Am),B.value.scrollBy({left:Am,behavior:N?"instant":"smooth"}))},x=function(){F(-320)},G=function(){F(320)},V=_.$_(function(Am){I.value=!0;
X.value=Am.clientX}),d=_.$_(function(Am){if(I.value){Am=Am.clientX;
var e9=Am-X.value;X.value=Am;B.value.scrollBy({left:-e9})}}),ZD=_.$_(function(){var Am=O(),e9=S();
Am!==T&&p(Am);e9!==h&&L(e9)});
zP("pointerup",function(){I.value&&(I.value=!1)});
var aC={},Bv={};return _.k("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},uJ(W.title,function(){return _.k("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.k("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},W.title),qkE(W.overflowButton))}),_.k("div",{class:"ytChipsShelfViewModelChipsShelfContent"},uJ(W.previousButton!=null,function(){var Am={};
return _.k("div",{class:_.ZK("ytChipsShelfViewModelLeftArrowContainer",(Am.ytChipsShelfViewModelLeftArrowContainerIsHidden=T,Am))},qkE(W.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:x}}))}),_.k("div",{el:B,
"on:pointerdown":V,"on:pointermove":d,"on:scroll":ZD,class:_.ZK("ytChipsShelfViewModelChipsScrollContainer",(aC.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!a,aC))},_.k("div",{class:_.ZK("ytChipsShelfViewModelChipsContainer",(Bv.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!a,Bv.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!a&&!1,Bv))},(W.contents||[]).map(function(Am,e9){return _.k("div",{class:"ytChipsShelfViewModelChipWrapper"},
qkE(Am,{chipViewModel:{callback:function(cv,C7){if(Z){var RC={};U((RC[e9]=C7,RC))}else RC={},U(Object.assign({},v,(RC[e9]=C7,RC)));w==null||w(cv,C7,e9)},
disableDeselection:Z,selected:!!v[e9]}}))}))),uJ(W.nextButton!=null,function(){var Am={};
return _.k("div",{class:_.ZK("ytChipsShelfViewModelRightArrowContainer",(Am.ytChipsShelfViewModelRightArrowContainerIsHidden=h,Am))},qkE(W.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:G}}))})))};
xeE=function(){return qeH&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true"};
byv=function(a,W){if(!((W==null?0:W.entitySelectorType)&&(W==null?0:W.entityKey)))return{};switch(W.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return a=_.Y4C(a,W.entityKey),a=a==null?void 0:a.value,W=!1,a==="CAPTIONS_UNAVAILABLE"&&(W=!0,a=""),Object.assign({},!!a&&{selectionText:{content:a}},{isSelected:!!a},!!a&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:W});default:return{}}};
uA7=function(a,W,w,Z,N){a=W?a.switchOffCommand:a.switchOnCommand;if(Z&&N)s_I(a,w,N);else{var B,I;(B=_.hQ({elementsCommand:a}))==null||(I=B.onclick)==null||I.call(B,w)}};
s_I=function(a,W,w){a=_.hQ({elementsCommand:a,additionalCommandArgs:{commandController:{onSuccess:function(){w(!1)},
onServerError:function(){w(!1)}}}});
if(a==null?0:a.onclick)a.onclick(W),w(!0)};
GEI=function(a){if(a)return _.A(a,CUI)};
De8=function(a){a=a.selectElementClass;var W={};a=_.ZK("checkbox-shape-wiz__checkbox",a,(W["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!a,W));return _.k("div",{class:a,"aria-hidden":"true"},_.k(_.P$,{icon:_.r("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.k(_.P$,{icon:_.r("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))};
fNI=function(a){var W=a.name;var w=a.onChange;var Z=a.onClick;var N=a.checked===void 0?!1:a.checked;var B=a.labelRenderable;var I=a.hasLeadingLabel;var X=a.labelClass;var v=a.isCompact;var U=a.selectElementClass;var O=a.disableHorizontalPadding;a="checkbox"+_.Lw(_.Jy);var S=_.D8(),T=_.$_(function(L){Z==null||Z(L);return!1}),p=_.$_(function(L){S.value.checked=N;
w==null||w(L);return!1}),h={};
X=_.ZK("checkbox-shape-wiz",X,(h["checkbox-shape-wiz--compact"]=!!v,h["checkbox-shape-wiz--disable-horizontal-padding"]=!!O,h));return _.k("checkbox-shape",null,_.k("label",{class:X},_.k("input",{el:S,class:"checkbox-shape-wiz__input",id:a,checked:N,name:W,type:"checkbox","on:change":p,"on:click":T}),uJ(!I,function(){return De8({isLeading:!0,selectElementClass:U})}),uJ(B,function(){return _.k("div",{class:"checkbox-shape-wiz__label"},B==null?void 0:B())}),uJ(I,function(){return De8({isLeading:!1,
selectElementClass:U})})))};
dee=function(a){var W=a.useCheckIcon===void 0?!1:a.useCheckIcon;var w=a.selectElementClass;a=W?"CHECK":"CIRCLE";var Z="",N=_.r("radio_shape_filled_icon_manual_setting_killswitch");N&&(Z=W?"CHECK":"CIRCLE_FILLED");var B={};w=_.ZK("radio-shape-wiz__radio",w,(B["radio-shape-wiz__radio--check-icon"]=!!W,B["radio-shape-wiz__radio--radio-default-style"]=!w,B));return N?_.k("div",{class:w,"aria-hidden":"true"},_.k(_.P$,{icon:a}),_.k(_.P$,{icon:Z,active:!W})):_.k("div",{class:w,"aria-hidden":"true"},_.k(_.P$,
{icon:a}),_.k(_.P$,{icon:a,active:!W}))};
me9=function(a){function W(){var d;((d=_.K().resolve(_.Vv(_.S4)))==null?0:d.isKeyBoardInUse())&&F.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function w(){F.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var Z=a.name;var N=a.onChange;var B=a.onClick;var I=a.checked===void 0?!1:a.checked;var X=a.labelRenderable;var v=a.useCheckIcon;var U=a.hasLeadingLabel;var O=a.labelClass;var S=a.isCompact;var T=a.selectElementClass;var p=a.ariaLabel;var h=a.className;a=iG(function(){return"radio"+_.Lw(_.Jy)});
var L=_.D8(),F=_.D8(),x=_.$_(function(d){L.value.checked=I;N==null||N(d);return!1}),G=_.$_(function(d){B==null||B(d);
return!1}),V=["radio-shape-wiz"];
h&&V.push(h);h={};O=_.ZK("radio-shape-wiz__label-container",O,(h["radio-shape-wiz--compact"]=!!S,h));TU(function(){document.activeElement===L.value&&W()});
_.AS(function(){var d=L.value;d.addEventListener("focusin",W);d.addEventListener("focusout",w);return function(){d.removeEventListener("focusin",W);d.removeEventListener("focusout",w)}});
return _.k("radio-shape",{class:V.join(" ")},_.k("input",{el:L,class:"radio-shape-wiz__input",id:a,"prop:checked":I,name:Z,type:"radio","on:change":x,"on:click":G,"aria-label":p}),_.k("label",{class:O,for:a,el:F},uJ(!U,function(){return dee({checked:I,useCheckIcon:v,isLeading:!0,selectElementClass:T})}),uJ(X,function(){return _.k("div",{class:"radio-shape-wiz__label",
"aria-hidden":p?"true":"false"},X==null?void 0:X())}),uJ(U,function(){return dee({checked:I,
useCheckIcon:v,isLeading:!1,selectElementClass:T})})))};
VcD=function(a,W){return!!(W&&(a.leadingImage||a.leadingAccessory)||!W&&(a.trailingImage||a.trailingButton||a.trailingButtons||a.selectionText))};
yaF=function(a){var W=a.data;var w=a.isLeading;var Z=a.hideSelectionTextChevron;if(VcD(W,w)){var N=_.ZK("yt-list-item-view-model-wiz__button-container");a={};var B=_.ZK("yt-list-item-view-model-wiz__image-container",(a["yt-list-item-view-model-wiz__leading"]=w,a["yt-list-item-view-model-wiz__trailing"]=!w,a)),I=w?W.leadingImage:W.trailingImage,X=_.ZK("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");a={};var v=_.ZK("yt-list-item-view-model-wiz__accessory",(a["yt-list-item-view-model-wiz__leading"]=
w,a["yt-list-item-view-model-wiz__trailing"]=!w,a)),U=!!W.selectionText,O=zk9(W.listItemIconAfterSelectionText);return function(){var S;return _.k(_.Ha,null,uJ(I,function(){return _.k("div",{class:B,"aria-hidden":"true"},_.k(_.qw,{data:I,alt:"",preserveWidth:!0,preserveHeight:!0,className:X}))}),uJ(w&&W.leadingAccessory,function(){return _.k("div",{class:B},Hy9(W.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:X}}))}),uJ(!w&&W.trailingButton,function(){return _.k("div",{class:N},Hy9(W.trailingButton,
{buttonViewModel:{className:v}}))}),uJ(!w&&((S=W.trailingButtons)==null?void 0:S.buttons),function(){var T;
return _.k("div",{class:N},Hy9((T=W.trailingButtons)==null?void 0:T.buttons,{buttonViewModel:{className:v},accountLinkButtonViewModel:{className:v},switchButtonViewModel:{className:v},subscribeButtonViewModel:{className:v,isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:v}}))}),uJ(!w&&U,function(){return _.k(_.Ha,null,_.k(_.k_,{text:W.selectionText,
className:_.ZK("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),uJ(!Z,function(){return _.k(_.P$,{icon:O,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
zk9=function(a){switch(a){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":return"expand_more";default:return"chevron_right"}};
E98=function(a){return a.title||a.subtitle?function(){return _.k("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.k("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},uJ(a.title,function(){return _.k(_.k_,{text:a.title,className:"yt-list-item-view-model-wiz__title"})})),uJ(a.subtitle,function(){return _.k(_.k_,{text:a.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.k(_.Ha,null)}};
wFv=function(a){function W(){var C7;((C7=_.K().resolve(_.Vv(_.S4)))==null?0:C7.isKeyBoardInUse())&&ZD.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function w(){ZD.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var Z=a.data;var N=a.isMenuItem;var B=a.isCompact;var I=a.onTap;var X=a.trailingAccessory;var v=a.hideSelectionTextChevron;var U=a.disabled;var O=a.inPopup;var S=a.disableHorizontalPadding;var T=a.isOverlay;a=hQe(function(C7){return byv(C7,Z)});
var p=_.r("enable_web_shorts_captions_language_command")?Object.assign({},Z,a):Z;a=!(p.isSelected===void 0||!p.selectionStyle||p.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var h=(_.sB(p.rendererContext)||I)&&!a,L=_.sB(p.rendererContext)||a;U=!!p.isDisabled||!!U;var F={};T=_.ZK("yt-list-item-view-model-wiz",(F["yt-list-item-view-model-wiz--is-overlay"]=!!T,F));F={};var x=_.ZK("yt-list-item-view-model-wiz__label",(F["yt-list-item-view-model-wiz__container"]=!a,F["yt-list-item-view-model-wiz__container--disabled"]=
U,F["yt-list-item-view-model-wiz__container--has-subtitle"]=!!p.subtitle,F["yt-list-item-view-model-wiz__container--compact"]=!!B,F["yt-list-item-view-model-wiz__container--tappable"]=h,F["yt-list-item-view-model-wiz__container--in-popup"]=!!O,F));U={};U=_.ZK("yt-list-item-view-model-wiz__container",(U["yt-list-item-view-model-wiz__container--tappable"]=L,U["yt-list-item-view-model-wiz__container--compact"]=!!B,U["yt-list-item-view-model-wiz__container--in-popup"]=!!O,U["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!S,U));F=p.leadingImage||p.leadingAccessory;var G=_.ZK("yt-list-item-view-model-wiz__image-container",F?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),V=_.r("apply_button_role_to_list_item");O=_.D8();var d=_.D8(),ZD=V?d:O,aC=function(){var C7,RC,G8;return _.k(_.Ha,null,(C7=yaF({data:p,isLeading:!0,hideSelectionTextChevron:!!v}))==null?void 0:C7(),(RC=E98(p))==null?void 0:RC(),X?_.k("div",{class:"yt-list-item-view-model-wiz__trailing"},X()):(G8=yaF({data:p,isLeading:!1,
hideSelectionTextChevron:!!v}))==null?void 0:G8())},Bv=function(){return V?_.k("div",{class:x,
el:d,role:L||h?"button":void 0,tabindex:I||h?0:void 0,"on:keydown":cv,"on:click":e9},aC()):_.k("div",{class:x,el:d},aC())},Am={labelRenderable:Bv,
isCompact:B,checked:p.isSelected,hasLeadingLabel:!!F,labelClass:U,selectElementClass:G,disableHorizontalPadding:!!S};_.uK(O,p.rendererContext);var e9=_.$_(function(C7){return void(I==null?void 0:I(C7))}),cv=_.QP();
_.AS(function(){h&&(ZD.value.addEventListener("focusin",W),ZD.value.addEventListener("focusout",w));return function(){ZD.value&&h&&(ZD.value.removeEventListener("focusin",W),ZD.value.removeEventListener("focusout",w))}});
B=_.$_(function(){return!1});
return _.k("yt-list-item-view-model",{el:O,class:T,role:N?"menuitem":"listitem",tabindex:V?void 0:I||h?0:void 0,"on:keydown":V?B:cv,"on:click":V?B:e9},uJ(a,function(){return LB9(p.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.k(aF8,Object.assign({},Am))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.k(WgI,Object.assign({},Am))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.k(WgI,Object.assign({},Am,{useCheckIcon:!0}))}]],function(){return Bv()})},function(){return Bv()}))};
BLv=function(a,W,w){if(W)return[ZQ7];switch(a){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[FN];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return w?[FN]:[NL7,FN];case "TRANSFER_STATE_PAUSED_BY_USER":return[tI7,FN];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[$Bm,FN];default:return[ZQ7]}};
lFF=function(a,W,w,Z){return BLv(a,W,Z).map(function(N){var B=N.text,I=N.iconType,X=N.videoAction;N=N.playlistAction;B=B?{content:B}:void 0;I=I&&{sources:[{clientResource:{imageName:I}}]};var v=(0,_.T5.unsafeClone)(w);if(v){var U=_.A(v,_.Be),O=_.A(v,_.lK);U&&X?U.action=X:O&&N&&(O.action=N)}return{title:B,leadingImage:I,rendererContext:v&&{commandContext:{onTap:{innertubeCommand:v}}}}})};
IFS=function(a){a=_.bK(a.rendererContext);var W;return(W=_.A(a,_.lK))==null?void 0:W.playlistId};
PpD=function(a){var W;return(W=a.listItems)==null?void 0:W.some(function(w){var Z;return _.sB((Z=_.A(w,_.UB))==null?void 0:Z.rendererContext)})};
vCU=function(a){var W=a.data;var w=a.isCompact;var Z=a.hideSelectionTextChevron;var N=a.inPopup;a=a.isOverlay;var B=PpD(W)&&N,I={};return _.k("yt-list-view-model",{class:_.ZK("yt-list-view-model-wiz",(I["yt-list-view-model-wiz--kaios-spat-nav"]=xeE(),I)),role:B?"menu":"list"},XF7(W.listItems,{listItemViewModel:{isMenuItem:B,isCompact:w,hideSelectionTextChevron:Z,inPopup:N,isOverlay:a},downloadListItemViewModel:{isMenuItem:B,isCompact:w,inPopup:N}}))};
Mm=function(a){var W=_.K().resolve(_.Vv(_.Lt));return W!=null&&W()?a.darkThemeColorPalette:a.lightThemeColorPalette};
qm=function(a){return{primaryTextColor:Ra(a,0),secondaryTextColor:Ra(a,1),optionColor:Ra(a,2),backgroundColor:Ra(a,3),videoBackgroundColor:Ra(a,4)}};
Ra=function(a,W){if(a){switch(W){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 _.KC(a)}};
gCm=function(a){return a?_.pC(a):""};
oCI=function(a){return(a==null?void 0:a.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
kQS=function(a,W){var w;return"linear-gradient(to bottom, "+((w=W==null?void 0:W.map(function(Z){var N=a?Z.darkThemeColor:Z.lightThemeColor;return N?_.pC(N)+" "+((Z==null?void 0:Z.startLocation)||0)*100+"%":"transparent"}))==null?void 0:w.join(", "))+")"};
UB8=function(a){var W=a.className;var w=a.data;var Z=a.isOverlay;var N=a.maxLinesOverride;var B=a.useMediumText;a=_.D8();var I=w.description,X=w.alwaysShowTruncationText,v=w.truncationText,U=w.maxLines,O,S=!((O=_.A(w.rendererContext,G9))==null||!O.onTap),T,p,h=(p=(T=_.A(w.rendererContext,_.DB))==null?void 0:T.label)!=null?p:"";O=_.l($D(!1));var L=O.next().value,F=O.next().value;_.uK(a,w.rendererContext);O=_.$_(function(){w.expandOnTap&&F(!L);return!1});
T={};return _.k("yt-description-preview-view-model",{el:a,class:_.ZK("yt-description-preview-view-model-wiz",W,(T["yt-description-preview-view-model-wiz--clickable"]=S,T["yt-description-preview-view-model-wiz--is-overlay"]=Z,T)),"on:click":O},uJ(I,function(){var x={};return L?_.k("div",{class:_.ZK("yt-description-preview-view-model-wiz__description",(x["yt-description-preview-view-model-wiz__description--medium-text"]=B,x))},_.k(_.k_,{text:I})):_.k(z$U,{text:I,alwaysShowTruncationText:X,truncationText:v,
maxLines:N!=null?N:U,isOverlay:Z,accessibilityLabel:h,useMediumText:B})}))};
OQC=function(a,W,w,Z,N){if(!((Z==null?0:Z.height)&&(Z==null?0:Z.width)))return{size:0};var B=Z.width;Z=Z.height;if(N)return W==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||W==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&B>Z?{size:312/YXe}:W==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(w!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||a!==1&&a!==2||W!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&W!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&W!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(W==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||W==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||Z===B)switch(a){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(W==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Z>B)switch(a){case 1:case 3:return{size:240*SXS};default:return{size:360*SXS}}switch(a){case 1:case 2:return{size:1/YXe*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.S3D=function(a){if(!("matchMedia"in window))return _.qx(Error("Nh")),function(){return!1};
var W=window.matchMedia(a);a=_.l(_.$1(W.matches,void 0,"jLJc8e"));var w=a.next().value,Z=a.next().value,N=function(B){Z(B.matches)};
W.addEventListener?(W.addEventListener("change",N),_.Ao(function(){W.removeEventListener("change",N)})):W.addListener&&(W.addListener(N),_.Ao(function(){W.removeListener(N)}));
return w};
Y3C=function(a){return a==="IMAGE_BANNER_STYLE_INSET"||a==="IMAGE_BANNER_STYLE_UNKNOWN"};
TLS=function(){if(!("matchMedia"in window))return _.qx(Error("Nh")),function(){return 0};
var a=iG(function(){return window.matchMedia("(max-width: 527.9px)")}),W=iG(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),w=iG(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),Z=iG(function(){return window.matchMedia("(min-width: 1024px)")}),N=_.l(_.$1(a.matches,void 0,"og9kEc")),B=N.next().value,I=N.next().value;
N=_.l(_.$1(W.matches,void 0,"ybDWCb"));var X=N.next().value,v=N.next().value;N=_.l(_.$1(w.matches,void 0,"o0Gfh"));var U=N.next().value,O=N.next().value;N=_.l(_.$1(Z.matches,void 0,"yqUUgd"));var S=N.next().value,T=N.next().value,p=iG(function(){return function(x){I(x.matches)}}),h=iG(function(){return function(x){v(x.matches)}}),L=iG(function(){return function(x){O(x.matches)}}),F=iG(function(){return function(x){T(x.matches)}});
_.AS(function(){a.addEventListener?(a.addEventListener("change",p),W.addEventListener("change",h),w.addEventListener("change",L),Z.addEventListener("change",F)):a.addListener&&(a.addListener(p),W.addListener(h),w.addListener(L),Z.addListener(F));_.Ao(function(){a.removeEventListener?(a.removeEventListener("change",p),W.removeEventListener("change",h),w.removeEventListener("change",L),Z.removeEventListener("change",F)):a.removeListener&&(a.removeListener(p),W.removeListener(h),w.removeListener(L),
Z.removeListener(F))})});
return function(){return B()?1:X()?2:U()?3:S()?4:0}};
Kge=function(a){var W=0;a=_.l([a.title,a.metadata,a.actions,a.description,a.attribution]);for(var w=a.next();!w.done;w=a.next())w.value&&W++;return W};
pFm=function(a){return a===1||a===2?1:0};
AZv=function(a){var W,w=((W=_.K().resolve(_.Vv(_.Lt)))==null?0:W())&&a.data.darkThemeImage?a.data.darkThemeImage:a.data.image;W=_.k("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.k("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},w?_.k(_.qw,{data:w,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),rZx(a.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));w=_.k(_.k_,{text:a.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var Z=a.data;if(Z.bodyText){var N=[];Z=_.l(Z.bodyText);for(var B=Z.next();!B.done;B=Z.next())N.push(_.k(_.k_,{text:B.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else N=_.k(_.Ha,null);return _.k("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},W,w,N,rZx(a.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.k(_.k_,{text:a.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.k(_.k_,{text:a.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
iQI=function(a){a=(new hVC).parse(a);return(new l6).render(a).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(W){var w=W.split(":").map(Number),Z=0,N=0;if(w.length===3)w=_.l(w),Z=w.next().value,N=w.next().value,w=w.next().value;else if(w.length===2)w=_.l(w),N=w.next().value,w=w.next().value;else if(w.length===1)w=_.l(w).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(Z*3600+N*60+w)+'" role="button">'+W+"</span>"})};
cZU=function(a){a=_.l(a.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var W=a.next(),w={};!W.done;w={clickHandler$jscomp$4:void 0},W=a.next()){W=W.value;w.clickHandler$jscomp$4=function(N){N=Number(N.target.getAttribute("data-time"));if(isNaN(N))throw Error("Ph");var B=document.querySelector("video");B&&(B.currentTime=N)};
var Z=function(N){return function(B){B.key!=="Enter"&&B.key!=="Space"||(0,N.clickHandler$jscomp$4)(B)}}(w);
W.setAttribute("tabindex","0");W.removeEventListener("click",w.clickHandler$jscomp$4);W.removeEventListener("keydown",Z);W.addEventListener("click",w.clickHandler$jscomp$4);W.addEventListener("keydown",Z)}};
eV9=function(){return _.k("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.k(Q0,{percentWidth:100}),_.k(Q0,{animationDelay:200}),_.k(Q0,{animationDelay:400}),_.k(Q0,{animationDelay:600}),_.k(Q0,{animationDelay:800,percentWidth:60}),_.k("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.k(Q0,{percentWidth:100}),_.k(Q0,{animationDelay:200}),_.k(Q0,{animationDelay:400}),_.k(Q0,{animationDelay:600,percentWidth:50}))};
Q0=function(a){return _.k("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(a.percentWidth===void 0?100:a.percentWidth)+"%"},_.k("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(a.animationDelay===void 0?0:a.animationDelay)+"ms"}))};
nCS=function(){var a=_.l(_.$1(function(){return""},void 0,"v2wS5e")),W=a.next().value;
return[function(){return W()()},
a.next().value]};
LgS=function(a){a=a===void 0?{}:a;return{title:_.zG(a.localizedOptInBannerTitleText===void 0?"":a.localizedOptInBannerTitleText),titleLength:19,subtitle:_.zG(a.localizedOptInMessage===void 0?"":a.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.zG(_.P_("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:_.zG(_.P_("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:[j9C]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
JZE=function(a,W){a=a?aNv(a):"";W!==void 0&&isFinite(W)?W===0?W=_.P_("UPDATING",void 0,"Updating..."):(W=pEC(new Date(W),new Date),W=_.P_("UPDATED_TIME",{relative_time:W},"Updated "+W)):W="";var w="";a&&W&&(w=" \u2022 ");return _.zG(a+w+W)};
RVU=function(a,W,w,Z,N,B){W=W===void 0?0:W;var I=Fg8[W],X=I.title,v=I.iconType,U=I.topButtonRenderer,O=I.sectionClientVE;I=I.videoClientVE;var S;if(W!==1||a.length){w=[];a=_.l(a);for(Z=a.next();!Z.done;Z=a.next()){var T=Z.value;if(woE(T))w.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:T.videoEntity.videoId,title:H_(T.videoEntity.title),shortBylineText:H_(T.channelEntity.title),thumbnail:T.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:T.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.P_("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:I}}}}}});else if(WFU(T)){Z=w;var p=Z.push;var h=void 0,L=void 0,F=void 0,x=void 0,G=void 0,V=void 0,d=void 0,ZD=void 0,aC=T.mainPlaylistEntity.playlistId,Bv=T==null?void 0:(ZD=T.mainPlaylistEntity)==null?void 0:(d=ZD.thumbnailStyleData)==null?void 0:(V=d[0])==null?void 0:(G=V.value)==null?void 0:(x=G.collageThumbnail)==null?void 0:x.coverThumbnail;x=ZUE(aC);if(!_.r("enable_offline_playlist_page")&&
(T==null?0:(F=T.mainPlaylistEntity)==null?0:F.videos)){b:{F=T==null?void 0:(L=T.mainPlaylistEntity)==null?void 0:L.videos;L=_.Cx().getState().entities;if(F!=null&&F.length&&L)for(F=_.l(F),G=F.next();!G.done;G=F.next())if(G=_.WJ(G.value).entityId,(G=JSON.parse(G).videoId)&&oSx(L,G)==="TRANSFER_STATE_COMPLETE"){L=G;break b}L=""}L!==void 0&&(x=jy(_.Cx().getState(),L),x=_.Vw(L,aC,void 0,void 0,x))}L=tfH(_.P_("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ZUE(aC));T=aC&&Bv&&L?{playlistId:aC,navigationEndpoint:x,
viewPlaylistText:L,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Bv}},title:H_(T.mainPlaylistEntity.title),shortBylineText:H_(T==null?void 0:(h=T.channelEntity)==null?void 0:h.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:MIe,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:aC,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.P_("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:I}}}:
void 0;p.call(Z,{gridPlaylistRenderer:T})}}I={gridRenderer:{items:w}};W===1&&(S=JZE(N,B))}else if(Z){var Am=_.zG((p=w==null?void 0:w.localizedPromptMessage)!=null?p:"");I={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.zG(_.P_("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.T78}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.zG(_.P_("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};S=JZE(N,B)}else Am=_.zG(_.P_("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
I={};return{contents:[{shelfRenderer:{title:X,titleAnnotation:S,icon:{iconType:v},subtitle:Am,content:I,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:U}]}}}}],loggingDirectives:{clientVeSpec:{uiType:O}}}};
q3v=function(a,W,w,Z,N,B,I,X){w=w===void 0?{}:w;Z=Z===void 0?!1:Z;N=N===void 0?!1:N;B=B===void 0?!1:B;I=I===void 0?0:I;X=X===void 0?-Infinity:X;if(!W.length&&!a.length&&!Z)return N?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:fc7(w)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.zG(_.P_("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];
var v=[];a.length&&v.push(RVU(a,0));Z?v.push(RVU(W,1,w,B,I,X)):N&&v.push({contents:[{statementBannerRenderer:LgS(w)}]});(Z&&W.length||a.length)&&v.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.zG(_.P_("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});return v.map(function(U){return{itemSectionRenderer:U}})};
xB=function(a,W){if(typeof a!=="object")return null;a=_.l(Object.entries(a));for(var w=a.next();!w.done;w=a.next()){var Z=_.l(w.value);w=Z.next().value;Z=Z.next().value;if(w===W)return w;if(Z=xB(Z,W))return w+"."+Z}return null};
bL=function(a){var W=a.content;return(a=a.styleRuns)&&W?{runs:a.map(function(w){var Z={text:W.slice(w.startIndex,w.startIndex+w.length)};w.fontColor&&(Z.textColor=w.fontColor);return Z})}:{simpleText:W}};
bQH=function(a,W,w,Z){var N=Q98;Z&&(a.quantity=Z);if(!a.quantity||!a.maxQuantity)return{};Z=a.minusButton;var B=a.plusButton,I,X,v,U;return{value:a.quantity,maxValue:a.maxQuantity,onChangeCallback:function(O){N(a,O)},
minusLabel:(I=_.A(Z,xBx))==null?void 0:I.label,minimumReachedLabel:(X=_.A(Z,xBx))==null?void 0:X.limitReachedLabel,plusLabel:(v=_.A(B,xBx))==null?void 0:v.label,maximumReachedLabel:(U=_.A(B,xBx))==null?void 0:U.limitReachedLabel,disabled:W,onRemoveCommand:w}};
Q98=function(a,W){var w=a.quantityIncrementerEntityKey;if(w){var Z={};Z.quantity=W;_.R5(_.e4("quantityIncrementerEntity",w,Z));a.onChangeCommand&&_.cX(a.onChangeCommand)}};
s9C=function(a){return _.r("kevlar_comments_clone_data_killswitch")?a:_.T5.unsafeClone(a)};
GQ8=function(a,W){(a=ueC(a))&&(W?Cpe.push({command:a,sourceData:{},commandContext:void 0}):_.K().resolve(_.zU).resolveCommand(a))};
ueC=function(a){return _.A(a,_.pt)};
DBH=function(){var a=window.performance.timeOrigin+window.performance.now(),W=(new _.sa).setSeconds(a/1E9);return _.hI(W,2,_.Az(a%1E9),0)};
uL=function(a,W){var w=_.A(_.A(a,_.pt),fFH);w&&(W&&(w.serializedAdditionalMetadata=_.EI(W)),GQ8(a,!0))};
dBx=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"}};
mB8=function(){return!!_.LF("ID_TOKEN")};
HQS=function(a){return a instanceof Error&&a.cause instanceof VIF&&a.cause.rpcErrorCode!==void 0?!zVH.includes(a.cause.rpcErrorCode):!0};
ECe=function(){return _.CF(yZx,{authuser:""+(_.LF("SESSION_INDEX")||0)})};
Cw=function(a,W,w,Z){w=w===void 0?"MINI_APP_SDK_API_UNSPECIFIED":w;Z=Z===void 0?"":Z;var N=new _.Uw;w={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:Z,sdkApi:w};a instanceof Error&&(N.message=a.message,N.name=a.name,a.cause instanceof VIF&&a.cause.rpcErrorCode!==void 0&&(w.rpcErrorCode=a.cause.rpcErrorCode));var B;(B=W.onError)==null||B.call(W,{loggingError:N,metadata:w})};
WLE=function(a,W,w,Z){switch(a){case "MINI_APP_SOURCE_GAMESNACKS":return new dX(W,w,Z);default:return new aM9(W,w,Z)}};
wqe=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"}};
Zie=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"}};
NBx=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"}};
t_x=function(){return Math.floor(Math.random()*4)+1};
$08=function(a,W,w,Z){a=_.l(Object.entries(a));for(var N=a.next(),B={};!N.done;B={message$jscomp$957:void 0},N=a.next()){var I=_.l(N.value);N=I.next().value;I=I.next().value;B.message$jscomp$957=I;W.push(setTimeout(function(X){return function(){Z(!1);w(X.message$jscomp$957.text)}}(B),B.message$jscomp$957.delayMs));
Number(N)>0&&W.push(setTimeout(function(){Z(!0)},B.message$jscomp$957.delayMs-400))}};
BB7=function(a,W){var w=w===void 0?lXE:w;_.r("mweb_fix_monitor_visibility_after_render")?a&&kJ(function(){XLU(a,W,w)}):kJ(function(){XLU(a,W,w)})};
IMI=function(a){var W=a.data;var w=a.uniqueId;a=a.overrides;var Z,N=((Z=W.timedAnimationData)==null?void 0:Z.animationTiming)||[];return _.k("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.k(VzU,{settings:{uniqueId:w,timings:N,experimentEnabled:N.length>0,enabled:N.length>0}},lM9(W.buttonRenderer,{buttonRenderer:{buttonOverrides:a}})))};
gke=function(a){Pse||(Pse=XqI(new _.JG(1,void 0,void 0,vkS),0));var W=Pse.format(Math.floor(a));W=_.Lx==="be"||_.Lx==="bg"||_.Lx==="es"||_.Lx==="et"||_.Lx==="hu"||_.Lx==="ka"||_.Lx==="lv"||_.Lx==="pl"||_.Lx==="pt-PT"||_.Lx==="sq"?W.replace(new RegExp("^(\\d)"+vkS.GROUP_SEP.replace(".","\\.")+"(\\d+("+vkS.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):W;return a>=1E3&&a<=9999&&W[1]==="."&&(_.Lx==="sl"||_.Lx==="it")?W.replace(".",""):W};
okI=function(a,W){O8("ytd-button-renderer",{data:a,className:W?W.className:"",overrides:W==null?void 0:W.buttonOverrides},x1)};
Oie=function(a,W,w,Z){if(a)return Z=Z||a.likeStatus,W?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Z==="LIKE",isDisabled:!a.likesAllowed,defaultIcon:{iconType:w},defaultText:Z==="LIKE"?a.likeCountWithUnlikeText:a.likeCountText,toggledText:Z==="LIKE"?a.likeCountText:a.likeCountWithLikeText,defaultNavigationEndpoint:ky9(a,"LIKE"),defaultServiceEndpoint:U0v(a,"LIKE"),toggledServiceEndpoint:U0v(a,"INDIFFERENT"),defaultTooltip:_.sd(a.likeCountTooltipText),toggledTooltip:_.sd(a.likeCountTooltipText),
targetId:a.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Z==="DISLIKE",isDisabled:!a.likesAllowed,defaultIcon:{iconType:w},defaultText:Z==="DISLIKE"?a.dislikeCountWithUndislikeText:a.dislikeCountText,toggledText:Z==="DISLIKE"?a.dislikeCountText:a.dislikeCountWithDislikeText,defaultNavigationEndpoint:ky9(a,"DISLIKE"),defaultServiceEndpoint:U0v(a,"DISLIKE"),toggledServiceEndpoint:U0v(a,"INDIFFERENT"),defaultTooltip:_.sd(a.dislikeCountTooltipText),
toggledTooltip:_.sd(a.dislikeCountTooltipText)}};
ky9=function(a,W){if(W==="LIKE")return a.likeCommand;if(W==="DISLIKE")return a.dislikeNavigationEndpoint};
U0v=function(a,W){var w;return(w=a.serviceEndpoints)==null?void 0:w.find(function(Z){var N;return((N=_.A(Z,_.mI))==null?void 0:N.status)===W})};
SUC=function(a,W){W=W===void 0?{}:W;if(a){var w=!!W.activeState,Z=W.iconSize,N=W.className,B=W["aria-hidden$"],I=W["aria-label$"],X=W.role;W=W.style$+";width: "+((W.width||Z)+"px;height: ")+((W.height||Z)+"px;color: ")+(W.color+";");a={icon:a};w!==void 0&&(a.active=w);Z!==void 0&&(a.size=Z);W!==void 0&&(a.style=W);N!==void 0&&(a.className=N);B!==void 0&&(a.ariaHidden=B);I!==void 0&&(a.ariaLabel=I);X!==void 0&&(a.role=X);O8("yt-icon",a,x1)}};
_.KLv=function(a,W,w){return window.spf&&!_.r("web_disable_spfjs_client")?YUF(a,W,w):TBe(a,W)};
YUF=function(a,W,w){var Z=null,N=(new _.PZ(function(B,I){var X={};if(W){X.method=W.method;var v=W.postParams||{};HM7(a,W)&&(v[_.LF("XSRF_FIELD_NAME")]=_.LF("XSRF_TOKEN"));X.postData=_.ld(v);W.type&&(X.type=W.type);v=W.headers}X.headers=D6e(a,v);_.r("debug_forward_web_query_parameters")&&(a=_.V2e(a,window.location.search));X.experimental_headers=X.headers;X.onError=function(U){U.err&&U.xhr&&(U.err.params={url:U.xhr.responseURL,response:U.xhr.responseText.substr(0,64)});I(U.err)};
X.onPartDone=function(U){w&&w.call(null,U.part)};
X.onDone=function(U){var O=pq7(U.response,"xsrf_token");fF(window.location.href,a)&&O&&_.jm("XSRF_TOKEN",O);if(O=pq7(U.response,"service_worker_killswitch"))_.jm("SERVICE_WORKER_KILLSWITCH",O),RN8();B(U.response)};
Z=spf.request(a,X)})).then(rg9);
N.thenCatch(function(B){var I=B instanceof _.V0,X=B&&B.hasOwnProperty("params")&&B.params.response?B.params.response:"";B instanceof Error&&(X?I?xwI(B):X===')]}\'\n{"reload":"now"}'?xwI(B):(AgC(B,a,X),hmU(B,X)?_.jJ(B):_.eJ(B)):xwI(B));Z&&Z.abort()});
return N};
rg9=function(a){if(a.type==="multipart"){var W=a.timing;a=a.parts.reduce(function(w,Z){Object.assign(w,Z);return w},{});
a.timing=a.timing||{};Object.assign(a.timing,W);a.type="reduced"}return a};
TBe=function(a,W){W=W===void 0?{}:W;var w=null,Z=new _.PZ(function(N,B){W.onFinish=function(I){if(I.readyState===XMLHttpRequest.DONE)if(I.status===200){if(I.responseType!=="json"){var X=I.response;X.substring(0,5)===")]}'\n"&&(X=X.substring(5));try{var v=JSON.parse(X)}catch(U){v=U}}else v=I.response;v instanceof Error?B(v):(X=pq7(v,"xsrf_token"),fF(window.location.href,a)&&X&&_.jm("XSRF_TOKEN",X),I=I.responseURL,window.performance&&window.performance.getEntriesByName?(X=window.performance.getEntriesByName(I).pop())?
I={responseStart:(0,_.mG)()-(X.responseEnd-X.responseStart)}:(Math.random()<.01&&(X=Error("ai"),X.params=I,_.jJ(X)),I={responseStart:-1}):I={responseStart:0},v.timing=v.timing||{},Object.assign(v.timing,I),N(v))}else B(Error("$h`"+I.status))};
(w=_.Bi(a,W))||B(Error("$h`"+w.status))});
Z.thenCatch(function(N){N instanceof Error&&(AgC(N,a),hmU(N)&&(N.level="WARNING"))});
_.r("cancel_pending_navs")&&Z.thenCatch(function(){w.abort()});
return Z};
pq7=function(a,W){var w=a[W],Z=a.parts;a.type==="multipart"&&Z&&(w=(a=Z.find(function(N){return W in N}))&&a[W]);
return w};
AgC=function(a,W,w){var Z=a.message||"";W={original:Z,url:W};if(w)if(Z=Z.match(/position:?\s*(\d+)/)){Z=Z&&Number(Z[1])?Number(Z[1]):0;var N=Math.max(Z-25,0);W.position=Z;W.response=w.substring(N,Z+25)}else W.response=w.substring(0,50);_.LH(a,W);try{a.message="JSON parse error"}catch(B){}};
hmU=function(a,W){a=a.message||"";a=!!(a.indexOf("<")>=0||a.indexOf("end of ")>=0||a.indexOf("Unterminated string")>=0||a.indexOf("Unexpected EOF"));if(!a&&W)for(var w=W.length,Z=!1,N=0;N<w;N++)if(Z&&W[N]==="\\")N++;else if(W[N]==='"')Z=!Z;else if(W[N]==="<"&&!Z){a=!0;break}return a};
iie=function(){return document.documentElement.hasAttribute("dark")};
_.cgx=function(a,W){if(a!=="GFEEDBACK"&&a!=="GUIDED_HELP")_.Ff(Error("bi`"+a));else{var w=_.K().resolve(_.Vv(_.Gw));if(w&&(w=w.getCurrentPage())&&w.getServiceTrackingParams&&(w=w.getServiceTrackingParams()))for(var Z=0,N;N=w[Z++];)if(N.service===a){if(a=N.params)for(w=0;Z=a[w++];)W[Z.key]=Z.value;break}}};
_.emU=function(a){var W=_.fA();W&&(W=W.getPlayer())&&(W.pauseVideo(),a.playback_id=W.getVideoData().cpn,a.eid=W.getVideoData().eventId,Object.assign(a,W.getFeedbackProductData()))};
nkE=function(){var a={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.LF("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(a.enableAnonymousFeedback=!0);_.LF("SESSION_INDEX")&&(a.authuser=String(_.LF("SESSION_INDEX")));_.r("enable_pageid_for_feedback")&&_.LF("DELEGATED_SESSION_ID")&&(a.pageId=String(_.LF("DELEGATED_SESSION_ID")));return a};
_.zb=function(a){_.r("enable_ypc_spinners")&&_.aV(a,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},a])};
_.H6=function(a){_.r("enable_ypc_spinners")&&_.aV(a,"yt-close-popup-action",["yt-loading-renderer"])};
jQ8=function(a){return new Promise(function(W,w){_.AQ({verifyCommand:{recaptchaToken:a.recaptchaResponse}},{commandController:{onSuccess:function(Z,N){N||w("ChallengeService did not return a response.");var B;W({challengeCompleted:(B=N.verified)!=null?B:!1})},
onServerError:function(Z,N){w(N)}}})})};
LLI=function(a,W,w,Z){W({recaptchaResponse:Z}).then(function(N){N.challengeCompleted?_.gz()?(w(3),_.K().resolve(_.zU).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:a}})):w(2):w(4)},function(){w(4)})};
JgS=function(a,W,w){_.MM("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.LF("HL"),function(){var Z;(Z=window.grecaptcha)==null||Z.ready(function(){var N=window.grecaptcha;N?(w(N.render(a,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:LLI.bind(null,a,jQ8,W)})),W(1)):W(4)})})};
FL9=function(a,W){return function(){switch(W()){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}}()};
_.y0=function(){if(!M_S){var a=document.querySelector("#player.skeleton");a&&(_.Xh(a),M_S=!0)}};
_.qUe=function(){return RmF=Qc8()};
bi9=function(){return _.P(function(a){return QQm!==void 0?a.return():_.g(a,x0C(),0)})};
x0C=function(){return _.P(function(a){if(a.nextAddress==1)return _.g(a,bN9(),2);RmF=a.yieldResult;QQm=_.hF.addLowPriorityJob(x0C,5E3);_.Xd(a)})};
fMD=function(a){var W=W===void 0?sQe:W;var w,Z,N=(w=a.responseContext)==null?void 0:(Z=w.mainAppWebResponseContext)==null?void 0:Z.trackingParam;if(!N){W.increment("MISSING");var B,I,X,v,U,O;_.jJ(new _.Uw("282054944_a",{bCx:!!((B=a.responseContext)==null?0:(I=B.mainAppWebResponseContext)==null?0:I.loggedOut),uaV:((X=a.responseContext)==null?void 0:X.mainAppWebResponseContext)===void 0,zkV:a.responseContext===void 0,i21:(v=a.playabilityStatus)==null?void 0:v.contextParams,rUD:(((U=a.streamingData)==
null?void 0:U.formats)||[]).length>0,x5K:(((O=a.streamingData)==null?void 0:O.adaptiveFormats)||[]).length>0,os:!!a.offlineState,cotn:a.cotn}));return 2}w="";try{w=uES(N)}catch(p){return W.increment("C_ERROR"),_.eJ(p),2}try{var S=_.CsC(w);var T=Gy7(S)}catch(p){return W.increment("P_ERROR"),_.eJ(p),2}T=_.z5(T,D0E,1,_.Hh());N=[];T=_.l(T);for(S=T.next();!S.done;S=T.next())Z=S.value,S=Z.getPath(),w=(0,_.T5.getValueByKeys)(a,S.split(".")),w=String(w===void 0||w===null?"":w),Z=Z.getValue()||"",B=/[+\-\/_]/g,
w.replace(B,"")!==Z.replace(B,"")&&(W.increment("MISMATCH"),_.r("ab_mis_log_err")&&(w=new _.Uw("282054944_p",{fkK:S,g:String(w),e:String(Z)}),_.eJ(w)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(S)||(S.match(/enforcementMessageViewModel/i)?N.push(3):N.push(2)));if(N.length>0)return Math.max.apply(Math,_.K8(N));W.increment("SUCCESS");return 1};
V_I=function(a){var W=new Ea;if(a.interpreterJavascript){var w=_.cGe(a.interpreterJavascript);w=RJ(w).toString();var Z=new d08;_.Xu(Z,6,w);_.ZP(W,1,Z,f6)}else a.interpreterUrl&&(w=_.cI(a.interpreterUrl),w=_.IJ(w).toString(),Z=new _.m0e,_.Xu(Z,4,w),_.ZP(W,2,Z,f6));a.interpreterHash&&_.aI(W,3,a.interpreterHash,f6);a.program&&_.aI(W,4,a.program,f6);a.globalName&&_.aI(W,5,a.globalName,f6);a.clientExperimentsStateBlob&&_.aI(W,7,a.clientExperimentsStateBlob,f6);return W};
WN=function(a){var W={};a=_.l(a.split("&"));for(var w=a.next();!w.done;w=a.next())w=w.value.split("="),w.length===2&&(W[w[0]]=w[1]);return W};
zmE=function(a){return Number(a.t)||7200};
FHS=function(){if(_.r("bg_st_hr"))return"havuokmhhs-0";var a,W=((a=performance)==null?void 0:a.timeOrigin)||0;return"havuokmhhs-"+Math.floor(W)};
HiS=function(){return new Promise(function(a){var W=window.top;W.ntpevasrs!==void 0?a(new wO(W.ntpevasrs)):(W.ntpqfbel===void 0&&(W.ntpqfbel=[]),W.ntpqfbel.push(function(w){a(new wO(w))}))})};
ygS=function(a){var W=a.dc8.bind(a);_.Dp("yt.aba.att",W);a=a.xvW.bind(a);_.Dp("yt.aba.att2",a)};
ayv=function(a){switch(_.tw(a.input)){case _.GC(Ek7):var W={};return W.encryptedVideoId=a.innerTubeRequest.externalVideoId,W}return{}};
wxv=function(a){switch(_.tw(a.input)){case _.GC(Ek7):if(_.r("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.GC(Zd):if(_.r("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&a.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.GC(WWE):var W,w;if(_.r("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((w=_.A((W=a.config)==null?void 0:W.command,
GFC))==null?0:w.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.NvD=function(a){var W;if(a.playlistVideoRenderer&&((W=a.playlistVideoRenderer)==null?0:W.engagementBar))return ZqU(a.playlistVideoRenderer.engagementBar);if(_.A(a,N9)){var w;if(a=(w=_.A(a,N9))==null?void 0:w.engagementBar)return ZqU(a)}return""};
ZqU=function(a){if(!a)return"";a=_.A(a,_.tP9);if(a==null||!a.actions)return"";a=_.l(a.actions);for(a=a.next();!a.done;a=a.next()){a=_.A(a.value,_.$GD);var W=void 0;if((W=a)==null||!W.itemId)break;return a.itemId}return""};
_.Bv7=function(a){var W;if(a.playlistVideoRenderer&&((W=a.playlistVideoRenderer)==null?0:W.videoId))return a.playlistVideoRenderer.videoId;if(_.A(a,N9)){var w,Z;if(a=(w=_.A(a,N9))==null?void 0:(Z=w.playlistItemData)==null?void 0:Z.videoId)return a}return""};
_.lyI=function(a){var W;if(a.playlistVideoRenderer&&((W=a.playlistVideoRenderer)==null?0:W.voteCount))return a.playlistVideoRenderer.voteCount;if(_.A(a,N9)){var w,Z;if(a=(w=_.A(a,N9))==null?void 0:(Z=w.playlistItemData)==null?void 0:Z.voteCount)return a}return 0};
_.tN=function(a,W){return _.tG(a.entities,"flowStateEntity",W)};
PPD=function(a,W,w,Z){var N=void 0;a=_.l(a[W.iconName]||[]);for(var B=a.next();!B.done;B=a.next()){B=B.value;var I=W.iconSize;var X=W.iconStyle;I=!I||I===B[2];var v=IyS[B[0]];Z&&Z!==B[1]||!I||X&&X!==v?X=!1:N?(X=IyS[B[0]],X=!!W.iconStyle||X==="youtube_outline",I=N.version<=B[1],X=(!!W.iconSize||B[2]===24)&&X&&I):X=!0;X&&(N={name:W.iconName,style:IyS[B[0]],size:B[2],version:B[1],allowMirroring:!!B[3],url:w(W.iconName,B)})}return N};
Xx7=function(a,W,w,Z){return a+(""+IyS[w[0]]+((Z===void 0?0:Z)?"_experimental":"")+"/"+W+"/v"+w[1]+"/")+(w[2]+"px.svg")};
$X=function(a){return _.r("web_bookmark_playlist_save_icon")?"bookmark":a};
vWD=function(a,W){return Xx7("https://fonts.gstatic.com/s/i/",a,W)};
gW7=function(a,W){return Xx7("https://fonts.gstatic.com/s/i/",a,W,!0)};
oWI=function(a,W){return Xx7("https://www.gstatic.com/youtube/img/icons/web/",a,W)};
kmF=function(a){var W=a.enabled;var w=a.itemPlaybackModel;var Z=a.thumbnailElRef;var N=a.containerElRef;var B=a.options;var I;_.Ka(function(){var X=N==null?void 0:N.value;var v,U=(v=Z())==null?void 0:v.value;v=w();var O=B();if(W&&v&&X&&U&&(O==null?0:O.thumbnail)){var S,T;X={mediaRenderer:{data:v,hostElement:X},lockupElement:X,thumbnailElement:U,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.rJ((S=v.inlinePlayerData)==null?void 0:S.onVisible),navigationEndpoint:_.rJ((T=v.inlinePlayerData)==
null?void 0:T.onSelect),thumbnail:O.thumbnail,thumbnailOverlays:O.thumbnailOverlays||[],accessibilityText:O.accessibilityText||""},thumbnailSize:O.thumbnailSize,enableRounding:O.enableRounding}}}else X=void 0;if(S=X){var p;(p=I)==null||ty(p);I=dP(S)}});
_.Ao(function(){var X;(X=I)==null||ty(X)})};
UGC=function(a){a=atob(a);for(var W=[],w=0;w<a.length;w++)W.push(a.charCodeAt(w));return new Blob([new Uint8Array(W)],{type:"image/png"})};
Ssv=function(a,W,w,Z){Z=Z===void 0?"INSERTION_POSITION_UNSPECIFIED":Z;return a({targetId:W},function(N){var B,I=(B=N.contents)!=null?B:[];B=w!=null?w:[];var X=Oqe(I);switch(Z){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},N,{contents:[].concat(_.K8(I.slice(0,X)),_.K8(B),_.K8(I.slice(X+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},N,{contents:[].concat(_.K8(B),_.K8(I))});case "INSERTION_POSITION_LAST":return Object.assign({},N,{contents:[].concat(_.K8(I),_.K8(B))});
default:return N}})};
Tve=function(a,W,w,Z,N){N=N===void 0?"RELATIVE_INSERTION_POSITION_AFTER":N;return a({targetId:W},function(B){var I,X=(I=B.contents)!=null?I:[];I=Yse(X,w);if(I<0)return B;I=N==="RELATIVE_INSERTION_POSITION_BEFORE"?I:I+1;return Object.assign({},B,{contents:[].concat(_.K8(X.slice(0,I)),_.K8(Z),_.K8(X.slice(I)))})})};
Oqe=function(a){var W=a.findIndex(function(w){return _.A(w,_.BN)});
return W>=0?W:a.length};
Yse=function(a,W){return a.map(function(w){return _.A(w,_.KW9)}).findIndex(function(w){return(w==null?void 0:w.targetId)===W})};
rnS=function(a,W,w){return a({targetId:W},function(Z){var N,B=(N=Z.contents)!=null?N:[];return Object.assign({},Z,{contents:pxH(B,w)})})};
pxH=function(a,W){return a.filter(function(w){var Z=W.includes;a:{w=_.l(Object.values(w));for(var N=w.next();!N.done;N=w.next())if((N=N.value)&&N.targetId){w=N.targetId;break a}w=""}return!Z.call(W,w||"")})};
_.AnF=function(a,W){return{engagementPanelSectionListRenderer:{panelIdentifier:a,identifier:W,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
hc8=function(a){return a.getOption("captions","tracklist",{includeAsr:!0})};
iq7=function(a){var W=hc8(a);if(W==null?0:W.length)return W;a.loadModule("captions");return hc8(a)};
cnI=function(a,W,w){if(a.getVideoData){var Z,N=(Z=iq7(a))==null?void 0:Z.find(function(B){return B.languageCode===w});
Z=_.Nn("/youtube/app/player_caption_language_entity_key","stringEntity",2);W.dispatch(_.oL("stringEntity",Z,{key:Z,value:(N==null?void 0:N.displayName)||""}));N?a.setOption("captions","track",N):(a.setOption("captions","stickyLoading",{}),a.setOption("captions","track",{}))}};
ecF=function(a){return a.getOption("captions","tracklist",{includeAsr:!0})};
nWI=function(a){return a.getOption("captions","tracklist",{includeAsr:!0})};
jOm=function(a){var W=nWI(a);if(W==null?0:W.length)return W;a.loadModule("captions");return nWI(a)};
LWI=function(a){var W=a.getOption("captions","track");if(W)return W;a.loadModule("captions");return a.getOption("captions","track")};
JnU=function(a){var W=jOm(a);if(W!=null&&W.length){var w=LWI(a);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.P_("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(w==null?0:w.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.K8(W.map(function(Z){return{listItemViewModel:{title:{content:Z.displayName},
isSelected:Z.languageCode===(w==null?void 0:w.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Z.languageCode}}]}}}}}}}})))}}}}}}}}};
qs9=function(a){return new Promise(function(W,w){if(a===void 0)_.eJ(Error("Ci"),"ERROR"),w(Error("Ci"));else{w=new _.FWv;var Z=_.MPS();w=w.init();var N=_.Rcm(_.LF("YPC_MB_URL"),!0);Promise.all([w,N]).then(function(){var B=payments.business.integration.ClientTokenFactory.createClientToken(a,Z);W(B)})}})};
bq9=function(a,W,w,Z,N,B,I){var X=_.Rt();w=w.replace(/-/g,"+").replace(/_/g,"/");var v=_.gS().get("hl"),U=_.lV(_.R1),O=W==null?void 0:W.element;O&&_.zb(O);QOe(W,!0);_.xGF(U,w,X.resolve,function(){O&&_.H6(O)},function(S){O&&_.H6(O);
X.reject(S)},v,Z?function(S){Z&&_.MX(a,Z,{backend_analytics:S})}:void 0,X.resolve,N,B,I);
return X.promise};
QOe=function(a,W){!(a=a==null?void 0:a.element)||a.tagName!=="YT-BUTTON-RENDERER"&&a.tagName!=="YTD-BUTTON-RENDERER"||(a.disabled=W)};
sOe=function(){var a=_.P_("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.zG(a),actionButton:{buttonRenderer:C2D()}}},popupType:"TOAST"}};
uRE=function(){var a=_.P_("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.zG(a),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
CPS=function(a){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:a}]}}};
II=function(a,W,w,Z){var N;return _.P(function(B){if(B.nextAddress==1)return _.tq(B,2),_.g(B,a,4);if(B.nextAddress!=2)return(N=_.Ud(W.getState().entities).length>0)?B.return({title:_.zG(_.P_("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.zG(_.P_("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:ulC()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
B.return(GJH(w,Z));_.Pb(B);return B.return(GJH(w,Z))})};
GmF=function(a,W){return W?W==="PPSV"||m7C(a,W):!1};
DGU=function(a){a.responseContext||(a.responseContext={});a.responseContext.maxAgeSeconds=0;return a};
X2=function(a){var W;return _.P(function(w){return w.nextAddress==1?_.g(w,fy9(a,"service:topbar:fallback"),2):(W=w.yieldResult)&&_.PN(W)?w.return(DGU(_.PN(W))):w.return()})};
dG7=function(a){var W;return _.P(function(w){return w.nextAddress==1?_.g(w,fy9(a,"service:downloads_settings:fallback"),2):(W=w.yieldResult)&&_.PN(W)?w.return(W):w.return()})};
fy9=function(a,W){var w;return _.P(function(Z){if(Z.nextAddress==1)return a?_.g(Z,a.get(W),2):Z.return();w=Z.yieldResult;return!w||!_.PN(w)||!isNaN(Number(w.data.expireTimestampMs))&&w.isExpired()?Z.return():Z.return(w)})};
mGv=function(a){var W=_.K().resolve(vN).getState().entities;return a.playlistId?GmF(W,a.playlistId):!1};
VP9=function(a,W){var w;if(W==null?0:(w=W.requestTemplate)==null?0:w.panelId)a.panelId=W.requestTemplate.panelId;var Z;if(W==null?0:(Z=W.requestTemplate)==null?0:Z.params)a.params=W.requestTemplate.params};
Hqx=function(){if(zce)return zce();var a=!_.r("idb_response_store_auth_killswitch"),W={};zce=dz("yt-it-response-store",{objectStores:(W.ResponseStore={addedAtVersion:1},W),shared:!a,upgrade:function(w,Z){Z(1)&&(w=FU(w,"ResponseStore",{keyPath:["key","clientName"]}),ME(w,"byExpiration","expireTimestampMs"),ME(w,"byInterface","clientName"))},
version:1});return zce()};
ynE=function(a){return _.xq(Hqx(),a)};
a19=function(a,W){var w;return _.P(function(Z){return Z.nextAddress==1?_.g(Z,_.f3(),2):(w=Z.yieldResult)?Z.return(new EWv(a,W,w)):Z.return()})};
WEH=function(a){var W=Object.keys(a)[0];if(W)return a.screenExit&&(W=W+";"+a.screenExit.screen),W};
wQE=function(a){var W=new Map;a=_.l(a);for(var w=a.next();!w.done;w=a.next())w=w.value,w!=null&&(W.has(w.taskType)||W.set(w.taskType,[]),W.get(w.taskType).push(w));return W};
ZsE=function(a){return!isNaN(a)&&a>0};
NWx=function(a){a=[].concat(_.K8(a)).sort(function(w,Z){return w-Z});
var W=Math.floor(a.length/2);return a.length%2?a[W]:(a[W-1]+a[W])/2};
BWF=function(a,W){a=a===void 0?rQ9:a;W=W===void 0?{}:W;_.Dp("yt.logging.errors.log",_.eJ);KYe();tq7(eI7(),W);window.onerror=a;$ux=pXE;window.addEventListener("unhandledrejection",function(w){if(w.reason instanceof Error){var Z=w.reason;_.LH(Z,{source:"unhandledrejection"});Z.name==="AbortError"&&(Z.level="WARNING")}pXE(w.reason);w.preventDefault()})};
_.l1I=function(a){return a.a11y.ephemeralAction||null};
_.I1m=function(a){var W,w,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V,d,ZD,aC,Bv,Am,e9,cv,C7,RC,G8,QF,vl,Hl,SV,Ny,Bl,JL,Pl,W9,rC,le;return _.P(function(rT){if(rT.nextAddress==1)return _.g(rT,_.Xb(a,{mode:"readonly",enableRetries:!0},function(Re){return vJ(Re,"playbackData").then(function(u9){var eV=u9.map(function(VF){return VF.transfer}).filter(function(VF){return!!VF}),DE=u9.map(function(VF){return VF.offlineVideoPolicy}).filter(function(VF){return!!VF}),mi=u9.filter(function(VF){return!!VF.key}).map(function(VF){return _.Nn(_.WJ(VF.key).entityId,
"downloadStatusEntity")});
eV=vJ(Re,"transfer",eV);DE=vJ(Re,"offlineVideoPolicy",DE);mi=vJ(Re,"downloadStatusEntity",mi);var p6=eV.then(function(VF){VF=VF.reduce(function(K6,P2){(P2==null?0:P2.offlineVideoStreams)&&K6.push.apply(K6,_.K8(P2.offlineVideoStreams));return K6},[]).filter(function(K6){return!!K6});
return vJ(Re,"offlineVideoStreams",VF)});
return Jw.all([eV,DE,p6,mi]).then(function(VF){var K6=_.l(VF);VF=K6.next().value;var P2=K6.next().value;var AL=K6.next().value;K6=K6.next().value;return[u9,VF,P2,AL,K6]})})}),2);
if(rT.nextAddress!=3)return W=rT.yieldResult,_.g(rT,_.Xb(a,{mode:"readonly",enableRetries:!0},function(Re){return vJ(Re,"mainDownloadsListEntity").then(function(u9){var eV,DE;return(DE=(eV=u9[0])==null?void 0:eV.downloads)!=null?DE:[]})}),3);
w=rT.yieldResult;Z=_.l(W);N=Z.next().value;B=Z.next().value;I=Z.next().value;X=Z.next().value;v=Z.next().value;U=N;O=B;S=I;T=X;p=v;h={};L={};F={};x={};G={};V=[];d=_.l(O);for(ZD=d.next();!ZD.done;ZD=d.next())(aC=ZD.value)&&(h[aC.key]=aC);Bv=_.l(S);for(Am=Bv.next();!Am.done;Am=Bv.next())(e9=Am.value)&&(L[e9.key]=e9);cv=_.l(p);for(C7=cv.next();!C7.done;C7=cv.next())(RC=C7.value)&&(F[RC.key]=RC);G8=_.l(T);for(QF=G8.next();!QF.done;QF=G8.next())(vl=QF.value)&&(x[vl.key]=vl);Hl=_.l(w);for(SV=Hl.next();!SV.done;SV=
Hl.next())Ny=SV.value,Bl=void 0,G[(Bl=Ny.videoItem)!=null?Bl:""]=!0,Ny.videoItem&&(Pl=JL=void 0,W9=(Pl=(JL=_.WJ(Ny.videoItem))==null?void 0:JL.entityId)!=null?Pl:"",V.push({externalVideoId:W9}));rC=U.filter(function(Re){if(!Re||!Re.key||!Re.offlineVideoPolicy)return!1;Re=_.WJ(Re.key).entityId;Re=_.Nn(Re,"downloadStatusEntity");var u9;return!(Re&&((u9=F[Re])==null?void 0:u9.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
le=rC.map(function(Re){var u9=h[Re.transfer],eV=[];if(u9==null?0:u9.offlineVideoStreams)for(var DE=_.l(u9.offlineVideoStreams),mi=DE.next();!mi.done;mi=DE.next())(mi=x[mi.value])&&eV.push(mi);DE=L[Re.offlineVideoPolicy];mi=G;var p6=Re==null?void 0:Re.playerResponseTimestamp,VF=_.WJ(DE.key).entityId;Re=_.Nn(VF,"mainVideoEntity");if(DE.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var K6="OFFLINE_VIDEO_STATE_DISABLED";DE.expirationTimestamp&&Number(DE.expirationTimestamp)<Date.now()/1E3&&(K6="OFFLINE_VIDEO_STATE_EXPIRED")}else if(DE.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")K6="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(u9==null?void 0:u9.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":K6="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":K6="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":K6="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":K6="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":K6="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":K6="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:K6="OFFLINE_VIDEO_STATE_UNKNOWN"}if(K6==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(u9==null?void 0:u9.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":K6="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":K6="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":K6=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}VF={id:VF,videoState:K6};if(u9==null?0:u9.cotn)VF.cotn=u9.cotn;if(u9==null?0:u9.maximumDownloadQuality)VF.selectedVideoQuality=u9==null?void 0:u9.maximumDownloadQuality;if(u9==null?0:u9.lastProgressTimeMs)VF.lastProgressTimeMs=u9.lastProgressTimeMs;p6&&(VF.playerResponseSavedTimeMs=String(Number(p6)*1E3));u9=String;p6=0;eV=_.l(eV);for(K6=eV.next();!K6.done;K6=eV.next())if(K6=K6.value,K6.streamsProgress){K6=_.l(K6.streamsProgress);for(var P2=K6.next();!P2.done;P2=
K6.next()){var AL=void 0;p6+=Number((AL=P2.value.numBytesDownloaded)!=null?AL:0)}}VF.downloadedBytes=u9(p6);VF.selectedOfflineMode=mi[Re]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";DE.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(VF.offlinePlaybackDisabledReason=DE.offlinePlaybackDisabledReason);return VF});
return rT.return({offlineVideos:le,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:V}}})})};
Pm9=function(){var a;return _.P(function(W){return W.nextAddress==1?_.g(W,_.l8(),2):(a=W.yieldResult)?W.return(_.I1m(a)):W.return({state:"PES Unavailable"})})};
gze=function(){var a,W,w,Z;return _.P(function(N){if(N.nextAddress==1)return _.g(N,_.l8(),2);if(N.nextAddress!=3)return(a=N.yieldResult)?_.g(N,XQe(a),3):N.return({state:"PES Unavailable"});W=N.yieldResult;w={};Z=W.reduce(function(B,I){B[I.key]=I;return B},w);
return N.return(vze(Z))})};
vze=function(a){for(var W={},w=[],Z=_.l(Object.keys(a)),N=Z.next();!N.done;N=Z.next()){var B=N.value;N=a[B];var I=void 0;if(((I=N)==null?void 0:I.entityType)==="mainVideoEntity"){delete a[B];var X=N.data;N={};if(X){var v=void 0;I=(v=X.videoId)!=null?v:"vid-"+B;B=a;N.video=X;delete N.video.formattedDescription;delete N.video.thumbnail;X.owner&&(v=B[X.owner],v==null?0:v.data)&&(delete B[v.key],N.video.owner=v.data,delete N.video.owner.avatar);if(X=X.downloadState)if(v=B[X],v==null?0:v.data)if(delete B[X],
X=v.data.playbackData)if(v=B[X],v!=null&&v.data){delete B[X];X=v.data;delete X.playerResponseJson;N.playbackData=X;if(X.transfer&&(v=B[X.transfer],v==null?0:v.data)){delete B[v.key];var U=v.data;N.transfer=U;v=[];U=_.l(U.offlineVideoStreams||[]);for(var O=U.next();!O.done;O=U.next())if(O=B[O.value])delete B[O.key],v.push(O.data);v&&(N.streams=v)}(X=X.offlineVideoPolicy)&&(X=B[X])&&X.data&&(delete B[X.key],N.offlineVideoPolicy=X.data)}W[I]=N}}else N&&N.entityType==="offlineOrchestrationActionWrapperEntity"&&
N.data&&(delete a[N.key],I=N.data,B=void 0,w.push({id:I.rootActionId,type:((B=I.actionProto)==null?void 0:B.actionType)||"",entity:N}))}W.wrapperEntities=w;Object.keys(a).length>0&&(W.unknownKeys=a);return W};
oze=function(){var a,W,w,Z,N,B,I,X,v;return _.P(function(U){if(U.nextAddress==1)return a=!!(new _.LJ("")).expiringStorage_,Z=!!((W=_.NH.crypto)==null?0:(w=W.subtle)==null?0:w.importKey),N=!!_.NH.BroadcastChannel,B=!!_.NH.navigator.locks,_.g(U,HSC(),2);I=U.yieldResult;X=a&&Z&&N&&B&&I;v={isSupported:X};if(X)return U.return(v);v.missingBrowserFeatures=[];I||v.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");a||v.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
Z||v.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");N||v.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");B||v.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return U.return(v)})};
kje=function(){var a;return!((a=gO?gO:null)==null||!a.window)};
_.Osm=function(a){if(_.L7()&&_.Xve("Chromium")>=120){var W=_.Uux().mediaSession;try{W.setActionHandler("enterpictureinpicture",function(){a()})}catch(w){}}};
SgI=function(a){for(var W=[],w=_.l(document.styleSheets),Z=w.next(),N={};!Z.done;N={node$jscomp$724:void 0},Z=w.next())N.node$jscomp$724=Z.value.ownerNode,N.node$jscomp$724&&(N.node$jscomp$724 instanceof HTMLStyleElement||N.node$jscomp$724 instanceof HTMLLinkElement)&&W.push(new Promise(function(B){return function(I){var X=B.node$jscomp$724.cloneNode(!0);X.onload=function(){I()};
X.onerror=function(){_.jJ(Error("ej"));I()};
a.document.head.appendChild(X)}}(N)));
return Promise.all(W)};
eoD=function(a){var W=[_.z2(YgF),_.z2(TWI),_.z2(KEx)];pQF(window.document.documentElement,a.document.documentElement,[_.z2(rXC),_.z2(AXe),_.z2(ho8),_.z2(isv),_.z2(cXC)]);pQF(window.document.body,a.document.body,W)};
pQF=function(a,W,w){a=_.l(a.attributes);for(var Z=a.next();!Z.done;Z=a.next())if(Z=Z.value)try{_.bq(w,W,Z.name,Z.value)}catch(N){}};
jbI=function(a,W){a=new _.oI(a.document.documentElement);a.start(nz8,W);return a};
LEE=function(a){var W=a.document.documentElement;W.addEventListener("click",function(w){WPC(W,w)});
W.addEventListener("touchstart",function(w){$ce(w)});
W.addEventListener("mousedown",function(w){$ce(w)})};
FEv=function(a,W,w,Z){Z=Z===void 0?!1:Z;W=new JXU(W||a,w||a);return{x:a.x+((Z===void 0?0:Z)?W.lengthX*-1:W.lengthX)*.2,y:a.y+((Z===void 0?0:Z)?W.lengthY*-1:W.lengthY)*.2}};
Mqe=function(a){if(!a)return!1;var W=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",w,Z,N,B=(N=(w=a.errorScreen)==null?void 0:w.playerLegacyDesktopYpcTrailerRenderer)!=null?N:(Z=a.errorScreen)==null?void 0:Z.ypcTrailerRenderer;return!!W||!!B};
_.RoU=function(a,W){if(!a)return!1;var w,Z=(w=a.errorScreen)==null?void 0:w.playerLegacyDesktopYpcOfferRenderer,N;W=!!(W==null?0:(N=W.playerOverlayRenderer)==null?0:N.gatedActionsOverlayRenderer);return!!Mqe(a)||!!Z||!!W};
qgS=function(a){return a.includes("gclid")||a.includes("gad_source")};
bs7=function(a){var W=[],w=0;return{push:function(Z){W[w]=Z;w=(w+1)%a},
iterate:function(){return function N(){var B,I,X,v;return _.QbS(N,function(U){switch(U.nextAddress){case 1:_.lb(U,2),B=W.length,I=0;case 4:if(!(I<B)){U.jumpTo(2);break}X=w+I;v=_.xuH;return _.g(U,W[X%B],7);case 7:v(U.yieldResult);I++;U.jumpTo(4);break;case 2:_.$8(U),_.In(U,0)}})}()}}};
ua9=function(){var a=_.yv("web_max_tracing_events",0);_.r("web_enable_tracing")&&a>0&&sbE(a)};
sbE=function(a){var W=bs7(a);zxU({sample:function(w,Z){return w==="event"?!CmH.has(Z==null?void 0:Z.type):!1},
spanProcessors:[{onSpanStart:function(w){W.push(w)}}]});
FYC.subscribe("handleError",function(w){try{Object.assign(w.params,{breadcrumbs:JSON.stringify(Array.from(W.iterate()))})}catch(Z){_.eJ(Z,"ERROR")}})};
GjD=function(a){return new Promise(function(W){window.setTimeout(W,a)})};
Dux=function(a){var W={bicf:function(B){a.jKr=B},
blc:function(){return a.getLatestChallengeResponse()},
bcr:function(B){a.xrA.push(B)}},w=window.top;
w.ntpevasrs=W;if(w.ntpqfbel!==void 0)for(var Z=_.l(w.ntpqfbel),N=Z.next();!N.done;N=Z.next())N=N.value,N(W);w.ntpqfbel=void 0};
f1U=function(a){return _.P(function(W){if(W.nextAddress==1)return _.tq(W,2),_.g(W,a.m77(),4);if(W.nextAddress!=2)return _.qY(W,0);_.Pb(W);_.Xd(W)})};
due=function(a){var W,w;(W=a.ytcsi)==null||(w=W.tick)==null||w.call(W,"pot_ist")};
muC=function(a){if(a instanceof Error){var W=_.RT("yt.logging.errors.log");W&&W(a,"WARNING")}};
Vqe=function(a){try{var W=JSON.parse(a);if(W.bgChallenge)return W}catch(w){}};
Hsx=function(){var a=window,W={networkStatusManagerPromise:_.K().resolve(new Foe(_.xm)),initialChallengeSli:_.r("wpo_att_sli")?new _.fQx("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};a=a===void 0?window:a;var w=a.ytAtR,Z;W==null||(Z=W.initialChallengeSli)==null||_.kX(Z);if(w){if(w=Vqe(w)){var N;W==null||(N=W.initialChallengeSli)==null||_.U9(N,"SUCCESS");zo9(w,W)}a.ytAtR=void 0}else a.ytAtRC=function(B){if(B=Vqe(B)){var I;W==null||(I=W.initialChallengeSli)==null||_.U9(I,
"SUCCESS");zo9(B,W);a.ytAtRC=void 0}}};
a0S=function(){if(yXe)return yXe;try{var a=_.PM("IFRAME");_.nv(a,_.ya(Ezm));a.sandbox.add("allow-same-origin");a.style.display="none";document.body.appendChild(a);return yXe=a}catch(W){a=new _.Uw("Failed to create sandbox iframe"),_.eJ(a)}};
WSC=function(a){var W,w;return(w=a==null?void 0:(W=a.contentWindow)==null?void 0:W.fetch)!=null?w:window.fetch};
wfI=function(a){var W,w;return(w=a==null?void 0:(W=a.contentWindow)==null?void 0:W.JSON.parse)!=null?w:JSON.parse};
ZVm=function(a){var W,w;return(w=a==null?void 0:(W=a.contentWindow)==null?void 0:W.Request)!=null?w:window.Request};
$Ze=function(){if(f3S()==="hidden")var a="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else f3S()==="visible"&&(a="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",NGS=null);a&&tp8(a)};
tp8=function(a){if(a==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||a==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(BGe===a)return;BGe=a}var W=9E4+Math.random()*2E3;if(a!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.HI()>W)&&f3S()==="visible"){W=-1;NGS&&(W=Math.round((0,_.mG)()-NGS));var w=String;var Z=_.RT("_fact",window);Z=Z==null||Z==-1?-1:Math.max(Date.now()-Z,0);_.ia("foregroundHeartbeat",{firstActivityMs:w(Z),clientDocumentNonce:haS,index:String(l0x),lastEventDeltaMs:String(W),trigger:a});
_.Dp("_fact",-1,window);l0x++;NGS=(0,_.mG)()}};
_.I09=function(){try{return!!self.sessionStorage}catch(a){return!1}};
PyC=function(){var a=navigator;return new Promise(function(W,w){var Z;(Z=a.webkitTemporaryStorage)!=null&&Z.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(N,B){W({usage:N,quota:B})},function(N){w(N)}):w(Error("mj"))})};
XfU=function(a,W){var w={errorSeverity:W.errorSeverity.toString(),wizFeatureFlags:Object.entries(W.featureFlags).join("\n")};TJ8(W,w);W=W.errorSeverity;W===3?_.eJ(a,"ERROR",void 0,void 0,void 0,w):W===2&&_.eJ(a,"WARNING",void 0,void 0,void 0,w);_.r("cow_if_errors_in_popup")&&W===3&&a.message.indexOf("<If>")!==-1&&window.alert(a.message)};
vaI=function(a,W,w){a.componentType!==k1&&w instanceof HTMLElement&&W&&!_.r("cow_logging_in_component_wrapper")&&ZcE(w,W,!0)};
gaI=function(a,W,w){W=W===void 0?{}:W;var Z,N=(Z=_.A(a.commandMetadata,_.mm))==null?void 0:Z.url;Z=W.form||{};!w||Z.element||Z.skipDefaultElement||(W.form=W.form||{},W.form.element=w);if(N&&N!=="/service_ajax")return{type:0,command:a,form:W.form};if(_.r("kevlar_service_command_check")){if(_.Fq(_.K().resolve(_.O6),a))return Object.assign({},{type:1,command:a},W)}else{var B;if((B=_.A(a.commandMetadata,_.mm))==null?0:B.apiUrl)return Object.assign({},{type:1,command:a},W)}return{type:2,command:a,form:W.form}};
oa7=function(a){if(a.form){var W=a.form,w=Object.assign({},W);W=W.element;w=(delete w.element,w);if(W)return[_.Z9(W,[a.command,w,a.commandController])]}return[]};
kT8=function(a){if(a.form){var W=a.form,w=Object.assign({},W);W=W.element;w=(delete w.element,w);W&&_.N1(W,[a.command],W,w)}};
OVe=function(a,W,w){var Z=new UZC(a,W),N=new O9(a,W,w);a={"/youtubei/v1/browse":new Sa(a,W,w),"/youtubei/v1/player":Z,"/youtubei/v1/navigation/resolve_url":new YX,"/youtubei/v1/next":N,"/youtubei/v1/guide":new TS(w),"/youtubei/v1/search":new K4(a,W,w),"/youtubei/v1/reel/reel_item_watch":new p4(a,W,w),"/youtubei/v1/get_watch":new rO(Z,N)};a["/youtubei/v1/account/account_menu"]=new AN;a["/youtubei/v1/notification/get_notification_menu"]=new hN;return a};
cN=function(){var a=_.K().resolve(iV);return Promise.resolve(SOI(a,_.NH.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
YOe=function(a){return a&&(a=_.ea(_.API(a)))?(new URLSearchParams(a)).get("service"):null};
L4=function(a,W){_.mY(_.n4(),function(){_.Ak("adl")});
_.K().resolve(TGx)(W);a=a.root;a.loadData&&a.loadData(W);(W==null?0:W.response)?_.U9(VXI(),"SUCCESS"):_.jJ(new _.Uw("Lifecycle: No response in data",_.JS("IS_SHELL_LOAD"),W?W.page:"NO_PAGE",W?W.endpoint:"NO_ENDPOINT"));a.polymerController.$["page-manager"].lazyPrepareCriticalPages((W==null?void 0:W.page)||"",W.endpoint);var w,Z;((Z=_.A(W==null?void 0:(w=W.endpoint)==null?void 0:w.commandMetadata,_.mm))==null?0:Z.webPageType)&&_.Cx().dispatch(_.ja(_.A(W.endpoint.commandMetadata,_.mm).webPageType))};
KSD=function(){var a,W;return _.P(function(w){switch(w.nextAddress){case 1:a=window;if(!a.getDataPromise){w.jumpTo(2);break}_.tq(w,3);return _.g(w,a.getDataPromise(),5);case 5:return w.return(w.yieldResult);case 3:return _.Pb(w),_.g(w,cN(),6);case 6:return w.return(w.yieldResult);case 2:if(a.getInitialData)return W=a.getInitialData(),a.getInitialData=void 0,w.return(W);throw Error("oj`"+_.NH.location.href);}})};
rBE=function(){_.jm("CSI_SERVICE_NAME","youtube");_.pD({loadType:"cold"});_.r("kevlar_log_lcp")&&pfC(function(a){_.Ak("lcp",a.value)})};
AB8=function(){var a=_.JK(document.location.href,"enable");a&&a.indexOf("scraper")>-1&&_.jm("ADD_SCRAPER_ATTRIBUTES",!0)};
naF=function(a){var W=a.root;a=[h4F,iVI,_.JN];_.r("web_feedback_endpoint_autolog_allowlist_killswitch")&&a.push(_.F2,cBH);e4S(function(w,Z){return gaI(w,Z,W)},function(w){if(!w.command)return[];
var Z;((Z=w.form)==null?0:Z.element)?w.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},w.form,{endpoint:w.command})})):W.handleNavigate(w);return[]},a);
_.K().addProvider({provide:_.zU,useValue:_.WX.instance})};
LSD=function(){var a={},W={},w;for(w in jom){var Z=_.l(_.$1(jom[w],void 0,"NBH2te"));a[w]=Z.next().value;W[w]=Z.next().value}return[a,function(N){for(var B in N){var I=void 0;(I=W[B])==null||I(N[B])}}]};
_.MpC=function(a,W){var w=_.T5.getValueByKeys(a,"contents","twoColumnWatchNextResults","results","results","contents"),Z=_.T5.getValueByKeys(a,"contents","twoColumnWatchNextResults","playlist","playlist")||null,N=null,B=null;if(Z)N=_.T5.getValueByKeys(Z,"titleText"),B=_.T5.unsafeClone(_.T5.getValueByKeys(Z,"longBylineText")),w="",B&&(w=_.sd(B)),B=_.b8(w);else if(w){w=_.l(w);for(var I=w.next();!I.done;I=w.next())I=I.value,I.videoPrimaryInfoRenderer&&(N=_.T5.getValueByKeys.apply(_.T5,[I].concat(_.K8(JB7)))),
I.videoSecondaryInfoRenderer&&(B=_.T5.getValueByKeys.apply(_.T5,[I].concat(_.K8(FSI))))}else _.qx(Error("tj"));var X;a.currentVideoEndpoint?X=a.currentVideoEndpoint:_.qx(Error("uj"));var v;W&&(v=_.T5.getValueByKeys(W,"playabilityStatus","miniplayer","miniplayerRenderer"));a={miniplayerTitle:N,miniplayerSubtitle:B,watchEndpoint:X,playlistData:Z};v&&(a.miniplayerRenderer=v);return a};
R4H=function(a){if(a)return _.YJ(a)};
_.qOH=function(){return{isFullscreen:function(){throw Error("vj");},
toggleFullscreen:function(){throw Error("wj");},
exitFullscreen:function(){throw Error("xj");},
isAutonavEnabled:function(){throw Error("yj");},
setAutonavEnabled:function(){throw Error("zj");},
isAutoplaySetExplicitly:function(){throw Error("Aj");}}};
Qoe=function(a){return a.videoDuration?a.numTaps>1&&a.tapDirection!==0?_.M9(a.draggedTime/a.videoDuration,0,1):_.M9((a.playedTime||0)/a.videoDuration,0,1):0};
xZF=function(a){return a.videoDuration?a.isDragging||a.numTaps>1&&a.tapDirection!==0?_.M9(a.draggedTime/a.videoDuration,0,1):_.M9((a.playedTime||0)/a.videoDuration,0,1):0};
so8=function(a){var W,w,Z;return _.A(a==null?void 0:(W=a.markersMap)==null?void 0:(w=W.find(function(N){return N.key==="HEATSEEKER"}))==null?void 0:(Z=w.value)==null?void 0:Z.heatmap,bVH)};
u3e=function(a){var W,w;return(w=(W=so8(a))==null?void 0:W.heatMarkersDecorations)!=null?w:[]};
Cyv=function(a){if(_.r("mweb_supported_chapters_killswitch"))return!0;var W;return!!(a==null?0:(W=a.markersMap)==null?0:W.find(function(w){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(w.key)}))};
_.GTU=function(a){var W=Object,w=W.assign,Z;a={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(Z=a==null?void 0:a.getPlayerState())!=null?Z:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return w.call(W,{},{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})};
DZC=function(a){return function(W){var w=a(),Z,N=(Z=w.playerApi)==null?void 0:Z.getPlayerState();W&&W!==w.playerState&&(W===1||W===2)&&w.setState({playerState:N})}};
dZD=function(a){return function(W){var w=a(),Z=w.playerApi;Z&&(W==null?void 0:W.type)==="newdata"&&(f0e&&(clearTimeout(f0e),f0e=void 0),_.r("web_shorts_use_progress_state_for_gapless")?(W=Z==null?void 0:Z.getProgressState(W==null?void 0:W.playertype),W=W.seekableEnd-W.seekableStart):W=Z==null?void 0:Z.getDuration(W==null?void 0:W.playertype),w.setState({playedTime:0,videoDuration:W}))}};
mZ8=function(a){return function(W){var w=a(),Z=w.playerApi;if(Z){var N=Z.getPresentingPlayerType();_.r("web_shorts_use_progress_state_for_gapless")?(Z=Z.getProgressState(N),Z=Z.seekableEnd-Z.seekableStart):Z=Z.getDuration(N);w.setState({playedTime:W,videoDuration:Z})}}};
HVe=function(a){var W=a.element;var w=a.veType;var Z=a.storedVisualElement===void 0?null:a.storedVisualElement;var N=a.elementIndex===void 0?0:a.elementIndex;a=a.clientYouTubeData;var B=_.nS();B!==VpC&&(z4S.clear(),VpC=B);if(W.visualElement&&z4S.has(W.visualElement))return null;if(Z&&z4S.has(Z))return W.visualElement=Z,null;w=_.tQ(_.$J(),{veType:w,elementIndex:N,clientYouTubeData:a});if(!w)return null;W.visualElement=w;z4S.add(w);return w};
_.RI=function(a,W,w,Z){w=w===void 0?null:w;Z=Z===void 0?lXE:Z;var N=N===void 0?null:N;kJ(function(){if(W){w instanceof Function&&(w=w());var B=HVe({element:W,veType:a,storedVisualElement:w,clientYouTubeData:void 0});B&&(XLU(W,N),Z(B))}})};
Ea7=function(a){_.RI(112394,a,function(){return yBF},function(W){yBF=W})};
wDH=function(a,W){if(!a)return[];var w,Z,N;a=((w=a.markersMap)==null?void 0:(Z=w.find(function(B){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(B.key)}))==null?void 0:(N=Z.value)==null?void 0:N.chapters)||[];
!aRU(a)||(W==null?0:W.ignoreStub)||(a=[Wrx()].concat(_.K8(a)));return a};
Wrx=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
aRU=function(a){if(a.length===0)return!1;var W;return((W=_.A(a[0],q9))==null?void 0:W.timeRangeStartMillis)!==0};
QA=function(a){return a?a.timeRangeStartMillis||0:0};
NRD=function(a,W){if(a.isDragging&&W)return a=ZED(a,W),a===-1?Wrx():wDH(W)[a]};
ZED=function(a,W){return a.isDragging&&W?wDH(W,{ignoreStub:!0}).findIndex(function(w,Z,N){w=tAC(a);return $4H(w,N,Z).scrubberHovering}):-1};
tAC=function(a){return Object.assign({},a,{videoDuration:a.videoDuration*1E3,playedTime:a.playedTime*1E3,draggedTime:a.draggedTime*1E3})};
$4H=function(a,W,w){var Z=QA(_.A(W[w],q9));W=QA(_.A(W[w+1],q9))||a.videoDuration;w=a.isDragging;var N;if(N=a.isDragging)N=a.draggedTime,N=N!==null&&N>=Z&&N<W;var B=a.playedTime;return B!==null&&B>=Z&&B<W?{videoPosition:"active",isScrubbing:w,scrubberHovering:N}:a.playedTime<Z?{videoPosition:"pending",isScrubbing:w,scrubberHovering:N}:{videoPosition:"seen",isScrubbing:w,scrubberHovering:N}};
BRH=function(a,W){return a.videoPosition==="seen"||(W===void 0?0:W)>0};
lRC=function(a,W,w){W=a/W.storyboardInterval;var Z=wDH(w);if(!Z.length)return-W*72;w=0;Z=_.l(Z);for(var N=Z.next();!N.done;N=Z.next())if(QA(_.A(N.value,q9))/1E3<a)w++;else break;return-(W*72)-w*56};
IRD=function(a){return a?a.width/a.columns:0};
Pox=function(a){return a.isHovering?a.hoveredTime:a.draggedTime};
XDH=function(a,W){a=a.draggedTime*1E3;return a>=W.visibleTimeRangeStartMillis&&a<=W.visibleTimeRangeEndMillis};
_.vPF=function(a){if(a===void 0||Number.isNaN(a))return"--:--";var W=Math.abs(Math.floor(a)),w=Math.floor(W/86400),Z=Math.floor(W%86400/3600),N=Math.floor(W%3600/60);W=Math.floor(W%60);var B="";w>0&&(B+=w+":",Z<10&&(B+="0"));if(w>0||Z>0)B+=Z+":",N<10&&(B+="0");B+=N+":";W<10&&(B+="0");B+=W;return a>=0?B:"-"+B};
gPe=function(a,W){return function(){var w=Pox(a());var Z=W();var N=a().playerApi;if(N&&N.getNumberOfStoryboardLevels()!==0){var B=N.getStoryboardFrameIndex(w,1);B!==-1?Z=N.getStoryboardFrame(B,1):(w=N.getStoryboardFrameIndex(w,0),N=N.getStoryboardFrame(w,0),Z&&N&&(N.height*=3,N.width*=3),Z=N)}else Z=null;if(!Z)return null;W()&&(Z.width=90*Z.columns,Z.height=160*Z.rows);return Z}};
_.xX=function(a){if(!a||a.getVideoData)return a};
oPF=function(){var a;return{playerApi:(a=_.ZB())!=null?a:void 0}};
_.YzH=function(a){function W(aC){aC!==0||S?aC>50&&(S||!p)?(T(!1),h(!0)):aC<=50&&(S||p)&&(T(!1),h(!1)):T(!0)}
function w(){var aC;return _.P(function(Bv){if(Bv.nextAddress==1)return _.g(Bv,_.wP(),2);(aC=Bv.yieldResult)&&(aC.isMuted()?T(!0):T(!1));_.Xd(Bv)})}
var Z=a.noSlider;var N=a.orientation;a=_.D8();var B=_.D8(),I=_.fH(),X=_.l($D(!1)),v=X.next().value,U=X.next().value,O=_.l($D(!1));X=O.next().value;O=O.next().value;var S=X,T=O;O=_.l($D(!0));X=O.next().value;O=O.next().value;var p=X,h=O;X=N==="vertical_down";_.AS(function(){function aC(){U(!0)}
function Bv(){U(!1)}
Z?(w(),W(S?0:100)):I&&I.value&&(I.value.addEventListener("focus",aC),I.value.addEventListener("focusout",Bv),kI7(I.value).then(function(){W(Number(U4e(I.value)))}));
B&&B.value&&(B.value.addEventListener("focus",aC),B.value.addEventListener("focusout",Bv));return function(){var Am;I==null||(Am=I.value)==null||Am.removeEventListener("focus",aC);var e9;I==null||(e9=I.value)==null||e9.removeEventListener("focusout",Bv);B.value.removeEventListener("focus",aC);B.value.removeEventListener("focusout",Bv)}});
var L=_.$_(function(){if(I&&I.value){var aC=Number(U4e(I.value));OEE(aC);I.value.style.setProperty("--gradient-percent",aC+"%");W(aC)}return!1});
O={};O=(O.ytdDesktopShortsVolumeControlsHost=!0,O.ytdDesktopShortsVolumeControlsHostVertical=X,O.ytdDesktopShortsVolumeControlsHostExpanded=v,O);var F={},x=(F.ytdDesktopShortsVolumeControlsSliderContainer=!0,F.ytdDesktopShortsVolumeControlsSliderContainerExpanded=v,F.ytdDesktopShortsVolumeControlsSliderContainerVertical=X,F.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=N==="vertical_down",F.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=v&&X,F);N={};var G=(N.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,N.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=Z?!1:v,N);v={};v=(v.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=X,v);N=_.$_(function(){U(!0)});
F=_.$_(function(){U(!1)});
var V=_.$_(function(){if(I&&I.value||Z)Sze(I.value,S,Z),T(!S);return!1}),d=_.r("web_shorts_keyboard_enable_mute_shortcut")?S?_.P_("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.P_("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):S?_.P_("UNMUTE_VOLUME",void 0,"Unmute"):_.P_("MUTE_VOLUME",void 0,"Mute"),ZD={sources:[{clientResource:{imageName:S?"VOLUME_OFF_FILLED":p?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.k("desktop-shorts-volume-controls",{"on:pointerleave":F,class:_.ZK(O),el:a},uJ(!X,function(){return _.k("div",{class:_.ZK(G)})}),_.k("div",{class:_.ZK(v)},_.k("button",{"aria-label":d,
title:d,el:B,"on:click":V,"on:pointerenter":N,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},ZD?_.k(_.qw,{data:ZD,alt:d,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),uJ(!Z,function(){return _.k("div",{class:_.ZK(x)},_.k("input",{"aria-label":_.P_("VOLUME"),title:_.P_("VOLUME"),el:I,"on:input":L,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
kI7=function(a){var W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,_.wP(),2);W=Z.yieldResult;w=50;W&&(w=W.getVolume(),W.isMuted()?TR7(a,0):TR7(a,w));_.Xd(Z)})};
OEE=function(a){var W;_.P(function(w){if(w.nextAddress==1)return _.g(w,_.wP(),2);if(W=w.yieldResult)W.unMute(!0),W.setVolume(a,!0);_.Xd(w)})};
TR7=function(a,W){a&&(a.value=""+W,a.style.setProperty("--gradient-percent",W+"%"))};
U4e=function(a){var W;return(W=a==null?void 0:a.value)!=null?W:0};
Sze=function(a,W,w){var Z;_.P(function(N){if(N.nextAddress==1)return _.g(N,_.wP(),2);Z=N.yieldResult;W&&Z?(Z.unMute(!0),!w&&a&&TR7(a,Z.getVolume())):Z&&(Z.mute(!0),!w&&a&&TR7(a,0));_.Xd(N)})};
Kr8=function(){var a;_.P(function(W){if(W.nextAddress==1)return _.g(W,_.wP(),2);a=W.yieldResult;if(!a)return W.return();a.isMuted()?a.unMute(!0):a.mute(!0);_.Xd(W)})};
pDF=function(a){var W=_.K().resolve(_.bV).getPlayerElement();W&&a&&(a===1?W.pause():W.play())};
rUe=function(a){_.W_(a,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
AUI=function(a){_.W_(a,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
iEC=function(a){return _.KF(a.document.body,function(){return _.k(hMH,null)})};
cU8=function(){var a=window.performance.getEntriesByType("navigation");return a?a.map(function(W){return W.type}).includes("reload"):!1};
RM8=function(){s9(s9(s9(s9(s9(s9(s9(_.K().resolve(_.uV),_.eME),_.nP9),_.jhe),_.LrD),_.JUe),_.Fre),_.MAe)};
qzx=function(a,W){W=W===void 0?!1:W;var w,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return W||!_.r("kevlar_shorts_seedless_retry_initial_load")||(w=window,Z=!(!w.getDataPromise&&!w.getInitialData),Z)?_.g(I,KSD(),2):(setTimeout(qzx.bind(window,a,!0),1E3),I.return());if(I.nextAddress!=3)return N=I.yieldResult,_.g(I,QhS(N),3);B=I.yieldResult;L4(a,B);_.Xd(I)})};
QhS=function(a){var W;if((W=a.response)==null||!W.replacementEndpoint)return _.tk(a);W=_.K().resolve(iV);a=a.response;_.A(a.replacementEndpoint,_.gi)&&a.sequenceContinuation&&(_.A(a.replacementEndpoint,_.gi).sequenceParams=a.sequenceContinuation);return C4(W,a.replacementEndpoint,{},_.NH.location.href,"shorts",function(){},function(){return!1})};
x4F=function(a){var W=_.Cx(),w,Z=_.A((w=a.response)==null?void 0:w.frameworkUpdates,Q6),N;w=_.A((N=a.playerResponse)==null?void 0:N.frameworkUpdates,Q6);var B;a=_.A((B=a.reelWatchSequenceResponse)==null?void 0:B.frameworkUpdates,Q6);Z&&_.PJ(Z,W);w&&_.PJ(w,W);a&&_.PJ(a,W)};
bED=function(a){var W;_.r("enable_redirect_linking_for_desktop_web_client")&&((W=window.location.hash)==null?0:W.includes("redirect_state"))&&a.url&&(a.url=a.url.toString()+window.location.hash)};
Com=function(a){var W=_.K(),w=W.resolve(iV);W=W.resolve(_.shv);a.endpoint&&(w=uOI(w,a.endpoint),w.content&&a.response&&_.GS(W,a.response,w.content),w.player&&a.playerResponse&&_.GS(W,a.playerResponse,w.player),w.reelSequence&&a.reelWatchSequenceResponse&&_.GS(W,a.reelWatchSequenceResponse,w.reelSequence))};
Dd=function(a,W){x4F(W);var w;(W==null?0:W.url)&&((w=window.location.hash)==null?0:w.includes("redirect_state"))&&(bED(W),(w=YOe(W.url))&&_.aV(a.root,"yt-initialize-third-party",[w,W]));Com(W);w=_.K();var Z=w.resolve(GIC);W.playerResponse&&w.resolve(D4m).handleResponse(W.playerResponse);if(W.playerResponse){w=void 0;if(_.r("ab_v_vid_sig")&&W.endpoint){var N,B=(N=_.A(W.endpoint,_.u6))!=null?N:_.A(W.endpoint,_.gi);B&&(w=B.videoId)}fRI(Z,W.playerResponse,w)}W.playerResponse&&Xw9(W.playerResponse)&&_.r("web_enable_ab_rsp_cl")?
bi9().then(function(){d4x(Z,W.playerResponse);L4(a,W)}):L4(a,W)};
VAU=function(a){if(a=a.root.data){var W=_.K().resolve(m4v);a.endpoint&&(a.response&&W.handleResponse(a.response,void 0,document.querySelector("ytd-app")),a.playerResponse&&W.handleResponse(a.playerResponse),a.reelWatchSequenceResponse&&W.handleResponse(a.reelWatchSequenceResponse))}};
zMI=function(a){var W,w,Z,N,B,I;return _.P(function(X){switch(X.nextAddress){case 1:W=window;if(!W.getDataPromise){X.jumpTo(2);break}_.tq(X,3);return _.g(X,W.getDataPromise(),5);case 5:w=X.yieldResult;Dd(a,w);_.qY(X,4);break;case 3:return _.Pb(X),_.g(X,cN(),6);case 6:Z=X.yieldResult,L4(a,Z);case 4:return X.return();case 2:if(!_.r("sw_nav_preload_pbj")){X.jumpTo(7);break}W.fetchInitialData=function(){var v;return _.P(function(U){if(U.nextAddress==1)return _.g(U,cN(),2);v=U.yieldResult;L4(a,v);_.Xd(U)})};
if(W.getInitialData){W.loadInitialData=function(v){Dd(a,v)};
N=W.getInitialData();W.getInitialData=void 0;Dd(a,N);X.jumpTo(8);break}W.fetchInitialData=void 0;return _.g(X,cN(),9);case 9:B=X.yieldResult,L4(a,B);case 8:return X.return();case 7:W.getInitialData?(I=W.getInitialData(),W.getInitialData=void 0,Dd(a,I)):W.loadInitialData=function(v){Dd(a,v)},_.Xd(X)}})};
HEF=function(a){var W=0;return function(){return W<a.length?{done:!1,value:a[W++]}:{done:!0}}};
yU8=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,W,w){if(a==Array.prototype||a==Object.prototype)return a;a[W]=w.value;return a};
EPC=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var W=0;W<a.length;++W){var w=a[W];if(w&&w.Math==Math)return w}throw Error("a");};
_.dU=EPC(this);f4=function(a,W){if(W)a:{var w=_.dU;a=a.split(".");for(var Z=0;Z<a.length-1;Z++){var N=a[Z];if(!(N in w))break a;w=w[N]}a=a[a.length-1];Z=w[a];W=W(Z);W!=Z&&W!=null&&yU8(w,a,{configurable:!0,writable:!0,value:W})}};
f4("Symbol",function(a){if(a)return a;var W=function(B,I){this.$jscomp$symbol$id_=B;yU8(this,"description",{configurable:!0,writable:!0,value:I})};
W.prototype.toString=function(){return this.$jscomp$symbol$id_};
var w="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",Z=0,N=function(B){if(this instanceof N)throw new TypeError("b");return new W(w+(B||"")+"_"+Z++,B)};
return N});
f4("Symbol.iterator",function(a){if(a)return a;a=Symbol("c");for(var W="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),w=0;w<W.length;w++){var Z=_.dU[W[w]];typeof Z==="function"&&typeof Z.prototype[a]!="function"&&yU8(Z.prototype,a,{configurable:!0,writable:!0,value:function(){return a_F(HEF(this))}})}return a});
f4("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
var a_F=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a},WCD=typeof Object.create=="function"?Object.create:function(a){var W=function(){};
W.prototype=a;return new W},wrU=function(){function a(){function w(){}
new w;Reflect.construct(w,[],function(){});
return new w instanceof w}
if(typeof Reflect!="undefined"&&Reflect.construct){if(a())return Reflect.construct;var W=Reflect.construct;return function(w,Z,N){w=W(w,Z);N&&Reflect.setPrototypeOf(w,N.prototype);return w}}return function(w,Z,N){N===void 0&&(N=w);
N=WCD(N.prototype||Object.prototype);return Function.prototype.apply.call(w,N,Z)||N}}(),ZnH;
if(typeof Object.setPrototypeOf=="function")ZnH=Object.setPrototypeOf;else{var NAI;a:{var the={a:!0},$NF={};try{$NF.__proto__=the;NAI=$NF.a;break a}catch(a){}NAI=!1}ZnH=NAI?function(a,W){a.__proto__=W;if(a.__proto__!==W)throw new TypeError("e`"+a);return a}:null}dO=ZnH;
_.c=function(a,W){a.prototype=WCD(W.prototype);a.prototype.constructor=a;if(dO)dO(a,W);else for(var w in W)if(w!="prototype")if(Object.defineProperties){var Z=Object.getOwnPropertyDescriptor(W,w);Z&&Object.defineProperty(a,w,Z)}else a[w]=W[w];a.superClass_=W.prototype};
_.l=function(a){var W=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(W)return W.call(a);if(typeof a.length=="number")return{next:HEF(a)};throw Error("f`"+String(a));};
bJ=function(a){for(var W,w=[];!(W=a.next()).done;)w.push(W.value);return w};
_.K8=function(a){return a instanceof Array?a:bJ(_.l(a))};
_.ma=function(a){return BA9(a,a)};
BA9=function(a,W){a.raw=W;Object.freeze&&(Object.freeze(a),Object.freeze(W));return a};
VA=function(a,W){return Object.prototype.hasOwnProperty.call(a,W)};
l_v=typeof Object.assign=="function"?Object.assign:function(a,W){for(var w=1;w<arguments.length;w++){var Z=arguments[w];if(Z)for(var N in Z)VA(Z,N)&&(a[N]=Z[N])}return a};
f4("Object.assign",function(a){return a||l_v});
var I_S=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},PWD=function(a){if(a.isRunning_)throw new TypeError("h");
a.isRunning_=!0};
I_S.prototype.JSC$6638_next_=function(a){this.yieldResult=a};
var XrC=function(a,W){a.abruptCompletion_={exception:W,isException:!0};a.nextAddress=a.catchAddress_||a.finallyAddress_};
I_S.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
_.g=function(a,W,w){a.nextAddress=w;return{value:W}};
I_S.prototype.jumpTo=function(a){this.nextAddress=a};
_.Xd=function(a){a.nextAddress=0};
_.tq=function(a,W,w){a.catchAddress_=W;w!=void 0&&(a.finallyAddress_=w)};
_.lb=function(a,W){a.catchAddress_=0;a.finallyAddress_=W||0};
_.qY=function(a,W,w){a.nextAddress=W;a.catchAddress_=w||0};
_.Pb=function(a,W){a.catchAddress_=W||0;W=a.abruptCompletion_.exception;a.abruptCompletion_=null;return W};
_.$8=function(a,W,w,Z){Z?a.finallyContexts_[Z]=a.abruptCompletion_:a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=W||0;a.finallyAddress_=w||0};
_.In=function(a,W,w){w=a.finallyContexts_.splice(w||0)[0];(w=a.abruptCompletion_=a.abruptCompletion_||w)?w.isException?a.nextAddress=a.catchAddress_||a.finallyAddress_:w.jumpTo!=void 0&&a.finallyAddress_<w.jumpTo?(a.nextAddress=w.jumpTo,a.abruptCompletion_=null):a.nextAddress=a.finallyAddress_:a.nextAddress=W};
vne=function(a){this.JSC$6643_context_=new I_S;this.program_=a};
onE=function(a,W){PWD(a.JSC$6643_context_);var w=a.JSC$6643_context_.yieldAllIterator_;if(w)return gnv(a,"return"in w?w["return"]:function(Z){return{value:Z,done:!0}},W,a.JSC$6643_context_.return);
a.JSC$6643_context_.return(W);return zS(a)};
gnv=function(a,W,w,Z){try{var N=W.call(a.JSC$6643_context_.yieldAllIterator_,w);if(!(N instanceof Object))throw new TypeError("g`"+N);if(!N.done)return a.JSC$6643_context_.isRunning_=!1,N;var B=N.value}catch(I){return a.JSC$6643_context_.yieldAllIterator_=null,XrC(a.JSC$6643_context_,I),zS(a)}a.JSC$6643_context_.yieldAllIterator_=null;Z.call(a.JSC$6643_context_,B);return zS(a)};
zS=function(a){for(;a.JSC$6643_context_.nextAddress;)try{var W=a.program_(a.JSC$6643_context_);if(W)return a.JSC$6643_context_.isRunning_=!1,{value:W.value,done:!1}}catch(w){a.JSC$6643_context_.yieldResult=void 0,XrC(a.JSC$6643_context_,w)}a.JSC$6643_context_.isRunning_=!1;if(a.JSC$6643_context_.abruptCompletion_){W=a.JSC$6643_context_.abruptCompletion_;a.JSC$6643_context_.abruptCompletion_=null;if(W.isException)throw W.exception;return{value:W.return,done:!0}}return{value:void 0,done:!0}};
kLC=function(a){this.next=function(W){PWD(a.JSC$6643_context_);a.JSC$6643_context_.yieldAllIterator_?W=gnv(a,a.JSC$6643_context_.yieldAllIterator_.next,W,a.JSC$6643_context_.JSC$6638_next_):(a.JSC$6643_context_.JSC$6638_next_(W),W=zS(a));return W};
this.throw=function(W){PWD(a.JSC$6643_context_);a.JSC$6643_context_.yieldAllIterator_?W=gnv(a,a.JSC$6643_context_.yieldAllIterator_["throw"],W,a.JSC$6643_context_.JSC$6638_next_):(XrC(a.JSC$6643_context_,W),W=zS(a));return W};
this.return=function(W){return onE(a,W)};
this[Symbol.iterator]=function(){return this}};
_.QbS=function(a,W){W=new kLC(new vne(W));dO&&a.prototype&&dO(W,a.prototype);return W};
UNx=function(a){function W(Z){return a.next(Z)}
function w(Z){return a.throw(Z)}
return new Promise(function(Z,N){function B(I){I.done?Z(I.value):Promise.resolve(I.value).then(W,w).then(B,N)}
B(a.next())})};
_.P=function(a){return UNx(new kLC(new vne(a)))};
DoI=function(a){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return a};
this.next=function(W){return Promise.resolve(a.next(W))};
this["throw"]=function(W){return new Promise(function(w,Z){var N=a["throw"];N!==void 0?w(N.call(a,W)):(w=a["return"],w!==void 0&&w.call(a),Z(new TypeError("i")))})};
a["return"]!==void 0&&(this["return"]=function(W){return Promise.resolve(a["return"](W))})};
_.TH=function(){for(var a=Number(this),W=[],w=a;w<arguments.length;w++)W[w-a]=arguments[w];return W};
_.xuH=function(a){return a};
f4("globalThis",function(a){return a||_.dU});
f4("Reflect",function(a){return a?a:{}});
f4("Reflect.construct",function(){return wrU});
f4("Reflect.setPrototypeOf",function(a){return a?a:dO?function(W,w){try{return dO(W,w),!0}catch(Z){return!1}}:null});
f4("Promise",function(a){function W(){this.batch_=null}
function w(I){return I instanceof N?I:new N(function(X){X(I)})}
if(a&&(typeof _.dU.PromiseRejectionEvent!=="undefined"||!_.dU.Promise||_.dU.Promise.toString().indexOf("[native code]")===-1))return a;W.prototype.asyncExecute=function(I){if(this.batch_==null){this.batch_=[];var X=this;this.asyncExecuteFunction(function(){X.executeBatch_()})}this.batch_.push(I)};
var Z=_.dU.setTimeout;W.prototype.asyncExecuteFunction=function(I){Z(I,0)};
W.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var I=this.batch_;this.batch_=[];for(var X=0;X<I.length;++X){var v=I[X];I[X]=null;try{v()}catch(U){this.asyncThrow_(U)}}}this.batch_=null};
W.prototype.asyncThrow_=function(I){this.asyncExecuteFunction(function(){throw I;})};
var N=function(I){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var X=this.createResolveAndReject_();try{I(X.resolve,X.reject)}catch(v){X.reject(v)}};
N.prototype.createResolveAndReject_=function(){function I(U){return function(O){v||(v=!0,U.call(X,O))}}
var X=this,v=!1;return{resolve:I(this.resolveTo_),reject:I(this.JSC$6659_reject_)}};
N.prototype.resolveTo_=function(I){if(I===this)this.JSC$6659_reject_(new TypeError("j"));else if(I instanceof N)this.settleSameAsPromise_(I);else{a:switch(typeof I){case "object":var X=I!=null;break a;case "function":X=!0;break a;default:X=!1}X?this.resolveToNonPromiseObj_(I):this.fulfill_(I)}};
N.prototype.resolveToNonPromiseObj_=function(I){var X=void 0;try{X=I.then}catch(v){this.JSC$6659_reject_(v);return}typeof X=="function"?this.settleSameAsThenable_(X,I):this.fulfill_(I)};
N.prototype.JSC$6659_reject_=function(I){this.settle_(2,I)};
N.prototype.fulfill_=function(I){this.settle_(1,I)};
N.prototype.settle_=function(I,X){if(this.state_!=0)throw Error("k`"+I+"`"+X+"`"+this.state_);this.state_=I;this.result_=X;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
N.prototype.scheduleUnhandledRejectionCheck_=function(){var I=this;Z(function(){if(I.notifyUnhandledRejection_()){var X=_.dU.console;typeof X!=="undefined"&&X.error(I.result_)}},1)};
N.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var I=_.dU.CustomEvent,X=_.dU.Event,v=_.dU.dispatchEvent;if(typeof v==="undefined")return!0;typeof I==="function"?I=new I("unhandledrejection",{cancelable:!0}):typeof X==="function"?I=new X("unhandledrejection",{cancelable:!0}):(I=_.dU.document.createEvent("CustomEvent"),I.initCustomEvent("unhandledrejection",!1,!0,I));I.promise=this;I.reason=this.result_;return v(I)};
N.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var I=0;I<this.onSettledCallbacks_.length;++I)B.asyncExecute(this.onSettledCallbacks_[I]);this.onSettledCallbacks_=null}};
var B=new W;N.prototype.settleSameAsPromise_=function(I){var X=this.createResolveAndReject_();I.callWhenSettled_(X.resolve,X.reject)};
N.prototype.settleSameAsThenable_=function(I,X){var v=this.createResolveAndReject_();try{I.call(X,v.resolve,v.reject)}catch(U){v.reject(U)}};
N.prototype.then=function(I,X){function v(T,p){return typeof T=="function"?function(h){try{U(T(h))}catch(L){O(L)}}:p}
var U,O,S=new N(function(T,p){U=T;O=p});
this.callWhenSettled_(v(I,U),v(X,O));return S};
N.prototype.catch=function(I){return this.then(void 0,I)};
N.prototype.callWhenSettled_=function(I,X){function v(){switch(U.state_){case 1:I(U.result_);break;case 2:X(U.result_);break;default:throw Error("l`"+U.state_);}}
var U=this;this.onSettledCallbacks_==null?B.asyncExecute(v):this.onSettledCallbacks_.push(v);this.isRejectionHandled_=!0};
N.resolve=w;N.reject=function(I){return new N(function(X,v){v(I)})};
N.race=function(I){return new N(function(X,v){for(var U=_.l(I),O=U.next();!O.done;O=U.next())w(O.value).callWhenSettled_(X,v)})};
N.all=function(I){var X=_.l(I),v=X.next();return v.done?w([]):new N(function(U,O){function S(h){return function(L){T[h]=L;p--;p==0&&U(T)}}
var T=[],p=0;do T.push(void 0),p++,w(v.value).callWhenSettled_(S(T.length-1),O),v=X.next();while(!v.done)})};
return N});
var HN=function(a,W,w){if(a==null)throw new TypeError("m`"+w);if(W instanceof RegExp)throw new TypeError("n`"+w);return a+""};
f4("String.prototype.startsWith",function(a){return a?a:function(W,w){var Z=HN(this,W,"startsWith"),N=Z.length,B=W.length;w=Math.max(0,Math.min(w|0,Z.length));for(var I=0;I<B&&w<N;)if(Z[w++]!=W[I++])return!1;return I>=B}});
f4("Object.setPrototypeOf",function(a){return a||dO});
f4("Symbol.dispose",function(a){return a?a:Symbol("o")});
f4("SuppressedError",function(a){function W(w,Z,N){if(!(this instanceof W))return new W(w,Z,N);N=Error(N);"stack"in N&&(this.stack=N.stack);this.message=N.message;this.error=w;this.suppressed=Z}
if(a)return a;_.c(W,Error);W.prototype.name="SuppressedError";return W});
var On7=function(a,W,w){a instanceof String&&(a=String(a));for(var Z=a.length,N=0;N<Z;N++){var B=a[N];if(W.call(w,B,N,a))return{i:N,v:B}}return{i:-1,v:void 0}};
f4("Array.prototype.find",function(a){return a?a:function(W,w){return On7(this,W,w).v}});
f4("WeakMap",function(a){function W(){}
function w(v){var U=typeof v;return U==="object"&&v!==null||U==="function"}
function Z(v){if(!VA(v,B)){var U=new W;yU8(v,B,{value:U})}}
function N(v){var U=Object[v];U&&(Object[v]=function(O){if(O instanceof W)return O;Object.isExtensible(O)&&Z(O);return U(O)})}
if(function(){if(!a||!Object.seal)return!1;try{var v=Object.seal({}),U=Object.seal({}),O=new a([[v,2],[U,3]]);if(O.get(v)!=2||O.get(U)!=3)return!1;O.delete(v);O.set(U,4);return!O.has(v)&&O.get(U)==4}catch(S){return!1}}())return a;
var B="$jscomp_hidden_"+Math.random();N("freeze");N("preventExtensions");N("seal");var I=0,X=function(v){this.JSC$6666_id_=(I+=Math.random()+1).toString();if(v){v=_.l(v);for(var U;!(U=v.next()).done;)U=U.value,this.set(U[0],U[1])}};
X.prototype.set=function(v,U){if(!w(v))throw Error("p");Z(v);if(!VA(v,B))throw Error("q`"+v);v[B][this.JSC$6666_id_]=U;return this};
X.prototype.get=function(v){return w(v)&&VA(v,B)?v[B][this.JSC$6666_id_]:void 0};
X.prototype.has=function(v){return w(v)&&VA(v,B)&&VA(v[B],this.JSC$6666_id_)};
X.prototype.delete=function(v){return w(v)&&VA(v,B)&&VA(v[B],this.JSC$6666_id_)?delete v[B][this.JSC$6666_id_]:!1};
return X});
f4("Map",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var X=Object.seal({x:4}),v=new a(_.l([[X,"s"]]));if(v.get(X)!="s"||v.size!=1||v.get({x:4})||v.set({x:4},"t")!=v||v.size!=2)return!1;var U=v.entries(),O=U.next();if(O.done||O.value[0]!=X||O.value[1]!="s")return!1;O=U.next();return O.done||O.value[0].x!=4||O.value[1]!="t"||!U.next().done?!1:!0}catch(S){return!1}}())return a;
var W=new WeakMap,w=function(X){this[0]={};this[1]=B();this.size=0;if(X){X=_.l(X);for(var v;!(v=X.next()).done;)v=v.value,this.set(v[0],v[1])}};
w.prototype.set=function(X,v){X=X===0?0:X;var U=Z(this,X);U.list||(U.list=this[0][U.id]=[]);U.entry?U.entry.value=v:(U.entry={next:this[1],previous:this[1].previous,head:this[1],key:X,value:v},U.list.push(U.entry),this[1].previous.next=U.entry,this[1].previous=U.entry,this.size++);return this};
w.prototype.delete=function(X){X=Z(this,X);return X.entry&&X.list?(X.list.splice(X.index,1),X.list.length||delete this[0][X.id],X.entry.previous.next=X.entry.next,X.entry.next.previous=X.entry.previous,X.entry.head=null,this.size--,!0):!1};
w.prototype.clear=function(){this[0]={};this[1]=this[1].previous=B();this.size=0};
w.prototype.has=function(X){return!!Z(this,X).entry};
w.prototype.get=function(X){return(X=Z(this,X).entry)&&X.value};
w.prototype.entries=function(){return N(this,function(X){return[X.key,X.value]})};
w.prototype.keys=function(){return N(this,function(X){return X.key})};
w.prototype.values=function(){return N(this,function(X){return X.value})};
w.prototype.forEach=function(X,v){for(var U=this.entries(),O;!(O=U.next()).done;)O=O.value,X.call(v,O[1],O[0],this)};
w.prototype[Symbol.iterator]=w.prototype.entries;var Z=function(X,v){var U=v&&typeof v;U=="object"||U=="function"?W.has(v)?U=W.get(v):(U=""+ ++I,W.set(v,U)):U="p_"+v;var O=X[0][U];if(O&&VA(X[0],U))for(X=0;X<O.length;X++){var S=O[X];if(v!==v&&S.key!==S.key||v===S.key)return{id:U,list:O,index:X,entry:S}}return{id:U,list:O,index:-1,entry:void 0}},N=function(X,v){var U=X[1];
return a_F(function(){if(U){for(;U.head!=X[1];)U=U.previous;for(;U.next!=U.head;)return U=U.next,{done:!1,value:v(U)};U=null}return{done:!0,value:void 0}})},B=function(){var X={};
return X.previous=X.next=X.head=X},I=0;
return w});
f4("Set",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var w=Object.seal({x:4}),Z=new a(_.l([w]));if(!Z.has(w)||Z.size!=1||Z.add(w)!=Z||Z.size!=1||Z.add({x:4})!=Z||Z.size!=2)return!1;var N=Z.entries(),B=N.next();if(B.done||B.value[0]!=w||B.value[1]!=w)return!1;B=N.next();return B.done||B.value[0]==w||B.value[0].x!=4||B.value[1]!=B.value[0]?!1:N.next().done}catch(I){return!1}}())return a;
var W=function(w){this.JSC$6680_map_=new Map;if(w){w=_.l(w);for(var Z;!(Z=w.next()).done;)this.add(Z.value)}this.size=this.JSC$6680_map_.size};
W.prototype.add=function(w){w=w===0?0:w;this.JSC$6680_map_.set(w,w);this.size=this.JSC$6680_map_.size;return this};
W.prototype.delete=function(w){w=this.JSC$6680_map_.delete(w);this.size=this.JSC$6680_map_.size;return w};
W.prototype.clear=function(){this.JSC$6680_map_.clear();this.size=0};
W.prototype.has=function(w){return this.JSC$6680_map_.has(w)};
W.prototype.entries=function(){return this.JSC$6680_map_.entries()};
W.prototype.values=function(){return this.JSC$6680_map_.values()};
W.prototype.keys=W.prototype.values;W.prototype[Symbol.iterator]=W.prototype.values;W.prototype.forEach=function(w,Z){var N=this;this.JSC$6680_map_.forEach(function(B){return w.call(Z,B,B,N)})};
return W});
f4("Math.log2",function(a){return a?a:function(W){return Math.log(W)/Math.LN2}});
f4("Object.values",function(a){return a?a:function(W){var w=[],Z;for(Z in W)VA(W,Z)&&w.push(W[Z]);return w}});
f4("Object.is",function(a){return a?a:function(W,w){return W===w?W!==0||1/W===1/w:W!==W&&w!==w}});
f4("Array.prototype.includes",function(a){return a?a:function(W,w){var Z=this;Z instanceof String&&(Z=String(Z));var N=Z.length;w=w||0;for(w<0&&(w=Math.max(w+N,0));w<N;w++){var B=Z[w];if(B===W||Object.is(B,W))return!0}return!1}});
f4("String.prototype.includes",function(a){return a?a:function(W,w){return HN(this,W,"includes").indexOf(W,w||0)!==-1}});
f4("Array.from",function(a){return a?a:function(W,w,Z){w=w!=null?w:function(X){return X};
var N=[],B=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(typeof B=="function"){W=B.call(W);for(var I=0;!(B=W.next()).done;)N.push(w.call(Z,B.value,I++))}else for(B=W.length,I=0;I<B;I++)N.push(w.call(Z,W[I],I));return N}});
f4("Object.entries",function(a){return a?a:function(W){var w=[],Z;for(Z in W)VA(W,Z)&&w.push([Z,W[Z]]);return w}});
f4("Number.isFinite",function(a){return a?a:function(W){return typeof W!=="number"?!1:!isNaN(W)&&W!==Infinity&&W!==-Infinity}});
f4("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
f4("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
f4("Number.isInteger",function(a){return a?a:function(W){return Number.isFinite(W)?W===Math.floor(W):!1}});
f4("Number.isSafeInteger",function(a){return a?a:function(W){return Number.isInteger(W)&&Math.abs(W)<=Number.MAX_SAFE_INTEGER}});
f4("String.prototype.endsWith",function(a){return a?a:function(W,w){var Z=HN(this,W,"endsWith");w===void 0&&(w=Z.length);w=Math.max(0,Math.min(w|0,Z.length));for(var N=W.length;N>0&&w>0;)if(Z[--w]!=W[--N])return!1;return N<=0}});
var Svv=function(a,W){a instanceof String&&(a+="");var w=0,Z=!1,N={next:function(){if(!Z&&w<a.length){var B=w++;return{value:W(B,a[B]),done:!1}}Z=!0;return{done:!0,value:void 0}}};
N[Symbol.iterator]=function(){return N};
return N};
f4("Array.prototype.entries",function(a){return a?a:function(){return Svv(this,function(W,w){return[W,w]})}});
f4("Math.imul",function(a){return a?a:function(W,w){W=Number(W);w=Number(w);var Z=W&65535,N=w&65535;return Z*N+((W>>>16&65535)*N+Z*(w>>>16&65535)<<16>>>0)|0}});
f4("Math.trunc",function(a){return a?a:function(W){W=Number(W);if(isNaN(W)||W===Infinity||W===-Infinity||W===0)return W;var w=Math.floor(Math.abs(W));return W<0?-w:w}});
f4("Number.isNaN",function(a){return a?a:function(W){return typeof W==="number"&&isNaN(W)}});
f4("Array.prototype.keys",function(a){return a?a:function(){return Svv(this,function(W){return W})}});
f4("Array.prototype.values",function(a){return a?a:function(){return Svv(this,function(W,w){return w})}});
f4("Array.prototype.fill",function(a){return a?a:function(W,w,Z){var N=this.length||0;w<0&&(w=Math.max(0,N+w));if(Z==null||Z>N)Z=N;Z=Number(Z);Z<0&&(Z=Math.max(0,N+Z));for(w=Number(w||0);w<Z;w++)this[w]=W;return this}});
var yA=function(a){return a?a:Array.prototype.fill};
f4("Int8Array.prototype.fill",yA);f4("Uint8Array.prototype.fill",yA);f4("Uint8ClampedArray.prototype.fill",yA);f4("Int16Array.prototype.fill",yA);f4("Uint16Array.prototype.fill",yA);f4("Int32Array.prototype.fill",yA);f4("Uint32Array.prototype.fill",yA);f4("Float32Array.prototype.fill",yA);f4("Float64Array.prototype.fill",yA);
f4("Object.fromEntries",function(a){return a?a:function(W){var w={};if(!(Symbol.iterator in W))throw new TypeError("r`"+W);W=W[Symbol.iterator].call(W);for(var Z=W.next();!Z.done;Z=W.next()){Z=Z.value;if(Object(Z)!==Z)throw new TypeError("s");w[Z[0]]=Z[1]}return w}});
f4("String.prototype.replaceAll",function(a){return a?a:function(W,w){if(W instanceof RegExp&&!W.global)throw new TypeError("t");return W instanceof RegExp?this.replace(W,w):this.replace(new RegExp(String(W).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),w)}});
f4("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
f4("String.prototype.repeat",function(a){return a?a:function(W){var w=HN(this,null,"repeat");if(W<0||W>1342177279)throw new RangeError("u");W|=0;for(var Z="";W;)if(W&1&&(Z+=w),W>>>=1)w+=w;return Z}});
f4("Array.prototype.findIndex",function(a){return a?a:function(W,w){return On7(this,W,w).i}});
f4("Array.prototype.flatMap",function(a){return a?a:function(W,w){var Z=[];Array.prototype.forEach.call(this,function(N,B){N=W.call(w,N,B,this);Array.isArray(N)?Z.push.apply(Z,N):Z.push(N)});
return Z}});
f4("String.prototype.codePointAt",function(a){return a?a:function(W){var w=HN(this,null,"codePointAt"),Z=w.length;W=Number(W)||0;if(W>=0&&W<Z){W|=0;var N=w.charCodeAt(W);if(N<55296||N>56319||W+1===Z)return N;W=w.charCodeAt(W+1);return W<56320||W>57343?N:(N-55296)*1024+W+9216}}});
f4("String.fromCodePoint",function(a){return a?a:function(W){for(var w="",Z=0;Z<arguments.length;Z++){var N=Number(arguments[Z]);if(N<0||N>1114111||N!==Math.floor(N))throw new RangeError("v`"+N);N<=65535?w+=String.fromCharCode(N):(N-=65536,w+=String.fromCharCode(N>>>10&1023|55296),w+=String.fromCharCode(N&1023|56320))}return w}});
f4("String.prototype.padStart",function(a){return a?a:function(W,w){var Z=HN(this,null,"padStart");W-=Z.length;w=w!==void 0?String(w):" ";return(W>0&&w?w.repeat(Math.ceil(W/w.length)).substring(0,W):"")+Z}});
f4("Promise.prototype.finally",function(a){return a?a:function(W){return this.then(function(w){return Promise.resolve(W()).then(function(){return w})},function(w){return Promise.resolve(W()).then(function(){throw w;
})})}});
f4("Object.hasOwn",function(a){return a?a:function(W,w){return Object.prototype.hasOwnProperty.call(W,w)}});
f4("Math.sign",function(a){return a?a:function(W){W=Number(W);return W===0||isNaN(W)?W:W>0?1:-1}});
f4("Array.prototype.flat",function(a){return a?a:function(W){W=W===void 0?1:W;var w=[];Array.prototype.forEach.call(this,function(Z){Array.isArray(Z)&&W>0?(Z=Array.prototype.flat.call(Z,W-1),w.push.apply(w,Z)):w.push(Z)});
return w}});
f4("String.raw",function(a){return a?a:function(W,w){if(W==null)throw new TypeError("w");for(var Z=W.raw,N=Z.length,B="",I=0;I<N;++I)B+=Z[I],I+1<N&&I+1<arguments.length&&(B+=String(arguments[I+1]));return B}});
f4("Reflect.ownKeys",function(a){return a?a:function(W){var w=[],Z=Object.getOwnPropertyNames(W);W=Object.getOwnPropertySymbols(W);for(var N=0;N<Z.length;N++)(Z[N].substring(0,14)=="jscomp_symbol_"?W:w).push(Z[N]);return w.concat(W)}});
f4("Object.getOwnPropertyDescriptors",function(a){return a?a:function(W){for(var w={},Z=Reflect.ownKeys(W),N=0;N<Z.length;N++)w[Z[N]]=Object.getOwnPropertyDescriptor(W,Z[N]);return w}});
f4("WeakSet",function(a){if(function(){if(!a||!Object.seal)return!1;try{var w=Object.seal({}),Z=Object.seal({}),N=new a([w]);if(!N.has(w)||N.has(Z))return!1;N.delete(w);N.add(Z);return!N.has(w)&&N.has(Z)}catch(B){return!1}}())return a;
var W=function(w){this.JSC$6687_map_=new WeakMap;if(w){w=_.l(w);for(var Z;!(Z=w.next()).done;)this.add(Z.value)}};
W.prototype.add=function(w){this.JSC$6687_map_.set(w,!0);return this};
W.prototype.has=function(w){return this.JSC$6687_map_.has(w)};
W.prototype.delete=function(w){return this.JSC$6687_map_.delete(w)};
return W});
f4("Promise.allSettled",function(a){function W(Z){return{status:"fulfilled",value:Z}}
function w(Z){return{status:"rejected",reason:Z}}
return a?a:function(Z){var N=this;Z=Array.from(Z,function(B){return N.resolve(B).then(W,w)});
return N.all(Z)}});
f4("Number.parseInt",function(a){return a||parseInt});
_._DumpException=window._DumpException||function(a){throw a;};
window._DumpException=_._DumpException;var Yv7,E9,aY,Wz,TAD,KCD,pr9,r_F,mn,A_E;Yv7=Yv7||{};_.NH=this||self;_.Dp=function(a,W,w){a=a.split(".");w=w||_.NH;for(var Z;a.length&&(Z=a.shift());)a.length||W===void 0?w[Z]&&w[Z]!==Object.prototype[Z]?w=w[Z]:w=w[Z]={}:w[Z]=W};
E9=function(a){var W=_.RT("WIZ_global_data.oxN3nb");a=W&&W[a];return a!=null?a:!1};
aY=_.NH._F_toggles||[];Wz=function(){};
Wz.get=function(){return null};
_.RT=function(a,W){a=a.split(".");W=W||_.NH;for(var w=0;w<a.length;w++)if(W=W[a[w]],W==null)return null;return W};
_.wk=function(a){a.instance_=void 0;a.getInstance=function(){return a.instance_?a.instance_:a.instance_=new a}};
_.UI=function(a){var W=typeof a;return W!="object"?W:a?Array.isArray(a)?"array":W:"null"};
_.wT=function(a){var W=_.UI(a);return W=="array"||W=="object"&&typeof a.length=="number"};
_.tL=function(a){var W=typeof a;return W=="object"&&a!=null||W=="function"};
_.lA=function(a){return Object.prototype.hasOwnProperty.call(a,TAD)&&a[TAD]||(a[TAD]=++KCD)};
TAD="closure_uid_"+(Math.random()*1E9>>>0);KCD=0;pr9=function(a,W,w){return a.call.apply(a.bind,arguments)};
r_F=function(a,W,w){if(!a)throw Error();if(arguments.length>2){var Z=Array.prototype.slice.call(arguments,2);return function(){var N=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(N,Z);return a.apply(W,N)}}return function(){return a.apply(W,arguments)}};
_.Sk=function(a,W,w){_.Sk=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?pr9:r_F;return _.Sk.apply(null,arguments)};
_.v_=function(a,W){var w=Array.prototype.slice.call(arguments,1);return function(){var Z=w.slice();Z.push.apply(Z,arguments);return a.apply(this,Z)}};
_.ZL=function(){return Date.now()};
mn=function(a){return a};
_.NT=function(a,W){function w(){}
w.prototype=W.prototype;a.superClass_=W.prototype;a.prototype=new w;a.prototype.constructor=a;a.base=function(Z,N,B){for(var I=Array(arguments.length-2),X=2;X<arguments.length;X++)I[X-2]=arguments[X];return W.prototype[N].apply(Z,I)}};
A_E=function(a){return a};var ARe,efm;_.f=function(a,W,w,Z){var N=arguments.length,B=N<3?W:Z===null?Z=Object.getOwnPropertyDescriptor(W,w):Z,I;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")B=Reflect.decorate(a,W,w,Z);else for(var X=a.length-1;X>=0;X--)if(I=a[X])B=(N<3?I(B):N>3?I(W,w,B):I(W,w))||B;return N>3&&B&&Object.defineProperty(W,w,B),B};
_.z=function(a,W){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(a,W)};
ARe=function(a,W){if(W!==null&&W!==void 0){if(typeof W!=="object"&&typeof W!=="function")throw new TypeError("x");if(w===void 0){if(!Symbol.dispose)throw new TypeError("z");var w=W[Symbol.dispose]}if(typeof w!=="function")throw new TypeError("A");a.stack.push({value:W,dispose:w,async:!1})}return W};
efm=function(a){function W(B){a.error=a.hasError?new SuppressedError(B,a.error,"An error was suppressed during disposal."):B;a.hasError=!0}
function w(){for(;Z=a.stack.pop();)try{if(!Z.async&&N===1)return N=0,a.stack.push(Z),Promise.resolve().then(w);if(Z.dispose){var B=Z.dispose.call(Z.value);if(Z.async)return N|=2,Promise.resolve(B).then(w,function(I){W(I);return w()})}else N|=1}catch(I){W(I)}if(N===1)return a.hasError?Promise.reject(a.error):Promise.resolve();
if(a.hasError)throw a.error;}
var Z,N=0;w()};_.NT(_.Wv,Error);_.Wv.prototype.name="CustomError";var hZE;var inS=void 0,c_v,eZ7=typeof TextDecoder!=="undefined",Z79,wvx=typeof String.prototype.isWellFormed==="function",WUv=typeof TextEncoder!=="undefined";var nnD;_.UW=function(a){for(var W=[],w=0,Z=0;Z<a.length;Z++){var N=a.charCodeAt(Z);N<128?W[w++]=N:(N<2048?W[w++]=N>>6|192:((N&64512)==55296&&Z+1<a.length&&(a.charCodeAt(Z+1)&64512)==56320?(N=65536+((N&1023)<<10)+(a.charCodeAt(++Z)&1023),W[w++]=N>>18|240,W[w++]=N>>12&63|128):W[w++]=N>>12|224,W[w++]=N>>6&63|128),W[w++]=N&63|128)}return W};
nnD=function(a){for(var W=[],w=0,Z=0;w<a.length;){var N=a[w++];if(N<128)W[Z++]=String.fromCharCode(N);else if(N>191&&N<224){var B=a[w++];W[Z++]=String.fromCharCode((N&31)<<6|B&63)}else if(N>239&&N<365){B=a[w++];var I=a[w++],X=a[w++];N=((N&7)<<18|(B&63)<<12|(I&63)<<6|X&63)-65536;W[Z++]=String.fromCharCode(55296+(N>>10));W[Z++]=String.fromCharCode(56320+(N&1023))}else B=a[w++],I=a[w++],W[Z++]=String.fromCharCode((N&15)<<12|(B&63)<<6|I&63)}return W.join("")};var kI=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},jGv=/&/g,LCS=/</g,J_I=/>/g,FCH=/"/g,MhC=/'/g,RZx=/\x00/g,qvC=/[\x00&<>"']/;var tD=!!(aY[0]>>15&1),QGv=!!(aY[0]>>16&1),xN7=!!(aY[0]&2),bnI=!!(aY[0]&4),sGm=!!(aY[0]&32),uBm=!!(aY[0]&512);var YI=tD?QGv:E9(610401301),CWm=tD?xN7:E9(513659523),GL7=tD?bnI:E9(568333945),JPe=tD?sGm:E9(1331761403),DND=tD?uBm:E9(103340015);var K7,f_e=_.NH.navigator;K7=f_e?f_e.userAgentData||null:null;var sx;_.DD=function(a,W){return Array.prototype.indexOf.call(a,W,void 0)};
_.x6=function(a,W,w){Array.prototype.forEach.call(a,W,w)};
_.$T=function(a,W,w){return Array.prototype.filter.call(a,W,w)};
_.pY=function(a,W,w){return Array.prototype.map.call(a,W,w)};
sx=function(a,W,w){return Array.prototype.some.call(a,W,w)};
_.B0F=function(a,W,w){return Array.prototype.every.call(a,W,w)};var Bz=function(a){Bz[" "](a);return a};
Bz[" "]=function(){};
var e3=function(a,W){try{return Bz(a[W]),!0}catch(w){}return!1},n6x=function(a,W,w,Z){Z=Z?Z(W):W;
return Object.prototype.hasOwnProperty.call(a,Z)?a[Z]:a[Z]=w(W)};var dNx,C3,mNE,Vh9,HnE,y_E,v$x,EnI,a6S,W3v,qeH,Zu7,NgS,l6C,I6v,PzU;_.Uux=function(){return _.NH.navigator||null};
dNx=n7();_.lB=$H7();C3=rE("Edge");mNE=C3||_.lB;_.IY=rE("Gecko")&&!(_.oC(_.S9(),"WebKit")&&!rE("Edge"))&&!(rE("Trident")||rE("MSIE"))&&!rE("Edge");_.Pz=_.oC(_.S9(),"WebKit")&&!rE("Edge");Vh9=_.Pz&&rE("Mobile");_.zZF=_.oIe();HnE=_.k8H();y_E=(MH()?K7.platform==="Linux":rE("Linux"))||_.UHe();v$x=_.vI8();EnI=gII();a6S=rE("iPad");W3v=rE("iPod");_.wUe=_.qH();qeH=_.oC(_.S9(),"KaiOS");Zu7=function(){var a=_.NH.document;return a?a.documentMode:void 0};
a:{var tR8="",$Ve=function(){var a=_.S9();if(_.IY)return/rv:([^\);]+)(\)|;)/.exec(a);if(C3)return/Edge\/([\d\.]+)/.exec(a);if(_.lB)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(_.Pz)return/WebKit\/(\S+)/.exec(a);if(dNx)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
$Ve&&(tR8=$Ve?$Ve[1]:"");if(_.lB){var BgE=Zu7();if(BgE!=null&&BgE>parseFloat(tR8)){NgS=String(BgE);break a}}NgS=tR8}l6C=NgS;I6v={};_.Xk=function(a){return n6x(I6v,a,function(){return _.US(l6C,a)>=0})};
if(_.NH.document&&_.lB){var XUU=Zu7();PzU=XUU?XUU:parseInt(l6C,10)||void 0}else PzU=void 0;_.vrU=PzU;var e97,ns8,grC;_.vz=j9();e97=gII()||rE("iPod");ns8=rE("iPad");grC=_.lDe();_.gk=_.L7();_.jg=_.Fx()&&!_.qH();var orE,oY,m_m,ON9,UVC,kMe;orE={};oY=null;m_m=_.IY||_.Pz||typeof _.NH.btoa=="function";_.EI=function(a,W){W===void 0&&(W=0);kMe();W=orE[W];for(var w=Array(Math.floor(a.length/3)),Z=W[64]||"",N=0,B=0;N<a.length-2;N+=3){var I=a[N],X=a[N+1],v=a[N+2],U=W[I>>2];I=W[(I&3)<<4|X>>4];X=W[(X&15)<<2|v>>6];v=W[v&63];w[B++]=U+I+X+v}U=0;v=Z;switch(a.length-N){case 2:U=a[N+1],v=W[(U&15)<<2]||Z;case 1:a=a[N],w[B]=W[a>>2]+W[(a&3)<<4|U>>4]+v+Z}return w.join("")};
ON9=function(a){var W="";UVC(a,function(w){W+=String.fromCharCode(w)});
return W};
_.CsC=function(a){var W=[];UVC(a,function(w){W.push(w)});
return W};
_.UR=function(a){var W=a.length,w=W*3/4;w%3?w=Math.floor(w):_.gE("=.",a[W-1])&&(w=_.gE("=.",a[W-2])?w-2:w-1);var Z=new Uint8Array(w),N=0;UVC(a,function(B){Z[N++]=B});
return N!==w?Z.subarray(0,N):Z};
UVC=function(a,W){function w(v){for(;Z<a.length;){var U=a.charAt(Z++),O=oY[U];if(O!=null)return O;if(!_.vv(U))throw Error("E`"+U);}return v}
kMe();for(var Z=0;;){var N=w(-1),B=w(0),I=w(64),X=w(64);if(X===64&&N===-1)break;W(N<<2|B>>4);I!=64&&(W(B<<4&240|I>>2),X!=64&&W(I<<6&192|X))}};
kMe=function(){if(!oY){oY={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),W=["+/=","+/","-_=","-_.","-_"],w=0;w<5;w++){var Z=a.concat(W[w].split(""));orE[w]=Z;for(var N=0;N<Z.length;N++){var B=Z[N];oY[B]===void 0&&(oY[B]=N)}}}};var Rex=typeof Uint8Array!=="undefined",i7C=!_.lB&&typeof btoa==="function",cm8=/[-_.]/g,Am7={"-":"+",_:"/",".":"="},sR={};var xR,SES;xR=function(a,W){if(W!==sR)throw Error("G");this.JSC$6718_value_=a;if(a!=null&&a.length===0)throw Error("F");};
_.uA=function(){return OuE||(OuE=new xR(null,sR))};
SES=function(a){return new Uint8Array(JI(a)||0)};
xR.prototype.isEmpty=function(){return this.JSC$6718_value_==null};
xR.prototype.sizeBytes=function(){var a=JI(this);return a?a.length:0};
var JI=function(a){if(sR!==sR)throw Error("G");var W=a.JSC$6718_value_;W=W==null||Rex&&W!=null&&W instanceof Uint8Array?W:typeof W==="string"?eeC(W):null;return W==null?W:a.JSC$6718_value_=W},OuE;var jCx=void 0;var cl=typeof Symbol==="function"&&typeof Symbol()==="symbol",YEF=iA("jas",void 0,!0),Da=iA(void 0,"0di"),ee=iA(void 0,"1oa"),Vk=iA(void 0,Symbol()),jee=iA(void 0,"0ub"),JLS=iA(void 0,"0ubs"),RDF=iA(void 0,"0ubsb"),dyH=iA(void 0,"0actk"),sI=iA("m_m","messagePrototypeMarker",!0),seD=iA(void 0,"vps"),cLH=iA();var Jme,LUE,Om,Tgm;Jme={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};LUE=Object.defineProperties;_.n6=cl?YEF:"internalArrayState";Tgm=[];L6(Tgm,7);Om=Object.freeze(Tgm);var G0={},qy={},K39=function(a,W,w){this.iterable=a;this.mapper=W;this.thisArg=w};
K39.prototype.next=function(){var a=this.iterable.next();a.done||(a.value=this.mapper.call(this.thisArg,a.value));return a};
K39.prototype[Symbol.iterator]=function(){return this};
var pUF=Object.freeze({}),f6={};_.ri8=V_(function(a){return a!==null&&a!==void 0});var sCx=V_(function(a){return typeof a==="number"}),b7H=V_(function(a){return typeof a==="string"}),uxC=V_(function(a){return typeof a==="boolean"}),AiE=V_(function(a){return a!=null&&typeof a==="object"&&typeof a.then==="function"}),ZF7=V_(function(a){return typeof a==="function"}),zO=V_(function(a){return!!a&&(typeof a==="object"||typeof a==="function")});var zh=typeof _.NH.BigInt==="function"&&typeof _.NH.BigInt(0)==="bigint";var qi=V_(function(a){return zh?a>=h0v&&a<=iu8:a[0]==="-"?Ce9(a,ci9):Ce9(a,e0C)}),ci9=Number.MIN_SAFE_INTEGER.toString(),h0v=zh?BigInt(Number.MIN_SAFE_INTEGER):void 0,e0C=Number.MAX_SAFE_INTEGER.toString(),iu8=zh?BigInt(Number.MAX_SAFE_INTEGER):void 0;var nrC=typeof Uint8Array.prototype.slice==="function",ER=0,aE=0,VH;var nK,FX,S0,Mi,zee;nK=typeof BigInt==="function"?BigInt.asIntN:void 0;_.RE=typeof BigInt==="function"?BigInt.asUintN:void 0;FX=Number.isSafeInteger;S0=Number.isFinite;Mi=Math.trunc;zee=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var u$E={};var hHU={},jl7=function(){try{var a=function(){return wrU(Map,[],this.constructor)};
_.c(a,Map);Bz(new a);return!1}catch(W){return!0}}(),kT=function(){this.JSC$6746_map_=new Map};
_.t=kT.prototype;_.t.get=function(a){return this.JSC$6746_map_.get(a)};
_.t.set=function(a,W){this.JSC$6746_map_.set(a,W);this.size=this.JSC$6746_map_.size;return this};
_.t.delete=function(a){a=this.JSC$6746_map_.delete(a);this.size=this.JSC$6746_map_.size;return a};
_.t.clear=function(){this.JSC$6746_map_.clear();this.size=this.JSC$6746_map_.size};
_.t.has=function(a){return this.JSC$6746_map_.has(a)};
_.t.entries=function(){return this.JSC$6746_map_.entries()};
_.t.keys=function(){return this.JSC$6746_map_.keys()};
_.t.values=function(){return this.JSC$6746_map_.values()};
_.t.forEach=function(a,W){return this.JSC$6746_map_.forEach(a,W)};
kT.prototype[Symbol.iterator]=function(){return this.entries()};
var aP=function(){if(jl7)return Object.setPrototypeOf(kT.prototype,Map.prototype),Object.defineProperties(kT.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),kT;var a=function(){return wrU(Map,[],this.constructor)};
_.c(a,Map);return a}(),df=function(a,W,w,Z){w=w===void 0?TTE:w;
Z=Z===void 0?TTE:Z;var N=aP.call(this)||this;N.arrayState=a[_.n6]|0;N.valueCtor=W;N.keyToApi=w;N.valueToApi=N.valueCtor?plH:Z;for(var B=0;B<a.length;B++){var I=a[B],X=w(I[0],!1,!0),v=I[1];W?v===void 0&&(v=null):v=Z(I[1],!1,!0,void 0,void 0,N.arrayState);aP.prototype.set.call(N,X,v)}return N};
_.c(df,aP);var L3e=function(a){if(a.arrayState&2)throw Error("K");};
_.t=df.prototype;_.t.clear=function(){L3e(this);aP.prototype.clear.call(this)};
_.t.delete=function(a){L3e(this);return aP.prototype.delete.call(this,this.keyToApi(a,!0,!1))};
_.t.entries=function(){if(this.valueCtor){var a=aP.prototype.keys.call(this);a=new K39(a,rLS,this)}else a=aP.prototype.entries.call(this);return a};
_.t.values=function(){if(this.valueCtor){var a=aP.prototype.keys.call(this);a=new K39(a,df.prototype.get,this)}else a=aP.prototype.values.call(this);return a};
_.t.forEach=function(a,W){this.valueCtor?aP.prototype.forEach.call(this,function(w,Z,N){a.call(W,N.get(Z),Z,N)}):aP.prototype.forEach.call(this,a,W)};
_.t.set=function(a,W){L3e(this);a=this.keyToApi(a,!0,!1);return a==null?this:W==null?(aP.prototype.delete.call(this,a),this):aP.prototype.set.call(this,a,this.valueToApi(W,!0,!0,this.valueCtor,!1,this.arrayState))};
_.t.has=function(a){return aP.prototype.has.call(this,this.keyToApi(a,!1,!1))};
_.t.get=function(a){a=this.keyToApi(a,!1,!1);var W=aP.prototype.get.call(this,a);if(W!==void 0){var w=this.valueCtor;return w?(w=this.valueToApi(W,!1,!0,w,this.callToMutableOnAccess,this.arrayState),w!==W&&aP.prototype.set.call(this,a,w),w):W}};
df.prototype[Symbol.iterator]=function(){return this.entries()};
df.prototype.toJSON=void 0;var ALC;var RHm=function(){},H2=function(a,W){for(var w in a)!isNaN(w)&&W(a,+w,a[w])},qRE=function(a){var W=new RHm;
H2(a,function(w,Z,N){W[Z]=B2(N)});
W.reviveUnknownFields=a.reviveUnknownFields;return W},eHx={reviveIntoImmutable:!0};var MVx;var CA8,GhH;var Jiv,p_,XI,Un,F38,hD,og,MR7,R0H,no,qEe,jF,Fk,MT;Jiv=_.y_(0);_.Uy={};_.Oy=function(a,W,w,Z,N){W=p_(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W,w,N);if(W!==null||Z&&a.noLegacyNull!==qy)return W};
p_=function(a,W,w,Z){if(W===-1)return null;var N=W+(w?0:-1),B=a.length-1;if(!(B<1+(w?0:-1))){if(N>=B){var I=a[B];if(I!=null&&typeof I==="object"&&I.constructor===Object){w=I[W];var X=!0}else if(N===B)w=I;else return}else w=a[N];if(Z&&w!=null){Z=Z(w);if(Z==null)return Z;if(!Object.is(Z,w))return X?I[W]=Z:a[N]=Z,Z}return w}};
_.Ew=function(a,W,w,Z){gC(a);var N=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Um(N,N[_.n6]|0,W,w,Z);return a};
_.SF=function(a,W,w){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return n_(a,a[_.n6]|0,W,w)!==void 0};
_.T1=function(a,W,w,Z){var N=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return n_(N,N[_.n6]|0,W,Un(a,Z,w))!==void 0};
_.Hh=function(a){return a===pUF?2:4};
_.Ko=function(a,W){a=_.Oy(a,W,void 0,void 0,aae);return a==null?_.uA():a};
XI=function(a,W,w,Z){gC(a);var N=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=N[_.n6]|0;if(Z==null){var I=w2I(N);if(ZKv(I,N,B,w)===W)I.set(w,0);else return a}else B=Nfm(N,B,w,W);Um(N,B,W,Z);return a};
_.rk=function(a,W,w,Z){var N=a[_.n6]|0,B=mJ(N);N=Nfm(a,N,w,W,B);Um(a,N,W,Z,B)};
Un=function(a,W,w){return _.AD(a,W)===w?w:-1};
_.AD=function(a,W){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ZKv(w2I(a),a,void 0,W,void 0)};
F38=function(a,W,w){var Z=a[_.n6]|0,N=mJ(Z),B=p_(a,w,N);if(B!=null&&B[sI]===G0){if(!Q_(B))return v9(B),B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var I=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(B)&&(I=B);if(I){var X=I[_.n6]|0;X&2&&(I=B9(I,X))}I=$b(I,W,!0);I!==B&&Um(a,Z,w,I,N);return I};
_.Hi=function(a,W,w,Z){var N=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=N[_.n6]|0;W=n_(N,B,W,w,Z);if(W==null)return W;B=N[_.n6]|0;if(!Q_(a,B)){var I=KJe(W);I!==W&&(v9(a)&&(N=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=N[_.n6]|0),W=I,B=Um(N,B,w,W,Z),kb(N,B))}return W};
_.z5=function(a,W,w,Z){var N=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return t0U(a,N,N[_.n6]|0,W,w,Z,!1,!0)};
_.ZP=function(a,W,w,Z){w=$ie(w);_.Ew(a,W,w,Z);w&&!Q_(w)&&kb(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a};
_.N_=function(a,W,w,Z){Z=$ie(Z);XI(a,W,w,Z);Z&&!Q_(Z)&&kb(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a};
hD=function(a,W,w){gC(a);var Z=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=Z[_.n6]|0;if(w==null)return Um(Z,N,W),a;for(var B=w===Om?7:w[_.n6]|0,I=B,X=K_(B),v=X||Object.isFrozen(w),U=!0,O=!0,S=0;S<w.length;S++){var T=w[S];X||(T=Q_(T),U&&(U=!T),O&&(O=T))}X||(B=U?13:5,B=O?B&-4097:B|4096);v&&B===I||(w=B2(w),I=0,B=Yb(B,N));B!==I&&L6(w,B);N=Um(Z,N,W,w);2&B||!(4096&B||16&B)||kb(Z,N);return a};
og=function(a,W,w,Z){laU(a,W,w,Z);return a};
MR7=function(a,W,w){laU(a,W,iB,void 0,w,1,!0);return a};
_.cz=function(a,W,w){a=_.Oy(a,W,void 0,w);W=typeof a;a=a==null?a:W==="bigint"?_.y_((0,_.RE)(64,a)):_.T0(a)?W==="string"?_.XlS(a):_.IEe(a):void 0;return a};
_.eF=function(a,W){var w=w===void 0?!1:w;var Z;return(Z=_.V9m(_.Oy(a,W)))!=null?Z:w};
_.yo=function(a,W,w){w=w===void 0?0:w;var Z;return(Z=_.hz(_.Oy(a,W)))!=null?Z:w};
R0H=function(a,W){var w=w===void 0?0:w;a=_.c2(_.Oy(a,W));return a!=null?a:w};
no=function(a,W,w){w=w===void 0?Jiv:w;var Z;return(Z=_.oR7(_.Oy(a,W)))!=null?Z:w};
qEe=function(a){var W=W===void 0?Jiv:W;var w;return(w=_.cz(a,23))!=null?w:W};
jF=function(a,W){var w=w===void 0?0:w;var Z;return(Z=_.Oy(a,W,void 0,void 0,_.v2))!=null?Z:w};
_.Lo=function(a,W,w,Z){w=w===void 0?"":w;var N;return(N=_.b9(_.Oy(a,W,Z)))!=null?N:w};
_.JD=function(a,W){var w=w===void 0?0:w;var Z;return(Z=_.rf(_.Oy(a,W)))!=null?Z:w};
Fk=function(a,W){var w=w===void 0?"0":w;a=gR8(_.Oy(a,W),!0);return a!=null?a:w};
MT=function(a,W,w){return _.Lo(a,Un(a,w,W))};
_.RY=function(a,W,w,Z){return _.Hi(a,W,Un(a,Z,w),void 0)};
_.I$=function(a,W){return _.b9(_.Oy(a,W,void 0,_.Uy))};
_.wh=function(a,W,w){return _.Ew(a,W,mHD(w))};
_.As=function(a,W,w){return _.hI(a,W,mHD(w),!1)};
_.qT=function(a,W,w){return _.Ew(a,W,_.Az(w))};
_.SJ=function(a,W,w){return _.Ew(a,W,Jz(w))};
_.Xu=function(a,W,w){return _.Ew(a,W,xd(w))};
_.aI=function(a,W,w,Z){return _.hI(a,W,xd(w),"",Z)};
_.yJ=function(a,W,w){return _.Ew(a,W,w==null?w:_.pK(w))};
_.QZ=function(a,W,w){return _.hI(a,W,w==null?w:_.pK(w),0)};var je=function(a,W,w){this.buffer=a;if(w&&!W)throw Error();this.JSC$6758_isImmutable=W};var QlS=function(a,W,w,Z){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6761_start_=0;this.init(a,W,w,Z)},xT,buF,slI,Czv,cze,xVm;
_.t=QlS.prototype;_.t.init=function(a,W,w,Z){var N=Z===void 0?{}:Z;Z=N.aliasBytesFields===void 0?!1:N.aliasBytesFields;N=N.treatNewDataAsImmutable===void 0?!1:N.treatNewDataAsImmutable;this.aliasBytesFields=Z;this.treatNewDataAsImmutable=N;a&&(a=IaI(a,this.treatNewDataAsImmutable),this.bytes_=a.buffer,this.bytesAreImmutable_=a.JSC$6758_isImmutable,this.JSC$6761_start_=W||0,this.end_=w!==void 0?this.JSC$6761_start_+w:this.bytes_.length,this.cursor_=this.JSC$6761_start_)};
_.t.free=function(){this.clear();xVm.length<100&&xVm.push(this)};
_.t.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6761_start_=0;this.aliasBytesFields=!1};
_.t.reset=function(){this.cursor_=this.JSC$6761_start_};
_.t.atEnd=function(){return this.cursor_==this.end_};
_.bB=function(a,W){var w=0,Z=0,N=0,B=a.bytes_,I=a.cursor_;do{var X=B[I++];w|=(X&127)<<N;N+=7}while(N<32&&X&128);N>32&&(Z|=(X&127)>>4);for(N=3;N<32&&X&128;N+=7)X=B[I++],Z|=(X&127)<<N;xT(a,I);if(X<128)return W(w>>>0,Z>>>0);throw Error("X");};
xT=function(a,W){a.cursor_=W;if(W>a.end_)throw Error("Y`"+W+"`"+a.end_);};
_.sy=function(a){var W=a.bytes_,w=a.cursor_,Z=W[w++],N=Z&127;if(Z&128&&(Z=W[w++],N|=(Z&127)<<7,Z&128&&(Z=W[w++],N|=(Z&127)<<14,Z&128&&(Z=W[w++],N|=(Z&127)<<21,Z&128&&(Z=W[w++],N|=Z<<28,Z&128&&W[w++]&128&&W[w++]&128&&W[w++]&128&&W[w++]&128&&W[w++]&128)))))throw Error("X");xT(a,w);return N};
_.Co=function(a){var W=a.bytes_,w=a.cursor_,Z=W[w],N=W[w+1],B=W[w+2];W=W[w+3];xT(a,a.cursor_+4);return(Z<<0|N<<8|B<<16|W<<24)>>>0};
buF=function(a){var W=_.Co(a);a=_.Co(a);return fDS(W,a)};
slI=function(a){var W=_.Co(a),w=_.Co(a);a=(w>>31)*2+1;var Z=w>>>20&2047;W=4294967296*(w&1048575)+W;return Z==2047?W?NaN:a*Infinity:Z==0?a*4.9E-324*W:a*Math.pow(2,Z-1075)*(W+4503599627370496)};
_.upI=function(a){for(var W=0,w=a.cursor_,Z=w+10,N=a.bytes_;w<Z;){var B=N[w++];W|=B;if((B&128)===0)return xT(a,w),!!(W&127)}throw Error("X");};
Czv=function(a,W){if(W<0)throw Error("Z`"+W);var w=a.cursor_,Z=w+W;if(Z>a.end_)throw Error("Y`"+(a.end_-w)+"`"+W);a.cursor_=Z;return w};
cze=function(a,W){if(W==0)return _.uA();var w=Czv(a,W);a.aliasBytesFields&&a.bytesAreImmutable_?w=a.bytes_.subarray(w,w+W):(a=a.bytes_,W=w+W,w=w===W?new Uint8Array(0):nrC?a.slice(w,W):new Uint8Array(a.subarray(w,W)));return w.length==0?_.uA():new xR(w,sR)};
xVm=[];var DVH=function(a,W,w,Z){if(xVm.length){var N=xVm.pop();N.init(a,W,w,Z);a=N}else a=new QlS(a,W,w,Z);this.decoder_=a;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;GM7(this,Z)},GM7=function(a,W){W=W===void 0?{}:W;
a.discardUnknownFields=W.discardUnknownFields===void 0?!1:W.discardUnknownFields},jE7=function(a,W,w,Z){if(f6x.length){var N=f6x.pop();
GM7(N,Z);N.decoder_.init(a,W,w,Z);return N}return new DVH(a,W,w,Z)},hDD,sm,dVU,f6x;
DVH.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;f6x.length<100&&f6x.push(this)};
DVH.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
hDD=function(a){if(a.decoder_.atEnd())return!1;a.fieldCursor_=a.decoder_.cursor_;var W=_.sy(a.decoder_)>>>0,w=W>>>3;W&=7;if(!(W>=0&&W<=5))throw Error("T`"+W+"`"+a.fieldCursor_);if(w<1)throw Error("U`"+w+"`"+a.fieldCursor_);a.nextField_=w;a.nextWireType_=W;return!0};
sm=function(a){switch(a.nextWireType_){case 0:a.nextWireType_!=0?sm(a):_.upI(a.decoder_);break;case 1:a=a.decoder_;xT(a,a.cursor_+8);break;case 2:if(a.nextWireType_!=2)sm(a);else{var W=_.sy(a.decoder_)>>>0;a=a.decoder_;xT(a,a.cursor_+W)}break;case 5:a=a.decoder_;xT(a,a.cursor_+4);break;case 3:W=a.nextField_;do{if(!hDD(a))throw Error("V");if(a.nextWireType_==4){if(a.nextField_!=W)throw Error("W");break}sm(a)}while(1);break;default:throw Error("T`"+a.nextWireType_+"`"+a.fieldCursor_);}};
dVU=function(a,W,w){var Z=a.decoder_.end_,N=_.sy(a.decoder_)>>>0,B=a.decoder_.cursor_+N,I=B-Z;I<=0&&(a.decoder_.end_=B,w(W,a,void 0,void 0,void 0),I=B-a.decoder_.cursor_);if(I)throw Error("S`"+N+"`"+(N-I));a.decoder_.cursor_=B;a.decoder_.end_=Z};
_.mVU=function(a){var W=_.sy(a.decoder_)>>>0;a=a.decoder_;var w=Czv(a,W);a=a.bytes_;if(eZ7){var Z=a,N;(N=c_v)||(N=c_v=new TextDecoder("utf-8",{fatal:!0}));W=w+W;Z=w===0&&W===Z.length?Z:Z.subarray(w,W);try{var B=N.decode(Z)}catch(U){if(inS===void 0){try{N.decode(new Uint8Array([128]))}catch(O){}try{N.decode(new Uint8Array([97])),inS=!0}catch(O){inS=!1}}!inS&&(c_v=void 0);throw U;}}else{B=w;W=B+W;w=[];for(var I=null,X,v;B<W;)X=a[B++],X<128?w.push(X):X<224?B>=W?wE():(v=a[B++],X<194||(v&192)!==128?(B--,
wE()):w.push((X&31)<<6|v&63)):X<240?B>=W-1?wE():(v=a[B++],(v&192)!==128||X===224&&v<160||X===237&&v>=160||((N=a[B++])&192)!==128?(B--,wE()):w.push((X&15)<<12|(v&63)<<6|N&63)):X<=244?B>=W-2?wE():(v=a[B++],(v&192)!==128||(X<<28)+(v-144)>>30!==0||((N=a[B++])&192)!==128||((Z=a[B++])&192)!==128?(B--,wE()):(X=(X&7)<<18|(v&63)<<12|(N&63)<<6|Z&63,X-=65536,w.push((X>>10&1023)+55296,(X&1023)+56320))):wE(),w.length>=8192&&(I=aD9(I,w),w.length=0);B=aD9(I,w)}return B};
_.VRF=function(a){var W=_.sy(a.decoder_)>>>0;return cze(a.decoder_,W)};
_.z0H=function(a,W,w){var Z=_.sy(a.decoder_)>>>0;for(Z=a.decoder_.cursor_+Z;a.decoder_.cursor_<Z;)w.push(W(a.decoder_))};
f6x=[];var Hu8=function(a,W){this.JSC$6768_lo=a>>>0;this.JSC$6768_hi=W>>>0},Erm=function(a){if(!a)return yi7||(yi7=new Hu8(0,0));
if(!/^\d+$/.test(a))return null;$d(a);return new Hu8(ER,aE)},yi7,uX8=function(a,W){this.JSC$6770_lo=a>>>0;
this.JSC$6770_hi=W>>>0},bKv=function(a){if(!a)return a5E||(a5E=new uX8(0,0));
if(!/^-?\d+$/.test(a))return null;$d(a);return new uX8(ER,aE)},a5E;var Wpe=function(){this.JSC$6772_buffer_=[]},sEv,wBe;
Wpe.prototype.length=function(){return this.JSC$6772_buffer_.length};
Wpe.prototype.end=function(){var a=this.JSC$6772_buffer_;this.JSC$6772_buffer_=[];return a};
sEv=function(a,W,w){for(;w>0||W>127;)a.JSC$6772_buffer_.push(W&127|128),W=(W>>>7|w<<25)>>>0,w>>>=7;a.JSC$6772_buffer_.push(W)};
wBe=function(a,W){for(;W>127;)a.JSC$6772_buffer_.push(W&127|128),W>>>=7;a.JSC$6772_buffer_.push(W)};
_.C9e=function(a,W){if(W>=0)wBe(a,W);else{for(var w=0;w<9;w++)a.JSC$6772_buffer_.push(W&127|128),W>>=7;a.JSC$6772_buffer_.push(1)}};
_.H9=function(a,W){a.JSC$6772_buffer_.push(W>>>0&255);a.JSC$6772_buffer_.push(W>>>8&255);a.JSC$6772_buffer_.push(W>>>16&255);a.JSC$6772_buffer_.push(W>>>24&255)};var ZWU,D2,Die,miD;ZWU=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Wpe};
D2=function(a,W){W.length!==0&&(a.blocks_.push(W),a.totalLength_+=W.length)};
_.gd7=function(a,W){_.mZ(a,W,2);W=a.encoder_.end();D2(a,W);W.push(a.totalLength_);return W};
_.odv=function(a,W){var w=W.pop();for(w=a.totalLength_+a.encoder_.length()-w;w>127;)W.push(w&127|128),w>>>=7,a.totalLength_++;W.push(w);a.totalLength_++};
_.mZ=function(a,W,w){wBe(a.encoder_,W*8+w)};
Die=function(a,W,w){if(w!=null){switch(typeof w){case "string":Erm(w)}_.mZ(a,W,1);switch(typeof w){case "number":a=a.encoder_;G8x(w);_.H9(a,ER);_.H9(a,aE);break;case "bigint":w=BigInt.asUintN(64,w);w=new Hu8(Number(w&BigInt(4294967295)),Number(w>>BigInt(32)));a=a.encoder_;W=w.JSC$6768_hi;_.H9(a,w.JSC$6768_lo);_.H9(a,W);break;default:w=Erm(w),a=a.encoder_,W=w.JSC$6768_hi,_.H9(a,w.JSC$6768_lo),_.H9(a,W)}}};
miD=function(a,W,w){_.mZ(a,W,2);wBe(a.encoder_,w.length);D2(a,a.encoder_.end());D2(a,w)};var P99,$Ie,BuF,P_m,XBS;P99=FL();_.NuC=FL();_.t19=FL();$Ie=FL();BuF=FL();_.l59=FL();_.G1=FL();_.I5I=FL();P_m=FL();XBS=FL();_.vN7=FL();_.gNE=FL();_.QH=function(a,W,w){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a,W,w)};
_.QH.prototype.toJSON=function(){return Z2(this)};
_.QH.prototype.serialize=function(a){return JSON.stringify(Z2(this,a))};
var Z_C=function(a,W){if(W==null||W=="")return new a;W=JSON.parse(W);if(!Array.isArray(W))throw Error("$");return new a(M98(W))};
_.QH.prototype.getExtension=function(a){LJe(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);nR7(this,a.fieldIndex);return a.ctor?a.isRepeated?a.getExtensionFn(this,a.ctor,a.fieldIndex,_.Hh(),a.JSC$6783_hasMessageId):a.getExtensionFn(this,a.ctor,a.fieldIndex,a.JSC$6783_hasMessageId):a.isRepeated?a.getExtensionFn(this,a.fieldIndex,_.Hh(),a.JSC$6783_hasMessageId):a.getExtensionFn(this,a.fieldIndex,a.defaultValue,a.JSC$6783_hasMessageId)};
_.QH.prototype.clone=function(){var a=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=a[_.n6]|0;return IP(this,a,W)?lY(this,a,!0):new this.constructor(B9(a,W,!1))};
_.QH.prototype[sI]=G0;_.QH.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Mo=function(a,W,w){this.$$binaryReaderFn=a;this.$$binaryWriterFn=W;a=mn(P99);this.$$isMsg=!!a&&w===a||!1},SIv=X2E(function(a,W,w,Z,N){if(a.nextWireType_!==2)return!1;
dVU(a,F38(W,Z,w),N);return!0},k0F),YID=X2E(function(a,W,w,Z,N){if(a.nextWireType_!==2)return!1;
dVU(a,F38(W,Z,w),N);return!0},k0F),C_=Symbol(),bY=Symbol(),AzU=Symbol(),JzC=Symbol(),eD8=Symbol(),UiS,OK7;var a2I,oNH,kBx,UIv,OW7,Sc7,YcD,TuD,Kpm,pBe,rhe,hj7,iWU,ejS,nNI;a2I=function(a,W){var w=new ZWU;Fnv(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w,qo(C_,uY,Gk,W));D2(w,w.encoder_.end());a=new Uint8Array(w.totalLength_);W=w.blocks_;for(var Z=W.length,N=0,B=0;B<Z;B++){var I=W[B];a.set(I,N);N+=I.length}w.blocks_=[a];return a};
oNH=_.f_(function(a,W,w){if(a.nextWireType_!==1)return!1;_.dC(W,w,slI(a.decoder_));return!0},xie,XBS);
kBx=_.f_(function(a,W,w,Z){if(a.nextWireType_!==1)return!1;_.rk(W,w,Z,slI(a.decoder_));return!0},xie,XBS);
UIv=_.f_(function(a,W,w,Z){if(a.nextWireType_!==5)return!1;var N=_.Co(a.decoder_);a=(N>>31)*2+1;var B=N>>>23&255;N&=8388607;_.rk(W,w,Z,B==255?N?NaN:a*Infinity:B==0?a*1.401298464324817E-45*N:a*Math.pow(2,B-150)*(N+8388608));return!0},function(a,W,w){W=_.v2(W);
W!=null&&(_.mZ(a,w,5),a=a.encoder_,w=VH||(VH=new DataView(new ArrayBuffer(8))),w.setFloat32(0,+W,!0),aE=0,ER=w.getUint32(0,!0),_.H9(a,ER))},P_m);
_.DL=_.f_(function(a,W,w){if(a.nextWireType_!==0)return!1;_.dC(W,w,_.bB(a.decoder_,Za));return!0},_.yH,_.G1);
OW7=_.f_(function(a,W,w){if(a.nextWireType_!==0)return!1;a=_.bB(a.decoder_,Za);_.dC(W,w,a===0?void 0:a);return!0},_.yH,_.G1);
Sc7=_.f_(function(a,W,w,Z){if(a.nextWireType_!==0)return!1;_.rk(W,w,Z,_.bB(a.decoder_,Za));return!0},_.yH,_.G1);
_.fo=_.f_(function(a,W,w){if(a.nextWireType_!==0)return!1;_.dC(W,w,_.sy(a.decoder_));return!0},G0F,$Ie);
YcD=_.f_(function(a,W,w){if(a.nextWireType_!==0)return!1;a=_.sy(a.decoder_);_.dC(W,w,a===0?void 0:a);return!0},G0F,$Ie);
TuD=_.f_(function(a,W,w,Z){if(a.nextWireType_!==0)return!1;_.rk(W,w,Z,_.sy(a.decoder_));return!0},G0F,$Ie);
Kpm=_.f_(function(a,W,w){if(a.nextWireType_!==1)return!1;_.dC(W,w,buF(a.decoder_));return!0},_.fam,_.I5I);
pBe=_.QES(function(a,W,w){if(a.nextWireType_!==1&&a.nextWireType_!==2)return!1;W=_.c9(W,W[_.n6]|0,w);a.nextWireType_==2?_.z0H(a,buF,W):W.push(buF(a.decoder_));return!0},function(a,W,w){W=_.qIS(Uy8,W,!1);
if(W!=null)for(var Z=0;Z<W.length;Z++)Die(a,w,W[Z])},_.I5I);
_.dk=_.f_(function(a,W,w){if(a.nextWireType_!==0)return!1;_.dC(W,w,_.upI(a.decoder_));return!0},_.di9,_.NuC);
rhe=_.f_(function(a,W,w,Z){if(a.nextWireType_!==0)return!1;_.rk(W,w,Z,_.upI(a.decoder_));return!0},_.di9,_.NuC);
_.mK=_.f_(function(a,W,w){if(a.nextWireType_!==2)return!1;_.dC(W,w,_.mVU(a));return!0},_.V09,_.t19);
_.AhF=_.f_(function(a,W,w,Z){if(a.nextWireType_!==2)return!1;_.rk(W,w,Z,_.mVU(a));return!0},_.V09,_.t19);
hj7=_.QES(function(a,W,w){if(a.nextWireType_!==2)return!1;a=_.mVU(a);_.c9(W,W[_.n6]|0,w).push(a);return!0},function(a,W,w){W=_.qIS(_.b9,W,!0);
if(W!=null)for(var Z=0;Z<W.length;Z++){var N=a,B=w,I=W[Z];I!=null&&miD(N,B,NEE(I))}},_.t19);
iWU=void 0;iWU=iWU===void 0?P99:iWU;_.VZ=new Mo(function(a,W,w,Z,N){if(a.nextWireType_!==2)return!1;Z=$b(void 0,Z,!0);_.c9(W,W[_.n6]|0,w).push(Z);dVU(a,Z,N);return!0},function(a,W,w,Z,N){if(Array.isArray(W))for(var B=0;B<W.length;B++)zDv(a,W[B],w,Z,N)},iWU);
_.z1=X2E(function(a,W,w,Z,N,B){if(a.nextWireType_!==2)return!1;var I=W[_.n6]|0;Nfm(W,I,B,w,mJ(I));W=F38(W,Z,w);dVU(a,W,N);return!0},zDv);
_.chm=_.f_(function(a,W,w){if(a.nextWireType_!==2)return!1;_.dC(W,w,_.VRF(a));return!0},_.yz8,_.vN7);
ejS=_.f_(function(a,W,w,Z){if(a.nextWireType_!==2)return!1;_.rk(W,w,Z,_.VRF(a));return!0},_.yz8,_.vN7);
nNI=_.f_(function(a,W,w,Z){if(a.nextWireType_!==0)return!1;_.rk(W,w,Z,_.sy(a.decoder_)>>>0);return!0},function(a,W,w){W=_.c2(W);
W!=null&&W!=null&&(_.mZ(a,w,0),wBe(a.encoder_,W))},BuF);
_.Hz=_.f_(function(a,W,w){if(a.nextWireType_!==0)return!1;_.dC(W,w,_.sy(a.decoder_));return!0},_.Edm,_.gNE);var JhE=function(){var a=jzv,W=LpF;this.fieldIndex=175237375;this.ctor=W;this.isRepeated=0;this.getExtensionFn=_.Hi;this.defaultValue=void 0;this.JSC$6783_hasMessageId=a.messageId!=null?f6:void 0};
JhE.prototype.register=function(){Bz(this)};var Fpx=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Fpx,_.QH);var M18=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(M18,_.QH);var $o7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c($o7,_.QH);var Rj9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Rj9,_.QH);var qc9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(qc9,_.QH);var QzD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(QzD,_.QH);var xIv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(xIv,_.QH);xIv.prototype.getData=function(){return _.Ko(this,2)};var bWv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(bWv,_.QH);var szU=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(szU,_.QH);szU.prototype.getStyle=function(){return _.Hi(this,Fpx,1)};var w5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(w5,_.QH);w5.prototype.getPayloadCase=function(){return _.AD(this,tY)};
w5.prototype.getStyle=function(){return _.RY(this,szU,6,tY)};
var u_7=function(){var a=new w5,W=new qc9;return _.N_(a,7,tY,W)},C_D=function(){var a=new w5,W=new QzD;
return _.N_(a,8,tY,W)},tY=[1,
2,3,4,5,6,7,8];var GB8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(GB8,_.QH);var DID=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(DID,_.QH);var f5e=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(f5e,_.QH);var dIe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(dIe,_.QH);var mI8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(mI8,_.QH);var V19=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(V19,_.QH);var zjD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(zjD,_.QH);var HW7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(HW7,_.QH);HW7.prototype.getData=function(){return _.Ko(this,2)};var yhm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(yhm,_.QH);var tev=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(tev,_.QH);tev.prototype.getPayloadCase=function(){return _.AD(this,yZ)};
var yZ=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Ey=function(a,W){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.code=W===void 0?2:W};
_.c(Ey,Error);var ENe=Promise;var aDV=function(a){this.channelPromise=a};
aDV.prototype.send=function(a,W,w){this.channelPromise.then(function(Z){Z.send(a,W,w)})};var WUl=function(a,W){this.data=a;this.channel=W};
WUl.prototype.reply=function(a,W,w){this.channel.send(a,W,w)};var wv$=function(a){this.JSC$6849_port_=a};
wv$.prototype.send=function(a,W,w){w=w===void 0?[]:w;var Z=new MessageChannel;Z7V(Z.port1,W);this.JSC$6849_port_.postMessage(a,[Z.port2].concat(w))};
var NET=function(a,W){Z7V(a,W);return new wv$(a)},Z7V=function(a,W){W&&(a.onmessage=function(w){W(new WUl(w.data,NET(w.ports[0])))})};var t9$=function(a){this.verifier_=a},$H6=function(a){var W=Object.create(null);
(typeof a==="string"?[a]:a).forEach(function(w){if(w==="null")throw Error("ba");W[w]=!0});
return function(w){return W[w]===!0}};_.BEh=function(){if(!_.NH.addEventListener||!Object.defineProperty)return!1;var a=!1,W=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var w=function(){};
_.NH.addEventListener("test",w,W);_.NH.removeEventListener("test",w,W)}catch(Z){}return a}();var lDA;_.aN=function(a){var W=a.destination;var w=a.iframe;var Z=a.origin;var N=a.channelName===void 0?"ZNWN1d":a.channelName;var B=a.onMessage===void 0?void 0:a.onMessage;a=a.onEstablished===void 0?void 0:a.onEstablished;return lDA({destination:W,getSource:function(){return w.contentWindow},
originVerifier:Z instanceof t9$?Z:typeof Z==="function"?new t9$(Z):new t9$($H6(Z)),channelName:N,onMessage:B,onEstablished:a})};
lDA=function(a){var W=a.destination;var w=a.getSource;var Z=a.originVerifier;var N=a.token===void 0?void 0:a.token;var B=a.channelName;var I=a.onMessage===void 0?void 0:a.onMessage;var X=a.onEstablished===void 0?void 0:a.onEstablished;return new aDV(new ENe(function(v,U){var O=function(S){S.source&&S.source===w()&&Z.verifier_(S.origin)&&(S.data.n||S.data)===B&&(W.removeEventListener("message",O,!1),N&&S.data.t!==N?U(Error("ca`"+B+"`"+N+"`"+S.data.t)):(v(NET(S.ports[0],I)),X&&X(S)))};
W.addEventListener("message",O,!1)}))};var ID$=function(a){try{a()}catch(W){$I(W)}};var XvH=function(a){var W=this;var w=a.getMessageType;var Z=a.onUnregisteredMessage===void 0?function(){}:a.onUnregisteredMessage;
var N=a.onBeforeRegisteredMessage===void 0?function(){}:a.onBeforeRegisteredMessage;
a=a.onAfterRegisteredMessage===void 0?function(){}:a.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=w;this.onUnregisteredMessage_=Z;this.onBeforeRegisteredMessage_=N;this.onAfterRegisteredMessage_=a;this.onMessage=function(B){return PeH(W,B)}};
XvH.prototype.register=function(a,W){this.registry_.set(a,W);return this};
var PeH=function(a,W){var w=a.getMessageType_(W.data),Z=a.registry_.get(w);Z?(ID$(function(){return a.onBeforeRegisteredMessage_(W,w)}),ID$(function(){return Z(W)}),ID$(function(){return a.onAfterRegisteredMessage_(W,w)})):ID$(function(){return a.onUnregisteredMessage_(W,w)})};var vIh=function(a){this.JSC$6866_channel_=a},oIA,k8y;
vIh.prototype.send=function(a,W,w){this.JSC$6866_channel_.send(Z2(a),W,w)};
_.gIR=function(a,W){return function(w){var Z=new a(w.data);return W(new WUl(Z,w.channel))}};
oIA=function(a){return function(W){return a(new WUl(W.data,new vIh(W.channel)))}};
k8y=function(a,W){return oIA(_.gIR(a,W))};var UHH=function(a,W,w,Z){this.registry=a;this.delegate=W;this.receiveMessageConstructor=w;this.createInitMessage=Z;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},NC7=function(a){var W=new XvH({getMessageType:a.getPayloadCase});
return new UHH(W,new vIh(_.aN({iframe:a.child,destination:window,origin:a.origin,channelName:a.channelName,onMessage:k8y(a.receiveMessageConstructor,W.onMessage)})),a.receiveMessageConstructor,a.createInitMessage)},O7E=function(a,W){a.createInitMessage=W};
UHH.prototype.send=function(a){if(!this.initialised)throw new Ey("Attempted to send a message before initialisation.");this.delegate.send(a)};
var SS$=function(a,W){return _.P(function(w){if(!a.initialised)throw new Ey("Attempted to send a message before initialisation.");return w.return(new Promise(function(Z){a.delegate.send(W,k8y(a.receiveMessageConstructor,Z))}))})};
UHH.prototype.init=function(){var a=this;return _.P(function(W){if(a.initialised)throw new Ey("Attempted to initialise twice. The SDK can only be initialised once.");if(a.createInitMessage!==void 0){var w=a.delegate,Z=w.send,N=a.createInitMessage;var B=new M18;var I=[].concat(_.K8(a.features));B=_.AI(B,1,I,_.pK);Z.call(w,N.call(a,B))}a.initialised=!0;_.Xd(W)})};
var W0=function(a,W){if(a.initialised)throw new Ey('Attempted to set up API "'+W+'" after initialisation. All APIs must be set up before initialising the SDK.');a.features.add(W);return a.registry};
_.dU.Object.defineProperties(UHH.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var YSh=function(a){this.channel=a;this.registered=!1};
YSh.prototype.update=function(a){if(this.channel.isInitialised){if(!this.registered)throw new Ey("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var W=new w5;var w=new Rj9;w=_.wh(w,1,a);W=_.N_(W,2,tY,w);this.channel.send(W)}else this.register();this.JSC$6880_audioEnabled=a};
YSh.prototype.register=function(){W0(this.channel,1);this.registered=!0};
YSh.prototype.isAudioEnabled=function(){return this.JSC$6880_audioEnabled};var TER=function(a){this.channel=a};
_.t=TER.prototype;_.t.onFirstFrameReady=function(a){W0(this.channel,2).register(11,function(W){W=_.RY(W.data,GB8,11,yZ);if(!W)throw new Ey("Unexpectedly nonexistent GameFirstFrameReadyEvent");a(_.Lo(W,1))})};
_.t.onReady=function(a){W0(this.channel,2).register(4,function(W){W=_.RY(W.data,f5e,4,yZ);if(!W)throw new Ey("Unexpectedly nonexistent GameReadyEvent");a(_.Lo(W,1))})};
_.t.onLevelComplete=function(a){W0(this.channel,2).register(5,function(W){W=_.RY(W.data,dIe,5,yZ);if(!W)throw new Ey("Unexpectedly nonexistent LevelCompleteEvent");a(_.Lo(W,1),_.yo(W,2))})};
_.t.onGameOver=function(a){W0(this.channel,2).register(6,function(W){W=_.RY(W.data,DID,6,yZ);if(!W)throw new Ey("Unexpectedly nonexistent GameOverEvent");a(_.Lo(W,1))})};
_.t.pause=function(){var a=this;if(!this.channel.isInitialised)return W0(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ey("Using unregistered Game Feature: pause.");var W=u_7();return new Promise(function(w){return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,SS$(a.channel,W),2);w();_.Xd(Z)})})};
_.t.resume=function(){var a=this;if(!this.channel.isInitialised)return W0(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ey("Using unregistered Game Feature: resume.");var W=C_D();return new Promise(function(w){return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,SS$(a.channel,W),2);w();_.Xd(Z)})})};var KUe=function(a){this.channel=a};
KUe.prototype.onReady=function(a){W0(this.channel,5).register(8,function(W){if(!_.RY(W.data,mI8,8,yZ))throw new Ey("Unexpectedly nonexistent PageReadyEvent");a()})};var pvy=function(a){this.channel=a};
pvy.prototype.onChange=function(a){W0(this.channel,3).register(7,function(W){W=_.RY(W.data,V19,7,yZ);if(!W)throw new Ey("Unexpectedly nonexistent ScoreEvent");a(_.Lo(W,1),_.yo(W,2))})};var rmH={load:function(){throw new Ey("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Ey("Storage used, but storage.onSave() listener not set!");}},Am6=function(a){this.channel=a;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},hee=function(a){W0(a.channel,4).register(2,rmH.load).register(3,rmH.save);
a.initialSetupDone=!0};
Am6.prototype.onLoad=function(a){this.initialSetupDone||hee(this);this.loadRegistered||(this.loadRegistered=!0,W0(this.channel,4).register(2,function(W){var w,Z,N;return _.P(function(B){if(B.nextAddress==1){w=_.RY(W.data,zjD,2,yZ);if(!w)throw new Ey("Unexpectedly nonexistent StorageLoad");Z=_.Lo(w,1);return _.g(B,a(Z),2)}N=B.yieldResult;var I=W.reply,X=new w5;var v=new xIv;v=_.Xu(v,1,Z);v=_.Ew(v,2,_.C6(N,!1));X=_.N_(X,3,tY,v);I.call(W,X);_.Xd(B)})}))};
Am6.prototype.onSave=function(a){this.initialSetupDone||hee(this);this.saveRegistered||(this.saveRegistered=!0,W0(this.channel,4).register(3,function(W){var w,Z,N;return _.P(function(B){if(B.nextAddress==1){w=_.RY(W.data,HW7,3,yZ);if(!w)throw new Ey("Unexpectedly nonexistent StorageSave");Z=_.Lo(w,1);N=SES(w.getData());return _.g(B,a(Z,N),2)}var I=W.reply,X=new w5;var v=new bWv;v=_.Xu(v,1,Z);X=_.N_(X,4,tY,v);I.call(W,X);_.Xd(B)})}))};var i7e=function(a){this.channel=a};
i7e.prototype.update=function(a){if(!this.channel.features.has(6))throw new Ey("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var W=new w5,w=new szU;a=_.ZP(w,1,a);W=_.N_(W,6,tY,a);this.channel.send(W)};
i7e.prototype.register=function(){W0(this.channel,6)};var cmh=function(a){this.channel=a;this.userActivityLoggingIntervalMs=0};
cmh.prototype.onUserActivity=function(a,W){this.userActivityLoggingIntervalMs=W;W0(this.channel,7).register(9,function(w){if(!_.RY(w.data,yhm,9,yZ))throw new Ey("Unexpectedly nonexistent ClickEvent");a()})};var eee=function(a){var W=this;this.channel=a;this.init=this.channel.init.bind(this.channel);this.page=new KUe(this.channel);this.game=new TER(this.channel);this.audio=new YSh(this.channel);this.score=new pvy(this.channel);this.storage=new Am6(this.channel);this.style=new i7e(this.channel);this.userActivity=new cmh(this.channel);O7E(this.channel,function(w){var Z=new $o7;w=_.ZP(Z,1,w);w=_.qT(w,3,W.userActivity.userActivityLoggingIntervalMs);Z=W.audio.isAudioEnabled();Z!==void 0&&_.wh(w,2,Z);Z=new w5;
return _.N_(Z,5,tY,w)})};var nIV=function(){this.timedFunctionContext=0};
nIV.prototype.timeExecution=function(a,W){var w=this;return function(){var Z=_.TH.apply(0,arguments);w.timedFunctionContext=a;return W.apply(null,_.K8(Z))}};var jC$=function(){var a={};this.priorityTasks=(a[3]=[],a[2]=[],a[1]=[],a);this.isFlushing=!1},Nq=function(a,W,w){var Z=LUT(a,w);
a.priorityTasks[w].push(W);Z&&a.priorityTasks[w].length===1&&a.flush()},LUT=function(a,W){return Object.keys(a.priorityTasks).map(function(w){return Number(w)}).filter(function(w){return!isNaN(w)&&w>W}).every(function(w){return a.priorityTasks[w].length===0})};
jC$.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(a){return a.length>0});)JmA(this,3),JmA(this,2),JmA(this,1)}catch(a){throw Object.values(this.priorityTasks).forEach(function(W){return void W.splice(0,W.length)}),a;
}finally{this.isFlushing=!1}}};
var JmA=function(a,W){for(;LUT(a,W)&&a.priorityTasks[W].length>0;)a.priorityTasks[W][0](),a.priorityTasks[W].shift()};
_.dU.Object.defineProperties(jC$.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(a){return a.length>0})}}});var vbm={};var FU_=globalThis.trustedTypes,l2F=FU_,PY9;var BP=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};
BP.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var M9h=_.ma([""]),Re$=BA9(["\x00"],["\\0"]),qSR=BA9(["\n"],["\\n"]),QCy=BA9(["\x00"],["\\u0000"]);PP(function(a){return a(M9h)})||PP(function(a){return a(Re$)})||PP(function(a){return a(qSR)})||PP(function(a){return a(QCy)});var O0;_.Xr=function(a,W){this.privateDoNotAccessOrElseWrappedUrl=W};
_.Xr.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.xHH=vP("about:blank");O0=vP("about:invalid#zClosurez");var gb9=function(a){this.isValid=a},b7y=new gb9(function(a){return/^[^:]*([/?#]|$)/.test(a)}),sC$=kf("data"),uxe=kf("http"),CeV=kf("https"),G8$=kf("ftp"),DH6=kf("mailto"),fDR=kf("intent"),dH_=kf("vnd.youtube"),obe=[sC$,
uxe,CeV,DH6,G8$,b7y],kkS=$f(function(){return typeof URL==="function"}),mHE=["data:",
"http:","https:","mailto:","ftp:"],O_E=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var iq=function(a){this.privateDoNotAccessOrElseWrappedHtml=a};
iq.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var iF9=$f(function(){return new iq(FU_?FU_.emptyHTML:"")});var V9L={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"},jB=function(a,W){var w=Error.call(this,a+" cannot be used with intent "+V9L[W]);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.type=a;this.intent=W;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.c(jB,Error);_.Fr=function(a){this.privateDoNotAccessOrElseWrappedScript=a};
_.Fr.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var KZS=function(a){this.privateDoNotAccessOrElseWrappedAttributePrefix=a};
KZS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var p9e="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var cQx=function(a){var W=_.RT("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:W,stack:"Not available"};var w=!1;try{var Z=a.lineNumber||a.line||"Not available"}catch(I){Z="Not available",w=!0}try{var N=a.fileName||a.filename||a.sourceURL||_.NH.$googDebugFname||W}catch(I){N="Not available",w=!0}W=zeA(a);if(!(!w&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){w=a.message;
if(w==null){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)w=a.constructor.name;else if(w=a.constructor,wm[w])w=wm[w];else{w=String(w);if(!wm[w]){var B=/function\s+([^\(]+)/m.exec(w);wm[w]=B?B[1]:"[Anonymous]"}w=wm[w]}w='Unknown Error of type "'+w+'"'}else w="Unknown Error of unknown type";typeof a.toString==="function"&&Object.prototype.toString!==a.toString&&(w+=": "+a.toString())}return{message:w,name:a.name||"UnknownError",lineNumber:Z,fileName:N,stack:W||"Not available"}}return{message:a.message,
name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:W}},zeA=function(a,W){W||(W={});
W[H7_(a)]=!0;var w=a.stack||"",Z=a.cause;Z&&!W[H7_(Z)]&&(w+="\nCaused by: ",Z.stack&&Z.stack.indexOf(Z.toString())==0||(w+=typeof Z==="string"?Z:Z.message+"\n"),w+=zeA(Z,W));a=a.errors;if(Array.isArray(a)){Z=1;var N;for(N=0;N<a.length&&!(Z>4);N++)W[H7_(a[N])]||(w+="\nInner error "+Z++ +": ",a[N].stack&&a[N].stack.indexOf(a[N].toString())==0||(w+=typeof a[N]==="string"?a[N]:a[N].message+"\n"),w+=zeA(a[N],W));N<a.length&&(w+="\n... "+(a.length-N)+" more inner errors")}return w},H7_=function(a){var W=
"";
typeof a.toString==="function"&&(W=""+a);return W+a.stack},wm={};var ymy,mB,aL,aER,WJJ,EIR,Fh,Rm,Z6_;ymy=function(a,W){for(var w=a.split("%s"),Z="",N=Array.prototype.slice.call(arguments,1);N.length&&w.length>1;)Z+=w.shift()+N.shift();return Z+w.join("%s")};
_.Qv=function(a){return encodeURIComponent(String(a))};
mB=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
aL=function(a){qvC.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(jGv,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(LCS,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(J_I,"&gt;")),a.indexOf('"')!=-1&&(a=a.replace(FCH,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(MhC,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(RZx,"&#0;")));return a};
aER=function(a){var W={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var w=_.NH.document.createElement("div");return a.replace(EIR,function(Z,N){var B=W[Z];if(B)return B;N.charAt(0)=="#"&&(N=Number("0"+N.slice(1)),isNaN(N)||(B=String.fromCharCode(N)));B||(_.xf(w,cP(Z+" ")),B=w.firstChild.nodeValue.slice(0,-1));return W[Z]=B})};
WJJ=function(a){return a.replace(/&([^;]+);/g,function(W,w){switch(w){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return w.charAt(0)!="#"||(w=Number("0"+w.slice(1)),isNaN(w))?W:String.fromCharCode(w)}})};
EIR=/&([^;\s<&]+);?/g;_.yD7=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.wlH=String.prototype.repeat?function(a,W){return a.repeat(W)}:function(a,W){return Array(W+1).join(a)};
_.ZA=function(a,W){if(!Number.isFinite(a))return String(a);a=String(a);var w=a.indexOf(".");w===-1&&(w=a.length);var Z=a[0]==="-"?"-":"";Z&&(a=a.substring(1));return Z+(0,_.wlH)("0",Math.max(0,W-w))+a};
Fh=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.ZL()).toString(36)};
Rm=function(a){for(var W=0,w=0;w<a.length;++w)W=31*W+a.charCodeAt(w)>>>0;return W};
_.gQ=function(a){return String(a).replace(/\-([a-z])/g,function(W,w){return w.toUpperCase()})};
_.vG=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
Z6_=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(W,w,Z){return w+Z.toUpperCase()})};var NT6=function(){this.names=new Map};
NT6.prototype.getName=function(a){var W=this.names.get(a);if(W)return W;var w;W=(w=a.description)!=null?w:Fh();this.names.set(a,W);return W};var tVH=function(a){var W=Error.call(this,a?a.length+" errors occurred during unsubscription:\n"+a.map(function(w,Z){return Z+1+") "+w.toString()}).join("\n  "):"");
this.message=W.message;"stack"in W&&(this.stack=W.stack);this.errors=a;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.c(tVH,Error);var m_=function(a){this.initialTeardown=a;this.closed=!1;this._teardowns=this._parentage=null};
_.t=m_.prototype;
_.t.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))for(var W=_.l(a),w=W.next();!w.done;w=W.next())w.value.remove(this);else a==null||a.remove(this);W=this.initialTeardown;if(d5(W))try{W()}catch(B){var Z=B instanceof tVH?B.errors:[B]}var N=this._teardowns;if(N)for(this._teardowns=null,W=_.l(N),w=W.next();!w.done;w=W.next()){w=w.value;try{d5(w)?w():w.unsubscribe()}catch(B){w=void 0,Z=(w=Z)!=null?w:[],B instanceof tVH?Z=[].concat(_.K8(Z),_.K8(B.errors)):
Z.push(B)}}if(Z)throw new tVH(Z);}};
_.t.add=function(a){if(a&&a!==this)if(this.closed)d5(a)?a():a.unsubscribe();else{if(a instanceof m_){if(a.closed||a._hasParent(this))return;a._addParent(this)}var W;(this._teardowns=(W=this._teardowns)!=null?W:[]).push(a)}};
_.t._hasParent=function(a){var W=this._parentage;return W===a||Array.isArray(W)&&W.includes(a)};
_.t._addParent=function(a){var W=this._parentage;this._parentage=Array.isArray(W)?(W.push(a),W):W?[W,a]:a};
_.t._removeParent=function(a){var W=this._parentage;W===a?this._parentage=null:Array.isArray(W)&&fv(W,a)};
_.t.remove=function(a){var W=this._teardowns;W&&fv(W,a);a instanceof m_&&a._removeParent(this)};
var $yJ=new m_;$yJ.closed=!0;m_.JSC$6976_EMPTY=$yJ;var i_8=function(){setTimeout.apply(null,_.K8(_.TH.apply(0,arguments)))};var NS=function(a){m_.call(this);this.JSC$6981_isStopped=!1;this.destination=a instanceof NS?a:new t9(!a||d5(a)?{next:a!=null?a:void 0}:a);hRF(a)&&a.add(this)};
_.c(NS,m_);NS.JSC$6976_EMPTY=m_.JSC$6976_EMPTY;NS.create=function(a,W,w){return new $2(a,W,w)};
_.t=NS.prototype;_.t.next=function(a){this.JSC$6981_isStopped||this._next(a)};
_.t.error=function(a){this.JSC$6981_isStopped||(this.JSC$6981_isStopped=!0,this._error(a))};
_.t.complete=function(){this.JSC$6981_isStopped||(this.JSC$6981_isStopped=!0,this._complete())};
_.t.unsubscribe=function(){this.closed||(this.JSC$6981_isStopped=!0,m_.prototype.unsubscribe.call(this))};
_.t._next=function(a){this.destination.next(a)};
_.t._error=function(a){this.destination.error(a);this.unsubscribe()};
_.t._complete=function(){this.destination.complete();this.unsubscribe()};
var t9=function(a){this.partialObserver=a};
t9.prototype.next=function(a){var W=this.partialObserver;if(W.next)try{W.next(a)}catch(w){HP(w)}};
t9.prototype.error=function(a){var W=this.partialObserver;if(W.error)try{W.error(a)}catch(w){HP(w)}else HP(a)};
t9.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(W){HP(W)}};
var $2=function(a,W,w){NS.call(this);var Z;d5(a)||!a?Z={next:a!=null?a:void 0,error:W!=null?W:void 0,complete:w!=null?w:void 0}:Z=a;this.destination=new t9(Z)};
_.c($2,NS);$2.JSC$6976_EMPTY=NS.JSC$6976_EMPTY;$2.create=NS.create;var wb=typeof Symbol==="function"&&Symbol.observable||"@@observable";var an=function(a){a&&(this._subscribe=a)};
_.t=an.prototype;_.t.lift=function(a){var W=new an;W.source=this;W.operator=a;return W};
_.t.subscribe=function(a,W,w){a=a&&a instanceof NS||a&&d5(a.next)&&d5(a.error)&&d5(a.complete)&&hRF(a)?a:new $2(a,W,w);W=this.operator;w=this.source;a.add(W?W.call(a,w):w?this._subscribe(a):this._trySubscribe(a));return a};
_.t._trySubscribe=function(a){try{return this._subscribe(a)}catch(W){a.error(W)}};
_.t.forEach=function(a,W){var w=this;W=eRv(W);return new W(function(Z,N){var B=w.subscribe(function(I){try{a(I)}catch(X){N(X),B==null||B.unsubscribe()}},N,Z)})};
_.t._subscribe=function(a){var W;return(W=this.source)==null?void 0:W.subscribe(a)};
an.prototype[wb]=function(){return this};
an.prototype.pipe=function(){var a=_.TH.apply(0,arguments);return a.length?cIF(a)(this):this};
an.create=function(a){return new an(a)};var BT6=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"};
_.c(BT6,Error);var Wh=function(){this.observers=[];this.hasError=this.JSC$6997_isStopped=this.closed=!1;this.thrownError=null};
_.c(Wh,an);_.t=Wh.prototype;_.t.lift=function(a){var W=new B0(this,this);W.operator=a;return W};
_.t._throwIfClosed=function(){if(this.closed)throw new BT6;};
_.t.next=function(a){this._throwIfClosed();if(!this.JSC$6997_isStopped){var W=this.observers.slice();W=_.l(W);for(var w=W.next();!w.done;w=W.next())w.value.next(a)}};
_.t.error=function(a){this._throwIfClosed();if(!this.JSC$6997_isStopped){this.hasError=this.JSC$6997_isStopped=!0;this.thrownError=a;for(var W=this.observers;W.length;)W.shift().error(a)}};
_.t.complete=function(){this._throwIfClosed();if(!this.JSC$6997_isStopped){this.JSC$6997_isStopped=!0;for(var a=this.observers;a.length;)a.shift().complete()}};
_.t.unsubscribe=function(){this.JSC$6997_isStopped=this.closed=!0;this.observers=null};
_.t._trySubscribe=function(a){this._throwIfClosed();return an.prototype._trySubscribe.call(this,a)};
_.t._subscribe=function(a){this._throwIfClosed();this._checkFinalizedStatuses(a);return this._innerSubscribe(a)};
_.t._innerSubscribe=function(a){var W=this,w=this.JSC$6997_isStopped,Z=this.observers;return this.hasError||w?m_.JSC$6976_EMPTY:(Z.push(a),new m_(function(){return fv(W.observers,a)}))};
_.t._checkFinalizedStatuses=function(a){var W=this.thrownError,w=this.JSC$6997_isStopped;this.hasError?a.error(W):w&&a.complete()};
Wh.create=function(a,W){return new B0(a,W)};
var B0=function(a,W){Wh.call(this);this.destination=a;this.source=W};
_.c(B0,Wh);B0.create=Wh.create;B0.prototype.next=function(a){var W,w;(W=this.destination)==null||(w=W.next)==null||w.call(W,a)};
B0.prototype.error=function(a){var W,w;(W=this.destination)==null||(w=W.error)==null||w.call(W,a)};
B0.prototype.complete=function(){var a,W;(a=this.destination)==null||(W=a.complete)==null||W.call(a)};
B0.prototype._subscribe=function(a){var W,w;return(w=(W=this.source)==null?void 0:W.subscribe(a))!=null?w:m_.JSC$6976_EMPTY};var Rv=function(a){Wh.call(this);this._value=a};
_.c(Rv,Wh);Rv.create=Wh.create;Rv.prototype._subscribe=function(a){var W=Wh.prototype._subscribe.call(this,a);!W.closed&&a.next(this._value);return W};
Rv.prototype.getValue=function(){var a=this.thrownError,W=this._value;if(this.hasError)throw a;this._throwIfClosed();return W};
Rv.prototype.next=function(a){Wh.prototype.next.call(this,this._value=a)};
_.dU.Object.defineProperties(Rv.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var cb=new an(function(a){return a.complete()});var Wb=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var qmF=function(a){return a&&typeof a.length==="number"&&typeof a!=="function"};var lEh={now:function(){return(lEh.delegate||Date).now()},
delegate:void 0};var ub=function(a,W,w){a=a===void 0?Infinity:a;W=W===void 0?Infinity:W;w=w===void 0?lEh:w;Wh.call(this);this.JSC$7019_bufferSize=a;this.windowTime=W;this.timestampProvider=w;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=W===Infinity;this.JSC$7019_bufferSize=Math.max(1,a);this.windowTime=Math.max(1,W)};
_.c(ub,Wh);ub.create=Wh.create;ub.prototype.next=function(a){var W=this.buffer,w=this.infiniteTimeWindow,Z=this.timestampProvider,N=this.windowTime;this.JSC$6997_isStopped||(W.push(a),!w&&W.push(Z.now()+N));IEH(this);Wh.prototype.next.call(this,a)};
ub.prototype._subscribe=function(a){this._throwIfClosed();IEH(this);for(var W=this._innerSubscribe(a),w=this.infiniteTimeWindow,Z=this.buffer.slice(),N=0;N<Z.length&&!a.closed;N+=w?1:2)a.next(Z[N]);this._checkFinalizedStatuses(a);return W};
var IEH=function(a){var W=a.JSC$7019_bufferSize,w=a.timestampProvider,Z=a.buffer;a=a.infiniteTimeWindow;var N=(a?1:2)*W;W<Infinity&&N<Z.length&&Z.splice(0,Z.length-N);if(!a){W=w.now();w=0;for(a=1;a<Z.length&&Z[a]<=W;a+=2)w=a;w&&Z.splice(0,w+1)}};var XlR=function(a,W){W=W===void 0?PAH:W;this.schedulerActionCtor=a;this.now=W};
XlR.prototype.schedule=function(a,W,w){W=W===void 0?0:W;return(new this.schedulerActionCtor(this,a)).schedule(w,W)};
var PAH=lEh.now;var cYH=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"};
_.c(cYH,Error);var OK=function(a,W,w,Z,N){NS.call(this,a);this.onUnsubscribe=N;W&&(this._next=function(B){try{W(B)}catch(I){this.destination.error(I)}});
w&&(this._error=function(B){try{w(B)}catch(I){this.destination.error(I)}this.unsubscribe()});
Z&&(this._complete=function(){try{Z()}catch(B){this.destination.error(B)}this.unsubscribe()})};
_.c(OK,NS);OK.JSC$6976_EMPTY=NS.JSC$6976_EMPTY;OK.create=NS.create;OK.prototype.unsubscribe=function(){var a;this.closed||(a=this.onUnsubscribe)!=null&&a.call(this);NS.prototype.unsubscribe.call(this)};var bb=function(a,W){this.source=a;this.subjectFactory=W;this._subject=null;this._refCount=0;this._connection=null};
_.c(bb,an);bb.create=an.create;bb.prototype._subscribe=function(a){return vRR(this).subscribe(a)};
var vRR=function(a){var W=a._subject;if(!W||W.JSC$6997_isStopped)a._subject=a.subjectFactory();return a._subject};
bb.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null;a==null||a.unsubscribe()};
bb.prototype.connect=function(){var a=this,W=this._connection;if(!W){W=this._connection=new m_;var w=vRR(this);W.add(this.source.subscribe(new OK(w,void 0,function(Z){a._teardown();w.error(Z)},function(){a._teardown();
w.complete()},function(){return a._teardown()})));
W.closed&&(this._connection=null,W=m_.JSC$6976_EMPTY)}return W};var VeS=Array.isArray;var H_9=Array.isArray,gRh=Object,yIE=gRh.getPrototypeOf,EbI=gRh.prototype,aPm=gRh.keys;var rb=function(a,W,w){NS.call(this,a);this._next=W;this.shouldComplete=w};
_.c(rb,NS);rb.JSC$6976_EMPTY=NS.JSC$6976_EMPTY;rb.create=NS.create;rb.prototype._complete=function(){this.shouldComplete()?NS.prototype._complete.call(this):this.unsubscribe()};var lPC=["addListener","removeListener"],B5U=["addEventListener","removeEventListener"],Pqx=["on","off"];var lE=function(){m_.call(this)};
_.c(lE,m_);lE.JSC$6976_EMPTY=m_.JSC$6976_EMPTY;lE.prototype.schedule=function(){return this};var oR6=function(a,W){return setInterval.apply(null,[a,W].concat(_.K8(_.TH.apply(2,arguments))))};var IN=function(a,W){m_.call(this);this.scheduler=a;this.work=W;this.pending=!1};
_.c(IN,lE);IN.JSC$6976_EMPTY=lE.JSC$6976_EMPTY;IN.prototype.schedule=function(a,W){W=W===void 0?0:W;if(this.closed)return this;this.state=a;a=this.id;var w=this.scheduler;a!=null&&(this.id=khJ(this,a,W));this.pending=!0;this.delay=W;this.id=this.id||this.requestAsyncId(w,this.id,W);return this};
IN.prototype.requestAsyncId=function(a,W,w){w=w===void 0?0:w;return oR6(a.flush.bind(a,this),w)};
var khJ=function(a,W,w){w=w===void 0?0:w;if(w!=null&&a.delay===w&&a.pending===!1)return W;clearInterval(W)};
IN.prototype.execute=function(a,W){if(this.closed)return Error("la");this.pending=!1;if(a=this._execute(a,W))return a;this.pending===!1&&this.id!=null&&(this.id=khJ(this,this.id,null))};
IN.prototype._execute=function(a){var W=!1;try{this.work(a)}catch(Z){W=!0;var w=!!Z&&Z||Error(Z)}if(W)return this.unsubscribe(),w};
IN.prototype.unsubscribe=function(){if(!this.closed){var a=this.id,W=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;fv(W,this);a!=null&&(this.id=khJ(this,a,null));this.delay=null;lE.prototype.unsubscribe.call(this)}};var Uyh=function(a,W){W=W===void 0?PAH:W;XlR.call(this,a,W);this.actions=[];this.active=!1;this.scheduled=void 0};
_.c(Uyh,XlR);Uyh.prototype.flush=function(a){var W=this.actions;if(this.active)W.push(a);else{var w;this.active=!0;do if(w=a.execute(a.state,a.delay))break;while(a=W.shift());this.active=!1;if(w){for(;a=W.shift();)a.unsubscribe();throw w;}}};var OT=new an(V$);var XPm=Array.isArray;var P0=function(a,W){IN.call(this,a,W);this.scheduler=a;this.work=W};
_.c(P0,IN);P0.JSC$6976_EMPTY=IN.JSC$6976_EMPTY;P0.prototype.schedule=function(a,W){W=W===void 0?0:W;if(W>0)return IN.prototype.schedule.call(this,a,W);this.delay=W;this.state=a;this.scheduler.flush(this);return this};
P0.prototype.execute=function(a,W){return W>0||this.closed?IN.prototype.execute.call(this,a,W):this._execute(a,W)};
P0.prototype.requestAsyncId=function(a,W,w){w=w===void 0?0:w;return w!=null&&w>0||w==null&&this.delay>0?IN.prototype.requestAsyncId.call(this,a,W,w):a.flush(this)};var O6A=function(){Uyh.apply(this,arguments)};
_.c(O6A,Uyh);var do8=new O6A(P0);var SR6=function(){this.performanceMonitor=new nIV;this.queue=new jC$;this.internalSymbol=Symbol();this.debugNames=new NT6};
SR6.prototype.getOnBackgrounded=function(){return OT};
_.dU.Object.defineProperties(SR6.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var XD=function(a,W){W=Error.call(this,W?a+": "+W:String(a));this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=a;this.__proto__=XD.prototype;this.name=String(a)};
_.c(XD,Error);var S3=function(a){XD.call(this,1E3,'sfr:"'+a+'"');this.measurementStrategyFailureReason=a;this.__proto__=S3.prototype};
_.c(S3,XD);var Yg=function(){XD.call(this,1003);this.__proto__=Yg.prototype};
_.c(Yg,XD);var v0=function(){XD.call(this,1009);this.__proto__=v0.prototype};
_.c(v0,XD);var YRR=function(){XD.call(this,1011);this.__proto__=YRR.prototype};
_.c(YRR,XD);var TTT=function(){XD.call(this,1007);this.__proto__=Yg.prototype};
_.c(TTT,XD);var vh=function(a){XD.call(this,1004,String(a));this.inputObservableIndex=a;this.__proto__=vh.prototype};
_.c(vh,XD);var xOm=function(a){XD.call(this,1010,a);this.__proto__=g3.prototype};
_.c(xOm,XD);var g3=function(a){XD.call(this,1005,a);this.__proto__=g3.prototype};
_.c(g3,XD);var KJA=function(a){var W=_.TH.apply(1,arguments),w=this;this.orderedFactories=[];this.orderedFactories.push(a);W.forEach(function(Z){w.orderedFactories.push(Z)})};
KJA.prototype.isSupported=function(a){return this.orderedFactories.some(function(W){return W.isSupported(a)})};
KJA.prototype.makeBeacon=function(a,W){for(var w=0;w<this.orderedFactories.length;w++)if(this.orderedFactories[w].isSupported(W))return this.orderedFactories[w].makeBeacon(a,W);throw new v0;};var rvx=Symbol("ma"),ply=Symbol("na"),L8=function(a,W){this.value=a;this.timeline=W},jn=function(a,W){if(W.timeline!==a.timeline)throw new TTT;
return a.value-W.value};
_.t=L8.prototype;_.t.equals=function(a){return jn(this,a)===0};
_.t.maximum=function(a){if(a.timeline!==this.timeline)throw new TTT;return this.value>=a.value?this:a};
_.t.round=function(){return new L8(Math.round(this.value),this.timeline)};
_.t.add=function(a){return new L8(this.value+a,this.timeline)};
_.t.toString=function(){return String(this.value)};var gm=function(a,W){this.context=a;this.JSC$7103_pinger=W};
gm.prototype.isSupported=function(a){return this.JSC$7103_pinger.isSupported(a)};
gm.prototype.makeBeacon=function(a,W){if(!this.isSupported(W))throw new v0;return new oN(this.context,this.JSC$7103_pinger,W!=null?W:void 0,a)};
var oN=function(a,W,w,Z){var N=this;this.JSC$7109_pinger=W;this.properties=w;this.url=Z;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var B;this.method=(B=w==null?void 0:w.beaconMethod)!=null?B:"GET";this.backgroundedSubscription=a.getOnBackgrounded().subscribe(function(){N.sendNow()})};
oN.prototype.deactivate=function(){this.internalIsPending=!1};
oN.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7109_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var a,W;this.JSC$7109_pinger.pingWithHeadersAndBody((a=this.properties)!=null?a:{},this.customHeaders,(W=this.body)!=null?W:"",this.url)}else this.JSC$7109_pinger.ping(this.url);this.internalIsPending=!1}catch(w){}else this.internalIsPending=!1};
oN.prototype.setHeader=function(a){this.customHeaders.set(a,void 0)};
_.dU.Object.defineProperties(oN.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var ALe=function(){for(var a=_.l(_.TH.apply(0,arguments)),W=a.next();!W.done;W=a.next())if(W=W.value,W.available()){this.timeProvider=W;return}this.timeProvider=new rLR};
_.t=ALe.prototype;_.t.available=function(){return this.timeProvider.available()};
_.t.now=function(){return this.timeProvider.now()};
_.t.setTimeout=function(a,W){return this.timeProvider.setTimeout(a,W)};
_.t.clearTimeout=function(a){this.timeProvider.clearTimeout(a)};
_.t.interval=function(a,W){var w=this.intervalObservable(a).subscribe(W);return function(){return void w.unsubscribe()}};
_.t.intervalObservable=function(a){return this.timeProvider.intervalObservable(a)};
_.dU.Object.defineProperties(ALe.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var rLR=function(){this.timeline=Symbol()};
_.t=rLR.prototype;_.t.available=function(){return!1};
_.t.now=function(){return new L8(0,this.timeline)};
_.t.setTimeout=function(){return 0};
_.t.clearTimeout=function(){};
_.t.interval=function(){return function(){}};
_.t.intervalObservable=function(){return OT};var k2=function(a,W){this.intrinsicFunctionNamespace=a;this.performanceMonitor=W};
_.t=k2.prototype;_.t.setTimeout=function(a,W){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,a),W)};
_.t.clearTimeout=function(a){this.intrinsicFunctionNamespace.clearTimeout(a)};
_.t.interval=function(a,W){var w=this.intervalObservable(a).subscribe(W);return function(){return void w.unsubscribe()}};
_.t.intervalObservable=function(a){var W=this;return new an(function(w){var Z=0,N=W.intrinsicFunctionNamespace.setInterval(function(){w.next(Z++)},a);
return function(){W.intrinsicFunctionNamespace.clearInterval(N)}})};
_.t.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var hHJ=function(a,W){k2.call(this,a,W);this.timeline=ply};
_.c(hHJ,k2);hHJ.prototype.now=function(){return new L8(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
hHJ.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&k2.prototype.available.call(this)};var i6$=function(a,W){k2.call(this,a,W);this.timeline=rvx};
_.c(i6$,k2);i6$.prototype.now=function(){return new L8(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
i6$.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&k2.prototype.available.call(this)};var eH$=function(a){this.context=a;if(cLy===void 0)a:{var W,w,Z=(W=a.global)==null?void 0:(w=W.document)==null?void 0:w.createElement("meta");if(Z)try{Z.httpEquiv="origin-trial";Z.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";a.global.document.head.append(Z);cLy=Z;break a}catch(N){}cLy=void 0}},
cLy;
eH$.prototype.isSupported=function(a){return K_I(this.context)!==void 0&&!(a==null||!a.endOfSession)&&!UM(this.context)&&!(a==null?0:a.attributionEnabled)&&!(a==null?0:a.customHeaders)&&!(a==null?0:a.customBody)};
eH$.prototype.makeBeacon=function(a,W){if(!this.isSupported(W))throw new v0;return new OM(this.context,a,W)};
var OM=function(a,W,w){this.context=a;this.properties=w;this.JSC$7136_urlWithoutToken=W;var Z;this.beaconMethod=(Z=w==null?void 0:w.beaconMethod)!=null?Z:"GET";a=K_I(this.context);if(a===void 0)throw Error();this.fetchLater=a;nR6(this,jeA(this))},nR6=function(a,W){a.beaconResult&&a.beaconResult.activated||(a.beaconAbort=new AbortController,a.beaconResult=a.fetchLater(W,{method:a.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:a.beaconAbort.signal,activateAfter:96E4}))},jeA=function(a){a=a.JSC$7136_urlWithoutToken;
return(a.slice(-1)[0]==="&"?a:a+"&")+"flapi=1"};
OM.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
OM.prototype.sendNow=function(){};
OM.prototype.setHeader=function(){};
_.dU.Object.defineProperties(OM.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7136_urlWithoutToken},
set:function(a){this.JSC$7136_urlWithoutToken=a;a=jeA(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);nR6(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 LJH=function(a){this.context=a};
LJH.prototype.isSupported=function(){return!UM(this.context)&&!!this.context.global.fetch};
LJH.prototype.ping=function(){var a=this;return en.apply(null,_.K8(_.TH.apply(0,arguments).map(function(W){return NO(a.context.global.fetch(W,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(T2(function(w){return w.status===200}))}))).pipe(ew7(function(W){return W}),jJv())};
LJH.prototype.pingWithHeadersAndBody=function(a,W,w){for(var Z=_.TH.apply(3,arguments),N=this,B=new Headers,I=_.l(W.entries()),X=I.next();!X.done;X=I.next()){var v=_.l(X.value);X=v.next().value;v=v.next().value;B.set(X,v)}var U,O=(U=a.keepAlive)!=null?U:!1;en.apply(null,_.K8(Z.map(function(S){return NO(N.context.global.fetch(S,Object.assign({},{method:String(a.beaconMethod),cache:"no-cache"},O?{keepalive:!0}:{},{mode:"no-cors",headers:B,body:w}))).pipe(T2(function(T){return T.status===200}))}))).pipe(ew7(function(S){return S}),
jJv())};var JLR,McC;_.S5=function(){};
_.ue=function(a){return a};
JLR=function(a){var W=W||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,W))}};
_.Y2=function(a){var W=!1,w;return function(){W||(w=a(),W=!0);return w}};
_.T6=function(a,W){var w=0;return function(Z){_.NH.clearTimeout(w);var N=arguments;w=_.NH.setTimeout(function(){a.apply(void 0,N)},W)}};
McC=function(a,W){var w=0,Z=!1,N=[],B=function(){w=0;Z&&(Z=!1,I())},I=function(){w=_.NH.setTimeout(B,W);
var X=N;N=[];a.apply(void 0,X)};
return function(X){N=arguments;w?Z=!0:I()}};var MV$=function(){return YI&&K7?K7.mobile:!FJR()&&(rE("iPod")||rE("iPhone")||rE("Android")||rE("IEMobile"))},FJR=function(){return YI&&K7?!K7.mobile&&(rE("iPad")||rE("Android")||rE("Silk")):rE("iPad")||rE("Android")&&!rE("Mobile")||rE("Silk")};var RHL;_.T5={};RHL="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.T5.add=function(a,W,w){if(a!==null&&W in a)throw Error("pa`"+W);a[W]=w};
_.T5.clear=function(a){for(var W in a)delete a[W]};
_.T5.clone=function(a){var W={},w;for(w in a)W[w]=a[w];return W};
_.T5.contains=function(a,W){return F_9(a,W)};
_.T5.containsKey=function(a,W){return a!==null&&W in a};
_.T5.containsValue=F_9;_.T5.create=q08;_.T5.createImmutableView=function(a){var W=a;Object.isFrozen&&!Object.isFrozen(a)&&(W=Object.create(a),Object.freeze(W));return W};
_.T5.createSet=QJS;_.T5.equals=function(a,W){for(var w in a)if(!(w in W)||a[w]!==W[w])return!1;for(var Z in W)if(!(Z in a))return!1;return!0};
_.T5.every=function(a,W,w){for(var Z in a)if(!W.call(w,a[Z],Z,a))return!1;return!0};
_.T5.extend=function(a,W){for(var w,Z,N=1;N<arguments.length;N++){Z=arguments[N];for(w in Z)a[w]=Z[w];for(var B=0;B<RHL.length;B++)w=RHL[B],Object.prototype.hasOwnProperty.call(Z,w)&&(a[w]=Z[w])}};
_.T5.filter=function(a,W,w){var Z={},N;for(N in a)W.call(w,a[N],N,a)&&(Z[N]=a[N]);return Z};
_.T5.findKey=MBS;_.T5.findValue=function(a,W,w){return(W=MBS(a,W,w))&&a[W]};
_.T5.forEach=function(a,W,w){for(var Z in a)W.call(w,a[Z],Z,a)};
_.T5.get=function(a,W,w){return a!==null&&W in a?a[W]:w};
_.T5.getAllPropertyNames=function(a,W,w){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return JY8(a);for(var Z={};a&&(a!==Object.prototype||W)&&(a!==Function.prototype||w);){for(var N=Object.getOwnPropertyNames(a),B=0;B<N.length;B++)Z[N[B]]=!0;a=Object.getPrototypeOf(a)}return JY8(Z)};
_.T5.getAnyKey=function(a){for(var W in a)return W};
_.T5.getAnyValue=function(a){for(var W in a)return a[W]};
_.T5.getCount=function(a){var W=0,w;for(w in a)W++;return W};
_.T5.getKeys=JY8;_.T5.getSuperClass=function(a){return(a=Object.getPrototypeOf(a.prototype))&&a.constructor};
_.T5.getValueByKeys=function(a,W){var w=_.wT(W),Z=w?W:arguments;for(w=w?0:1;w<Z.length;w++){if(a==null)return;a=a[Z[w]]}return a};
_.T5.getValues=function(a){var W=[],w=0,Z;for(Z in a)W[w++]=a[Z];return W};
_.T5.isEmpty=function(a){for(var W in a)return!1;return!0};
_.T5.isImmutableView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};
_.T5.map=function(a,W,w){var Z={},N;for(N in a)Z[N]=W.call(w,a[N],N,a);return Z};
_.T5.remove=function(a,W){var w;(w=W in a)&&delete a[W];return w};
_.T5.set=function(a,W,w){a[W]=w};
_.T5.setIfUndefined=function(a,W,w){return W in a?a[W]:a[W]=w};
_.T5.setWithReturnValueIfNotSet=function(a,W,w){if(W in a)return a[W];w=w();return a[W]=w};
_.T5.some=function(a,W,w){for(var Z in a)if(W.call(w,a[Z],Z,a))return!0;return!1};
_.T5.transpose=function(a){var W={},w;for(w in a)W[a[w]]=w;return W};
_.T5.unsafeClone=RwH;var KI=function(a,W,w,Z,N){this.allowedElements=a;this.elementPolicies=W;this.allowedGlobalAttributes=w;this.globalAttributePolicies=Z;this.globallyAllowedAttributePrefixes=N},qRT=function(a,W,w){w=a.elementPolicies.get(w);
return(w==null?0:w.has(W))?w.get(W):a.allowedGlobalAttributes.has(W)?{policyAction:1}:(w=a.globalAttributePolicies.get(W))?w:a.globallyAllowedAttributePrefixes&&[].concat(_.K8(a.globallyAllowedAttributePrefixes)).some(function(Z){return W.indexOf(Z)===0})?{policyAction:1}:{policyAction:0}};var Qey="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(" "),
xye=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["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}]])]],b6l="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 crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden 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 valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
seE=[["dir",{policyAction:3,conditions:$f(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:$f(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:$f(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:$f(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],u$T=new KI(new Set(Qey),new Map(xye),new Set(b6l),new Map(seE)),CAh=new KI(new Set(Qey.concat(["BUTTON",
"INPUT"])),new Map(xye),new Set($f(function(){return b6l.concat(["class","id","name"])})),new Map($f(function(){return seE.concat([["style",
{policyAction:1}]])})));var Ghy,DyL,dyy;Ghy=function(a,W,w,Z){this.JSC$7196_sanitizerTable=a;this.styleElementSanitizer=W;this.styleAttributeSanitizer=w;this.JSC$7196_resourceUrlPolicy=Z;this.changes=[]};
_.fEJ=function(a,W){var w=document.implementation.createHTMLDocument("");a=DyL(a,W,w);w=w.body;w.appendChild(a);w=(new XMLSerializer).serializeToString(w);w=w.slice(w.indexOf(">")+1,w.lastIndexOf("</"));return cP(w)};
DyL=function(a,W,w){W=bvF(W,w);W=document.createTreeWalker(W,5,function(X){if(X.nodeType===3)X=1;else if(urF(X))if(X=sJx(X),X===null)X=2;else{var v=a.JSC$7196_sanitizerTable;X=X!=="FORM"&&(v.allowedElements.has(X)||v.elementPolicies.has(X))?1:2}else X=2;return X});
for(var Z=W.nextNode(),N=w.createDocumentFragment(),B=N;Z!==null;){var I=void 0;if(Z.nodeType===3)a.styleElementSanitizer&&B.nodeName==="STYLE"?(Z=a.styleElementSanitizer(Z.data),I=a.createTextNode(Z)):I=a.createTextNode(Z.data);else if(urF(Z))I=dyy(a,Z,w);else throw Error("da");B.appendChild(I);if(Z=W.firstChild())B=I;else for(;!(Z=W.nextSibling())&&(Z=W.parentNode());)B=B.parentNode}return N};
Ghy.prototype.createTextNode=function(a){return document.createTextNode(a)};
dyy=function(a,W,w){var Z,N=sJx(W);w=w.createElement(N);W=W.attributes;for(var B=_.l(W),I=B.next();!I.done;I=B.next()){var X=I.value;I=X.name;X=X.value;var v=qRT(a.JSC$7196_sanitizerTable,I,N);a:{if(Z=v.conditions){Z=_.l(Z);for(var U=Z.next();!U.done;U=Z.next()){var O=_.l(U.value);U=O.next().value;O=O.next().value;var S=void 0;if((U=(S=W.getNamedItem(U))==null?void 0:S.value)&&!O.has(U)){Z=!1;break a}}}Z=!0}if(Z)switch(v.policyAction){case 1:Hb(w,I,X);break;case 2:v=_.UoH(X);X=v!==void 0&&mHE.indexOf(v.toLowerCase())!==
-1?X:"about:invalid#zClosurez";Hb(w,I,X);break;case 3:Hb(w,I,X.toLowerCase());break;case 4:a.styleAttributeSanitizer?(X=a.styleAttributeSanitizer(X),Hb(w,I,X)):Hb(w,I,X);break;case 5:a.JSC$7196_resourceUrlPolicy?(v={type:2,attributeName:I,elementName:N},X=x_C(X),(X=a.JSC$7196_resourceUrlPolicy(X,v))&&Hb(w,I,X.toString())):Hb(w,I,X);break;case 6:if(a.JSC$7196_resourceUrlPolicy){v={type:2,attributeName:I,elementName:N};Z=[];X=_.l(X.split(","));for(U=X.next();!U.done;U=X.next())O=_.l(U.value.trim().split(/\s+/,
2)),U=O.next().value,O=O.next().value,Z.push({url:U,descriptor:O});X={parts:[]};Z=_.l(Z);for(U=Z.next();!U.done;U=Z.next())U=U.value,O=x_C(U.url),(O=a.JSC$7196_resourceUrlPolicy(O,v))&&X.parts.push({url:O.toString(),descriptor:U.descriptor});Hb(w,I,Cqx(X))}else Hb(w,I,X)}}return w};
_.myH=$f(function(){return new Ghy(u$T)});
_.VV$=$f(function(){return new Ghy(CAh)});var zHL=function(){this.calledBuild=!1;this.JSC$7208_sanitizerTable=u$T},H66=function(){zHL.apply(this,arguments)};
_.c(H66,zHL);H66.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new Ghy(this.JSC$7208_sanitizerTable,void 0,void 0,this.JSC$7208_resourceUrlPolicy)};var yLE=/[^#]*/;var tkD=function(a){try{return!!a&&a.location.href!=null&&e3(a,"foo")}catch(W){return!1}},aaA=function(a){var W=ERJ;
if(W)for(var w in W)Object.prototype.hasOwnProperty.call(W,w)&&a(W[w],w,W)},WnR=function(){var a=[];
aaA(function(W){a.push(W)});
return a},ERJ={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"},w2R=_.Y2(function(){return WnR()}),NfL=function(){var a=ZKl("IFRAME"),
W={};
_.x6(w2R(),function(w){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(w)&&(W[w]=!0)});
return W},ZKl=function(a,W){W=W===void 0?document:W;
return W.createElement(String(a).toLowerCase())};var pI;_.M9=function(a,W,w){return Math.min(Math.max(a,W),w)};
pI=function(a,W,w){return a+w*(W-a)};_.r3=function(a,W){this.x=a!==void 0?a:0;this.y=W!==void 0?W:0};
_.t=_.r3.prototype;_.t.clone=function(){return new _.r3(this.x,this.y)};
_.t.equals=function(a){return a instanceof _.r3&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};
_.t.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.t.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.t.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.t.translate=function(a,W){a instanceof _.r3?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof W==="number"&&(this.y+=W));return this};
_.t.scale=function(a,W){this.x*=a;this.y*=typeof W==="number"?W:a;return this};_.Bh=function(a,W){this.width=a;this.height=W};
_.t=_.Bh.prototype;_.t.clone=function(){return new _.Bh(this.width,this.height)};
_.t.area=function(){return this.width*this.height};
_.t.aspectRatio=function(){return this.width/this.height};
_.t.isEmpty=function(){return!this.area()};
_.t.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.t.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.t.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.t.scale=function(a,W){this.width*=a;this.height*=typeof W==="number"?W:a;return this};var Jl=function(a,W){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===jde&&W||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=t0J};
Jl.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var $iA=function(a){return a instanceof Jl&&a.constructor===Jl&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===t0J?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},t0J={},jde={};
new Jl(jde,"");var Ph,gh,A9,BfR,P9V,IaR,Av,vdh,odl,gd6,e5,k0_,p2_,Kn6,Tfe,rzR,AzJ,hDE,iKV,VMe,czA,ndH,jE6,eDh,rm;Ph=function(a){return a?new rm(_.hv(a)):hZE||(hZE=new rm)};
_.md=function(a,W){return typeof W==="string"?a.getElementById(W):W};
gh=function(a,W){return(W||document).getElementsByTagName(String(a))};
_.laJ=function(a){return BfR("yt-formatted-string","paper-input-input",a)};
A9=function(a,W,w,Z){a=Z||a;return(W=W&&W!="*"?String(W).toUpperCase():"")||w?a.querySelectorAll(W+(w?"."+w:"")):a.getElementsByTagName("*")};
BfR=function(a,W,w){var Z=document,N=a&&a!="*"?String(a).toUpperCase():"";return N||W?(w||Z).querySelector(N+(W?"."+W:"")):A9(Z,a,W,w)[0]||null};
P9V=function(a,W){_.T5.forEach(W,function(w,Z){Z=="style"?a.style.cssText=w:Z=="class"?a.className=w:Z=="for"?a.htmlFor=w:IaR.hasOwnProperty(Z)?a.setAttribute(IaR[Z],w):_.IC(Z,"aria-")||_.IC(Z,"data-")?a.setAttribute(Z,w):a[Z]=w})};
IaR={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"};_.lf=function(a){a=(a||window).document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new _.Bh(a.clientWidth,a.clientHeight)};
_.X2T=function(a){var W=_.h9(a);a=a.defaultView;return new _.r3(a.pageXOffset||W.scrollLeft,a.pageYOffset||W.scrollTop)};
_.h9=function(a){return a.scrollingElement?a.scrollingElement:_.Pz||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement};
Av=function(a){return a?a.defaultView:window};
_.iE=function(a,W,w){return vdh(document,arguments)};
vdh=function(a,W){var w=W[1],Z=gd6(a,String(W[0]));w&&(typeof w==="string"?Z.className=w:Array.isArray(w)?Z.className=w.join(" "):P9V(Z,w));W.length>2&&odl(a,Z,W,2);return Z};
odl=function(a,W,w,Z){function N(X){X&&W.appendChild(typeof X==="string"?a.createTextNode(X):X)}
for(;Z<w.length;Z++){var B=w[Z];if(!_.wT(B)||_.tL(B)&&B.nodeType>0)N(B);else{a:{if(B&&typeof B.length=="number"){if(_.tL(B)){var I=typeof B.item=="function"||typeof B.item=="string";break a}if(typeof B==="function"){I=typeof B.item=="function";break a}}I=!1}_.x6(I?_.Wl(B):B,N)}}};
_.PM=function(a){return gd6(document,a)};
gd6=function(a,W){W=String(W);a.contentType==="application/xhtml+xml"&&(W=W.toLowerCase());return a.createElement(W)};
_.c0=function(){return document.createTextNode("\n")};
e5=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};
k0_=function(a,W){odl(_.hv(a),a,arguments,1)};
_.nI=function(a){for(var W;W=a.firstChild;)a.removeChild(W)};
_.j5=function(a,W){W.parentNode&&W.parentNode.insertBefore(a,W)};
_.LI=function(a,W){W.parentNode&&W.parentNode.insertBefore(a,W.nextSibling)};
_.Xh=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
_.UiR=function(a,W){var w=W.parentNode;w&&w.replaceChild(a,W)};
_.OK6=function(a){var W,w=a.parentNode;if(w&&w.nodeType!=11)if(a.removeNode)a.removeNode(!1);else{for(;W=a.firstChild;)w.insertBefore(W,a);_.Xh(a)}};
_.J9=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(W){return W.nodeType==1})};
_.YIE=function(a){return a.nextElementSibling!==void 0?a.nextElementSibling:_.SIl(a.nextSibling,!0)};
_.SIl=function(a,W){for(;a&&a.nodeType!=1;)a=W?a.nextSibling:a.previousSibling;return a};
_.GK=function(a){return _.tL(a)&&a.nodeType==1};
_.Lr=function(a,W){if(!a||!W)return!1;if(a.contains&&W.nodeType==1)return a==W||a.contains(W);if(typeof a.compareDocumentPosition!="undefined")return a==W||!!(a.compareDocumentPosition(W)&16);for(;W&&a!=W;)W=W.parentNode;return W==a};
p2_=function(a,W){if(a==W)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(W)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var w=a.nodeType==1,Z=W.nodeType==1;if(w&&Z)return a.sourceIndex-W.sourceIndex;var N=a.parentNode,B=W.parentNode;return N==B?Tfe(a,W):!w&&_.Lr(N,W)?-1*Kn6(a,W):!Z&&_.Lr(B,a)?Kn6(W,a):(w?a.sourceIndex:N.sourceIndex)-(Z?W.sourceIndex:B.sourceIndex)}Z=_.hv(a);w=Z.createRange();w.selectNode(a);w.collapse(!0);a=Z.createRange();a.selectNode(W);
a.collapse(!0);return w.compareBoundaryPoints(_.NH.Range.START_TO_END,a)};
Kn6=function(a,W){var w=a.parentNode;if(w==W)return-1;for(;W.parentNode!=w;)W=W.parentNode;return Tfe(W,a)};
Tfe=function(a,W){for(;W=W.previousSibling;)if(W==a)return-1;return 1};
rzR=function(a){var W,w=arguments.length;if(!w)return null;if(w==1)return arguments[0];var Z=[],N=Infinity;for(W=0;W<w;W++){for(var B=[],I=arguments[W];I;)B.unshift(I),I=I.parentNode;Z.push(B);N=Math.min(N,B.length)}B=null;for(W=0;W<N;W++){I=Z[0][W];for(var X=1;X<w;X++)if(I!=Z[X][W])return B;B=I}return B};
_.hv=function(a){return a.nodeType==9?a:a.ownerDocument||a.document};
AzJ=function(a){return a.contentDocument||a.contentWindow.document};
_.FD=function(a,W){if("textContent"in a)a.textContent=W;else if(a.nodeType==3)a.data=String(W);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(W)}else _.nI(a),a.appendChild(_.hv(a).createTextNode(String(W)))};
hDE={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};iKV={IMG:" ",BR:"\n"};VMe=function(a){var W;a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?W=!a.disabled&&(!a.hasAttribute("tabindex")||czA(a)):W=a.hasAttribute("tabindex")&&czA(a);return W};
czA=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768};
ndH=function(a){var W=[];eDh(a,W,!0);a=W.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};
jE6=function(a){var W=[];eDh(a,W,!1);return W.join("")};
eDh=function(a,W,w){if(!(a.nodeName in hDE))if(a.nodeType==3)w?W.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):W.push(a.nodeValue);else if(a.nodeName in iKV)W.push(iKV[a.nodeName]);else for(a=a.firstChild;a;)eDh(a,W,w),a=a.nextSibling};
_.Lny=function(a,W,w){if(!W&&!w)return null;var Z=W?String(W).toUpperCase():null;return _.LY(a,function(N){return(!Z||N.nodeName==Z)&&(!w||typeof N.className==="string"&&_.f7(N.className.split(/\s+/),w))},!0)};
_.LY=function(a,W,w){a&&!w&&(a=a.parentNode);for(w=0;a;){if(W(a))return a;a=a.parentNode;w++}return null};
rm=function(a){this.JSC$7233_document_=a||_.NH.document||document};
_.t=rm.prototype;_.t.getElement=function(a){return _.md(this.JSC$7233_document_,a)};
_.t.$=rm.prototype.getElement;_.t.getElementsByTagName=function(a,W){return(W||this.JSC$7233_document_).getElementsByTagName(String(a))};
_.t.getElementsByTagNameAndClass=function(a,W,w){return A9(this.JSC$7233_document_,a,W,w)};
_.t.$$=rm.prototype.getElementsByTagNameAndClass;_.t.setProperties=P9V;_.t.JSC$7235_createDom=function(a,W,w){return vdh(this.JSC$7233_document_,arguments)};
_.t.createElement=function(a){return gd6(this.JSC$7233_document_,a)};
_.t.createTextNode=function(a){return this.JSC$7233_document_.createTextNode(String(a))};
_.t.getWindow=function(){return this.JSC$7233_document_.defaultView};
var Iv=function(a){return _.X2T(a.JSC$7233_document_)};
_.t=rm.prototype;_.t.appendChild=function(a,W){a.appendChild(W)};
_.t.append=k0_;_.t.canHaveChildren=e5;_.t.removeNode=_.Xh;_.t.getChildren=_.J9;_.t.contains=_.Lr;_.t=av.prototype;_.t.getWidth=function(){return this.right-this.left};
_.t.getHeight=function(){return this.bottom-this.top};
_.t.clone=function(){return new av(this.top,this.right,this.bottom,this.left)};
_.t.contains=function(a){return this&&a?a instanceof av?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};
_.t.expand=function(a,W,w,Z){_.tL(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(W),this.bottom+=Number(w),this.left-=Number(Z));return this};
_.t.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};
_.t.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};
_.t.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};
_.t.translate=function(a,W){a instanceof _.r3?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,typeof W==="number"&&(this.top+=W,this.bottom+=W));return this};
_.t.scale=function(a,W){W=typeof W==="number"?W:a;this.left*=a;this.right*=a;this.top*=W;this.bottom*=W;return this};var MS=function(a,W,w,Z){this.left=a;this.top=W;this.width=w;this.height=Z};
_.t=MS.prototype;_.t.clone=function(){return new MS(this.left,this.top,this.width,this.height)};
_.t.boundingRect=function(a){var W=Math.max(this.left+this.width,a.left+a.width),w=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=W-this.left;this.height=w-this.top};
_.t.contains=function(a){return a instanceof _.r3?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};
_.t.distance=function(a){var W=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(W*W+a*a)};
_.t.getSize=function(){return new _.Bh(this.width,this.height)};
_.t.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};
_.t.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};
_.t.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};
_.t.translate=function(a,W){a instanceof _.r3?(this.left+=a.x,this.top+=a.y):(this.left+=a,typeof W==="number"&&(this.top+=W));return this};
_.t.scale=function(a,W){W=typeof W==="number"?W:a;this.left*=a;this.width*=a;this.top*=W;this.height*=W;return this};var Fnl,QK,vgS,qS,QER,qIR,xiH,GSS,bKl,uXh;_.RN=function(a,W,w){if(typeof W==="string")(W=_.Jze(a,W))&&(a.style[W]=w);else for(var Z in W){w=a;var N=W[Z],B=_.Jze(w,Z);B&&(w.style[B]=N)}};
Fnl={};_.Jze=function(a,W){var w=Fnl[W];if(!w){var Z=_.gQ(W);w=Z;a.style[Z]===void 0&&(Z=(_.Pz?"Webkit":_.IY?"Moz":null)+Z6_(Z),a.style[Z]!==void 0&&(w=Z));Fnl[W]=w}return w};
_.Tb=function(a,W){var w=_.hv(a);return w.defaultView&&w.defaultView.getComputedStyle&&(a=w.defaultView.getComputedStyle(a,null))?a[W]||a.getPropertyValue(W)||"":""};
_.jk=function(a,W){return _.Tb(a,W)||(a.currentStyle?a.currentStyle[W]:null)||a.style&&a.style[W]};
_.M0E=function(a){return _.jk(a,"position")};
QK=function(a,W,w){if(W instanceof _.r3){var Z=W.x;W=W.y}else Z=W,W=w;a.style.left=qS(Z,!1);a.style.top=qS(W,!1)};
vgS=function(a){try{return a.getBoundingClientRect()}catch(W){return{left:0,top:0,right:0,bottom:0}}};
_.nY=function(a){var W=_.hv(a),w=new _.r3(0,0);if(a==(W?_.hv(W):document).documentElement)return w;a=vgS(a);W=Iv(Ph(W));w.x=a.left+W.x;w.y=a.top+W.y;return w};
_.RD_=function(a,W,w){if(W instanceof _.Bh)w=W.height,W=W.width;else if(w==void 0)throw Error("sa");a.style.width=qS(W,!0);a.style.height=qS(w,!0)};
qS=function(a,W){typeof a=="number"&&(a=(W?Math.round(a):a)+"px");return a};
QER=function(a){return qIR(a)};
qIR=function(a){var W=xiH;if(_.jk(a,"display")!="none")return W(a);var w=a.style,Z=w.display,N=w.visibility,B=w.position;w.visibility="hidden";w.position="absolute";w.display="inline";a=W(a);w.display=Z;w.position=B;w.visibility=N;return a};
xiH=function(a){var W=a.offsetWidth,w=a.offsetHeight,Z=_.Pz&&!W&&!w;return(W===void 0||Z)&&a.getBoundingClientRect?(a=vgS(a),new _.Bh(a.right-a.left,a.bottom-a.top)):new _.Bh(W,w)};
GSS=function(a){var W=_.nY(a);a=qIR(a);return new MS(W.x,W.y,a.width,a.height)};
bKl=function(a,W){a=a.style;"opacity"in a?a.opacity=W:"MozOpacity"in a?a.MozOpacity=W:"filter"in a&&(a.filter=W===""?"":"alpha(opacity="+Number(W)*100+")")};
_.QS=function(a,W){a.style.display=W?"":"none"};
_.sEl=function(a){return"rtl"==_.jk(a,"direction")};
uXh=function(a){var W=_.Tb(a,"marginLeft"),w=_.Tb(a,"marginRight"),Z=_.Tb(a,"marginTop");a=_.Tb(a,"marginBottom");return new av(parseFloat(Z),parseFloat(w),parseFloat(a),parseFloat(W))};
_.C9A=function(a){var W=_.Tb(a,"borderLeftWidth"),w=_.Tb(a,"borderRightWidth"),Z=_.Tb(a,"borderTopWidth");a=_.Tb(a,"borderBottomWidth");return new av(parseFloat(Z),parseFloat(w),parseFloat(a),parseFloat(W))};var x2=function(a){this.context=a};
x2.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:!UM(this.context)};
x2.prototype.ping=function(){var a=this;return on(_.TH.apply(0,arguments).map(function(W){try{var w=a.context.global,Z=!1;Z=Z===void 0?!1:Z;w.google_image_requests||(w.google_image_requests=[]);var N=ZKl("IMG",w.document);Z&&(N.attributionSrc="");N.src=W;w.google_image_requests.push(N);return!0}catch(B){return!1}}).every(function(W){return W}))};
x2.prototype.pingWithHeadersAndBody=function(a,W,w){this.ping.apply(this,_.K8(_.TH.apply(3,arguments)))};var G0_=function(a){this.context=a};
G0_.prototype.isSupported=function(a){return DiA&&!UM(this.context)&&D_S(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)};
G0_.prototype.makeBeacon=function(a,W){if(!this.isSupported(W))throw new v0;return new bE(this.context,a)};
var DiA=!1,bE=function(a,W){this.context=a;this.JSC$7254_urlWithoutToken=W;a=D_S(this.context);if(a===void 0)throw Error();this.wrappedBeacon=new a(faL(this),{})},faL=function(a){a=a.JSC$7254_urlWithoutToken;
return(a.slice(-1)[0]==="&"?a:a+"&")+"pbapi=1"};
bE.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
bE.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
bE.prototype.setHeader=function(){};
_.dU.Object.defineProperties(bE.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7254_urlWithoutToken},
set:function(a){this.JSC$7254_urlWithoutToken=a;this.wrappedBeacon.setURL(faL(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(a){if(a!=="GET")throw new v0;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var diV=function(a){this.context=a};
diV.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 W;return!UM(this.context)&&((W=this.context.global.navigator)==null?void 0:W.sendBeacon)!==void 0};
diV.prototype.ping=function(){var a=this;return on(_.TH.apply(0,arguments).map(function(W){var w;return(w=a.context.global.navigator)==null?void 0:w.sendBeacon(W)}).every(function(W){return W}))};
diV.prototype.pingWithHeadersAndBody=function(a,W,w){this.ping.apply(this,_.K8(_.TH.apply(3,arguments)))};var tv=function(a){this.value=a},CY=function(a,W){return on(a.value).pipe(ZZ(W))},DZ=new tv(!1),AKE=new tv(!0);var Jv=function(a){this.value=a;this.releasedSubject=new Wh};
Jv.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.dU.Object.defineProperties(Jv.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7267_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var Nb8=["FRAME","IMG","IFRAME"],yYD=/^[01](px)?$/,Z8D=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},wbU=function(){var a=new Z8D;
a.crossDomainLoadedDefault=!0;a.pendingImagesBlockLoad=!0;return a};var miE=function(a,W){var w=Xbx(a);if(w)if(w.onCreativeLoad)w.onCreativeLoad(W);else{var Z=W?[W]:[],N=function(B){for(var I=0;I<Z.length;++I)try{Z[I](1,B)}catch(X){}Z={push:function(X){X(1,B)}}};
w.onCreativeLoad=function(B){Z.push(B)};
w.setAttribute("data-creative-load-listener","");w.addEventListener("creativeLoad",function(B){N(B.detail)});
_.NH.addEventListener("message",function(B){Pb9(w,N,B)})}};var sM=function(a,W){var w=this;this.global=a;this.parentContext=W;this.JSC$7278_onVisibilityChange=this.document?en(on(!0),ib(this.document,"visibilitychange")).pipe(Jq(this.parentContext.performanceMonitor,748),T2(function(){return w.getVisibilityState()}),Qa()):on("visible");
this.document?ib(this.document,"DOMContentLoaded").pipe(Jq(this.parentContext.performanceMonitor,739),qO(1)):on(zwe("DOMContentLoaded"))},rKE=function(a){return a.document!==null&&a.document.visibilityState!==void 0};
sM.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
sM.prototype.querySelector=function(a){return this.document?this.document.querySelector(a):null};
sM.prototype.querySelectorAll=function(a){return this.document?_.Wl(this.document.querySelectorAll(a)):[]};
sM.prototype.elementFromPoint=function(a,W){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;a=this.document.elementFromPoint(a,W);return a===null?null:new Jv(a)};
var v3m=function(a,W,w){w=w===void 0?!1:w;if(W.ref===void 0||!a.document)return on(W).pipe(Jq(a.parentContext.performanceMonitor,749));var Z=new ub(1),N=function(){Z.next(W)};
w||miE(W.ref,N);tnE(W.ref,N);return Z.pipe(Jq(a.parentContext.performanceMonitor,749),qO(1))};
_.dU.Object.defineProperties(sM.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return e3(this.global,"document")?this.global.document||null:null}}});var v8v=_.ma(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),g89=_.ma(["./reach_worklet.js"]),o8e=_.ma(["./reach_worklet.js"]),V0V=_.ma(["./reach_worklet.html"]),zDl=_.ma(["./reach_worklet.js"]),HKL=_.ma(["./reach_worklet.js"]);_.ya(V0V);_.ya(zDl);_.ya(HKL);var qq={left:0,top:0,width:0,height:0};var yzh,EdL,a2R,WZH,fF,Z_e,NC6,tel,l2_,I2l,PYV,X9V;yzh=function(a,W,w,Z,N,B,I){var X="";a&&(X+=a+":");w&&(X+="//",W&&(X+=W+"@"),X+=w,Z&&(X+=":"+Z));N&&(X+=N);B&&(X+="?"+B);I&&(X+="#"+I);return X};
EdL=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.GU=function(a){return a.match(EdL)};
_.ea=function(a,W){return a?W?decodeURI(a):decodeURIComponent(a):a};
a2R=function(a){a=_.GU(a)[1]||null;!a&&_.NH.self&&_.NH.self.location&&(a=_.NH.self.location.protocol.slice(0,-1));return a?a.toLowerCase():""};
_.D7=function(a){return _.ea(_.GU(a)[3]||null,!0)};
_.tw=function(a){return _.ea(_.GU(a)[5]||null,!0)};
_.API=function(a){var W=a.indexOf("#");return W<0?null:a.slice(W+1)};
WZH=function(a){a=_.GU(a);return yzh(a[1],a[2],a[3],a[4])};
_.w9_=function(a){a=_.GU(a);return yzh(a[1],null,a[3],a[4])};
_.qM=function(a){a=_.GU(a);return yzh(null,null,null,null,a[5],a[6],a[7])};
_.DG=function(a){var W=a.indexOf("#");return W<0?a:a.slice(0,W)};
fF=function(a,W){a=_.GU(a);W=_.GU(W);return a[3]==W[3]&&a[1]==W[1]&&a[4]==W[4]};
Z_e=function(a,W){if(a){a=a.split("&");for(var w=0;w<a.length;w++){var Z=a[w].indexOf("="),N=null;if(Z>=0){var B=a[w].substring(0,Z);N=a[w].substring(Z+1)}else B=a[w];W(B,N?mB(N):"")}}};
NC6=function(a){var W=a.indexOf("#");W<0&&(W=a.length);var w=a.indexOf("?");if(w<0||w>W){w=W;var Z=""}else Z=a.substring(w+1,W);return[a.slice(0,w),Z,a.slice(W)]};
tel=function(a,W){return W?a?a+"&"+W:W:a};
_.$o6=function(a,W){if(!W)return a;a=NC6(a);a[1]=tel(a[1],W);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
_.BCE=function(a,W,w){if(Array.isArray(W))for(var Z=0;Z<W.length;Z++)_.BCE(a,String(W[Z]),w);else W!=null&&w.push(a+(W===""?"":"="+_.Qv(W)))};
_.ld=function(a){var W=[],w;for(w in a)_.BCE(w,a[w],W);return W.join("&")};
_.CF=function(a,W){W=_.ld(W);return _.$o6(a,W)};
_.uE=function(a,W,w){w=w!=null?"="+_.Qv(w):"";return _.$o6(a,W+w)};
l2_=function(a,W,w,Z){for(var N=w.length;(W=a.indexOf(w,W))>=0&&W<Z;){var B=a.charCodeAt(W-1);if(B==38||B==63)if(B=a.charCodeAt(W+N),!B||B==61||B==38||B==35)return W;W+=N+1}return-1};
I2l=/#|$/;_.JK=function(a,W){var w=a.search(I2l),Z=l2_(a,0,W,w);if(Z<0)return null;var N=a.indexOf("&",Z);if(N<0||N>w)N=w;Z+=W.length+1;return mB(a.slice(Z,N!==-1?N:0))};
PYV=/[?&]($|#)/;_.dQ=function(a,W){for(var w=a.search(I2l),Z=0,N,B=[];(N=l2_(a,Z,W,w))>=0;)B.push(a.substring(Z,N)),Z=Math.min(a.indexOf("&",N)+1||w,w);B.push(a.slice(Z));return B.join("").replace(PYV,"$1")};
_.Rg=function(a,W,w){return _.uE(_.dQ(a,W),W,w)};
X9V=function(a){var W=NC6(window.location.href),w=W[1],Z=[];w&&w.split("&").forEach(function(N){var B=N.indexOf("=");B=B>=0?N.slice(0,B):N;a.hasOwnProperty(B)||Z.push(N)});
W[1]=tel(Z.join("&"),_.ld(a));return W[0]+(W[1]?"?"+W[1]:"")+W[2]};var Mnx=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Mnx,_.QH);Mnx.prototype.getVersion=function(){return _.Lo(this,2)};var FiF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(FiF,_.QH);var cqe=function(a,W){return _.Xu(a,2,W)},Jqv=function(a,W){return _.Xu(a,3,W)};
FiF.prototype.getModel=function(){return _.Lo(this,4)};
var n8I=function(a,W){return _.Xu(a,4,W)},i89=function(a,W){return _.Xu(a,5,W)},Li9=function(a,W){return _.Xu(a,9,W)},hsS=function(a,W){return hD(a,10,W)},AqD=function(a,W){return _.wh(a,11,W)},esF=function(a,W){return _.Xu(a,1,W)},jnE=function(a,W){return _.wh(a,7,W)};var pbe="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var G5=function(a,W,w,Z){a=a===void 0?window:a;W=W===void 0?null:W;w=w===void 0?new nIV:w;Z=Z===void 0?k2S():Z;SR6.call(this);var N=this;this.global=a;this.debugChannel=W;this.performanceMonitor=w;this.onPageHide=hq(function(){return ib(N.global,"pagehide")}).pipe(Jq(this.performanceMonitor,941));
this.onLoad=hq(function(){return ib(N.global,"load")}).pipe(Jq(this.performanceMonitor,738),qO(1));
this.onResize=hq(function(){return ib(N.global,"resize")}).pipe(Jq(this.performanceMonitor,741));
this.onMessage=hq(function(){return ib(N.global,"message")}).pipe(Jq(this.performanceMonitor,740));
this.document=new sM(this.global,this);this.timeProvider=new ALe(new i6$(this.intrinsicFunctionNamespace,this.performanceMonitor),new hHJ(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new KJA(new eH$(this),new G0_(this),new gm(this,new LJH(this)),new gm(this,new diV(this)),new gm(this,new x2(this)))};
_.c(G5,SR6);var UM=function(a){var W=a.global;return!!a.global.HTMLFencedFrameElement&&!!W.fence&&typeof W.fence.reportEvent==="function"};
_.t=G5.prototype;_.t.reportFencedFrameEvent=function(a){UM(this)&&this.global.fence.reportEvent(a)};
_.t.getOnBackgrounded=function(){return this.onPageHide.pipe(Jq(this.performanceMonitor,942),ZZ(this.queue),T2(function(){}))};
_.t.postMessage=function(a,W,w){w=w===void 0?[]:w;this.global.postMessage(a,W,w)};
_.t.getWidth=function(){return tkD(this.global)?this.global.width:0};
_.t.getHeight=function(){return tkD(this.global)?this.global.height:0};
_.t.isMobile=function(){return FJR()||MV$()};
var Fu=function(a,W){try{var w=YKF(W,a.global,a.isMobile());return{left:w.left,top:w.top,width:w.getWidth(),height:w.getHeight()}}catch(Z){return qq}};
G5.prototype.validate=function(){var a=this.beaconFactory.isSupported()||UM(this);return this.global&&this.timeProvider.available()&&a};
var d_e=function(a){return(a=qKS(a.global))?NO(a):null};
_.dU.Object.defineProperties(G5.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!tkD(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}}});_.vbL=!_.lB&&!_.Fx();var hYv=function(a){return a};var cKe=function(a){return a.pipe(n8(function(W){var w=W.endOfSessionReason;var Z;return((Z=W.viewable)==null?void 0:Z.extrapolateToNow().value)||w!=void 0}),qO(1),MO())};var Cb7=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},G2D=function(a){var W=a.sequenceNumber.toString(10).padStart(2,"0");
W=""+a.startTime+W;a.sequenceNumber<99&&a.sequenceNumber++;return W};var pMe=E0(db(function(a){return a.endOfSessionReason===void 0}),T2(function(a){return Object.assign({},a,{timestamps:ov(a)})}),n8(function(a){var W=a.viewable;
a=a.timestamps;var w;return(w=W==null?void 0:W.extrapolateUsingTimestampMap(a).value)!=null?w:!1}),T2(function(a){var W=a.beaconFactory;
var w=a.timestampedExposureHistory;var Z=a.timeOnScreen;var N=a.binaryContext;a=a.timestamps;if(W===void 0||w===void 0||Z===void 0||N===void 0)return!1;if(Z.extrapolateUsingTimestampMap(a).value.every(function(B){return B>=0}))return!0;
w=w.map(function(B){return B.timestamp+":"+B.value}).join(",");
Z=kg({bin:N,tos:Z},a);W.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+Z+("&eh="+w)).sendNow();return!0}),db(function(a){return!a}),MO());var fYx=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 ir9=function(a){var W=[];return a.pipe(T2(function(w){var Z=w.beaconFactory,N=w.fetchBeaconFactory,B=w.timeOnScreen,I=w.timeOnScreenUrlPrefixes,X=w.payloadMapper,v=w.timeOnScreenPingId,U=w.timeOnScreenReason,O=w.urlSerializer,S=w.viewable,T=w.hasImpressionFired,p=w.inStatefulBeaconExperiment,h=w.supportsPendingBeacon,L=w.supportsFetchLater,F=w.turtlexReportEventData;if(!w.geometryMeasurable||!T||w.maxTimeOnScreen===void 0||B===void 0||I===void 0||X===void 0||v===void 0||O===void 0||Z===void 0)return!1;
if(w.isTurtlex){if(U===void 0)return!1;I=w.reportFencedFrameEvent;if(!I)return!1;I({eventType:"active-view-time-on-screen",eventData:F!=null?F:"",destination:["buyer"]});return!0}if(!(p||L||U))return!1;F=ov(w);var x;S=(x=S==null?void 0:S.extrapolateUsingTimestampMap(F).value)!=null?x:!1;x=O(Object.assign({},w,{pingId:v,viewState:S?4:3,reasonCode:U!=null?U:"u",payloadMapper:X,urlPrefixes:I}),F);if(p){for(;W.length>I.length;)w=void 0,(w=W.shift())==null||w.deactivate();x.forEach(function(V,d){d>=W.length?
W.push(Z.makeBeacon(V)):W[d].url=V});
return h&&N&&U!==void 0?(x.forEach(function(V){N.makeBeacon(V).sendNow()}),!0):U!==void 0}if(h&&N&&U!==void 0)return x.forEach(function(V){N.makeBeacon(V).sendNow()}),!0;
if(L&&N){for(;W.length>I.length;)h=void 0,(h=W.shift())==null||h.deactivate();var G=O(Object.assign({},w,{pingId:v,viewState:S?4:3,reasonCode:U!=null?U:"u",payloadMapper:X,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),F)[0];x.forEach(function(V,d){d>=W.length?W.push(Z.makeBeacon(G,{endOfSession:!0})):W[d].url=G});
return U!==void 0?(x.forEach(function(V){N.makeBeacon(V).sendNow()}),!0):U!==void 0}return U!==void 0?(x.forEach(function(V){Z.makeBeacon(V).sendNow()}),!0):!1}),db(function(w){return!w}),MO())};var eYH=E0(n8(function(a){return a.immediateUrlPrefixes!==void 0&&a.payloadMapper!==void 0&&a.urlSerializer!==void 0&&a.inferredPingId!==void 0&&a.beaconFactory!==void 0}),n8(function(a){return aZe(a)!==null}),yqD(function(a){return a.activeViewUnmeasurableEvent},function(a){return a.emit}),T2(function(a){if(a.isTurtlex){var W=a.reportFencedFrameEvent;
if(W){var w;W({eventType:"active-view-unmeasurable",eventData:(w=a.turtlexReportEventData)!=null?w:"",destination:["buyer"]})}}else{w=void 0;var Z=aZe(a);if(Z==="x"){var N,B=(N=a.geometricMeasurementErrors)!=null?N:a.contextValidationErrors;B&&(W=B.stack,w=B.message)}a.urlSerializer(Object.assign({},a,{urlPrefixes:a.immediateUrlPrefixes,payloadMapper:a.payloadMapper,pingId:a.inferredPingId,viewState:2,reasonCode:Z,errorMessage:w,errorStack:W}),ov(a)).forEach(function(I){a.beaconFactory.makeBeacon(I).sendNow()})}}),
qO(1),MO());var Wk7=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var KHU=E0(n8(function(a){return a.payloadMapper!==void 0&&a.immediateUrlPrefixes!==void 0&&a.urlSerializer!==void 0&&a.inferredPingId!==void 0&&a.beaconFactory!==void 0}),T2(function(a){return Object.assign({},a,{timestamps:ov(a)})}),n8(function(a){var W=a.viewable;
var w=a.hasImpressionFired;a=a.timestamps;var Z;return!!w&&((Z=W==null?void 0:W.extrapolateUsingTimestampMap(a).value)!=null?Z:!1)}),yqD(function(a){return a.activeViewViewableEvent},function(a){return a.emit}),T2(function(a){var W=a.beaconFactory,w=a.turtlexReportEventData;
if(a.isTurtlex){var Z=a.reportFencedFrameEvent;if(!Z)return!1;Z({eventType:"active-view-viewable",eventData:w!=null?w:"",destination:["buyer"]});return!0}w=a.urlSerializer(Object.assign({},a,{urlPrefixes:a.immediateUrlPrefixes,payloadMapper:a.payloadMapper,pingId:a.inferredPingId,viewState:4,reasonCode:"v"}),a.timestamps);(Z=a.cpmavUrls)&&Z.length>0&&a.viewUrlSerializer&&a.viewUrlSerializer(Z,a).forEach(function(N){W.makeBeacon(N).sendNow()});
(Z=a.viewableRelayUrls)&&Z.length>0&&a.viewUrlSerializer&&a.viewUrlSerializer(Z,a).forEach(function(N){W.makeBeacon(N).sendNow()});
w.forEach(function(N){W.makeBeacon(N,{attributionEnabled:a.isViewableAttributionEnabled}).sendNow()});
return!0}),db(function(a){return!a}),MO());var G5x=T2(function(a){return[a.value.topWindowViewportExternalGeometry.width,a.value.topWindowViewportExternalGeometry.height]});var Mq=function(a,W){this.callback=a;this.options=W;this.intersectionObserverV2=this.intersectionObserverV1=null},hBU=function(a,W){W?a.intersectionObserverV2||(W=Object.assign({},a.options,{delay:100,
trackVisibility:!0}),a.intersectionObserverV2=new IntersectionObserver(a.callback,W)):a.intersectionObserverV1||(a.intersectionObserverV1=new IntersectionObserver(a.callback,a.options))},gbV=function(a,W){a=W?a.intersectionObserverV2:a.intersectionObserverV1;
if(!a)throw new YRR;return a};
Mq.prototype.observe=function(a,W){gbV(this,a).observe(W)};
Mq.prototype.unobserve=function(a,W){gbV(this,a).unobserve(W)};
Mq.prototype.disconnect=function(a){gbV(this,a).disconnect()};
Mq.prototype.takeRecords=function(a){return gbV(this,a).takeRecords()};var j3={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:qq,topWindowViewportExternalGeometry:qq,measurementRequests:new Wh,elementGeometrySourceName:"ns",elementGeometry:qq,intersectionGeometry:qq,viewportLocalAppOffset:{x:0,y:0}};var Jvv=xg(E0(T2(function(a){var W;return(W=a.exposureOverride)!=null?W:cvx(a)}),T2(function(a){return isFinite(a)?a:0}))),bYE=xg(E0(T2(function(a){var W;
return(W=a.exposureOverride)!=null?W:cvx(a)}),T2(function(a){return isFinite(a)?a:-1})));var CI=function(a,W){this.a=a;this.b=W;if(a.clock.timeline!==W.clock.timeline)throw Error();};
CI.prototype.equivalentTo=function(a){return a instanceof CI?this.a.equivalentTo(a.a)&&this.b.equivalentTo(a.b):!1};
CI.prototype.extrapolateToTime=function(a){var W=this.a.extrapolateToTime(a).value,w=this.b.extrapolateToTime(a).value;return{timestamp:a,value:[W,w]}};
_.dU.Object.defineProperties(CI.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),W=this.a.lastMeasurement.timestamp.equals(a)?this.a.lastMeasurement.value:this.a.extrapolateToTime(a).value,w=this.b.lastMeasurement.timestamp.equals(a)?this.b.lastMeasurement.value:this.b.extrapolateToTime(a).value;return{timestamp:a,value:[W,w]}}}});var G6=function(a,W){this.input=a;this.mapFunction=W;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
G6.prototype.equivalentTo=function(a){return a instanceof G6?this.input.equivalentTo(a.input)&&this.mapFunction===a.mapFunction:!1};
G6.prototype.extrapolateToTime=function(a){a=this.input.extrapolateToTime(a);return{timestamp:a.timestamp,value:this.mapFunction(a.value)}};
_.dU.Object.defineProperties(G6.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var DA=function(){};
DA.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
DA.prototype.extrapolateUsingTimestampMap=function(a){var W=this.clock.timeline,w,Z=(w=a.get(W))!=null?w:this.clock.now();a.set(W,Z);return this.extrapolateToTime(Z)};
DA.prototype.map=function(a){return new obA(this,a)};
DA.prototype.joinWith=function(a){return new kkR(this,a)};
var kkR=function(){CI.apply(this,arguments);this.map=DA.prototype.map;this.joinWith=DA.prototype.joinWith;this.extrapolateToNow=DA.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=DA.prototype.extrapolateUsingTimestampMap};
_.c(kkR,CI);var obA=function(){G6.apply(this,arguments);this.map=DA.prototype.map;this.joinWith=DA.prototype.joinWith;this.extrapolateToNow=DA.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=DA.prototype.extrapolateUsingTimestampMap};
_.c(obA,G6);var sT=function(a,W){this.lastMeasurement=W;this.extrapolateToNow=DA.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=DA.prototype.extrapolateUsingTimestampMap;this.map=DA.prototype.map;this.joinWith=DA.prototype.joinWith;this.clock=a};
sT.prototype.equivalentTo=function(a){return a.active};
sT.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.dU.Object.defineProperties(sT.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var CfD=T2(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 ngx=E0(n8(function(a){return!isNaN(a)}),G2(function(a,W){return isNaN(a)?W:Math.min(a,W)},NaN),Qa());var FkF=xg(E0(T2(function(a){return a.intersectionGeometry.width*a.intersectionGeometry.height/(a.exposedViewportLocalGeometry.width*a.exposedViewportLocalGeometry.height)}),T2(function(a){return isFinite(a)?Math.min(1,a):0})));var uu8=E0(xg(T2(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 dq7=function(a,W){var w=this;this.timeProvider=a;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=W.pipe(Qa()).subscribe(function(Z){V3F(w);w.measurementRequestObserver=Z})},zB7=function(a,W){V3F(a);
a.lastMeasurementRequest=a.timeProvider.setTimeout(function(){var w;return void((w=a.measurementRequestObserver)==null?void 0:w.next())},W)},V3F=function(a){a.lastMeasurementRequest!==null&&a.timeProvider.clearTimeout(a.lastMeasurementRequest);
a.lastMeasurementRequest=null};
dq7.prototype.dispose=function(){V3F(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var Uoy=function(){};var SWx=function(a,W){this.context=a;this.strategies=W};
_.c(SWx,Uoy);SWx.prototype.buildGeometrySource=function(a,W){var w=this.strategies.map(function(B){return B.buildGeometrySource(a,W)}),Z=WHU(w.map(function(B){return B.geometrySource})),N=Z.capturedErrors.pipe(O_T());
return{geometrySource:Z.chain.pipe(ZZ(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:N,strategyErrors:Z.capturedErrors}].concat(_.K8(w.map(function(B){return B.additionalOutputs}))))}};
var O_T=function(){return G2(function(a,W){W instanceof S3?a.push(W.measurementStrategyFailureReason):a.push(-1);return a},[])};var Thm=function(a,W){this.context=a;this.poller=W};
_.c(Thm,Uoy);Thm.prototype.buildGeometrySource=function(a,W){var w=wMU(NhD(this.context,this.poller),ogI(this.context,W.requestSource));return{geometrySource:af7(a.measurableCreative.pipe(w),W.inApp),additionalOutputs:{}}};var YWC=function(a,W,w){w=w===void 0?T3x(a,W):w;this.context=a;this.intersectionObserverStrategy=w};
_.c(YWC,Uoy);YWC.prototype.buildGeometrySource=function(a,W){var w=this.intersectionObserverStrategy(W.useV2);return{geometrySource:af7(a.measurableCreative.pipe(w,Kkm(this.context)),W.inApp),additionalOutputs:{}}};var SmH=function(a,W,w){var Z=Z===void 0?Symbol():Z;this.element=a;this.immediateUrls=W;this.timeOnScreenUrls=w;this.symbol=Z};var fZ8=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),PJe=Object.freeze([1,.75,fZ8.exposureThreshold,fZ8.largeAdExposureThreshold,0]);var R1v=function(a,W){W=W===void 0?36E5:W;var w=w===void 0?!0:w;this.creatives=new Wh;this.elementsToUnregister=new Wh;this.elementMap=new Map;var Z=new G5(window,null);Z.beaconFactory=new gm(Z,new x2(Z));Ore(Z,this.creatives,this.elementsToUnregister,a,W,w).subscribe()},xbF=function(a,W,w,Z){if(!a.elementMap.has(W)){var N=new Jv(W);
a.elementMap.set(W,N);a.creatives.next(new SmH(N,w,Z))}},QFS=function(a,W){a.elementsToUnregister.next(W);
var w=a.elementMap.get(W);w!==void 0&&(w.release(),a.elementMap.delete(W))};var A7e=n3I("adurl"),r7x=n3I("ae"),puF=n3I("dsh"),KhI=function(a){var W=a.url;a=a.uaDataValues;this.JSC$7383_url_=W;this.uaDataValues_=a;this.suid_=(new Date).getTime()-17040672E5},h5F=function(a){a=a.uaDataValues_;
if(!a)return"";var W=fY("uap",a.platform)+fY("uapv",a.platformVersion)+fY("uafv",a.uaFullVersion)+fY("uaa",a.architecture)+fY("uam",a.model)+fY("uab",a.bitness);a.fullVersionList&&(W+="&uafvl="+encodeURIComponent(a.fullVersionList.map(function(w){return encodeURIComponent(w.brand)+";"+encodeURIComponent(w.version)}).join("|")));
a.wow64!=null&&(W+="&uaw="+Number(a.wow64));return W.slice(1)};var fI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(fI,_.QH);fI.prototype.getId=function(){return _.Lo(this,1)};
fI.prototype.setId=function(a){return _.aI(this,1,a)};var dm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(dm,_.QH);dm.prototype.getSeconds=function(){return no(this,1)};
dm.prototype.setSeconds=function(a){return _.hI(this,1,Jz(a),"0")};_.sa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(_.sa,_.QH);_.sa.prototype.getSeconds=function(){return no(this,1)};
_.sa.prototype.setSeconds=function(a){return _.hI(this,1,Jz(a),"0")};
_.Yme=function(a){var W=Number(Fk(a,1));a=_.yo(a,2);return new Date(W*1E3+a/1E6)};var ml=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(ml,_.QH);ml.prototype.getUrl=function(){return _.Lo(this,1)};
ml.prototype.setUrl=function(a){return _.aI(this,1,a)};
ml.prototype.getHeight=function(){return _.yo(this,2)};
ml.prototype.getWidth=function(){return _.yo(this,3)};var VK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(VK,_.QH);VK.prototype.getAspectRatio=function(){return jF(this,1)};
VK.prototype.setAspectRatio=function(a){return _.hI(this,1,_.IE(a),0)};
VK.prototype.getDuration=function(){return _.Hi(this,dm,2)};var TCT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(TCT,_.QH);var KZR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(KZR,_.QH);var p9A=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(p9A,_.QH);var rIE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(rIE,_.QH);var AIH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(AIH,_.QH);var hR_=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(hR_,_.QH);var i_h=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(i_h,_.QH);var cI_=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(cI_,_.QH);var eRl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(eRl,_.QH);var z6=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(z6,_.QH);var H0=[2,4,5,6,7];var nbA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(nbA,_.QH);var iB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(iB,_.QH);_.t=iB.prototype;_.t.getId=function(){return _.Hi(this,fI,1)};
_.t.setId=function(a){return _.ZP(this,1,a)};
_.t.getName=function(){return _.Lo(this,2)};
_.t.setDescription=function(a){return _.aI(this,3,a)};
_.t.getUrl=function(){return _.Lo(this,8)};
_.t.setUrl=function(a){return _.aI(this,8,a)};
var yK=function(a){return _.z5(a,ml,10,_.Hh())};
iB.prototype.getOwner=function(a){var W=_.Tk(this,40,_.b9,3,!0);Gh(W,a);return W[a]};
iB.prototype.getVersion=function(){return no(this,45)};
var EM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(EM,_.QH);_.jPe=[0,OW7,YcD];_.LZh=[0,OW7,YcD];var JIh=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(JIh,_.QH);var ak=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(ak,_.QH);ak.prototype.getStatus=function(){return _.JD(this,1)};
ak.prototype.removeItem=function(a){return MR7(this,2,a)};var FZE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(FZE,_.QH);FZE.prototype.getName=function(){return _.Lo(this,8)};var W5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(W5,_.QH);W5.prototype.getCommand=function(){return _.JD(this,1)};
W5.prototype.getSource=function(){return _.Hi(this,FZE,2)};
W5.prototype.setVisible=function(a){return _.As(this,5,a)};
W5.prototype.removeItem=function(a){return MR7(this,7,a)};var MeV=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(MeV,_.QH);MeV.prototype.getCommand=function(){return _.JD(this,1)};
MeV.prototype.removeItem=function(a){return MR7(this,4,a)};
var RRT=_.WP(MeV);var wD=function(a,W,w){w=w===void 0?Error():w;var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=a;W+=":";w instanceof Error?(this.message=W+w.message,this.stack=w.stack||""):(this.message=W+String(w),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(wD,Error);_.OW=function(){this.JSC$7441_disposed_=this.JSC$7441_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.OW.prototype.JSC$7441_disposed_=!1;_.OW.prototype.isDisposed=function(){return this.JSC$7441_disposed_};
_.OW.prototype.dispose=function(){this.JSC$7441_disposed_||(this.JSC$7441_disposed_=!0,this.disposeInternal())};
_.OW.prototype[Symbol.dispose]=function(){this.dispose()};
_.$3=function(a,W){a.addOnDisposeCallback(_.v_(_.d3,W))};
_.OW.prototype.addOnDisposeCallback=function(a,W){this.JSC$7441_disposed_?W!==void 0?a.call(W):a():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),W&&(a=a.bind(W)),this.onDisposeCallbacks_.push(a))};
_.OW.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var ZQ=function(a){_.OW.call(this);this.wpc=a};
_.c(ZQ,_.OW);ZQ.prototype.m77=function(){return this.wpc.f()};
ZQ.prototype.zFh=function(a){return this.wpc.c(a)};
ZQ.prototype.mU=function(a){return this.wpc.m(RYS(a))};
ZQ.prototype.aN=function(a){return this.wpc.mws(RYS(a))};
var Vo=function(a){_.OW.call(this);var W=this;this.kf=a;this.iZj="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.kSE=void 0;this.tWb=this.kf.p;this.uDj=this.tfd.bind(this);this.addOnDisposeCallback(function(){return void qm_(W)})};
_.c(Vo,_.OW);var QPJ=function(a){var W;return _.P(function(w){if(w.nextAddress==1){if(!a.kf.wpc)throw new wD(30,"NWA");return a.sRS?w.return(a.sRS):_.g(w,a.kf.wpc(),2)}W=w.yieldResult;a.sRS=new ZQ(W);return w.return(a.sRS)})};
Vo.prototype.snapshot=function(a){return this.kf.s(Object.assign({},a.jm&&{c:a.jm},a.aZy&&{s:a.aZy},a.puE!==void 0&&{p:a.puE}))};
Vo.prototype.tfd=function(a){this.kf.e(a)};
Vo.prototype.xfy=function(a,W){return this.kf.c(a,W,!1)};
var qm_=function(a){a.kSE!==void 0&&(a.iZj.forEach(function(W){var w;(w=a.kSE)==null||w.removeEventListener(W,a.uDj)}),a.kSE=void 0)};
Vo.prototype.psy=function(){return this.kf.l()};var xoJ,N5=function(){_.OW.apply(this,arguments);this.eSE=1;this[xoJ]=this.dispose};
_.c(N5,_.OW);N5.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.eSE++;return this};
N5.prototype.dispose=function(){--this.eSE||_.OW.prototype.dispose.call(this)};
xoJ=Symbol.dispose;var Nj7=function(a){this.obj=a;a.addNewEventMetric("/client_streamz/bg/frs",_.WM("mk"))};
Nj7.prototype.record=function(a,W){this.obj.record("/client_streamz/bg/frs",a,W)};
var lTF=function(a){this.fCE=a;a.addNewEventMetric("/client_streamz/bg/wrl",_.WM("mn"),a$("ac"),a$("sc"),_.WM("rk"),_.WM("mk"))};
lTF.prototype.record=function(a,W,w,Z,N,B){this.fCE.record("/client_streamz/bg/wrl",a,W,w,Z,N,B)};
var $k8=function(a){this.aCb=a;a.addNewCounter("/client_streamz/bg/ec",_.WM("en"),_.WM("mk"))};
$k8.prototype.increment=function(a,W){this.aCb.JSC$7694_incrementCounter("/client_streamz/bg/ec",a,W)};
var Bj9=function(a){this.yHV=a;a.addNewEventMetric("/client_streamz/bg/el",_.WM("en"),_.WM("mk"))};
Bj9.prototype.record=function(a,W,w){this.yHV.record("/client_streamz/bg/el",a,W,w)};
var tQm=function(a){this.pub=a;a.addNewCounter("/client_streamz/bg/cec",a$("ec"),_.WM("mk"))};
tQm.prototype.increment=function(a,W){this.pub.JSC$7694_incrementCounter("/client_streamz/bg/cec",a,W)};
var IT7=function(a){this.mwV=a;a.addNewCounter("/client_streamz/bg/po/csc",a$("cs"),_.WM("mk"))};
IT7.prototype.increment=function(a,W){this.mwV.JSC$7694_incrementCounter("/client_streamz/bg/po/csc",a,W)};
var PkC=function(a){this.eGj=a;a.addNewCounter("/client_streamz/bg/po/ctav",_.WM("av"),_.WM("mk"))};
PkC.prototype.increment=function(a,W){this.eGj.JSC$7694_incrementCounter("/client_streamz/bg/po/ctav",a,W)};
var XaU=function(a){this.jpl=a;a.addNewCounter("/client_streamz/bg/po/cwsc",_.WM("su"),_.WM("mk"))};
XaU.prototype.increment=function(a,W){this.jpl.JSC$7694_incrementCounter("/client_streamz/bg/po/cwsc",a,W)};var YiF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(YiF,_.QH);var Six=function(a,W){return _.AI(a,3,W,H7F)};var b_e=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(b_e,_.QH);var sPR=[1,2,3];var uLR=[0,sPR,_.AhF,TuD,rhe];var CYL=[0,_.VZ,[0,oNH,_.DL]];var Gky=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Gky,_.QH);var DoR=[1,2,3];var f2_=[0,DoR,Sc7,kBx,_.z1,CYL];var doh=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(doh,_.QH);var moe=[0,_.VZ,uLR,f2_];var VeR=[0,_.mK];var zRR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(zRR,_.QH);var H_V=[0,_.mK,-1,_.dk];var yIT=[0,_.mK,-1,_.fo,_.dk];var EbR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(EbR,_.QH);var aPL=[1,2,3];var W_e=[0,aPL,_.z1,H_V,_.z1,yIT,_.z1,VeR];var wPE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(wPE,_.QH);wPE.prototype.JSC$7514_serializeBinary=WZe([0,_.mK,W_e,hj7,_.VZ,moe,Kpm,pBe]);var Zv$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Zv$,_.QH);var $_H=function(a){var W=new wPE;W=_.Xu(W,1,a.JSC$7630_metricName);var w=N5e(a);W=_.AI(W,3,w,_.Qk);w=[];for(var Z=[],N=_.l(a.cellMap.keys()),B=N.next();!B.done;B=N.next())Z.push(B.value.split(","));for(N=0;N<Z.length;N++){B=Z[N];for(var I=a.cellType,X=a.getCells(B)||[],v=[],U=0;U<X.length;U++){var O=X[U],S=O&&O.cellValue;O=new Gky;switch(I){case 3:S=Number(S);Number.isFinite(S)&&XI(O,1,DoR,Jz(S));break;case 2:XI(O,2,DoR,_.IE(Number(S)))}v.push(O)}I=v;for(X=0;X<I.length;X++){v=I[X];U=new doh;v=_.ZP(U,
2,v);U=[];O=tBT(a);for(S=0;S<O.length;S++){var T=O[S],p=B[S],h=new b_e;switch(T){case 3:XI(h,1,sPR,xd(String(p)));break;case 2:T=Number(p);Number.isFinite(T)&&XI(h,2,sPR,_.Az(T));break;case 1:XI(h,3,sPR,mHD(p==="true"))}U.push(h)}hD(v,1,U);w.push(v)}}hD(W,4,w);return W};var B5J=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 W=a.substring(a.indexOf("://")+3),w=W.indexOf("/");w!=-1&&(W=W.substring(0,w));w=a.substring(0,a.indexOf("://"));if(!w)throw Error("ua`"+a);if(w!=="http"&&w!=="https"&&w!=="chrome-extension"&&w!=="moz-extension"&&
w!=="file"&&w!=="android-app"&&w!=="chrome-search"&&w!=="chrome-untrusted"&&w!=="chrome"&&w!=="app"&&w!=="devtools")throw Error("va`"+w);a="";var Z=W.indexOf(":");if(Z!=-1){var N=W.substring(Z+1);W=W.substring(0,Z);if(w==="http"&&N!=="80"||w==="https"&&N!=="443")a=":"+N}return w+"://"+W+a};var IPR=function(a,W,w){var Z=String(_.NH.location.href);return Z&&a&&W?[W,lPe(B5J(Z),a,w||null)].join(" "):null},lPe=function(a,W,w){var Z=[],N=[];
if((Array.isArray(w)?2:1)==1)return N=[W,a],_.x6(Z,function(X){N.push(X)}),Pq$(N.join(" "));
var B=[],I=[];_.x6(w,function(X){I.push(X.key);B.push(X.value)});
w=Math.floor((new Date).getTime()/1E3);N=B.length==0?[w,W,a]:[B.join(":"),w,W,a];_.x6(Z,function(X){N.push(X)});
a=Pq$(N.join(" "));a=[w,a];I.length==0||a.push(I.join(""));return a.join("_")},Pq$=function(a){var W=GO8();
W.update(a);return W.digestString().toLowerCase()};var td=function(a){this.JSC$7525_document_=a||{cookie:""}},XPL;
_.t=td.prototype;_.t.isEnabled=function(){if(!_.NH.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};
_.t.set=function(a,W,w){var Z=!1;if(typeof w==="object"){var N=w.sameSite;Z=w.secure||!1;var B=w.domain||void 0;var I=w.path||void 0;var X=w.maxAge}if(/[;=\s]/.test(a))throw Error("wa`"+a);if(/[;\r\n]/.test(W))throw Error("xa`"+W);X===void 0&&(X=-1);w=B?";domain="+B:"";I=I?";path="+I:"";Z=Z?";secure":"";X=X<0?"":X==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+X*1E3)).toUTCString();this.JSC$7525_document_.cookie=a+"="+W+w+I+X+Z+(N!=null?";samesite="+N:"")};
_.t.get=function(a,W){for(var w=a+"=",Z=(this.JSC$7525_document_.cookie||"").split(";"),N=0,B;N<Z.length;N++){B=kI(Z[N]);if(B.lastIndexOf(w,0)==0)return B.slice(w.length);if(B==a)return""}return W};
_.t.remove=function(a,W,w){var Z=this.containsKey(a);this.set(a,"",{maxAge:0,path:W,domain:w});return Z};
_.t.getKeys=function(){return XPL(this).keys};
_.t.getValues=function(){return XPL(this).values};
_.t.isEmpty=function(){return!this.JSC$7525_document_.cookie};
_.t.getCount=function(){return this.JSC$7525_document_.cookie?(this.JSC$7525_document_.cookie||"").split(";").length:0};
_.t.containsKey=function(a){return this.get(a)!==void 0};
_.t.containsValue=function(a){for(var W=XPL(this).values,w=0;w<W.length;w++)if(W[w]==a)return!0;return!1};
_.t.clear=function(){for(var a=XPL(this).keys,W=a.length-1;W>=0;W--)this.remove(a[W])};
XPL=function(a){a=(a.JSC$7525_document_.cookie||"").split(";");for(var W=[],w=[],Z,N,B=0;B<a.length;B++)N=kI(a[B]),Z=N.indexOf("="),Z==-1?(W.push(""),w.push(N)):(W.push(N.substring(0,Z)),w.push(N.substring(Z+1)));return{keys:W,values:w}};
_.XQ=new td(typeof document=="undefined"?null:document);var Xy9=function(){var a=_.NH.__SAPISID||_.NH.__APISID||_.NH.__3PSAPISID||_.NH.__1PSAPISID||_.NH.__OVERRIDE_SID;if(a)return!0;typeof document!=="undefined"&&(a=new td(document),a=a.get("SAPISID")||a.get("APISID")||a.get("__Secure-3PAPISID")||a.get("__Secure-1PAPISID"));return!!a},vf6=function(a,W,w,Z){(a=_.NH[a])||typeof document==="undefined"||(a=(new td(document)).get(W));
return a?IPR(a,w,Z):null},HxE=function(a){var W=B5J(_.NH==null?void 0:_.NH.location.href),w=[];
if(Xy9()){W=W.indexOf("https:")==0||W.indexOf("chrome-extension:")==0||W.indexOf("chrome-untrusted://new-tab-page")==0||W.indexOf("moz-extension:")==0;var Z=W?_.NH.__SAPISID:_.NH.__APISID;Z||typeof document==="undefined"||(Z=new td(document),Z=Z.get(W?"SAPISID":"APISID")||Z.get("__Secure-3PAPISID"));(Z=Z?IPR(Z,W?"SAPISIDHASH":"APISIDHASH",a):null)&&w.push(Z);W&&((W=vf6("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&w.push(W),(a=vf6("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&w.push(a))}return w.length==
0?null:w.join(" ")};var gfl=function(){this.minSize=1024};
gfl.prototype.compress=function(a){var W,w,Z,N;return _.P(function(B){switch(B.nextAddress){case 1:return W=new CompressionStream("gzip"),w=(new Response(W.readable)).arrayBuffer(),Z=W.writable.getWriter(),_.g(B,Z.write((new TextEncoder).encode(a)),2);case 2:return _.g(B,Z.close(),3);case 3:return N=Uint8Array,_.g(B,w,4);case 4:return B.return(new N(B.yieldResult))}})};
gfl.prototype.isSupported=function(a){return a<this.minSize?!1:typeof CompressionStream!=="undefined"};var ofJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(ofJ,_.QH);var $O=function(a,W){this.intervalMs=a;this.callback=W;this.enabled=!1;this.nowFn=function(){return _.ZL()};
this.lastTimeMs=this.nowFn()};
$O.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
$O.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
$O.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
$O.prototype.tick=function(){var a=this;if(this.enabled){var W=Math.max(this.nowFn()-this.lastTimeMs,0);W<this.intervalMs*.8?this.timer=setTimeout(function(){a.tick()},this.intervalMs-W):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var kHT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(kHT,_.QH);var U_A=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(U_A,_.QH);var Ov_=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Ov_,_.QH);Ov_.prototype.getTransmissionType=function(){return _.JD(this,1)};var mFE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(mFE,_.QH);mFE.prototype.getVersion=function(){return _.Lo(this,2)};var B5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(B5,_.QH);var dFF=function(a){hD(VkS,1,a)};
B5.prototype.getModel=function(){return _.Lo(this,6)};
var S0R=_.WP(B5);var Y0V=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Y0V,_.QH);var DFe=["platform","platformVersion","architecture","model","uaFullVersion"],VkS=new B5,ff9=null;var T5_=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(T5_,_.QH);var K_R=function(a){return _.yJ(a,1,1)};var pP_=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a,4)};
_.c(pP_,_.QH);_.lg=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a,36)};
_.c(_.lg,_.QH);_.lg.prototype.getExperimentIds=function(){return _.Hi(this,ofJ,16)};var rYT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a,19)};
_.c(rYT,_.QH);rYT.prototype.setLogSource=function(a){return _.yJ(this,2,a)};
rYT.prototype.setScheduler=function(a){return _.yJ(this,10,a)};var hwR=function(a,W){this.isServiceWorkerScope=W=W===void 0?!1:W;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new rYT;Number.isInteger(a)&&this.logRequest.setLogSource(a);W||(this.locale=document.documentElement.getAttribute("lang"));AYA(this,new T5_)};
hwR.prototype.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
var AYA=function(a,W){_.ZP(a.logRequest,1,W);_.JD(W,1)||K_R(W);a.isServiceWorkerScope||(W=Ik(a),_.Lo(W,5)||_.Xu(W,5,a.locale));a.uach&&(W=Ik(a),_.Hi(W,B5,9)||_.ZP(W,9,a.uach))},ivE=function(a,W){a.transmissionType=W},cYy=function(a){var W=W===void 0?DFe:W;
var w=a.isServiceWorkerScope?void 0:Av();w?zYm(w,W).then(function(Z){a.uach=S0R(Z!=null?Z:"[]");Z=Ik(a);_.ZP(Z,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Ik=function(a){a=_.Hi(a.logRequest,T5_,1);
var W=_.Hi(a,Y0V,11);W||(W=new Y0V,_.ZP(a,11,W));return W};
hwR.prototype.build=function(a,W,w,Z,N,B){W=W===void 0?0:W;w=w===void 0?0:w;Z=Z===void 0?null:Z;N=N===void 0?0:N;B=B===void 0?0:B;if(!this.isServiceWorkerScope){var I=Ik(this);var X=new Ov_;X=_.yJ(X,1,this.transmissionType);X=_.wh(X,2,this.isFinal);w=_.qT(X,3,w>0?w:void 0);w=_.qT(w,4,N>0?N:void 0);w=_.qT(w,5,B>0?B:void 0);N=w.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;B=N[_.n6]|0;w=Q_(w,B)?w:IP(w,N,B)?lY(w,N):new w.constructor(B9(N,B,!0));_.ZP(I,10,w)}I=this.logRequest.clone();w=Date.now().toString();
I=_.Ew(I,4,Jz(w));a=a.slice();a=hD(I,3,a);Z&&(I=new kHT,Z=_.qT(I,13,Z),I=new U_A,Z=_.ZP(I,2,Z),I=new pP_,Z=_.ZP(I,1,Z),Z=_.yJ(Z,2,9),_.ZP(a,18,Z));W&&_.SJ(a,14,W);return a};Zf.prototype.currBackoffCount_=0;Zf.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Zf.prototype.getValue=function(){return this.currValue_};
var ew6=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 jzv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a,8)};
_.c(jzv,_.QH);var nfA=_.WP(jzv);var LpF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(LpF,_.QH);var P5;P5=new JhE;var Xw=function(a){_.OW.call(this);var W=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7603_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$7603_sendBeaconApiEnabled=!1;this.logSource=a.logSource;this.getAuthHeaderValue=
a.getAuthHeaderValue||function(){};
this.logRequestBuilder=new hwR(a.logSource,a.isServiceWorkerScope);this.network=a.network||null;this.productID=a.productID||null;this.clearcutUrl=a.urlOverride||null;this.sessionIndex=a.sessionIndex||null;this.disableAutomaticFlush=a.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!a.disableWithCredentials;this.isServiceWorkerScope=a.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Av()&&!!Av().navigator&&Av().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(jJl())).searchParams&&!!(new URL(jJl())).searchParams.set;var w=K_R(new T5_);AYA(this.logRequestBuilder,w);this.flushBackoff=new Zf(1E4,3E5,.1);a=L_y(this,a.backgroundJobDeferrer);this.JSC$7603_flushTimer=new $O(this.flushBackoff.getValue(),a);this.backupTimer=new $O(6E5,a);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){JYh(W);
var Z;(Z=W.metalogService)==null||Z.flush()}}),document.addEventListener("pagehide",function(){JYh(W);
var Z;(Z=W.metalogService)==null||Z.flush()}))};
_.c(Xw,_.OW);var L_y=function(a,W){return a.isBrowserSupported?W?function(){W().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
Xw.prototype.disposeInternal=function(){JYh(this);this.JSC$7603_flushTimer.stop();this.backupTimer.stop();_.OW.prototype.disposeInternal.call(this)};
var F_V=function(a){a.clearcutUrl||(a.clearcutUrl=jJl());try{return(new URL(a.clearcutUrl)).toString()}catch(W){return(new URL(a.clearcutUrl,Av().location.origin)).toString()}};
Xw.prototype.dispatch=function(a){if(a instanceof _.lg)this.log(a);else try{var W=new _.lg,w=a.serialize();var Z=_.Xu(W,8,w);this.log(Z)}catch(N){v5(this,4,1)}};
var v5=function(a,W,w){a.metalogService&&a.metalogService.increment(W,w)};
Xw.prototype.log=function(a){v5(this,2,1);if(this.isBrowserSupported){a=a.clone();var W=this.sequencePosition++;a=_.SJ(a,21,W);this.componentId&&_.Xu(a,26,this.componentId);W=a;if(gR8(_.Oy(W,1))==null){var w=Date.now();w=Number.isFinite(w)?w.toString():"0";_.Ew(W,1,Jz(w))}_.vRS(_.Oy(W,15))!=null||_.SJ(W,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(w=this.experimentIds.clone(),_.ZP(W,16,w));v5(this,1,1);W=this.pendingEvents.length-1E3+1;W>0&&(this.pendingEvents.splice(0,W),this.numLogsDroppedSinceLastFlush+=
W,v5(this,3,W));this.pendingEvents.push(a);this.disableAutomaticFlush||this.JSC$7603_flushTimer.enabled||this.JSC$7603_flushTimer.start()}};
Xw.prototype.flush=function(a,W){var w=this;if(this.pendingEvents.length===0)a&&a();else if(this.JSC$7603_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,MBR(this);else{var Z=Date.now();if(this.noFlushUntilMs>Z&&this.startWaitingMs<Z)W&&W("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?ivE(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var N=this.pendingEvents.length,
B=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),I=this.getAuthHeaderValue();if(I&&this.lastFailedAuth===I)W&&W("stale-auth-token");else{this.pendingEvents=[];this.JSC$7603_flushTimer.enabled&&this.JSC$7603_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;Z=B.serialize();var X;this.JSC$7603_compressor&&this.JSC$7603_compressor.isSupported(Z.length)&&
(X=this.JSC$7603_compressor.compress(Z));var v=Rwy(this,Z,I),U=function(T){w.flushBackoff.reset();w.JSC$7603_flushTimer.setInterval(w.flushBackoff.getValue());if(T){var p=null;try{var h=JSON.stringify(JSON.parse(T.replace(")]}'\n","")));p=nfA(h)}catch(L){}p&&(T=Number(no(p,1,_.y_("-1"))),T>0&&(w.startWaitingMs=Date.now(),w.noFlushUntilMs=w.startWaitingMs+T),LJe(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P5.fieldIndex),nR7(p,P5.fieldIndex),p=P5.ctor?P5.getExtensionFn(p,P5.ctor,P5.fieldIndex,
P5.JSC$6783_hasMessageId):P5.getExtensionFn(p,P5.fieldIndex,null,P5.JSC$6783_hasMessageId),p=p===null?void 0:p)&&(p=_.yo(p,1,-1),p!==-1&&(w.flushBackoff=new Zf(p<1?1:p,3E5,.1),w.JSC$7603_flushTimer.setInterval(w.flushBackoff.getValue())))}a&&a();w.numRetriesSinceLastSuccessfulFlush=0},O=function(T,p){var h=_.z5(B,_.lg,3,_.Hh());
var L=Number(no(B,14));ew6(w.flushBackoff);w.JSC$7603_flushTimer.setInterval(w.flushBackoff.getValue());T===401&&I&&(w.lastFailedAuth=I);L&&(w.numLogsDroppedSinceLastFlush+=L);p===void 0&&(p=w.isRetryable(T));p&&(w.pendingEvents=h.concat(w.pendingEvents),w.disableAutomaticFlush||w.JSC$7603_flushTimer.enabled||w.JSC$7603_flushTimer.start());v5(w,7,1);W&&W("net-send-failed",T);++w.numRetriesSinceLastSuccessfulFlush},S=function(){w.network&&w.network.send(v,U,O)};
X?X.then(function(T){v5(w,5,N);v.requestHeaders["Content-Encoding"]="gzip";v.requestHeaders["Content-Type"]="application/binary";v.body=T;v.bodyType=2;S()},function(){v5(w,6,N);
S()}):S()}}}};
var Rwy=function(a,W,w){w=w===void 0?null:w;var Z=Z===void 0?a.withCredentials:Z;var N={},B=new URL(F_V(a));w&&(N.Authorization=w);a.sessionIndex&&(N["X-Goog-AuthUser"]=a.sessionIndex,B.searchParams.set("authuser",a.sessionIndex));a.pageId&&(Object.defineProperty(N,"X-Goog-PageId",{value:a.pageId}),B.searchParams.set("pageId",a.pageId));return{url:B.toString(),body:W,bodyType:1,requestHeaders:N,requestType:"POST",withCredentials:Z,timeoutMillis:a.timeoutMillis}},JYh=function(a){a.logRequestBuilder.isFinal=
!0;
a.flush();a.logRequestBuilder.isFinal=!1},MBR=function(a){q0h(a,function(W,w){W=new URL(W);
W.searchParams.set("format","json");var Z=!1;try{Z=Av().navigator.sendBeacon(W.toString(),w.serialize())}catch(N){}Z||(a.isSendBeaconSupported=!1);return Z})},q0h=function(a,W){if(a.pendingEvents.length!==0){var w=new URL(F_V(a));
w.searchParams.delete("format");var Z=a.getAuthHeaderValue();Z&&w.searchParams.set("auth",Z);w.searchParams.set("authuser",a.sessionIndex||"0");for(Z=0;Z<10&&a.pendingEvents.length;++Z){var N=a.pendingEvents.slice(0,32),B=a.logRequestBuilder.build(N,a.numLogsDroppedSinceLastFlush,a.numRetriesSinceLastSuccessfulFlush,a.productID,a.persistedLogRecoveredCount,a.persistedLogExpiredCount);if(!W(w.toString(),B)){++a.numRetriesSinceLastSuccessfulFlush;break}a.numLogsDroppedSinceLastFlush=0;a.numRetriesSinceLastSuccessfulFlush=
0;a.persistedLogRecoveredCount=0;a.persistedLogExpiredCount=0;a.pendingEvents=a.pendingEvents.slice(N.length)}a.JSC$7603_flushTimer.enabled&&a.JSC$7603_flushTimer.stop()}};
Xw.prototype.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0};
var jJl=function(){return"https://play.google.com/log?format=json&hasfast=true"};var QJR=function(){this.abortSupported=typeof AbortController!=="undefined"};
QJR.prototype.send=function(a,W,w){var Z=this,N,B,I,X,v,U,O,S,T,p;return _.P(function(h){switch(h.nextAddress){case 1:return B=(N=Z.abortSupported?new AbortController:void 0)?setTimeout(function(){N.abort()},a.timeoutMillis):void 0,_.tq(h,2,3),I=Object.assign({},{method:a.requestType,
headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&N?N.signal:null}),_.g(h,fetch(a.url,I),5);case 5:X=h.yieldResult;if(X.status!==200){(v=w)==null||v(X.status);h.jumpTo(3);break}if((U=W)==null){h.jumpTo(7);break}return _.g(h,X.text(),8);case 8:U(h.yieldResult);case 7:case 3:_.$8(h);clearTimeout(B);_.In(h,0);break;case 2:O=_.Pb(h);switch((S=O)==null?void 0:S.name){case "AbortError":(T=w)==null||T(408);break;default:(p=
w)==null||p(400)}h.jumpTo(3)}})};
QJR.prototype.getTransmissionType=function(){return 4};_.tK=function(a,W){W=W===void 0?"0":W;_.OW.call(this);this.logSource=a;this.sessionIndex=W;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7621_clearExperimentIds=this.productID=null;this.JSC$7621_sendBeaconApiEnabled=!1;this.pageId=null};
_.c(_.tK,_.OW);var kve=function(a,W){a.buildLabel=W;return a},o1F=function(a,W){a.network=W;
return a},Oa7=function(a,W){a.JSC$7621_clearExperimentIds=W},g1D=function(a){a.JSC$7621_sendBeaconApiEnabled=!0;
return a};
_.tK.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.tK.prototype.build=function(){this.network||(this.network=new QJR);var a=new Xw({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:HxE,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.$3(this,a);if(this.buildLabel){var W=this.buildLabel,w=Ik(a.logRequestBuilder);
_.Xu(w,7,W)}a.JSC$7603_compressor=new gfl;this.componentId&&(a.componentId=this.componentId);this.productID&&(a.productID=this.productID);this.pageId&&(a.pageId=this.pageId);this.JSC$7621_clearExperimentIds&&((w=this.JSC$7621_clearExperimentIds)?(a.experimentIds||(a.experimentIds=new ofJ),W=a.experimentIds,w=w.serialize(),_.Xu(W,4,w)):a.experimentIds&&_.Ew(a.experimentIds,4));this.JSC$7621_sendBeaconApiEnabled&&(a.JSC$7603_sendBeaconApiEnabled=a.isSendBeaconSupported);cYy(a.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(a);return a};var TjC=function(a,W,w,Z,N,B,I){a=a===void 0?-1:a;W=W===void 0?"":W;w=w===void 0?"":w;Z=Z===void 0?!1:Z;N=N===void 0?"":N;_.OW.call(this);this.logSource=a;this.componentId=W;B?W=B:(a=new _.tK(a,"0"),a.componentId=W,_.$3(this,a),w!==""&&(a.destinationUrl=w),Z&&(a.serviceWorkerScopeEnabled=!0),N&&kve(a,N),I&&o1F(a,I),W=a.build());this.JSC$7625_transport=W};
_.c(TjC,_.OW);TjC.prototype.flush=function(a){a=a||[];if(a.length){for(var W=new Zv$,w=[],Z=0;Z<a.length;Z++){var N=a[Z],B=$_H(N);w.push(B);N.clear()}hD(W,1,w);this.JSC$7625_transport.dispatch(W);this.JSC$7625_transport.flush()}};var x_e=function(a){this.cellValue=a};var gD=function(a,W,w){this.JSC$7630_metricName=a;this.cellType=W;this.fields=w||[];this.cellMap=new Map},tBT=function(a){return a.fields.map(function(W){return W.fieldType})},N5e=function(a){return a.fields.map(function(W){return W.fieldName})};
_.t=gD.prototype;_.t.addCell=function(a){var W=_.TH.apply(1,arguments),w=this.getCells(W);w?w.push(new x_e(a)):this.JSC$7630_setCell(a,W)};
_.t.JSC$7630_setCell=function(a){var W=this.JSC$7630_getKey(_.TH.apply(1,arguments));this.cellMap.set(W,[new x_e(a)])};
_.t.getCells=function(){var a=this.JSC$7630_getKey(_.TH.apply(0,arguments));return this.cellMap.has(a)?this.cellMap.get(a):void 0};
_.t.getCell=function(){var a=this.getCells(_.TH.apply(0,arguments));return a&&a.length?a[0]:void 0};
_.t.clear=function(){this.cellMap.clear()};
_.t.JSC$7630_getKey=function(){var a=_.TH.apply(0,arguments);return a?a.join(","):"key"};var bv_=function(a,W){gD.call(this,a,3,W)};
_.c(bv_,gD);bv_.prototype.JSC$7633_incrementCounterBy=function(a){var W=_.TH.apply(1,arguments),w=0,Z=this.getCell(W);Z&&(w=Z.cellValue);this.JSC$7630_setCell(w+a,W)};var sJ$=function(a,W){gD.call(this,a,2,W)};
_.c(sJ$,gD);sJ$.prototype.record=function(a){this.addCell(a,_.TH.apply(1,arguments))};_.ok=function(a){this.id=a};
_.ok.prototype.toString=function(){return this.id};_.kO=function(a,W){this.type=a instanceof _.ok?String(a):a;this.currentTarget=this.target=W;this.defaultPrevented=this.propagationStopped_=!1};
_.kO.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.kO.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Ul=function(a,W){_.kO.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,W)};
_.NT(_.Ul,_.kO);
_.Ul.prototype.init=function(a,W){var w=this.type=a.type,Z=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=W;W=a.relatedTarget;W||(w=="mouseover"?W=a.fromElement:w=="mouseout"&&(W=a.toElement));this.relatedTarget=W;Z?(this.clientX=Z.clientX!==void 0?Z.clientX:Z.pageX,this.clientY=Z.clientY!==void 0?Z.clientY:Z.pageY,this.screenX=Z.screenX||0,this.screenY=Z.screenY||0):(this.offsetX=_.Pz||a.offsetX!==void 0?a.offsetX:a.layerX,
this.offsetY=_.Pz||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||(w=="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&&_.Ul.superClass_.preventDefault.call(this)};
_.Ul.prototype.stopPropagation=function(){_.Ul.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Ul.prototype.preventDefault=function(){_.Ul.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};var ur_="closure_listenable_"+(Math.random()*1E6|0),Ol=function(a){return!(!a||!a[ur_])};var Cq$=0;var GH6=function(a,W,w,Z,N){this.listener=a;this.proxy=null;this.src=W;this.type=w;this.capture=!!Z;this.handler=N;this.key=++Cq$;this.removed=this.callOnce=!1},D_R=function(a){a.removed=!0;
a.listener=null;a.proxy=null;a.src=null;a.handler=null};NF.prototype.add=function(a,W,w,Z,N){var B=a.toString();a=this.listeners[B];a||(a=this.listeners[B]=[],this.typeCount_++);var I=fPH(a,W,Z,N);I>-1?(W=a[I],w||(W.callOnce=!1)):(W=new GH6(W,this.src,B,!!Z,N),W.callOnce=w,a.push(W));return W};
NF.prototype.remove=function(a,W,w,Z){a=a.toString();if(!(a in this.listeners))return!1;var N=this.listeners[a];W=fPH(N,W,w,Z);return W>-1?(D_R(N[W]),_.mU(N,W),N.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1};
var d_H=function(a,W){var w=W.type;if(!(w in a.listeners))return!1;var Z=_.yF(a.listeners[w],W);Z&&(D_R(W),a.listeners[w].length==0&&(delete a.listeners[w],a.typeCount_--));return Z};
NF.prototype.removeAll=function(a){a=a&&a.toString();var W=0,w;for(w in this.listeners)if(!a||w==a){for(var Z=this.listeners[w],N=0;N<Z.length;N++)++W,D_R(Z[N]);delete this.listeners[w];this.typeCount_--}return W};
NF.prototype.getListener=function(a,W,w,Z){a=this.listeners[a.toString()];var N=-1;a&&(N=fPH(a,W,w,Z));return N>-1?a[N]:null};
NF.prototype.hasListener=function(a,W){var w=a!==void 0,Z=w?a.toString():"",N=W!==void 0;return _.T5.some(this.listeners,function(B){for(var I=0;I<B.length;++I)if(!(w&&B[I].type!=Z||N&&B[I].capture!=W))return!0;return!1})};
var fPH=function(a,W,w,Z){for(var N=0;N<a.length;++N){var B=a[N];if(!B.removed&&B.listener==W&&B.capture==!!w&&B.handler==Z)return N}return-1};var m_L,VB_,zwH,yYE,EfR,lx,Id,wbJ,aYA,Wil,SX,Z8E,HvE;m_L="closure_lm_"+(Math.random()*1E6|0);VB_={};zwH=0;_.vX=function(a,W,w,Z,N){if(Z&&Z.once)return lx(a,W,w,Z,N);if(Array.isArray(W)){for(var B=0;B<W.length;B++)_.vX(a,W[B],w,Z,N);return null}w=HvE(w);return Ol(a)?a.listen(W,w,_.tL(Z)?!!Z.capture:!!Z,N):yYE(a,W,w,!1,Z,N)};
yYE=function(a,W,w,Z,N,B){if(!W)throw Error("za");var I=_.tL(N)?!!N.capture:!!N,X=SX(a);X||(a[m_L]=X=new NF(a));w=X.add(W,w,Z,I,B);if(w.proxy)return w;Z=EfR();w.proxy=Z;Z.src=a;Z.listener=w;if(a.addEventListener)_.BEh||(N=I),N===void 0&&(N=!1),a.addEventListener(W.toString(),Z,N);else if(a.attachEvent)a.attachEvent(aYA(W.toString()),Z);else if(a.addListener&&a.removeListener)a.addListener(Z);else throw Error("Aa");zwH++;return w};
EfR=function(){var a=Wil,W=function(w){return a.call(W.src,W.listener,w)};
return W};
lx=function(a,W,w,Z,N){if(Array.isArray(W)){for(var B=0;B<W.length;B++)lx(a,W[B],w,Z,N);return null}w=HvE(w);return Ol(a)?a.listenOnce(W,w,_.tL(Z)?!!Z.capture:!!Z,N):yYE(a,W,w,!0,Z,N)};
_.YO=function(a,W,w,Z,N){if(Array.isArray(W))for(var B=0;B<W.length;B++)_.YO(a,W[B],w,Z,N);else Z=_.tL(Z)?!!Z.capture:!!Z,w=HvE(w),Ol(a)?a.unlisten(W,w,Z,N):a&&(a=SX(a))&&(W=a.getListener(W,w,Z,N))&&Id(W)};
Id=function(a){if(typeof a==="number"||!a||a.removed)return!1;var W=a.src;if(Ol(W))return d_H(W.eventTargetListeners_,a);var w=a.type,Z=a.proxy;W.removeEventListener?W.removeEventListener(w,Z,a.capture):W.detachEvent?W.detachEvent(aYA(w),Z):W.addListener&&W.removeListener&&W.removeListener(Z);zwH--;(w=SX(W))?(d_H(w,a),w.typeCount_==0&&(w.src=null,W[m_L]=null)):D_R(a);return!0};
wbJ=function(a,W,w,Z,N){w=HvE(w);Z=!!Z;return Ol(a)?a.getListener(W,w,Z,N):a?(a=SX(a))?a.getListener(W,w,Z,N):null:null};
aYA=function(a){return a in VB_?VB_[a]:VB_[a]="on"+a};
Wil=function(a,W){if(a.removed)a=!0;else{W=new _.Ul(W,this);var w=a.listener,Z=a.handler||a.src;a.callOnce&&Id(a);a=w.call(Z,W)}return a};
SX=function(a){a=a[m_L];return a instanceof NF?a:null};
Z8E="__closure_events_fn_"+(Math.random()*1E9>>>0);HvE=function(a){if(typeof a==="function")return a;a[Z8E]||(a[Z8E]=function(W){return a.handleEvent(W)});
return a[Z8E]};_.Ti=function(){_.OW.call(this);this.eventTargetListeners_=new NF(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.NT(_.Ti,_.OW);_.Ti.prototype[ur_]=!0;_.t=_.Ti.prototype;_.t.setParentEventTarget=function(a){this.parentEventTarget_=a};
_.t.addEventListener=function(a,W,w,Z){_.vX(this,a,W,w,Z)};
_.t.removeEventListener=function(a,W,w,Z){_.YO(this,a,W,w,Z)};
_.t.dispatchEvent=function(a){var W,w=this.parentEventTarget_;if(w)for(W=[];w;w=w.parentEventTarget_)W.push(w);w=this.actualEventTarget_;var Z=a.type||a;if(typeof a==="string")a=new _.kO(a,w);else if(a instanceof _.kO)a.target=a.target||w;else{var N=a;a=new _.kO(Z,w);_.T5.extend(a,N)}N=!0;var B;if(W)for(B=W.length-1;!a.propagationStopped_&&B>=0;B--){var I=a.currentTarget=W[B];N=Nbh(I,Z,!0,a)&&N}a.propagationStopped_||(I=a.currentTarget=w,N=Nbh(I,Z,!0,a)&&N,a.propagationStopped_||(N=Nbh(I,Z,!1,a)&&
N));if(W)for(B=0;!a.propagationStopped_&&B<W.length;B++)I=a.currentTarget=W[B],N=Nbh(I,Z,!1,a)&&N;return N};
_.t.disposeInternal=function(){_.Ti.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.t.listen=function(a,W,w,Z){return this.eventTargetListeners_.add(String(a),W,!1,w,Z)};
_.t.listenOnce=function(a,W,w,Z){return this.eventTargetListeners_.add(String(a),W,!0,w,Z)};
_.t.unlisten=function(a,W,w,Z){return this.eventTargetListeners_.remove(String(a),W,w,Z)};
_.t.removeAllListeners=function(a){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(a):0};
var Nbh=function(a,W,w,Z){W=a.eventTargetListeners_.listeners[String(W)];if(!W)return!0;W=W.concat();for(var N=!0,B=0;B<W.length;++B){var I=W[B];if(I&&!I.removed&&I.capture==w){var X=I.listener,v=I.handler||I.src;I.callOnce&&d_H(a.eventTargetListeners_,I);N=X.call(v,Z)!==!1&&N}}return N&&!Z.defaultPrevented};
_.Ti.prototype.getListener=function(a,W,w,Z){return this.eventTargetListeners_.getListener(String(a),W,w,Z)};
_.Ti.prototype.hasListener=function(a,W){return this.eventTargetListeners_.hasListener(a!==void 0?String(a):void 0,W)};var Kk=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var tnT=function(a,W){this.create_=a;this.reset_=W;this.occupants_=0;this.JSC$7665_head_=null};
tnT.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var a=this.JSC$7665_head_;this.JSC$7665_head_=a.next;a.next=null}else a=this.create_();return a};
tnT.prototype.put=function(a){this.reset_(a);this.occupants_<100&&(this.occupants_++,a.next=this.JSC$7665_head_,this.JSC$7665_head_=a)};var $Ol=function(){this.workTail_=this.workHead_=null};
$Ol.prototype.add=function(a,W){var w=yKC.get();w.set(a,W);this.workTail_?this.workTail_.next=w:this.workHead_=w;this.workTail_=w};
$Ol.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 yKC=new tnT(function(){return new Bb$},function(a){return a.reset()}),Bb$=function(){this.next=this.scope=this.fn=null};
Bb$.prototype.set=function(a,W){this.fn=a;this.scope=W;this.next=null};
Bb$.prototype.reset=function(){this.next=this.scope=this.fn=null};var lY$,E37,HrF,IYL;E37=!1;HrF=new $Ol;_.pk=function(a,W){lY$||IYL();E37||(lY$(),E37=!0);HrF.add(a,W)};
IYL=function(){var a=Promise.resolve(void 0);lY$=function(){a.then(aTI)}};var PbV=function(a){a.prototype.$goog_Thenable=!0},Xb$=function(a){if(!a)return!1;
try{return!!a.$goog_Thenable}catch(W){return!1}};var v8l,g8V,o8A,UOL,O8H,SKe,pbH,hsR,n8R,cqA,$ux;_.PZ=function(a,W){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=_.S5)try{var w=this;a.call(W,function(Z){w.resolve_(2,Z)},function(Z){w.resolve_(3,Z)})}catch(Z){this.resolve_(3,Z)}};
v8l=function(){this.next=this.context=this.JSC$7676_onRejected=this.JSC$7676_onFulfilled=this.child=null;this.always=!1};
v8l.prototype.reset=function(){this.context=this.JSC$7676_onRejected=this.JSC$7676_onFulfilled=this.child=null;this.always=!1};
g8V=new tnT(function(){return new v8l},function(a){a.reset()});
o8A=function(a,W,w){var Z=g8V.get();Z.JSC$7676_onFulfilled=a;Z.JSC$7676_onRejected=W;Z.context=w;return Z};
_.tk=function(a){if(a instanceof _.PZ)return a;var W=new _.PZ(_.S5);W.resolve_(2,a);return W};
_.od=function(a){return new _.PZ(function(W,w){w(a)})};
UOL=function(a,W,w){k2R(a,W,w,null)||_.pk(_.v_(W,a))};
_.rD=function(a){return new _.PZ(function(W,w){var Z=a.length,N=[];if(Z)for(var B=function(U,O){Z--;N[U]=O;Z==0&&W(N)},I=function(U){w(U)},X,v=0;v<a.length;v++)X=a[v],UOL(X,_.v_(B,v),I);
else W(N)})};
O8H=function(a){return new _.PZ(function(W){var w=a.length,Z=[];if(w)for(var N=function(X,v,U){w--;Z[X]=v?{fulfilled:!0,value:U}:{fulfilled:!1,reason:U};w==0&&W(Z)},B,I=0;I<a.length;I++)B=a[I],UOL(B,_.v_(N,I,!0),_.v_(N,I,!1));
else W(Z)})};
SKe=function(a){return new _.PZ(function(W,w){var Z=a.length,N=[];if(Z)for(var B=function(U){W(U)},I=function(U,O){Z--;
N[U]=O;Z==0&&w(N)},X,v=0;v<a.length;v++)X=a[v],UOL(X,B,_.v_(I,v));
else W(void 0)})};
_.Rt=function(){var a,W,w=new _.PZ(function(Z,N){a=Z;W=N});
return new YK_(w,a,W)};
_.PZ.prototype.then=function(a,W,w){return Tby(this,Kk(typeof a==="function"?a:null),Kk(typeof W==="function"?W:null),w)};
PbV(_.PZ);pbH=function(a,W,w,Z){Ki_(a,o8A(W||_.S5,w||null,Z))};
_.Ad=function(a,W){W=Kk(W);W=o8A(W,W);W.always=!0;Ki_(a,W);return a};
_.PZ.prototype.finally=function(a){var W=this;a=Kk(a);return new Promise(function(w,Z){pbH(W,function(N){a();w(N)},function(N){a();
Z(N)})})};
_.PZ.prototype.thenCatch=function(a,W){return Tby(this,null,Kk(a),W)};
_.PZ.prototype.catch=_.PZ.prototype.thenCatch;_.PZ.prototype.cancel=function(a){if(this.state_==0){var W=new _.V0(a);_.pk(function(){rql(this,W)},this)}};
var rql=function(a,W){if(a.state_==0)if(a.parent_){var w=a.parent_;if(w.callbackEntries_){for(var Z=0,N=null,B=null,I=w.callbackEntries_;I&&(I.always||(Z++,I.child==a&&(N=I),!(N&&Z>1)));I=I.next)N||(B=I);N&&(w.state_==0&&Z==1?rql(w,W):(B?(Z=B,Z.next==w.callbackEntriesTail_&&(w.callbackEntriesTail_=Z),Z.next=Z.next.next):AqE(w),hsR(w,N,3,W)))}a.parent_=null}else a.resolve_(3,W)},Ki_=function(a,W){a.callbackEntries_||a.state_!=2&&a.state_!=3||i8V(a);
a.callbackEntriesTail_?a.callbackEntriesTail_.next=W:a.callbackEntries_=W;a.callbackEntriesTail_=W},Tby=function(a,W,w,Z){var N=o8A(null,null,null);
N.child=new _.PZ(function(B,I){N.JSC$7676_onFulfilled=W?function(X){try{var v=W.call(Z,X);B(v)}catch(U){I(U)}}:B;
N.JSC$7676_onRejected=w?function(X){try{var v=w.call(Z,X);v===void 0&&X instanceof _.V0?I(X):B(v)}catch(U){I(U)}}:I});
N.child.parent_=a;Ki_(a,N);return N.child};
_.PZ.prototype.unblockAndFulfill_=function(a){this.state_=0;this.resolve_(2,a)};
_.PZ.prototype.unblockAndReject_=function(a){this.state_=0;this.resolve_(3,a)};
_.PZ.prototype.resolve_=function(a,W){this.state_==0&&(this===W&&(a=3,W=new TypeError("Ba")),this.state_=1,k2R(W,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=W,this.state_=a,this.parent_=null,i8V(this),a!=3||W instanceof _.V0||cqA(this,W)))};
var k2R=function(a,W,w,Z){if(a instanceof _.PZ)return pbH(a,W,w,Z),!0;if(Xb$(a))return a.then(W,w,Z),!0;if(_.tL(a))try{var N=a.then;if(typeof N==="function")return es_(a,N,W,w,Z),!0}catch(B){return w.call(Z,B),!0}return!1},es_=function(a,W,w,Z,N){var B=!1,I=function(v){B||(B=!0,w.call(N,v))},X=function(v){B||(B=!0,Z.call(N,v))};
try{W.call(a,I,X)}catch(v){X(v)}},i8V=function(a){a.executing_||(a.executing_=!0,_.pk(a.executeCallbacks_,a))},AqE=function(a){var W=null;
a.callbackEntries_&&(W=a.callbackEntries_,a.callbackEntries_=W.next,W.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return W};
_.PZ.prototype.executeCallbacks_=function(){for(var a;a=AqE(this);)hsR(this,a,this.state_,this.result_);this.executing_=!1};
hsR=function(a,W,w,Z){if(w==3&&W.JSC$7676_onRejected&&!W.always)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(W.child)W.child.parent_=null,n8R(W,w,Z);else try{W.always?W.JSC$7676_onFulfilled.call(W.context):n8R(W,w,Z)}catch(N){$ux.call(null,N)}g8V.put(W)};
n8R=function(a,W,w){W==2?a.JSC$7676_onFulfilled.call(a.context,w):a.JSC$7676_onRejected&&a.JSC$7676_onRejected.call(a.context,w)};
cqA=function(a,W){a.hadUnhandledRejection_=!0;_.pk(function(){a.hadUnhandledRejection_&&$ux.call(null,W)})};
$ux=$I;_.V0=function(a){_.Wv.call(this,a)};
_.NT(_.V0,_.Wv);_.V0.prototype.name="cancel";var YK_=function(a,W,w){this.promise=a;this.resolve=W;this.reject=w};var hd;_.Ef=function(a,W){_.Ti.call(this);this.JSC$7688_interval_=a||1;this.timerObject_=W||_.NH;this.boundTick_=(0,_.Sk)(this.tick_,this);this.last_=_.ZL()};
_.NT(_.Ef,_.Ti);_.t=_.Ef.prototype;_.t.enabled=!1;_.t.JSC$7690_timer_=null;_.t.setInterval=function(a){this.JSC$7688_interval_=a;this.JSC$7690_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7690_timer_&&this.stop()};
_.t.tick_=function(){if(this.enabled){var a=_.ZL()-this.last_;a>0&&a<this.JSC$7688_interval_*.8?this.JSC$7690_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7688_interval_-a):(this.JSC$7690_timer_&&(this.timerObject_.clearTimeout(this.JSC$7690_timer_),this.JSC$7690_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.t.start=function(){this.enabled=!0;this.JSC$7690_timer_||(this.JSC$7690_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7688_interval_),this.last_=_.ZL())};
_.t.stop=function(){this.enabled=!1;this.JSC$7690_timer_&&(this.timerObject_.clearTimeout(this.JSC$7690_timer_),this.JSC$7690_timer_=null)};
_.t.disposeInternal=function(){_.Ef.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
hd=function(a,W,w){if(typeof a==="function")w&&(a=(0,_.Sk)(a,w));else if(a&&typeof a.handleEvent=="function")a=(0,_.Sk)(a.handleEvent,a);else throw Error("Ca");return Number(W)>2147483647?-1:_.NH.setTimeout(a,W||0)};
_.jnT=function(a){var W=null;return(new _.PZ(function(w,Z){W=hd(function(){w(void 0)},a);
W==-1&&Z(Error("Da"))})).thenCatch(function(w){_.NH.clearTimeout(W);
throw w;})};var BM=function(a){_.OW.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$7694_flushTimer=new _.Ef(this.flushInterval);this.JSC$7694_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.$3(this,this.JSC$7694_flushTimer)};
_.c(BM,_.OW);BM.prototype.sendIsolatedPayload=function(a){this.shouldSendIsolatedPayload=a;this.invocationLimit=1};
var LiV=function(a){a.JSC$7694_flushTimer.enabled||a.JSC$7694_flushTimer.start();a.invocationCount++;a.invocationCount>=a.invocationLimit&&a.snapshotAndFlush()};
BM.prototype.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(_.K8(a)).filter(function(W){return W.cellMap.size});
a.length&&this.streamzLogger.flush(a,this.shouldSendIsolatedPayload);Jql(a);this.invocationCount=0;this.JSC$7694_flushTimer.enabled&&this.JSC$7694_flushTimer.stop()};
BM.prototype.addNewCounter=function(a){var W=_.TH.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new bv_(a,W))};
BM.prototype.addNewEventMetric=function(a){var W=_.TH.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new sJ$(a,W))};
var Fi_=function(a,W){return a.disabledMetrics.has(W)?void 0:a.metricMap.get(W)};
BM.prototype.JSC$7694_incrementCounter=function(a){this.JSC$7694_incrementCounterBy(a,1,_.TH.apply(1,arguments))};
BM.prototype.JSC$7694_incrementCounterBy=function(a,W){var w=_.TH.apply(2,arguments),Z=Fi_(this,a);Z&&Z instanceof bv_&&(Z.JSC$7633_incrementCounterBy(W,w),LiV(this))};
BM.prototype.record=function(a,W){var w=_.TH.apply(2,arguments),Z=Fi_(this,a);Z&&Z instanceof sJ$&&(Z.record(W,w),LiV(this))};
var Jql=function(a){for(var W=0;W<a.length;W++)a[W].clear()};_.ig=function(a,W,w){w=w===void 0?{}:w;W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=a;this.metadata=w;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(_.ig,Error);_.ig.prototype.toString=function(){var a="RpcError("+(waU(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};_.Mn$=_.NH.JSON.parse;_.c5=_.NH.JSON.stringify;_.rQ=_.NH.JSON.parse;_.RsA=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 qKR=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Qn$,xOL=function(){};
_.NT(xOL,_.ZaE);xOL.prototype.createInstance=function(){return new XMLHttpRequest};
Qn$=new xOL;_.eX=function(a){_.Ti.call(this);this.headers=new Map;this.JSC$7703_xmlHttpFactory_=a||null;this.JSC$7703_active_=!1;this.JSC$7703_xhr_=null;this.JSC$7703_lastUri_="";this.JSC$7703_lastErrorCode_=0;this.JSC$7703_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7703_timeoutId_=null;this.responseType_="";this.JSC$7703_withCredentials_=!1};
_.NT(_.eX,_.Ti);var b8h=/^https?$/i,sne=["POST","PUT"],udl=[],oOe=function(a,W,w,Z,N,B,I){var X=new _.eX;udl.push(X);W&&X.listen("complete",W);X.listenOnce("ready",X.cleanupSend_);B&&(X.timeoutInterval_=Math.max(0,B));I&&(X.JSC$7703_withCredentials_=I);X.send(a,w,Z,N)};
_.eX.prototype.cleanupSend_=function(){this.dispose();_.yF(udl,this)};
_.eX.prototype.send=function(a,W,w,Z){if(this.JSC$7703_xhr_)throw Error("Ea`"+this.JSC$7703_lastUri_+"`"+a);W=W?W.toUpperCase():"GET";this.JSC$7703_lastUri_=a;this.JSC$7703_lastError_="";this.JSC$7703_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7703_active_=!0;this.JSC$7703_xhr_=this.createXhr();this.JSC$7703_xhr_.onreadystatechange=Kk((0,_.Sk)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7703_xhr_.open(W,String(a),!0),this.inOpen_=!1}catch(I){Cb6(this,I);return}a=w||"";w=new Map(this.headers);
if(Z)if(Object.getPrototypeOf(Z)===Object.prototype)for(var N in Z)w.set(N,Z[N]);else if(typeof Z.keys==="function"&&typeof Z.get==="function"){N=_.l(Z.keys());for(var B=N.next();!B.done;B=N.next())B=B.value,w.set(B,Z.get(B))}else throw Error("Fa`"+String(Z));Z=Array.from(w.keys()).find(function(I){return"content-type"==I.toLowerCase()});
N=_.NH.FormData&&a instanceof _.NH.FormData;!_.f7(sne,W)||Z||N||w.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");W=_.l(w);for(Z=W.next();!Z.done;Z=W.next())w=_.l(Z.value),Z=w.next().value,w=w.next().value,this.JSC$7703_xhr_.setRequestHeader(Z,w);this.responseType_&&(this.JSC$7703_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7703_xhr_&&this.JSC$7703_xhr_.withCredentials!==this.JSC$7703_withCredentials_&&(this.JSC$7703_xhr_.withCredentials=this.JSC$7703_withCredentials_);
try{this.JSC$7703_timeoutId_&&(clearTimeout(this.JSC$7703_timeoutId_),this.JSC$7703_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7703_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7703_xhr_.send(a),this.inSend_=!1}catch(I){Cb6(this,I)}};
_.eX.prototype.createXhr=function(){return this.JSC$7703_xmlHttpFactory_?this.JSC$7703_xmlHttpFactory_.createInstance():Qn$.createInstance()};
_.eX.prototype.timeout_=function(){typeof Yv7!="undefined"&&this.JSC$7703_xhr_&&(this.JSC$7703_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7703_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var Cb6=function(a,W){a.JSC$7703_active_=!1;a.JSC$7703_xhr_&&(a.inAbort_=!0,a.JSC$7703_xhr_.abort(),a.inAbort_=!1);a.JSC$7703_lastError_=W;a.JSC$7703_lastErrorCode_=5;G2E(a);DOy(a)},G2E=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
_.eX.prototype.abort=function(a){this.JSC$7703_xhr_&&this.JSC$7703_active_&&(this.JSC$7703_active_=!1,this.inAbort_=!0,this.JSC$7703_xhr_.abort(),this.inAbort_=!1,this.JSC$7703_lastErrorCode_=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),DOy(this))};
_.eX.prototype.disposeInternal=function(){this.JSC$7703_xhr_&&(this.JSC$7703_active_&&(this.JSC$7703_active_=!1,this.inAbort_=!0,this.JSC$7703_xhr_.abort(),this.inAbort_=!1),DOy(this,!0));_.eX.superClass_.disposeInternal.call(this)};
_.eX.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)fY$(this);else this.onReadyStateChangeEntryPoint_()};
_.eX.prototype.onReadyStateChangeEntryPoint_=function(){fY$(this)};
var fY$=function(a){if(a.JSC$7703_active_&&typeof Yv7!="undefined")if(a.inSend_&&_.nk(a)==4)setTimeout(a.onReadyStateChange_.bind(a),0);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.JSC$7703_active_=!1;try{if(a.isSuccess())a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.JSC$7703_lastErrorCode_=6;try{var W=_.nk(a)>2?a.JSC$7703_xhr_.statusText:""}catch(w){W=""}a.JSC$7703_lastError_=W+" ["+a.getStatus()+"]";G2E(a)}}finally{DOy(a)}}},DOy=function(a,W){if(a.JSC$7703_xhr_){a.JSC$7703_timeoutId_&&
(clearTimeout(a.JSC$7703_timeoutId_),a.JSC$7703_timeoutId_=null);
var w=a.JSC$7703_xhr_;a.JSC$7703_xhr_=null;W||a.dispatchEvent("ready");try{w.onreadystatechange=null}catch(Z){}}};
_.eX.prototype.isActive=function(){return!!this.JSC$7703_xhr_};
_.eX.prototype.isComplete=function(){return _.nk(this)==4};
_.eX.prototype.isSuccess=function(){var a=this.getStatus(),W;if(!(W=qKR(a))){if(a=a===0)a=a2R(String(this.JSC$7703_lastUri_)),a=!b8h.test(a);W=a}return W};
_.nk=function(a){return a.JSC$7703_xhr_?a.JSC$7703_xhr_.readyState:0};
_.t=_.eX.prototype;_.t.getStatus=function(){try{return _.nk(this)>2?this.JSC$7703_xhr_.status:-1}catch(a){return-1}};
_.t.getResponseText=function(){try{return this.JSC$7703_xhr_?this.JSC$7703_xhr_.responseText:""}catch(a){return""}};
_.t.getResponse=function(){try{if(!this.JSC$7703_xhr_)return null;if("response"in this.JSC$7703_xhr_)return this.JSC$7703_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7703_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7703_xhr_)return this.JSC$7703_xhr_.mozResponseArrayBuffer}return null}catch(a){return null}};
_.t.getAllResponseHeaders=function(){return this.JSC$7703_xhr_&&_.nk(this)>=2?this.JSC$7703_xhr_.getAllResponseHeaders()||"":""};
_.t.getLastError=function(){return typeof this.JSC$7703_lastError_==="string"?this.JSC$7703_lastError_:String(this.JSC$7703_lastError_)};var UkE=function(){};
UkE.prototype.send=function(a,W,w){W=W===void 0?function(){}:W;
w=w===void 0?function(){}:w;
oOe(a.url,function(Z){Z=Z.target;Z.isSuccess()?W(Z.getResponseText()):w(Z.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};
UkE.prototype.getTransmissionType=function(){return 1};var dO_=function(a,W){this.logger=a;this.event=W;this.startTime=lJ()};
dO_.prototype.done=function(){this.logger.lv(this.event,lJ()-this.startTime)};
var jX=function(){N5.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.c(jX,N5);var Lk=function(a,W,w){var Z=lJ();W=W();a.lv(w,lJ()-Z);return W},pae=function(){jX.apply(this,arguments)};
_.c(pae,jX);_.t=pae.prototype;_.t.izy=function(){};
_.t.jo=function(){};
_.t.lv=function(){};
_.t.logError=function(){};
_.t.iW=function(){};
_.t.dby=function(){};
_.t.nWs=function(){};
_.t.zZu=function(){};
_.t.n8s=function(){};
var mO6=function(a){jX.call(this);var W=this;this.logger=a;this.TEST_ONLY={bkr:function(){return W.logger},
getExperimentIds:function(){return W.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void W.logger.dispose()})};
_.c(mO6,jX);_.t=mO6.prototype;_.t.update=function(a){this.logger.dispose();this.logger=a};
_.t.jo=function(a){this.logger.jo(a)};
_.t.lv=function(a,W){this.logger.lv(a,W)};
_.t.logError=function(a){this.logger.logError(a)};
_.t.iW=function(){this.logger.iW()};
_.t.dby=function(a){this.logger.dby(a)};
_.t.nWs=function(a){this.logger.nWs(a)};
_.t.zZu=function(a){this.logger.zZu(a)};
_.t.n8s=function(a){this.logger.n8s(a)};
_.t.izy=function(a){this.logger.izy(a)};
var Vny=function(a,W){_.OW.call(this);var w=this;this.callback=a;this.vda=W;this.wyK=-W;this.addOnDisposeCallback(function(){return void clearTimeout(w.timer)})};
_.c(Vny,_.OW);var zsE=function(a){if(a.timer===void 0){var W=Math.max(0,a.wyK+a.vda-lJ());a.timer=setTimeout(function(){try{a.callback()}finally{a.wyK=lJ(),a.timer=void 0}},W)}},H8T=function(a,W){jX.call(this);
this.metrics=a;this.zu=W};
_.c(H8T,jX);_.t=H8T.prototype;_.t.izy=function(a){this.metrics.e6k.record(a,this.zu)};
_.t.jo=function(a){this.metrics.eventCount.increment(a,this.zu)};
_.t.lv=function(a,W){this.metrics.cb1.record(W,a,this.zu)};
_.t.logError=function(a){this.metrics.errorCount.increment(a,this.zu)};
_.t.dby=function(a){this.metrics.kdi.increment(a,this.zu)};
_.t.nWs=function(a){this.metrics.m8e.increment(a,this.zu)};
_.t.zZu=function(a){this.metrics.bKV.increment(a,this.zu)};
var suC=function(a,W){W=W===void 0?[]:W;var w={zu:a.zu||"_",bqS:a.bqS||[],lFu:a.lFu|0,destinationUrl:a.destinationUrl,ous:a.ous||function(){},
dO:a.dO||function(B,I){return K$F(B,I,w.ous,w.destinationUrl)}},Z=w.dO("49",w.bqS.concat(W));
H8T.call(this,v1U(Z),w.zu);var N=this;this.TEST_ONLY={getExperimentIds:function(){return N.options.bqS.concat(N.w1o).sort(function(B,I){return B-I})}};
this.options=w;this.service=Z;this.i5K=!a.dO;this.flushDebouncer=new Vny(function(){return void N.service.snapshotAndFlush()},w.lFu);
this.addOnDisposeCallback(function(){N.flushDebouncer.dispose();N.i5K&&N.service.dispose()});
(this.w1o=W.slice()).sort(_.X$)};
_.c(suC,H8T);suC.prototype.n8s=function(a){var W=this;a=a.slice();a.sort(_.X$);_.gT(a,this.w1o)||(this.flushDebouncer.dispose(),this.i5K&&this.service.dispose(),this.service=this.options.dO("49",this.options.bqS.concat(a)),this.flushDebouncer=new Vny(function(){return void W.service.snapshotAndFlush()},this.options.lFu),this.metrics=v1U(this.service),this.w1o=a)};
suC.prototype.iW=function(){zsE(this.flushDebouncer)};var d08=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(d08,_.QH);_.m0e=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(_.m0e,_.QH);var Ea=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a,0,Ea.messageId)};
_.c(Ea,_.QH);var yqE=_.w9F(Ea);Ea.messageId="bfkj";var bre=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(bre,_.QH);var E8h=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(E8h,_.QH);var aZA=_.WP(E8h);_.wi=function(){var a=this;this.promise=new Promise(function(W,w){a.resolve=W;a.reject=w})};_.Jd=function(a){_.OW.call(this);var W=this;this.kHy=Math.floor(Math.random()*200);this.t2M=new E8h;if("challenge"in a&&yqE(a.challenge)){var w=_.Lo(a.challenge,4,void 0,f6);var Z=_.Lo(a.challenge,5,void 0,f6);_.Lo(a.challenge,7,void 0,f6)&&(this.t2M=aZA(_.Lo(a.challenge,7,void 0,f6)))}else w=a.program,Z=a.globalName;this.addOnDisposeCallback(function(){var h,L,F;return _.P(function(x){if(x.nextAddress==1)return _.g(x,W.tbP,2);h=x.yieldResult;L=h.dqv;(F=L)==null||F();_.Xd(x)})});
this.logger=uTm(a.fn||{},this.t2M,a.ntp);_.$3(this,this.logger);var N=new _.wi;this.tbP=N.promise;this.logger.jo("t");var B=this.logger.share(),I=new dO_(B,"t"),X=function(h,L,F,x){if(!W.logger.isDisposed()){var G="k";L?G="h":F&&(G="u");G!=="k"?x!==0&&(W.logger.jo(G),W.logger.lv(G,h)):W.kHy<=0?(W.logger.jo(G),W.logger.lv(G,h),W.kHy=Math.floor(Math.random()*200)):W.kHy--}},v=function(h,L,F,x){Promise.resolve().then(function(){I.done();
B.iW();B.dispose();N.resolve({xnb:h,dqv:L,uzj:F,doa:x})})};
if(!_.NH[Z])throw this.logger.logError(25),Error("Ga");if(!_.NH[Z].a)throw this.logger.logError(26),Error("Ha");try{var U=_.NH[Z].a;Z=[];for(var O=[],S=s$I(this.t2M),T=0;T<S.length;T++)Z.push(S[T]),O.push(1);var p=uhx(this.t2M);for(S=0;S<p.length;S++)Z.push(p[S]),O.push(2);this.b9P=_.l(U(w,v,!0,a.vn2,X,[Z,O],_.Lo(this.t2M,5))).next().value;this.tWb=N.promise.then(function(){})}catch(h){throw this.logger.logError(28),h;
}};
_.c(_.Jd,_.OW);_.Jd.prototype.snapshot=function(a){if(this.isDisposed())throw Error("Ia");this.logger.jo("n");var W=this.logger.share();return this.tbP.then(function(w){var Z=w.xnb;return new Promise(function(N){var B=new dO_(W,"n");Z(function(I){B.done();W.izy(I.length);W.iW();W.dispose();N(I)},[a.jm,
a.aZy,a.fij,a.puE])})})};
_.Wk6=function(a,W){if(a.isDisposed())throw Error("Ia");a.logger.jo("n");var w=Lk(a.logger,function(){return a.b9P([W.jm,W.aZy,W.fij,W.puE])},"n");
a.logger.izy(w.length);a.logger.iW();return w};
_.Jd.prototype.tfd=function(a){this.tbP.then(function(W){var w;(w=W.uzj)==null||w(a)})};
_.Jd.prototype.xfy=function(a,W){return this.tbP.then(function(w){var Z;return(Z=w.doa)==null?void 0:Z(a,W,!1)})};
_.Jd.prototype.psy=function(){return this.logger.share()};var whV=function(){this.b19={};this.dqA=null},ZYe=function(){whV.instance||(whV.instance=new whV);
return whV.instance},t3e=function(a,W){return N3e(a,_.Hi(W,d08,1,f6),_.Hi(W,_.m0e,2,f6),_.Lo(W,3,void 0,f6))},N3e=function(a,W,w,Z){if(!W&&!w)return Promise.resolve();
if(!Z)return fT7(W,w);var N;(N=a.b19)[Z]||(N[Z]=new Promise(function(B,I){fT7(W,w).then(function(){a.dqA=Z;B()},function(X){delete a.b19[Z];
I(X)})}));
return a.b19[Z]};var $qV=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c($qV,_.QH);var B3A=function(a,W){return _.aI(a,1,W)},lZL=function(a,W){return _.aI(a,2,W)};var Fw=function(a){_.OW.call(this);var W=this;this.options=a;this.uv5=new _.wi;this.tWb=this.uv5.promise;this.lGb=new _.wi;this.lBS=1;this.kxM=new _.wi;this.x6b=[];this.jgM=a.jgM||function(){};
this.logger=new mO6(uTm(a.fn||{}));IZh(this,a.xL,a.ahf,a.m5k,a.fGE,Object.assign({},PfR,a.edy||{}));this.addOnDisposeCallback(function(){return void XhJ(W)})};
_.c(Fw,_.OW);Fw.prototype.snapshot=function(a){var W=this;return _.P(function(w){switch(w.nextAddress){case 1:if(W.isDisposed())throw Error("Ia");if(W.qF||W.z66){w.jumpTo(2);break}return _.g(w,W.lGb.promise,2);case 2:if(!W.qF){w.jumpTo(4);break}return _.g(w,W.qF.snapshot(a),5);case 5:return w.return(w.yieldResult);case 4:throw W.z66;}})};
var vgR=function(a){var W;return _.P(function(w){if(a.isDisposed())throw Error("Ia");(W=a.cj)!=null&&(W.endTimeMs=0,W.resolver(1));return _.g(w,a.kxM.promise,0)})},XhJ=function(a){a.z66=Error("Ka");
a.lGb.resolve();CJm(a.uv5.promise);a.uv5.reject(Error("Ka"));a.logger.dispose();Promise.all(a.x6b).then(function(){var w;return _.P(function(Z){(w=a.qF)==null||w.dispose();a.qF=void 0;_.Xd(Z)})});
a.x6b=[];var W;(W=a.cj)!=null&&(W.endTimeMs=0,W.resolver(1));CJm(a.kxM.promise);a.kxM.reject(Error("Ka"))};
Fw.prototype.tfd=function(a){var W,w;(W=this.qF)==null||(w=W.tfd)==null||w.call(W,a)};
Fw.prototype.xfy=function(a,W){var w,Z,N;return(N=(w=this.qF)==null?void 0:(Z=w.xfy)==null?void 0:Z.call(w,a,W))!=null?N:Promise.resolve()};
var ggE=function(a,W){var w=a.jgM;a.jgM=function(){w();W()}},ogR=function(a,W){a.isDisposed()||(a.qF=W,a.logger.update(W.psy()),a.lGb.resolve(),a.uv5.resolve(void 0),a.jgM())};
Fw.prototype.handleError=function(a){if(!this.isDisposed()){this.z66=a;this.lGb.resolve();var W,w;(w=(W=this.options).cRa)==null||w.call(W,a)}};
var k5l=function(a,W){W&&(Promise.all(a.x6b).then(function(){return void W.dispose()}),a.x6b=[])},M5=function(a,W){a.lBS=W;
var w,Z;(Z=(w=a.options).aKV)==null||Z.call(w,W)},UqL=function(a){a.isDisposed()||(a.kxM.resolve(),a.kxM=new _.wi)},IZh=function(a,W,w,Z,N,B){Z=Z===void 0?ZYe():Z;
N=N===void 0?Promise.resolve(void 0):N;var I,X,v,U,O,S,T,p,h,L,F,x;_.P(function(G){switch(G.nextAddress){case 1:return _.g(G,0,3);case 3:X=null;if(!I){G.jumpTo(6);break}M5(a,7);_.tq(G,7);return _.g(G,o$(I.snapshot({}),B.bOK,function(){return Promise.resolve("E:CTO")}),9);
case 9:X=G.yieldResult;_.qY(G,6);break;case 7:_.Pb(G),X="E:UCE";case 6:v=void 0,U=I?B.vjE:B.wpD,O=new Zf(U,B.sgE,B.t1W,B.rgW),S=1;case 10:if(!(S<=B.maxAttempts)){G.jumpTo(12);break}if(S===1){G.jumpTo(13);break}M5(a,0);a.cj=new OY_(O.getValue(),B.mqf,B.bp2);return _.g(G,a.cj.promise,14);case 14:T=G.yieldResult,a.cj=void 0,T===1?(S=1,O.reset()):ew6(O);case 13:_.tq(G,15);p=void 0;if(w){p=w;G.jumpTo(17);break}M5(a,5);h=Z.dqA;return _.g(G,o$(STT(W,h,X),B.sWa,function(){return Promise.reject(Error("La"))}),
18);
case 18:p=G.yieldResult;case 17:return M5(a,3),_.g(G,o$(t3e(Z,p),B.xI1,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return M5(a,8),_.g(G,N,20);case 20:return L=new _.Jd({challenge:p,fn:a.options.fn,vn2:a.options.vn2}),_.g(G,o$(L.tWb,B.npP,function(){return Promise.reject(Error("Na"))}),21);
case 21:v=L;G.jumpTo(12);break;case 15:F=_.Pb(G),a.handleError(F),UqL(a);case 11:S++;G.jumpTo(10);break;case 12:if(a.isDisposed()){G.jumpTo(5);break}v&&(w=void 0,k5l(a,I),I=v,ogR(a,v),UqL(a));M5(a,2);a.cj=new OY_(B.jNE,B.mqf,B.bp2);return _.g(G,a.cj.promise,22);case 22:a.cj=void 0;if(a.isDisposed()){G.jumpTo(5);break}G.jumpTo(3);break;case 5:(x=I)==null||x.dispose(),_.Xd(G)}})};
Fw.prototype.psy=function(){return this.logger.share()};
var PfR={jNE:432E5,mqf:3E5,bp2:10,bOK:1E4,sWa:3E4,xI1:3E4,npP:6E4,wpD:1E3,vjE:6E4,sgE:6E5,t1W:.25,rgW:2,maxAttempts:10},OY_=function(a,W,w){var Z=this;this.endTimeMs=Date.now()+a;this.promise=new Promise(function(B){Z.resolver=B});
var N=function(){var B=Z.endTimeMs-Date.now();B<=w?Z.resolver(0):setTimeout(N,Math.min(B,W))};
N()};var YTV,VQv=(YTV=Math.imul)!=null?YTV:function(a,W){return a*W|0},k3=[196,
200,224,18],Rk=function(a,W,w){w=w===void 0?[]:w;this.maxItems=a;this.lZ=W===void 0?0:W;this.tT=w},T3$=function(a){var W=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!W)return new Rk(a);var w=W.split(",");if(w.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Rk(a);W=w.slice(1);W.length===1&&W[0]===""&&(W=[]);w=Number(w[0]);return isNaN(w)||w<0||w>W.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Rk(a)):new Rk(a,w,W)};
Rk.prototype.serialize=function(){return String(this.lZ)+","+this.tT.join()};
Rk.prototype.insert=function(a,W){var w=void 0;if(this.tT[this.lZ]!==a){var Z=this.tT.indexOf(a);Z!==-1?(this.tT.splice(Z,1),Z<this.lZ&&this.lZ--,this.tT.splice(this.lZ,0,a)):(w=this.tT[this.lZ],this.tT[this.lZ]=a)}this.lZ=(this.lZ+1)%this.maxItems;a=dk7("iU5q-!O9@$",this.serialize());w&&a&&W(w);return a};
var KkL=function(a,W){this.logger=W;try{var w=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Z){w=!1}w&&(this.index=T3$(a))},ph6=function(a,W,w,Z,N){var B=a.index?Lk(a.logger,function(){return E1F(a.index,Hae(W),w,Z,N)},"W"):"u";
a.logger.zZu(B)},rv$=function(a,W,w){var Z=_.l(a.index?Lk(a.logger,function(){return a77(Hae(W),w)},"R"):["u"]),N=Z.next().value;
Z=Z.next().value;a.logger.nWs(N);return Z};var Av_={toString:function(a){var W=[],w=0;a-=-2147483648;W[w++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);a>0;)W[w++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return W.join("")}};var cv$=function(a){a=hBJ(a);for(var W=2654435769,w=2654435769,Z=314159265,N=a.length,B=N,I=0,X=function(){W-=w;W-=Z;W^=Z>>>13;w-=Z;w-=W;w^=W<<8;Z-=W;Z-=w;Z^=w>>>13;W-=w;W-=Z;W^=Z>>>12;w-=Z;w-=W;w^=W<<16;Z-=W;Z-=w;Z^=w>>>5;W-=w;W-=Z;W^=Z>>>3;w-=Z;w-=W;w^=W<<10;Z-=W;Z-=w;Z^=w>>>15};B>=12;B-=12,I+=12)W+=iYl(a,I),w+=iYl(a,I+4),Z+=iYl(a,I+8),X();
Z+=N;switch(B){case 11:Z+=a[I+10]<<24;case 10:Z+=a[I+9]<<16;case 9:Z+=a[I+8]<<8;case 8:w+=a[I+7]<<24;case 7:w+=a[I+6]<<16;case 6:w+=a[I+5]<<8;case 5:w+=a[I+4];case 4:W+=a[I+3]<<24;case 3:W+=a[I+2]<<16;case 2:W+=a[I+1]<<8;case 1:W+=a[I]}X();return Av_.toString(Z)},hBJ=function(a){for(var W=[],w=0;w<a.length;w++)W.push(a.charCodeAt(w));
return W},iYl=function(a,W){return a[W]+(a[W+1]<<8)+(a[W+2]<<16)+(a[W+3]<<24)};var eB6,q5=function(a){_.OW.call(this);this.logger=a;this.cBY=new _.wi;this[eB6]=this.dispose};
_.c(q5,_.OW);var ng$=function(a,W){var w=setTimeout(function(){a.cBY.resolve()},W);
a.addOnDisposeCallback(function(){return void clearTimeout(w)})};
q5.prototype.aN=function(a,W){var w=this.mU(a);W==null||W(w);return Lk(this.logger,function(){return _.EI(w,2)},this.mmS)};
var jvH=function(a,W,w,Z){return Lk(a.logger,function(){return w?a.aN(W,Z):a.mU(W,Z)},a.yz)};
eB6=Symbol.dispose;var Lke=function(a,W,w,Z){q5.call(this,a);this.tML=W;this.kYb=w;this.yz="m";this.mmS="x";this.bse=0;ng$(this,Z)};
_.c(Lke,q5);Lke.prototype.mU=function(a,W){var w=this;this.logger.jo(this.yz);++this.bse>=this.kYb&&this.cBY.resolve();var Z=a();a=Lk(this.logger,function(){return w.tML(Z)},"C");
if(a===void 0)throw new wD(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new wD(18,"ODM:Invalid");W==null||W(a);return a};
var Jvl=function(a,W,w){q5.call(this,a);this.rbB=W;this.yz="f";this.mmS="z";ng$(this,w)};
_.c(Jvl,q5);Jvl.prototype.mU=function(){return this.rbB};
var Fk_=function(a,W,w){q5.call(this,a);this.ai2=W;this.yz="w";this.mmS="z";ng$(this,w)};
_.c(Fk_,q5);Fk_.prototype.mU=function(){var a=this;return Lk(this.logger,function(){return _.UR(a.ai2)},"d")};
Fk_.prototype.aN=function(){return this.ai2};
var M3A=function(a,W){q5.call(this,a);this.error=W;this.yz="e";this.mmS="y"};
_.c(M3A,q5);var RBh=function(a,W){var w=(W(a.error.message)+":"+W(a.error.stack)).substring(0,2048);W=w.length+1;w=WBF(w);var Z=new Uint8Array(4+w.length);Z.set([42,W&127|128,W>>7,a.error.code]);Z.set(w,4);return Z};
M3A.prototype.mU=function(){if(this.ksY)return this.ksY;this.ksY=RBh(this,function(a){return"_"+cv$(a)});
return RBh(this,function(a){return a})};
var qTJ=function(a,W,w){q5.call(this,a);this.jle=W;this.clientState=w;this.yz="S";this.mmS="q"};
_.c(qTJ,q5);qTJ.prototype.mU=function(){var a=Math.floor(Date.now()/1E3),W=[Math.random()*255,Math.random()*255],w=W.concat([this.jle&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+w.length);a[0]=34;a[1]=w.length;a.set(w,2);w=a.subarray(2);for(var Z=W=W.length;Z<w.length;++Z)w[Z]^=w[Z%W];this.logger.dby(this.clientState);return a};var QvL={bxN:3E4,jii:2E4},Qc=function(a){_.OW.call(this);var W=this;this.nr7=new _.wi;this.vq8=0;this.r8=void 0;this.state=2;this.kf=a.kf;this.xL=a.xL;this.edy=Object.assign({},QvL,a.edy||{});this.logger=a.kf.psy();var w;this.onError=(w=a.onError)!=null?w:function(){};
this.ikM=a.ikM||!1;if(xqL(a)){var Z=this.kf;this.xsK=function(){return vgR(Z).catch(function(I){I=W.reportError(new wD(W.kt?20:32,"TRG:Disposed",I));W.r8=I;var X;(X=W.kt)==null||X.dispose();W.kt=void 0;W.nr7.reject(I)})};
ggE(Z,function(){return void bYT(W)});
Z.lBS===2&&bYT(this)}else this.xsK=a.d8r,bYT(this);var N=this.logger.share();N.jo("o");var B=new dO_(N,"o");this.nr7.promise.then(function(){B.done();N.iW();N.dispose()},function(){return void N.dispose()});
this.addOnDisposeCallback(function(){W.kt?(W.kt.dispose(),W.kt=void 0):W.r8?W.logger.iW():(W.r8=W.reportError(new wD(32,"TNP:Disposed")),W.logger.iW(),W.nr7.reject(W.r8))});
_.$3(this,this.logger)};
_.c(Qc,_.OW);Qc.prototype.m77=function(){return this.nr7.promise};
var svR=function(a,W){if(!(W instanceof wD))if(W instanceof _.ig){var w=Error(W.toString());w.stack=W.stack;W=new wD(11,"EBH:Error",w)}else W=new wD(12,"BSO:Unknown",W);return a.reportError(W)},bYT=function(a){var W,w,Z,N,B,I,X,v,U,O,S,T,p,h,L;
return _.P(function(F){switch(F.nextAddress){case 1:W=void 0;a.vq8++;w=new _.wi;a.kf instanceof Fw&&a.kf.x6b.push(w.promise);if(!a.ikM){F.jumpTo(2);break}Z=new _.wi;setTimeout(function(){return void Z.resolve()});
return _.g(F,Z.promise,2);case 2:return N=a.logger.share(),_.tq(F,4,5),a.state=5,B={},I=[],_.g(F,o$(a.kf.snapshot({jm:B,fij:I}),a.edy.jii,function(){return Promise.reject(new wD(15,"MDA:Timeout"))}),7);
case 7:X=F.yieldResult;if(a.isDisposed())throw new wD(a.kt?20:32,"MDA:Disposed");v=I[0];a.state=6;return _.g(F,o$(uuh(a.xL,X),a.edy.bxN,function(){return Promise.reject(new wD(10,"BWB:Timeout"))}),8);
case 8:U=F.yieldResult;if(a.isDisposed())throw new wD(a.kt?20:32,"BWB:Disposed");a.state=7;W=Lk(N,function(){var G=CfE(a,U,w,v);G.cBY.promise.then(function(){return void a.xsK()});
return G},"i");
case 5:_.$8(F);N.dispose();_.In(F,6);break;case 4:O=_.Pb(F);(S=W)==null||S.dispose();if(!a.r8){T=svR(a,O);w.resolve();var x;if(x=a.kf instanceof Fw&&a.vq8<2)a:if(O instanceof wD)x=O.code!==32&&O.code!==20&&O.code!==10;else{if(O instanceof _.ig)switch(O.code){case 2:case 13:case 14:case 4:break;default:x=!1;break a}x=!0}if(x)return p=(1+Math.random()*.25)*(a.kt?6E4:1E3),h=setTimeout(function(){return void a.xsK()},p),a.addOnDisposeCallback(function(){return void clearTimeout(h)}),F.return();
a.r8=T}N.logError(a.kt?13:14);a.nr7.reject(a.r8);return F.return();case 6:a.state=8,a.vq8=0,(L=a.kt)==null||L.dispose(),a.kt=W,a.nr7.resolve(),_.Xd(F)}})},CfE=function(a,W,w,Z){var N=R0H(W,2)*1E3;
if(N<=0)throw new wD(31,"TTM:Invalid");if(_.Lo(W,4))return new Fk_(a.logger,_.Lo(W,4),N);if(!R0H(W,3))return new Jvl(a.logger,SES(_.Ko(W,1)),N);if(!Z)throw new wD(4,"PMD:Undefined");Z=Z(SES(_.Ko(W,1)));if(!(Z instanceof Function))throw new wD(16,"APF:Failed");a.uQL=Math.floor((Date.now()+N)/1E3);a=new Lke(a.logger,Z,R0H(W,3),N);a.addOnDisposeCallback(function(){return void w.resolve()});
return a};
Qc.prototype.mU=function(a){return G5$(this,Object.assign({},a),!1)};
Qc.prototype.aN=function(a){return G5$(this,Object.assign({},a),!0)};
Qc.prototype.zFh=function(a){if(a>150)return!1;try{return this.cache=new KkL(a,this.logger),!0}catch(W){return this.reportError(new wD(22,"GBJ:init",W)),!1}};
Qc.prototype.reportError=function(a){this.logger.logError(a.code);this.onError(a);return a};
var Dqe=function(a,W){W=W instanceof wD?W:new wD(5,"TVD:error",W);return a.reportError(W)},G5$=function(a,W,w){try{if(a.isDisposed())throw new wD(21,"BNT:disposed");
if(!a.kt&&a.r8)throw a.r8;var Z,N;return(N=(Z=fZh(a,W,w))!=null?Z:dq6(a,W,w))!=null?N:mqR(a,W,w)}catch(B){if(!W.ycr)throw Dqe(a,B);return V3_(a,w,B)}},fZh=function(a,W,w){var Z;
return(Z=a.kt)==null?void 0:jvH(Z,function(){return zB6(a,W)},w,function(N){var B;
if(a.kt instanceof Lke&&((B=W.f7)==null?0:B.hrf))try{var I;(I=a.cache)==null||ph6(I,zB6(a,W),N,W.f7.h85,a.uQL-120)}catch(X){a.reportError(new wD(24,"ELX:write",X))}})},dq6=function(a,W,w){var Z;
if((Z=W.f7)!=null&&Z.rgc)try{var N,B=(N=a.cache)==null?void 0:rv$(N,zB6(a,W),W.f7.h85);return B?w?Lk(a.logger,function(){return _.EI(B,2)},"a"):B:void 0}catch(I){a.reportError(new wD(23,"RXO:read",I))}},mqR=function(a,W,w){var Z={stack:[],
error:void 0,hasError:!1};try{if(!W.azX)throw new wD(29,"SDF:notready");return jvH(ARe(Z,new qTJ(a.logger,0,a.state)),function(){return zB6(a,W)},w)}catch(N){Z.error=N,Z.hasError=!0}finally{efm(Z)}},V3_=function(a,W,w){var Z={stack:[],
error:void 0,hasError:!1};try{var N=Dqe(a,w);return jvH(ARe(Z,new M3A(a.logger,N)),function(){return[]},W)}catch(B){Z.error=B,Z.hasError=!0}finally{efm(Z)}},zB6=function(a,W){return W.pxd?W.pxd:W.jm?Lk(a.logger,function(){return W.pxd=WBF(W.jm)},"c"):[]},xqL=function(a){return V_(function(W){if(!zO(W))return!1;
for(var w=_.l(Object.entries(a)),Z=w.next();!Z.done;Z=w.next()){var N=_.l(Z.value);Z=N.next().value;N=N.next().value;if(!(Z in W)){if(N.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!N(W[Z]))return!1}return!0})}({kf:function(a){return V_(function(W){return W instanceof a})}(Fw)},"");var HYA=function(){var a=_.yb();this.JSC$7818_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",ET("cookie_enabled"),ET("cookie_3p_enabled"),_.WM("browser"))};
HYA.prototype.increment=function(a,W,w){this.JSC$7818_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",a,W,w)};
var ppU=function(){var a=_.yb();this.JSC$7842_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",a$("tick"),ET("from_st_cookie"))};
ppU.prototype.increment=function(a,W){this.JSC$7842_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",a,W)};
var yvJ=function(){var a=_.yb();this.JSC$7848_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.WM("status"))};
yvJ.prototype.increment=function(a){this.JSC$7848_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",a)};
var Egh=function(){var a=_.yb();this.JSC$7851_streamzService=a;a.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.WM("stage"),ET("is_using_ytd_player"),ET("has_expandable_tiles"))};
Egh.prototype.increment=function(a,W,w){this.JSC$7851_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",a,W,w)};
var af6=function(){var a=_.yb();this.JSC$7854_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/response_signature",_.WM("check_status"))};
af6.prototype.increment=function(a){this.JSC$7854_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web/response_signature",a)};
var WHJ=function(){var a=_.yb();this.JSC$7857_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.WM("sig"),a$("de"))};
WHJ.prototype.increment=function(a,W){this.JSC$7857_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web/e_sig_log",a,W)};
var wMJ=function(){var a=_.yb();this.JSC$7860_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.WM("sig"),a$("de"))};
wMJ.prototype.increment=function(a,W){this.JSC$7860_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web/e_sig_en",a,W)};
_.ZrJ=function(){var a=_.yb();this.JSC$7863_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.WM("action"))};
_.ZrJ.prototype.increment=function(a){this.JSC$7863_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web/enforcement_intent",a)};var EtF=function(){var a=_.yb();this.JSC$7866_streamzService=a;a.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.WM("tagname"))};
EtF.prototype.increment=function(a){this.JSC$7866_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",a)};var xO=window;var NhE=(new Date).getTime();var tkE=function(a){this.servicePromise_=a;a.then((0,_.Sk)(function(){},this),function(){},this)},$FR=function(a,W,w){a.servicePromise_.then(function(Z){var N=Z[W];
if(!N)throw Error("Oa`"+W);return N.apply(Z,w)})},IfV=function(a,W,w){for(var Z=Array(arguments.length-2),N=2;N<arguments.length;N++)Z[N-2]=arguments[N];
N=Bh$(a,W).then(function(B){return B.apply(null,Z)},function(B){B=Error("Pa`"+W+"`"+a,{cause:B});
delete lfR[W];return _.od(B)});
return new tkE(N)},lfR={},Bh$=function(a,W){var w=lfR[W];
if(w)return w;w=(w=_.RT(W))?_.tk(w):(new _.PZ(function(Z,N){var B=(new rm(document)).createElement("SCRIPT");B.async=!0;_.Q$(B,_.lq($iA(a)));B.onload=B.onreadystatechange=function(){B.readyState&&B.readyState!="loaded"&&B.readyState!="complete"||Z()};
B.onerror=function(I){N(Error("Qa`"+W+"`"+a,{cause:I}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(B)})).then(function(){var Z=_.RT(W);
if(!Z)throw Error("Ra`"+W+"`"+a);return Z});
return lfR[W]=w};var PJH={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},v3L=function(){var a=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=wS9(function(){return _.P(function(W){if(W.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?W.return(Promise.resolve()):_.g(W,XML(a),2);a.rsaForList.length>
0&&document.addEventListener("click",a.requestAccessForHelpPanel);_.Xd(W)})});
this.requestAccessForHelpPanel=function(){if(!(a.rsaForPromises.length>0)){for(var W=_.l(a.rsaForList),w=W.next();!w.done;w=W.next()){w=w.value;try{a.rsaForPromises.push(document.requestStorageAccessFor(w))}catch(Z){}}Promise.all(a.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){a.reset()})}}};
v3L.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var XML=function(a){var W,w,Z,N;return _.P(function(B){switch(B.nextAddress){case 1:W=_.l(Object.values(PJH)),w=W.next();case 2:if(w.done){B.jumpTo(0);break}Z=w.value;_.tq(B,5);return _.g(B,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:Z}),7);case 7:N=B.yieldResult;N.state!=="granted"&&a.rsaForList.push(Z);_.qY(B,3);break;case 5:_.Pb(B);B.jumpTo(0);break;case 3:w=W.next(),B.jumpTo(2)}})};(new v3L).initialize();var g3V=function(a){this.JSC$7880_loader_=a};
g3V.prototype.startHelp=function(a){$FR(this.JSC$7880_loader_,"startHelp",arguments)};
g3V.prototype.JSC$7882_loadChatSupport=function(a){$FR(this.JSC$7880_loader_,"loadChatSupport",arguments)};
var kOy=function(a,W){W=W||{};a=IfV(o3h,"help.service.Lazy.create",a,{apiKey:W.apiKey||W.apiKey,asxUiUri:W.asxUiUri||W.asxUiUri,environment:W.environment||W.environment,flow:W.flow||W.flow,frdProductData:W.frdProductData||W.frdProductData,frdProductDataSerializedJspb:W.frdProductDataSerializedJspb||W.frdProductDataSerializedJspb,helpCenterPath:W.helpCenterPath||W.helpCenterPath,locale:W.locale||W.locale||"en-US".replace(/-/g,"_"),nonce:W.nonce||W.nonce,productData:W.productData||W.productData,receiverUri:W.receiverUri||
W.receiverUri,renderApiUri:W.renderApiUri||W.renderApiUri,theme:W.theme||W.theme,window:W.window||W.window});return new g3V(a)},o3h=new Jl(jde,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var UF$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(UF$,_.QH);var OrA=_.WP(UF$);new Uint8Array([]);_.SW$=new function(a,W,w,Z){this.configType=a;this.flagName=w;this.defaultValue=Z;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 ThL=function(){this.retriever=_.K().resolve(YWe)};NwF(Node);NwF(Element);var KHJ=NwF(HTMLElement);NwF(SVGElement);var pMA,rKT,ug,AKT;pMA=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""};
rKT=function(a){return a.classList?a.classList:pMA(a).match(/\S+/g)||[]};
_.bg=function(a,W){typeof a.className=="string"?a.className=W:a.setAttribute&&a.setAttribute("class",W)};
_.sl=function(a,W){return a.classList?a.classList.contains(W):_.f7(rKT(a),W)};
_.QD=function(a,W){if(a.classList)a.classList.add(W);else if(!_.sl(a,W)){var w=pMA(a);_.bg(a,w+(w.length>0?" "+W:W))}};
ug=function(a,W){if(a.classList)Array.prototype.forEach.call(W,function(N){_.QD(a,N)});
else{var w={};Array.prototype.forEach.call(rKT(a),function(N){w[N]=!0});
Array.prototype.forEach.call(W,function(N){w[N]=!0});
W="";for(var Z in w)W+=W.length>0?" "+Z:Z;_.bg(a,W)}};
_.Rd=function(a,W){a.classList?a.classList.remove(W):_.sl(a,W)&&_.bg(a,Array.prototype.filter.call(rKT(a),function(w){return w!=W}).join(" "))};
AKT=function(a,W){a.classList?Array.prototype.forEach.call(W,function(w){_.Rd(a,w)}):_.bg(a,Array.prototype.filter.call(rKT(a),function(w){return!_.f7(W,w)}).join(" "))};var hYl=function(a){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=a.document},eYy=function(a,W){irV(a);
var w=document.createElement("div"),Z;(Z=W.parentNode)==null||Z.insertBefore(w,W);w.tabIndex=0;w.id="fc-focus-trap-pre-div";w=document.createElement("div");var N;(N=W.parentNode)==null||N.insertBefore(w,W.nextSibling);w.tabIndex=0;w.id="fc-focus-trap-post-div";var B=cKH(a,W),I=cKH(a,W,!0);B&&I&&(a.focusChangeHandler=function(){var X=a.document.activeElement;if(X)if(_.Lr(W,X))a.previouslyFocusedElement=X;else if(X===a.document.activeElement)switch(a.previouslyFocusedElement){case B:I.focus();a.previouslyFocusedElement=
I;break;default:B.focus(),a.previouslyFocusedElement=B}},a.document.addEventListener("focus",a.focusChangeHandler,!0),a.document.addEventListener("focusin",a.focusChangeHandler))},irV=function(a){a.focusChangeHandler&&(document.removeEventListener("focus",a.focusChangeHandler,!0),document.removeEventListener("focusin",a.focusChangeHandler),a.focusChangeHandler=null);
var W;(W=document.getElementById("fc-focus-trap-pre-div"))==null||W.remove();var w;(w=document.getElementById("fc-focus-trap-post-div"))==null||w.remove()},n3R=function(a,W,w,Z,N){w=w===void 0?!0:w;
var B;N=(B=N===void 0?null:N)!=null?B:cKH(a,W,Z===void 0?!1:Z);N!==null&&(N.focus(),w&&eYy(a,W))};
hYl.prototype.disableButton=function(a,W){W=W===void 0?null:W;a.disabled=!0;W&&_.QD(a,W)};
var cKH=function(a,W,w){w=w===void 0?!1:w;if(VMe(W)&&!w)return W;var Z=w?[].slice.call(W.children,0).reverse():W.children;Z=_.l(Z);for(var N=Z.next();!N.done;N=Z.next())if(N=N.value,KHJ(N)&&(N=cKH(a,N,w)))return N;return VMe(W)&&w?W:null};var j$A=function(a){this.originalBodyOverflow="";this.JSC$7908_domHelper=Ph(a)};_.NT(_.Y3,_.OW);_.t=_.Y3.prototype;_.t.JSC$7911_id_=0;_.t.disposeInternal=function(){_.Y3.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7909_listener_;delete this.handler_};
_.t.start=function(a){this.stop();this.JSC$7911_id_=hd(this.callback_,a!==void 0?a:this.JSC$7909_interval_)};
_.t.stop=function(){this.isActive()&&_.NH.clearTimeout(this.JSC$7911_id_);this.JSC$7911_id_=0};
_.t.fire=function(){this.stop();this.JSC$7911_doAction_()};
_.t.isActive=function(){return this.JSC$7911_id_!=0};
_.t.JSC$7911_doAction_=function(){this.JSC$7911_id_=0;this.JSC$7909_listener_&&this.JSC$7909_listener_.call(this.handler_)};_.am=function(a){_.OW.call(this);this.handler_=a;this.JSC$7912_keys_={}};
_.NT(_.am,_.OW);var LHT=[];_.am.prototype.listen=function(a,W,w,Z){Array.isArray(W)||(W&&(LHT[0]=W.toString()),W=LHT);for(var N=0;N<W.length;N++){var B=_.vX(a,W[N],w||this.handleEvent,Z||!1,this.handler_||this);if(!B)break;this.JSC$7912_keys_[B.key]=B}return this};
_.am.prototype.listenOnce=function(a,W,w,Z){return JK_(this,a,W,w,Z)};
var JK_=function(a,W,w,Z,N,B){if(Array.isArray(w))for(var I=0;I<w.length;I++)JK_(a,W,w[I],Z,N,B);else{W=lx(W,w,Z||a.handleEvent,N,B||a.handler_||a);if(!W)return a;a.JSC$7912_keys_[W.key]=W}return a};
_.am.prototype.unlisten=function(a,W,w,Z,N){if(Array.isArray(W))for(var B=0;B<W.length;B++)this.unlisten(a,W[B],w,Z,N);else if(a=wbJ(a,W,w||this.handleEvent,_.tL(Z)?!!Z.capture:!!Z,N||this.handler_||this))Id(a),delete this.JSC$7912_keys_[a.key];return this};
_.am.prototype.removeAll=function(){_.T5.forEach(this.JSC$7912_keys_,function(a,W){this.JSC$7912_keys_.hasOwnProperty(W)&&Id(a)},this);
this.JSC$7912_keys_={}};
_.am.prototype.disposeInternal=function(){_.am.superClass_.disposeInternal.call(this);this.removeAll()};
_.am.prototype.handleEvent=function(){throw Error("Sa");};var Ck=function(){_.OW.call(this);this.services_={}};
_.NT(Ck,_.OW);_.t=Ck.prototype;_.t.logger=null;_.t.connect=function(a){a&&a()};
_.t.isConnected=function(){return!0};
_.t.registerService=function(a,W,w){this.services_[a]={callback:W,objectPayload:!!w}};
_.t.getService=function(a,W){var w=this.services_[a];return w?w:this.defaultService_?{callback:_.v_(this.defaultService_,a),objectPayload:_.tL(W)}:null};
var FHR=function(a,W){if(W&&typeof a==="string")try{return JSON.parse(a)}catch(w){return null}else if(!W&&typeof a!=="string")return(0,_.c5)(a);return a};
Ck.prototype.disposeInternal=function(){Ck.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 Gi=function(a,W){this.sequence_=[];this.onCancelFunction_=a;this.defaultScope_=W||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};
Gi.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof Gi&&this.result_.cancel();else{if(this.parent_){var W=this.parent_;delete this.parent_;a?W.cancel(a):(W.branches_--,W.branches_<=0&&W.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new DQ(this))}};
Gi.prototype.continue_=function(a,W){this.blocked_=!1;MkH(this,a,W)};
var MkH=function(a,W,w){a.fired_=!0;a.result_=w;a.hadError_=!W;RYR(a)},Q$R=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new qWV(a);
a.silentlyCanceled_=!1}};
Gi.prototype.callback=function(a){Q$R(this);MkH(this,!0,a)};
Gi.prototype.errback=function(a){Q$R(this);MkH(this,!1,a)};
var xFA=function(a,W,w){fk(a,W,null,w)};
Gi.prototype.finally=function(a){var W=this;return new Promise(function(w,Z){fk(W,function(N){a();w(N)},function(N){a();
Z(N)})})};
var fk=function(a,W,w,Z){var N=a.fired_;N||(W===w?W=w=Kk(W):(W=Kk(W),w=Kk(w)));a.sequence_.push([W,w,Z]);N&&RYR(a)};
Gi.prototype.then=function(a,W,w){var Z,N,B=new _.PZ(function(I,X){N=I;Z=X});
fk(this,N,function(I){I instanceof DQ?B.cancel():Z(I);return brH},this);
return B.then(a,W,w)};
PbV(Gi);var s$R=function(a,W){W instanceof Gi?xFA(a,(0,_.Sk)(W.branch,W)):xFA(a,function(){return W})};
Gi.prototype.branch=function(a){var W=new Gi;fk(this,W.callback,W.errback,W);a&&(W.parent_=this,this.branches_++);return W};
Gi.prototype.isError=function(a){return a instanceof Error};
var uh$=function(a){return sx(a.sequence_,function(W){return typeof W[1]==="function"})},brH={},RYR=function(a){if(a.unhandledErrorId_&&a.fired_&&uh$(a)){var W=a.unhandledErrorId_,w=CJL[W];
w&&(_.NH.clearTimeout(w.JSC$7929_id_),delete CJL[W]);a.unhandledErrorId_=0}a.parent_&&(a.parent_.branches_--,delete a.parent_);W=a.result_;for(var Z=w=!1;a.sequence_.length&&!a.blocked_;){var N=a.sequence_.shift(),B=N[0],I=N[1];N=N[2];if(B=a.hadError_?I:B)try{var X=B.call(N||a.defaultScope_,W);X===brH&&(X=void 0);X!==void 0&&(a.hadError_=a.hadError_&&(X==W||a.isError(X)),a.result_=W=X);if(Xb$(W)||typeof _.NH.Promise==="function"&&W instanceof _.NH.Promise)Z=!0,a.blocked_=!0}catch(v){W=v,a.hadError_=
!0,uh$(a)||(w=!0)}}a.result_=W;Z&&(X=(0,_.Sk)(a.continue_,a,!0),Z=(0,_.Sk)(a.continue_,a,!1),W instanceof Gi?(fk(W,X,Z),W.blocking_=!0):W.then(X,Z));w&&(W=new GOh(W),CJL[W.JSC$7929_id_]=W,a.unhandledErrorId_=W.JSC$7929_id_)},qWV=function(){_.Wv.call(this)};
_.NT(qWV,_.Wv);qWV.prototype.message="Deferred has already fired";qWV.prototype.name="AlreadyCalledError";var DQ=function(){_.Wv.call(this)};
_.NT(DQ,_.Wv);DQ.prototype.message="Deferred was canceled";DQ.prototype.name="CanceledError";var GOh=function(a){this.JSC$7929_id_=_.NH.setTimeout((0,_.Sk)(this.throwError,this),0);this.JSC$7929_error_=a};
GOh.prototype.throwError=function(){delete CJL[this.JSC$7929_id_];throw this.JSC$7929_error_;};
var CJL={};var DFA={1:"NativeMessagingTransport"},ffV=["pu","lru","pru","lpu","ppu"],mFT=function(){for(var a=10,W=dF_,w=W.length,Z="";a-- >0;)Z+=W.charAt(Math.floor(Math.random()*w));return Z},dF_="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var dD=function(a){_.OW.call(this);this.JSC$7932_domHelper_=a||Ph()};
_.NT(dD,_.OW);dD.prototype.transportType=0;dD.prototype.getWindow=function(){return this.JSC$7932_domHelper_.getWindow()};
dD.prototype.getName=function(){return DFA[String(this.transportType)]||""};var ms=function(a,W,w,Z,N){dD.call(this,w);this.JSC$7935_channel_=a;this.protocolVersion_=N||2;this.peerHostname_=W||"*";this.JSC$7935_eventHandler_=new _.am(this);this.maybeAttemptToConnectTimer_=new _.Ef(100,this.getWindow());this.oneSidedHandshake_=!!Z;this.setupAckReceived_=new Gi;this.setupAckSent_=new Gi;this.JSC$7935_connected_=new Gi;this.endpointId_=mFT();this.peerEndpointId_=null;this.oneSidedHandshake_?VkR(this.JSC$7935_channel_)==1?s$R(this.JSC$7935_connected_,this.setupAckReceived_):
s$R(this.JSC$7935_connected_,this.setupAckSent_):(s$R(this.JSC$7935_connected_,this.setupAckReceived_),this.protocolVersion_==2&&s$R(this.JSC$7935_connected_,this.setupAckSent_));xFA(this.JSC$7935_connected_,this.notifyConnected_,this);this.JSC$7935_connected_.callback(!0);this.JSC$7935_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.NT(ms,dD);ms.prototype.peerProtocolVersion_=null;ms.prototype.initialized_=!1;ms.prototype.transportType=1;var zYL={};ms.prototype.sendTimerId_=0;
var E36=function(a){var W=a.event_.data;if(typeof W!=="string")return!1;var w=W.indexOf("|"),Z=W.indexOf(":");if(w==-1||Z==-1)return!1;var N=W.substring(0,w);w=W.substring(w+1,Z);W=W.substring(Z+1);if(Z=Vc[N])return Z.xpcDeliver(w,W,a.event_.origin),!0;Z=Hr_(W)[0];for(var B in Vc){var I=Vc[B];if(VkR(I)==1&&!I.isConnected()&&w=="tp"&&(Z=="SETUP"||Z=="SETUP_NTPV2")&&yKe(I,a.event_.origin))return delete Vc[I.name],I.name=N,Vc[N]=I,I.xpcDeliver(w,W),!0}return!1},aTR=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")},W$_=function(a,W){if(a.protocolVersion_!=2||a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=2||W!=2){if(a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=1||W!=1)return;
a.send("tp","SETUP_ACK")}else a.send("tp","SETUP_ACK_NTPV2");a.setupAckSent_.fired_||a.setupAckSent_.callback(!0)},waJ=function(a,W){W>a.peerProtocolVersion_&&(a.peerProtocolVersion_=W);
a.peerProtocolVersion_==1&&(a.setupAckSent_.fired_||a.oneSidedHandshake_||a.setupAckSent_.callback(!0),a.peerEndpointId_=null)};
_.t=ms.prototype;_.t.connect=function(){var a=this.getWindow(),W=_.lA(a),w=zYL[W];typeof w!=="number"&&(w=0);w==0&&_.vX(a.postMessage?a:a.document,"message",E36,!1,ms);zYL[W]=w+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.t.maybeAttemptToConnect_=function(){var a=VkR(this.JSC$7935_channel_)==0;this.oneSidedHandshake_&&a||this.JSC$7935_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),aTR(this))};
_.t.send=function(a,W){var w=this.JSC$7935_channel_.peerWindowObject_;w&&(this.send=function(Z,N){var B=this,I=this.JSC$7935_channel_.name;this.sendTimerId_=hd(function(){B.sendTimerId_=0;try{var X=w.postMessage?w:w.document;X.postMessage&&X.postMessage(I+"|"+Z+":"+N,B.peerHostname_)}catch(v){}},0)},this.send(a,W))};
_.t.notifyConnected_=function(){var a=this.JSC$7935_channel_,W=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;a.isConnected()||a.connectionDelay_&&a.connectionDelay_.isActive()||(a.state_=2,_.d3(a.connectionDelay_),W!==void 0?(a.connectionDelay_=new _.Y3(a.connectCb_,W),a.connectionDelay_.start()):(a.connectionDelay_=null,a.connectCb_()))};
_.t.disposeInternal=function(){if(this.initialized_){var a=this.getWindow(),W=_.lA(a),w=zYL[W];zYL[W]=w-1;w==1&&_.YO(a.postMessage?a:a.document,"message",E36,!1,ms)}this.sendTimerId_&&(_.NH.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.d3(this.JSC$7935_eventHandler_);delete this.JSC$7935_eventHandler_;_.d3(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7935_connected_.cancel();delete this.JSC$7935_connected_;delete this.send;ms.superClass_.disposeInternal.call(this)};
var Hr_=function(a){a=a.split(",");a[1]=a[1]||null;return a};_.zi=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(_.wT(a)){for(var W=[],w=a.length,Z=0;Z<w;Z++)W.push(a[Z]);return W}return _.T5.getValues(a)};
_.ZaT=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(_.wT(a)||typeof a==="string"){var W=[];a=a.length;for(var w=0;w<a;w++)W.push(w);return W}return _.T5.getKeys(a)}}};
_.Nj6=function(a,W,w){if(a.forEach&&typeof a.forEach=="function")a.forEach(W,w);else if(_.wT(a)||typeof a==="string")Array.prototype.forEach.call(a,W,w);else for(var Z=_.ZaT(a),N=_.zi(a),B=N.length,I=0;I<B;I++)W.call(w,N[I],Z&&Z[I],a)};var L7m,Z$,t1,XaJ,tQL,BjV,$kh,Pke,lT_;
_.CS=function(a,W){this.JSC$7940_domain_=this.userInfo_=this.scheme_="";this.JSC$7940_port_=null;this.fragment_=this.JSC$7940_path_="";this.JSC$7940_ignoreCase_=!1;var w;a instanceof _.CS?(this.JSC$7940_ignoreCase_=W!==void 0?W:a.JSC$7940_ignoreCase_,_.H5(this,a.scheme_),this.userInfo_=a.userInfo_,_.yc(this,a.JSC$7940_domain_),_.El(this,a.JSC$7940_port_),_.aZ(this,a.getPath()),_.Wy(this,a.JSC$7940_queryData_.clone()),_.wI(this,a.fragment_)):a&&(w=_.GU(String(a)))?(this.JSC$7940_ignoreCase_=!!W,_.H5(this,
w[1]||"",!0),this.userInfo_=Z$(w[2]||""),_.yc(this,w[3]||"",!0),_.El(this,w[4]),_.aZ(this,w[5]||"",!0),_.Wy(this,w[6]||"",!0),_.wI(this,w[7]||"",!0)):(this.JSC$7940_ignoreCase_=!!W,this.JSC$7940_queryData_=new _.NP(null,this.JSC$7940_ignoreCase_))};
_.CS.prototype.toString=function(){var a=[],W=this.scheme_;W&&a.push(t1(W,tQL,!0),":");var w=this.JSC$7940_domain_;if(w||W=="file")a.push("//"),(W=this.userInfo_)&&a.push(t1(W,tQL,!0),"@"),a.push(_.Qv(w).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),w=this.JSC$7940_port_,w!=null&&a.push(":",String(w));if(w=this.getPath())this.JSC$7940_domain_&&w.charAt(0)!="/"&&a.push("/"),a.push(t1(w,w.charAt(0)=="/"?$kh:BjV,!0));(w=this.JSC$7940_queryData_.toString())&&a.push("?",w);(w=this.fragment_)&&a.push("#",t1(w,
lT_));return a.join("")};
_.CS.prototype.resolve=function(a){var W=this.clone(),w=!!a.scheme_;w?_.H5(W,a.scheme_):w=!!a.userInfo_;w?W.userInfo_=a.userInfo_:w=!!a.JSC$7940_domain_;w?_.yc(W,a.JSC$7940_domain_):w=a.JSC$7940_port_!=null;var Z=a.getPath();if(w)_.El(W,a.JSC$7940_port_);else if(w=!!a.JSC$7940_path_){if(Z.charAt(0)!="/")if(this.JSC$7940_domain_&&!this.JSC$7940_path_)Z="/"+Z;else{var N=W.getPath().lastIndexOf("/");N!=-1&&(Z=W.getPath().slice(0,N+1)+Z)}N=Z;if(N==".."||N==".")Z="";else if(_.gE(N,"./")||_.gE(N,"/.")){Z=
_.IC(N,"/");N=N.split("/");for(var B=[],I=0;I<N.length;){var X=N[I++];X=="."?Z&&I==N.length&&B.push(""):X==".."?((B.length>1||B.length==1&&B[0]!="")&&B.pop(),Z&&I==N.length&&B.push("")):(B.push(X),Z=!0)}Z=B.join("/")}else Z=N}w?_.aZ(W,Z):w=a.JSC$7940_queryData_.toString()!=="";w?_.Wy(W,a.JSC$7940_queryData_.clone()):w=!!a.fragment_;w&&_.wI(W,a.fragment_);return W};
_.CS.prototype.clone=function(){return new _.CS(this)};
_.H5=function(a,W,w){a.scheme_=w?Z$(W,!0):W;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};
_.yc=function(a,W,w){a.JSC$7940_domain_=w?Z$(W,!0):W;return a};
_.El=function(a,W){if(W){W=Number(W);if(isNaN(W)||W<0)throw Error("Ta`"+W);a.JSC$7940_port_=W}else a.JSC$7940_port_=null;return a};
_.CS.prototype.getPath=function(){return this.JSC$7940_path_};
_.aZ=function(a,W,w){a.JSC$7940_path_=w?Z$(W,!0):W;return a};
_.Wy=function(a,W,w){W instanceof _.NP?(a.JSC$7940_queryData_=W,IT6(a.JSC$7940_queryData_,a.JSC$7940_ignoreCase_)):(w||(W=t1(W,Pke)),a.JSC$7940_queryData_=new _.NP(W,a.JSC$7940_ignoreCase_));return a};
_.qF=function(a,W,w){a.JSC$7940_queryData_.set(W,w);return a};
_.R$=function(a,W){return a.JSC$7940_queryData_.get(W)};
_.wI=function(a,W,w){a.fragment_=w?Z$(W):W;return a};
_.$$=function(a){_.qF(a,"zx",Fh());return a};
_.MF=function(a,W){return a instanceof _.CS?a.clone():new _.CS(a,W)};
L7m=function(a,W){a instanceof _.CS||(a=_.MF(a));W instanceof _.CS||(W=_.MF(W));return a.resolve(W)};
Z$=function(a,W){return a?W?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
t1=function(a,W,w){return typeof a==="string"?(a=encodeURI(a).replace(W,XaJ),w&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
XaJ=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
tQL=/[#\/\?@]/g;BjV=/[#\?:]/g;$kh=/[#\?]/g;Pke=/[#\?@]/g;lT_=/#/g;_.NP=function(a,W){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.JSC$7941_ignoreCase_=!!W};
_.By=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&Z_e(a.encodedQuery_,function(W,w){a.add(mB(W),w)}))};
_.t=_.NP.prototype;_.t.getCount=function(){_.By(this);return this.count_};
_.t.add=function(a,W){_.By(this);this.encodedQuery_=null;a=lc(this,a);var w=this.keyMap_.get(a);w||this.keyMap_.set(a,w=[]);w.push(W);this.count_+=1;return this};
_.t.remove=function(a){_.By(this);a=lc(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};
_.t.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.t.isEmpty=function(){_.By(this);return this.count_==0};
_.t.containsKey=function(a){_.By(this);a=lc(this,a);return this.keyMap_.has(a)};
_.t.containsValue=function(a){var W=this.getValues();return _.f7(W,a)};
_.t.forEach=function(a,W){_.By(this);this.keyMap_.forEach(function(w,Z){w.forEach(function(N){a.call(W,N,Z,this)},this)},this)};
_.t.getKeys=function(){_.By(this);for(var a=Array.from(this.keyMap_.values()),W=Array.from(this.keyMap_.keys()),w=[],Z=0;Z<W.length;Z++)for(var N=a[Z],B=0;B<N.length;B++)w.push(W[Z]);return w};
_.t.getValues=function(a){_.By(this);var W=[];if(typeof a==="string")this.containsKey(a)&&(W=W.concat(this.keyMap_.get(lc(this,a))));else{a=Array.from(this.keyMap_.values());for(var w=0;w<a.length;w++)W=W.concat(a[w])}return W};
_.t.set=function(a,W){_.By(this);this.encodedQuery_=null;a=lc(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[W]);this.count_+=1;return this};
_.t.get=function(a,W){if(!a)return W;a=this.getValues(a);return a.length>0?String(a[0]):W};
_.v1J=function(a,W,w){a.remove(W);w.length>0&&(a.encodedQuery_=null,a.keyMap_.set(lc(a,W),_.Wl(w)),a.count_+=w.length)};
_.NP.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],W=Array.from(this.keyMap_.keys()),w=0;w<W.length;w++){var Z=W[w],N=_.Qv(Z);Z=this.getValues(Z);for(var B=0;B<Z.length;B++){var I=N;Z[B]!==""&&(I+="="+_.Qv(Z[B]));a.push(I)}}return this.encodedQuery_=a.join("&")};
_.NP.prototype.clone=function(){var a=new _.NP;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};
var lc=function(a,W){W=String(W);a.JSC$7941_ignoreCase_&&(W=W.toLowerCase());return W},IT6=function(a,W){W&&!a.JSC$7941_ignoreCase_&&(_.By(a),a.encodedQuery_=null,a.keyMap_.forEach(function(w,Z){var N=Z.toLowerCase();
Z!=N&&(this.remove(Z),_.v1J(this,N,w))},a));
a.JSC$7941_ignoreCase_=W};
_.NP.prototype.extend=function(a){for(var W=0;W<arguments.length;W++)_.Nj6(arguments[W],function(w,Z){this.add(Z,w)},this)};var IZ=function(a,W){Ck.call(this);for(var w=0,Z;Z=ffV[w];w++)if(Z in a&&!/^https?:\/\//.test(a[Z]))throw Error("Va`"+a[Z]+"`"+Z);this.cfg_=a;this.name=this.cfg_.cn||mFT();this.JSC$7936_domHelper_=W||Ph();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.am(this);a.lpu=a.lpu||WZH(this.JSC$7936_domHelper_.getWindow().location.href)+"/robots.txt";a.ppu=a.ppu||WZH(a.pu||"")+"/robots.txt";Vc[this.name]=this;wbJ(window,"unload",g1E)||lx(window,"unload",g1E)};
_.NT(IZ,Ck);var o1_=RegExp("^%*tp$"),kvH=RegExp("^%+tp$");_.t=IZ.prototype;_.t.connectionDelay_=null;_.t.peerWindowDeferred_=null;_.t.transport_=null;_.t.state_=1;_.t.isConnected=function(){return this.state_==2};
_.t.peerWindowObject_=null;_.t.iframeElement_=null;_.t.connect=function(a){this.connectCb_=a||_.S5;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?xFA(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.t.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7936_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("Xa");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$7936_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new ms(this,this.cfg_.ph,this.JSC$7936_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.t.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.d3(this.transport_);this.connectCb_=this.transport_=null;_.d3(this.connectionDelay_);this.connectionDelay_=null};
_.t.send=function(a,W){if(this.isConnected()){try{var w=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(N){w=!1}if(w){_.tL(W)&&(W=(0,_.c5)(W));w=this.transport_;var Z=w.send;o1_.test(a)&&(a="%"+a);a=a.replace(/[%:|]/g,encodeURIComponent);Z.call(w,a,W)}else this.close()}};
_.t.xpcDeliver=function(a,W,w){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Sk)(this.xpcDeliver,this,a,W,w));else if(yKe(this,w)&&!this.isDisposed()&&this.state_!=3)if(a&&a!="tp")this.isConnected()&&(a=a.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),a=kvH.test(a)?a.substring(1):a,a=this.getService(a,W))&&(W=FHR(W,a.objectPayload),W!=null&&a.callback(W));else switch(a=this.transport_,w=Hr_(W),W=w[1],w[0]){case "SETUP_ACK":waJ(a,1);a.setupAckReceived_.fired_||a.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":a.protocolVersion_==2&&(waJ(a,2),a.setupAckReceived_.fired_||a.setupAckReceived_.callback(!0));break;case "SETUP":waJ(a,1);W$_(a,1);break;case "SETUP_NTPV2":a.protocolVersion_==2&&(w=a.peerProtocolVersion_,waJ(a,2),W$_(a,2),w!=1&&a.peerEndpointId_==null||a.peerEndpointId_==W||aTR(a),a.peerEndpointId_=W)}};
var VkR=function(a){var W=a.cfg_.role;return typeof W==="number"?W:window.parent==a.peerWindowObject_?1:0},yKe=function(a,W){var w=a.cfg_.ph;
return _.vv(W==null?"":String(W))||_.vv(w==null?"":String(w))||W==a.cfg_.ph};
IZ.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Vc[this.name];_.d3(this.peerLoadHandler_);delete this.peerLoadHandler_;IZ.superClass_.disposeInternal.call(this)};
var g1E=function(){for(var a in Vc)_.d3(Vc[a])},Vc={};var Oa6=function(a,W){this.JSC$7950_win=a;this.allowAdsHttpEndpoint=W;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7950_domHelper=Ph(a);this.scrollManager=new j$A(a);this.accessibilityManager=new hYl(a);UkT(this)},UkT=function(a){var W=function(){a.allowAdsPopup&&a.allowAdsPopup.style.setProperty("display","none","important");
a.wallElement.style.setProperty("display","","important");irV(a.accessibilityManager);n3R(a.accessibilityManager,a.wallElement.querySelector(".fc-dialog-container"),!1,!1,a.wallElement.querySelector(".fc-button-whitelist"));var N=a.scrollManager;N.JSC$7908_domHelper.JSC$7233_document_.body.style.overflow=N.originalBodyOverflow};
a.allowAdsPopup=a.JSC$7950_domHelper.JSC$7235_createDom("DIV",{"class":"fc-whitelist-root"});a.allowAdsPopup.style.setProperty("display","none","important");a.JSC$7950_domHelper.appendChild(a.JSC$7950_domHelper.JSC$7233_document_.body,a.allowAdsPopup);var w=a.JSC$7950_domHelper.JSC$7235_createDom("DIV",{"class":"fc-dialog-overlay"});a.JSC$7950_domHelper.appendChild(a.allowAdsPopup,w);var Z=a.JSC$7950_domHelper.JSC$7235_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:W});a.JSC$7950_domHelper.appendChild(a.allowAdsPopup,
Z);w=a.JSC$7950_domHelper.JSC$7235_createDom("IFRAME");w.className="fc-whitelist-dialog";w.frameBorder="0";w.id="fc-whitelist-iframe";w.tabIndex="0";_.nv(w,a.allowAdsHttpEndpoint);a.JSC$7950_domHelper.appendChild(Z,w);Z={};Z.pu=_.IJ(a.allowAdsHttpEndpoint).toString();Z.tp=1;Z.cn="fc-whitelist-channel";Z.ifrid=w.id;Z.osh=!0;a.allowAdsCrossPageChannel=new IZ(Z);a.allowAdsCrossPageChannel.registerService("close",W);a.allowAdsCrossPageChannel.registerService("refresh",function(){a.JSC$7950_win.location.reload()});
a.allowAdsCrossPageChannel.registerService("resize",function(N){if(N){var B=a.allowAdsPopup.querySelector(".fc-whitelist-dialog");N.width&&B.style.setProperty("width",N.width,"important");N.height&&B.style.setProperty("height",N.height,"important")}},!0);
a.allowAdsCrossPageChannel.connect()};
Oa6.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7950_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Py=window,vy=document,Si$=Py.location,Yi_=function(){},Tje=/\[native code\]/,gI=function(a,W,w){return a[W]=a[W]||w},K$_=function(a){a=a.sort();
for(var W=[],w=void 0,Z=0;Z<a.length;Z++){var N=a[Z];N!=w&&W.push(N);w=N}return W},oZ=function(){var a;
if((a=Object.create)&&Tje.test(a))a=a(null);else{a={};for(var W in a)a[W]=void 0}return a},k$=gI(Py,"gapi",{});var U1={};U1=gI(Py,"___jsl",oZ());gI(U1,"I",0);gI(U1,"hel",10);var paH=function(){var a=Si$.href;if(U1.dpo)var W=U1.h;else{W=U1.h;var w=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),Z=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(w.exec(a)||Z.exec(a)))try{W=decodeURIComponent(a[2])}catch(N){}}return W},roT=function(a){var W=gI(U1,"PQ",[]);
U1.PQ=[];var w=W.length;if(w===0)a();else for(var Z=0,N=function(){++Z===w&&a()},B=0;B<w;B++)W[B](N)},Ao6=function(a){return gI(gI(U1,"H",oZ()),a,oZ())};var O1=function(a){this.JSC$7952_obj_=a};
O1.prototype.value=function(){return this.JSC$7952_obj_};
O1.prototype.getWidth=function(){return this.JSC$7952_obj_.width};
O1.prototype.getHeight=function(){return this.JSC$7952_obj_.height};
O1.prototype.getStyle=function(){return this.JSC$7952_obj_.style};var hGR=function(a){this.JSC$7955_obj_=a||{}};
_.t=hGR.prototype;_.t.value=function(){return this.JSC$7955_obj_};
_.t.setUrl=function(a){this.JSC$7955_obj_.url=a;return this};
_.t.getUrl=function(){return this.JSC$7955_obj_.url};
_.t.getStyle=function(){return this.JSC$7955_obj_.style};
_.t.setId=function(a){this.JSC$7955_obj_.id=a;return this};
_.t.getId=function(){return this.JSC$7955_obj_.id};
_.t.getContext=function(){return this.JSC$7955_obj_.context};
var iaT=function(a){a.JSC$7955_obj_.attributes=a.JSC$7955_obj_.attributes||{};return new O1(a.JSC$7955_obj_.attributes)};var col=function(){hGR.apply(this,arguments)};
_.c(col,hGR);var eGA=gI(U1,"perf",oZ());gI(eGA,"g",oZ());var n1l=gI(eGA,"i",oZ());gI(eGA,"r",[]);oZ();oZ();var L$R=function(a,W,w){W&&W.length>0&&(W=juJ(W),w&&w.length>0&&(W+="___"+juJ(w)),W.length>28&&(W=W.substr(0,28)+(W.length-28)),w=W,W=gI(n1l,"_p",oZ()),gI(W,w,oZ())[a]=(new Date).getTime(),W=eGA.r,typeof W==="function"?W(a,"_p",w):W.push([a,"_p",w]))},juJ=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var JoE=oZ(),F$A=[],SS=function(a){throw Error("Ya`"+a);};
F$A.push(["jsl",function(a){for(var W in a)if(Object.prototype.hasOwnProperty.call(a,W)){var w=a[W];typeof w=="object"?U1[W]=gI(U1,W,[]).concat(w):gI(U1,W,w)}if(W=a.u)a=gI(U1,"us",[]),a.push(W),(W=/^https:(.*)$/.exec(W))&&a.push("http:"+W[1])}]);
var MQR=/^(\/[a-zA-Z0-9_\-]+)+$/,RGV=[/\/amp\//,/\/amp$/,/^\/amp$/],qiA=/^[a-zA-Z0-9\-_\.,!]+$/,Qu_=/^gapi\.loaded_[0-9]+$/,xk6=/^[a-zA-Z0-9,._-]+$/,CkA=function(a,W,w,Z,N){var B=a.split(";"),I=B.shift(),X=JoE[I],v=null;X?v=X(B,W,w,Z):SS("no hint processor for: "+I);v||SS("failed to generate load url");W=v;w=W.match(baJ);(Z=W.match(sue))&&Z.length===1&&uTL.test(W)&&w&&w.length===1||SS("failed sanity: "+a);try{a="?";if(N&&N.length>0){Ie(N);var U=N.join(",");v=v+"?le="+U;a="&"}if(U1.rol){var O=U1.ol;
O&&O.length&&(v=""+v+a+"ol="+O.length)}}catch(S){}return v},fT6=function(a,W,w,Z){a=GvV(a);
Qu_.test(w)||SS("invalid_callback");W=Dkl(W);Z=Z&&Z.length?Dkl(Z):null;var N=function(B){return encodeURIComponent(B).replace(/%2C/g,",")};
return[encodeURIComponent(a.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",N(a.version),"/m=",N(W),Z?"/exm="+N(Z):"","/rt=j/sv=1/d=1/ed=1",a.activeMods?"/am="+N(a.activeMods):"",a.resourceSig?"/rs="+N(a.resourceSig):"",a.zcms?"/t="+N(a.zcms):"","/cb=",N(w)].join("")},GvV=function(a){a.charAt(0)!=="/"&&SS("relative path");
for(var W=a.substring(1).split("/"),w=[];W.length;){a=W.shift();if(!a.length||a.indexOf(".")==0)SS("empty/relative directory");else if(a.indexOf("=")>0){W.unshift(a);break}w.push(a)}a={};for(var Z=0,N=W.length;Z<N;++Z){var B=W[Z].split("="),I=decodeURIComponent(B[0]),X=decodeURIComponent(B[1]);B.length==2&&I&&X&&(a[I]=a[I]||X)}W="/"+w.join("/");MQR.test(W)||SS("invalid_prefix");w=0;for(Z=RGV.length;w<Z;++w)RGV[w].test(W)&&SS("invalid_prefix");w=dk6(a,"k",!0);Z=dk6(a,"am");N=dk6(a,"rs");a=dk6(a,"t");
return{pathPrefix:W,version:w,activeMods:Z,resourceSig:N,zcms:a}},Dkl=function(a){for(var W=[],w=0,Z=a.length;w<Z;++w){var N=a[w].replace(/\./g,"_").replace(/-/g,"_");
xk6.test(N)&&W.push(N)}return W.join(",")},dk6=function(a,W,w){a=a[W];
!a&&w&&SS("missing: "+W);if(a){if(qiA.test(a))return a;SS("invalid: "+W)}return null},uTL=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,sue=/\/cb=/g,baJ=/\/\//g;
JoE.m=function(a,W,w,Z){(a=a[0])||SS("missing_hint");return"https://apis.google.com"+fT6(a,W,w,Z)};
var mk$=decodeURI("%73cript"),VQl=/^[-+_0-9\/A-Za-z]+={0,2}$/,zGl=function(a,W){for(var w=[],Z=0;Z<a.length;++Z){var N=a[Z],B;if(B=N){a:{for(B=0;B<W.length;B++)if(W[B]===N)break a;B=-1}B=B<0}B&&w.push(N)}return w},HaA=function(){var a=U1.nonce;
return a!==void 0?a&&a===String(a)&&a.match(VQl)?a:U1.nonce=null:vy.querySelector?(a=vy.querySelector("script[nonce]"))?(a=a.nonce||a.getAttribute("nonce")||"",a&&a===String(a)&&a.match(VQl)?U1.nonce=a:U1.nonce=null):null:null},a76=function(a){if(vy.readyState!="loading")yo6(a);
else{var W=HaA(),w="";W!==null&&(w=' nonce="'+W+'"');a="<"+mk$+' src="'+encodeURI(a)+'"'+w+"></"+mk$+">";vy.write(E1_?E1_.createHTML(a):a)}},yo6=function(a){var W=vy.createElement(mk$);
W.setAttribute("src",E1_?E1_.createScriptURL(a):a);a=HaA();a!==null&&W.setAttribute("nonce",a);W.async="true";(a=vy.getElementsByTagName(mk$)[0])?a.parentNode.insertBefore(W,a):(vy.head||vy.body||vy.documentElement).appendChild(W)},wSV=function(a,W,w){WB_(function(){var Z=W===paH()?gI(k$,"_",oZ()):oZ();
Z=gI(Ao6(W),"_",Z);a(Z)},w)},hTU=function(a,W){var w=W||{};
typeof W=="function"&&(w={},w.callback=W);var Z=(W=w)&&W._c;if(Z)for(var N=0;N<F$A.length;N++){var B=F$A[N][0],I=F$A[N][1];I&&Object.prototype.hasOwnProperty.call(Z,B)&&I(Z[B],a,W)}W=[];a?W=a.split(":"):w.features&&(W=w.features);if(!(a=w.h)&&(a=paH(),!a))throw Error("Za");ZF6(W||[],w,a)},ZF6=function(a,W,w){a=K$_(a)||[];
var Z=W.callback,N=W.config,B=W.timeout,I=W.ontimeout,X=W.onerror,v=void 0;typeof X=="function"&&(v=X);var U=null,O=!1;if(B&&!I||!B&&I)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";X=gI(Ao6(w),"r",[]).sort();var S=gI(Ao6(w),"L",[]).sort(),T=U1.le||[],p=[].concat(X),h=function(V,d){if(O)return 0;Py.clearTimeout(U);S.push.apply(S,L);var ZD=((k$||{}).config||{}).update;ZD?ZD(N):N&&gI(U1,"cu",[]).push(N);if(d){L$R("me0",V,p);try{wSV(d,w,v)}finally{L$R("me1",V,p)}}return 1};
B>0&&(U=Py.setTimeout(function(){O=!0;I()},B));
var L=zGl(a,S);if(L.length){L=zGl(a,X);var F=gI(U1,"CP",[]),x=F.length;F[x]=function(V){if(!V)return 0;L$R("ml1",L,p);var d=function(aC){F[x]=null;h(L,V)&&roT(function(){Z&&Z();aC()})},ZD=function(){var aC=F[x+1];
aC&&aC()};
x>0&&F[x-1]?F[x]=function(){d(ZD)}:d(ZD)};
if(L.length){var G="loaded_"+U1.I++;k$[G]=function(V){F[x](V);k$[G]=null};
a=CkA(w,L,"gapi."+G,X,T);X.push.apply(X,L);L$R("ml0",L,p);W.sync||Py.___gapisync?a76(a):yo6(a)}else F[x](Yi_)}else h(L)&&Z&&Z()},Nw_;
var tmH=null,$x$=_.NH.trustedTypes;if($x$&&$x$.createPolicy){try{tmH=$x$.createPolicy("goog#gapi",{createHTML:A_E,createScript:A_E,createScriptURL:A_E})}catch(a){_.NH.console&&_.NH.console.error(a.message)}Nw_=tmH}else Nw_=tmH;var E1_=Nw_,WB_=function(a,W){if(U1.hee&&U1.hel>0)try{return a()}catch(w){W&&W(w),U1.hel--,hTU("debug_error",function(){try{window.___jsl.hefn(w)}catch(Z){throw w;}})}else try{return a()}catch(w){throw W&&W(w),w;
}},Bwe=k$.load;
Bwe&&gI(U1,"ol",[]).push(Bwe);k$.load=function(a,W){return WB_(function(){return hTU(a,W)})};var I7I;var l7T=function(a,W){this.serviceId_=a;this.moduleId_=W||null};
l7T.prototype.toString=function(){return this.serviceId_};
l7T.prototype.getModuleId=function(){return this.moduleId_};var lW7=new l7T("MpJwZc","MpJwZc");var PFx=new _.ok("a"),IWD=function(a,W,w){_.kO.call(this,a,W);this.node=W;this.kind=w};
_.c(IWD,_.kO);var I7R=function(){this.JSC$7968_keys_={};this.urlPrefix_="";this.JSC$7968_queryData_={}};
I7R.prototype.toString=function(){var a=this.urlPrefix_+PGA(this),W=_.ld(this.JSC$7968_queryData_),w="";W!=""&&(w="?"+W);return a+w};
var XS$=function(a){a=Y$(a,"md");return!!a&&a!=="0"},PGA=function(a){var W=[],w=(0,_.Sk)(function(Z){this.JSC$7968_keys_[Z]!==void 0&&W.push(Z+"="+this.JSC$7968_keys_[Z])},a);
XS$(a)?(w("md"),w("k"),w("ck"),w("am"),w("rs"),w("gssmodulesetproto"),w("slk"),w("dti")):(w("sdch"),w("k"),w("ck"),w("am"),w("rt"),"d"in a.JSC$7968_keys_||T_(a,"d","0"),w("d"),w("exm"),w("excm"),(a.JSC$7968_keys_.excm||a.JSC$7968_keys_.exm)&&W.push("ed=1"),w("im"),w("dg"),w("sm"),Y$(a,"br")!="1"&&Y$(a,"br")!="0"||w("br"),w("br-d"),Y$(a,"rb")=="1"&&w("rb"),Y$(a,"zs")!=="0"&&w("zs"),v6J(a)!==""&&w("wt"),w("gssmodulesetproto"),w("ujg"),w("sp"),w("rs"),w("cb"),w("ee"),w("slk"),w("dti"),w("m"));return W.join("/")},
Y$=function(a,W){return a.JSC$7968_keys_[W]?a.JSC$7968_keys_[W]:null},T_=function(a,W,w){w?a.JSC$7968_keys_[W]=w:delete a.JSC$7968_keys_[W]},g6V=function(a,W){a.urlPrefix_=W},o6R=function(a,W){W&&W.length>0?(W.sort(),T_(a,"exm",W.join(","))):T_(a,"exm",null)},kUL=function(a,W){W&&W.length>0?(W.sort(),T_(a,"excm",W.join(","))):T_(a,"excm",null)},Ux_=function(a){return(a=Y$(a,"m"))?a.split(","):[]},v6J=function(a){switch(Y$(a,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},OFe=function(a,W){var w=Object.keys(W).filter(function(Z){return!!Object.keys(W[Z]).length}).map(function(Z){var N=Object.keys(W[Z]);
N.length>1&&N.sort();return Z+":"+N.join(",")});
w.sort();T_(a,"ee",w.join(";"))},ape=function(a){var W=Y$(a,"ee");
if(!W)return{};a={};W=_.l(W.split(";"));for(var w=W.next();!w.done;w=W.next()){var Z=_.l(w.value.split(":"));w=Z.next().value;Z=Z.next().value;a[w]={};Z=_.l(Z.split(","));for(var N=Z.next();!N.done;N=Z.next())a[w][N.value]=!0}return a},StH=function(a){delete a.JSC$7968_keys_.m;
delete a.JSC$7968_keys_.exm;delete a.JSC$7968_keys_.ed};
I7R.prototype.clone=function(){if(DND){var a=new I7R;a.JSC$7968_keys_=Object.assign({},this.JSC$7968_keys_);a.urlPrefix_=this.urlPrefix_;a.JSC$7968_queryData_=Object.assign({},this.JSC$7968_queryData_);return a}return dh(this.toString())};
var dh=function(a,W){W=W===void 0?!0:W;var w=YtT(a),Z=new I7R,N=_.GU(w)[5];_.T5.forEach(Twy,function(I){var X=N.match("/"+I+"=([^/]+)");X&&T_(Z,I,X[1])});
var B="";B=a.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";g6V(Z,a.substr(0,a.indexOf(B)+B.length));if(!W)return Z;(a=_.GU(w)[6]||null)&&Z_e(a,function(I,X){Z.JSC$7968_queryData_[I]=X});
return Z},HFv=function(a){a=_.tw(YtT(a));
return a===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(a)?/\/k=/.test(a):!1},YtT=function(a){return a.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?a.substr(65):a},Twy={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"},KBH=RegExp("^loaded_(g|h)?[_\\d]+$");_.K9=function(a){this.JSC$7980_id_=a;this.opts={}};
_.K9.prototype.JSC$7982_setLabel=function(a){this.label_=a||void 0;return this};
_.K9.prototype.addUploadMetadata=function(a,W){var w=this.opts.data||{};w[a]=W;this.opts.data=w;return this};
var pSJ=function(a){var W=_.T5.filter(a.opts,function(w){return w!==null});
W=_.T5.isEmpty(W)?null:W;a=[a.JSC$7980_id_,a.label_,W];W=SSx(a);return a=a.slice(0,W+1)};
_.K9.prototype.toString=function(){var a=pSJ(this);return"("+_.pY(a,function(W){return JSON.stringify(W)}).join(",")+")"};
_.K9.prototype.getId=function(){return this.JSC$7980_id_};
_.K9.prototype.getOptions=function(){return _.T5.clone(this.opts)};var p9=function(){_.K9.call(this,"image-search")};
_.c(p9,_.K9);p9.prototype.setSize=function(a){this.opts.imgsz=a;return this};
p9.prototype.JSC$7982_setLabel=function(a){_.K9.prototype.JSC$7982_setLabel.call(this,a);return this};
p9.prototype.addUploadMetadata=function(a,W){_.K9.prototype.addUploadMetadata.call(this,a,W);return this};var rI=function(){_.K9.call(this,"maps")};
_.c(rI,_.K9);rI.prototype.setZoom=function(a){this.opts.zoom=a;return this};
rI.prototype.JSC$7982_setLabel=function(a){_.K9.prototype.JSC$7982_setLabel.call(this,a);return this};
rI.prototype.addUploadMetadata=function(a,W){_.K9.prototype.addUploadMetadata.call(this,a,W);return this};_.A1=function(){_.K9.call(this,"photos")};
_.c(_.A1,_.K9);_.A1.prototype.JSC$7982_setLabel=function(a){_.K9.prototype.JSC$7982_setLabel.call(this,a);return this};
_.A1.prototype.addUploadMetadata=function(a,W){_.K9.prototype.addUploadMetadata.call(this,a,W);return this};var h1=function(){_.K9.call(this,"url")};
_.c(h1,_.K9);var rS$=function(){var a=new h1;a.opts.type="video";a.opts.site="youtube.com";return a};
h1.prototype.JSC$7982_setLabel=function(a){_.K9.prototype.JSC$7982_setLabel.call(this,a);return this};
h1.prototype.addUploadMetadata=function(a,W){_.K9.prototype.addUploadMetadata.call(this,a,W);return this};var ic=function(){_.K9.call(this,"video-search")};
_.c(ic,_.K9);var ASA=function(){var a=new ic;a.opts.site="youtube.com";return a};
ic.prototype.JSC$7982_setLabel=function(a){_.K9.prototype.JSC$7982_setLabel.call(this,a);return this};
ic.prototype.addUploadMetadata=function(a,W){_.K9.prototype.addUploadMetadata.call(this,a,W);return this};var hq$=function(){_.K9.call(this,"web")};
_.c(hq$,_.K9);hq$.prototype.JSC$7982_setLabel=function(a){_.K9.prototype.JSC$7982_setLabel.call(this,a);return this};
hq$.prototype.addUploadMetadata=function(a,W){_.K9.prototype.addUploadMetadata.call(this,a,W);return this};var cy=function(){this.items_=[];this.opts={}},iFV=function(a){switch(a){case "image-search":return new p9;
case "maps":return new rI;case "photos":return new _.A1;case "url":return new h1;case "video-search":return new ic;case "web":return new hq$}return new _.K9(a)};
cy.prototype.addView=function(a){this.items_.push(typeof a==="string"?iFV(a):a);return this};
var cSR=function(a){return"("+_.pY(a.items_,function(W){return W.toString()}).join(",")+")"};
cy.prototype.toString=function(){return cSR(this)};
cy.prototype.getViews=function(a,W){W=W===void 0?[]:W;for(var w=this.items_,Z=0;Z<w.length;Z++){var N=w[Z];N instanceof cy?N.getViews(a,W):N.getId()==a&&W.push(N)}return W};
cy.prototype.getOptions=function(){return _.T5.clone(this.opts)};var ek=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new cy};
ek.prototype.nav_=null;ek.prototype.addView=function(a){this.nav_.addView(a);return this};
ek.prototype.getBaseUrl=function(){return this.basePickerUrl_};
ek.prototype.getViews=function(a){return this.nav_.getViews(a)};
_.eqE=function(a,W){a.callback_=W;return a};var n6$=new Map;n6$.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");n6$.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");n6$.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var jTJ=new Set;jTJ.add("application/vnd.google-apps.kix");jTJ.add("application/vnd.google-apps.ritz");jTJ.add("application/vnd.google-apps.punch");var CGh=function(a,W,w){var Z=w&&_.Lo(w,1);w=LBV(w);var N=a[0].getId();switch(_.JD(N,2)){case 13:return JST(a,W,Z,w);case 3:return FBV(a,W,Z,w);case 10:return Mme(a,W,Z,w);case 27:return Mme(a,W,Z,w);case 12:return RqR(a,W);case 2:return qth(a,W,Z,w);case 5:return QT$(a,W,Z,w);case 9:return xx_(a,W,Z,w);case 6:return bF_(a,W,Z,w);case 25:return sTh(a,W,Z,w);case 1:return _.SF(a[0],TCT,26)?ufH(a,W,Z,w):Mme(a,W,Z,w);default:return{}}},bF_=function(a,W,w,Z){a=a.map(function(N){return{id:N.getId().getId(),
serviceId:"youtube",name:N.getName(),description:_.Lo(N,3),type:eS(N),lastEditedUtc:_.Yme(_.Hi(N,_.sa,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:N.getUrl(),embedUrl:_.Lo(N,13),thumbnails:n9(yK(N))}});
return{action:W,docs:a,viewToken:Z,view:w||"youtube",v2Translated:!0}},qth=function(a,W,w,Z){var N=a.map(function(B){var I=B.getId().getId(),X=_.Lo(B,7),v=B.getName(),U=eS(B),O=_.Yme(_.Hi(B,_.sa,12)).getTime(),S=B.getUrl(),T=Number(qEe(B)),p=_.Lo(B,3),h=_.Lo(B,11),L=n9(yK(B));
var F=_.Hi(B,EM,21);F=_.eF(F,1);var x=_.Hi(B,EM,21);x=_.Lo(x,10);var G=_.Lo(B,13);var V=_.Hi(B,EM,21);V=_.eF(V,9);var d=_.Hi(B,EM,21);d=_.Lo(d,11);I={id:I,serviceId:"docs",mimeType:X,name:v,type:U,lastEditedUtc:O,url:S,sizeBytes:T,description:p,iconUrl:h,thumbnails:L,isShared:F,downloadUrl:x,embedUrl:G,copyable:V,resourceKey:d};X=_.Hi(B,EM,21);_.eF(X,12)&&(I.uploadState="success",I.isNew=!0);X=_.Hi(B,EM,21);_.SF(X,VK,3)&&(B=_.Hi(B,EM,21),B=_.Hi(B,VK,3),_.SF(B,dm,2)&&(X=iJ(B.getDuration().getSeconds()),
v=B.getDuration(),v=_.yo(v,2),I.duration=X+v/1E9),I.aspectRatio=B.getAspectRatio());return I});
return{action:W,docs:N,viewToken:Z,view:w||"all",extraUserInputs:GUE(a),v2Translated:!0}},QT$=function(a,W,w,Z){a=a.map(function(N){var B=_.Hi(N,nbA,15);
B=_.Hi(B,ml,1);og(N,10,ml,B);return{id:N.getId().getId(),serviceId:"web",mimeType:_.Lo(N,7),name:N.getName(),type:eS(N),url:N.getUrl(),description:_.Lo(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:n9(yK(N))}});
return{action:W,docs:a,viewToken:Z,view:w||"image-search",v2Translated:!0}},xx_=function(a,W,w,Z){a=a.map(function(N){return{serviceId:"url",
name:yK(N)[0].getUrl().split("/").pop(),type:eS(N),mimeType:_.Lo(N,7),url:N.getUrl(),description:_.Lo(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:n9(yK(N))}});
return{action:W,docs:a,viewToken:Z,view:w||"url",v2Translated:!0}},ufH=function(a,W,w,Z){a=a.map(function(N){return{id:N.getId().getId(),
serviceId:"picasa",name:N.getName(),type:eS(N),description:_.Lo(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:n9(yK(N))}});
return{action:W,docs:a,viewToken:Z,view:w||"webcam",v2Translated:!0}},Mme=function(a,W,w,Z){return{action:W,
docs:a.map(DxJ),viewToken:Z,view:f7A(w||"upload",a),extraUserInputs:GUE(a),v2Translated:!0}},f7A=function(a,W){return W.some(function(w){var Z;
return((Z=_.Hi(w,z6,30))==null?void 0:_.JD(Z,3))===9})?a+"/gmailphotos":a},FBV=function(a,W,w,Z){var N=a.map(function(B){var I={id:B.getId().getId(),
serviceId:"picasa",mimeType:_.Lo(B,7),name:B.getName(),type:eS(B),lastEditedUtc:_.Yme(_.Hi(B,_.sa,12)).getTime(),url:B.getUrl(),sizeBytes:Number(qEe(B)),description:_.Lo(B,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:n9(yK(B)),mediaKey:B.getId().getId(),parentId:_.Lo(B,4)},X,v=(X=_.Hi(B,rIE,18))==null?void 0:_.Hi(X,p9A,3);v&&(I.latitude=jF(v,1),I.longitude=jF(v,2));var U;B=(U=_.Hi(B,rIE,18))==null?void 0:no(U,6);U=B!=null?iJ(B):void 0;U&&(I.version=
U);return I});
return{action:W,docs:N,viewToken:Z,view:w||"photos",extraUserInputs:GUE(a),v2Translated:!0}},JST=function(a,W,w,Z){a=a.map(function(N){return{id:N.getId().getId(),
serviceId:"et",name:yK(N)[0].getUrl().split("/").pop(),description:_.Lo(N,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:n9(yK(N),"etjpg")}});
return{action:W,docs:a,viewToken:Z,view:w||"et",v2Translated:!0}},sTh=function(a,W,w,Z){a=a.map(function(N){var B=N.getId().getId(),I=Z["2"];
return{id:B,serviceId:I.type!=="gmail_themes"&&I.parent==="6226252643674576769"?"picasa":"static_themes",name:N.getName(),mimeType:_.Lo(N,7),type:eS(N),description:_.Lo(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:N.getUrl(),embedUrl:N.getUrl(),thumbnails:n9(yK(N))}});
return{action:W,docs:a,viewToken:Z,view:w||"photos",v2Translated:!0}},RqR=function(a,W){a=a.map(function(w){var Z=_.Hi(w,KZR,27);
Z=_.Tk(Z,1,_.b9,_.Hh())[0];return{id:w.getId().getId(),serviceId:"contacts",mimeType:_.Lo(w,7),name:w.getName(),description:_.Lo(w,3),url:"mailto:"+Z,thumbnail:[{url:_.Lo(w,11)}],email:Z}});
return{action:W,docs:a,view:"contacts",v2Translated:!0}},LBV=function(a){if(!a)return{};
var W=_.Lo(a,3);W=W&&JSON.parse(W)||{};return{0:_.Lo(a,1),1:_.Lo(a,2),2:W}},n9=function(a,W){W=W===void 0?"":W;
if(!a.length)return null;W=="etjpg"&&(a=a.filter(function(w){return w.getUrl().includes("w1200-h300")}));
return a.map(function(w){return{url:w.getUrl(),height:w.getHeight(),width:w.getWidth(),type:W}})},GUE=function(a){return{isAttachment:a.some(function(W){return _.eF(W,31)})}},DxJ=function(a){var W,w={id:(W=a.getId())==null?void 0:W.getId(),
serviceId:dxy(a),mimeType:_.Lo(a,7),name:a.getName(),type:eS(a),sizeBytes:Number(qEe(a)),description:_.Lo(a,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:n9(yK(a)),isNew:!0};if(W=_.Hi(a,z6,30)){w.dataUrl=_.Lo(W,1)||null;a:{var Z=_.Hi(a,z6,30);switch(_.JD(Z,3)){case 9:Z=_.RY(Z,cI_,2,H0);Z={remoteRefs:Z&&_.Lo(Z,1)};break a;case 10:case 15:Z=_.RY(Z,i_h,4,H0);var N=yK(a);Z={photo_id:Z&&_.Lo(Z,1),media_key:a.getId().getId(),media_type:_.JD(a,6)===1?1:2,image_url:N&&
N[0].getUrl(),width:N&&String(N[0].getWidth()),height:N&&String(N[0].getHeight())};break a}Z=null}w.uploadMetadata=Z;w.uploadId=_.Lo(W,9)||null;w.uploadState=mx_(W)||null}(Z=W&&_.RY(W,i_h,4,H0))&&(w.id=_.Lo(Z,1));(Z=W&&_.RY(W,eRl,5,H0))&&(w.contentId=_.Lo(Z,1));(Z=W&&_.RY(W,AIH,7,H0))&&(w.contentId=_.Lo(Z,1));(Z=W&&_.RY(W,hR_,6,H0))&&(w.contentId=_.Lo(Z,1));(W==null?void 0:_.JD(W,3))===1&&(w.mediaKey=a.getId().getId());return w},dxy=function(a){var W;
switch(((W=_.Hi(a,z6,30))==null?void 0:_.JD(W,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},eS=function(a){switch(_.JD(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 _.Lo(a,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},mx_=function(a){switch(a==null?void 0:_.JD(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 yS$,Vm6,zqR,HFl;_.jS=function(a,W){var w=W||{};W=w.document||document;var Z=_.IJ(a).toString(),N=(new rm(W)).createElement("SCRIPT"),B={script_:N,timeout_:void 0},I=new Gi(Vm6,B),X=null,v=w.timeout!=null?w.timeout:5E3;v>0&&(X=window.setTimeout(function(){zqR(N,!0);I.errback(new HFl(1,"Timeout reached for loading script "+Z))},v),B.timeout_=X);
N.onload=N.onreadystatechange=function(){N.readyState&&N.readyState!="loaded"&&N.readyState!="complete"||(zqR(N,w.cleanupWhenDone||!1,X),I.callback(null))};
N.onerror=function(){zqR(N,!0,X);I.errback(new HFl(0,"Error while loading script "+Z))};
B=w.attributes||{};_.T5.extend(B,{type:"text/javascript",charset:"UTF-8"});P9V(N,B);_.Q$(N,a);yS$(W).appendChild(N);return I};
yS$=function(a){var W=gh("HEAD",a);return W&&W.length!==0?W[0]:a.documentElement};
Vm6=function(){if(this&&this.script_){var a=this.script_;a&&a.tagName=="SCRIPT"&&zqR(a,!0,this.timeout_)}};
zqR=function(a,W,w){w!=null&&_.NH.clearTimeout(w);a.onload=function(){};
a.onerror=function(){};
a.onreadystatechange=function(){};
W&&window.setTimeout(function(){_.Xh(a)},0)};
HFl=function(a,W){var w="Jsloader error (code #"+a+")";W&&(w+=": "+W);_.Wv.call(this,w);this.code=a};
_.NT(HFl,_.Wv);var E6L=_.ma(["https://apis.google.com/js/api.js"]),apA=_.ya(E6L),NzT=function(a,W){var w=!1,Z=WGL(a,W).then(function(B){w=!0;return B}),N=_.jnT(5E3).then(function(){return w?WGL(a,W):wiR(W).then(function(B){return Z3L(B,a)})});
return SKe([Z,N])},WGL=function(a,W){return tg$(W).then(function(w){return Z3L(w,a)})},Z3L=function(a,W){var w=_.IC(W,"gapi.")?W.slice(5):W;
return a[w]?_.tk(a[w]):new _.PZ(function(Z,N){var B=hd(function(){N(Error("bb"))},3E4);
a.load(W,{callback:function(){_.NH.clearTimeout(B);Z(a[w])},
onerror:function(I){_.NH.clearTimeout(B);N(I)}})})},tg$=function(a){return a.gapi&&a.gapi.load?_.tk(a.gapi):wiR(a)},wiR=function(a){return _.jS(apA,{document:a.document}).then(function(){return a.gapi})},$Y_=function(){};
$Y_.prototype.load=function(a,W){W=W===void 0?window:W;var w=Date.now();return NzT(a,W).then(function(Z){var N=Date.now();return{library:Z,loadStartMs:w,loadEndMs:N}},function(Z){throw Z instanceof Error?Z:Error(String(Z));
})};var pSU=function(){_.OW.call(this);this.gapiLoader_=new $Y_;this.origin_=null;this.gapiPickerIframeResolver_=_.Rt();this.gapiIframesResolver_=_.Rt();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.c(pSU,_.OW);var BzL=function(a,W){var w=_.RT("gapi.iframes",W);return w?(a=Date.now(),_.tk({library:w,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",W)},lpR=function(a,W,w,Z,N,B){var I=!1;
I=I===void 0?!1:I;BzL(a,Av(W.ownerDocument)).then(function(X){var v=X.library;a.gapiIframesResolver_.resolve(v);X=a.gapiPickerIframeResolver_;var U=X.resolve,O=I;O=O===void 0?!1:O;var S={};S["host-message-handler"]=w;a.hostMessageHandlerInternal_=S;var T=_.MF(Z);T=_.MF(T);T=_.El(_.yc(_.H5(new _.CS,T.scheme_),T.JSC$7940_domain_),T.JSC$7940_port_).toString();a.origin_=T;T=(new col).setUrl(Z);T.JSC$7955_obj_.where=W;T.JSC$7955_obj_.allowPost=O;T.JSC$7955_obj_.messageHandlers=S;O=_.RT("makeWhiteListIframesFilter",
v)([a.origin_]);T.JSC$7955_obj_.messageHandlersFilter=O;N!=null&&T.setId(N);B!=null&&(T.JSC$7955_obj_.rpctoken=B);O=iaT(T);O.JSC$7952_obj_.style={display:"block","min-width":"100%",width:"1px"};O.JSC$7952_obj_.height="100%";iaT(T).value().allow="camera 'src' "+a.origin_;v=v.getContext().openChild(T.value());U.call(X,v)},function(X){a.gapiIframesResolver_.reject(X);
a.gapiPickerIframeResolver_.reject(X)});
return a.gapiPickerIframeResolver_.promise},Ipe=function(a,W){return _.rD([a.gapiIframesResolver_.promise,
a.gapiPickerIframeResolver_.promise]).then(function(w){var Z=_.l(w);w=Z.next().value;return(Z=Z.next().value)?Z.send("picker-message-handler",W,void 0,_.RT("makeWhiteListIframesFilter",w)([a.origin_])):_.od(Error("cb"))})};
pSU.prototype.disposeInternal=function(){Pdl(this);_.OW.prototype.disposeInternal.call(this)};
var Pdl=function(a){a.gapiPickerIframeResolver_.promise.then(function(W){W&&(W.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};var XiL=function(){this.nextId=0};var gql=function(a,W){switch(a.action){case "select-contacts":a=vq6(a.contacts);break;case "visibility":a=a.visible;var w=new W5;a=_.QZ(w,1,7).setVisible(a);w={};w["iframe-command"]=a.serialize();a=w;break;default:a=null}return a?Ipe(W,a):_.tk()},vq6=function(a){if(!a||a.length==0)return null;
var W=new W5;_.QZ(W,1,11);var w=new XiL;a.forEach(function(Z){if(Z.email){var N=new iB;N=_.aI(N,2,Z.name?Z.name:Z.email);var B=new KZR;Z=_.BfI(B,1,_.Qk,Z.email,_.b9);Z=_.ZP(N,27,Z);N=Z.setId;B=(new fI).setId(":"+(w.nextId++).toString(36));B=_.QZ(B,2,12);Z=N.call(Z,B)}else Z=null;Z&&og(W,7,iB,Z)});
a={};a["iframe-command"]=W.serialize();return a};_.oqE=function(){if(HnE){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(_.S9()))?a[1]:"0"}return _.zZF?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(_.S9()))?a[0].replace(/_/g,"."):"10"):v$x?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(_.S9()))?a[1]:""):EnI||a6S||W3v?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(_.S9()))?a[1].replace(/_/g,"."):""):""}();var L9;L9=function(a){return(a=a.exec(_.S9()))?a[1]:""};
_.k4R=function(){if(_.vz)return L9(/Firefox\/([0-9.]+)/);if(_.lB||C3||dNx)return l6C;if(_.gk){if(_.qH()||_.oIe()){var a=L9(/CriOS\/([0-9.]+)/);if(a)return a}return L9(/Chrome\/([0-9.]+)/)}if(_.jg&&!_.qH())return L9(/Version\/([0-9.]+)/);if(e97||ns8){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.S9()))return a[1]+"."+a[2]}else if(grC)return(a=L9(/Android\s+([0-9.]+)/))?a:L9(/Version\/([0-9.]+)/);return""}();var UY$=function(){};
_.wk(UY$);UY$.prototype.nextId_=0;_.Lw=function(a){return":"+(a.nextId_++).toString(36)};var J1=function(a){_.Ti.call(this);this.JSC$8050_dom_=a||Ph();this.JSC$8050_id_=null;this.inDocument_=!1;this.JSC$8050_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.NT(J1,_.Ti);J1.prototype.idGenerator_=UY$.getInstance();J1.prototype.getId=function(){return this.JSC$8050_id_||(this.JSC$8050_id_=_.Lw(this.idGenerator_))};
J1.prototype.setId=function(a){this.parent_&&this.parent_.childIndex_&&(_.T5.remove(this.parent_.childIndex_,this.JSC$8050_id_),_.T5.add(this.parent_.childIndex_,a,this));this.JSC$8050_id_=a};
J1.prototype.getElement=function(){return this.JSC$8050_element_};
var FH=function(a){a.googUiComponentHandler_||(a.googUiComponentHandler_=new _.am(a));return a.googUiComponentHandler_},O3H=function(a,W){if(a==W)throw Error("db");
var w;if(w=W&&a.parent_&&a.JSC$8050_id_){w=a.parent_;var Z=a.JSC$8050_id_;w=w.childIndex_&&Z?_.T5.get(w.childIndex_,Z)||null:null}if(w&&a.parent_!=W)throw Error("db");a.parent_=W;J1.superClass_.setParentEventTarget.call(a,W)};
J1.prototype.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("eb");J1.superClass_.setParentEventTarget.call(this,a)};
J1.prototype.JSC$8052_createDom=function(){this.JSC$8050_element_=this.JSC$8050_dom_.createElement("DIV")};
J1.prototype.render=function(a){Sw$(this,a)};
var Sw$=function(a,W,w){if(a.inDocument_)throw Error("fb");a.JSC$8050_element_||a.JSC$8052_createDom();W?W.insertBefore(a.JSC$8050_element_,w||null):a.JSC$8050_dom_.JSC$7233_document_.body.appendChild(a.JSC$8050_element_);a.parent_&&!a.parent_.inDocument_||a.enterDocument()};
_.t=J1.prototype;_.t.decorate=function(a){if(this.inDocument_)throw Error("fb");if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var W=_.hv(a);this.JSC$8050_dom_&&this.JSC$8050_dom_.JSC$7233_document_==W||(this.JSC$8050_dom_=Ph(a));this.decorateInternal(a);this.enterDocument()}else throw Error("gb");};
_.t.canDecorate=function(){return!0};
_.t.decorateInternal=function(a){this.JSC$8050_element_=a};
_.t.enterDocument=function(){this.inDocument_=!0;Ywy(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};
_.t.exitDocument=function(){Ywy(this,function(a){a.inDocument_&&a.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.t.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);Ywy(this,function(a){a.dispose()});
!this.wasDecorated_&&this.JSC$8050_element_&&_.Xh(this.JSC$8050_element_);this.parent_=this.model_=this.JSC$8050_element_=this.childIndex_=this.children_=null;J1.superClass_.disposeInternal.call(this)};
_.t.getModel=function(){return this.model_};
_.t.addChild=function(a,W){var w=this.children_?this.children_.length:0;if(a.inDocument_&&(W||!this.inDocument_))throw Error("fb");if(w<0||w>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);a.parent_==this?(_.T5.set(this.childIndex_,a.getId(),a),_.yF(this.children_,a)):_.T5.add(this.childIndex_,a.getId(),a);O3H(a,this);_.TEI(this.children_,w,0,a);a.inDocument_&&this.inDocument_&&a.parent_==this?(W=this.getContentElement(),
(W.childNodes[w]||null)!=a.getElement()&&(a.getElement().parentElement==W&&W.removeChild(a.getElement()),w=W.childNodes[w]||null,W.insertBefore(a.getElement(),w))):W?(this.JSC$8050_element_||this.JSC$8052_createDom(),w=this.children_?this.children_[w+1]||null:null,Sw$(a,this.getContentElement(),w?w.JSC$8050_element_:null)):this.inDocument_&&!a.inDocument_&&a.JSC$8050_element_&&a.JSC$8050_element_.parentNode&&a.JSC$8050_element_.parentNode.nodeType==1&&a.enterDocument()};
_.t.getContentElement=function(){return this.JSC$8050_element_};
var Ywy=function(a,W){a.children_&&a.children_.forEach(W,void 0)};
J1.prototype.removeChild=function(a,W){if(a){var w=typeof a==="string"?a:a.getId();a=this.childIndex_&&w?_.T5.get(this.childIndex_,w)||null:null;w&&a&&(_.T5.remove(this.childIndex_,w),_.yF(this.children_,a),W&&(a.exitDocument(),a.JSC$8050_element_&&_.Xh(a.JSC$8050_element_)),O3H(a,null))}if(!a)throw Error("ib");return a};_.NT(g69,v6U);_.NT(o6S,v6U);var TzT;var KG6=function(a,W){W?a.setAttribute("role",W):a.removeAttribute("role")},MP=function(a,W,w){Array.isArray(w)&&(w=w.join(" "));
var Z="aria-"+W;w===""||w==void 0?(TzT||(w={},TzT=(w.atomic=!1,w.autocomplete="none",w.dropeffect="none",w.haspopup=!1,w.live="off",w.multiline=!1,w.multiselectable=!1,w.orientation="vertical",w.readonly=!1,w.relevant="additions text",w.required=!1,w.sort="none",w.busy=!1,w.disabled=!1,w.hidden=!1,w.invalid="false",w)),w=TzT,W in w?a.setAttribute(Z,w[W]):a.removeAttribute(Z)):a.setAttribute(Z,w)};var pil;_.RZ=function(a,W,w){_.Ti.call(this);this.target=a;this.handle=W||a;this.limits=w||new MS(NaN,NaN,NaN,NaN);this.JSC$8055_document_=_.hv(a);this.JSC$8055_eventHandler_=new _.am(this);_.$3(this,this.JSC$8055_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;_.vX(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=pil};
_.NT(_.RZ,_.Ti);pil=_.NH.document&&_.NH.document.documentElement&&!!_.NH.document.documentElement.setCapture&&!!_.NH.document.releaseCapture;_.rwe=function(a,W){a.hysteresisDistanceSquared_=Math.pow(W,2)};
_.t=_.RZ.prototype;_.t.setEnabled=function(a){this.enabled_=a};
_.t.disposeInternal=function(){_.RZ.superClass_.disposeInternal.call(this);_.YO(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8055_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8055_document_.releaseCapture();this.handle=this.target=null};
_.t.startDrag=function(a){var W=a.type=="mousedown";if(!this.enabled_||this.dragging_||W&&(a.event_.button!=0||_.zZF&&a.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new qP("start",this,a.clientX,a.clientY,a)))this.dragging_=!0,W&&a.preventDefault();else return;else W&&a.preventDefault();W=this.JSC$8055_document_;var w=W.documentElement,Z=!this.useSetCapture_;this.JSC$8055_eventHandler_.listen(W,["touchmove","mousemove"],this.handleMove_,
{capture:Z,passive:!1});this.JSC$8055_eventHandler_.listen(W,["touchend","mouseup"],this.endDrag,Z);this.useSetCapture_?(w.setCapture(!1),this.JSC$8055_eventHandler_.listen(w,"losecapture",this.endDrag)):this.JSC$8055_eventHandler_.listen(Av(W),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8055_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,Z);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=Iv(Ph(this.JSC$8055_document_))}};
_.t.endDrag=function(a,W){this.JSC$8055_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8055_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new qP("end",this,a.clientX,a.clientY,a,AwV(this,this.deltaX),h8H(this,this.deltaY),W||a.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.t.handleMove_=function(a){if(this.enabled_){var W=a.clientX-this.clientX,w=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.dragging_){var Z=this.startX-this.clientX,N=this.startY-this.clientY;if(Z*Z+N*N>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new qP("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}w=i3l(this,W,w);W=w.x;w=w.y;this.dragging_&&this.dispatchEvent(new qP("beforedrag",
this,a.clientX,a.clientY,a,W,w))&&(cwl(this,a,W,w),a.preventDefault())}};
var i3l=function(a,W,w){var Z=Iv(Ph(a.JSC$8055_document_));W+=Z.x-a.pageScroll.x;w+=Z.y-a.pageScroll.y;a.pageScroll=Z;a.deltaX+=W;a.deltaY+=w;return new _.r3(AwV(a,a.deltaX),h8H(a,a.deltaY))};
_.RZ.prototype.onScroll_=function(a){var W=i3l(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;cwl(this,a,W.x,W.y)};
var cwl=function(a,W,w,Z){a.target.style.left=w+"px";a.target.style.top=Z+"px";a.dispatchEvent(new qP("drag",a,W.clientX,W.clientY,W,w,Z))},AwV=function(a,W){var w=a.limits;
a=isNaN(w.left)?null:w.left;w=isNaN(w.width)?0:w.width;return Math.min(a!=null?a+w:Infinity,Math.max(a!=null?a:-Infinity,W))},h8H=function(a,W){var w=a.limits;
a=isNaN(w.top)?null:w.top;w=isNaN(w.height)?0:w.height;return Math.min(a!=null?a+w:Infinity,Math.max(a!=null?a:-Infinity,W))};
_.RZ.prototype.isDragging=function(){return this.dragging_};
var qP=function(a,W,w,Z,N,B,I){_.kO.call(this,a);this.clientX=w;this.clientY=Z;this.browserEvent=N;this.left=B!==void 0?B:W.deltaX;this.top=I!==void 0?I:W.deltaY};
_.NT(qP,_.kO);var Qq=function(a){this.JSC$8062_map_=new Map;var W=arguments.length;if(W>1){if(W%2)throw Error("oa");for(var w=0;w<W;w+=2)this.set(arguments[w],arguments[w+1])}else a&&this.addAll(a)};
_.t=Qq.prototype;_.t.getCount=function(){return this.JSC$8062_map_.size};
_.t.getValues=function(){return Array.from(this.JSC$8062_map_.values())};
_.t.getKeys=function(){return Array.from(this.JSC$8062_map_.keys())};
_.t.containsKey=function(a){return this.JSC$8062_map_.has(a)};
_.t.containsValue=function(a){return this.getValues().some(function(W){return W==a})};
_.t.equals=function(a,W){var w=this;W=W===void 0?function(Z,N){return Z===N}:W;
return this===a?!0:this.JSC$8062_map_.size!=a.getCount()?!1:this.getKeys().every(function(Z){return W(w.JSC$8062_map_.get(Z),a.get(Z))})};
_.t.isEmpty=function(){return this.JSC$8062_map_.size==0};
_.t.clear=function(){this.JSC$8062_map_.clear()};
_.t.remove=function(a){return this.JSC$8062_map_.delete(a)};
_.t.get=function(a,W){return this.JSC$8062_map_.has(a)?this.JSC$8062_map_.get(a):W};
_.t.set=function(a,W){this.JSC$8062_map_.set(a,W);return this};
_.t.addAll=function(a){if(a instanceof Qq){a=_.l(a.JSC$8062_map_);for(var W=a.next();!W.done;W=a.next()){var w=_.l(W.value);W=w.next().value;w=w.next().value;this.JSC$8062_map_.set(W,w)}}else if(a)for(a=_.l(Object.entries(a)),W=a.next();!W.done;W=a.next())w=_.l(W.value),W=w.next().value,w=w.next().value,this.JSC$8062_map_.set(W,w)};
_.t.forEach=function(a,W){var w=this;W=W===void 0?this:W;this.JSC$8062_map_.forEach(function(Z,N){return a.call(W,Z,N,w)})};
_.t.clone=function(){return new Qq(this)};(function(){for(var a=["ms","moz","webkit","o"],W,w=0;W=a[w]&&!_.NH.requestAnimationFrame;++w)_.NH.requestAnimationFrame=_.NH[W+"RequestAnimationFrame"],_.NH.cancelAnimationFrame=_.NH[W+"CancelAnimationFrame"]||_.NH[W+"CancelRequestAnimationFrame"];if(!_.NH.requestAnimationFrame){var Z=0;_.NH.requestAnimationFrame=function(N){var B=(new Date).getTime(),I=Math.max(0,16-(B-Z));Z=B+I;return _.NH.setTimeout(function(){N(B+I)},I)};
_.NH.cancelAnimationFrame||(_.NH.cancelAnimationFrame=function(N){clearTimeout(N)})}})();
var e8R=[[],[]],nqH=0,j0A=!1,LGE=0,FGA=function(a,W){var w=LGE++,Z={measureTask:{id:w,fn:a.measure,context:W},mutateTask:{id:w,fn:a.mutate,context:W},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(Z.args||(Z.args=[]),Z.args.length=0,Z.args.push.apply(Z.args,arguments),Z.args.push(Z.state)):Z.args&&Z.args.length!=0?(Z.args[0]=Z.state,Z.args.length=1):Z.args=[Z.state];Z.isScheduled||(Z.isScheduled=!0,e8R[nqH].push(Z));j0A||(j0A=!0,window.requestAnimationFrame(Jwy))}},Jwy=
function(){j0A=!1;
var a=e8R[nqH],W=a.length;nqH=(nqH+1)%2;for(var w,Z=0;Z<W;++Z){w=a[Z];var N=w.measureTask;w.isScheduled=!1;N.fn&&N.fn.apply(N.context,w.args)}for(Z=0;Z<W;++Z)w=a[Z],N=w.mutateTask,w.isScheduled=!1,N.fn&&N.fn.apply(N.context,w.args),w.state={};a.length=0};var MgH=_.ma(["about:blank"]),R8e=_.ma(["javascript:undefined"]),qw6=_.ya(MgH);_.IJ(qw6);var Q0J=_.ya(R8e);_.IJ(Q0J);var x$=function(a){_.Ti.call(this);this.JSC$8068_element_=a;this.listenKeyIn_=_.vX(this.JSC$8068_element_,"focus",this,!0);this.listenKeyOut_=_.vX(this.JSC$8068_element_,"blur",this,!0)};
_.NT(x$,_.Ti);x$.prototype.handleEvent=function(a){var W=new _.Ul(a.event_);W.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";this.dispatchEvent(W)};
x$.prototype.disposeInternal=function(){x$.superClass_.disposeInternal.call(this);Id(this.listenKeyIn_);Id(this.listenKeyOut_);delete this.JSC$8068_element_};var xYh=function(a,W){this.JSC$8071_element_=a;this.JSC$8071_dom_=W};var bc=function(a,W){J1.call(this,W);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=FGA({mutate:this.resizeBackground_},this);FGA({mutate:this.updateModalAndBackground_},this)};
_.NT(bc,J1);_.t=bc.prototype;_.t.focusHandler_=null;_.t.visible_=!1;_.t.bgEl_=null;_.t.bgIframeEl_=null;_.t.tabCatcherElement_=null;_.t.backwardTabWrapInProgress_=!1;_.t.getCssClass=function(){return"goog-modalpopup"};
_.t.getBackgroundElement=function(){return this.bgEl_};
_.t.JSC$8052_createDom=function(){bc.superClass_.JSC$8052_createDom.call(this);var a=this.getElement(),W=kI(this.getCssClass()).split(" ");ug(a,W);a.tabIndex=0;_.QS(a,!1);b3H(this);s0T(this)};
var b3H=function(a){if(a.useIframeMask_&&!a.bgIframeEl_){var W=a.JSC$8050_dom_.JSC$7235_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.nv(W,qw6);a.bgIframeEl_=W;a.bgIframeEl_.className=a.getCssClass()+"-bg";_.QS(a.bgIframeEl_,!1);bKl(a.bgIframeEl_,0)}a.bgEl_||(a.bgEl_=a.JSC$8050_dom_.JSC$7235_createDom("DIV",a.getCssClass()+"-bg"),_.QS(a.bgEl_,!1))},s0T=function(a){a.tabCatcherElement_||(a.tabCatcherElement_=a.JSC$8050_dom_.createElement("SPAN"),_.QS(a.tabCatcherElement_,
!1),a.tabCatcherElement_.tabIndex=0,a.tabCatcherElement_.style.position="absolute")};
_.t=bc.prototype;_.t.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.t.canDecorate=function(a){return!!a&&a.tagName=="DIV"};
_.t.decorateInternal=function(a){bc.superClass_.decorateInternal.call(this,a);a=kI(this.getCssClass()).split(" ");ug(this.getElement(),a);b3H(this);s0T(this);this.getElement().tabIndex=0;_.QS(this.getElement(),!1)};
_.t.enterDocument=function(){this.bgIframeEl_&&_.j5(this.bgIframeEl_,this.getElement());_.j5(this.bgEl_,this.getElement());bc.superClass_.enterDocument.call(this);_.LI(this.tabCatcherElement_,this.getElement());this.focusHandler_=new x$(this.JSC$8050_dom_.JSC$7233_document_);FH(this).listen(this.focusHandler_,"focusin",this.onFocus);uQ$(this,!1)};
_.t.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.d3(this.focusHandler_);bc.superClass_.exitDocument.call(this);_.Xh(this.bgIframeEl_);_.Xh(this.bgEl_);_.Xh(this.tabCatcherElement_)};
_.t.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_&&uQ$(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8050_dom_.JSC$7233_document_.activeElement}catch(N){}this.updateModalAndBackground_();FH(this).listen(this.JSC$8050_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8050_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);Cd_(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)lx(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){FH(this).unlisten(this.JSC$8050_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8050_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)lx(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var W=this.JSC$8050_dom_,w=W.JSC$7233_document_.body,Z=W.JSC$7233_document_.activeElement||w;if(!this.lastFocus_||this.lastFocus_==w){this.lastFocus_=null;break a}(Z==w||W.contains(this.getElement(),Z))&&this.lastFocus_.focus()}catch(N){}this.lastFocus_=
null}}};
var uQ$=function(a,W){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new xYh(a.JSC$8050_element_,a.JSC$8050_dom_));a=a.modalAriaVisibilityHelper_;if(W){a.hiddenElements_||(a.hiddenElements_=[]);W=a.JSC$8071_dom_.getChildren(a.JSC$8071_dom_.JSC$7233_document_.body);for(var w=0;w<W.length;w++){var Z=W[w],N;if(N=Z!=a.JSC$8071_element_)N=Z.getAttribute("aria-hidden"),N=!(N==null||N==void 0?0:String(N));N&&(MP(Z,"hidden",!0),a.hiddenElements_.push(Z))}}else if(a.hiddenElements_){for(W=0;W<
a.hiddenElements_.length;W++)a.hiddenElements_[W].removeAttribute("aria-hidden");a.hiddenElements_=null}};
bc.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var Cd_=function(a,W){a.bgIframeEl_&&_.QS(a.bgIframeEl_,W);a.bgEl_&&_.QS(a.bgEl_,W);_.QS(a.getElement(),W);_.QS(a.tabCatcherElement_,W)};
_.t=bc.prototype;_.t.onShow=function(){this.dispatchEvent("show")};
_.t.onHide=function(){Cd_(this,!1);this.dispatchEvent("hide")};
_.t.isVisible=function(){return this.visible_};
_.t.focus=function(){this.focusElement_()};
_.t.resizeBackground_=function(){this.bgIframeEl_&&_.QS(this.bgIframeEl_,!1);this.bgEl_&&_.QS(this.bgEl_,!1);var a=this.JSC$8050_dom_.JSC$7233_document_;var W=_.lf(Av(this.JSC$8050_dom_.JSC$7233_document_)||window);var w=Math.max(W.width,Math.max(a.body.scrollWidth,a.documentElement.scrollWidth));a=Math.max(W.height,Math.max(a.body.scrollHeight,a.documentElement.scrollHeight));this.bgIframeEl_&&(_.QS(this.bgIframeEl_,!0),_.RD_(this.bgIframeEl_,w,a));this.bgEl_&&(_.QS(this.bgEl_,!0),_.RD_(this.bgEl_,
w,a))};
_.t.reposition=function(){var a;if(_.M0E(this.getElement())=="fixed")var W=a=0;else W=Iv(this.JSC$8050_dom_),a=W.x,W=W.y;var w=QER(this.getElement());var Z=_.lf(Av(this.JSC$8050_dom_.JSC$7233_document_)||window);a=Math.max(a+Z.width/2-w.width/2,0);W=Math.max(W+Z.height/2-w.height/2,0);QK(this.getElement(),a,W);QK(this.tabCatcherElement_,a,W)};
_.t.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&hd(this.focusElement_,0,this)};
_.t.focusElement_=function(){try{this.getElement().focus()}catch(a){}};
_.t.disposeInternal=function(){_.d3(this.popupShowTransition_);this.popupShowTransition_=null;_.d3(this.popupHideTransition_);this.popupHideTransition_=null;_.d3(this.bgShowTransition_);this.bgShowTransition_=null;_.d3(this.bgHideTransition_);this.bgHideTransition_=null;bc.superClass_.disposeInternal.call(this)};var cM=function(a,W,w){bc.call(this,W,w);this.JSC$8081_class_=a||"modal-dialog";this.buttons_=(new s1).addButton(G4J,!0).addButton(DYT,!1,!0)};
_.NT(cM,bc);_.t=cM.prototype;_.t.escapeToCancel_=!0;_.t.hasTitleCloseButton_=!0;_.t.modal_=!0;_.t.draggable_=!0;_.t.backgroundElementOpacity_=.5;_.t.title_="";_.t.JSC$8083_dragger_=null;_.t.JSC$8083_disposeOnHide_=!1;_.t.titleEl_=null;_.t.titleTextEl_=null;_.t.titleTextId_=null;_.t.titleCloseEl_=null;_.t.contentEl_=null;_.t.buttonEl_=null;_.t.getCssClass=function(){return this.JSC$8081_class_};
_.t.setTitle=function(a){this.title_=a;this.titleTextEl_&&_.FD(this.titleTextEl_,a)};
_.t.getTitle=function(){return this.title_};
_.t.getContent=function(){return""};
_.t.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var fpL=function(a){a.getElement()||a.render();return a.getElement()};
cM.prototype.getBackgroundElement=function(){this.getElement()||this.render();return cM.superClass_.getBackgroundElement.call(this)};
var dYH=function(a,W){a.backgroundElementOpacity_=W;a.getElement()&&(W=a.getBackgroundElement())&&bKl(W,a.backgroundElementOpacity_)};
cM.prototype.setDraggable=function(a){this.draggable_=a;mYR(this,a&&this.inDocument_)};
cM.prototype.JSC$8083_handleDrag=function(){};
var mYR=function(a,W){var w=kI(a.JSC$8081_class_+"-title-draggable").split(" ");a.getElement()&&(W?ug(a.titleEl_,w):AKT(a.titleEl_,w));W&&!a.JSC$8083_dragger_?(W=new _.RZ(a.getElement(),a.titleEl_),a.JSC$8083_dragger_=W,ug(a.titleEl_,w),_.vX(a.JSC$8083_dragger_,"start",a.setDraggerLimits_,!1,a),_.vX(a.JSC$8083_dragger_,"drag",a.JSC$8083_handleDrag,!1,a)):!W&&a.JSC$8083_dragger_&&(a.JSC$8083_dragger_.dispose(),a.JSC$8083_dragger_=null)};
_.t=cM.prototype;
_.t.JSC$8052_createDom=function(){cM.superClass_.JSC$8052_createDom.call(this);var a=this.getElement(),W=this.JSC$8050_dom_;this.titleTextId_=this.getId();var w=this.getId()+".contentEl";this.titleEl_=W.JSC$7235_createDom("DIV",this.JSC$8081_class_+"-title",this.titleTextEl_=W.JSC$7235_createDom("SPAN",{className:this.JSC$8081_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=W.JSC$7235_createDom("SPAN",this.JSC$8081_class_+"-title-close"));k0_(a,this.titleEl_,this.contentEl_=
W.JSC$7235_createDom("DIV",{className:this.JSC$8081_class_+"-content",id:w}),this.buttonEl_=W.JSC$7235_createDom("DIV",this.JSC$8081_class_+"-buttons"));KG6(this.titleTextEl_,"heading");KG6(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;MP(this.titleCloseEl_,"label","Close");KG6(a,"dialog");MP(a,"labelledby",this.titleTextId_||"");_.QS(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.JSC$8084_element_=this.buttonEl_,a.render());_.QS(this.buttonEl_,!!this.buttons_);
dYH(this,this.backgroundElementOpacity_)};
_.t.decorateInternal=function(a){cM.superClass_.decorateInternal.call(this,a);a=this.getElement();var W=this.JSC$8081_class_+"-content";this.contentEl_=A9(document,null,W,a)[0];this.contentEl_||(this.contentEl_=this.JSC$8050_dom_.JSC$7235_createDom("DIV",W),a.appendChild(this.contentEl_));W=this.JSC$8081_class_+"-title";var w=this.JSC$8081_class_+"-title-text",Z=this.JSC$8081_class_+"-title-close";(this.titleEl_=A9(document,null,W,a)[0])?(this.titleTextEl_=A9(document,null,w,this.titleEl_)[0],this.titleCloseEl_=
A9(document,null,Z,this.titleEl_)[0]):(this.titleEl_=this.JSC$8050_dom_.JSC$7235_createDom("DIV",W),a.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=ndH(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.iE("SPAN",{className:w,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;MP(a,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8050_dom_.JSC$7235_createDom("SPAN",
Z),this.titleEl_.appendChild(this.titleCloseEl_));_.QS(this.titleCloseEl_,this.hasTitleCloseButton_);W=this.JSC$8081_class_+"-buttons";(this.buttonEl_=A9(document,null,W,a)[0])?(this.buttons_=new s1(this.JSC$8050_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8050_dom_.JSC$7235_createDom("DIV",W),a.appendChild(this.buttonEl_),this.buttons_&&(a=this.buttons_,a.JSC$8084_element_=this.buttonEl_,a.render()),_.QS(this.buttonEl_,!!this.buttons_));dYH(this,this.backgroundElementOpacity_)};
_.t.enterDocument=function(){cM.superClass_.enterDocument.call(this);FH(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);FH(this).listen(this.buttonEl_,"click",this.onButtonClick_);mYR(this,this.draggable_);FH(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();KG6(a,"dialog");this.titleTextEl_.id!==""&&MP(a,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){a=this.JSC$8050_dom_;
var W=this.getBackgroundElement();a.removeNode(this.bgIframeEl_);a.removeNode(W)}this.isVisible()&&uQ$(this,!1)}};
_.t.exitDocument=function(){this.isVisible()&&this.setVisible(!1);mYR(this,!1);cM.superClass_.exitDocument.call(this)};
_.t.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),cM.superClass_.setVisible.call(this,a))};
_.t.onShow=function(){cM.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.t.onHide=function(){cM.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8083_disposeOnHide_&&this.dispose()};
_.t.setDraggerLimits_=function(){var a=this.JSC$8050_dom_.JSC$7233_document_,W=_.lf(Av(a)||window),w=Math.max(a.body.scrollWidth,W.width);a=Math.max(a.body.scrollHeight,W.height);var Z=QER(this.getElement());_.M0E(this.getElement())=="fixed"?this.JSC$8083_dragger_.limits=new MS(0,0,Math.max(0,W.width-Z.width),Math.max(0,W.height-Z.height)):this.JSC$8083_dragger_.limits=new MS(0,0,w-Z.width,a-Z.height)};
_.t.onTitleCloseClick_=function(){Vgy(this)};
var Vgy=function(a){if(a.hasTitleCloseButton_){var W=a.buttons_,w=W&&W.cancelButton_;w?(W=W.get(w),a.dispatchEvent(new uc(w,W))&&a.setVisible(!1)):a.setVisible(!1)}},z8R=function(a){a.hasTitleCloseButton_=!1;
a.titleCloseEl_&&_.QS(a.titleCloseEl_,a.hasTitleCloseButton_)};
cM.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;cM.superClass_.disposeInternal.call(this)};
cM.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 W=this.buttons_.get(a);this.dispatchEvent(new uc(a,W))&&this.setVisible(!1)}};
cM.prototype.onKey_=function(a){var W=!1,w=!1,Z=this.buttons_,N=a.target;if(a.type=="keydown")if(this.escapeToCancel_&&a.keyCode==27){var B=Z&&Z.cancelButton_;N=N.tagName=="SELECT"&&!N.disabled;B&&!N?(w=!0,W=Z.get(B),W=this.dispatchEvent(new uc(B,W))):N||(W=!0)}else{if(a.keyCode==9&&a.shiftKey&&N==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(O){}hd(this.resetBackwardTabWrap_,0,this)}}else if(a.keyCode==13){if(N.tagName=="BUTTON"&&!N.disabled)B=N.name;
else if(N==this.titleCloseEl_)Vgy(this);else if(Z){var I=Z.defaultButton_,X;if(X=I)a:{X=gh("BUTTON",Z.JSC$8084_element_);for(var v,U=0;v=X[U];U++)if(v.name==I||v.id==I){X=v;break a}X=null}N=(N.tagName=="TEXTAREA"||N.tagName=="SELECT"||N.tagName=="A")&&!N.disabled;!X||X.disabled||N||(B=I)}B&&Z&&(w=!0,W=this.dispatchEvent(new uc(B,String(Z.get(B)))))}else N!=this.titleCloseEl_||a.keyCode!=32&&a.key!=" "||Vgy(this);if(W||w)a.stopPropagation(),a.preventDefault();W&&this.setVisible(!1)};
var uc=function(a,W){this.type="dialogselect";this.key=a;this.caption=W};
_.NT(uc,_.kO);var s1=function(a){Qq.call(this);a||Ph();this.cancelButton_=this.JSC$8084_element_=this.defaultButton_=null};
_.NT(s1,Qq);_.t=s1.prototype;_.t.clear=function(){Qq.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.t.set=function(a,W,w,Z){Qq.prototype.set.call(this,a,W);w&&(this.defaultButton_=a);Z&&(this.cancelButton_=a);return this};
_.t.addButton=function(a,W,w){return this.set(a.key,a.caption,W,w)};
_.t.render=function(){if(this.JSC$8084_element_){_.xf(this.JSC$8084_element_,iF9);var a=Ph(this.JSC$8084_element_);this.forEach(function(W,w){W=a.JSC$7235_createDom("BUTTON",{name:w},W);w==this.defaultButton_&&(W.className="goog-buttonset-default");this.JSC$8084_element_.appendChild(W)},this)}};
_.t.decorate=function(a){if(a&&a.nodeType==1){this.JSC$8084_element_=a;a=gh("BUTTON",this.JSC$8084_element_);for(var W,w,Z,N=0;W=a[N];N++)if(w=W.name||W.id,Z=ndH(W)||W.value,w){var B=N==0;this.set(w,Z,B,W.name=="cancel");B&&_.QD(W,"goog-buttonset-default")}}};
_.t.getElement=function(){return this.JSC$8084_element_};
var G4J={key:"ok",caption:"OK"},DYT={key:"cancel",caption:"Cancel"},H3e={key:"yes",caption:"Yes"},ywJ={key:"no",caption:"No"},Eq$={key:"save",caption:"Save"},aVH={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new s1).addButton(G4J,!0,!0),(new s1).addButton(G4J,!0).addButton(DYT,!1,!0),(new s1).addButton(H3e,!0).addButton(ywJ,!1,!0),(new s1).addButton(H3e).addButton(ywJ,!0).addButton(DYT,!1,!0),(new s1).addButton(aVH).addButton(Eq$).addButton(DYT,!0,!0));_.NT(kUm,cM);_.NT(UxF,ek);var WQE=_.ma(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),wIE=_.ma(["//apis.google.com/js/rpc.js"]),hqx=_.ya(WQE),ASe=_.ya(wIE),Ste=null;var nr=function(a,W){_.Ti.call(this);this.JSC$8093_element_=a;a=_.GK(this.JSC$8093_element_)?this.JSC$8093_element_:this.JSC$8093_element_?this.JSC$8093_element_.body:null;this.isRtl_=!!a&&_.sEl(a);this.listenKey_=_.vX(this.JSC$8093_element_,_.IY?"DOMMouseScroll":"mousewheel",this,W)};
_.NT(nr,_.Ti);nr.prototype.handleEvent=function(a){var W=0,w=0,Z=a.event_;Z.type=="mousewheel"?(a=ZJy(-Z.wheelDelta),Z.wheelDeltaX!==void 0?(W=ZJy(-Z.wheelDeltaX),w=ZJy(-Z.wheelDeltaY)):w=a):(a=Z.detail,a>100?a=3:a<-100&&(a=-3),Z.axis!==void 0&&Z.axis===Z.HORIZONTAL_AXIS?W=a:w=a);typeof this.maxDeltaX_==="number"&&(W=_.M9(W,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(w=_.M9(w,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(W=-W);W=new Noe(a,Z,W,w);this.dispatchEvent(W)};
var ZJy=function(a){return _.Pz&&(_.zZF||y_E)&&a%40!=0?a:a/40};
nr.prototype.disposeInternal=function(){nr.superClass_.disposeInternal.call(this);Id(this.listenKey_);this.listenKey_=null};
var Noe=function(a,W,w,Z){_.Ul.call(this,W);this.type="mousewheel";this.detail=a;this.deltaX=w;this.deltaY=Z};
_.NT(Noe,_.Ul);_.lV=function(a){var W="instance_";if(a.instance_&&a.hasOwnProperty(W))return a.instance_;W=new a;return a.instance_=W};var rSx;var t6e=_.ma(["https://about:blank"]),$E6=_.ma(['javascript:""']),Bo6=_.ma(["about:blank"]);_.NT(x3,kUm);_.t=x3.prototype;_.t.JSC$8101_url_="";_.t.JSC$8101_iframe_=null;_.t.iframeLoaded_=!1;_.t.loadedFired_=!1;_.t.callback_=function(){};
_.t.enterDocument=function(){x3.superClass_.enterDocument.call(this);KBe(this.getBackgroundElement(),FH(this))};
_.t.render=function(a){var W=this;x3.superClass_.render.call(this,a);this.useGapi_?BzL(this.iframeManager_,window).then(function(){return lVR(W)}).then(null,function(){W.callback_({action:"error"})}):IVR(this)};
var lVR=function(a){var W=a.JSC$8050_dom_.JSC$7235_createDom("div",["picker-dialog-content","picker-frame"]);_.QS(W,!1);a.getContentElement().appendChild(W);return lpR(a.iframeManager_,W,function(w){var Z=RRT(w["iframe-command"]);switch(Z.getCommand()){case 1:w=a.callback_;Z=_.Hi(Z,ak,2);var N="";switch(Z.getStatus()){case 2:N="cancel";break;case 1:N="picked";break;case 3:N="error"}var B=_.z5(Z,iB,2,_.Hh(pUF));Z=B.length===0?{action:N}:CGh(B,N,_.Hi(Z,JIh,7));w.call(a,Z);a.setVisible(!1);break;case 4:z8R(a);
a.callback_({action:"loaded"});break;case 7:case 8:w=a.callback_;a:{N=Z.getCommand();B=_.Hi(Z,ak,2);switch(N){case 7:N="uploadScheduled";break;case 8:N="uploadStateChange";break;default:Z={};break a}Z=_.z5(B,iB,2,_.Hh(pUF));if(Z.length===0)Z={action:N};else{var I=_.Hi(B,JIh,7);B=I&&_.Lo(I,1);I=LBV(I);Z=Mme(Z,N,B,I)}}w.call(a,Z)}},a.JSC$8101_url_,a.targetId_,a.rpcToken_).then(function(w){a.JSC$8101_iframe_=w.getIframeEl();
PnE(a);_.QS(a.JSC$8101_iframe_.parentElement,!0);_.QD(a.getElement(),"picker-dialog");XIl(a);return w})},IVR=function(a){a.JSC$8101_iframe_=a.JSC$8050_dom_.JSC$7235_createDom("IFRAME",{id:a.targetId_,
name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.nv(a.JSC$8101_iframe_,vmL(a));_.QD(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.JSC$8101_iframe_);FH(a).listen(a.JSC$8101_iframe_,"load",function(){return void PnE(a)});
a.JSC$8101_iframe_.src=a.JSC$8101_url_;XIl(a)},omH=function(a){gmR(a,(0,_.Sk)(function(W){W.setAuthToken(this.targetId_,this.rpcToken_)},a))},XIl=function(a){var W=_.R$(_.MF(a.JSC$8101_url_),"title");
W&&a.setTitle(W)},vmL=function(a){return _.Xve("Internet Explorer")>=7&&_.IC(a.JSC$8101_url_,"https")?_.ya(t6e):_.lB?_.ya($E6):_.ya(Bo6)},PnE=function(a){omH(a);
a.iframeLoaded_=!0;a.JSC$8101_iframe_.tabIndex=0;a.isVisible()&&a.focus()};
x3.prototype.handleKeydown_=function(a){a.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};
var gmR=function(a,W){var w=a.JSC$8099_gadgetsDomHelper_;YtE(function(){W(w.getWindow().gadgets.rpc)},w)};
x3.prototype.setUrl=function(a){a=_.qF(new _.CS(a),"rpcService",this.targetId_);_.qF(a,"rpctoken",this.rpcToken_);_.wI(a,"rpctoken="+this.rpcToken_);_.H5(a,"https");this.JSC$8101_url_=a.toString();this.JSC$8101_iframe_&&(this.JSC$8101_iframe_.src=this.JSC$8101_url_)};
var kKA=function(a,W){a.callback_=W;gmR(a,(0,_.Sk)(function(w){w.register(this.targetId_,(0,_.Sk)(this.handlePickerAction_,this))},a))};
x3.prototype.handlePickerAction_=function(a){var W=a.action;W=="loaded"&&(this.loadedFired_=!0,UER(this,new o6S(this.isVisible())),OJR(this),z8R(this),FH(this).unlisten(this.JSC$8050_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8101_iframe_.tabIndex=0);W!="picked"&&W!="cancel"||this.setVisible(!1);this.callback_(a)};
var OJR=function(a){a.JSC$8101_appId_&&UER(a,new g69(a.JSC$8101_appId_,window.location.protocol+"//"+window.location.host))};
x3.prototype.setRelayUrl=function(a){gmR(this,(0,_.Sk)(function(W){W.setRelayUrl(this.targetId_,a)},this))};
var UER=function(a,W){a.useGapi_&&gql(W,a.iframeManager_).then(null,function(){a.callback_({action:"error"})});
gmR(a,(0,_.Sk)(function(w){w.call(this.targetId_,"picker",null,W)},a))};
x3.prototype.resizePicker_=function(){var a=Av(this.JSC$8050_dom_.JSC$7233_document_)||window;if(_.R$(_.MF(this.JSC$8101_url_),"ignoreLimits")=="true")a=new _.Bh(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.R$(_.MF(this.JSC$8101_url_),"shadeDialog")=="true"){var W=fpL(this);W=uXh(W);var w=_.lf(a);a=w.width-80;w=w.height-40;W&&(a-=W.left?W.left:0,a-=W.right?W.right:0,w-=W.top?W.top:0,w-=W.bottom?W.bottom:0);a=new _.Bh(a>0?a:0,w>0?w:0)}else(W=this.preferredDialogWidth_)?(W=Math.max(320,
Math.min(1051,W)),(w=this.preferredDialogHeight_)||(w=_.lf(a).height*.85),w=Math.max(480,Math.min(650,w))):(W=_.lf(a),w=W.width*.618,w=w<W.height?Math.round(Math.max(480,Math.min(650,w*.85))):Math.round(Math.max(480,Math.min(650,W.height*.85))),W=Math.round(w/.618)),a=_.lf(a),W=Math.min(W,Math.max(a.width,320)),w=Math.min(w,Math.max(a.height,480)),a=new _.Bh(W,w);_.RD_(this.getContentElement(),a);this.reposition()};
x3.prototype.reposition=function(){if(_.R$(_.MF(this.JSC$8101_url_),"shadeDialog")=="true"){var a=QER(this.getElement()),W=_.lf(this.JSC$8050_dom_.getWindow());a=Math.floor(W.width/2-a.width/2);W=fpL(this);if(W=uXh(W)){var w=W.left?W.left:0;w+=W.right?W.right:0;a=Math.floor(a-w/2)}a=a>0?a:0;W=Iv(this.JSC$8050_dom_).y;QK(this.getElement(),a,W)}else x3.superClass_.reposition.call(this)};
x3.prototype.setVisible=function(a){if(a!=this.isVisible()&&this.autoSizeDialog_){var W=this.JSC$8050_dom_.getWindow();a?(this.resizePicker_(),FH(this).listen(W,"resize",this.resizePicker_),this.iframeLoaded_||FH(this).listen(W,"keydown",this.handleKeydown_)):(FH(this).unlisten(W,"resize",this.resizePicker_),this.iframeLoaded_||FH(this).unlisten(W,"keydown",this.handleKeydown_))}x3.superClass_.setVisible.call(this,a);UER(this,new o6S(a))};
x3.prototype.focus=function(){x3.superClass_.focus.call(this);if(this.JSC$8101_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8101_iframe_.focus()}catch(a){}};var ko=function(a,W){W=W===void 0?x3:W;ek.call(this,a);this.pickerConstructor=W;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_=[]};
_.c(ko,UxF);ko.prototype.JSC$8106_disposeOnHide_=!1;
ko.prototype.build=function(){this.JSC$8007_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8007_appId_);this.getRelayUrl()||this.setRelayUrl(_.aZ(_.wI(_.Wy(_.MF(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var a=new this.pickerConstructor(Sxy(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);a.JSC$8083_disposeOnHide_=this.JSC$8106_disposeOnHide_;
a.JSC$8101_appId_=this.JSC$8007_appId_;a.loadedFired_&&OJR(a);kKA(a,this.callback_);return a};
var YxT=function(a){a.urlParamMap_.set("multiselectEnabled","true");return a};
ko.prototype.getHeight=function(){return this.dialogHeight_};
ko.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
ko.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
ko.prototype.getWidth=function(){return this.dialogWidth_};
var ToL=function(a){a.JSC$8106_disposeOnHide_=void 0;return a};
ko.prototype.setRelayUrl=function(a){this.urlParamMap_.set("parent",a);return this};
var KQR=function(a,W){a.urlParamMap_.set("selectButtonLabel",W);return a};
ko.prototype.setSize=function(a,W){this.dialogWidth_=a;this.dialogHeight_=W;return this};
ko.prototype.setTitle=function(a){this.urlParamMap_.set("title",a);return this};
var Sxy=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",cSR(a.nav_));var W=new _.CS(a.getBaseUrl());a.urlParamMap_.forEach(function(w,Z){_.qF(W,Z,w)});
return W};var AFl=function(a,W){a.name!==void 0?(this.name=a.name,this.code=pIR[a.name]):(this.code=a=a.code,this.name=rF6(a));_.Wv.call(this,ymy("%s %s",this.name,W))};
_.NT(AFl,_.Wv);var rF6=function(a){var W=_.T5.findKey(pIR,function(w){return a==w});
if(W===void 0)throw Error("lb`"+a);return W},C9={},pIR=(C9.AbortError=3,C9.EncodingError=5,C9.InvalidModificationError=9,C9.InvalidStateError=7,C9.NotFoundError=1,C9.NotReadableError=4,C9.NoModificationAllowedError=6,C9.PathExistsError=12,C9.QuotaExceededError=10,C9.SecurityError=2,C9.SyntaxError=8,C9.TypeMismatchError=11,C9);var h2J=function(a,W){_.kO.call(this,a.type,W);this.event_=a};
_.NT(h2J,_.kO);var iJe=function(a,W,w){w===void 0&&(w=a.size);return a.slice?a.slice(W,w):null};var eqD=new WeakMap,cSI=function(a,W){a=[a];for(var w=W.length-1;w>=0;--w)a.push(typeof W[w],W[w]);return a.join("\v")};_.jTU(function(){if(!_.NH.Blob)return!1;var a=new Uint8Array(100);try{var W=new Blob([a])}catch(w){return!1}return W.size!=100?!1:!0});
var cFl=_.jTU(function(){if(!_.NH.Blob)return!1;var a=new Uint8Array(100);try{var W=new Blob([a])}catch(w){return!1}return iJe(W,0,1)===null?!1:!0});_.NH.U3bHHf!=null||(_.NH.U3bHHf=0);_.NH.U3bHHf++;var JSE={};var Cr=void 0;var MmC=Symbol("tb");var dxH=Df("WizInjectionContext_Dispatcher");var ufe=Df("WizInjectionContext_RootElement");var GUD=Df("WizInjectionContext_AppContext"),CG8=Df("WizInjectionContext_ModelRootElement"),DxU=Df("WizInjectionContext_RendererData"),f7e=Df("WizInjectionContext_InjectingConstructor"),sT8=Df("WizInjectionContext_AsyncDeps"),mxF={};var E6m=!1;var e2A=Symbol("xb"),fpm=Symbol("yb"),z8I=Symbol("zb"),mYS=Symbol("Ab"),ZJH=V_(function(a){return zO(a)&&e2A in a});var Z3m={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:CWm,enableLazyTsx:GL7,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var VS=Object.assign({},{attributes:{},handleError:function(a){throw a;}},Z3m);var IpC=Symbol("Bb"),G_={},Bzm=(G_[IpC]=!0,G_.debugName="[component]",G_.getComponentStack=function(){for(var a=[],W=this;W;)Pdv(W)&&a.push(W.debugName),W=W.parent;return a},G_.registerSignal=function(){},G_.registerEffect=function(){},G_);var HM=null,Wa=!1,UYx=1,Nk=Symbol("Cb"),Pa={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var D$=Symbol("Db"),f9=Symbol("Eb"),ZT=Symbol("Fb"),Aw9=Object.assign({},Pa,{value:D$,dirty:!0,error:null,equal:Xim,kind:"computed",producerMustRecompute:function(a){return a.value===D$||a.value===f9},
producerRecomputeValue:function(a){if(a.value===f9)throw Error("da");var W=a.value;a.value=f9;var w=KG7(a),Z=!1;try{var N=a.computation();yS(null);Z=W!==D$&&W!==ZT&&N!==ZT&&a.equal(W,N)}catch(B){N=ZT,a.error=B}finally{piv(a,w)}Z?a.value=W:(a.value=N,a.version++)}});var nqe=function(){throw Error();};var LGD=null,i3v=Object.assign({},Pa,{equal:Xim,value:void 0,kind:"signal"});Object.assign({},Pa,{value:D$,dirty:!0,error:null,equal:Xim,kind:"linkedSignal",producerMustRecompute:function(a){return a.value===D$||a.value===f9},
producerRecomputeValue:function(a){if(a.value===f9)throw Error("da");var W=a.value;a.value=f9;var w=KG7(a);try{var Z=a.source();var N=a.computation(Z,W===D$||W===ZT?void 0:{source:a.sourceValue,value:W});a.sourceValue=Z}catch(B){N=ZT,a.error=B}finally{piv(a,w)}W!==D$&&N!==ZT&&a.equal(W,N)?a.value=W:(a.value=N,a.version++)}});Object.assign({},Pa,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(a){a.schedule!==null&&a.schedule(a.ref)},
hasRun:!1,cleanupFn:function(){}});var FGe=Symbol("Gb"),Ba=Symbol("Hb");var lk=Array.isArray;var CdF;var nm$={},DYE=uQx(Object.assign({},{consumerAllowSignalWrites:!0},nm$)),PS=uQx(Object.assign({},{consumerAllowSignalWrites:!0},nm$));var gj=0,dI=function(){this.queue=new Set};
dI.prototype.remove=function(a){this.queue.delete(a)};
dI.prototype.clear=function(){this.queue.clear()};
var jxJ=function(){dI.apply(this,arguments)};
_.c(jxJ,dI);jxJ.prototype.schedule=function(a){this.queue.add(a)};
jxJ.prototype.flush=function(){if(this.queue.size)for(var a=_.l(this.queue),W=a.next();!W.done;W=a.next()){W=W.value;this.queue.delete(W);try{W.run()}catch(w){LQR(w)}}};
var JFl=new jxJ,m1=function(){dI.apply(this,arguments)};
_.c(m1,dI);var FQh=function(){m1.apply(this,arguments)};
_.c(FQh,m1);FQh.prototype.schedule=function(a){a.hasRun?this.queue.add(a):a.run()};
FQh.prototype.flush=function(){if(this.queue.size){var a=this.queue;this.queue=new Set;NoC(a)}};
var dYe=new FQh,M6V=function(){m1.apply(this,arguments)};
_.c(M6V,m1);M6V.prototype.schedule=function(a){var W=this;return _.P(function(w){if(w.nextAddress==1)return a.hasRun?w.jumpTo(2):_.g(w,Promise.resolve(),3);if(w.nextAddress!=2)return a.run(),w.return();W.queue.add(a);_.Xd(w)})};
M6V.prototype.flush=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1){if(!a.queue.size)return w.return();W=a.queue;a.queue=new Set;return _.g(w,Promise.resolve(),2)}NoC(W);_.Xd(w)})};
var H3C=new M6V,R2R=function(){m1.apply(this,arguments)};
_.c(R2R,m1);R2R.prototype.schedule=function(a){this.queue.add(a)};
R2R.prototype.flush=function(){this.queue.size&&NoC(this.queue)};
var VgH=new R2R,WQD=[dYe,JFl,VgH,H3C],qx$=[dYe,VgH,H3C],Eqx=[];LGD=function(){wID();for(var a=_.l(Eqx),W=a.next();!W.done;W=a.next())W=W.value,W()};
var LQR=$I;var k1=Symbol("Mb");var ou=null,lVS,IVS=null,PnD;var Vq={},QxH=Object.assign({},Pa,(Vq[e2A]=!0,Vq.effectType=fpm,Vq.isResettableContext=!0,Vq.producerNode=void 0,Vq.hasRun=!1,Vq.effectFn=null,Vq.consumerIsAlwaysLive=!0,Vq.consumerAllowSignalWrites=!0,Vq.consumerMarkedDirty=ywU,Vq.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Wa)throw Error("Nb");this.dirty=!1;if(!this.hasRun||O3e(this)){this.hasRun=!0;bFF(this);var a=GO(this),W=KG7(this);tgx("effectRun",this.debugName);try{VS.enableContextBasedComponentStacks?this.effectFn():Tv(this.effectFn,
this.componentStack)}catch(w){throw VS.enableContextBasedComponentStacks&&Y1(w),w;}finally{$YF("effectRun",this.debugName),piv(this,W),GO(a)}}}},Vq.componentStack=void 0,Vq.debugName="[effect]",Vq[Symbol.dispose]=function(){vq7(this);
if(wj(this))for(var a=0;a<this.producerNode.length;a++)gqv(this.producerNode[a],this.producerIndexOfThis[a]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);a=_.l(qx$);for(var W=a.next();!W.done;W=a.next())W.value.remove(this);xxF(this)},Vq));var gmI=Object.assign({},QxH,{effectType:z8I});var ome=Object.assign({},QxH,{effectType:fpm});var kKe=Symbol("Ob");var HJv=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var zv=Symbol("Pb");var lG=function(){},oT=function(a){this.props=a;
this.__unmounted=!1};
oT.prototype.didPatch=function(){};
oT.prototype.didMount=function(){};
oT.prototype.didUnmount=function(){};
oT.prototype.didUpdate=function(){};var SxH={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,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,
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,valign:1,value:1,width:1,wrap:1},OJI={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}]}},G1U={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},KQI=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Tom={"*":{async:1,dir:0,loading:2,target:3}};var xER=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,z_={},rF7=(z_[1]=null,z_[2]=function(a,W){return W instanceof iq?eB(W):O0.toString()},z_[3]=function(a,W){return g5(W)?_.oJ(W):xER.test(String(W))?String(W):O0.toString()},z_[4]=function(a,W){return W instanceof BP?_.IJ(W):O0.toString()},z_[5]=function(a,W){return String(W)},z_[7]=null,z_[8]=null,z_[10]=null,z_);var v_D=Symbol("Sb");var aNv=function(a){var W=bJ_,w=a,Z="",N="",B=1;a<0&&(a=-a);if(a===Infinity)a=(Infinity*Math.sign(w)).toString();else{for(var I=0;I<sxT.length;I++){var X=sxT[I];B=W[X];if(a>=B||B<=1&&a>.1*B){Z=X;break}}Z?(Z+="B",N=" "):B=1;a=Math.round(w/B*10)/10+N+Z}return a},sxT="Y Z E P T G M K  m u n".split(" "),bJ_={"":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};_.uUy=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 Z7={};RegExp.prototype.hasOwnProperty("sticky");var a8I=function(a){a=String(a);for(var W=function(Z,N,B){for(var I=Math.min(N.length-B,Z.length),X=0;X<I;X++){var v=N[B+X];if(Z[X]!==("A"<=v&&v<="Z"?v.toLowerCase():v))return!1}return!0},w=0;(w=a.indexOf("<",w))!=-1;){if(W("\x3c/script",a,w)||W("\x3c!--",a,w))return"zSoyz";
w+=1}return a};var jQ={default:"__default"};var jxU=Object.prototype.hasOwnProperty;iJC.prototype=Object.create(null);var Vz=FQ8();var uk=null;var DEe=function(a){this.created=[];this.deleted=[];this.node=a};var fVe=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var a=this,W=a;a;)W=a,a=a.parentNode;return W};var R2S=function(a,W){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=a;this.key=W;this.text=void 0};var Mk=null,Ru=null,Jo=null,Qt=null,sxE=[],bJF=Qxe,bk=[],si=[],X$I=function(a){return dEI(function(W,w,Z){Jo=Ru=W;Ru=null;w(Z);xES(null);Ru=Jo;Jo=Jo.parentNode;return W},a)}(),P5e=function(a){return dEI(function(W,w,Z){var N={nextSibling:W};
Ru=N;w(Z);Jo&&xES(W.nextSibling);return N===Ru?null:Ru},a)}();var Gv=[],V6E=0;var DT=new iJC;var U8=new iJC;var Cny=FQ8(),Eme=Cny[jQ.default],W8E=Cny.style,yFv=["focusin","focusout"];var Rym=function(){},Alv=function(){},sgS=function(){},QgH=function(){};var dj=Symbol("Zb");var l87,BtH=$dI;var tS=Symbol("$b");var Yne={};var bHm=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(" ")),
xdx=new Set(["a","font","script","style","title"]);var Xf={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var vS=null,gw=function(a,W){oT.call(this,a);var w=this;this.functionComponent=W;this.hooks=[];this.hookCounter=0;this.disposeEffects=ho(function(Z){w.effectContext=Z;_.Ao(function(){eyF(w,w.el)})},VS.alwaysTrackContexts||!!Cr)};
_.c(gw,oT);gw.prototype.render=function(a){var W=vS;vS=this;this.hookCounter=0;var w=yS(PS),Z=GO(this.effectContext);try{return tgx("render",this.componentName),this.functionComponent(a)}finally{$YF("render",this.componentName),GO(Z),yS(w),vS=W}};
_.dU.Object.defineProperties(gw.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return $E7(this.functionComponent)}}});var uIx=Symbol("nc"),F89=function(a,W,w){this.kind=a;this.props=W;this.children=w};
_.c(F89,lG);F89.prototype.render=function(){return JlC(this.kind,this.props,this.children)};
F89.prototype.getChildren=function(){return this.children};var GPe=[];nqe=function(a){throw Error("sb`"+a.debugName);};
(function(){var a=uk;uk=function(W){a==null||a(W);DdU(W)}})();var GK6=void 0,DEA={},fVH=new WeakMap,f8C={getComponent:function(a){if(a.hasAttribute("ng-version"))return DEA;if(!a.__wizComponent)return null;a=a.__wizComponent;fVH.set(a.propsAndState,a);return a.propsAndState},
getDirectiveMetadata:function(a){if(a===DEA)return{framework:"wiz",name:"<Root>",props:{}};a=fVH.get(a);if(!a)throw Error("oc");return{framework:"wiz",name:a.name,props:Object.fromEntries(Object.keys(a.props).map(function(W){return[W,W]}))}},
"\u0275setProfiler":function(a){var W;(W=GK6)==null||W();GK6=aVe(function(){a(2)})},
isSignal:function(a){return typeof a==="function"&&a[Nk]!==void 0}};var mdS={nonNullableCondIsNull:function(){return Error("sc")}};_.k.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.k.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.k.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var aWE=function(){this.map=new Map};
aWE.prototype.push=function(a,W){var w=this.map;w.has(a)&&(this.multi||(this.multi=new Map),this.multi.set(W,w.get(a)));w.set(a,W)};
aWE.prototype.pop=function(a){var W=this.map,w=W.get(a),Z;w!==void 0&&((Z=this.multi)==null?0:Z.has(w))?(W.set(a,this.multi.get(w)),this.multi.delete(w)):W.delete(a);return w};var t2x={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(a){return Error("uc`"+a)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(a,W){return Error("yc`"+a+"`"+W)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(a){return Error("zc`"+a)},
USE_ELEMENT_NOT_ASSIGNED:function(a){return Error("Ac`"+String(a))}};l87=MJH;var vUD=Symbol("Bc");iHm({beforeRender:function(a){var W=GO(a.effectContext);try{var w;((w=a.__syncEffects)==null?0:w.length)&&oUF(a.__syncEffects)}finally{GO(W)}},
didPatch:function(a){var W=GO(a.effectContext);try{var w;((w=a.__syncEffects)==null?0:w.length)&&oUF(a.__syncEffects)}finally{GO(W)}},
didUnmount:function(a){var W;((W=a.hooks)==null?0:W.length)&&a.hooks.forEach(gUE)}});var dER,mER,V6T;dER=_.NH.window;_.nF=(dER==null?void 0:(mER=dER.yt)==null?void 0:mER.config_)||(dER==null?void 0:(V6T=dER.ytcfg)==null?void 0:V6T.data_)||{};_.Dp("yt.config_",_.nF);var z2H={},SfF=[];_.Uw=function(a){var W=_.TH.apply(1,arguments);var w=Error.call(this,a);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.args=[].concat(_.K8(W));Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(_.Uw,Error);var A1D=function(a,W,w){this.actionName=a;this.optionalAction=W===void 0?!1:W;this.args=w===void 0?null:w;this.returnValue=[]};_.H=function(a){this.name=a};_.Qz=new _.H("signalAction");var nUS=/^[\w.]*$/,rfe={q:!0,search_query:!0},pHE=String(Ko9);var Hy;Hy=Symbol("Cc");_.yq=function(a){this.name=a};
_.yq.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var jU9=function(a){this.key=a},Foe=function(a){this.deferredKey=a},Jf8=function(){var a=this;
this.providers=new Map;this.JSC$8322_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(a.providers)}}};
Jf8.prototype.addProvider=function(a){this.providers.set(a.provide,a);var W=this.JSC$8322_deferred.get(a.provide);if(W)try{W.resolver(this.resolve(a.provide))}catch(w){W.rejector(w)}};
Jf8.prototype.resolve=function(a){return a instanceof Foe?HJl(this,a):a instanceof jU9?yFl(this,a.key,[],!0):yFl(this,a,[])};
var HJl=function(a,W){W=W.deferredKey;if(a.JSC$8322_deferred.has(W))return a.JSC$8322_deferred.get(W).promise;var w={};w.promise=new Promise(function(Z,N){w.resolver=Z;w.rejector=N});
a.JSC$8322_deferred.set(W,w);return w.promise},yFl=function(a,W,w,Z){Z=Z===void 0?!1:Z;
if(w.indexOf(W)>-1)throw Error("Dc`"+W);if(a.cachedValues.has(W))return a.cachedValues.get(W);if(!a.providers.has(W)){if(Z)return;throw Error("Ec`"+W);}Z=a.providers.get(W);w.push(W);if(Z.useValue!==void 0)var N=Z.useValue;else if(Z.useFactory)N=Z[Hy]?EmA(a,Z[Hy],w):[],N=Z.useFactory.apply(Z,_.K8(N));else if(Z.useClass){N=Z.useClass;var B=N[Hy]?EmA(a,N[Hy],w):[];N=new (Function.prototype.bind.apply(N,[null].concat(_.K8(B))))}else throw Error("Fc`"+W);w.pop();Z.skipCache||a.cachedValues.set(W,N);return N},
EmA=function(a,W,w){return W?W.map(function(Z){return Z instanceof jU9?yFl(a,Z.key,w,!0):yFl(a,Z,w)}):[]};var LoU;var xj=new _.yq("ENDPOINT_HANDLER_TOKEN");_.ba=new _.H("urlEndpoint");var a8R=function(){this.data=[];this.cachedPackedInt52=-1};
a8R.prototype.set=function(a,W){W=W===void 0?!0:W;0<=a&&a<52&&Number.isInteger(a)&&this.data[a]!==W&&(this.data[a]=W,this.cachedPackedInt52=-1)};
a8R.prototype.get=function(a){return!!this.data[a]};
var W8T=function(a){a.cachedPackedInt52===-1&&(a.cachedPackedInt52=a.data.reduce(function(W,w,Z){return W+(w?Math.pow(2,Z):0)},0));
return a.cachedPackedInt52};var m6S=function(a){var W=wZe;a=a===void 0?_.RT("yt.ads.biscotti.lastId_")||"":a;var w=Object,Z=w.assign,N={};N.dt=NhE;N.flash="0";a:{try{var B=W.JSC$8328_win_.top.location.href}catch(Am){B=2;break a}B=B?B===W.doc_.location.href?0:1:2}N=(N.frm=B,N);try{N.u_tz=-(new Date).getTimezoneOffset();var I=I===void 0?xO:I;try{var X=I.history.length}catch(Am){X=0}N.u_his=X;var v;N.u_h=(v=xO.screen)==null?void 0:v.height;var U;N.u_w=(U=xO.screen)==null?void 0:U.width;var O;N.u_ah=(O=xO.screen)==null?void 0:O.availHeight;
var S;N.u_aw=(S=xO.screen)==null?void 0:S.availWidth;var T;N.u_cd=(T=xO.screen)==null?void 0:T.colorDepth}catch(Am){}X=W.JSC$8328_win_;try{var p=X.screenX;var h=X.screenY}catch(Am){}try{var L=X.outerWidth;var F=X.outerHeight}catch(Am){}try{var x=X.innerWidth;var G=X.innerHeight}catch(Am){}try{var V=X.screenLeft;var d=X.screenTop}catch(Am){}try{x=X.innerWidth,G=X.innerHeight}catch(Am){}try{var ZD=X.screen.availWidth;var aC=X.screen.availTop}catch(Am){}p=[V,d,p,h,ZD,aC,L,F,x,G];h=SKC(!1,W.JSC$8328_win_.top);
L={};var Bv=Bv===void 0?_.NH:Bv;F=new a8R;"SVGElement"in Bv&&"createElementNS"in Bv.document&&F.set(0);x=NfL();x["allow-top-navigation-by-user-activation"]&&F.set(1);x["allow-popups-to-escape-sandbox"]&&F.set(2);Bv.crypto&&Bv.crypto.subtle&&F.set(3);"TextDecoder"in Bv&&"TextEncoder"in Bv&&F.set(4);Bv=W8T(F);W=(L.bc=Bv,L.bih=h.height,L.biw=h.width,L.brdim=p.join(),L.vis=$FI(W.doc_),L.wgl=!!xO.WebGLRenderingContext,L);w=Z.call(w,N,W);w.ca_type="image";a&&(w.bid=a);return w},wZe=new function(){var a=
window.document;
this.JSC$8328_win_=window;this.doc_=a};
_.Dp("yt.ads_.signals_.getAdSignalsString",function(a){return AfU(m6S(a))});_.ZL();navigator.userAgent.indexOf(" (CrKey ");var x6S="XMLHttpRequest"in _.NH?function(){return new XMLHttpRequest}:null;var ZHh="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),NtH=[].concat(_.K8(ZHh),["client_dev_set_cookie"]);var d6E={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"},uve="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(_.K8(ZHh)),ZS8=!1,GcC=_.V2e,aGD=fWe;var nJm=[{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 tJJ={messageWeights:[],callbackWeights:[{callback:BQS,weight:500},{callback:lGS,weight:500}]};var $dR=function(){this.callbackWeights=[];this.messageWeights=[]},Bty,eI7=function(){if(!Bty){var a=Bty=new $dR;
a.messageWeights.length=0;a.callbackWeights.length=0;tq7(a,tJJ)}return Bty},tq7=function(a,W){W.messageWeights&&a.messageWeights.push.apply(a.messageWeights,W.messageWeights);
W.callbackWeights&&a.callbackWeights.push.apply(a.callbackWeights,W.callbackWeights)};_.NT(_.I0,_.OW);_.I0.prototype.subscribe=function(a,W,w){var Z=this.topics_[a];Z||(Z=this.topics_[a]=[]);var N=this.JSC$8352_key_;this.subscriptions_[N]=a;this.subscriptions_[N+1]=W;this.subscriptions_[N+2]=w;this.JSC$8352_key_=N+3;Z.push(N);return N};
var l86=function(a){var W=FYC,w=!1,Z=W.subscribe("handleError",function(N){w||(w=!0,this.unsubscribeByKey(Z),a.apply(void 0,arguments))},W)};
_.I0.prototype.unsubscribe=function(a,W,w){if(a=this.topics_[a]){var Z=this.subscriptions_;if(a=a.find(function(N){return Z[N+1]==W&&Z[N+2]==w}))return this.unsubscribeByKey(a)}return!1};
_.I0.prototype.unsubscribeByKey=function(a){var W=this.subscriptions_[a];if(W){var w=this.topics_[W];this.publishDepth_!=0?(this.pendingKeys_.push(a),this.subscriptions_[a+1]=function(){}):(w&&_.yF(w,a),delete this.subscriptions_[a],delete this.subscriptions_[a+1],delete this.subscriptions_[a+2])}return!!W};
_.I0.prototype.publish=function(a,W){var w=this.topics_[a];if(w){var Z=Array(arguments.length-1),N=arguments.length,B;for(B=1;B<N;B++)Z[B-1]=arguments[B];if(this.async_)for(B=0;B<w.length;B++)N=w[B],I8_(this.subscriptions_[N+1],this.subscriptions_[N+2],Z);else{this.publishDepth_++;try{for(B=0,N=w.length;B<N&&!this.isDisposed();B++){var I=w[B];this.subscriptions_[I+1].apply(this.subscriptions_[I+2],Z)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;w=this.pendingKeys_.pop();)this.unsubscribeByKey(w)}}return B!=
0}return!1};
var I8_=function(a,W,w){_.pk(function(){a.apply(W,w)})};
_.I0.prototype.clear=function(a){if(a){var W=this.topics_[a];W&&(W.forEach(this.unsubscribeByKey,this),delete this.topics_[a])}else this.subscriptions_.length=0,this.topics_={}};
_.I0.prototype.getCount=function(a){if(a){var W=this.topics_[a];return W?W.length:0}a=0;for(W in this.topics_)a+=this.getCount(W);return a};
_.I0.prototype.disposeInternal=function(){_.I0.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var FYC=new _.I0;var ax=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(ax,_.QH);ax.prototype.getColdHashData=function(){return _.Lo(this,3)};
ax.prototype.getHotHashData=function(){return _.Lo(this,5)};
ax.prototype.setHotHashData=function(a){return _.Xu(this,5,a)};var p_E=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(p_E,_.QH);var EQe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(EQe,_.QH);_.t=EQe.prototype;_.t.getDeviceId=function(){return _.Lo(this,6)};
_.t.getExperimentIds=function(a){var W=_.Tk(this,9,_.hz,3,!0);Gh(W,a);return W[a]};
_.t.getPlayerType=function(){return _.JD(this,36)};
_.t.setHomeGroupInfo=function(a){return _.ZP(this,81,a)};
_.t.clearLocationPlayabilityToken=function(){return _.Ew(this,89)};var gt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(gt,_.QH);gt.prototype.setKey=function(a){return _.Xu(this,1,a)};
gt.prototype.getValue=function(){return MT(this,2,WYx)};
var WYx=[2,3,4,5,6];var PaA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(PaA,_.QH);PaA.prototype.setTrackingParams=function(a){return _.Ew(this,1,_.C6(a,!1))};var agI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(agI,_.QH);var hO7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(hO7,_.QH);hO7.prototype.getExperimentIds=function(a){var W=_.Tk(this,5,_.c2,3,!0);Gh(W,a);return W[a]};var On=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(On,_.QH);On.prototype.getToken=function(){return _.I$(this,2)};
On.prototype.setToken=function(a){return _.Xu(this,2,a)};var kj=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(kj,_.QH);kj.prototype.setSafetyMode=function(a){return _.yJ(this,5,a)};var vZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(vZ,_.QH);vZ.prototype.setClient=function(a){return _.ZP(this,1,a)};var Ake={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 rkF;_.jM=function(){var a=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.NH.addEventListener("beforeinstallprompt",function(W){W.preventDefault();a.deferredInstallPrompt=W});
_.NH.addEventListener("appinstalled",function(){a.appInstalledEventFired=!0},{once:!0})};
rkF=function(){if(!_.NH.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.NH.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.NH.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.NH.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.NH.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};var eOE=function(){this.syncHeaders=!0},n7U=function(a){var W={},w=[];
"USER_SESSION_ID"in _.nF&&w.push({key:"u",value:_.LF("USER_SESSION_ID")});if(w=HxE(w))W.Authorization=w,w=a=a==null?void 0:a.sessionIndex,w===void 0&&(w=Number(_.LF("SESSION_INDEX",0)),w=isNaN(w)?0:w),_.r("voice_search_auth_header_removal")||(W["X-Goog-AuthUser"]=w.toString()),"INNERTUBE_HOST_OVERRIDE"in _.nF||(W["X-Origin"]=window.location.origin),a===void 0&&"DELEGATED_SESSION_ID"in _.nF&&(W["X-Goog-PageId"]=_.LF("DELEGATED_SESSION_ID"));return W};var XZA={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var E1=_.RT("ytglobal.prefsUserPrefsPrefs_")||{},vjR;_.Dp("ytglobal.prefsUserPrefsPrefs_",E1);_.ar=function(){this.cookieName=_.LF("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.LF("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=_.XQ.get(this.cookieName,void 0);a&&this.parse(a)};
_.gS=function(){vjR||(vjR=new _.ar);return vjR};
_.ar.prototype.get=function(a,W){gjE(a);ojR(a);a=E1[a]!==void 0?E1[a].toString():null;return a!=null?a:W?W:""};
_.ar.prototype.set=function(a,W){gjE(a);ojR(a);if(W==null)throw Error("Ic");E1[a]=W.toString()};
_.ar.prototype.getFlag=function(a){return!!((kPT("f"+(Math.floor(a/31)+1))||0)&1<<a%31)};
_.oV=function(a,W,w){a="f"+(Math.floor(W/31)+1);W=1<<W%31;var Z=kPT(a)||0;Z=w?Z|W:Z&~W;Z===0?delete E1[a]:(w=Z.toString(16),E1[a]=w.toString())};
_.ar.prototype.remove=function(a){gjE(a);ojR(a);delete E1[a]};
_.ar.prototype.save=function(){var a=!0;_.r("web_secure_pref_cookie_killswitch")&&(a=!1);_.vi(this.cookieName,this.dump(),63072E3,this.cookieDomain,a)};
_.ar.prototype.clear=function(){_.T5.clear(E1)};
_.ar.prototype.dump=function(){var a=[],W;for(W in E1)E1.hasOwnProperty(W)&&a.push(W+"="+encodeURIComponent(String(E1[W])));return a.join("&")};
var ojR=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("Jc`"+a);},gjE=function(a){if(!/^\w+$/.test(a))throw Error("Kc`"+a);
},kPT=function(a){a=E1[a]!==void 0?E1[a].toString():null;
return a!=null&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
_.ar.prototype.parse=function(a){a=decodeURIComponent(a).split("&");for(var W=0;W<a.length;W++){var w=a[W].split("="),Z=w[0];(w=w[1])&&(E1[Z]=w.toString())}};var OSS={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"},iDU={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},ckF={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},Y$C={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var dJ;_.W1=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.TP=function(a,W,w){return a.addJob(W,0,w)};
_.W1.prototype.addLowPriorityJob=function(a,W){return this.addJob(a,1,W)};
_.OB=function(a,W,w){return a.addJob(W,2,w)};
_.rP=function(a,W,w){return a.addJob(W,3,w)};
_.mY=function(a,W,w){return a.addJob(W,4,w)};
dJ=function(a){var W=_.RT("yt.scheduler.instance.addImmediateJob");W?W(a):a()};
_.W1.prototype.debounce=function(a,W,w){var Z=this,N=0,B=function(){N&&Z.cancelJob(N);N=Z.addJob(a,W,w);Z.cancelDebouncedJobMap.set(B,N)};
return B};
_.W1.prototype.cancelThrottle=function(a){(a=this.cancelThrottledJobMap.get(a))&&a()};var wF=function(){_.W1.apply(this,arguments)};
_.c(wF,_.W1);_.n4=function(){wF.instance||(wF.instance=new wF);return wF.instance};
wF.prototype.addJob=function(a,W,w){w!==void 0&&Number.isNaN(Number(w))&&(w=void 0);var Z=_.RT("yt.scheduler.instance.addJob");return Z?Z(a,W,w):w===void 0?(a(),NaN):_.wz(a,w||0)};
wF.prototype.cancelJob=function(a){if(a===void 0||!Number.isNaN(Number(a))){var W=_.RT("yt.scheduler.instance.cancelJob");W?W(a):_.NY(a)}};
wF.prototype.start=function(){var a=_.RT("yt.scheduler.instance.start");a&&a()};
wF.prototype.pause=function(){var a=_.RT("yt.scheduler.instance.pause");a&&a()};
_.hF=_.n4();_.Ow.prototype.set=function(a,W){W===void 0?this.mechanism.remove(a):this.mechanism.set(a,(0,_.c5)(W))};
_.Ow.prototype.get=function(a){try{var W=this.mechanism.get(a)}catch(w){return}if(W!==null)try{return JSON.parse(W)}catch(w){throw"Storage: Invalid value was encountered";}};
_.Ow.prototype.remove=function(a){this.mechanism.remove(a)};var Zt=function(a){this.mechanism=a};
_.NT(Zt,_.Ow);var Ude=function(a){this.data=a},OHR=function(a){return a===void 0||a instanceof Ude?a:new Ude(a)};
Zt.prototype.set=function(a,W){Zt.superClass_.set.call(this,a,OHR(W))};
Zt.prototype.getWrapper=function(a){a=Zt.superClass_.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Zt.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};_.NT(Sg,Zt);_.Sn_=function(a){var W=a.creation;a=a.expiration;return!!a&&a<_.ZL()||!!W&&W>_.ZL()};
Sg.prototype.set=function(a,W,w){if(W=OHR(W)){if(w){if(w<_.ZL()){Sg.prototype.remove.call(this,a);return}W.expiration=w}W.creation=_.ZL()}Sg.superClass_.set.call(this,a,W)};
Sg.prototype.getWrapper=function(a,W){var w=Sg.superClass_.getWrapper.call(this,a);if(w)if(!W&&_.Sn_(w))Sg.prototype.remove.call(this,a);else return w};var NK=function(){};
NK.prototype.next=function(){return t2};
var t2={done:!0,value:void 0},$K=function(a){return{value:a,done:!1}};
NK.prototype.__iterator__=function(){return this};
_.YnH=function(a){if(a instanceof NK)return a;if(typeof a.__iterator__=="function")return a.__iterator__(!1);if(_.wT(a)){var W=0,w=new NK;w.next=function(){for(;;){if(W>=a.length)return t2;if(W in a)return $K(a[W++]);W++}};
return w}throw Error("Lc");};var TtL=function(a){if(a instanceof B1||a instanceof lw||a instanceof Ir)return a;if(typeof a.next=="function")return new B1(function(){return a});
if(typeof a[Symbol.iterator]=="function")return new B1(function(){return a[Symbol.iterator]()});
if(typeof a.__iterator__=="function")return new B1(function(){return a.__iterator__()});
throw Error("Mc");},B1=function(a){this.func_=a};
B1.prototype.__iterator__=function(){return new lw(this.func_())};
B1.prototype[Symbol.iterator]=function(){return new Ir(this.func_())};
B1.prototype.toEs6=function(){return new Ir(this.func_())};
var lw=function(a){this.JSC$8436_iter_=a};
_.c(lw,NK);lw.prototype.next=function(){return this.JSC$8436_iter_.next()};
lw.prototype[Symbol.iterator]=function(){return new Ir(this.JSC$8436_iter_)};
lw.prototype.toEs6=function(){return new Ir(this.JSC$8436_iter_)};
var Ir=function(a){B1.call(this,function(){return a});
this.JSC$8439_iter_=a};
_.c(Ir,B1);Ir.prototype.next=function(){return this.JSC$8439_iter_.next()};var K8R=function(){};var P1=function(){};
_.NT(P1,K8R);P1.prototype.getCount=function(){for(var a=0,W=_.l(this),w=W.next();!w.done;w=W.next())a++;return a};
P1.prototype[Symbol.iterator]=function(){return TtL(this.__iterator__(!0)).toEs6()};
P1.prototype.clear=function(){var a=Array.from(this);a=_.l(a);for(var W=a.next();!W.done;W=a.next())this.remove(W.value)};_.NT(Yq,P1);_.t=Yq.prototype;_.t.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var a=this.storage_;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var W=!0}catch(w){W=w instanceof DOMException&&(w.name==="QuotaExceededError"||w.code===22||w.code===1014||w.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else W=!1;this.cachedIsStorageAvailable_=W}return this.cachedIsStorageAvailable_};
_.t.set=function(a,W){XW(this);try{this.storage_.setItem(a,W)}catch(w){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.t.get=function(a){XW(this);a=this.storage_.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};
_.t.remove=function(a){XW(this);this.storage_.removeItem(a)};
_.t.getCount=function(){XW(this);return this.storage_.length};
_.t.__iterator__=function(a){XW(this);var W=0,w=this.storage_,Z=new NK;Z.next=function(){if(W>=w.length)return t2;var N=w.key(W++);if(a)return $K(N);N=w.getItem(N);if(typeof N!=="string")throw"Storage mechanism: Invalid value was encountered";return $K(N)};
return Z};
_.t.clear=function(){XW(this);this.storage_.clear()};
_.t.key=function(a){XW(this);return this.storage_.key(a)};
var XW=function(a){if(a.storage_==null)throw Error("Nc");a.isAvailable()||$I(Error("Nc"))};_.NT(KmD,Yq);_.NT(pGD,Yq);_.NT(T4,P1);T4.prototype.set=function(a,W){this.mechanism_.set(this.JSC$8454_prefix_+a,W)};
T4.prototype.get=function(a){return this.mechanism_.get(this.JSC$8454_prefix_+a)};
T4.prototype.remove=function(a){this.mechanism_.remove(this.JSC$8454_prefix_+a)};
T4.prototype.__iterator__=function(a){var W=this.mechanism_[Symbol.iterator](),w=this,Z=new NK;Z.next=function(){var N=W.next();if(N.done)return N;for(N=N.value;N.slice(0,w.JSC$8454_prefix_.length)!=w.JSC$8454_prefix_;){N=W.next();if(N.done)return N;N=N.value}return $K(a?N.slice(w.JSC$8454_prefix_.length):w.mechanism_.get(N))};
return Z};_.LJ=function(a){this.expiringStorage_=(a=_.rsS(a))?new Sg(a):null;this.JSC$8458_domain_=document.domain||window.location.hostname};
_.LJ.prototype.set=function(a,W,w,Z){w=w||31104E3;this.remove(a);if(this.expiringStorage_)try{this.expiringStorage_.set(a,W,Date.now()+w*1E3);return}catch(B){}var N="";if(Z)try{N=escape((0,_.c5)(W))}catch(B){return}else N=escape(W);_.vi(a,N,w,this.JSC$8458_domain_)};
_.LJ.prototype.get=function(a,W){var w=void 0,Z=!this.expiringStorage_;if(!Z)try{w=this.expiringStorage_.get(a)}catch(N){Z=!0}if(Z&&(w=_.XQ.get(a,void 0))&&(w=unescape(w),W))try{w=JSON.parse(w)}catch(N){this.remove(a),w=void 0}return w};
_.LJ.prototype.remove=function(a){this.expiringStorage_&&this.expiringStorage_.remove(a);_.osm(a,"/",this.JSC$8458_domain_)};
_.LJ.prototype.getCreationTime=function(a){return this.expiringStorage_&&(a=(this.expiringStorage_.getWrapper(a)||{}).creation,typeof a==="number")?a:null};var h9I=function(){var a;return function(){a||(a=new _.LJ("ytidb"));return a}}();var csE;_.p3=[];csE=!1;var dM7=e97||ns8;var v1={},pZR=(v1.AUTH_INVALID="No user identifier specified.",v1.EXPLICIT_ABORT="Transaction was explicitly aborted.",v1.IDB_NOT_SUPPORTED="IndexedDB is not supported.",v1.MISSING_INDEX="Index not created.",v1.MISSING_OBJECT_STORES="Object stores not created.",v1.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",v1.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",v1.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",v1.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",v1.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",v1.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",v1.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",v1),gF={},rlR=(gF.AUTH_INVALID="ERROR",gF.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",gF.EXPLICIT_ABORT="IGNORED",
gF.IDB_NOT_SUPPORTED="ERROR",gF.MISSING_INDEX="WARNING",gF.MISSING_OBJECT_STORES="ERROR",gF.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",gF.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",gF.QUOTA_EXCEEDED="WARNING",gF.QUOTA_MAYBE_EXCEEDED="WARNING",gF.UNKNOWN_ABORT="WARNING",gF.INCOMPATIBLE_DB_VERSION="WARNING",gF),or={},All=(or.AUTH_INVALID=!1,or.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,or.EXPLICIT_ABORT=!1,or.IDB_NOT_SUPPORTED=!1,or.MISSING_INDEX=!1,or.MISSING_OBJECT_STORES=!1,or.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,or.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,or.QUOTA_EXCEEDED=!1,or.QUOTA_MAYBE_EXCEEDED=!0,or.UNKNOWN_ABORT=!0,or.INCOMPATIBLE_DB_VERSION=!1,or),n3=function(a,W,w,Z,N){W=W===void 0?{}:W;w=w===void 0?pZR[a]:w;Z=Z===void 0?rlR[a]:Z;N=N===void 0?All[a]:N;_.Uw.call(this,w,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},W));this.type=a;this.message=w;this.level=Z;this.retryable=N;Object.setPrototypeOf(this,n3.prototype)};
_.c(n3,_.Uw);var hyL=function(a,W){n3.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:W,foundObjectStores:a},pZR.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,hyL.prototype)};
_.c(hyL,n3);var Lme=function(a,W){var w=Error.call(this);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.index=a;this.objectStore=W;Object.setPrototypeOf(this,Lme.prototype)};
_.c(Lme,Error);var JsF=["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 FQ=function(a){this.executor=a},Jw=function(a){var W=this;
this.state={status:"PENDING"};this.JSC$8486_onFulfilled=[];this.JSC$8486_onRejected=[];a=a.executor;var w=function(N){if(W.state.status==="PENDING"){W.state={status:"FULFILLED",value:N};N=_.l(W.JSC$8486_onFulfilled);for(var B=N.next();!B.done;B=N.next())B=B.value,B()}},Z=function(N){if(W.state.status==="PENDING"){W.state={status:"REJECTED",
reason:N};N=_.l(W.JSC$8486_onRejected);for(var B=N.next();!B.done;B=N.next())B=B.value,B()}};
try{a(w,Z)}catch(N){Z(N)}};
Jw.all=function(a){return new Jw(new FQ(function(W,w){var Z=[],N=a.length;N===0&&W(Z);for(var B={i$jscomp$504:0};B.i$jscomp$504<a.length;B={i$jscomp$504:B.i$jscomp$504},++B.i$jscomp$504)Jw.resolve(a[B.i$jscomp$504]).then(function(I){return function(X){Z[I.i$jscomp$504]=X;N--;N===0&&W(Z)}}(B)).catch(function(I){w(I)})}))};
Jw.resolve=function(a){return new Jw(new FQ(function(W,w){a instanceof Jw?a.then(W,w):W(a)}))};
Jw.reject=function(a){return new Jw(new FQ(function(W,w){w(a)}))};
Jw.prototype.then=function(a,W){var w=this,Z=a!=null?a:R97,N=W!=null?W:MHv;return new Jw(new FQ(function(B,I){w.state.status==="PENDING"?(w.JSC$8486_onFulfilled.push(function(){iHL(w,w,Z,B,I)}),w.JSC$8486_onRejected.push(function(){cl_(w,w,N,B,I)})):w.state.status==="FULFILLED"?iHL(w,w,Z,B,I):w.state.status==="REJECTED"&&cl_(w,w,N,B,I)}))};
Jw.prototype.catch=function(a){return this.then(void 0,a)};
var iHL=function(a,W,w,Z,N){try{if(a.state.status!=="FULFILLED")throw Error("Qc");var B=w(a.state.value);B instanceof Jw?ey_(a,W,B,Z,N):Z(B)}catch(I){N(I)}},cl_=function(a,W,w,Z,N){try{if(a.state.status!=="REJECTED")throw Error("Rc");
var B=w(a.state.reason);B instanceof Jw?ey_(a,W,B,Z,N):Z(B)}catch(I){N(I)}},ey_=function(a,W,w,Z,N){W===w?N(new TypeError("Sc")):w.then(function(B){B instanceof Jw?ey_(a,W,B,Z,N):Z(B)},function(B){N(B)})};var kK;kK=window;_.mG=kK.ytcsi&&kK.ytcsi.now?kK.ytcsi.now:kK.performance&&kK.performance.timing&&kK.performance.now&&kK.performance.timing.navigationStart?function(){return kK.performance.timing.navigationStart+kK.performance.now()}:function(){return(new Date).getTime()};var R0=function(a,W){this.JSC$8498_wrapped=a;this.options=W;this.transactionCount=0;this.startedMs=Math.round((0,_.mG)());this.hasUnknownAbortedTransaction=!1},L8R,Jle,Si,RyL;
R0.prototype.add=function(a,W,w){return _.bd(this,[a],{mode:"readwrite",enableRetries:!0},function(Z){return Z.objectStore(a).add(W,w)})};
R0.prototype.clear=function(a){return _.bd(this,[a],{mode:"readwrite",enableRetries:!0},function(W){return W.objectStore(a).clear()})};
R0.prototype.close=function(){this.JSC$8498_wrapped.close();var a;((a=this.options)==null?0:a.closed)&&this.options.closed()};
R0.prototype.count=function(a,W){return _.bd(this,[a],{mode:"readonly",enableRetries:!0},function(w){return w.objectStore(a).count(W)})};
var FU=function(a,W,w){a=a.JSC$8498_wrapped.createObjectStore(W,w);return new UV(a)};
R0.prototype.delete=function(a,W){return _.bd(this,[a],{mode:"readwrite",enableRetries:!0},function(w){return w.objectStore(a).delete(W)})};
var njE=function(a,W){return _.bd(a,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(w){return w.objectStore("ResponseStore").index("byInterface").delete(W)})};
R0.prototype.get=function(a,W){return _.bd(this,[a],{mode:"readonly",enableRetries:!0},function(w){return w.objectStore(a).get(W)})};
R0.prototype.getAll=function(a,W,w){return _.bd(this,[a],{mode:"readonly",enableRetries:!0},function(Z){return Z.objectStore(a).getAll(W,w)})};
R0.prototype.put=function(a,W,w){return _.bd(this,[a],{mode:"readwrite",enableRetries:!0},function(Z){return Z.objectStore(a).put(W,w)})};
R0.prototype.objectStoreNames=function(){return Array.from(this.JSC$8498_wrapped.objectStoreNames)};
_.bd=function(a,W,w,Z){var N,B,I,X,v,U,O,S,T,p,h,L;return _.P(function(F){switch(F.nextAddress){case 1:var x={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof w==="string"?x.mode=w:Object.assign(x,w);N=x;a.transactionCount++;B=N.enableRetries?3:1;I=0;case 2:if(X){F.jumpTo(4);break}I++;v=Math.round((0,_.mG)());_.tq(F,5);U=a.JSC$8498_wrapped.transaction(W,N.mode);x=new bSU(U);x=jg$(x,Z);return _.g(F,x,7);case 7:return O=F.yieldResult,S=Math.round((0,_.mG)()),L8R(a,v,S,I,void 0,
W.join(),N),F.return(O);case 5:T=_.Pb(F);p=Math.round((0,_.mG)());h=FmU(T,a.JSC$8498_wrapped.name,W.join(),a.JSC$8498_wrapped.version);if((L=h instanceof n3&&!h.retryable)||I>=B)L8R(a,v,p,I,h,W.join(),N),X=h;F.jumpTo(2);break;case 4:return F.return(Promise.reject(X))}})};
L8R=function(a,W,w,Z,N,B,I){W=w-W;N?(N instanceof n3&&(N.type==="QUOTA_EXCEEDED"||N.type==="QUOTA_MAYBE_EXCEEDED")&&hw("QUOTA_EXCEEDED",{dbName:ci(a.JSC$8498_wrapped.name),objectStoreNames:B,transactionCount:a.transactionCount,transactionMode:I.mode}),N instanceof n3&&N.type==="UNKNOWN_ABORT"&&(w-=a.startedMs,w<0&&w>=2147483648&&(w=0),hw("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:B,transactionDuration:W,transactionCount:a.transactionCount,dbDuration:w}),a.hasUnknownAbortedTransaction=!0),
Jle(a,!1,Z,B,W,I.tag),_.rz(N)):Jle(a,!0,Z,B,W,I.tag)};
Jle=function(a,W,w,Z,N,B){hw("TRANSACTION_ENDED",{objectStoreNames:Z,connectionHasUnknownAbortedTransaction:a.hasUnknownAbortedTransaction,duration:N,isSuccessful:W,tryCount:w,tag:B===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":B})};
R0.prototype.getVersion=function(){return this.JSC$8498_wrapped.version};
R0.prototype.getName=function(){return this.JSC$8498_wrapped.name};
var UV=function(a){this.JSC$8513_wrapped=a};
UV.prototype.add=function(a,W){return MY(this.JSC$8513_wrapped.add(a,W))};
UV.prototype.autoIncrement=function(){return this.JSC$8513_wrapped.autoIncrement};
UV.prototype.clear=function(){return MY(this.JSC$8513_wrapped.clear()).then(function(){})};
var ME=function(a,W,w){a.JSC$8513_wrapped.createIndex(W,w,{unique:!1})};
UV.prototype.count=function(a){return MY(this.JSC$8513_wrapped.count(a))};
var F8V=function(a,W){return ud(a,{query:W},function(w){return w.delete().then(function(){return w.continue()})}).then(function(){})};
UV.prototype.delete=function(a){return a instanceof IDBKeyRange?F8V(this,a):MY(this.JSC$8513_wrapped.delete(a))};
UV.prototype.get=function(a){return MY(this.JSC$8513_wrapped.get(a))};
UV.prototype.getAll=function(a,W){return"getAll"in IDBObjectStore.prototype?MY(this.JSC$8513_wrapped.getAll(a,W)):MJy(this,a,W)};
var MJy=function(a,W,w){var Z=[];return ud(a,{query:W},function(N){if(!(w!==void 0&&Z.length>=w))return Z.push(N.getValue()),N.continue()}).then(function(){return Z})};
UV.prototype.index=function(a){try{return new OV(this.JSC$8513_wrapped.index(a))}catch(W){if(W instanceof Error&&W.name==="NotFoundError")throw new Lme(a,this.JSC$8513_wrapped.name);throw W;}};
UV.prototype.getName=function(){return this.JSC$8513_wrapped.name};
UV.prototype.keyPath=function(){return this.JSC$8513_wrapped.keyPath};
UV.prototype.put=function(a,W){return MY(this.JSC$8513_wrapped.put(a,W))};
var ud=function(a,W,w){a=a.JSC$8513_wrapped.openCursor(W.query,W.direction);return RyL(a).then(function(Z){return xM9(Z,w)})},bSU=function(a){var W=this;
this.JSC$8521_wrapped=a;this.objectStoreCache=new Map;this.JSC$8521_aborted=!1;this.done=new Promise(function(w,Z){W.JSC$8521_wrapped.addEventListener("complete",function(){w()});
W.JSC$8521_wrapped.addEventListener("error",function(N){N.currentTarget===N.target&&Z(W.JSC$8521_wrapped.error)});
W.JSC$8521_wrapped.addEventListener("abort",function(){var N=W.JSC$8521_wrapped.error;if(N)Z(N);else if(!W.JSC$8521_aborted){N=n3;for(var B=W.JSC$8521_wrapped.objectStoreNames,I=[],X=0;X<B.length;X++){var v=B.item(X);if(v===null)throw Error("Tc");I.push(v)}N=new N("UNKNOWN_ABORT",{objectStoreNames:I.join(),dbName:W.JSC$8521_wrapped.db.name,mode:W.JSC$8521_wrapped.mode});Z(N)}})})},jg$=function(a,W){var w=new Promise(function(Z,N){try{W(a).then(function(B){Z(B)}).catch(N)}catch(B){N(B),a.abort()}});
return Promise.all([w,a.done]).then(function(Z){return _.l(Z).next().value})};
bSU.prototype.abort=function(){this.JSC$8521_wrapped.abort();this.JSC$8521_aborted=!0;throw new n3("EXPLICIT_ABORT");};
bSU.prototype.objectStore=function(a){a=this.JSC$8521_wrapped.objectStore(a);var W=this.objectStoreCache.get(a);W||(W=new UV(a),this.objectStoreCache.set(a,W));return W};
var OV=function(a){this.JSC$8523_wrapped=a};
OV.prototype.count=function(a){return MY(this.JSC$8523_wrapped.count(a))};
OV.prototype.delete=function(a){return _.VJ(this,{query:a},function(W){return W.delete().then(function(){return W.continue()})})};
OV.prototype.get=function(a){return MY(this.JSC$8523_wrapped.get(a))};
OV.prototype.getAll=function(a,W){return"getAll"in IDBIndex.prototype?MY(this.JSC$8523_wrapped.getAll(a,W)):qnL(this,a,W)};
var qnL=function(a,W,w){var Z=[];return _.VJ(a,{query:W},function(N){if(!(w!==void 0&&Z.length>=w))return Z.push(N.getValue()),N.continue()}).then(function(){return Z})};
OV.prototype.keyPath=function(){return this.JSC$8523_wrapped.keyPath};
OV.prototype.unique=function(){return this.JSC$8523_wrapped.unique};
_.VJ=function(a,W,w){a=a.JSC$8523_wrapped.openCursor(W.query===void 0?null:W.query,W.direction===void 0?"next":W.direction);return RyL(a).then(function(Z){return xM9(Z,w)})};
Si=function(a,W){this.request=a;this.cursor=W};
RyL=function(a){return MY(a).then(function(W){return W?new Si(a,W):null})};
Si.prototype.continue=function(a){this.cursor.continue(a);return RyL(this.request)};
Si.prototype.delete=function(){return MY(this.cursor.delete()).then(function(){})};
Si.prototype.getValue=function(){return this.cursor.value};
Si.prototype.update=function(a){return MY(this.cursor.update(a))};var YK=function(a,W){this.name=a;this.options=W;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Qgy;
YK.prototype.openDb=function(a,W,w){w=w===void 0?{}:w;return utI(a,W,w)};
YK.prototype.delete=function(a){a=a===void 0?{}:a;return _.QJ(this.name,a)};
Qgy=function(a,W){return new n3("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:W})};
_.xq=function(a,W){if(!W)throw L3("openWithToken",ci(a.name));return a.open()};
YK.prototype.open=function(){var a=this;if(!this.isCompatible)throw Qgy(this);if(this.connectionPromise)return this.connectionPromise;var W,w=function(){a.connectionPromise===W&&(a.connectionPromise=void 0)},Z={blocking:function(B){B.close()},
closed:w,terminated:w,upgrade:this.options.upgrade},N=function(){var B,I,X,v,U,O,S,T,p,h;return _.P(function(L){switch(L.nextAddress){case 1:return I=(B=Error().stack)!=null?B:"",_.tq(L,2),_.g(L,a.openDb(a.name,a.options.version,Z),4);case 4:for(var F=X=L.yieldResult,x=a.options,G=[],V=_.l(Object.keys(x.objectStores)),d=V.next();!d.done;d=V.next()){d=d.value;var ZD=x.objectStores[d],aC=ZD.removedAtVersion===void 0?Number.MAX_VALUE:ZD.removedAtVersion;!(F.JSC$8498_wrapped.version>=ZD.addedAtVersion)||
F.JSC$8498_wrapped.version>=aC||F.JSC$8498_wrapped.objectStoreNames.contains(d)||G.push(d)}v=G;if(v.length===0){L.jumpTo(5);break}U=Object.keys(a.options.objectStores);O=X.objectStoreNames();if(a.timesReopenedToFixMissingObjectStore<_.yv("ytidb_reopen_db_retries",0))return a.timesReopenedToFixMissingObjectStore++,X.close(),_.rz(new n3("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:a.name,expectedObjectStores:U,foundObjectStores:O})),L.return(N());if(!(a.timesDeletedToFixMissingObjectStore<_.yv("ytidb_remake_db_retries",
1))){L.jumpTo(6);break}a.timesDeletedToFixMissingObjectStore++;return _.g(L,a.delete(),7);case 7:return _.rz(new n3("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:a.name,expectedObjectStores:U,foundObjectStores:O})),L.return(N());case 6:throw new hyL(O,U);case 5:return L.return(X);case 2:S=_.Pb(L);if(S instanceof DOMException?S.name!=="VersionError":"DOMError"in self&&S instanceof DOMError?S.name!=="VersionError":!(S instanceof Object&&"message"in S)||S.message!=="An attempt was made to open a database using a lower version than the existing version."){L.jumpTo(8);
break}return _.g(L,a.openDb(a.name,void 0,Object.assign({},Z,{upgrade:void 0})),9);case 9:T=L.yieldResult;p=T.getVersion();if(a.options.version!==void 0&&p>a.options.version+1)throw T.close(),a.isCompatible=!1,Qgy(a,p);return L.return(T);case 8:throw w(),S instanceof Error&&!_.r("ytidb_async_stack_killswitch")&&(S.stack=S.stack+"\n"+I.substring(I.indexOf("\n")+1)),FmU(S,a.name,"",(h=a.options.version)!=null?h:-1);}})};
return this.connectionPromise=W=N()};var C69=new YK("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(a,W){W(1)&&FU(a,"databases",{keyPath:"actualName"})}});var z9x,mMm=new function(){}(new function(){});new _.wi;var xd$=function(a,W){YK.call(this,a,W);this.options=W;id(a)};
_.c(xd$,YK);var $1C=function(a,W){var w;return function(){w||(w=new xd$(a,W));return w}};
xd$.prototype.openDb=function(a,W,w){w=w===void 0?{}:w;return(this.options.shared?WXx:a9E)(a,W,Object.assign({},w))};
xd$.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?tWS:w_e)(this.name,a)};var bHL={},BSD=dz("ytGcfConfig",{objectStores:(bHL.coldConfigStore={addedAtVersion:1},bHL.hotConfigStore={addedAtVersion:1},bHL),shared:!1,upgrade:function(a,W){W(1)&&(ME(FU(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),ME(FU(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var sgR=function(){_.OW.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var a=_.RT("yt.gcf.config.hotUpdateCallbacks");a?(this.localHotConfigJobQueue=[].concat(_.K8(a)),this.sharedHotConfigJobQueue=a):(this.sharedHotConfigJobQueue=[],_.Dp("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.c(sgR,_.OW);sgR.prototype.disposeInternal=function(){for(var a=_.l(this.localHotConfigJobQueue),W=a.next();!W.done;W=a.next()){var w=this.sharedHotConfigJobQueue;W=w.indexOf(W.value);W>=0&&w.splice(W,1)}this.localHotConfigJobQueue.length=0;_.OW.prototype.disposeInternal.call(this)};var KH=function(){var a=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new sgR;this.TEST_ONLY={initializeConfigDb:function(){a.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return a.coldGlobalConfigGroup},
setHotConfigGroup:function(W){uI$(a,W)},
setHotHashData:function(W){a.setHotHashData(W)},
setColdConfigGroup:function(W){CaV(a,W)},
getColdHashData:function(){return a.coldHashData},
getHotHashData:function(){return a.hotHashData},
getHotConfigGroup:function(){return a.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return GPH()},
getExportedHotConfigGroup:function(){return TV()},
getExportedColdHashData:function(){return _.RT("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.RT("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){DdJ(a)},
resetInstance:function(){a.setHotHashData(void 0);f8e(a);delete KH.instance},
setDebounceTimer:function(W){a.debounceTimer=W},
getDebounceTimer:function(){return a.debounceTimer}}},ddJ=function(){if(!KH.instance){var a=new KH;
KH.instance=a}return KH.instance},zyE=function(a){var W;
_.P(function(w){if(w.nextAddress==1)return _.r("start_client_gcf")||_.r("delete_gcf_config_db")?_.r("start_client_gcf")?_.g(w,_.f3(),3):w.jumpTo(2):w.return();w.nextAddress!=2&&((W=w.yieldResult)&&_.kq()&&!_.r("delete_gcf_config_db")?(a.isConfigDbInitialized=!0,DdJ(a)):(mdR(a),VJy(a)));return _.r("delete_gcf_config_db")?_.g(w,g7e(),0):w.jumpTo(0)})},OtH=function(){var a;
return(a=TV())!=null?a:_.LF("RAW_HOT_CONFIG_GROUP")},HHh=function(a){var W,w,Z,N,B,I;
return _.P(function(X){switch(X.nextAddress){case 1:if(a.hotGlobalConfigGroup)return X.return(TV());if(!a.isConfigDbInitialized)return W=L3("getHotConfig IDB not initialized"),_.qx(W),X.return(Promise.reject(W));w=G4();Z=_.LF("TIME_CREATED_MS");if(!w){N=L3("getHotConfig token error");_.qx(N);X.jumpTo(2);break}return _.g(X,v79(w),3);case 3:if((B=X.yieldResult)&&B.timestamp>Z)return uI$(a,B.config),a.setHotHashData(B.hashData),X.return(TV());case 2:VJy(a);if(!(w&&a.hotGlobalConfigGroup&&a.hotHashData)){X.jumpTo(4);
break}return _.g(X,I9I(a.hotGlobalConfigGroup,a.hotHashData,w,Z),4);case 4:return a.hotGlobalConfigGroup?X.return(TV()):(I=new _.Uw("Config not available in ytConfig"),_.qx(I),X.return(Promise.reject(I)))}})},Ejl=function(a){var W,w,Z,N,B,I;
return _.P(function(X){switch(X.nextAddress){case 1:if(a.coldGlobalConfigGroup)return X.return(GPH());if(!a.isConfigDbInitialized)return W=L3("getColdConfig IDB not initialized"),_.qx(W),X.return(Promise.reject(W));w=G4();Z=_.LF("TIME_CREATED_MS");if(!w){N=L3("getColdConfig");_.qx(N);X.jumpTo(2);break}return _.g(X,X_U(w),3);case 3:if((B=X.yieldResult)&&B.timestamp>Z)return CaV(a,B.config),ylL(a,B.configData),f8e(a,B.hashData),X.return(GPH());case 2:mdR(a);if(!(w&&a.coldGlobalConfigGroup&&a.coldHashData&&
a.configData)){X.jumpTo(4);break}return _.g(X,P07(a.coldGlobalConfigGroup,a.coldHashData,a.configData,w,Z),4);case 4:return a.coldGlobalConfigGroup?X.return(GPH()):(I=new _.Uw("Config not available in ytConfig"),_.qx(I),X.return(Promise.reject(I)))}})},DdJ=function(a){if(!a.hotGlobalConfigGroup||!a.coldGlobalConfigGroup){if(!G4()){var W=L3("scheduleGetConfigs");
_.qx(W)}a.initJob||(a.initJob=_.hF.addLowPriorityJob(function(){return _.P(function(w){switch(w.nextAddress){case 1:return _.tq(w,2),_.g(w,HHh(a),4);case 4:_.qY(w,3);break;case 2:_.Pb(w);case 3:return _.tq(w,5),_.g(w,Ejl(a),7);case 7:_.qY(w,6);break;case 5:_.Pb(w);case 6:a.initJob&&(a.initJob=0),_.Xd(w)}})},100))}},vJC=function(a,W,w){var Z,N,B;
return _.P(function(I){switch(I.nextAddress){case 1:if(!_.r("start_client_gcf")){I.jumpTo(0);break}w&&uI$(a,w);a.setHotHashData(W);Z=G4();if(!Z){I.jumpTo(3);break}if(w){I.jumpTo(4);break}return _.g(I,v79(Z),5);case 5:N=I.yieldResult,w=(B=N)==null?void 0:B.config;case 4:return _.g(I,I9I(w,W,Z),3);case 3:if(w)for(var X=w,v=_.l(a.configUpdateService.sharedHotConfigJobQueue),U=v.next();!U.done;U=v.next())U=U.value,U(X);_.Xd(I)}})},gJD=function(a,W,w){var Z,N,B,I;
return _.P(function(X){if(X.nextAddress==1){if(!_.r("start_client_gcf"))return X.jumpTo(0);f8e(a,W);return(Z=G4())?w?X.jumpTo(4):_.g(X,X_U(Z),5):X.jumpTo(0)}X.nextAddress!=4&&(N=X.yieldResult,w=(B=N)==null?void 0:B.config);if(!w)return X.jumpTo(0);I=w.configData;return _.g(X,P07(w,W,I,Z),0)})},LXE=function(){var a=ddJ(),W=(0,_.mG)()-a.debounceTimer;
if(!(a.debounceTimer!==0&&W<_.yv("send_config_hash_timer"))){W=_.RT("yt.gcf.config.coldConfigData");var w=_.RT("yt.gcf.config.hotHashData"),Z=_.RT("yt.gcf.config.coldHashData");W&&w&&Z&&(a.debounceTimer=(0,_.mG)());return{coldConfigData:W,hotHashData:w,coldHashData:Z}}},mdR=function(a){CaV(a,_.LF("RAW_COLD_CONFIG_GROUP"));
f8e(a,_.LF("SERIALIZED_COLD_HASH_DATA"));var W;ylL(a,(W=a.coldGlobalConfigGroup)==null?void 0:W.configData)},VJy=function(a){uI$(a,_.LF("RAW_HOT_CONFIG_GROUP"));
a.setHotHashData(_.LF("SERIALIZED_HOT_HASH_DATA"))},uI$=function(a,W){a.hotGlobalConfigGroup=W;
_.Dp("yt.gcf.config.hotConfigGroup",a.hotGlobalConfigGroup||null)},CaV=function(a,W){a.coldGlobalConfigGroup=W;
_.Dp("yt.gcf.config.coldConfigGroup",a.coldGlobalConfigGroup||null)};
KH.prototype.setHotHashData=function(a){this.hotHashData=a;_.Dp("yt.gcf.config.hotHashData",this.hotHashData||null)};
var f8e=function(a,W){a.coldHashData=W;_.Dp("yt.gcf.config.coldHashData",a.coldHashData||null)},ylL=function(a,W){a.configData=W;
_.Dp("yt.gcf.config.coldConfigData",a.configData||null)},TV=function(){return _.RT("yt.gcf.config.hotConfigGroup")},GPH=function(){return _.RT("yt.gcf.config.coldConfigGroup")};var tF={},aWT=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";tF.assign=function(a){for(var W=Array.prototype.slice.call(arguments,1);W.length;){var w=W.shift();if(w){if(typeof w!=="object")throw new TypeError("Wc`"+w);for(var Z in w)Object.prototype.hasOwnProperty.call(w,Z)&&(a[Z]=w[Z])}}return a};
tF.shrinkBuf=function(a,W){if(a.length===W)return a;if(a.subarray)return a.subarray(0,W);a.length=W;return a};
var Wo$={arraySet:function(a,W,w,Z,N){if(W.subarray&&a.subarray)a.set(W.subarray(w,w+Z),N);else for(var B=0;B<Z;B++)a[N+B]=W[w+B]},
flattenChunks:function(a){var W,w;var Z=w=0;for(W=a.length;Z<W;Z++)w+=a[Z].length;var N=new Uint8Array(w);Z=w=0;for(W=a.length;Z<W;Z++){var B=a[Z];N.set(B,w);w+=B.length}return N}},wHe={arraySet:function(a,W,w,Z,N){for(var B=0;B<Z;B++)a[N+B]=W[w+B]},
flattenChunks:function(a){return[].concat.apply([],a)}};
tF.setTyped=function(){aWT?(tF.Buf8=Uint8Array,tF.Buf16=Uint16Array,tF.Buf32=Int32Array,tF.assign(tF,Wo$)):(tF.Buf8=Array,tF.Buf16=Array,tF.Buf32=Array,tF.assign(tF,wHe))};
tF.setTyped();var ZM_=!0;try{new Uint8Array(1)}catch(a){ZM_=!1}
var vpF=function(a){var W,w,Z=a.length,N=0;for(W=0;W<Z;W++){var B=a.charCodeAt(W);if((B&64512)===55296&&W+1<Z){var I=a.charCodeAt(W+1);(I&64512)===56320&&(B=65536+(B-55296<<10)+(I-56320),W++)}N+=B<128?1:B<2048?2:B<65536?3:4}var X=new tF.Buf8(N);for(W=w=0;w<N;W++)B=a.charCodeAt(W),(B&64512)===55296&&W+1<Z&&(I=a.charCodeAt(W+1),(I&64512)===56320&&(B=65536+(B-55296<<10)+(I-56320),W++)),B<128?X[w++]=B:(B<2048?X[w++]=192|B>>>6:(B<65536?X[w++]=224|B>>>12:(X[w++]=240|B>>>18,X[w++]=128|B>>>12&63),X[w++]=
128|B>>>6&63),X[w++]=128|B&63);return X};var E7C={};E7C=function(a,W,w,Z){var N=a&65535|0;a=a>>>16&65535|0;for(var B;w!==0;){B=w>2E3?2E3:w;w-=B;do N=N+W[Z++]|0,a=a+N|0;while(--B);N%=65521;a%=65521}return N|a<<16|0};for(var TK={},Km,NUV=[],t2$=0;t2$<256;t2$++){Km=t2$;for(var $6$=0;$6$<8;$6$++)Km=Km&1?3988292384^Km>>>1:Km>>>1;NUV[t2$]=Km}TK=function(a,W,w,Z){w=Z+w;for(a^=-1;Z<w;Z++)a=a>>>8^NUV[(a^W[Z])&255];return a^-1};var Ix={};Ix={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 uze=[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],GGe=[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],XJm=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],HDx=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],go=Array(576);WI(go);var km=Array(60);WI(km);var BI=Array(512);WI(BI);var $m=Array(256);WI($m);var C0e=Array(29);WI(C0e);var D17=Array(30);WI(D17);var lbU,Ib7,P8S,BKC=!1;var AF;
AF=[new ro(0,0,0,0,function(a,W){var w=65535;for(w>a.pending_buf_size-5&&(w=a.pending_buf_size-5);;){if(a.lookahead<=1){KJ(a);if(a.lookahead===0&&W===0)return 1;if(a.lookahead===0)break}a.strstart+=a.lookahead;a.lookahead=0;var Z=a.block_start+w;if(a.strstart===0||a.strstart>=Z)if(a.lookahead=a.strstart-Z,a.strstart=Z,Ox(a,!1),a.strm.avail_out===0)return 1;if(a.strstart-a.block_start>=a.w_size-262&&(Ox(a,!1),a.strm.avail_out===0))return 1}a.insert=0;if(W===4)return Ox(a,!0),a.strm.avail_out===0?3:
4;a.strstart>a.block_start&&Ox(a,!1);return 1}),
new ro(4,4,8,4,abU),new ro(4,5,16,8,abU),new ro(4,6,32,32,abU),new ro(4,4,16,16,pJ),new ro(8,16,32,32,pJ),new ro(8,16,128,128,pJ),new ro(8,32,128,256,pJ),new ro(32,128,258,1024,pJ),new ro(32,258,258,4096,pJ)];var $n8={};$n8=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 gpS=Object.prototype.toString;
tyI.prototype.push=function(a,W){var w=this.strm,Z=this.options.chunkSize;if(this.ended)return!1;var N=W===~~W?W:W===!0?4:0;typeof a==="string"?w.input=vpF(a):gpS.call(a)==="[object ArrayBuffer]"?w.input=new Uint8Array(a):w.input=a;w.next_in=0;w.avail_in=w.input.length;do{w.avail_out===0&&(w.output=new tF.Buf8(Z),w.next_out=0,w.avail_out=Z);a=NKe(w,N);if(a!==1&&a!==0)return BUT(this,a),this.ended=!0,!1;if(w.avail_out===0||w.avail_in===0&&(N===4||N===2))if(this.options.to==="string"){var B=tF.shrinkBuf(w.output,
w.next_out);W=B;B=B.length;if(B<65537&&(W.subarray&&ZM_||!W.subarray))W=String.fromCharCode.apply(null,tF.shrinkBuf(W,B));else{for(var I="",X=0;X<B;X++)I+=String.fromCharCode(W[X]);W=I}this.chunks.push(W)}else W=tF.shrinkBuf(w.output,w.next_out),this.chunks.push(W)}while((w.avail_in>0||w.avail_out===0)&&a!==1);if(N===4)return(w=this.strm)&&w.state?(Z=w.state.status,Z!==42&&Z!==69&&Z!==73&&Z!==91&&Z!==103&&Z!==113&&Z!==666?a=PI(w,-2):(w.state=null,a=Z===113?PI(w,-3):0)):a=-2,BUT(this,a),this.ended=
!0,a===0;N===2&&(BUT(this,0),w.avail_out=0);return!0};
var BUT=function(a,W){W===0&&(a.result=a.options.to==="string"?a.chunks.join(""):tF.flattenChunks(a.chunks));a.chunks=[];a.err=W;a.msg=a.strm.msg};var lW6=typeof TextEncoder!=="undefined"?new TextEncoder:null,C88=lW6?function(a){return lW6.encode(a)}:function(a){a=_.UW(a);
for(var W=new Uint8Array(a.length),w=0;w<W.length;w++)W[w]=a[w];return W};var YVU={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Kve={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var pm=function(a,W){this.version=a;this.args=W};
pm.prototype.serialize=function(){return{version:this.version,args:this.args}};var SdE=function(a,W){this.topic=a;this.dataClass=W};
SdE.prototype.toString=function(){return this.topic};var IWE=_.RT("ytPubsub2Pubsub2Instance")||new _.I0;_.I0.prototype.subscribe=_.I0.prototype.subscribe;_.I0.prototype.unsubscribeByKey=_.I0.prototype.unsubscribeByKey;_.I0.prototype.publish=_.I0.prototype.publish;_.I0.prototype.clear=_.I0.prototype.clear;_.Dp("ytPubsub2Pubsub2Instance",IWE);var Ox8=_.RT("ytPubsub2Pubsub2SubscribedKeys")||{};_.Dp("ytPubsub2Pubsub2SubscribedKeys",Ox8);var TKS=_.RT("ytPubsub2Pubsub2TopicToKeys")||{};_.Dp("ytPubsub2Pubsub2TopicToKeys",TKS);
var YdS=_.RT("ytPubsub2Pubsub2IsAsync")||{};_.Dp("ytPubsub2Pubsub2IsAsync",YdS);_.Dp("ytPubsub2Pubsub2SkipSubKey",null);var jsv=void 0,ezS=void 0;var xnF=_.yv("max_body_size_to_compress",5E5),bxU=_.yv("min_body_size_to_compress",500),e6=!0,fbS=0,nJ=0,Dne=_.yv("compression_performance_threshold_lr",250),dnU=_.yv("slow_compressions_before_abandon_count",4),FO7=!1,Mye=new Map,ubm=1,ssC=!0;_.NT(j6,zzm);j6.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 PF$=function(a,W,w){w||(w=0);var Z=a.W_;if(typeof W==="string")for(var N=0;N<16;N++)Z[N]=W.charCodeAt(w)<<24|W.charCodeAt(w+1)<<16|W.charCodeAt(w+2)<<8|W.charCodeAt(w+3),w+=4;else for(N=0;N<16;N++)Z[N]=W[w]<<24|W[w+1]<<16|W[w+2]<<8|W[w+3],w+=4;for(W=16;W<80;W++)w=Z[W-3]^Z[W-8]^Z[W-14]^Z[W-16],Z[W]=(w<<1|w>>>31)&4294967295;W=a.chain_[0];w=a.chain_[1];N=a.chain_[2];for(var B=a.chain_[3],I=a.chain_[4],X,v,U=0;U<80;U++)U<40?U<20?(X=B^w&(N^B),v=1518500249):(X=w^N^B,v=1859775393):U<60?(X=w&N|B&(w|N),
v=2400959708):(X=w^N^B,v=3395469782),X=(W<<5|W>>>27)+X+I+v+Z[U]&4294967295,I=B,B=N,N=(w<<30|w>>>2)&4294967295,w=W,W=X;a.chain_[0]=a.chain_[0]+W&4294967295;a.chain_[1]=a.chain_[1]+w&4294967295;a.chain_[2]=a.chain_[2]+N&4294967295;a.chain_[3]=a.chain_[3]+B&4294967295;a.chain_[4]=a.chain_[4]+I&4294967295};
j6.prototype.update=function(a,W){if(a!=null){W===void 0&&(W=a.length);for(var w=W-this.blockSize,Z=0,N=this.buf_,B=this.inbuf_;Z<W;){if(B==0)for(;Z<=w;)PF$(this,a,Z),Z+=this.blockSize;if(typeof a==="string")for(;Z<W;){if(N[B]=a.charCodeAt(Z),++B,++Z,B==this.blockSize){PF$(this,N);B=0;break}}else for(;Z<W;)if(N[B]=a[Z],++B,++Z,B==this.blockSize){PF$(this,N);B=0;break}}this.inbuf_=B;this.total_+=W}};
j6.prototype.digest=function(){var a=[],W=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var w=this.blockSize-1;w>=56;w--)this.buf_[w]=W&255,W/=256;PF$(this,this.buf_);for(w=W=0;w<5;w++)for(var Z=24;Z>=0;Z-=8)a[W]=this.chain_[w]>>Z&255,++W;return a};var Epe;var A2=function(a){var W=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(O){W.databaseToken=O},
triggerThrottle:function(){W.throttledSend()},
cancelThrottle:function(){W.cancelThrottledSend()},
immediateSend:function(O){return _.P(function(S){return _.g(S,W.immediateSend(O),0)})},
requestWithinAgeLimit:function(O,S){return W.requestWithinAgeLimit(O,S)},
retryQueuedRequests:function(){W.retryQueuedRequests()}};
var w;this.throttleTimeout=(w=a.throttleTimeout)!=null?w:100;var Z;this.retryMaxAttempts=(Z=a.retryMaxAttempts)!=null?Z:1;var N;this.requestAgeLimitMs=(N=a.requestAgeLimitMs)!=null?N:2592E6;var B;this.queuedRequestAgeLimitMs=(B=a.queuedRequestAgeLimitMs)!=null?B:12E4;var I;this.retryDelayMs=(I=a.retryDelayMs)!=null?I:5E3;var X;this.databaseToken=(X=a.databaseToken)!=null?X:void 0;this.enableCleaning=!!a.enableCleaning;var v;this.cleaningRate=(v=a.cleaningRate)!=null?v:.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;rF(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&XHR(this)},XHR=function(a){rF(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)))};
_.t=A2.prototype;_.t.writeThenSend=function(a,W){var w=this;W=W===void 0?{}:W;if(rF(this)&&this.initialized){var Z={url:a,options:W,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(Z,this.databaseToken).then(function(N){Z.id=N;w.networkManager.isNetworkAvailable()&&w.immediateSend(Z)}).catch(function(N){w.immediateSend(Z);
vUE(w,N)})}else this.sendFn(a,W)};
_.t.sendThenWrite=function(a,W,w){var Z=this;W=W===void 0?{}:W;if(rF(this)&&this.initialized){var N={url:a,options:W,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(N.skipRetry=w);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!N.skipRetry){if(!N.skipRetry){var B=W.onError?W.onError:function(){};
W.onError=function(I,X){return _.P(function(v){if(v.nextAddress==1)return _.g(v,Z.logsStore.set(N,Z.databaseToken).catch(function(U){vUE(Z,U)}),2);
B(I,X);_.Xd(v)})}}this.sendFn(a,W,N.skipRetry)}else this.logsStore.set(N,this.databaseToken).catch(function(I){Z.sendFn(a,W,N.skipRetry);
vUE(Z,I)})}else this.sendFn(a,W,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&w)};
_.t.sendAndWrite=function(a,W){var w=this;W=W===void 0?{}:W;if(rF(this)&&this.initialized){var Z={url:a,options:W,timestamp:this.now(),status:"NEW",sendCount:0},N=!1,B=W.onSuccess?W.onSuccess:function(){};
Z.options.onSuccess=function(I,X){Z.id!==void 0?w.logsStore.deleteRequest(Z.id,w.databaseToken):N=!0;w.networkManager.networkStatusHint&&w.getBooleanFlag&&w.getBooleanFlag("vss_network_hint")&&w.networkManager.networkStatusHint(!0);B(I,X)};
this.sendFn(Z.url,Z.options,void 0,!0);this.logsStore.set(Z,this.databaseToken).then(function(I){Z.id=I;N&&w.logsStore.deleteRequest(Z.id,w.databaseToken)}).catch(function(I){vUE(w,I)})}else this.sendFn(a,W,void 0,!0)};
_.t.throttledSend=function(){var a=this;if(!rF(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,a.logsStore.getMostRecentByStatus("NEW",a.databaseToken),2);if(w.nextAddress!=3)return W=w.yieldResult,W?_.g(w,a.immediateSend(W),3):(a.cancelThrottledSend(),w.return());a.intervalJob&&(a.intervalJob=0,a.throttledSend());_.Xd(w)})},this.throttleTimeout))};
_.t.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.t.immediateSend=function(a){var W=this,w;return _.P(function(Z){switch(Z.nextAddress){case 1:if(!rF(W))throw Error("$c");if(a.id===void 0){Z.jumpTo(2);break}return _.g(Z,W.logsStore.markAsQueued(a.id,W.databaseToken),3);case 3:(w=Z.yieldResult)||W.handleWarning(Error("ad"));case 2:if(W.requestWithinAgeLimit(a,W.requestAgeLimitMs)){Z.jumpTo(4);break}W.handleWarning(Error("bd"));if(a.id===void 0){Z.jumpTo(5);break}return _.g(Z,W.logsStore.deleteRequest(a.id,W.databaseToken),5);case 5:return Z.return();
case 4:a.skipRetry||(a=gUT(W,a));if(!a){Z.jumpTo(0);break}if(!a.skipRetry||a.id===void 0){Z.jumpTo(8);break}return _.g(Z,W.logsStore.deleteRequest(a.id,W.databaseToken),8);case 8:W.sendFn(a.url,a.options,!!a.skipRetry),_.Xd(Z)}})};
var gUT=function(a,W){if(!rF(a))throw Error("cd");var w=W.options.onError?W.options.onError:function(){};
W.options.onError=function(N,B){var I,X,v,U;return _.P(function(O){switch(O.nextAddress){case 1:I=NiU(B);(X=tMx(B))&&a.getBooleanFlag&&a.getBooleanFlag("web_enable_error_204")&&a.handleError(Error("dd"),W.url,B);if(!(a.getBooleanFlag&&a.getBooleanFlag("nwl_consider_error_code")&&I||a.getBooleanFlag&&!a.getBooleanFlag("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.potentialEsfErrorLimit)){O.jumpTo(2);break}if(!a.networkManager.sendNetworkCheckRequest){O.jumpTo(3);break}return _.g(O,a.networkManager.sendNetworkCheckRequest(),
3);case 3:if(a.networkManager.isNetworkAvailable()){O.jumpTo(2);break}w(N,B);if(!a.getBooleanFlag||!a.getBooleanFlag("nwl_consider_error_code")||((v=W)==null?void 0:v.id)===void 0){O.jumpTo(6);break}return _.g(O,a.logsStore.resetRequest(W.id,a.databaseToken,!1),6);case 6:return O.return();case 2:if(a.getBooleanFlag&&a.getBooleanFlag("nwl_consider_error_code")&&!I&&a.potentialEsfErrorCounter>a.potentialEsfErrorLimit)return O.return();a.potentialEsfErrorCounter++;if(((U=W)==null?void 0:U.id)===void 0){O.jumpTo(8);
break}return W.sendCount<a.retryMaxAttempts?_.g(O,a.logsStore.resetRequest(W.id,a.databaseToken,!0,X?!1:void 0),12):_.g(O,a.logsStore.deleteRequest(W.id,a.databaseToken),8);case 12:a.jobManager.addLowPriorityJob(function(){a.networkManager.isNetworkAvailable()&&a.throttledSend()},a.retryDelayMs);
case 8:w(N,B),_.Xd(O)}})};
var Z=W.options.onSuccess?W.options.onSuccess:function(){};
W.options.onSuccess=function(N,B){var I;return _.P(function(X){if(X.nextAddress==1)return((I=W)==null?void 0:I.id)===void 0?X.jumpTo(2):_.g(X,a.logsStore.deleteRequest(W.id,a.databaseToken),2);a.networkManager.networkStatusHint&&a.getBooleanFlag&&a.getBooleanFlag("vss_network_hint")&&a.networkManager.networkStatusHint(!0);Z(N,B);_.Xd(X)})};
return W};
A2.prototype.requestWithinAgeLimit=function(a,W){a=a.timestamp;return this.now()-a>=W?!1:!0};
A2.prototype.retryQueuedRequests=function(){var a=this;if(!rF(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(W){W&&!a.requestWithinAgeLimit(W,a.queuedRequestAgeLimitMs)?a.jobManager.addLowPriorityJob(function(){return _.P(function(w){if(w.nextAddress==1)return W.id===void 0?w.jumpTo(2):_.g(w,a.logsStore.resetRequest(W.id,a.databaseToken),2);a.retryQueuedRequests();_.Xd(w)})}):a.networkManager.isNetworkAvailable()&&a.throttledSend()})};
var vUE=function(a,W){a.writeError&&!a.networkManager.isNetworkAvailable()?a.writeError(W):a.handleError(W)},rF=function(a){return!!a.databaseToken||a.bypassDbTokenDependency};var $jv;var Uw8={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,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};var oU_={},UjS=dz("ServiceWorkerLogsDatabase",{objectStores:(oU_.SWHealthLog={addedAtVersion:1},oU_),shared:!0,upgrade:function(a,W){W(1)&&ME(FU(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var c7E={},iCE=0;var Lh7;var h2=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},bn=function(){if(!h2.instance){var a=_.RT("yt.networkRequestMonitor.instance")||new h2;
_.Dp("yt.networkRequestMonitor.instance",a);h2.instance=a}return h2.instance};
h2.prototype.requestComplete=function(a,W){W&&(this.anyRequestHasSucceeded=!0);a=this.removeParams(a);this.requestMap.get(a)||this.requestMap.set(a,W)};
h2.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.requestMap.get(a))?!1:a===!1&&this.anyRequestHasSucceeded?!0:null};
h2.prototype.removeParams=function(a){return a.split("?")[0]};
h2.prototype.removeParams=h2.prototype.removeParams;h2.prototype.isEndpointCFR=h2.prototype.isEndpointCFR;h2.prototype.requestComplete=h2.prototype.requestComplete;h2.getInstance=bn;var iw=function(a){_.Ti.call(this);var W=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=a!=null?a:{addLowPriorityJob:function(N,B){return setTimeout(N,B)},
cancelJob:function(N){clearTimeout(N)}};
var w,Z;this.isOnline=(Z=(w=window.navigator)==null?void 0:w.onLine)!=null?Z:!0;this.onNavigatorChange=function(){return _.P(function(N){return _.g(N,kc$(W),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||U6e(this)};
_.c(iw,_.Ti);iw.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete iw.instance};
iw.prototype.isNetworkAvailable=function(){return this.isOnline};
var U6e=function(a){a.pollingJob=a.jobManager.addLowPriorityJob(function(){var W;return _.P(function(w){if(w.nextAddress==1)return a.isOnline?((W=window.navigator)==null?0:W.onLine)?w.jumpTo(3):_.g(w,kc$(a),3):_.g(w,kc$(a),3);U6e(a);_.Xd(w)})},3E4)},kc$=function(a,W){return a.networkRequestPromise?a.networkRequestPromise:a.networkRequestPromise=new Promise(function(w){var Z,N,B,I;
return _.P(function(X){switch(X.nextAddress){case 1:return Z=window.AbortController?new window.AbortController:void 0,B=(N=Z)==null?void 0:N.signal,I=!1,_.tq(X,2,3),Z&&(a.abortTimeoutKey=a.jobManager.addLowPriorityJob(function(){Z.abort()},W||2E4)),_.g(X,fetch("/generate_204",{method:"HEAD",
signal:B}),5);case 5:I=!0;case 3:_.$8(X);a.networkRequestPromise=void 0;a.abortTimeoutKey&&(a.jobManager.cancelJob(a.abortTimeoutKey),a.abortTimeoutKey=0);I!==a.isOnline&&(a.isOnline=I,a.isOnline?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));w(I);_.In(X,0);break;case 2:_.Pb(X),I=!1,X.jumpTo(3)}})})};var c1=function(){_.Ti.call(this);var a=this;this.shouldFlushErrors=!1;iw.instance||(iw.instance=new iw(_.hF));this.sharedNetworkStatusManager=iw.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(a.shouldFlushErrors&&_.r("offline_error_handling")){var W=J7H().get("errors",!0);if(W){for(var w in W)if(W[w]){var Z=new _.Uw(w,"sent via offline_errors");Z.name=W[w].name;Z.stack=W[w].stack;Z.level=W[w].level;_.Ff(Z)}J7H().set("errors",{},2592E3,!0)}}})};
_.c(c1,_.Ti);var OM_=function(){if(!c1.instance){var a=_.RT("yt.networkStatusManager.instance")||new c1;_.Dp("yt.networkStatusManager.instance",a);c1.instance=a}return c1.instance};
_.t=c1.prototype;_.t.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.t.networkStatusHint=function(a){this.sharedNetworkStatusManager.isOnline=a};
_.t.getWindowStatus=function(){var a=window.navigator.onLine;return a===void 0?!0:a};
_.t.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.t.listen=function(a,W){return this.sharedNetworkStatusManager.listen(a,W)};
_.t.sendNetworkCheckRequest=function(a){a=kc$(this.sharedNetworkStatusManager,a);a.then(function(W){_.r("use_cfr_monitor")&&bn().requestComplete("generate_204",W)});
return a};
c1.prototype.sendNetworkCheckRequest=c1.prototype.sendNetworkCheckRequest;c1.prototype.listen=c1.prototype.listen;c1.prototype.enableErrorFlushing=c1.prototype.enableErrorFlushing;c1.prototype.getWindowStatus=c1.prototype.getWindowStatus;c1.prototype.networkStatusHint=c1.prototype.networkStatusHint;c1.prototype.isNetworkAvailable=c1.prototype.isNetworkAvailable;c1.getInstance=OM_;_.xm=function(a){a=a===void 0?{}:a;_.Ti.call(this);var W=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=OM_();var w=_.RT("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);w&&(a.rateLimit?(this.rateLimit=a.rateLimit,w("networkstatus-online",function(){Sf_(W,"publicytnetworkstatus-online")}),w("networkstatus-offline",function(){Sf_(W,"publicytnetworkstatus-offline")})):(w("networkstatus-online",function(){W.dispatchEvent("publicytnetworkstatus-online")}),w("networkstatus-offline",
function(){W.dispatchEvent("publicytnetworkstatus-offline")})))};
_.c(_.xm,_.Ti);_.xm.prototype.isNetworkAvailable=function(){var a=_.RT("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.nsmInstance)():!0};
_.xm.prototype.networkStatusHint=function(a){var W=_.RT("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);W&&W(a)};
_.xm.prototype.sendNetworkCheckRequest=function(a){var W=this,w;return _.P(function(Z){w=_.RT("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(W.nsmInstance);return _.r("skip_network_check_if_cfr")&&bn().isEndpointCFR("generate_204")?Z.return(new Promise(function(N){var B;W.networkStatusHint(((B=window.navigator)==null?void 0:B.onLine)||!0);N(W.isNetworkAvailable())})):w?Z.return(w(a)):Z.return(!0)})};
var Sf_=function(a,W){a.rateLimit?a.lastJobTime?(_.hF.cancelJob(a.schedulerJob),a.schedulerJob=_.hF.addLowPriorityJob(function(){a.lastPublicSignalSent!==W&&(a.dispatchEvent(W),a.lastPublicSignalSent=W,a.lastJobTime=(0,_.mG)())},a.rateLimit-((0,_.mG)()-a.lastJobTime))):(a.dispatchEvent(W),a.lastPublicSignalSent=W,a.lastJobTime=(0,_.mG)()):a.dispatchEvent(W)};var Q1S,ei=function(){A2.call(this,{logsStore:{cleanLogsStore:ooe,deleteRequest:gox,getMostRecentByStatus:PhF,markAsQueued:XuF,resetRequest:voF,set:I3E},networkManager:_.xjF(),handleError:function(a,W,w){var Z,N=w==null?void 0:(Z=w.error)==null?void 0:Z.code;if(N===400||N===415){var B;a=new _.Uw(a.message,W,w==null?void 0:(B=w.error)==null?void 0:B.code);_.qx(a,void 0,void 0,void 0,!0)}else _.Ff(a)},
handleWarning:_.qx,sendFn:R5F,now:_.mG,writeError:FhH,jobManager:_.n4(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.yv("potential_esf_error_limit",10),getBooleanFlag:_.r,disableYtIdbTransactions:!(_.kq()&&_.bCH())});this.initializationPromise=new _.wi;_.r("networkless_immediately_drop_all_requests")&&kXv();tWS("LogsDatabaseV2")};
_.c(ei,A2);_.TUV=function(){var a=_.RT("yt.networklessRequestController.instance");a||(a=new ei,_.Dp("yt.networklessRequestController.instance",a),_.r("networkless_logging")&&_.f3().then(function(W){a.databaseToken=W;XHR(a);a.initializationPromise.resolve();a.enableCleaning&&Math.random()<=a.cleaningRate&&a.databaseToken&&S69(a.databaseToken);_.r("networkless_immediately_drop_sw_health_store")&&YfL(a)}));
return a};
ei.prototype.writeThenSend=function(a,W){W||(W={});W=q6e(a,W);_.kq()||(this.initialized=!1);A2.prototype.writeThenSend.call(this,a,W)};
ei.prototype.sendThenWrite=function(a,W,w){W||(W={});W=q6e(a,W);_.kq()||(this.initialized=!1);A2.prototype.sendThenWrite.call(this,a,W,w)};
ei.prototype.sendAndWrite=function(a,W){W||(W={});W=q6e(a,W);_.kq()||(this.initialized=!1);A2.prototype.sendAndWrite.call(this,a,W)};
ei.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var YfL=function(a){var W;_.P(function(w){if(!a.databaseToken)throw W=L3("clearSWHealthLogsDb"),W;return w.return(Y6I(a.databaseToken).catch(function(Z){a.handleError(Z)}))})};_.uKm=!1;_.s1E=_.NH.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.uKm};_.Dp("ytNetworklessLoggingInitializationOptions",_.s1E);var Al=function(a){var W=this;this.config_=null;a?this.config_=a:o7x()&&(this.config_=_.z4());_.TP(_.hF,function(){ZCS(W)},5E3)};
Al.prototype.isReady=function(){!this.config_&&o7x()&&(this.config_=_.z4());return!!this.config_};
var wue=function(a,W,w,Z){!_.LF("VISITOR_DATA")&&W!=="visitor_id"&&Math.random()<.01&&_.qx(new _.Uw("Missing VISITOR_DATA when sending innertube request.",W,w,Z));if(!a.isReady()){var N=new _.Uw("innertube xhrclient not ready",W,w,Z);_.Ff(N);throw N;}var B={headers:Z.headers||{},method:"POST",postParams:w,postBody:Z.postBody,postBodyFormat:Z.postBodyFormat||"JSON",onTimeout:function(){Z.onTimeout()},
onFetchTimeout:Z.onTimeout,onSuccess:function(S,T){if(Z.onSuccess)Z.onSuccess(T)},
onFetchSuccess:function(S){if(Z.onSuccess)Z.onSuccess(S)},
onError:function(S,T){if(Z.onError)Z.onError(T)},
onFetchError:function(S){if(Z.onError)Z.onError(S)},
timeout:Z.timeout,withCredentials:!0,compress:Z.compress};B.headers["Content-Type"]||(B.headers["Content-Type"]="application/json");var I="";(N=a.config_.innertubeHostOverride)&&(I=N);var X=a.config_.innertubeUseThirdPartyAuth||!1,v=_.jVD(X,I,Z);Object.assign(B.headers,v);B.headers.Authorization&&!I&&X&&(B.headers["x-origin"]=window.location.origin);var U=_.uG(I+("/youtubei/"+a.config_.innertubeApiVersion+"/"+W),{alt:"json"}),O=function(S){S=S===void 0?!1:S;var T;if(Z.retry&&I!="www.youtube-nocookie.com"&&
(S||_.r("skip_ls_gel_retry")||B.headers["Content-Type"]!=="application/json"||(T=a3S(W,w,v,X)),T)){var p=B.onSuccess,h=B.onFetchSuccess;B.onSuccess=function(x,G){Whv(T);p(x,G)};
w.onFetchSuccess=function(x,G){Whv(T);h(x,G)}}try{if(S&&Z.retry&&!Z.networklessOptions.bypassNetworkless)B.method="POST",Z.networklessOptions.writeThenSend?_.TUV().writeThenSend(U,B):_.TUV().sendAndWrite(U,B);
else if(Z.compress){var L=!Z.networklessOptions.writeThenSend;if(B.postBody){var F=B.postBody;typeof F!=="string"&&(F=JSON.stringify(B.postBody));GCI(U,F,B,_.Bi,L)}else GCI(U,JSON.stringify(B.postParams),B,z37,L)}else _.r("web_all_payloads_via_jspb")?_.Bi(U,B):z37(U,B)}catch(x){if(x.name==="InvalidAccessError")T&&(Whv(T),T=0),_.qx(Error("fd"));else throw x;}T&&_.TP(_.hF,function(){ZCS(a)},5E3)};
_.ChD()?HSC().then(function(S){O(S)}):O(!1)};var VSx=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(VSx,_.QH);var KoV=0,DjI=_.Pz?"webkit":_.IY?"moz":_.lB?"ms":dNx?"o":"";_.Dp("ytDomDomGetNextId",_.RT("ytDomDomGetNextId")||function(){return++KoV});var pHT={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},fJ=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 W in a)W in pHT||(this[W]=a[W]);this.scale=a.scale;this.rotation=a.rotation;var w=a.target||a.srcElement;w&&w.nodeType==3&&(w=w.parentNode);this.target=w;var Z=a.relatedTarget;if(Z)try{Z=Z.nodeName?Z:null}catch(N){Z=null}else this.type=="mouseover"?Z=a.fromElement:this.type=="mouseout"&&(Z=a.toElement);this.relatedTarget=Z;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(N){}},rfA=function(a){if(document.body&&document.documentElement){var W=document.body.scrollTop+document.documentElement.scrollTop;
a.pageX_=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.pageY_=a.clientY+W}};
fJ.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
fJ.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
fJ.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var DV=_.NH.ytEventsEventsListeners||{};_.Dp("ytEventsEventsListeners",DV);var HCI=_.NH.ytEventsEventsCounter||{count:0};_.Dp("ytEventsEventsCounter",HCI);var y7m=_.Y2(function(){var a=!1;try{var W=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,W)}catch(w){}return a});_.NT(Vl,_.OW);Vl.prototype.onMouseMove_=function(a){a.pageX_===void 0&&rfA(a);var W=a.pageX_;a.pageY_===void 0&&rfA(a);this.position_=new _.r3(W,a.pageY_)};
Vl.prototype.checkPosition_=function(){if(this.position_){var a=(0,_.mG)();if(this.previousTime_!=0){var W=this.previousPosition_,w=this.position_,Z=W.x-w.x;W=W.y-w.y;Z=Math.sqrt(Z*Z+W*W)/(a-this.previousTime_);this.cycles_[this.index_]=Math.abs((Z-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(w=W=0;w<4;w++)W+=this.cycles_[w]||0;W>=3&&this.callback_();this.previousVelocity_=Z}this.previousTime_=a;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Vl.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.EoH(this.mouseListenerKey_)};var Zp7={};var XXx=new _.H("rawColdConfigGroup");var PxU=new _.H("rawHotConfigGroup");var AfJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(AfJ,_.QH);var mPI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(mPI,_.QH);var Yj=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a,500)};
_.c(Yj,_.QH);Yj.prototype.getPayloadCase=function(){return _.AD(this,h3_)};
Yj.prototype.getContext=function(){return _.Hi(this,mPI,33)};
var h3_=[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];var NJm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(NJm,_.QH);var FV9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(FV9,_.QH);FV9.prototype.setVideoId=function(a){return XI(this,1,MKF,xd(a))};
FV9.prototype.getPlaylistId=function(){return _.I$(this,Un(this,MKF,2))};
var MKF=[1,2];var ytx=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(ytx,_.QH);ytx.prototype.getContext=function(){return _.Hi(this,vZ,1)};
ytx.prototype.getTier=function(){return _.JD(this,7)};var iMA,WZ,wt;iMA=_.NH.ytPubsubPubsubInstance||new _.I0;WZ=_.NH.ytPubsubPubsubSubscribedKeys||{};wt=_.NH.ytPubsubPubsubTopicToKeys||{};_.N$S=_.NH.ytPubsubPubsubIsSynchronous||{};_.I0.prototype.subscribe=_.I0.prototype.subscribe;_.I0.prototype.unsubscribeByKey=_.I0.prototype.unsubscribeByKey;_.I0.prototype.publish=_.I0.prototype.publish;_.I0.prototype.clear=_.I0.prototype.clear;_.Dp("ytPubsubPubsubInstance",iMA);_.Dp("ytPubsubPubsubTopicToKeys",wt);_.Dp("ytPubsubPubsubIsSynchronous",_.N$S);
_.Dp("ytPubsubPubsubSubscribedKeys",WZ);var Nd=window;var nm=_.r("web_enable_lifecycle_monitoring")&&ICx()!==0,cfe=_.r("web_enable_lifecycle_monitoring");var nUR=function(a){var W=this;var w=w===void 0?0:w;var Z=Z===void 0?_.n4():Z;this.JSC$8720_defaultPriority=w;this.scheduler=Z;this.completedResolver=new _.wi;this.scheduledPayloads=a;for(a={i$jscomp$528:0};a.i$jscomp$528<this.scheduledPayloads.length;a={payload$jscomp$18:void 0,i$jscomp$528:a.i$jscomp$528},a.i$jscomp$528++)a.payload$jscomp$18=this.scheduledPayloads[a.i$jscomp$528],w=function(N){return function(){N.payload$jscomp$18.job();W.scheduledPayloads[N.i$jscomp$528].processed=!0;W.scheduledPayloads.every(function(B){return B.processed===
!0})&&W.completedResolver.resolve()}}(a),Z=this.scheduler.addJob(w,e3T(this,a.payload$jscomp$18)),this.scheduledPayloads[a.i$jscomp$528]=Object.assign({},a.payload$jscomp$18,{job:w,
jobId:Z})};
nUR.prototype.flushJobs=function(){var a=this,W=Array.from(this.scheduledPayloads.keys()).sort(function(Z,N){return e3T(a,a.scheduledPayloads[N])-e3T(a,a.scheduledPayloads[Z])});
W=_.l(W);for(var w=W.next();!w.done;w=W.next())w=this.scheduledPayloads[w.value],w.jobId===void 0||w.processed||(this.scheduler.cancelJob(w.jobId),this.scheduler.addJob(w.job,10))};
nUR.prototype.cancel=function(){for(var a=_.l(this.scheduledPayloads),W=a.next();!W.done;W=a.next())W=W.value,W.jobId===void 0||W.processed||this.scheduler.cancelJob(W.jobId),W.processed=!0;this.completedResolver.resolve()};
var e3T=function(a,W){var w;return(w=W.priority)!=null?w:a.JSC$8720_defaultPriority};var ji=function(a){this.state=a;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};nm&&PO7(this.state)};
ji.prototype.install=function(a){this.plugins.push(a);return this};
ji.prototype.uninstall=function(){var a=this;_.TH.apply(0,arguments).forEach(function(W){W=a.plugins.indexOf(W);W>-1&&a.plugins.splice(W,1)})};
ji.prototype.transition=function(a,W){var w=this;nm&&XAe(this.state);var Z=this.transitions.find(function(B){return Array.isArray(B.from)?B.from.find(function(I){return I===w.state&&B.to===a}):B.from===w.state&&B.to===a});
if(Z){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);jUV(this,a,W);this.state=a;nm&&PO7(this.state);Z=Z.action.bind(this);var N=this.plugins.filter(function(B){return B[a]}).map(function(B){return B[a]});
Z(LoJ(this,N),W)}else throw Error("gd`"+this.state+"`"+a);};
var LoJ=function(a,W){var w=W.filter(function(N){return Jfh(a,N)===10}),Z=W.filter(function(N){return Jfh(a,N)!==10});
return a.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var N=_.TH.apply(0,arguments);return _.P(function(B){if(B.nextAddress==1)return _.g(B,a.runImmediateJobsAsync.apply(a,[w].concat(_.K8(N))),2);a.setJobSetWithScheduledJobs.apply(a,[Z].concat(_.K8(N)));_.Xd(B)})}:function(){var N=_.TH.apply(0,arguments);
a.runImmediateJobsSync.apply(a,[w].concat(_.K8(N)));a.setJobSetWithScheduledJobs.apply(a,[Z].concat(_.K8(N)))}};
ji.prototype.runImmediateJobsSync=function(a){var W=_.TH.apply(1,arguments);_.n4();for(var w=_.l(a),Z=w.next(),N={};!Z.done;N={lifecycle$jscomp$2:void 0},Z=w.next())N.lifecycle$jscomp$2=Z.value,dJ(function(B){return function(){FoA(B.lifecycle$jscomp$2.name);gQS(function(){return B.lifecycle$jscomp$2.callback.apply(B.lifecycle$jscomp$2,_.K8(W))});
Lm(B.lifecycle$jscomp$2.name)}}(N))};
ji.prototype.runImmediateJobsAsync=function(a){var W=_.TH.apply(1,arguments),w,Z,N,B;return _.P(function(I){I.nextAddress==1&&(_.n4(),w=_.l(a),Z=w.next(),N={});if(I.nextAddress!=3){if(Z.done)return I.jumpTo(0);N.lifecycle$jscomp$3=Z.value;N.asyncJobCompletion=void 0;B=function(X){return function(){FoA(X.lifecycle$jscomp$3.name);var v=gQS(function(){return X.lifecycle$jscomp$3.callback.apply(X.lifecycle$jscomp$3,_.K8(W))});
AiE(v)?X.asyncJobCompletion=_.r("web_lifecycle_error_handling_killswitch")?v.then(function(){Lm(X.lifecycle$jscomp$3.name)}):v.then(function(){Lm(X.lifecycle$jscomp$3.name)},function(U){vQC(U);
Lm(X.lifecycle$jscomp$3.name)}):Lm(X.lifecycle$jscomp$3.name)}}(N);
dJ(B);return N.asyncJobCompletion?_.g(I,N.asyncJobCompletion,3):I.jumpTo(3)}N={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};Z=w.next();return I.jumpTo(2)})};
ji.prototype.setJobSetWithScheduledJobs=function(a){var W=_.TH.apply(1,arguments),w=this,Z=a.map(function(N){return{job:function(){FoA(N.name);gQS(function(){return N.callback.apply(N,_.K8(W))});
Lm(N.name)},
priority:Jfh(w,N)}});
Z.length&&(this.jobSet=new nUR(Z))};
var Jfh=function(a,W){var w,Z;return(Z=(w=a.overridePriority)!=null?w:W.priority)!=null?Z:0},FoA=function(a){nm&&a&&PO7(a)},Lm=function(a){nm&&a&&XAe(a)},jUV=function(a,W,w){cfe&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+W+"'"),console.log("with message: ",w),console.groupEnd())};
_.dU.Object.defineProperties(ji.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var M2J=function(a){ji.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(){}}]},R3h;
_.c(M2J,ji);M2J.prototype.runApplicationNavigationBegin=function(a,W){var w=this;this.navigationTimer=_.TP(_.hF,function(){w.currentState==="application_navigating"&&w.transition("none")},5E3);
a(W==null?void 0:W.event)};
M2J.prototype.runApplicationNavigationEnd=function(a,W){this.navigationTimer&&(_.hF.cancelJob(this.navigationTimer),this.navigationTimer=null);a(W==null?void 0:W.event)};
_.IgD=function(){R3h||(R3h=new M2J);return R3h};var lg8=[];_.Dp("yt.logging.transport.getScrapedGelPayloads",function(){return lg8});var tl=function(){var a=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return a.totalEntries}}};
tl.prototype.storePayload=function(a,W){a=oQI(a);this.store[a]?this.store[a].push(W):(this.memoizedKeySequences={},this.store[a]=[W]);this.totalEntries++;_.r("more_accurate_gel_parser")&&(W=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(W));return a};
tl.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var W=qfJ(this,a.keys.splice(0,1)[0]),w=[],Z=0;Z<W.length;Z++)this.store[W[Z]]&&a.sizeLimit&&(this.store[W[Z]].length<=a.sizeLimit?(w.push.apply(w,_.K8(this.store[W[Z]])),delete this.store[W[Z]]):w.push.apply(w,_.K8(this.store[W[Z]].splice(0,a.sizeLimit))));this.totalEntries-=w.length;(a==null?0:a.sizeLimit)&&w.length<(a==null?void 0:a.sizeLimit)&&(a.sizeLimit-=w.length,w.push.apply(w,_.K8(this.smartExtractMatchingEntries(a))));
return w};
tl.prototype.extractMatchingEntries=function(a){a=qfJ(this,a);for(var W=[],w=0;w<a.length;w++)this.store[a[w]]&&(W.push.apply(W,_.K8(this.store[a[w]])),delete this.store[a[w]]);this.totalEntries-=W.length;return W};
tl.prototype.getSequenceCount=function(a){a=qfJ(this,a);for(var W=0,w=0;w<a.length;w++){var Z=void 0;W+=((Z=this.store[a[w]])==null?void 0:Z.length)||0}return W};
var qfJ=function(a,W){var w=oQI(W);if(a.memoizedKeySequences[w])return a.memoizedKeySequences[w];var Z=Object.keys(a.store)||[];if(Z.length<=1&&oQI(W)===Z[0])return Z;for(var N=[],B=0;B<Z.length;B++){var I=Z[B].split("/");if(QUl(W.auth,I[0])){var X=W.isJspb;QUl(X===void 0?"undefined":X?"true":"false",I[1])&&QUl(W.cttAuthInfo,I[2])&&(X=W.tier,X=X===void 0?"undefined":JSON.stringify(X),QUl(X,I[3])&&N.push(Z[B]))}}return a.memoizedKeySequences[w]=N},QUl=function(a,W){return a===void 0||a==="undefined"?
!0:a===W};
tl.prototype.getSequenceCount=tl.prototype.getSequenceCount;tl.prototype.extractMatchingEntries=tl.prototype.extractMatchingEntries;tl.prototype.smartExtractMatchingEntries=tl.prototype.smartExtractMatchingEntries;tl.prototype.storePayload=tl.prototype.storePayload;var GD8,uMv,DtC,Ig,x6R,k$8,oJ9,s59,bpe,eSF,COF,$wF,qNv;GD8=_.yv("initial_gel_batch_timeout",2E3);uMv=_.yv("gel_queue_timeout_max_ms",6E4);DtC=_.yv("gel_min_batch_size",5);Ig=void 0;x6R=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
k$8=new x6R;oJ9=new x6R;s59=new x6R;bpe=new x6R;COF=!0;$wF=1;_.txF=new Map;qNv=_.NH.ytLoggingTransportTokensToCttTargetIds_||{};_.Dp("ytLoggingTransportTokensToCttTargetIds_",qNv);var RSC=_.NH.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Dp("ytLoggingTransportTokensToJspbCttTargetIds_",RSC);var la={};var pH=_.NH.ytLoggingGelSequenceIdObj_||{};_.Dp("ytLoggingGelSequenceIdObj_",pH);var Y8I=[];var LYI=new Set,AQm=0,RIe=0,MxU=0,ite=[],hIe=[],q8C=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var zIH=function(){};
zIH.prototype.getUrl=function(a,W){W=W===void 0?!1:W;return a.hasOwnProperty("shareEndpoint")?null:_.sdm(a,null,W)};
var Z$m=function(a,W,w){a={endpoint:W,actions:[]};w=(w.path?w.path[0]:w.target).icon||"";W=w.indexOf(":");W>0&&(w=w.substr(W+1));w&&a.actions.push(w);return a};var dw7=/Command$/,fgv=/Endpoint$/,Cxe=new Map;var bMT,sUJ;bMT=1;_.sn=function(){this.actionRoutingMap=new Map};
_.sn.prototype.triggerAction=function(a){var W=new A1D(a,!1,_.TH.apply(1,arguments));this.handleAction(W);return W.returnValue};
_.sn.prototype.triggerOptionalAction=function(a){var W=new A1D(a,!0,_.TH.apply(1,arguments));this.handleAction(W);return W.returnValue};
_.J2=function(a,W,w){W.forEach(function(Z){var N=Dw9(Z);N&&a.triggerOptionalAction(N,Z,w,void 0)})};
_.sn.prototype.handleAction=function(a){var W=this.actionRoutingMap.get(a.actionName);W&&sUJ(a,W);a.optionalAction||a.returnValue.length!==0||(a=new _.Uw("Unhandled action",a.actionName),_.qx(a))};
sUJ=function(a,W){W.forEach(function(w){var Z=null;w?Z=w.apply(null,a.args):(w=Error("hd"),w.params=a.actionName,_.Ff(w));a.returnValue.push(Z)})};
_.ua=function(a,W,w){w||(w=bMT++);for(var Z=_.l(Object.keys(W)),N=Z.next();!N.done;N=Z.next()){N=N.value;var B=a.actionRoutingMap.get(N);B||(B=new Map,a.actionRoutingMap.set(N,B));a.registerActionHandler(w,N,W[N],B)}return w};
_.sn.prototype.registerActionHandler=function(a,W,w,Z){Z.set(a,_.Mx(w))};
_.CH=function(a,W,w){W=_.l(Object.keys(W));for(var Z=W.next();!Z.done;Z=W.next())(Z=a.actionRoutingMap.get(Z.value))&&Z.delete(w)};
_.wk(_.sn);var EJe=function(a,W){var w=_.sn.getInstance();_.AS(function(){var Z={},N=_.ua(w,(Z[a]=W,Z));_.Ao(function(){var B={};_.CH(w,(B[a]="",B),N)})})};var ZAx=function(a,W){_.AS(function(){var w=a.value;w?(w.addEventListener("yt-service-request-sent",W,void 0),_.Ao(function(){w?w.removeEventListener("yt-service-request-sent",W,void 0):N2U(a)})):N2U(a)})};l87=MJH;var OAF=new Set(["For","If","Match","Watch"]),uvH={},CFl=(uvH[jQ.default]=function(){return wZC},uvH.style=function(){return wZC},uvH),Gce;
for(Gce in CFl)VS.attributes[Gce]=CFl[Gce](VS.attributes[Gce]);var HZ=new _.yq("VISIBILITY_OBSERVER");var cue={retrieve:function(a){return this.id.\u0275prov.token===a.\u0275prov.token?this.contextValue:this?RqI(this,this.id):MmC}};var D6A=function(a,W,w){if(a!==dt)return!1;a=X$I(document.createElement("div"),function(){var Z=Ei(!1);try{w[0]()}finally{Ei(Z)}});
a=Array.from(a.childNodes);a.length===1&&(a=a[0]);return a};var fWH=function(a){a=a.clone();StH(a);T_(a,"dg",null);T_(a,"d","0");o6R(a,null);kUL(a,null);return a},d6T=!0,m6R=function(a,W,w){var Z=w===void 0?{}:w;
w=Z.cssRowKey===void 0?void 0:Z.cssRowKey;var N=Z.combinedSignature===void 0?void 0:Z.combinedSignature;var B=Z.extraEdges===void 0?void 0:Z.extraEdges;Z=Z.callback===void 0?void 0:Z.callback;T_(a,"m",W.join(","));B&&OFe(a,B);w&&(T_(a,"ck",w),N?T_(a,"rs",N):d6T&&(d6T=!1));if(Z){if(Z!=null&&!KBH.test(Z))throw Error("ab`"+Z);T_(a,"cb",Z)}a=a.toString();_.IC(a,"/")&&(a=WZH(document.location.href)+a);return _.lq(a)};var z36=function(a){return V2A(a).then(function(W){return JSON.parse(W.responseText)})},V2A=function(a){var W={},w=W.xmlHttpFactory?W.xmlHttpFactory.createInstance():Qn$.createInstance();
return(new _.PZ(function(Z,N){var B;try{w.open("GET",a,!0)}catch(v){N(new FW("Error opening XHR: "+v.message,a,w))}w.onreadystatechange=function(){if(w.readyState==4){_.NH.clearTimeout(B);var v;!(v=qKR(w.status))&&(v=w.status===0)&&(v=a2R(a),v=!(v=="http"||v=="https"||v==""));v?Z(w):N(new HM6(w.status,a,w))}};
w.onerror=function(){N(new FW("Network error",a,w))};
if(W.headers)for(var I in W.headers){var X=W.headers[I];X!=null&&w.setRequestHeader(I,X)}W.withCredentials&&(w.withCredentials=W.withCredentials);W.responseType&&(w.responseType=W.responseType);W.mimeType&&w.overrideMimeType(W.mimeType);W.timeoutMs>0&&(B=_.NH.setTimeout(function(){w.onreadystatechange=function(){};
w.abort();N(new yf6(a,w))},W.timeoutMs));
try{w.send(null)}catch(v){w.onreadystatechange=function(){},_.NH.clearTimeout(B),N(new FW("Error sending XHR: "+v.message,a,w))}})).thenCatch(function(Z){Z instanceof _.V0&&w.abort();
throw Z;})},FW=function(a,W,w){_.Wv.call(this,a+", url="+W);
this.url=W;this.xhr=w};
_.NT(FW,_.Wv);FW.prototype.name="XhrError";var HM6=function(a,W,w){FW.call(this,"Request Failed, status="+a,W,w);this.status=a};
_.NT(HM6,FW);HM6.prototype.name="XhrHttpError";var yf6=function(a,W){FW.call(this,"Request timed out",a,W)};
_.NT(yf6,FW);yf6.prototype.name="XhrTimeoutError";Wz=Wz||{};var MK=function(){_.OW.call(this)};
_.NT(MK,_.OW);MK.prototype.initialize=function(){};var EUJ=function(a,W){this.fn_=a;this.handler_=W};
EUJ.prototype.execute=function(a){this.fn_&&(this.fn_.call(this.handler_||null,a),this.fn_=this.handler_=null)};
EUJ.prototype.abort=function(){this.handler_=this.fn_=null};var Rr=function(a,W){_.OW.call(this);this.deps_=a;this.JSC$8847_id_=W;this.onloadCallbacks_=[];this.JSC$8847_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.NT(Rr,_.OW);Rr.prototype.moduleConstructor_=MK;Rr.prototype.module_=null;Rr.prototype.getId=function(){return this.JSC$8847_id_};
Rr.prototype.registerCallback=function(a,W){return aGE(this.onloadCallbacks_,a,W)};
var WmJ=function(a,W){aGE(a.JSC$8847_onErrorCallbacks_,W)},aGE=function(a,W,w){W=new EUJ(W,w);
a.push(W);return W};
Rr.prototype.isLoaded=function(){return!!this.module_};
Rr.prototype.onLoad=function(a){var W=new this.moduleConstructor_;W.initialize(a());this.module_=W;W=(W=wGE(this.earlyOnloadCallbacks_,a()))||wGE(this.onloadCallbacks_,a());W||(this.JSC$8847_onErrorCallbacks_.length=0);return W};
Rr.prototype.onError=function(a){(a=wGE(this.JSC$8847_onErrorCallbacks_,a))&&$I(Error("nd`"+a));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var wGE=function(a,W){for(var w=[],Z=0;Z<a.length;Z++)try{a[Z].execute(W)}catch(N){$I(N),w.push(N)}a.length=0;return w.length?w:null};
Rr.prototype.disposeInternal=function(){Rr.superClass_.disposeInternal.call(this);_.d3(this.module_)};var ZSh,IGR,BQR,lGR,tH$,$Mh,osL,vs_,gsJ;
_.Q9=function(a,W,w,Z,N){Z=Z===void 0?!1:Z;N=N===void 0?!1:N;var B=B===void 0?!0:B;this.scsReferenceUrl_=dh(_.IJ(a).toString(),B);this.cssRowKey_=W;this.combinedSignature_=w;this.useNegativeLoading_=Z;this.requestedModuleMap_={};this.JSC$8850_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(a=Y$(this.scsReferenceUrl_,"excm"))?a.split(","):[];this.shouldScanForCss_=N;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;WGm();this.logger=null;_.qK(this,Ux_(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
ZSh=function(a,W){if(W.href||W.getAttribute("data-href"))if(W=W.href||W.getAttribute("data-href"),HFv(W)&&!dh(W).urlPrefix_.endsWith("_/js/")){W=Ux_(dh(W));W=_.l(W);for(var w=W.next();!w.done;w=W.next())w=w.value,a.loadedCssModuleList_.includes(w)||a.loadedCssModuleList_.push(w)}};
_.Q9.prototype.JSC$8852_loadModules=function(a,W,w){var Z=w===void 0?{}:w;w=Z.extraEdges;var N=Z.onError;var B=Z.onSuccess;Z=Z.forceReload;this.JSC$8850_moduleInfoMap_=W;if(!a)throw Error("od");if(this.shouldScanForCss_){W=_.l(document.getElementsByTagName("style"));for(var I=W.next();!I.done;I=W.next())ZSh(this,I.value);W=_.l(document.getElementsByTagName("link"));for(I=W.next();!I.done;I=W.next())ZSh(this,I.value)}NQL(this,tH$(this,a),w,N,B,Z)};
var NQL=function(a,W,w,Z,N,B){Z=Z===void 0?function(){}:Z;
N=N===void 0?function(){}:N;
B=B===void 0?!1:B;$Mh(a,W,function(I,X,v){v=v===void 0?X:v;a.enableFallbackFetch&&B?a.loadWithFetch(I,X,Z,N,v):a.load(I,X,Z,N,v,w)},w)||Z(-1)};
_.Q9.prototype.loadWithFetch=function(){_.P(function(){throw Error("pd");})};
_.Q9.prototype.maybeSetAdditionalFields=function(){};
IGR=function(a,W,w){if(a.useNegativeLoading_){var Z=a.scsReferenceUrl_;a={cssRowKey:a.cssRowKey_,combinedSignature:a.combinedSignature_,extraEdges:w,requestedModuleIds:BQR(a),requestedCssModuleIds:lGR(a)};var N=a===void 0?{}:a;a=N.requestedModuleIds===void 0?[]:N.requestedModuleIds;w=N.requestedCssModuleIds===void 0?[]:N.requestedCssModuleIds;var B=N.cssRowKey===void 0?void 0:N.cssRowKey;var I=N.combinedSignature===void 0?void 0:N.combinedSignature;var X=N.extraEdges===void 0?void 0:N.extraEdges;
N=N.callback===void 0?void 0:N.callback;Z=fWH(Z);T_(Z,"d","1");o6R(Z,a);kUL(Z,w);W=m6R(Z,W,{cssRowKey:B,combinedSignature:I,extraEdges:X,callback:N})}else Z=a.scsReferenceUrl_,a={cssRowKey:a.cssRowKey_,combinedSignature:a.combinedSignature_,requestedModuleIds:BQR(a),requestedCssModuleIds:lGR(a)},X=a===void 0?{}:a,a=X.requestedCssModuleIds===void 0?[]:X.requestedCssModuleIds,w=X.cssRowKey===void 0?void 0:X.cssRowKey,B=X.combinedSignature===void 0?void 0:X.combinedSignature,I=X.extraEdges===void 0?
void 0:X.extraEdges,X=X.callback===void 0?void 0:X.callback,Z=fWH(Z),kUL(Z,a),W=m6R(Z,W,{cssRowKey:w,combinedSignature:B,extraEdges:I,callback:X});return W};
_.qK=function(a,W){for(var w=!1,Z=[],N=0;N<W.length;++N){var B=W[N];a.requestedModuleMap_[B]||(a.requestedModuleMap_[B]=!0,a.requestedModuleList_.push(B),w=!0,Z.push(B))}w&&(a.requestedModuleListSorted_=!1)};
_.xK=function(a,W){for(var w=[],Z=0;Z<W.length;++Z){var N=W[Z];a.requestedModuleMap_[N]&&(delete a.requestedModuleMap_[N],_.yF(a.requestedModuleList_,N),w.push(N))}};
_.Q9.prototype.load=function(a,W,w,Z,N){N=N===void 0?W:N;_.IJ(a);var B=this.useCors_,I=this.corsMode_,X=this.fetchPriority,v=_.PM("SCRIPT");_.Q$(v,a);B&&(v.crossOrigin=I);v.async=!1;X&&v.setAttribute("fetchpriority",X);_.qK(this,W);_.P6J(this,a,v,W,w,Z,N)};
_.P6J=function(a,W,w,Z,N,B,I){I=I===void 0?Z:I;a.lastScript_=w;a.insertPos.insertBefore(w,a.insertPos.firstChild);_.XGV(w,Z,function(){w.parentElement.removeChild(w);a.lastScript_==w&&(a.lastScript_=null);var X=new Set;Z.map(function(U){return X.add(U)});
for(var v in a.JSC$8850_moduleInfoMap_)a.JSC$8850_moduleInfoMap_[v].isLoaded()&&X.add(v);Array.from(X);B()},function(X){w.parentElement.removeChild(w);
a.lastScript_==w&&(a.lastScript_=null);_.xK(a,X);a.pendingModuleGraphUpdate_?a.pendingModuleGraphUpdate_.then(function(){N(-1,W)}):N(-1,W)},I)};
_.XGV=function(a,W,w,Z,N){N=N===void 0?W:N;var B=W.length,I=function(){B=0;a.onload=null;a.onerror=null;X=function(){}},X=function(){I();
var U=N.filter(function(O){return!rh().getModuleInfo(O).isLoaded()});
U.length!==0?Z(U,"Response was successful but was missing module(s) "+U+"."):w()},v=function(){B--;
B==0&&X()};
W.forEach(function(U){U=rh().getModuleInfo(U);U.isLoaded()?v():(aGE(U.earlyOnloadCallbacks_,v),WmJ(U,v))});
a.onload=function(){return X()};
a.onerror=function(){I();Z(W)}};
BQR=function(a){a.requestedModuleListSorted_||(a.requestedModuleListSorted_=!0,a.requestedModuleList_.sort());return a.requestedModuleList_};
lGR=function(a){a=a.loadedCssModuleList_;a.sort();return a};
tH$=function(a,W){return W.filter(function(w){return!a.requestedModuleMap_[w]})};
$Mh=function(a,W,w,Z){if(a.pendingModuleGraphUpdate_)return a.pendingModuleGraphUpdate_.then(function(){$Mh(a,W,w,Z)}),!0;
if(!a.useNegativeLoading_){var N=[],B=Object.assign({},a.requestedModuleMap_);vs_(a,W,function(O){N.push(O.getId())},Z,function(O){return!O.isLoaded()},B);
W=N}for(B=0;B<W.length;){for(var I=W.length-B,X=B==0?W:W.slice(B,W.length),v=IGR(a,X,Z),U=_.IJ(v).toString();U.length>a.urlMaxLength;)if(I>1)I-=Math.ceil((U.length-a.urlMaxLength)/6),I=Math.max(I,1),X=W.slice(B,B+I),v=IGR(a,X,Z),U=_.IJ(v).toString();else return a.useNegativeLoading_?(a.useNegativeLoading_=!1,a.pendingModuleGraphUpdate_=gsJ(a).then(function(O){osL(a,O,Z)}),$Mh(a,W.slice(B),w,Z)):!1;
B+=I;a.useNegativeLoading_?w(v,X):w(v,X,B===W.length?W:[])}return!0};
osL=function(a,W,w){rh().setAllModuleInfoString((W||{}).moduleGraph);vs_(a,BQR(a),function(Z){_.qK(a,[Z.getId()])},w);
a.pendingModuleGraphUpdate_=null};
vs_=function(a,W,w,Z,N,B){B=B===void 0?{}:B;var I=rh();W=_.l(W);for(var X=W.next();!X.done;X=W.next()){X=X.value;var v=I.getModuleInfo(X);if(!(B[X]||N&&!N(v))){B[X]=!0;var U=v.deps_||[];if(Z){var O=[];Z[X]&&(O=Object.keys(Z[X]));U=U.concat(O)}vs_(a,U,w,Z,N,B);w(v)}}};
gsJ=function(a){a=a.scsReferenceUrl_.clone();StH(a);T_(a,"dg",null);T_(a,"md","1");return z36(a.toString())};var jtH=new Uint8Array(123);var kqH=[];var UMR=function(){this.JSC$7962_loader_=null};
_.t=UMR.prototype;_.t.setBatchModeEnabled=function(){};
_.t.setAllModuleInfoString=function(){};
_.t.addExtraEdge=function(){throw Error("qd");};
_.t.removeExtraEdge=function(){throw Error("rd");};
_.t.getModuleContext=function(){return null};
_.t.isActive=function(){return!1};
_.t.isUserActive=function(){return!1};
_.t.registerCallback=function(){};var bw=function(a,W,w,Z,N){var B=Error.call(this);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.name="ModuleLoadFailure";this.type=a;this.status=W;this.requestedModuleIds=w;this.url=Z;this.cause=N;this.message=this.toString()};
_.c(bw,Error);bw.prototype.toString=function(){return OSR(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var OSR=function(a){switch(a.type){case bw.JSC$8862_Type.UNAUTHORIZED:return"Unauthorized";case bw.JSC$8862_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case bw.JSC$8862_Type.TIMEOUT:return"Timed out";case bw.JSC$8862_Type.OLD_CODE_GONE:return"Out of date module id";case bw.JSC$8862_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+a.type}};
Wz.ModuleLoadFailure=bw;Wz.ModuleLoadFailure.JSC$8862_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var sV=function(){this.moduleIds_=this.JSC$7962_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8865_extraEdges_={};this.JSC$8865_callbackMap_={};this.JSC$8865_currentlyLoadingModule_=this.baseModuleInfo_=new Rr([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Gi;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.NT(sV,UMR);var S$$=function(a,W){_.Wv.call(this,"Error loading "+a+": "+W)};
_.NT(S$$,_.Wv);sV.prototype.setBatchModeEnabled=function(a){this.batchModeEnabled_=a};
sV.prototype.setAllModuleInfoString=function(a,W){if(!(this instanceof sV))this.setAllModuleInfoString(a,W);else if(typeof a==="string"){if(a.startsWith("d$")){a=a.substring(2);for(var w=[],Z=0,N=a.indexOf("/"),B=0,I=!1,X=0;;){var v=I?a.substring(B):a.substring(B,N);if(v.length===0)Z++,B="sy"+Z.toString(36),v=[];else{var U=v.indexOf(":");if(U<0)B=v,v=[];else if(U===v.length-1)B=v.substring(0,U),v=Array(w[X-1]);else{B=v.substring(0,U);v=v.substring(U+1).split(",");U=X;for(var O=0;O<v.length;O++)U-=
v[O].length===0?1:Number(v[O]),v[O]=w[U]}U=0;if(B.length===0)U=1;else if(B.charAt(0)==="+"||B.charAt(0)==="-")U=Number(B);U!==0&&(Z+=U,B="sy"+Z.toString(36))}w.push(B);Y$e(this,B,v);if(I)break;B=N+1;N=a.indexOf("/",B);N===-1&&(I=!0);X++}this.moduleIds_=w}else if(a.startsWith("p$"))TQH(this,a);else{a=a.split("/");w=[];for(Z=0;Z<a.length;Z++){X=a[Z].split(":");N=X[0];I=[];if(X[1])for(I=X[1].split(","),X=0;X<I.length;X++)I[X]=w[parseInt(I[X],36)];w.push(N);Y$e(this,N,I)}this.moduleIds_=w}W&&W.length?
(_.ZE(this.loadingModuleIds_,W),this.lastInitialModuleId_=_.xI(W)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8865_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8865_currentlyLoadingModule_=null,(W=this.baseModuleInfo_.onLoad((0,_.Sk)(this.getModuleContext,this)))&&W.length&&KmE(this,new Wz.ModuleLoadFailure(Wz.ModuleLoadFailure.JSC$8862_Type.INIT_ERROR,void 0,void 0,void 0,W[0])),uw(this))}};
var TQH=function(a,W){var w=W.substring(2);for(W=0;W<64;W++)jtH["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(W)]=W;var Z={buf:w,pos:0};aU(Z);var N=aU(Z),B=aU(Z)+1;W=Array(N);var I=Array(N),X=Array(N);B=Array(B);var v=0,U=0,O=Z.pos,S=Z.buf.indexOf("|",Z.pos);Z.pos=S+1;for(S=0;S<N;S++){var T=aU(Z),p=T&2,h=T&1;T>>>=2;h?(v+=T>>>1^-(T&1),T="sy"+v.toString(36)):(h=O,O+=T,T=w.substring(h,O));W[S]=T;p&&(B[U++]=T)}B[U]="";Z.pos++;U=N&-2;w=N&1;for(v=0;v<U;v+=2)O=Lde(Z),X[v]=
O&7,X[v+1]=O>>>3&7;w&&(w=Lde(Z),X[U]=w&7);Z.pos++;for(U=0;U<N;U++)X[U]===7&&(X[U]=aU(Z));Z.pos++;for(w=U=0;w<N;w++){v=X[w];O=v===0?kqH:Array(v);I[w]=O;S=U;for(p=0;p<v;p++)S-=aU(Z),O[p]=B[S];B[U]===W[w]&&U++}for(Z=0;Z<W.length;Z++)Y$e(a,W[Z],I[Z]);a.moduleIds_=W};
_.t=sV.prototype;_.t.getModuleInfo=function(a){return this.moduleInfoMap[a]};
_.t.addExtraEdge=function(a,W){var w=this.getModuleInfo(a);w&&w.isLoaded()?this.load(W):(this.JSC$8865_extraEdges_[a]||(this.JSC$8865_extraEdges_[a]={}),this.JSC$8865_extraEdges_[a][W]=!0)};
_.t.removeExtraEdge=function(a,W){if(this.JSC$8865_extraEdges_[a]){delete this.JSC$8865_extraEdges_[a][W];for(var w in this.JSC$8865_extraEdges_[a])return;delete this.JSC$8865_extraEdges_[a]}};
_.t.isActive=function(){return this.loadingModuleIds_.length>0};
_.t.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var uw=function(a){var W=a.lastActive_,w=a.isActive();w!=W&&(a.executeCallbacks_(w?"active":"idle"),a.lastActive_=w);W=a.isUserActive();W!=a.userLastActive_&&(a.executeCallbacks_(W?"userActive":"userIdle"),a.userLastActive_=W)},Y$e=function(a,W,w){a.moduleInfoMap[W]?(a=a.moduleInfoMap[W].deps_,a!=w&&a.splice.apply(a,[0,
a.length].concat(_.K8(w)))):a.moduleInfoMap[W]=new Rr(w,W)},rsR=function(a,W,w){var Z=[];
Ie(W,Z);W=[];for(var N={},B=0;B<Z.length;B++){var I=Z[B],X=a.getModuleInfo(I);if(!X)throw Error("sd`"+I);var v=new Gi;N[I]=v;X.isLoaded()?v.callback(null):(pGE(a,I,X,!!w,v),a.isModuleLoading(I)||W.push(I))}W.length>0&&(a.loadingModuleIds_.length===0?a.loadModules_(W):(a.requestedModuleIdsQueue_.push(W),uw(a)));return N},pGE=function(a,W,w,Z,N){w.registerCallback(N.callback,N);
WmJ(w,function(B){N.errback(new S$$(W,B))});
a.isModuleLoading(W)?Z&&(AsV(a,W),uw(a)):Z&&AsV(a,W)};
sV.prototype.loadModules_=function(a,W,w){var Z=this;W||(this.consecutiveFailures_=0);var N=h9R(this,a);this.loadingModuleIds_=N;this.requestedLoadingModuleIds_=this.batchModeEnabled_?a:_.Wl(N);uw(this);if(N.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,N);if(Object.keys(this.JSC$8865_extraEdges_).length>0&&!this.JSC$7962_loader_.supportsExtraEdges)throw Error("td");a=(0,_.Sk)(this.JSC$7962_loader_.JSC$8852_loadModules,this.JSC$7962_loader_,_.Wl(N),this.moduleInfoMap,{extraEdges:this.JSC$8865_extraEdges_,
forceReload:!!w,onError:function(B,I){var X=Z.requestedLoadingModuleIds_;B=B!=null?B:void 0;Z.consecutiveFailures_++;var v=_.Wl(N);Z.requestedLoadingModuleIds_=X;N.forEach(_.v_(_.yF,Z.requestedModuleIds_),Z);B==401?(KmE(Z,new Wz.ModuleLoadFailure(Wz.ModuleLoadFailure.JSC$8862_Type.UNAUTHORIZED,B)),Z.requestedModuleIdsQueue_.length=0):B==410?(iSL(Z,new Wz.ModuleLoadFailure(Wz.ModuleLoadFailure.JSC$8862_Type.OLD_CODE_GONE,B)),csT(Z)):Z.consecutiveFailures_>=3?(iSL(Z,new Wz.ModuleLoadFailure(Wz.ModuleLoadFailure.JSC$8862_Type.CONSECUTIVE_FAILURES,
B,v,I)),csT(Z)):Z.loadModules_(Z.requestedLoadingModuleIds_,!0,B==8001||!1)},
onTimeout:(0,_.Sk)(this.handleLoadTimeout_,this)});(W=Math.pow(this.consecutiveFailures_,2)*5E3)?_.NH.setTimeout(a,W):a()}};
var h9R=function(a,W){W=W.filter(function(N){return a.moduleInfoMap[N].isLoaded()?(_.NH.setTimeout(function(){return Error("ud`"+N)},0),!1):!0});
for(var w=[],Z=0;Z<W.length;Z++)w=w.concat(e96(a,W[Z]));Ie(w);return!a.batchModeEnabled_&&w.length>1?(W=w.shift(),a.requestedModuleIdsQueue_=w.map(function(N){return[N]}).concat(a.requestedModuleIdsQueue_),[W]):w},e96=function(a,W){var w=_.T5.createSet(a.requestedModuleIds_),Z=[];
w[W]||Z.push(W);W=[W];for(var N=0;N<W.length;N++)for(var B=a.getModuleInfo(W[N]).deps_,I=B.length-1;I>=0;I--){var X=B[I];a.getModuleInfo(X).isLoaded()||w[X]||(Z.push(X),W.push(X))}Z.reverse();Ie(Z);return Z};
sV.prototype.JSC$8860_setLoaded=function(){if(this.JSC$8865_currentlyLoadingModule_){var a=this.JSC$8865_currentlyLoadingModule_.getId(),W=[];if(this.JSC$8865_extraEdges_[a]){for(var w=_.l(Object.keys(this.JSC$8865_extraEdges_[a])),Z=w.next();!Z.done;Z=w.next()){Z=Z.value;var N=this.getModuleInfo(Z);N&&!N.isLoaded()&&(this.removeExtraEdge(a,Z),W.push(Z))}this.loadMultiple(W)}this.isDisposed()||((W=this.moduleInfoMap[a].onLoad((0,_.Sk)(this.getModuleContext,this)))&&W.length&&KmE(this,new Wz.ModuleLoadFailure(Wz.ModuleLoadFailure.JSC$8862_Type.INIT_ERROR,
void 0,void 0,void 0,W[0])),_.yF(this.userInitiatedLoadingModuleIds_,a),_.yF(this.loadingModuleIds_,a),this.loadingModuleIds_.length===0&&csT(this),this.lastInitialModuleId_&&a==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),uw(this),this.JSC$8865_currentlyLoadingModule_=null)}};
sV.prototype.isModuleLoading=function(a){if(_.f7(this.loadingModuleIds_,a))return!0;for(var W=0;W<this.requestedModuleIdsQueue_.length;W++)if(_.f7(this.requestedModuleIdsQueue_[W],a))return!0;return!1};
sV.prototype.load=function(a,W){return rsR(this,[a],W)[a]};
sV.prototype.loadMultiple=function(a){return rsR(this,a)};
var AsV=function(a,W){_.f7(a.userInitiatedLoadingModuleIds_,W)||a.userInitiatedLoadingModuleIds_.push(W)};
sV.prototype.beforeLoadModuleCode=function(a){var W=this;this.JSC$8865_currentlyLoadingModule_&&this.JSC$8865_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8860_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[a]&&nsh(this,this.moduleInfoMap[a].deps_||[],function(w){w.module_=new MK;_.yF(W.loadingModuleIds_,w.getId())},function(w){return!w.isLoaded()});
this.JSC$8865_currentlyLoadingModule_=this.getModuleInfo(a)};
sV.prototype.handleLoadTimeout_=function(){iSL(this,new Wz.ModuleLoadFailure(Wz.ModuleLoadFailure.JSC$8862_Type.TIMEOUT));csT(this)};
var iSL=function(a,W){a.requestedLoadingModuleIds_.length>1?a.requestedModuleIdsQueue_=a.requestedLoadingModuleIds_.map(function(w){return[w]}).concat(a.requestedModuleIdsQueue_):KmE(a,W)},KmE=function(a,W){var w=a.requestedLoadingModuleIds_;
a.loadingModuleIds_.length=0;for(var Z=[],N=0;N<a.requestedModuleIdsQueue_.length;N++){var B=a.requestedModuleIdsQueue_[N].filter(function(v){var U=e96(this,v);return sx(w,function(O){return _.f7(U,O)})},a);
_.ZE(Z,B)}for(N=0;N<w.length;N++)_.dE(Z,w[N]);for(N=0;N<Z.length;N++){for(B=0;B<a.requestedModuleIdsQueue_.length;B++)_.yF(a.requestedModuleIdsQueue_[B],Z[N]);_.yF(a.userInitiatedLoadingModuleIds_,Z[N])}if(N=a.JSC$8865_callbackMap_.error)for(B=0;B<N.length;B++)for(var I=N[B],X=0;X<Z.length;X++)I("error",Z[X],W);for(Z=0;Z<w.length;Z++)if(a.moduleInfoMap[w[Z]])a.moduleInfoMap[w[Z]].onError(W);a.requestedLoadingModuleIds_.length=0;uw(a)},csT=function(a){for(;a.requestedModuleIdsQueue_.length;){var W=
a.requestedModuleIdsQueue_.shift().filter(function(w){return!this.getModuleInfo(w).isLoaded()},a);
if(W.length>0){a.loadModules_(W);return}}uw(a)};
sV.prototype.registerCallback=function(a,W){Array.isArray(a)||(a=[a]);for(var w=0;w<a.length;w++){var Z=a[w],N=W,B=this.JSC$8865_callbackMap_;B[Z]||(B[Z]=[]);B[Z].push(N)}};
sV.prototype.executeCallbacks_=function(a){for(var W=this.JSC$8865_callbackMap_[a],w=0;W&&w<W.length;w++)W[w](a)};
var nsh=function(a,W,w,Z,N){Z=Z===void 0?function(){return!0}:Z;
N=N===void 0?{}:N;W=_.l(W);for(var B=W.next();!B.done;B=W.next()){B=B.value;var I=a.getModuleInfo(B);!N[B]&&Z(I)&&(N[B]=!0,nsh(a,I.deps_||[],w,Z,N),w(I))}};
sV.prototype.dispose=function(){_.mk(_.T5.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8865_callbackMap_={};this.isDisposed_=!0};
sV.prototype.isDisposed=function(){return this.isDisposed_};
_.pr=function(){return new sV};var jm$=[5E3,2E4],LmH=function(){this.JSC$7962_loader_=null;this.JSC$8873_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8873_queue_=[];this.JSC$8873_extraEdges_=Object.create(null);this.JSC$8873_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.c(LmH,UMR);_.t=LmH.prototype;_.t.setAllModuleInfoString=function(){this.JSC$8873_currentlyLoadingModule_&&this.JSC$8873_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8860_setLoaded()};
_.t.getModuleInfo=function(a){var W=this.JSC$8873_moduleInfoMap_[a];W||(W=new Rr([],a),this.JSC$8873_moduleInfoMap_[a]=W);return W};
_.t.addExtraEdge=function(a,W){this.getModuleInfo(a).isLoaded()?this.load(W):(this.JSC$8873_extraEdges_[a]||(this.JSC$8873_extraEdges_[a]={}),this.JSC$8873_extraEdges_[a][W]=!0)};
_.t.removeExtraEdge=function(a,W){if(this.JSC$8873_extraEdges_[a]){delete this.JSC$8873_extraEdges_[a][W];for(var w in this.JSC$8873_extraEdges_[a])return;delete this.JSC$8873_extraEdges_[a]}};
_.t.isModuleLoading=function(a){return!!this.loadingModules_[a]};
_.t.load=function(a){Js_(this,[a]);return FmJ(this,a)};
_.t.loadMultiple=function(a){var W=this,w=Object.create(null),Z=[];a.forEach(function(N){w[N]||(w[N]=FmJ(W,N),Z.push(N))});
Js_(this,Z);return w};
_.t.beforeLoadModuleCode=function(a){var W;((W=this.JSC$8873_currentlyLoadingModule_)==null?void 0:W.getId())==="synthetic_module_overhead"&&this.JSC$8860_setLoaded();var w,Z;MHl(this,(Z=(w=this.JSC$8873_moduleInfoMap_[a])==null?void 0:w.deps_)!=null?Z:[],function(N){N.module_=new MK},function(N){return!N.isLoaded()});
this.JSC$8873_currentlyLoadingModule_=this.getModuleInfo(a)};
_.t.JSC$8860_setLoaded=function(){if(this.JSC$8873_currentlyLoadingModule_){var a=this.JSC$8873_currentlyLoadingModule_.getId(),W=[];if(this.JSC$8873_extraEdges_[a]){for(var w=_.l(Object.keys(this.JSC$8873_extraEdges_[a])),Z=w.next();!Z.done;Z=w.next())Z=Z.value,this.getModuleInfo(Z).isLoaded()||(this.removeExtraEdge(a,Z),W.push(Z));this.loadMultiple(W)}this.JSC$8873_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8873_currentlyLoadingModule_=null;(!this.isModuleLoading(a)&&/^sy[0-9a-z]{0,4}$/.test(a)||a==="synthetic_module_overhead")&&delete this.JSC$8873_moduleInfoMap_[a];this.unsetModulesAsLoading(a)}};
_.t.setModulesAsLoading=function(){var a=this;_.TH.apply(0,arguments).forEach(function(W){a.loadingModules_[W]=!0})};
_.t.unsetModulesAsLoading=function(){var a=this;_.TH.apply(0,arguments).forEach(function(W){delete a.loadingModules_[W]})};
var FmJ=function(a,W){return new _.PZ(function(w,Z){var N=a.getModuleInfo(W);N.isLoaded()?w(null):(N.registerCallback(function(){w(null)}),WmJ(N,function(B){var I="Error loading "+W+": "+B;
B instanceof Wz.ModuleLoadFailure&&B.url&&(I=I+", requested url: "+B.url.toString());Z(Error(I))}))})},Js_=function(a,W){W=W.filter(function(w){return!a.isModuleLoading(w)&&!a.getModuleInfo(w).isLoaded()});
W.length>0&&(a.setModulesAsLoading.apply(a,_.K8(W)),a.JSC$8873_queue_.push(W),R96(a))},R96=function(a){for(var W={};a.activeLoads_<Infinity&&a.JSC$8873_queue_.length>0;W={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})W.ids$jscomp$36=a.JSC$8873_queue_.shift().filter(function(w){return!a.getModuleInfo(w).isLoaded()}),W.ids$jscomp$36.length>0&&(a.activeLoads_++,W.finishLoad=function(w){return function(){a.activeLoads_--;
R96(a);w.finishLoad=function(){}}}(W),_.rD(W.ids$jscomp$36.map(function(w){return FmJ(a,w)})).then(function(w){return function(){(0,w.finishLoad)()}}(W)),W.attempt$jscomp$6=0,W.load$jscomp$1=function(w){return function(){if(Object.keys(a.JSC$8873_extraEdges_).length>0&&!a.JSC$7962_loader_.supportsExtraEdges)throw Error("td");
a.JSC$7962_loader_.JSC$8852_loadModules(w.ids$jscomp$36,a.JSC$8873_moduleInfoMap_,{extraEdges:a.JSC$8873_extraEdges_,onError:function(Z,N){var B=jm$[w.attempt$jscomp$6++];B!==void 0?setTimeout(function(){(0,w.load$jscomp$1)()},B):(a.unsetModulesAsLoading.apply(a,_.K8(w.ids$jscomp$36)),(0,w.finishLoad)(),w.ids$jscomp$36.forEach(function(I){I=a.getModuleInfo(I);
if(!I.isLoaded())I.onError(new Wz.ModuleLoadFailure(Wz.ModuleLoadFailure.JSC$8862_Type.CONSECUTIVE_FAILURES,Z,w.ids$jscomp$36,N))}))}})}}(W),(0,W.load$jscomp$1)())},MHl=function(a,W,w,Z,N){Z=Z===void 0?function(){return!0}:Z;
N=N===void 0?{}:N;W=_.l(W);for(var B=W.next();!B.done;B=W.next()){B=B.value;var I=a.getModuleInfo(B);!N[B]&&Z(I)&&(N[B]=!0,MHl(a,I.deps_||[],w,Z,N),w(I))}};var q$R=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Fdv=Symbol("wd");window.JSCompiler_renameProperty=function(a){return a};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var QmH=!q$R||HTMLElement.es5Shimmed||_.NH.Reflect===void 0||_.NH.customElements===void 0||_.NH.customElements.polyfillWrapFlushCallback||!1,xMV,Io8=function(){var a=HTMLElement;if(QmH)return a;if(xMV!==void 0)return xMV;var W=_.NH.Reflect,w=function(){return W.construct(a,[],this.constructor)};
w.prototype=a.prototype;w.prototype.constructor=w;w.es5Shimmed=!0;Object.setPrototypeOf(w,a);return xMV=w},bSJ=!1;QmH||bSJ||(bSJ=!0,_.NH.HTMLElement=Io8());/*

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 xXC=/(url\()([^)]*)(\))/g,qbC=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Qt8,WH;var Fv=!window.ShadyDOM||!window.ShadyDOM.inUse,smA=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),utR=!window.customElements.polyfillWrapFlushCallback,C6V;if(C6V=Fv&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var GqH=new CSSStyleSheet;GqH.replaceSync("");var DMT=document.createElement("div");DMT.attachShadow({mode:"open"});DMT.shadowRoot.adoptedStyleSheets=[GqH];C6V=DMT.shadowRoot.adoptedStyleSheets[0]===GqH}catch(a){C6V=!1}
var fGJ=C6V,dM6=window.Polymer&&window.Polymer.rootPath||ste(document.baseURI||window.location.href),kU=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,zgI=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Q8=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,mML=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Jf=window.Polymer&&window.Polymer.legacyOptimizations||!1,q6=window.Polymer&&window.Polymer.legacyWarnings||!1,VHA=window.Polymer&&window.Polymer.syncInitialRender||
!1,Of=window.Polymer&&window.Polymer.legacyUndefined||!1,z9$=window.Polymer&&window.Polymer.orderedComputed||!1,Cm=window.Polymer&&window.Polymer.removeNestedTemplates||!1,GV=window.Polymer&&window.Polymer.fastDomIf||!1,Dt=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,HSe=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,ysA=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var fm={},Esl={},YU=function(){return HTMLElement.apply(this,arguments)||this};
_.c(YU,HTMLElement);YU.import=function(a,W){return a?(a=fm[a]||Esl[a.toLowerCase()])&&W?a.querySelector(W):a:null};
YU.prototype.attributeChangedCallback=function(a,W,w){W!==w&&this.register()};
YU.prototype.register=function(a){if(a=a||this.id){if(Q8&&(fm[a]||Esl[a.toLowerCase()])!==void 0)throw fm[a]=Esl[a.toLowerCase()]=null,Error("xd`"+a);this.id=a;fm[a]=Esl[a.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.dU.Object.defineProperties(YU.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var a=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;a=_.wU(this.getAttribute("assetpath")||"",a.baseURI);this.__assetpath=ste(a)}return this.__assetpath}}});
_.dU.Object.defineProperties(YU,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
YU["import"]=YU.import;YU.prototype.modules=fm;customElements.define("dom-module",YU);var a9T=0,C5E=0,ZW=[],WX$=0,uq7=!1,w_H=document.createTextNode(""),ZDH,j2;(new window.MutationObserver(Gw9)).observe(w_H,{characterData:!0});_.dF={after:function(a){return{run:function(W){return window.setTimeout(W,a)},
cancel:function(W){window.clearTimeout(W)}}},
run:function(a,W){return window.setTimeout(a,W)},
cancel:function(a){window.clearTimeout(a)}};
_.gJ={run:function(a){return window.requestAnimationFrame(a)},
cancel:function(a){window.cancelAnimationFrame(a)}};
ZDH={run:function(a){return window.requestIdleCallback?window.requestIdleCallback(a):window.setTimeout(a,16)},
cancel:function(a){window.cancelIdleCallback?window.cancelIdleCallback(a):window.clearTimeout(a)}};
j2={run:function(a){uq7||(uq7=!0,w_H.textContent=WX$++);ZW.push(a);return a9T++},
cancel:function(a){var W=a-C5E;if(W>=0){if(!ZW[W])throw Error("yd`"+a);ZW[W]=null}}};var NSH=0,mv=function(a){var W=a.__mixinApplications;W||(W=new WeakMap,a.__mixinApplications=W);var w=NSH++;return function(Z){var N=Z.__mixinSet;if(N&&N[w])return Z;var B=W,I=B.get(Z);I||(I=a(Z),B.set(Z,I),Z=Object.create(I.__mixinSet||N||null),Z[w]=!0,I.__mixinSet=Z);return I}};_.oU=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(a){return ShadyDOM.patch(a)}:function(a){return a};var tWR=mv(function(a){var W=function(){var w=a.call(this)||this;w.__dataEnabled=!1;w.__dataReady=!1;w.__dataInvalid=!1;w.__data={};w.__dataPending=null;w.__dataOld=null;w.__dataInstanceProps=null;w.__dataCounter=0;w.__serializing=!1;w._initializeProperties();return w};
_.c(W,a);W.createProperties=function(w){var Z=this.prototype,N;for(N in w)N in Z||Z._createPropertyAccessor(N)};
W.attributeNameForProperty=function(w){return w.toLowerCase()};
W.typeForProperty=function(){};
W.prototype._createPropertyAccessor=function(w,Z){this._addPropertyToAttributeMap(w);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[w]||(this.__dataHasAccessor[w]=!0,this._definePropertyAccessor(w,Z))};
W.prototype._addPropertyToAttributeMap=function(w){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var Z=this.__dataAttributes[w];Z||(Z=this.constructor.attributeNameForProperty(w),this.__dataAttributes[Z]=w);return Z};
W.prototype._definePropertyAccessor=function(w,Z){Object.defineProperty(this,w,{get:function(){return this.__data[w]},
set:Z?function(){}:function(N){this._setPendingProperty(w,N,!0)&&this._invalidateProperties()}})};
W.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
W.prototype._initializeProperties=function(){for(var w in this.__dataHasAccessor)this.hasOwnProperty(w)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[w]=this[w],delete this[w])};
W.prototype._initializeInstanceProperties=function(w){Object.assign(this,w)};
W.prototype._setProperty=function(w,Z){this._setPendingProperty(w,Z)&&this._invalidateProperties()};
W.prototype._getProperty=function(w){return this.__data[w]};
W.prototype._setPendingProperty=function(w,Z){var N=this.__data[w],B=this._shouldPropertyChange(w,Z,N);B&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||w in this.__dataOld||(this.__dataOld[w]=N),this.__data[w]=Z,this.__dataPending[w]=Z);return B};
W.prototype._isPropertyPending=function(w){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(w))};
W.prototype._invalidateProperties=function(){var w=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,j2.run(function(){w.__dataInvalid&&(w.__dataInvalid=!1,w._flushProperties())}))};
W.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
W.prototype._flushProperties=function(){this.__dataCounter++;var w=this.__data,Z=this.__dataPending,N=this.__dataOld;this._shouldPropertiesChange(w,Z,N)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(w,Z,N));this.__dataCounter--};
W.prototype._shouldPropertiesChange=function(w,Z){return!!Z};
W.prototype._propertiesChanged=function(){};
W.prototype._shouldPropertyChange=function(w,Z,N){return N!==Z&&(N===N||Z===Z)};
W.prototype.attributeChangedCallback=function(w,Z,N,B){Z!==N&&this._attributeToProperty(w,N);a.prototype.attributeChangedCallback&&a.prototype.attributeChangedCallback.call(this,w,Z,N,B)};
W.prototype._attributeToProperty=function(w,Z,N){if(!this.__serializing){var B=this.__dataAttributes;w=B&&B[w]||w;this[w]=this._deserializeValue(Z,N||this.constructor.typeForProperty(w))}};
W.prototype._propertyToAttribute=function(w,Z,N){this.__serializing=!0;N=arguments.length<3?this[w]:N;this._valueToNodeAttribute(this,N,Z||this.constructor.attributeNameForProperty(w));this.__serializing=!1};
W.prototype._valueToNodeAttribute=function(w,Z,N){Z=this._serializeValue(Z);if(N==="class"||N==="name"||N==="slot")w=(0,_.oU)(w);Z===void 0?w.removeAttribute(N):w.setAttribute(N,Z===""&&window.trustedTypes?window.trustedTypes.emptyScript:Z)};
W.prototype._serializeValue=function(w){switch(typeof w){case "boolean":return w?"":void 0;default:return w!=null?w.toString():void 0}};
W.prototype._deserializeValue=function(w,Z){switch(Z){case Boolean:return w!==null;case Number:return Number(w);default:return w}};
return W});var $1e=0,DXI=[];var BSE=mv(function(a){function W(B){B=Object.getPrototypeOf(B);return B.prototype instanceof N?B:null}
function w(B){if(!B.hasOwnProperty("__ownProperties")){var I=null;if(B.hasOwnProperty("properties")){var X=B.properties;if(X){I={};for(var v in X){var U=X[v];I[v]=typeof U==="function"?{type:U}:U}}}B.__ownProperties=I}return B.__ownProperties}
var Z=tWR(a),N=function(){return Z.apply(this,arguments)||this};
_.c(N,Z);N.finalize=function(){if(!this.hasOwnProperty("__finalized")){var B=W(this);B&&B.finalize();this.__finalized=!0;this._finalizeClass()}};
N._finalizeClass=function(){var B=w(this);B&&this.createProperties(B)};
N.typeForProperty=function(B){return(B=this._properties[B])&&B.type};
N.prototype._initializeProperties=function(){$1e++;this.constructor.finalize();Z.prototype._initializeProperties.call(this)};
N.prototype.connectedCallback=function(){Z.prototype.connectedCallback&&Z.prototype.connectedCallback.call(this);this._enableProperties()};
N.prototype.disconnectedCallback=function(){Z.prototype.disconnectedCallback&&Z.prototype.disconnectedCallback.call(this)};
_.dU.Object.defineProperties(N,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var B=this;if(!this.hasOwnProperty("__observedAttributes")){fKH(this.prototype);var I=this._properties;this.__observedAttributes=I?Object.keys(I).map(function(X){return B.prototype._addPropertyToAttributeMap(X)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var B=W(this);this.__properties=Object.assign({},B&&B._properties,w(this))}return this.__properties}}});
return N});var dXe={},mX8=/-[a-z]/g,VLe=/([A-Z])/g;for(var l9y={},I9R=HTMLElement.prototype;I9R;){for(var P06=Object.getOwnPropertyNames(I9R),X_J=0;X_J<P06.length;X_J++)l9y[P06[X_J]]=!0;I9R=Object.getPrototypeOf(I9R)}var v7V=window.trustedTypes?function(a){return trustedTypes.isHTML(a)||trustedTypes.isScript(a)||trustedTypes.isScriptURL(a)}:function(){return!1},g7A=mv(function(a){var W=tWR(a);
a=function(){return W.apply(this,arguments)||this};
_.c(a,W);a.createPropertiesForAttributes=function(){for(var w=this.observedAttributes,Z=0;Z<w.length;Z++)this.prototype._createPropertyAccessor(N6(w[Z]))};
a.attributeNameForProperty=function(w){return tf(w)};
a.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);W.prototype._initializeProperties.call(this)};
a.prototype._initializeProtoProperties=function(w){for(var Z in w)this._setProperty(Z,w[Z])};
a.prototype._ensureAttribute=function(w,Z){this.hasAttribute(w)||this._valueToNodeAttribute(this,Z,w)};
a.prototype._serializeValue=function(w){switch(typeof w){case "object":if(w instanceof Date)return w.toString();if(w){if(v7V(w))return w;try{return JSON.stringify(w)}catch(Z){return""}}default:return W.prototype._serializeValue.call(this,w)}};
a.prototype._deserializeValue=function(w,Z){switch(Z){case Object:try{var N=JSON.parse(w)}catch(B){N=w}break;case Array:try{N=JSON.parse(w)}catch(B){N=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+w)}break;case Date:N=isNaN(w)?String(w):Number(w);N=new Date(N);break;default:N=W.prototype._deserializeValue.call(this,w,Z)}return N};
a.prototype._definePropertyAccessor=function(w,Z){if(!l9y[w]){var N=this[w];N!==void 0&&(this.__data?this._setPendingProperty(w,N):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[w]=N))}W.prototype._definePropertyAccessor.call(this,w,Z)};
a.prototype._hasAccessor=function(w){return this.__dataHasAccessor&&this.__dataHasAccessor[w]};
a.prototype._isPropertyPending=function(w){return!!(this.__dataPending&&w in this.__dataPending)};
return a});var o7$={"dom-if":!0,"dom-repeat":!0},kG$=!1,U1y=!1,ODA=function(){var a=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(W){return W}});
return function(W,w,Z){w=w.getAttribute(Z);a&&Z.startsWith("on-")?W.setAttribute(Z,a.createScript(w,Z)):W.setAttribute(Z,w)}}(),S_l=mv(function(a){var W=function(){return a.apply(this,arguments)||this};
_.c(W,a);W._parseTemplate=function(w,Z){if(!w._templateInfo){var N=w._templateInfo={};N.nodeInfoList=[];N.nestedTemplate=!!Z;N.stripWhiteSpace=Z&&Z.stripWhiteSpace||w.hasAttribute&&w.hasAttribute("strip-whitespace");this._parseTemplateContent(w,N,{parent:null})}return w._templateInfo};
W._parseTemplateContent=function(w,Z,N){return this._parseTemplateNode(w.content,Z,N)};
W._parseTemplateNode=function(w,Z,N){var B=!1;w.localName!="template"||w.hasAttribute("preserve-content")?w.localName==="slot"&&(Z.hasInsertionPoint=!0):B=this._parseTemplateNestedTemplate(w,Z,N)||B;if(!kG$){kG$=!0;var I=document.createElement("textarea");I.placeholder="a";U1y=I.placeholder===I.textContent}U1y&&w.localName==="textarea"&&w.placeholder&&w.placeholder===w.textContent&&(w.textContent=null);w.firstChild&&this._parseTemplateChildNodes(w,Z,N);w.hasAttributes&&w.hasAttributes()&&(B=this._parseTemplateNodeAttributes(w,
Z,N)||B);return B||N.noted};
W._parseTemplateChildNodes=function(w,Z,N){if(w.localName!=="script"&&w.localName!=="style")for(var B=w.firstChild,I=0,X;B;B=X){if(B.localName=="template"){var v=B.getAttribute("is");if(v&&o7$[v])for(X=B,X.removeAttribute("is"),B=X.ownerDocument.createElement(v),X.parentNode.replaceChild(B,X),B.appendChild(X);X.attributes.length;)v=X.attributes[0].name,ODA(B,X,v),X.removeAttribute(v)}X=B.nextSibling;if(B.nodeType===Node.TEXT_NODE){for(v=X;v&&v.nodeType===Node.TEXT_NODE;)B.textContent+=v.textContent,
X=v.nextSibling,w.removeChild(v),v=X;if(Z.stripWhiteSpace&&!B.textContent.trim()){w.removeChild(B);continue}}v={parentIndex:I,parentInfo:N};this._parseTemplateNode(B,Z,v)&&(v.infoIndex=Z.nodeInfoList.push(v)-1);B.parentNode&&I++}};
W._parseTemplateNestedTemplate=function(w,Z,N){Z=this._parseTemplate(w,Z);(Z.content=w.content.ownerDocument.createDocumentFragment()).appendChild(w.content);N.templateInfo=Z;return!0};
W._parseTemplateNodeAttributes=function(w,Z,N){for(var B=!1,I=Array.from(w.attributes),X=I.length-1,v;v=I[X];X--)B=this._parseTemplateNodeAttribute(w,Z,N,v.name,v.value)||B;return B};
W._parseTemplateNodeAttribute=function(w,Z,N,B,I){return B.slice(0,3)==="on-"?(w.removeAttribute(B),N.events=N.events||[],N.events.push({name:B.slice(3),value:I}),!0):B==="id"?(N.id=I,!0):!1};
W._contentForTemplate=function(w){var Z=w._templateInfo;return Z&&Z.content||w.content};
W.prototype._stampTemplate=function(w,Z){w&&!w.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(w);Z=Z||this.constructor._parseTemplate(w);var N=Z.nodeInfoList;w=document.importNode(Z.content||w.content,!0);w.__noInsertionPoint=!Z.hasInsertionPoint;var B=w.nodeList=Array(N.length);w.$={};for(var I=0,X=N.length,v=void 0;I<X&&(v=N[I]);I++){var U=B[I]=zn7(w,v);v.id&&(w.$[v.id]=U);var O=U,S=v,T=Z;S.templateInfo&&(O._templateInfo=S.templateInfo,O._parentTemplateInfo=
T);if(v.events&&v.events.length)for(O=0,S=v.events,T=void 0;O<S.length&&(T=S[O]);O++)this._addMethodEventListenerToNode(U,T.name,T.value,this)}return w};
W.prototype._addMethodEventListenerToNode=function(w,Z,N,B){N=HA7(B||w,N);this._addEventListenerToNode(w,Z,N);return N};
W.prototype._addEventListenerToNode=function(w,Z,N){w.addEventListener(Z,N)};
W.prototype._removeEventListenerFromNode=function(w,Z,N){w.removeEventListener(Z,N)};
return W});var vH=0,Uf=[],Y_T={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},TSR=/[A-Z]/,KXl=function(a,W,w,Z,N){var B=N?BH(a):a;if(W=W[B])for(B=0;B<W.length;B++){var I=W[B];if(I.info.lastRun!==vH&&(!N||Zjx(a,I.trigger))){I.info.lastRun=vH;I=I.info;for(var X=w,v=Z,U=0,O=X.length-1,S=-1;U<=O;){var T=U+O>>1,p=v.get(X[T].methodInfo)-v.get(I.methodInfo);if(p<0)U=T+1;else if(p>0)O=T-1;else{S=T;break}}S<
0&&(S=O+1);X.splice(S,0,I)}}},SBI=[],p_T=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"),zV=mv(function(a){var W=S_l(g7A(a));
a=function(){var w=W.call(this)||this;w.__isPropertyEffectsClient=!0;return w};
_.c(a,W);a.prototype._initializeProperties=function(){W.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(V9.length){var w=V9[V9.length-1];w._enqueueClient(this);this.__dataHost=w}};
a.prototype._initializeProtoProperties=function(w){this.__data=Object.create(w);this.__dataPending=Object.create(w);this.__dataOld={}};
a.prototype._initializeInstanceProperties=function(w){var Z=this.__readOnly,N;for(N in w)Z&&Z[N]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[N]=this.__dataPending[N]=w[N])};
a.prototype._addPropertyEffect=function(w,Z,N){this._createPropertyAccessor(w,Z=="__readOnly");var B=we9(this,Z,!0)[w];B||(B=this[Z][w]=[]);B.push(N)};
a.prototype._removePropertyEffect=function(w,Z,N){w=we9(this,Z,!0)[w];N=w.indexOf(N);N>=0&&w.splice(N,1)};
a.prototype._hasPropertyEffect=function(w,Z){Z=this[Z];return!(!Z||!Z[w])};
a.prototype._hasReadOnlyEffect=function(w){return this._hasPropertyEffect(w,"__readOnly")};
a.prototype._hasNotifyEffect=function(w){return this._hasPropertyEffect(w,"__notifyEffects")};
a.prototype._hasReflectEffect=function(w){return this._hasPropertyEffect(w,"__reflectEffects")};
a.prototype._hasComputedEffect=function(w){return this._hasPropertyEffect(w,"__computeEffects")};
a.prototype._setPendingPropertyOrPath=function(w,Z,N,B){if(B||BH(Array.isArray(w)?w[0]:w)!==w){if(!B&&(B=Xv(this,w),w=W5D(this,w,Z),!w||!W.prototype._shouldPropertyChange.call(this,w,Z,B)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(w,Z,N)){if(N=this.__dataLinkedPaths)for(var I in N)B=N[I],lF(I,w)?(B=IU(I,B,w),this._setPendingPropertyOrPath(B,Z,!0,!0)):lF(B,w)&&(B=IU(B,I,w),this._setPendingPropertyOrPath(B,Z,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[w])return this._setPendingProperty(w,
Z,N);this[w]=Z}return!1};
a.prototype._setUnmanagedPropertyToNode=function(w,Z,N){if(N!==w[Z]||typeof N=="object")Z==="className"&&(w=(0,_.oU)(w)),w[Z]=N};
a.prototype._setPendingProperty=function(w,Z,N){var B=this.__dataHasPaths&&$U(w);if(this._shouldPropertyChange(w,Z,(B?this.__dataTemp:this.__data)[w])){this.__dataPending||(this.__dataPending={},this.__dataOld={});w in this.__dataOld||(this.__dataOld[w]=this.__data[w]);B?this.__dataTemp[w]=Z:this.__data[w]=Z;this.__dataPending[w]=Z;if(B||this.__notifyEffects&&this.__notifyEffects[w])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[w]=N;return!0}return!1};
a.prototype._setProperty=function(w,Z){this._setPendingProperty(w,Z,!0)&&this._invalidateProperties()};
a.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
a.prototype._enqueueClient=function(w){this.__dataPendingClients=this.__dataPendingClients||[];w!==this&&this.__dataPendingClients.push(w)};
a.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
a.prototype.__enableOrFlushClients=function(){var w=this.__dataPendingClients;if(w){this.__dataPendingClients=null;for(var Z=0;Z<w.length;Z++){var N=w[Z];N.__dataEnabled?N.__dataPending&&N._flushProperties():N._enableProperties()}}};
a.prototype._readyClients=function(){this.__enableOrFlushClients()};
a.prototype.setProperties=function(w,Z){for(var N in w)!Z&&this.__readOnly&&this.__readOnly[N]||this._setPendingPropertyOrPath(N,w[N],!0);this._invalidateProperties()};
a.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
a.prototype._propertiesChanged=function(w,Z,N){w=this.__dataHasPaths;this.__dataHasPaths=!1;var B;if(B=this.__computeEffects)if(z9$){vH++;var I=IBH(this),X=[],v;for(v in Z)KXl(v,B,X,I,w);for(;v=X.shift();)XeF(this,"",Z,N,v)&&KXl(v.methodInfo,B,X,I,w);Object.assign(N,this.__dataOld);Object.assign(Z,this.__dataPending);this.__dataPending=null}else for(I=Z;gU(this,B,I,N,w);)Object.assign(N,this.__dataOld),Object.assign(Z,this.__dataPending),I=this.__dataPending,this.__dataPending=null;B=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(Z,N,w);this._flushClients();gU(this,this.__reflectEffects,Z,N,w);gU(this,this.__observeEffects,Z,N,w);if(B){I=this.__notifyEffects;X=vH++;for(var U in B)if(B[U]){if(v=I){var O=I;v=X;var S=U,T=Z,p=N,h=w,L=!1,F=h?BH(S):S;if(O=O[F]){F=0;for(var x=O.length,G=void 0;F<x&&(G=O[F]);F++)G.info&&G.info.lastRun===v||h&&!Zjx(S,G.trigger)||(G.info&&(G.info.lastRun=v),G.fn(this,S,T,p,G.info,h,void 0),L=!0)}v=L}if(v)var V=!0;else{if(v=w)v=U,S=Z,T=BH(v),T!==
v?(T=tf(T)+"-changed",t4e(this,T,S[v],v),v=!0):v=!1;v&&(V=!0)}}var d;V&&(d=this.__dataHost)&&d._invalidateProperties&&d._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
a.prototype._propagatePropertyChanges=function(w,Z,N){this.__propagateEffects&&gU(this,this.__propagateEffects,w,Z,N);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,w,Z,N)};
a.prototype._runEffectsForTemplate=function(w,Z,N,B){var I=this,X=function(v,U){gU(I,w.propertyEffects,v,N,U,w.nodeList);for(var O=w.firstChild;O;O=O.nextSibling)I._runEffectsForTemplate(O,v,N,U)};
w.runEffects?w.runEffects(X,Z,B):X(Z,B)};
a.prototype.linkPaths=function(w,Z){w=PH(w);Z=PH(Z);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[w]=Z};
a.prototype.unlinkPaths=function(w){w=PH(w);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[w]};
a.prototype.notifySplices=function(w,Z){var N={path:""};w=Xv(this,w,N);pe9(this,w,N.path,Z)};
a.prototype.get=function(w,Z){return Xv(Z||this,w)};
a.prototype.set=function(w,Z,N){N?W5D(N,w,Z):this.__readOnly&&this.__readOnly[w]||this._setPendingPropertyOrPath(w,Z,!0)&&this._invalidateProperties()};
a.prototype.push=function(w){var Z=_.TH.apply(1,arguments),N={path:""},B=Xv(this,w,N),I=B.length,X=B.push.apply(B,_.K8(Z));Z.length&&S2(this,B,N.path,I,Z.length,[]);return X};
a.prototype.pop=function(w){var Z={path:""};w=Xv(this,w,Z);var N=!!w.length,B=w.pop();N&&S2(this,w,Z.path,w.length,0,[B]);return B};
a.prototype.splice=function(w,Z,N){var B=_.TH.apply(3,arguments),I={path:""},X=Xv(this,w,I);Z<0?Z=X.length-Math.floor(-Z):Z&&(Z=Math.floor(Z));var v=arguments.length===2?X.splice(Z):X.splice.apply(X,[Z,N].concat(_.K8(B)));(B.length||v.length)&&S2(this,X,I.path,Z,B.length,v);return v};
a.prototype.shift=function(w){var Z={path:""};w=Xv(this,w,Z);var N=!!w.length,B=w.shift();N&&S2(this,w,Z.path,0,0,[B]);return B};
a.prototype.unshift=function(w){var Z=_.TH.apply(1,arguments),N={path:""},B=Xv(this,w,N),I=B.unshift.apply(B,_.K8(Z));Z.length&&S2(this,B,N.path,0,Z.length,[]);return I};
a.prototype.notifyPath=function(w,Z){if(arguments.length==1){var N={path:""};Z=Xv(this,w,N);N=N.path}else N=Array.isArray(w)?PH(w):w;this._setPendingPropertyOrPath(N,Z,!0,!0)&&this._invalidateProperties()};
a.prototype._createReadOnlyProperty=function(w,Z){this._addPropertyEffect(w,"__readOnly");Z&&(this["_set"+(w[0].toUpperCase()+w.substring(1))]=function(N){this._setProperty(w,N)})};
a.prototype._createPropertyObserver=function(w,Z,N){var B={property:w,method:Z,dynamicFn:!!N};this._addPropertyEffect(w,"__observeEffects",{fn:NPI,info:B,trigger:{name:w}});N&&this._addPropertyEffect(Z,"__observeEffects",{fn:NPI,info:B,trigger:{name:Z}})};
a.prototype._createMethodObserver=function(w,Z){var N=TP9(w);if(!N)throw Error("zd`"+w);UsU(this,N,"__observeEffects",PKI,null,Z)};
a.prototype._createNotifyingProperty=function(w){this._addPropertyEffect(w,"__notifyEffects",{fn:$sC,info:{eventName:tf(w)+"-changed",property:w}})};
a.prototype._createReflectedProperty=function(w){var Z=this.constructor.attributeNameForProperty(w);Z[0]==="-"?console.warn("Property "+w+" cannot be reflected to attribute "+Z+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(w,"__reflectEffects",{fn:BPU,info:{attrName:Z}})};
a.prototype._createComputedProperty=function(w,Z,N){var B=TP9(Z);if(!B)throw Error("Ad`"+Z);Z=UsU(this,B,"__computeEffects",XeF,w,N);we9(this,"__computeInfo")[w]=Z};
a.prototype._marshalArgs=function(w,Z,N){for(var B=this.__data,I=[],X=0,v=w.length;X<v;X++){var U=w[X],O=U.name,S=U.structured,T=U.wildcard,p=U.value;U.literal||(T?(U=lF(O,Z),S=K59(B,N,U?Z:O),p={path:U?Z:O,value:S,base:U?Xv(B,O):S}):p=S?K59(B,N,O):B[O]);if(Of&&!this._overrideLegacyUndefined&&p===void 0&&w.length>1)return Uf;I[X]=p}return I};
a.addPropertyEffect=function(w,Z,N){this.prototype._addPropertyEffect(w,Z,N)};
a.createPropertyObserver=function(w,Z,N){this.prototype._createPropertyObserver(w,Z,N)};
a.createMethodObserver=function(w,Z){this.prototype._createMethodObserver(w,Z)};
a.createNotifyingProperty=function(w){this.prototype._createNotifyingProperty(w)};
a.createReadOnlyProperty=function(w,Z){this.prototype._createReadOnlyProperty(w,Z)};
a.createReflectedProperty=function(w){this.prototype._createReflectedProperty(w)};
a.createComputedProperty=function(w,Z,N){this.prototype._createComputedProperty(w,Z,N)};
a.bindTemplate=function(w){return this.prototype._bindTemplate(w)};
a.prototype._bindTemplate=function(w,Z){var N=this.constructor._parseTemplate(w),B=this.__preBoundTemplateInfo==N;if(!B)for(var I in N.propertyEffects)this._createPropertyAccessor(I);Z?(N=Object.create(N),N.wasPreBound=B,this.__templateInfo?(w=w._parentTemplateInfo||this.__templateInfo,Z=w.lastChild,N.parent=w,w.lastChild=N,(N.previousSibling=Z)?Z.nextSibling=N:w.firstChild=N):this.__templateInfo=N):this.__preBoundTemplateInfo=N;return N};
a._addTemplatePropertyEffect=function(w,Z,N){(w.hostProps=w.hostProps||{})[Z]=!0;w=w.propertyEffects=w.propertyEffects||{};(w[Z]=w[Z]||[]).push(N)};
a.prototype._stampTemplate=function(w,Z){Z=Z||this._bindTemplate(w,!0);V9.push(this);w=W.prototype._stampTemplate.call(this,w,Z);V9.pop();Z.nodeList=w.nodeList;if(!Z.wasPreBound)for(var N=Z.childNodes=[],B=w.firstChild;B;B=B.nextSibling)N.push(B);w.templateInfo=Z;N=Z.nodeList;B=Z.nodeInfoList;if(B.length)for(var I=0;I<B.length;I++){var X=N[I],v=B[I].bindings;if(v)for(var U=0;U<v.length;U++){var O=v[U],S=X,T=O;if(T.isCompound){for(var p=S.__dataCompoundStorage||(S.__dataCompoundStorage={}),h=T.parts,
L=Array(h.length),F=0;F<h.length;F++)L[F]=h[F].literal;h=T.target;p[h]=L;T.literal&&T.kind=="property"&&(h==="className"&&(S=(0,_.oU)(S)),S[h]=T.literal)}k9m(X,this,O)}X.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(Z,this.__data,null,!1),this._flushClients());return w};
a.prototype._removeBoundDom=function(w){w=w.templateInfo;var Z=w.previousSibling,N=w.nextSibling,B=w.parent;Z?Z.nextSibling=N:B&&(B.firstChild=N);N?N.previousSibling=Z:B&&(B.lastChild=Z);w.nextSibling=w.previousSibling=null;w=w.childNodes;for(Z=0;Z<w.length;Z++)N=w[Z],(0,_.oU)((0,_.oU)(N).parentNode).removeChild(N)};
a._parseTemplateNode=function(w,Z,N){var B=W._parseTemplateNode.call(this,w,Z,N);if(w.nodeType===Node.TEXT_NODE){var I=this._parseBindings(w.textContent,Z);I&&(w.textContent=Ojm(I)||" ",oD8(this,Z,N,"text","textContent",I),B=!0)}return B};
a._parseTemplateNodeAttribute=function(w,Z,N,B,I){var X=this._parseBindings(I,Z);if(X){I=B;var v="property";TSR.test(B)?v="attribute":B[B.length-1]=="$"&&(B=B.slice(0,-1),v="attribute");var U=Ojm(X);U&&v=="attribute"&&(B=="class"&&w.hasAttribute("class")&&(U+=" "+w.getAttribute(B)),w.setAttribute(B,U));v=="attribute"&&I=="disable-upgrade$"&&w.setAttribute(B,"");w.localName==="input"&&I==="value"&&w.setAttribute(I,"");w.removeAttribute(I);v==="property"&&(B=N6(B));oD8(this,Z,N,v,B,X,U);return!0}return W._parseTemplateNodeAttribute.call(this,
w,Z,N,B,I)};
a._parseTemplateNestedTemplate=function(w,Z,N){var B=W._parseTemplateNestedTemplate.call(this,w,Z,N),I=w.parentNode,X=N.templateInfo,v=I.localName==="dom-if",U=I.localName==="dom-repeat";Cm&&(v||U)&&(I.removeChild(w),N=N.parentInfo,N.templateInfo=X,N.noted=!0,B=!1);w=X.hostProps;if(GV&&v)w&&(Z.hostProps=Object.assign(Z.hostProps||{},w),Cm||(N.parentInfo.noted=!0));else for(var O in w)oD8(this,Z,N,"property","_host_"+O,[{mode:"{",source:O,dependencies:[O],hostProp:!0}]);return B};
a._parseBindings=function(w,Z){for(var N=[],B=0,I;(I=p_T.exec(w))!==null;){I.index>B&&N.push({literal:w.slice(B,I.index)});B=I[1][0];var X=!!I[2];I=I[3].trim();var v=!1,U="",O=-1;B=="{"&&(O=I.indexOf("::"))>0&&(U=I.substring(O+2),I=I.substring(0,O),v=!0);O=TP9(I);var S=[];if(O){var T=O,p=T.args;T=T.methodName;for(var h=0;h<p.length;h++){var L=p[h];L.literal||S.push(L)}if((p=Z.dynamicFns)&&p[T]||O.static)S.push(T),O.dynamicFn=!0}else S.push(I);N.push({source:I,mode:B,negate:X,customEvent:v,signature:O,
dependencies:S,event:U});B=p_T.lastIndex}B&&B<w.length&&(w=w.substring(B))&&N.push({literal:w});return N.length?N:null};
a._evaluateBinding=function(w,Z,N,B,I,X){w=Z.signature?PKI(w,N,B,I,Z.signature):N!=Z.source?Xv(w,Z.source):X&&$U(N)?Xv(w,N):w.__data[N];Z.negate&&(w=!w);return w};
_.dU.Object.defineProperties(a.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Y_T}}});
return a}),V9=[];var rk_=window.ShadyCSS&&window.ShadyCSS.cssBuild,H1=mv(function(a){function W(Z,N,B,I){if(!rk_){for(var X=N.content.querySelectorAll("style"),v=ijC(N),U=egD(B),O=N.content.firstElementChild,S=0;S<U.length;S++){var T=U[S];T.textContent=Z._processStyleText(T.textContent,I);N.content.insertBefore(T,O)}for(O=U=0;O<v.length;O++)S=v[O],T=X[U],T!==S?(S=S.cloneNode(!0),T.parentNode.insertBefore(S,T)):U++,S.textContent=Z._processStyleText(S.textContent,I)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(N,
B);if(ysA&&rk_&&fGJ&&(N=N.content.querySelectorAll("style"))){var p="";Array.from(N).forEach(function(h){p+=h.textContent;h.parentNode.removeChild(h)});
Z._styleSheet=new CSSStyleSheet;Z._styleSheet.replaceSync(p)}}
var w=BSE(zV(a));a=function(){return w.call(this)||this};
_.c(a,w);a._finalizeClass=function(){w._finalizeClass.call(this);var Z;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(Z=this.__ownObservers)&&this.createObservers(Z,this._properties);this._prepareTemplate()};
a._prepareTemplate=function(){var Z=this.template;Z&&(typeof Z==="string"?(console.error("template getter must return HTMLTemplateElement"),Z=null):Jf||(Z=Z.cloneNode(!0)));this.prototype._template=Z};
a.createProperties=function(Z){for(var N in Z){var B=this.prototype,I=N,X=Z[N],v=Z;X.computed&&(X.readOnly=!0);X.computed&&(B._hasReadOnlyEffect(I)?console.warn("Cannot redefine computed property '"+I+"'."):B._createComputedProperty(I,X.computed,v));X.readOnly&&!B._hasReadOnlyEffect(I)?B._createReadOnlyProperty(I,!X.computed):X.readOnly===!1&&B._hasReadOnlyEffect(I)&&console.warn("Cannot make readOnly property '"+I+"' non-readOnly.");X.reflectToAttribute&&!B._hasReflectEffect(I)?B._createReflectedProperty(I):
X.reflectToAttribute===!1&&B._hasReflectEffect(I)&&console.warn("Cannot make reflected property '"+I+"' non-reflected.");X.notify&&!B._hasNotifyEffect(I)?B._createNotifyingProperty(I):X.notify===!1&&B._hasNotifyEffect(I)&&console.warn("Cannot make notify property '"+I+"' non-notify.");X.observer&&B._createPropertyObserver(I,X.observer,v[X.observer]);B._addPropertyToAttributeMap(I)}};
a.createObservers=function(Z,N){for(var B=this.prototype,I=0;I<Z.length;I++)B._createMethodObserver(Z[I],N)};
a.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);w.prototype._initializeProperties.call(this);this.rootPath=dM6;this.importPath=this.constructor.importPath;var Z=this.constructor;if(!Z.hasOwnProperty("__propertyDefaults")){Z.__propertyDefaults=null;var N=Z._properties,B;for(B in N){var I=N[B];"value"in I&&(Z.__propertyDefaults=Z.__propertyDefaults||{},Z.__propertyDefaults[B]=I)}}if(Z=Z.__propertyDefaults)for(var X in Z)N=Z[X],
this._canApplyPropertyDefault(X)&&(N=typeof N.value=="function"?N.value.call(this):N.value,this._hasAccessor(X)?this._setPendingProperty(X,N,!0):this[X]=N)};
a.prototype._canApplyPropertyDefault=function(Z){return!this.hasOwnProperty(Z)};
a._processStyleText=function(Z,N){return bAC(Z,N)};
a._finalizeTemplate=function(Z){var N=this.prototype._template;if(N&&!N.__polymerFinalized){N.__polymerFinalized=!0;var B=this.importPath;B=B?_.wU(B):"";W(this,N,Z,B);this.prototype._bindTemplate(N)}};
a.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);w.prototype.connectedCallback.call(this)};
a.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);w.prototype.ready.call(this)};
a.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));w.prototype._readyClients.call(this)};
a.prototype._attachDom=function(Z){var N=(0,_.oU)(this);if(N.attachShadow)return Z?(N.shadowRoot||(N.attachShadow({mode:"open",shadyUpgradeFragment:Z}),N.shadowRoot.appendChild(Z),this.constructor._styleSheet&&(N.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),VHA&&window.ShadyDOM&&window.ShadyDOM.flushInitial(N.shadowRoot),N.shadowRoot):null;throw Error("Cd");};
a.prototype.updateStyles=function(Z){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,Z)};
a.prototype.resolveUrl=function(Z,N){!N&&this.importPath&&(N=_.wU(this.importPath));return _.wU(Z,N)};
a._parseTemplateContent=function(Z,N,B){N.dynamicFns=N.dynamicFns||this._properties;return w._parseTemplateContent.call(this,Z,N,B)};
a._addTemplatePropertyEffect=function(Z,N,B){!q6||N in this._properties||B.info.part.signature&&B.info.part.signature.static||B.info.part.hostProp||Z.nestedTemplate||console.warn("Property '"+N+"' used in template but not declared in 'properties'; attribute will not be observed.");return w._addTemplatePropertyEffect.call(this,Z,N,B)};
_.dU.Object.defineProperties(a,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var Z=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof Z==="function"&&(Z=Z());if(Z===void 0){if(Z=this.hasOwnProperty("is")){Z=this.is;var N=null;if(Z&&(!Q8||mML)&&(N=YU.import(Z,"template"),Q8&&!N))throw Error("Bd`"+Z);Z=N}Z=Z||Object.getPrototypeOf(this.prototype).constructor.template}this._template=Z}return this._template},
set:function(Z){this._template=Z}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var Z=this.importMeta;Z?this._importPath=ste(Z.url):this._importPath=(Z=YU.import(this.is))&&Z.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return a});var AkH=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(a){return a}}),Rg9=function(a,W){hO6(a,W);
this.value=W.reduce(function(w,Z,N){return w+qBm(Z)+a[N+1]},a[0]).toString()},hO6;
Rg9.prototype.toString=function(){return this.value};
_.iDJ=function(a){var W=_.TH.apply(1,arguments);hO6(a,W);var w=document.createElement("template");W=W.reduce(function(Z,N,B){if(N instanceof HTMLTemplateElement)N=N.innerHTML;else if(N instanceof Rg9)N=qBm(N);else throw Error("Ed`"+N);return Z+N+a[B+1]},a[0]);
AkH&&(W=AkH.createHTML(W));w.innerHTML=W;return w};
hO6=function(a,W){if(!Array.isArray(a)||!Array.isArray(a.raw)||W.length!==a.length-1)throw new TypeError("Fd");};var y9=H1(HTMLElement);var ck_=mv(function(a){var W=H1(a);a=function(){var w=W.call(this)||this;w.__lastItems=null;w.__lastMulti=null;w.__selectedMap=null;return w};
_.c(a,W);a.prototype.__updateSelection=function(w,Z){var N=Z.path;N=="items"?(Z=Z.base||[],N=this.__lastItems,w!==this.__lastMulti&&this.clearSelection(),N&&(N=M4U(Z,N),this.__applySplices(N)),this.__lastItems=Z,this.__lastMulti=w):Z.path=="items.splices"?this.__applySplices(Z.value.indexSplices):(w=N.slice(6),Z=parseInt(w,10),w.indexOf(".")<0&&w==Z&&this.__deselectChangedIdx(Z))};
a.prototype.__applySplices=function(w){for(var Z=this,N=this.__selectedMap,B={},I=0;I<w.length;B={s$jscomp$108:void 0},I++){B.s$jscomp$108=w[I];N.forEach(function(O){return function(S,T){S<O.s$jscomp$108.index||(S>=O.s$jscomp$108.index+O.s$jscomp$108.removed.length?N.set(T,S+O.s$jscomp$108.addedCount-O.s$jscomp$108.removed.length):N.set(T,-1))}}(B));
for(var X=0;X<B.s$jscomp$108.addedCount;X++){var v=B.s$jscomp$108.index+X;N.has(this.items[v])&&N.set(this.items[v],v)}}this.__updateLinks();var U=0;N.forEach(function(O,S){O<0?(Z.multi?Z.splice("selected",U,1):Z.selected=Z.selectedItem=null,N.delete(S)):U++})};
a.prototype.__updateLinks=function(){var w=this;this.__dataLinkedPaths={};if(this.multi){var Z=0;this.__selectedMap.forEach(function(N){N>=0&&w.linkPaths("items."+N,"selected."+Z++)})}else this.__selectedMap.forEach(function(N){w.linkPaths("selected","items."+N);
w.linkPaths("selectedItem","items."+N)})};
a.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
a.prototype.isSelected=function(w){return this.__selectedMap.has(w)};
a.prototype.isIndexSelected=function(w){return this.isSelected(this.items[w])};
a.prototype.__deselectChangedIdx=function(w){var Z=this,N=this.__selectedIndexForItemIndex(w);if(N>=0){var B=0;this.__selectedMap.forEach(function(I,X){N==B++&&Z.deselect(X)})}};
a.prototype.__selectedIndexForItemIndex=function(w){if(w=this.__dataLinkedPaths["items."+w])return parseInt(w.slice(9),10)};
a.prototype.deselect=function(w){var Z=this.__selectedMap.get(w);if(Z>=0){this.__selectedMap.delete(w);var N;this.multi&&(N=this.__selectedIndexForItemIndex(Z));this.__updateLinks();this.multi?this.splice("selected",N,1):this.selected=this.selectedItem=null}};
a.prototype.deselectIndex=function(w){this.deselect(this.items[w])};
a.prototype.select=function(w){this.selectIndex(this.items.indexOf(w))};
a.prototype.selectIndex=function(w){var Z=this.items[w];this.isSelected(Z)?this.toggle&&this.deselectIndex(w):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(Z,w),this.__updateLinks(),this.multi?this.push("selected",Z):this.selected=this.selectedItem=Z)};
_.dU.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}),eOT=ck_(y9),EV=function(){return eOT.apply(this,arguments)||this};
_.c(EV,eOT);_.dU.Object.defineProperties(EV,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(EV.is,EV);var n7J=window.Polymer;window.Polymer=function(a){return window.Polymer._polymerFn(a)};
n7J&&Object.assign(Polymer,n7J);Polymer._polymerFn=function(){throw Error("Gd");};/*

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:bAC,resolveUrl:_.wU,pathFromUrl:ste};Polymer.DomModule=YU;Polymer.Async={timeOut:_.dF,animationFrame:_.gJ,idlePeriod:ZDH,microTask:j2};Polymer.dedupingMixin=mv;Polymer.wrap=_.oU;Polymer.PropertiesChanged=tWR;Polymer.telemetry={instanceCount:$1e,incrementInstanceCount:function(){$1e++},
registrations:DXI,register:fKH,dumpRegistrations:function(){DXI.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=BSE;Polymer.CaseMap={dashToCamelCase:N6,camelToDashCase:tf};Polymer.PropertyAccessors=g7A;Polymer.TemplateStamp=S_l;Polymer.Path={isPath:$U,root:BH,isAncestor:yum,isDescendant:lF,translate:IU,matches:E_9,normalize:PH,split:aBU,get:Xv,set:W5D,isDeep:$U};Polymer.Settings={useShadow:Fv,useNativeCSSProperties:smA,useNativeCustomElements:utR,get rootPath(){return dM6},setRootPath:function(a){dM6=a},
get sanitizeDOMValue(){return kU},setSanitizeDOMValue:function(a){kU=a},
get passiveTouchGestures(){return zgI},setPassiveTouchGestures:function(a){zgI=a},
get strictTemplatePolicy(){return Q8},setStrictTemplatePolicy:function(a){Q8=a},
get allowTemplateFromDomModule(){return mML},setAllowTemplateFromDomModule:function(a){mML=a},
get legacyOptimizations(){return Jf},setLegacyOptimizations:function(a){Jf=a},
get syncInitialRender(){return VHA},setSyncInitialRender:function(a){VHA=a},
get legacyUndefined(){return Of},setLegacyUndefined:function(a){Of=a},
get legacyWarnings(){return q6},setLegacyWarnings:function(a){q6=a},
get orderedComputed(){return z9$},setOrderedComputed:function(a){z9$=a},
get fastDomIf(){return GV},setFastDomIf:function(a){GV=a},
get removeNestedTemplates(){return Cm},setRemoveNestedTemplates:function(a){Cm=a},
get suppressTemplateNotifications(){return Dt},setSuppressTemplateNotifications:Dt};Polymer.rootPath!==void 0&&(dM6=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(kU=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(zgI=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Q8=Polymer.strictTemplatePolicy);mML=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Jf=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(VHA=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Of=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(q6=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(z9$=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(GV=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Cm=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Dt=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return kU},
set:function(a){kU=a}});Polymer.PropertyEffects=zV;Polymer.StyleGather={stylesFromModules:hgU,stylesFromModule:Ax9,stylesFromTemplate:ijC,stylesFromModuleImports:egD,cssFromModules:jLF,cssFromModule:nDF,cssFromTemplate:L5U,cssFromModuleImports:function(a){return(a=YU.import(a))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a):""}};Polymer.ElementMixin=H1;Polymer.updateStyles=function(a){window.ShadyCSS&&window.ShadyCSS.styleDocument(a)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:M4U};Polymer.html=_.iDJ;Polymer.htmlLiteral=function(a){return new Rg9(a,_.TH.apply(1,arguments))};Polymer.Element=y9;Polymer.ArraySelectorMixin=ck_;Polymer.ArraySelector=EV;var jVE=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,LXT=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,U9U=/@media\s(.*)/;var sL8=null,bjE=window.HTMLImports&&window.HTMLImports.whenReady||null,u77;var Jke=null,aw=null,Wn=function(){this.customStyles=[];this.enqueued=!1;CK9(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},FXR=function(a){!a.enqueued&&aw&&(a.enqueued=!0,CK9(aw))};
Wn.prototype.addCustomStyle=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),FXR(this))};
Wn.prototype.getStyleForCustomStyle=function(a){if(a.__shadyCSSCachedStyle)return a.__shadyCSSCachedStyle;var W;a.getStyle?W=a.getStyle():W=a;return W};
Wn.prototype.processStyles=function(){for(var a=this.customStyles,W=0;W<a.length;W++){var w=a[W];if(!w.__shadyCSSCachedStyle){var Z=this.getStyleForCustomStyle(w);Z&&(Z=Z.__appliedElement||Z,Jke&&Jke(Z),w.__shadyCSSCachedStyle=Z)}}return a};
Wn.prototype.addCustomStyle=Wn.prototype.addCustomStyle;Wn.prototype.getStyleForCustomStyle=Wn.prototype.getStyleForCustomStyle;Wn.prototype.processStyles=Wn.prototype.processStyles;Object.defineProperties(Wn.prototype,{transformCallback:{get:function(){return Jke},
set:function(a){Jke=a}},
validateCallback:{get:function(){return aw},
set:function(a){var W=!1;aw||(W=!0);aw=a;W&&FXR(this)}}});var DsF=!(window.ShadyDOM&&window.ShadyDOM.inUse),G9S,fM;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(fM=window.ShadyCSS.cssBuild);var MWR=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?G9S=window.ShadyCSS.nativeCss:window.ShadyCSS?(fB9(window.ShadyCSS),window.ShadyCSS=void 0):fB9(window.WebComponents&&window.WebComponents.flags);var gX9=G9S;var ROE=new Wn;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(a,W){ROE.processStyles();QLm(a,W)},
styleElement:function(){ROE.processStyles()},
styleDocument:function(a){ROE.processStyles();QLm(document.body,a)},
getComputedStyleValue:function(a,W){return xsx(a,W)},
flushCustomStyles:function(){},
nativeCss:gX9,nativeShadow:DsF,cssBuild:fM,disableRuntime:MWR});window.ShadyCSS.CustomStyleInterface=ROE;var q_R=window.ShadyCSS.CustomStyleInterface,wq=function(){var a=HTMLElement.call(this)||this;a._style=null;q_R.addCustomStyle(a);return a};
_.c(wq,HTMLElement);wq.prototype.getStyle=function(){if(this._style)return this._style;var a=this.querySelector("style");if(!a)return null;this._style=a;var W=a.getAttribute("include");W&&(a.removeAttribute("include"),a.textContent=jLF(W)+a.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
wq.prototype.getStyle=wq.prototype.getStyle;window.customElements.define("custom-style",wq);Polymer.CustomStyle=wq;var Zi=function(){this._timer=this._callback=this._asyncModule=null},ND,x1V;
Zi.prototype.setConfig=function(a,W){var w=this;this._asyncModule=a;this._callback=W;this._timer=this._asyncModule.run(function(){w._timer=null;ND.delete(w);w._callback()})};
Zi.prototype.cancel=function(){this.isActive()&&(QV$(this),ND.delete(this))};
var QV$=function(a){a.isActive()&&(a._asyncModule.cancel(a._timer),a._timer=null)};
Zi.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Zi.prototype.isActive=function(){return this._timer!=null};
_.tA=function(a,W,w){a instanceof Zi?QV$(a):a=new Zi;a.setConfig(W,w);return a};
ND=new Set;_.$i=function(a){ND.add(a)};
x1V=function(){var a=!!ND.size;ND.forEach(function(W){try{W.flush()}catch(w){setTimeout(function(){throw w;})}});
return a};var msv=typeof document.head.style.touchAction==="string",dsF=["mousedown","mousemove","mouseup","click"],Zw8=[0,1,4,2],bDe;try{bDe=(new MouseEvent("test",{buttons:1})).buttons===1}catch(a){bDe=!1}var w67=bDe,V4H=!1;(function(){try{var a=Object.defineProperty({},"passive",{get:function(){V4H=!0}});
window.addEventListener("test",null,a);window.removeEventListener("test",null,a)}catch(W){}})();
var yxx=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),EDF=[],sVl={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},kb7={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},are=function(a){var W=a.sourceCapabilities;if(!W||W.firesTouchEvents)if(a.__polymerGesturesHandled={skip:!0},a.type==="click"){W=!1;for(var w=BX7(a),Z=0;Z<w.length;Z++){if(w[Z].nodeType===Node.ELEMENT_NODE)if(w[Z].localName==="label")EDF.push(w[Z]);
else if(sVl[w[Z].localName]){var N=w[Z];var B=Array.prototype.slice.call(N.labels||[]);if(!B.length){B=[];try{var I=N.getRootNode();if(N.id){var X=I.querySelectorAll("label[for = '"+N.id+"']");for(N=0;N<X.length;N++)B.push(X[N])}}catch(v){}}for(N=0;N<B.length;N++)W=W||EDF.indexOf(B[N])>-1}if(w[Z]===uzA)return}W||(a.preventDefault(),a.stopPropagation())}},uzA=null,Bn=null,Ir8=0,PLE=0,lrI=-1,X6e=!1;
document.addEventListener("touchend",function(a){Bn||WIe(!0);uzA=BX7(a)[0];Bn=_.tA(Bn,_.dF.after(2500),function(){WIe();Bn=uzA=null})},V4H?{passive:!0}:!1);
var BX7=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(a){return a.composedPath&&a.composedPath()||[]},iF={},Af=[];
vBI({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){rU(this.info)},
mousedown:function(a){if(KM(a)){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),w=this;trC(this.info,function(Z){KM(Z)||(LM("up",W,Z),rU(w.info))},function(Z){KM(Z)&&LM("up",W,Z);
rU(w.info)});
LM("down",W,a)}},
touchstart:function(a){LM("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),a.changedTouches[0],a)},
touchend:function(a){LM("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),a.changedTouches[0],a)}});
vBI({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;rU(this.info)},
mousedown:function(a){if(KM(a)){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),w=this,Z=function(N){var B=N.clientX,I=N.clientY;gBE(w.info,B,I)&&(w.info.state=w.info.started?N.type==="mouseup"?"end":"track":"start",w.info.state==="start"&&hf("tap"),w.info.addMove({x:B,y:I}),KM(N)||(w.info.state="end",rU(w.info)),W&&oBE(w.info,W,N),w.info.started=!0)};
trC(this.info,Z,function(N){w.info.started&&Z(N);rU(w.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 W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a=a.changedTouches[0];var w=a.clientX,Z=a.clientY;gBE(this.info,w,Z)&&(this.info.state==="start"&&hf("tap"),this.info.addMove({x:w,y:Z}),oBE(this.info,W,a),this.info.state="track",this.info.started=!0)},
touchend:function(a){var W=_._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}),oBE(this.info,W,a))}});
vBI({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){KM(a)&&(this.info.x=a.clientX,this.info.y=a.clientY)},
click:function(a){KM(a)&&Ume(this.info,a)},
touchstart:function(a){a=a.changedTouches[0];this.info.x=a.clientX;this.info.y=a.clientY},
touchend:function(a){Ume(this.info,a.changedTouches[0],a)}});var C0A=mv(function(a){var W=function(){return a.apply(this,arguments)||this};
_.c(W,a);W.prototype._addEventListenerToNode=function(w,Z,N){cH(w,Z,N)||a.prototype._addEventListenerToNode.call(this,w,Z,N)};
W.prototype._removeEventListenerFromNode=function(w,Z,N){e2(w,Z,N)||a.prototype._removeEventListenerFromNode.call(this,w,Z,N)};
return W});var lT=mv(function(a){var W=function(){return a.apply(this,arguments)||this};
_.c(W,a);W.prototype._shouldPropertyChange=function(w,Z,N){return OwE(this,w,Z,N,!0)};
return W}),GGA=mv(function(a){var W=function(){return a.apply(this,arguments)||this};
_.c(W,a);W.prototype._shouldPropertyChange=function(w,Z,N){return OwE(this,w,Z,N,this.mutableData)};
_.dU.Object.defineProperties(W,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return W});
lT._mutablePropertyChange=OwE;var Sae=!1;var D16=C0A(GGA(zV(HTMLElement))),Iw=function(){var a=D16.call(this)||this;if(Q8)throw Error("Hd");a.root=null;a.$=null;a.__children=null;return a};
_.c(Iw,D16);_.t=Iw.prototype;_.t.attributeChangedCallback=function(){this.mutableData=!0};
_.t.connectedCallback=function(){Ya9()||(this.style.display="none");this.render()};
_.t.disconnectedCallback=function(){this.__removeChildren()};
_.t.__insertChildren=function(){(0,_.oU)((0,_.oU)(this).parentNode).insertBefore(this.root,this)};
_.t.__removeChildren=function(){if(this.__children)for(var a=0;a<this.__children.length;a++)this.root.appendChild(this.__children[a])};
_.t.render=function(){var a=this;if(!this.__children){var W=W||this.querySelector("template");if(!W){var w=new MutationObserver(function(){if(W=a.querySelector("template"))w.disconnect(),a.render();else throw Error("Id");});
w.observe(this,{childList:!0});return}this.root=this._stampTemplate(W);this.$=this.root.$;this.__children=[];for(var Z=this.root.firstChild;Z;Z=Z.nextSibling)this.__children[this.__children.length]=Z;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.dU.Object.defineProperties(Iw,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Iw);Polymer.Debouncer=Zi;Polymer.Gestures={gestures:iF,recognizers:Af,deepTargetFind:$mD,addListener:cH,removeListener:e2,register:vBI,setTouchAction:_.nM,prevent:hf,resetMouseCanceller:function(){Bn&&Bn.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:cH,remove:e2};Polymer.GestureEventListeners=C0A;Polymer.MutableData=lT;Polymer.OptionalMutableData=GGA;Polymer.DomBind=Iw;_.Pn=function(){do{var a=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var W=x1V()}while(a||W)};var TXe=null;KID.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:KID,writable:!0}});var nBC=zV(KID),ei7=lT(nBC),f9L=zV(function(){}),M6=function(a){var W=f9L.call(this)||this;
W._configureProperties(a);W.root=W._stampTemplate(W.__dataHost);var w=[];W.children=w;for(var Z=W.root.firstChild;Z;Z=Z.nextSibling)w.push(Z),Z.__templatizeInstance=W;W.__templatizeOwner&&W.__templatizeOwner.__hideTemplateChildren__&&W._showHideChildren(!0);w=W.__templatizeOptions;(a&&w.instanceProps||!w.instanceProps)&&W._enableProperties();return W};
_.c(M6,f9L);_.t=M6.prototype;_.t._configureProperties=function(a){if(this.__templatizeOptions.forwardHostProp)for(var W in this.__hostProps)this._setPendingProperty(W,this.__dataHost["_host_"+W]);for(var w in a)this._setPendingProperty(w,a[w])};
_.t.forwardHostProp=function(a,W){this._setPendingPropertyOrPath(a,W,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.t._addEventListenerToNode=function(a,W,w){var Z=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(a,W,function(B){B.model=Z;w(B)});
else{var N=this.__dataHost.__dataHost;N&&N._addEventListenerToNode(a,W,w)}};
_.t._showHideChildren=function(a){ryC(a,this.children)};
_.t._setUnmanagedPropertyToNode=function(a,W,w){a.__hideTemplateChildren__&&a.nodeType==Node.TEXT_NODE&&W=="textContent"?a.__polymerTextContent__=w:f9L.prototype._setUnmanagedPropertyToNode.call(this,a,W,w)};
_.t.dispatchEvent=function(){return!0};
_.dU.Object.defineProperties(M6.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var a=this.__parentModel;if(!a){var W;a=this;do a=a.__dataHost.__dataHost;while((W=a.__templatizeOptions)&&!W.parentModel);this.__parentModel=a}return a}}});
var hiE=lT(M6);var XS=function(){var a=y9.call(this)||this;a.__renderDebouncer=null;a._lastIf=!1;a.__hideTemplateChildren__=!1;return a};
_.c(XS,y9);_.t=XS.prototype;_.t.__debounceRender=function(){var a=this;this.__renderDebouncer=_.tA(this.__renderDebouncer,j2,function(){return a.__render()});
_.$i(this.__renderDebouncer)};
_.t.disconnectedCallback=function(){y9.prototype.disconnectedCallback.call(this);var a=(0,_.oU)(this).parentNode;a&&(a.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.oU)(a).host)||this.__teardownInstance()};
_.t.connectedCallback=function(){y9.prototype.connectedCallback.call(this);Ya9()||(this.style.display="none");this.if&&this.__debounceRender()};
_.t.__ensureTemplate=function(){var a=this;if(!this.__template){var W=this._templateInfo?this:(0,_.oU)(this).querySelector("template");if(!W){var w=new MutationObserver(function(){if((0,_.oU)(a).querySelector("template"))w.disconnect(),a.__render();else throw Error("Ld");});
w.observe(this,{childList:!0});return!1}this.__template=W}return!0};
_.t.__ensureInstance=function(){var a=(0,_.oU)(this).parentNode;if(this.__hasInstance()){var W=this.__getInstanceNodes();if(W&&W.length&&(0,_.oU)(this).previousSibling!==W[W.length-1])for(var w=0,Z=void 0;w<W.length&&(Z=W[w]);w++)(0,_.oU)(a).insertBefore(Z,this)}else{if(!a||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(a)}return!0};
_.t.render=function(){_.Pn()};
_.t.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Dt&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.t.__hasInstance=function(){};
_.t.__getInstanceNodes=function(){};
_.t.__createAndInsertInstance=function(){};
_.t.__teardownInstance=function(){};
_.t._showHideChildren=function(){};
_.dU.Object.defineProperties(XS,{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:XS.prototype.__debounceRender},restamp:{type:Boolean,observer:XS.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var d1R=function(){var a=XS.call(this)||this;a.__instance=null;a.__syncInfo=null;return a};
_.c(d1R,XS);_.t=d1R.prototype;_.t.__hasInstance=function(){return!!this.__instance};
_.t.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.t.__createAndInsertInstance=function(a){var W=this,w=this.__dataHost||this;if(Q8&&!this.__dataHost)throw Error("Jd");var Z=w._bindTemplate(this.__template,!0);Z.runEffects=function(N,B,I){var X=W.__syncInfo;if(W.if)X&&(W.__syncInfo=null,W._showHideChildren(),B=Object.assign(X.changedProps,B)),N(B,I);else if(W.__instance)if(X||(X=W.__syncInfo={runEffects:N,changedProps:{}}),I)for(var v in B)N=BH(v),X.changedProps[N]=W.__dataHost[N];else Object.assign(X.changedProps,B)};
this.__instance=w._stampTemplate(this.__template,Z);(0,_.oU)(a).insertBefore(this.__instance,this)};
_.t.__syncHostProperties=function(){var a=this.__syncInfo;a&&(this.__syncInfo=null,a.runEffects(a.changedProps,!1))};
_.t.__teardownInstance=function(){var a=this.__dataHost||this;this.__instance&&(a._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.t._showHideChildren=function(){var a=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==a&&(this.__instance.__hidden=a,ryC(a,this.__instance.templateInfo.childNodes));a||this.__syncHostProperties()};
var m1V=function(){var a=XS.call(this)||this;a.__ctor=null;a.__instance=null;a.__invalidProps=null;return a};
_.c(m1V,XS);_.t=m1V.prototype;_.t.__hasInstance=function(){return!!this.__instance};
_.t.__getInstanceNodes=function(){return this.__instance.children};
_.t.__createAndInsertInstance=function(a){this.__ctor||(this.__ctor=RU(this.__template,this,{mutableData:!0,forwardHostProp:function(W,w){this.__instance&&(this.if?this.__instance.forwardHostProp(W,w):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[BH(W)]=!0))}}));
this.__instance=new this.__ctor;(0,_.oU)(a).insertBefore(this.__instance.root,this)};
_.t.__teardownInstance=function(){if(this.__instance){var a=this.__instance.children;if(a&&a.length){var W=(0,_.oU)(a[0]).parentNode;if(W){W=(0,_.oU)(W);for(var w=0,Z=void 0;w<a.length&&(Z=a[w]);w++)W.removeChild(Z)}}this.__instance=this.__invalidProps=null}};
_.t.__syncHostProperties=function(){var a=this.__invalidProps;if(a){this.__invalidProps=null;for(var W in a)this.__instance._setPendingProperty(W,this.__dataHost[W]);this.__instance._flushProperties()}};
_.t._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()};
_.ON=GV?d1R:m1V;customElements.define(_.ON.is,_.ON);Polymer.enqueueDebouncer=_.$i;Polymer.flush=_.Pn;Polymer.Templatize={templatize:RU,modelForElement:Ri9};Polymer.TemplateInstanceBase=M6;Polymer.DomIf=_.ON;var VWA=GGA(y9),UN=function(){var a=VWA.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};
_.c(UN,VWA);_.t=UN.prototype;_.t.disconnectedCallback=function(){VWA.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var a=0;a<this.__instances.length;a++)this.__detachInstance(a);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.t.connectedCallback=function(){VWA.prototype.connectedCallback.call(this);Ya9()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var a=(0,_.oU)((0,_.oU)(this).parentNode),W=0;W<this.__instances.length;W++)this.__attachInstance(W,a);this.__chunkingId&&this.__render()}};
_.t.__ensureTemplatized=function(){var a=this;if(!this.__ctor){var W=this.template=this._templateInfo?this:this.querySelector("template");if(!W){var w=new MutationObserver(function(){if(a.querySelector("template"))w.disconnect(),a.__render();else throw Error("Md");});
w.observe(this,{childList:!0});return!1}var Z={};Z[this.as]=!0;Z[this.indexAs]=!0;Z[this.itemsIndexAs]=!0;this.__ctor=RU(W,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:Z,forwardHostProp:function(N,B){for(var I=this.__instances,X=0,v=void 0;X<I.length&&(v=I[X]);X++)v.forwardHostProp(N,B)},
notifyInstanceProp:function(N,B,I){E_9(this.as,B)&&(N=N[this.itemsIndexAs],B==this.as&&(this.items[N]=I),B=IU(this.as,"items."+N,B),this.notifyPath(B,I))}})}return!0};
_.t.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.t.__functionFromPropertyValue=function(a){if(typeof a==="string"){var W=this.__getMethodHost();return function(){return W[a].apply(W,arguments)}}return a};
_.t.__sortChanged=function(a){this.__sortFn=this.__functionFromPropertyValue(a);this.items&&this.__debounceRender(this.__render)};
_.t.__filterChanged=function(a){this.__filterFn=this.__functionFromPropertyValue(a);this.items&&this.__debounceRender(this.__render)};
_.t.__computeFrameTime=function(a){return Math.ceil(1E3/a)};
_.t.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.t.__handleObservedPaths=function(a){if(this.__sortFn||this.__filterFn)if(!a)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var W=this.__observePaths,w=0;w<W.length;w++)a.indexOf(W[w])===0&&this.__debounceRender(this.__render,this.delay)};
_.t.__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))};
_.t.__debounceRender=function(a,W){W=W===void 0?0:W;this.__renderDebouncer=_.tA(this.__renderDebouncer,W>0?_.dF.after(W):j2,a.bind(this));_.$i(this.__renderDebouncer)};
_.t.render=function(){this.__debounceRender(this.__render);_.Pn()};
_.t.__render=function(){var a=this;if(this.__ensureTemplatized()){var W=this.items||[],w=this.__sortAndFilterItems(W),Z=this.__calculateLimit(w.length);this.__updateInstances(W,Z,w);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){a.__chunkingId=null;a.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Dt&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.t.__sortAndFilterItems=function(a){for(var W=this,w=Array(a.length),Z=0;Z<a.length;Z++)w[Z]=Z;this.__filterFn&&(w=w.filter(function(N,B,I){return W.__filterFn(a[N],B,I)}));
this.__sortFn&&w.sort(function(N,B){return W.__sortFn(a[N],a[B])});
return w};
_.t.__calculateLimit=function(a){var W=a,w=this.__instances.length;if(this.initialCount){var Z;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(W=Math.min(a,this.initialCount),this.__chunkCount=(Z=Math.max(W-w,0))||1):(Z=Math.min(Math.max(a-w,0),this.__chunkCount),W=Math.min(w+Z,a));this.__shouldMeasureChunk=Z===this.__chunkCount;this.__shouldContinueChunking=W<a;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return W};
_.t.__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)};
_.t.__updateInstances=function(a,W,w){var Z=this.__itemsIdxToInstIdx={},N;for(N=0;N<W;N++){var B=this.__instances[N],I=w[N],X=a[I];Z[I]=N;B?(B._setPendingProperty(this.as,X),B._setPendingProperty(this.indexAs,N),B._setPendingProperty(this.itemsIndexAs,I),B._flushProperties()):this.__insertInstance(X,N,I)}for(a=this.__instances.length-1;a>=N;a--)this.__detachAndRemoveInstance(a)};
_.t.__detachInstance=function(a){a=this.__instances[a];for(var W=(0,_.oU)(a.root),w=0;w<a.children.length;w++)W.appendChild(a.children[w]);return a};
_.t.__attachInstance=function(a,W){W.insertBefore(this.__instances[a].root,this)};
_.t.__detachAndRemoveInstance=function(a){this.__detachInstance(a);this.__instances.splice(a,1)};
_.t.__stampInstance=function(a,W,w){var Z={};Z[this.as]=a;Z[this.indexAs]=W;Z[this.itemsIndexAs]=w;return new this.__ctor(Z)};
_.t.__insertInstance=function(a,W,w){a=this.__stampInstance(a,W,w);w=(w=this.__instances[W+1])?w.children[0]:this;(0,_.oU)((0,_.oU)(this).parentNode).insertBefore(a.root,w);return this.__instances[W]=a};
_.t._showHideChildren=function(a){for(var W=0;W<this.__instances.length;W++)this.__instances[W]._showHideChildren(a)};
_.t.__handleItemPath=function(a,W){var w=a.slice(6),Z=w.indexOf(".");a=Z<0?w:w.substring(0,Z);if(a==parseInt(a,10)){w=Z<0?"":w.substring(Z+1);this.__handleObservedPaths(w);if(a=this.__instances[this.__itemsIdxToInstIdx[a]])a._setPendingPropertyOrPath(this.as+(w?"."+w:""),W,!1,!0),a._flushProperties();return!0}};
_.t.itemForElement=function(a){return(a=this.modelForElement(a))&&a[this.as]};
_.t.indexForElement=function(a){return(a=this.modelForElement(a))&&a[this.indexAs]};
_.t.modelForElement=function(a){return Ri9(this.template,a)};
_.dU.Object.defineProperties(UN,{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:UN.prototype.__sortChanged},filter:{type:Function,observer:UN.prototype.__filterChanged},observe:{type:String,observer:UN.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Dt,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.*)"]}}});
UN.prototype._setRenderedItemCount=function(){};
customElements.define(UN.is,UN);Polymer.DomRepeat=UN;var zOR=function(a,W){var w=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=a;this.callback=W;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){w._schedule()};
this.connect();this._schedule()},HD$=function(a){var W=(0,_.oU)(a);
if(xU(a))return W.assignedNodes({flatten:!0});a=[];for(var w=0;w<W.childNodes.length;w++){var Z=W.childNodes[w];xU(Z)?a.push.apply(a,_.K8((0,_.oU)(Z).assignedNodes({flatten:!0}))):a.push(Z)}return a};
_.t=zOR.prototype;_.t.connect=function(){var a=this;xU(this._target)?this._listenSlots([this._target]):(0,_.oU)(this._target).children&&(this._listenSlots((0,_.oU)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(W){a._processMutations(W)}):(this._nativeChildrenObserver=new MutationObserver(function(W){a._processMutations(W)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.t.disconnect=function(){xU(this._target)?this._unlistenSlots([this._target]):(0,_.oU)(this._target).children&&(this._unlistenSlots((0,_.oU)(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};
_.t._schedule=function(){var a=this;this._scheduled||(this._scheduled=!0,j2.run(function(){return a.flush()}))};
_.t._processMutations=function(a){this._processSlotMutations(a);this.flush()};
_.t._processSlotMutations=function(a){if(a)for(var W=0;W<a.length;W++){var w=a[W];w.addedNodes&&this._listenSlots(w.addedNodes);w.removedNodes&&this._unlistenSlots(w.removedNodes)}};
_.t.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:[]},W=HD$(this._target),w=M4U(W,this._effectiveNodes),Z=0,N=void 0;Z<w.length&&(N=w[Z]);Z++)for(var B=0,I=void 0;B<N.removed.length&&(I=N.removed[B]);B++)a.removedNodes.push(I);
Z=0;for(N=void 0;Z<w.length&&(N=w[Z]);Z++)for(B=N.index;B<N.index+N.addedCount;B++)a.addedNodes.push(W[B]);this._effectiveNodes=W;W=!1;if(a.addedNodes.length||a.removedNodes.length)W=!0,this.callback.call(this._target,a);return W};
_.t._listenSlots=function(a){for(var W=0;W<a.length;W++){var w=a[W];xU(w)&&w.addEventListener("slotchange",this._boundSchedule)}};
_.t._unlistenSlots=function(a){for(var W=0;W<a.length;W++){var w=a[W];xU(w)&&w.removeEventListener("slotchange",this._boundSchedule)}};var vn=Element.prototype,ykT=vn.matches||vn.matchesSelector||vn.mozMatchesSelector||vn.msMatchesSelector||vn.oMatchesSelector||vn.webkitMatchesSelector,E7e=function(a,W){return ykT.call(a,W)},bF=function(a){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(a);
this.node=a},Zx_;
_.t=bF.prototype;_.t.observeNodes=function(a){return new zOR(this.node,a)};
_.t.unobserveNodes=function(a){a.disconnect()};
_.t.notifyObserver=function(){};
_.t.deepContains=function(a){if((0,_.oU)(this.node).contains(a))return!0;var W=a;for(a=a.ownerDocument;W&&W!==a&&W!==this.node;)W=(0,_.oU)(W).parentNode||(0,_.oU)(W).host;return W===this.node};
_.t.getOwnerRoot=function(){return(0,_.oU)(this.node).getRootNode()};
_.t.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.oU)(this.node).assignedNodes({flatten:!0}):[]};
_.t.getDestinationInsertionPoints=function(){for(var a=[],W=(0,_.oU)(this.node).assignedSlot;W;)a.push(W),W=(0,_.oU)(W).assignedSlot;return a};
_.t.importNode=function(a,W){return(0,_.oU)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(a,W)};
_.t.getEffectiveChildNodes=function(){return HD$(this.node)};
_.t.queryDistributedElements=function(a){for(var W=this.getEffectiveChildNodes(),w=[],Z=0,N=W.length,B=void 0;Z<N&&(B=W[Z]);Z++)B.nodeType===Node.ELEMENT_NODE&&E7e(B,a)&&w.push(B);return w};
_.dU.Object.defineProperties(bF.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var a=this.node;return a._activeElement!==void 0?a._activeElement:a.activeElement}}});
var gq=function(a){this.event=a};
_.dU.Object.defineProperties(gq.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 abJ=bF;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var WOH=window.ShadyDOM.Wrapper,wJA=function(){return WOH.apply(this,arguments)||this};
_.c(wJA,WOH);Object.getOwnPropertyNames(bF.prototype).forEach(function(a){a!="activeElement"&&a!="constructor"&&(wJA.prototype[a]=bF.prototype[a])});
Qae(wJA.prototype,["classList"]);abJ=wJA;Object.defineProperties(gq.prototype,{localTarget:{get:function(){var a=this.event.currentTarget;a=a&&_.Tq(a).getOwnerRoot();for(var W=this.path,w=0;w<W.length;w++){var Z=W[w];if(_.Tq(Z).getOwnerRoot()===a)return Z}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else qa9(),Qae(bF.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),xmI();Zx_=abJ;_.Tq=function(a){a=a||document;if(a instanceof abJ)return a;if(a instanceof gq)return a;var W=a.__domApi;W||(a instanceof Event?W=new gq(a):W=new abJ(a),a.__domApi=W);return W};var NKA=/:host\(:dir\((ltr|rtl)\)\)/g,tyR=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,$nh=/:dir\((?:ltr|rtl)\)/,BKe=!(!window.ShadyDOM||!window.ShadyDOM.inUse),uF=[],ow=null,sf="",lbJ=mv(function(a){BKe||ow||(sf=document.documentElement.getAttribute("dir"),ow=new MutationObserver(bwC),ow.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var W=g7A(a);a=function(){var w=W.call(this)||this;w.__autoDirOptOut=!1;return w};
_.c(a,W);a._processStyleText=function(w,Z){w=W._processStyleText.call(this,w,Z);!BKe&&$nh.test(w)&&(w=this._replaceDirInCssText(w),this.__activateDir=!0);return w};
a._replaceDirInCssText=function(w){w=w.replace(NKA,':host([dir="$1"])');return w=w.replace(tyR,':host([dir="$2"]) $1')};
a.prototype.ready=function(){W.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
a.prototype.connectedCallback=function(){W.prototype.connectedCallback&&W.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(ow&&ow.takeRecords().length&&bwC(),uF.push(this),this.__autoDirOptOut||this.setAttribute("dir",sf))};
a.prototype.disconnectedCallback=function(){W.prototype.disconnectedCallback&&W.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var w=uF.indexOf(this);w>-1&&uF.splice(w,1)}};
a.__activateDir=!1;return a});var Ib6=function(a){for(;a;){var W=Object.getOwnPropertyDescriptor(a,"observedAttributes");if(W)return W.get;a=Object.getPrototypeOf(a.prototype).constructor}return function(){return[]}};
mv(function(a){var W=H1(a),w=Ib6(W);a=function(){return W.call(this)||this};
_.c(a,W);a.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:W.prototype._initializeProperties.call(this)};
a.prototype._enableProperties=function(){this.__isUpgradeDisabled||W.prototype._enableProperties.call(this)};
a.prototype._canApplyPropertyDefault=function(Z){return W.prototype._canApplyPropertyDefault.call(this,Z)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Z))};
a.prototype.attributeChangedCallback=function(Z,N,B,I){Z=="disable-upgrade"?this.__isUpgradeDisabled&&B==null&&(W.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.oU)(this).isConnected&&W.prototype.connectedCallback.call(this)):W.prototype.attributeChangedCallback.call(this,Z,N,B,I)};
a.prototype.connectedCallback=function(){this.__isUpgradeDisabled||W.prototype.connectedCallback.call(this)};
a.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||W.prototype.disconnectedCallback.call(this)};
_.dU.Object.defineProperties(a,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return w.call(this).concat("disable-upgrade")}}});
return a});var CM=!1,uN8=[],Gc=[];var frC=window.ShadyDOM,dmx=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",VrU):document.readyState==="interactive"||document.readyState==="complete"?VrU():window.addEventListener("DOMContentLoaded",VrU);var yye=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=""},ziC=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Hw8=/@import[^;]*;/gim,NOI=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,taC=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,$9F=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,BOE=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,wNI=/^@[^\s]*keyframes/,
WaS=/\s+/g;var ld8={};var XNm=Promise.resolve();var P8R=new Set;var XJL=/;\s*/m,vp_=/^\s*(initial)|(inherit)\s*$/,gpR=/\s*!important/,opV=function(){this._map={}};
opV.prototype.set=function(a,W){a=a.trim();this._map[a]={properties:W,dependants:{}}};
opV.prototype.get=function(a){a=a.trim();return this._map[a]||null};
var kCA=null,ki=function(){this._measureElement=this._currentElement=null;this._map=new opV};
_.t=ki.prototype;_.t.detectMixin=function(a){a=LXT.test(a)||jVE.test(a);LXT.lastIndex=0;jVE.lastIndex=0;return a};
_.t.transformTemplate=function(a,W){if(a._gatheredStyle===void 0){var w=[];for(var Z=a.content.querySelectorAll("style"),N=0;N<Z.length;N++){var B=Z[N];if(B.hasAttribute("shady-unscoped")){if(!DsF){var I=B.textContent;if(!P8R.has(I)){P8R.add(I);var X=document.createElement("style");X.setAttribute("shady-unscoped","");X.textContent=I;document.head.appendChild(X)}B.parentNode.removeChild(B)}}else w.push(B.textContent),B.parentNode.removeChild(B)}(w=w.join("").trim())?(Z=document.createElement("style"),
Z.textContent=w,a.content.insertBefore(Z,a.content.firstChild),w=Z):w=null;a._gatheredStyle=w}return(a=a._gatheredStyle)?this.JSC$9083_transformStyle(a,W):null};
_.t.JSC$9083_transformStyle=function(a,W){W=W===void 0?"":W;var w=kSF(a);this.transformRules(w,W);a.textContent=oXx(w);return w};
_.t.transformCustomStyle=function(a){var W=this,w=kSF(a);O4C(w,function(Z){Z.selector===":root"&&(Z.selector="html");W.transformRule(Z)});
a.textContent=oXx(w);return w};
_.t.transformRules=function(a,W){var w=this;this._currentElement=W;O4C(a,function(Z){w.transformRule(Z)});
this._currentElement=null};
_.t.transformRule=function(a){a.cssText=Un$(this,a.parsedCssText,a);a.selector===":root"&&(a.selector=":host > *")};
var Un$=function(a,W,w){W=W.replace(jVE,function(Z,N,B,I){return a._produceCssProperties(Z,N,B,I,w)});
return a._consumeCssProperties(W,w)};
_.t=ki.prototype;_.t._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)};
_.t._fallbacksFromPreviousRules=function(a){for(var W=this,w=a;w.parent;)w=w.parent;var Z={},N=!1;O4C(w,function(B){(N=N||B===a)||B.selector===a.selector&&Object.assign(Z,W._cssTextToMap(B.parsedCssText))});
return Z};
_.t._consumeCssProperties=function(a,W){for(var w;w=LXT.exec(a);){var Z=w[0],N=w[1];w=w.index;var B=w+Z.indexOf("@apply"),I=w+Z.length;Z=a.slice(0,B);a=a.slice(I);B=W?this._fallbacksFromPreviousRules(W):{};Object.assign(B,this._cssTextToMap(Z));N=this._atApplyToCssProperties(N,B);a=Z+N+a;LXT.lastIndex=w+N.length}return a};
_.t._atApplyToCssProperties=function(a,W){a=a.replace(XJL,"");var w=[],Z=this._map.get(a);Z||(this._map.set(a,{}),Z=this._map.get(a));if(Z){this._currentElement&&(Z.dependants[this._currentElement]=!0);var N,B=Z.properties;for(N in B){var I=W&&W[N];Z=[N,": var(",a,"_-_",N];I&&Z.push(",",I.replace(gpR,""));Z.push(")");gpR.test(B[N])&&Z.push(" !important");w.push(Z.join(""))}}return w.join("; ")};
_.t._replaceInitialOrInherit=function(a,W){var w=vp_.exec(W);w&&(W=w[1]?this._getInitialValueForProperty(a):"apply-shim-inherit");return W};
_.t._cssTextToMap=function(a,W){W=W===void 0?!1:W;a=a.split(";");for(var w,Z,N={},B=0;B<a.length;B++)if(w=a[B])Z=w.split(":"),Z.length>1&&(w=Z[0].trim(),Z=Z.slice(1).join(":"),W&&(Z=this._replaceInitialOrInherit(w,Z)),N[w]=Z);return N};
_.t._invalidateMixinEntry=function(a){if(kCA)for(var W in a.dependants)W!==this._currentElement&&kCA(W)};
_.t._produceCssProperties=function(a,W,w,Z,N){var B=this;w&&S98(w,function(h,L){L&&B._map.get(L)&&(Z="@apply "+L+";")});
if(!Z)return a;var I=this._consumeCssProperties(""+Z,N);N=a.slice(0,a.indexOf("--"));var X=I=this._cssTextToMap(I,!0),v=this._map.get(W),U=v&&v.properties;U?X=Object.assign(Object.create(U),I):this._map.set(W,X);var O=[],S,T=!1;for(S in X){var p=I[S];p===void 0&&(p="initial");!U||S in U||(T=!0);O.push(W+"_-_"+S+": "+p)}T&&this._invalidateMixinEntry(v);v&&(v.properties=X);w&&(N=a+";"+N);return N+O.join("; ")+";"};
ki.prototype.detectMixin=ki.prototype.detectMixin;ki.prototype.transformStyle=ki.prototype.JSC$9083_transformStyle;ki.prototype.transformCustomStyle=ki.prototype.transformCustomStyle;ki.prototype.transformRules=ki.prototype.transformRules;ki.prototype.transformRule=ki.prototype.transformRule;ki.prototype.transformTemplate=ki.prototype.transformTemplate;ki.prototype._separator="_-_";Object.defineProperty(ki.prototype,"invalidCallback",{get:function(){return kCA},
set:function(a){kCA=a}});var U5=new ki,Oxh=function(){this.customStyleInterface=null;U5.invalidCallback=IdI},O5=function(a){!a.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(a.customStyleInterface=window.ShadyCSS.CustomStyleInterface,a.customStyleInterface.transformCallback=function(W){U5.transformCustomStyle(W)},a.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){a.customStyleInterface.enqueued&&a.flushCustomStyles()})})};
_.t=Oxh.prototype;_.t.prepareTemplate=function(a,W){O5(this);Y9U(a)===""&&(ld8[W]=a,W=U5.transformTemplate(a,W),a._styleAst=W)};
_.t.flushCustomStyles=function(){O5(this);if(this.customStyleInterface){var a=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var W=0;W<a.length;W++){var w=this.customStyleInterface.getStyleForCustomStyle(a[W]);w&&U5.transformCustomStyle(w)}this.customStyleInterface.enqueued=!1}}};
_.t.styleSubtree=function(a,W){O5(this);W&&QLm(a,W);if(a.shadowRoot)for(this.styleElement(a),a=a.shadowRoot.children||a.shadowRoot.childNodes,W=0;W<a.length;W++)this.styleSubtree(a[W]);else for(a=a.children||a.childNodes,W=0;W<a.length;W++)this.styleSubtree(a[W])};
_.t.styleElement=function(a){O5(this);var W=a.localName,w;W?W.indexOf("-")>-1?w=W:w=a.getAttribute&&a.getAttribute("is")||"":w=a.is;W=ld8[w];if(!(W&&Y9U(W)!==""||!W||PVS(W))){if(PVS(W)||W._applyShimValidatingVersion!==W._applyShimNextVersion)this.prepareTemplate(W,w),vXF(W);if(a=a.shadowRoot)if(a=a.querySelector("style"))a.__cssRules=W._styleAst,a.textContent=oXx(W._styleAst)}};
_.t.styleDocument=function(a){O5(this);this.styleSubtree(document.body,a)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Sf=new Oxh,SdT=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(a,W){Sf.flushCustomStyles();Sf.prepareTemplate(a,W)},
prepareTemplateStyles:function(a,W,w){window.ShadyCSS.prepareTemplate(a,W,w)},
prepareTemplateDom:function(){},
styleSubtree:function(a,W){Sf.flushCustomStyles();Sf.styleSubtree(a,W)},
styleElement:function(a){Sf.flushCustomStyles();Sf.styleElement(a)},
styleDocument:function(a){Sf.flushCustomStyles();Sf.styleDocument(a)},
getComputedStyleValue:function(a,W){return xsx(a,W)},
flushCustomStyles:function(){Sf.flushCustomStyles()},
nativeCss:gX9,nativeShadow:DsF,cssBuild:fM,disableRuntime:MWR};SdT&&(window.ShadyCSS.CustomStyleInterface=SdT)}window.ShadyCSS.ApplyShim=U5;var YdR;YdR=window.ShadyCSS;_.Yi=mv(function(a){a=C0A(H1(a));var W=rk_?a:lbJ(a),w=Ib6(W),Z={x:"pan-x",y:"pan-y",none:"none",all:"auto"};a=function(){return W.call(this)||this};
_.c(a,W);a.prototype.created=function(){};
a.prototype.__attributeReaction=function(N,B,I){(this.__dataAttributes&&this.__dataAttributes[N]||N==="disable-upgrade")&&this.attributeChangedCallback(N,B,I,null)};
a.prototype.setAttribute=function(N,B){if(HSe&&!this._legacyForceObservedAttributes){var I=this.getAttribute(N);W.prototype.setAttribute.call(this,N,B);this.__attributeReaction(N,I,String(B))}else W.prototype.setAttribute.call(this,N,B)};
a.prototype.removeAttribute=function(N){if(HSe&&!this._legacyForceObservedAttributes){var B=this.getAttribute(N);W.prototype.removeAttribute.call(this,N);this.__attributeReaction(N,B,null)}else W.prototype.removeAttribute.call(this,N)};
a.prototype._enableProperties=function(){this.__isUpgradeDisabled||W.prototype._enableProperties.call(this)};
a.prototype._canApplyPropertyDefault=function(N){return W.prototype._canApplyPropertyDefault.call(this,N)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(N))};
a.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(W.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
a.prototype.attached=function(){};
a.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(W.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
a.prototype.detached=function(){};
a.prototype.attributeChangedCallback=function(N,B,I,X){B!==I&&(N=="disable-upgrade"?this.__isUpgradeDisabled&&I==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.oU)(this).isConnected&&this.connectedCallback()):(W.prototype.attributeChangedCallback.call(this,N,B,I,X),this.attributeChanged(N,B,I)))};
a.prototype.attributeChanged=function(){};
a.prototype._initializeProperties=function(){if(Jf&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var N=Object.getPrototypeOf(this);N.hasOwnProperty("__hasRegisterFinished")||(this._registered(),N.__hasRegisterFinished=!0);W.prototype._initializeProperties.call(this);this.root=this;this.created();HSe&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
a.prototype._takeAttributes=function(){for(var N=this.attributes,B=0,I=N.length;B<I;B++){var X=N[B];this.__attributeReaction(X.name,null,X.value)}};
a.prototype._registered=function(){};
a.prototype.ready=function(){this._ensureAttributes();W.prototype.ready.call(this)};
a.prototype._ensureAttributes=function(){};
a.prototype._applyListeners=function(){};
a.prototype.serialize=function(N){return this._serializeValue(N)};
a.prototype.deserialize=function(N,B){return this._deserializeValue(N,B)};
a.prototype.reflectPropertyToAttribute=function(N,B,I){this._propertyToAttribute(N,B,I)};
a.prototype.serializeValueToAttribute=function(N,B,I){this._valueToNodeAttribute(I||this,N,B)};
a.prototype.extend=function(N,B){if(!N||!B)return N||B;for(var I=Object.getOwnPropertyNames(B),X=0,v=void 0;X<I.length&&(v=I[X]);X++){var U=Object.getOwnPropertyDescriptor(B,v);U&&Object.defineProperty(N,v,U)}return N};
a.prototype.mixin=function(N,B){for(var I in B)N[I]=B[I];return N};
a.prototype.chainObject=function(N,B){N&&B&&N!==B&&(N.__proto__=B);return N};
a.prototype.instanceTemplate=function(N){N=this.constructor._contentForTemplate(N);return document.importNode(N,!0)};
a.prototype.fire=function(N,B,I){I=I||{};B=B===null||B===void 0?{}:B;N=new Event(N,{bubbles:I.bubbles===void 0?!0:I.bubbles,cancelable:!!I.cancelable,composed:I.composed===void 0?!0:I.composed});N.detail=B;(0,_.oU)(I.node||this).dispatchEvent(N);return N};
a.prototype.listen=function(N,B,I){N=N||this;var X=this.__boundListeners||(this.__boundListeners=new WeakMap),v=X.get(N);v||(v={},X.set(N,v));X=B+I;v[X]||(v[X]=this._addMethodEventListenerToNode(N,B,I,this))};
a.prototype.unlisten=function(N,B,I){N=N||this;var X=this.__boundListeners&&this.__boundListeners.get(N);I=B+I;var v=X&&X[I];v&&(this._removeEventListenerFromNode(N,B,v),X[I]=null)};
a.prototype.setScrollDirection=function(N,B){_.nM(B||this,Z[N]||"auto")};
a.prototype.$$=function(N){return this.root.querySelector(N)};
a.prototype.distributeContent=function(){var N=_.Tq(this);window.ShadyDOM&&N.shadowRoot&&ShadyDOM.flush()};
a.prototype.getEffectiveChildNodes=function(){return _.Tq(this).getEffectiveChildNodes()};
a.prototype.queryDistributedElements=function(N){return _.Tq(this).queryDistributedElements(N)};
a.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(N){return N.nodeType===Node.ELEMENT_NODE})};
a.prototype.getEffectiveTextContent=function(){for(var N=this.getEffectiveChildNodes(),B=[],I=0,X;X=N[I];I++)X.nodeType!==Node.COMMENT_NODE&&B.push(X.textContent);return B.join("")};
a.prototype.queryEffectiveChildren=function(N){return(N=this.queryDistributedElements(N))&&N[0]};
a.prototype.queryAllEffectiveChildren=function(N){return this.queryDistributedElements(N)};
a.prototype.getContentChildNodes=function(N){return(N=this.root.querySelector(N||"slot"))?_.Tq(N).getDistributedNodes():[]};
a.prototype.getContentChildren=function(N){return this.getContentChildNodes(N).filter(function(B){return B.nodeType===Node.ELEMENT_NODE})};
a.prototype.isLightDescendant=function(N){return this!==N&&(0,_.oU)(this).contains(N)&&(0,_.oU)(this).getRootNode()===(0,_.oU)(N).getRootNode()};
a.prototype.isLocalDescendant=function(N){return this.root===(0,_.oU)(N).getRootNode()};
a.prototype.scopeSubtree=function(N,B){return mm9(N,B===void 0?!1:B)};
a.prototype.getComputedStyleValue=function(N){return YdR.getComputedStyleValue(this,N)};
a.prototype.debounce=function(N,B,I){this._debouncers=this._debouncers||{};return this._debouncers[N]=_.tA(this._debouncers[N],I>0?_.dF.after(I):j2,B.bind(this))};
a.prototype.isDebouncerActive=function(N){this._debouncers=this._debouncers||{};N=this._debouncers[N];return!(!N||!N.isActive())};
a.prototype.flushDebouncer=function(N){this._debouncers=this._debouncers||{};(N=this._debouncers[N])&&N.flush()};
a.prototype.cancelDebouncer=function(N){this._debouncers=this._debouncers||{};(N=this._debouncers[N])&&N.cancel()};
a.prototype.async=function(N,B){return B>0?_.dF.run(N.bind(this),B):~j2.run(N.bind(this))};
a.prototype.cancelAsync=function(N){N<0?j2.cancel(~N):_.dF.cancel(N)};
a.prototype.create=function(N,B){N=document.createElement(N);if(B)if(N.setProperties)N.setProperties(B);else for(var I in B)N[I]=B[I];return N};
a.prototype.elementMatches=function(N,B){return E7e(B||this,N)};
a.prototype.toggleAttribute=function(N,B){var I=this;arguments.length===3&&(I=arguments[2]);arguments.length==1&&(B=!I.hasAttribute(N));if(B)return(0,_.oU)(I).setAttribute(N,""),!0;(0,_.oU)(I).removeAttribute(N);return!1};
a.prototype.toggleClass=function(N,B,I){I=I||this;arguments.length==1&&(B=!I.classList.contains(N));B?I.classList.add(N):I.classList.remove(N)};
a.prototype.transform=function(N,B){B=B||this;B.style.webkitTransform=N;B.style.transform=N};
a.prototype.translate3d=function(N,B,I,X){this.transform("translate3d("+N+","+B+","+I+")",X||this)};
a.prototype.arrayDelete=function(N,B){if(Array.isArray(N)){if(B=N.indexOf(B),B>=0)return N.splice(B,1)}else if(B=Xv(this,N).indexOf(B),B>=0)return this.splice(N,B,1);return null};
a.prototype._logger=function(N,B){Array.isArray(B)&&B.length===1&&Array.isArray(B[0])&&(B=B[0]);switch(N){case "log":case "warn":case "error":console[N].apply(console,_.K8(B))}};
a.prototype._log=function(){this._logger("log",_.TH.apply(0,arguments))};
a.prototype._warn=function(){this._logger("warn",_.TH.apply(0,arguments))};
a.prototype._error=function(){this._logger("error",_.TH.apply(0,arguments))};
a.prototype._logf=function(N){return["[%s::%s]",this.is,N].concat(_.K8(_.TH.apply(1,arguments)))};
_.dU.Object.defineProperties(a.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var N=(0,_.oU)(this).getRootNode();return N instanceof DocumentFragment?N.host:N}}});
_.dU.Object.defineProperties(a,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return HSe&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],fKH(this.prototype)),this.__observedAttributes):w.call(this).concat("disable-upgrade")}}});
a.prototype.is="";return a});Polymer.FlattenedNodesObserver=zOR;Polymer.DomApi=Zx_;Polymer.EventApi=gq;Polymer.dom=_.Tq;Polymer.dom.matchesSelector=E7e;Polymer.dom.flush=_.Pn;Polymer.dom.addDebouncer=_.$i;Polymer.DirMixin=lbJ;Polymer.RenderStatus={beforeNextRender:_.DmC,afterNextRender:_.DW,flush:function(){for(;uN8.length||Gc.length;)sam(uN8),sam(Gc);CM=!1}};Polymer.LegacyElementMixin=_.Yi;var TKR;TKR=lT._mutablePropertyChange;var KOl={properties:{mutableData:Boolean},_shouldPropertyChange:function(a,W,w){return TKR(this,a,W,w,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(a,W,w){return TKR(this,a,W,w,!0)}};
Polymer.OptionalMutableDataBehavior=KOl;var TOS={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},hh8={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},ANC=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},hh8),pJh=(0,_.Yi)(HTMLElement),olS=function(a,W){a||console.warn("Polymer.Class requires `info` argument");W=W?W(pJh):pJh;W=i49(a,W,a.behaviors);W.is=W.prototype.is=
a.is;return W};Polymer.Class=olS;Polymer.mixinBehaviors=function(a,W){return i49({},(0,_.Yi)(W),a)};
Polymer.GenerateClassFromInfo=i49;_.kQ=function(a){var W=typeof a==="function"?a:_.kQ.Class(a);a._legacyForceObservedAttributes&&(W.prototype._legacyForceObservedAttributes=a._legacyForceObservedAttributes);customElements.define(W.is,W);return W};
_.kQ.Class=olS;Polymer._polymerFn=_.kQ;var rGR=window.onLegacyPolymerFunctionDefinedCallback;rGR&&rGR();var UlC={templatize:function(a,W){this._templatizerTemplate=a;this.ctor=RU(a,this,{mutableData:!!W,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(a){return new this.ctor(a)},
modelForElement:function(a){return Ri9(this._templatizerTemplate,a)}};Polymer.Templatizer=UlC;_.Tp=(0,_.Yi)(HTMLElement).prototype;Polymer.Base=_.Tp;var ehH=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.mo=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.c(_.mo,PolymerFakeBaseClass);var V8=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.c(V8,PolymerFakeBaseClass);var nXC=Symbol("Nd"),QIU=[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 AG$=AG$||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},hz_;(function(a){function W(d,ZD,aC){var Bv=V.get(d);if(!Bv){if(!aC)return;Bv=new x;V.set(d,Bv)}d=Bv.get(ZD);if(!d){if(!aC)return;d=new x;Bv.set(ZD,d)}return d}
function w(d,ZD,aC){if(Z(d,ZD,aC))return!0;ZD=T(ZD);return ZD!==null?w(d,ZD,aC):!1}
function Z(d,ZD,aC){ZD=W(ZD,aC,!1);return ZD===void 0?!1:!!ZD.has(d)}
function N(d,ZD,aC){if(Z(d,ZD,aC))return B(d,ZD,aC);ZD=T(ZD);if(ZD!==null)return N(d,ZD,aC)}
function B(d,ZD,aC){ZD=W(ZD,aC,!1);if(ZD!==void 0)return ZD.get(d)}
function I(d,ZD){var aC=X(d,ZD);d=T(d);if(d===null)return aC;var Bv=I(d,ZD);if(Bv.length<=0)return aC;if(aC.length<=0)return Bv;ZD=new G;d=[];aC=_.l(aC);for(var Am=aC.next();!Am.done;Am=aC.next())Am=Am.value,ZD.has(Am)||(ZD.add(Am),d.push(Am));aC=_.l(Bv);for(Bv=aC.next();!Bv.done;Bv=aC.next())Bv=Bv.value,ZD.has(Bv)||(ZD.add(Bv),d.push(Bv));return d}
function X(d,ZD){d=W(d,ZD,!1);var aC=[];d&&d.forEach(function(Bv,Am){return aC.push(Am)});
return aC}
function v(d){return d===void 0}
function U(d){return typeof d==="object"?d!==null:typeof d==="function"}
function O(d){return typeof d==="function"}
function S(d){return typeof d==="symbol"?d:String(d)}
function T(d){var ZD=Object.getPrototypeOf(d);if(typeof d!=="function"||d===F||ZD!==F)return ZD;var aC=Object.getPrototypeOf(d.prototype);if(aC==null||aC===Object.prototype)return ZD;aC=aC.constructor;return typeof aC!=="function"||aC===d?ZD:aC}
function p(){function d(){this._keys=[];this._values=[];this._cache=ZD}
var ZD={};d.prototype={get size(){return this._keys.length},has:function(aC){return aC===this._cache?!0:this._find(aC)>=0?(this._cache=aC,!0):!1},
get:function(aC){var Bv=this._find(aC);if(Bv>=0)return this._cache=aC,this._values[Bv]},
set:function(aC,Bv){this.delete(aC);this._keys.push(aC);this._values.push(Bv);this._cache=aC;return this},
delete:function(aC){aC=this._find(aC);return aC>=0?(this._keys.splice(aC,1),this._values.splice(aC,1),this._cache=ZD,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=ZD},
forEach:function(aC){for(var Bv=this.size,Am=0;Am<Bv;++Am){var e9=this._keys[Am],cv=this._values[Am];this._cache=e9;aC.call(this,cv,e9,this)}},
_find:function(aC){for(var Bv=this._keys,Am=Bv.length,e9=0;e9<Am;++e9)if(Bv[e9]===aC)return e9;return-1}};
return d}
function h(){function d(){this._map=new x}
d.prototype={get size(){return this._map.length},has:function(ZD){return this._map.has(ZD)},
add:function(ZD){this._map.set(ZD,ZD);return this},
delete:function(ZD){return this._map.delete(ZD)},
clear:function(){this._map.clear()},
forEach:function(ZD,aC){this._map.forEach(ZD,aC)}};
return d}
function L(){function d(){this._key=aC()}
function ZD(RC,G8){for(var QF=0;QF<G8;++QF)RC[QF]=Math.random()*255|0}
function aC(){do{if(Am)var RC=Am.randomBytes(16);else typeof Uint8Array==="function"?(RC=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(RC):ZD(RC,16)):(RC=Array(16),ZD(RC,16));RC[6]=RC[6]&79|64;RC[8]=RC[8]&191|128;for(var G8="",QF=0;QF<16;++QF){var vl=RC[QF];if(QF===4||QF===6||QF===8)G8+="-";vl<16&&(G8+="0");G8+=vl.toString(16).toLowerCase()}RC="@@WeakMap@@"+G8}while(e9.call(cv,RC));cv[RC]=!0;return RC}
function Bv(RC,G8){if(!e9.call(RC,C7)){if(!G8)return;Object.defineProperty(RC,C7,{value:Object.create(null)})}return RC[C7]}
var Am=typeof global!=="undefined"&&typeof AG$==="object"&&typeof require==="function"&&require("crypto"),e9=Object.prototype.hasOwnProperty,cv={},C7=aC();d.prototype={has:function(RC){return(RC=Bv(RC,!1))?this._key in RC:!1},
get:function(RC){if(RC=Bv(RC,!1))return RC[this._key]},
set:function(RC,G8){Bv(RC,!0)[this._key]=G8;return this},
delete:function(RC){return(RC=Bv(RC,!1))&&this._key in RC?delete RC[this._key]:!1},
clear:function(){this._key=aC()}};
return d}
var F=Object.getPrototypeOf(Function),x=typeof Map==="function"?Map:p(),G=typeof Set==="function"?Set:h(),V=new (typeof WeakMap==="function"?WeakMap:L());a.decorate=function(d,ZD,aC,Bv){if(v(Bv)){if(v(aC)){if(!Array.isArray(d))throw new TypeError;if(!O(ZD))throw new TypeError;for(aC=d.length-1;aC>=0;--aC)if(Bv=(0,d[aC])(ZD),!v(Bv)){if(!O(Bv))throw new TypeError;ZD=Bv}return ZD}if(!Array.isArray(d))throw new TypeError;if(!U(ZD))throw new TypeError;aC=S(aC);for(Bv=d.length-1;Bv>=0;--Bv)(0,d[Bv])(ZD,
aC)}else{if(Array.isArray(d))if(U(ZD)){if(v(aC))throw new TypeError;if(!U(Bv))throw new TypeError;}else throw new TypeError;else throw new TypeError;aC=S(aC);for(var Am=d.length-1;Am>=0;--Am){var e9=(0,d[Am])(ZD,aC,Bv);if(!v(e9)){if(!U(e9))throw new TypeError;Bv=e9}}return Bv}};
a.metadata=function(d,ZD){return function(aC,Bv){if(v(Bv)){if(!O(aC))throw new TypeError;W(aC,void 0,!0).set(d,ZD)}else{if(!U(aC))throw new TypeError;Bv=S(Bv);W(aC,Bv,!0).set(d,ZD)}}};
a.defineMetadata=function(d,ZD){var aC;if(U(ZD))v(aC)||(aC=S(aC));else throw new TypeError;W(ZD,aC,!0).set("parameters",d)};
a.hasMetadata=function(d,ZD,aC){if(U(ZD))v(aC)||(aC=S(aC));else throw new TypeError;return w(d,ZD,aC)};
a.hasOwnMetadata=function(d,ZD,aC){if(U(ZD))v(aC)||(aC=S(aC));else throw new TypeError;return Z(d,ZD,aC)};
a.getMetadata=function(d,ZD,aC){if(U(ZD))v(aC)||(aC=S(aC));else throw new TypeError;return N(d,ZD,aC)};
a.getOwnMetadata=function(d,ZD,aC){if(U(ZD))v(aC)||(aC=S(aC));else throw new TypeError;return B(d,ZD,aC)};
a.getMetadataKeys=function(d,ZD){if(U(d))v(ZD)||(ZD=S(ZD));else throw new TypeError;return I(d,ZD)};
a.getOwnMetadataKeys=function(d,ZD){if(U(d))v(ZD)||(ZD=S(ZD));else throw new TypeError;return X(d,ZD)};
a.deleteMetadata=function(d,ZD,aC){if(U(ZD))v(aC)||(aC=S(aC));else throw new TypeError;var Bv=W(ZD,aC,!1);if(!v(Bv)){if(!Bv.delete(d))return!1;if(Bv.size>0)return!0;d=V.get(ZD);d.delete(aC);if(d.size>0)return!0;V.delete(ZD);return!0}};
(function(d){if(typeof d.Reflect!=="undefined"){if(d.Reflect!==a)for(var ZD in a)d.Reflect[ZD]=a[ZD]}else d.Reflect=a})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(hz_||(hz_={}));var CNe=self;var ixT=[0,_.fo,_.mK,_.fo];var cGH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(cGH,_.QH);var ezR=_.Em(cGH,[0,_.chm,_.VZ,ixT,_.mK,_.Hz]);_.NT(_.zc,_.OW);_.t=_.zc.prototype;_.t.start=function(){this.stop();this.usingListeners_=!1;var a=npR(this),W=jsl(this);a&&!W&&this.JSC$9126_win_.mozRequestAnimationFrame?(this.JSC$9126_id_=_.vX(this.JSC$9126_win_,"MozBeforePaint",this.callback_),this.JSC$9126_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9126_id_=a&&W?a.call(this.JSC$9126_win_,this.callback_):this.JSC$9126_win_.setTimeout(JLR(this.callback_),20)};
_.t.stop=function(){if(this.isActive()){var a=npR(this),W=jsl(this);a&&!W&&this.JSC$9126_win_.mozRequestAnimationFrame?Id(this.JSC$9126_id_):a&&W?W.call(this.JSC$9126_win_,this.JSC$9126_id_):this.JSC$9126_win_.clearTimeout(this.JSC$9126_id_)}this.JSC$9126_id_=null};
_.t.fire=function(){this.stop();this.JSC$9128_doAction_()};
_.t.isActive=function(){return this.JSC$9126_id_!=null};
_.t.JSC$9128_doAction_=function(){this.usingListeners_&&this.JSC$9126_id_&&Id(this.JSC$9126_id_);this.JSC$9126_id_=null;this.JSC$9126_listener_.call(this.handler_,_.ZL())};
_.t.disposeInternal=function(){this.stop();_.zc.superClass_.disposeInternal.call(this)};
var npR=function(a){a=a.JSC$9126_win_;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null},jsl=function(a){a=a.JSC$9126_win_;
return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};_.yP=function(a,W,w){_.OW.call(this);this.JSC$9129_listener_=w!=null?a.bind(w):a;this.JSC$9129_interval_=W;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9129_timer_=null};
_.c(_.yP,_.OW);_.t=_.yP.prototype;_.t.fire=function(a){this.args_=arguments;this.JSC$9129_timer_||this.pauseCount_?this.shouldFire_=!0:LOV(this)};
_.t.stop=function(){this.JSC$9129_timer_&&(_.NH.clearTimeout(this.JSC$9129_timer_),this.JSC$9129_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.t.pause=function(){this.pauseCount_++};
_.t.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9129_timer_||(this.shouldFire_=!1,LOV(this))};
_.t.disposeInternal=function(){_.OW.prototype.disposeInternal.call(this);this.stop()};
var LOV=function(a){a.JSC$9129_timer_=hd(function(){a.JSC$9129_timer_=null;a.shouldFire_&&!a.pauseCount_&&(a.shouldFire_=!1,LOV(a))},a.JSC$9129_interval_);
var W=a.args_;a.args_=null;a.JSC$9129_listener_.apply(null,W)};var JGA=function(a,W){this.childIterator_=a[_.NH.Symbol.iterator]();this.mapFn_=W};
JGA.prototype[Symbol.iterator]=function(){return this};
JGA.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 FO6=function(a,W){return new JGA(a,W)};var MyA={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 j2v=function(a){var W=RzR(a);if(!W)throw Error("Rd`"+a);return W},RzR=function(a){var W={};
a=String(a);var w=a.charAt(0)=="#"?a:"#"+a;if(qde.test(w))return W.hex=hpU(w),W.type="hex",W;w=MYe(a);return w.length?(W.hex=$vD(w[0],w[1],w[2]),W.type="rgb",W):MyA&&(a=MyA[a.toLowerCase()])?(W.hex=a,W.type="named",W):null},QsJ=/#(.)(.)(.)/,hpU=function(a){if(!qde.test(a))throw Error("Td`"+a);
a.length==4&&(a=a.replace(QsJ,"#$1$1$2$2$3$3"));return a.toLowerCase()},L0m=function(a){a=hpU(a);
a=parseInt(a.slice(1),16);return[a>>16,a>>8&255,a&255]},$vD=function(a,W,w){a=Number(a);
W=Number(W);w=Number(w);if(a!=(a&255)||W!=(W&255)||w!=(w&255))throw Error("Ud`"+a+"`"+W+"`"+w);W=a<<16|W<<8|w;return a<16?"#"+(16777216|W).toString(16).slice(1):"#"+W.toString(16)},qde=/^#(?:[0-9a-f]{3}){1,2}$/i,xn_=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,MYe=function(a){var W=a.match(xn_);
if(W){a=Number(W[1]);var w=Number(W[2]);W=Number(W[3]);if(a>=0&&a<=255&&w>=0&&w<=255&&W>=0&&W<=255)return[a,w,W]}return[]};var bxJ={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},Ay=bxJ;Ay=bxJ;var z17,sse,ubL;z17=function(a,W){switch(W){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};
sse=function(a,W,w,Z,N){a=new Date(a,W,w);N=N||0;return a.valueOf()+(((Z!==void 0?Z:3)-N+7)%7-((a.getDay()+6)%7-N+7)%7)*864E5};
_.KU=function(a,W,w){typeof a==="number"?(this.date=ubL(a,W||0,w||1),C8h(this,w||1)):_.tL(a)?(this.date=ubL(a.getFullYear(),a.getMonth(),a.getDate()),C8h(this,a.getDate())):(this.date=new Date(_.ZL()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),C8h(this,a))};
ubL=function(a,W,w){W=new Date(a,W,w);a>=0&&a<100&&W.setFullYear(W.getFullYear()-1900);return W};
_.t=_.KU.prototype;_.t.firstDayOfWeek_=Ay.FIRSTDAYOFWEEK;_.t.firstWeekCutOffDay_=Ay.FIRSTWEEKCUTOFFDAY;_.t.clone=function(){var a=new _.KU(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
_.t.getFullYear=function(){return this.date.getFullYear()};
_.t.getYear=function(){return this.getFullYear()};
_.t.getMonth=function(){return this.date.getMonth()};
_.t.getDate=function(){return this.date.getDate()};
_.t.getTime=function(){return this.date.getTime()};
_.t.getDay=function(){return this.date.getDay()};
_.t.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.t.getUTCMonth=function(){return this.date.getUTCMonth()};
_.t.getUTCDate=function(){return this.date.getUTCDate()};
_.t.getUTCDay=function(){return this.date.getDay()};
_.t.getUTCHours=function(){return this.date.getUTCHours()};
_.t.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.t.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.t.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
_.t.setFullYear=function(a){this.date.setFullYear(a)};
_.t.setYear=function(a){this.setFullYear(a)};
_.t.setMonth=function(a){this.date.setMonth(a)};
_.t.setDate=function(a){this.date.setDate(a)};
_.t.setTime=function(a){this.date.setTime(a)};
_.t.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};
_.t.setUTCMonth=function(a){this.date.setUTCMonth(a)};
_.t.setUTCDate=function(a){this.date.setUTCDate(a)};
_.t.add=function(a){if(a.years||a.months){var W=this.getMonth()+a.months+a.years*12,w=this.getYear()+Math.floor(W/12);W%=12;W<0&&(W+=12);var Z=Math.min(z17(w,W),this.getDate());this.setDate(1);this.setFullYear(w);this.setMonth(W);this.setDate(Z)}a.days&&(w=this.getYear(),W=w>=0&&w<=99?-1900:0,a=new Date((new Date(w,this.getMonth(),this.getDate(),12)).getTime()+a.days*864E5),this.setDate(1),this.setFullYear(a.getFullYear()+W),this.setMonth(a.getMonth()),this.setDate(a.getDate()),C8h(this,a.getDate()))};
_.t.JSC$9142_toIsoString=function(a){var W=this.getFullYear(),w=W<0?"-":W>=1E4?"+":"";return[w+_.ZA(Math.abs(W),w?6:4),_.ZA(this.getMonth()+1,2),_.ZA(this.getDate(),2)].join(a?"-":"")};
_.t.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};
_.t.toString=function(){return this.JSC$9142_toIsoString()};
var C8h=function(a,W){a.getDate()!=W&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<W?1:-1))};
_.KU.prototype.valueOf=function(){return this.date.valueOf()};var rq=function(a,W,w,Z,N){this.reversed=!!W;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!w;a&&pU(this,a,Z);this.depth=N!=void 0?N:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.NT(rq,NK);var pU=function(a,W,w,Z){if(a.node=W)a.tagType=typeof w==="number"?w:a.node.nodeType!=1?0:a.reversed?-1:1;typeof Z==="number"&&(a.depth=Z)};
_.t=rq.prototype;_.t.JSC$9157_copyFrom=function(a){this.node=a.node;this.tagType=a.tagType;this.depth=a.depth;this.reversed=a.reversed;this.constrained=a.constrained};
_.t.clone=function(){return new rq(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.t.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return t2;var a=this.node;var W=this.reversed?-1:1;if(this.tagType==W){var w=this.reversed?a.lastChild:a.firstChild;w?pU(this,w):pU(this,a,W*-1)}else(w=this.reversed?a.previousSibling:a.nextSibling)?pU(this,w):pU(this,a.parentNode,W*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(a=this.node)?$K(a):t2};
_.t.equals=function(a){return a.node==this.node&&(!this.node||a.tagType==this.tagType)};
_.t.splice=function(a){var W=this.node,w=this.reversed?1:-1;this.tagType==w&&(this.tagType=w*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;rq.prototype.next.call(this);this.reversed=!this.reversed;w=_.wT(arguments[0])?arguments[0]:arguments;for(var Z=w.length-1;Z>=0;Z--)_.LI(w[Z],W);_.Xh(W)};var GCR=function(){},AA=function(a){for(var W=[],w=a.getTextRangeCount(),Z=0;Z<w;Z++)W.push(a.getTextRange(Z));
return W};
GCR.prototype.isReversed=function(){return!1};
GCR.prototype.getWindow=function(){return Av(_.hv(this.JSC$9159_getStartNode()))};
var DnH=function(a,W){rq.call(this,a,W,!0)};
_.NT(DnH,rq);var hA=function(a,W,w,Z,N){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!N;if(a){this.startNode_=a;this.startOffset_=W;this.endNode_=w;this.endOffset_=Z;if(a.nodeType==1&&a.tagName!="BR")if(a=a.childNodes,W=a[W])this.startNode_=W,this.startOffset_=0;else{a.length&&(this.startNode_=_.xI(a));var B=!0}w.nodeType==1&&((this.endNode_=w.childNodes[Z])?this.endOffset_=0:this.endNode_=w)}rq.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);B&&this.next()};
_.NT(hA,DnH);_.t=hA.prototype;_.t.JSC$9165_getStartNode=function(){return this.startNode_};
_.t.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)};
_.t.next=function(){return this.isLast()?t2:hA.superClass_.next.call(this)};
_.t.JSC$9157_copyFrom=function(a){this.startNode_=a.startNode_;this.endNode_=a.endNode_;this.startOffset_=a.startOffset_;this.endOffset_=a.endOffset_;this.isReversed_=a.isReversed_;hA.superClass_.JSC$9157_copyFrom.call(this,a)};
_.t.clone=function(){var a=new hA(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);a.JSC$9157_copyFrom(this);return a};var fbR=function(){};
fbR.prototype.__iterator__=function(){return new hA(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var iT=function(a){this.range_=a};
_.NT(iT,fbR);var dnJ=function(a){var W=_.hv(a).createRange();if(a.nodeType==3)W.setStart(a,0),W.setEnd(a,a.length);else if(e5(a)||a.nodeType==3){for(var w,Z=a;(w=Z.firstChild)&&(e5(w)||w.nodeType==3);)Z=w;W.setStart(Z,0);for(Z=a;(w=Z.lastChild)&&(e5(w)||w.nodeType==3);)Z=w;W.setEnd(Z,Z.nodeType==1?Z.childNodes.length:Z.length)}else w=a.parentNode,a=Array.prototype.indexOf.call(w.childNodes,a),W.setStart(w,a),W.setEnd(w,a+1);return W},mn$=function(a,W,w,Z){var N=_.hv(a).createRange();
N.setStart(a,W);N.setEnd(w,Z);return N};
_.t=iT.prototype;_.t.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.t.getContainer=function(){return this.range_.commonAncestorContainer};
_.t.compareBrowserRangeEndpoints=function(a,W,w){return this.range_.compareBoundaryPoints(w==1?W==1?_.NH.Range.START_TO_START:_.NH.Range.START_TO_END:W==1?_.NH.Range.END_TO_START:_.NH.Range.END_TO_END,a)};
_.t.isCollapsed=function(){return this.range_.collapsed};
_.t.select=function(a){this.selectInternal(Av(_.hv(this.range_.startContainer)).getSelection(),a)};
_.t.selectInternal=function(a){a.removeAllRanges();a.addRange(this.range_)};
_.t.insertNode=function(a,W){var w=this.range_.cloneRange();w.collapse(W);w.insertNode(a);w.detach();return a};
_.t.collapse=function(a){this.range_.collapse(a)};_.NT(HH,iT);HH.prototype.selectInternal=function(a,W){!W||this.isCollapsed()?HH.superClass_.selectInternal.call(this,a,W):(a.collapse(this.range_.endContainer,this.range_.endOffset),a.extend(this.range_.startContainer,this.range_.startOffset))};_.NT(y8,iT);y8.prototype.compareBrowserRangeEndpoints=function(a,W,w){return y8.superClass_.compareBrowserRangeEndpoints.call(this,a,W,w)};
y8.prototype.selectInternal=function(a,W){W?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 VyV=function(a){return _.Pz?new y8(a):_.IY?new HH(a):new iT(a)};var cn=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},zzL;
_.NT(cn,GCR);zzL=function(a,W){var w=new cn;w.browserRangeWrapper_=a;w.isReversed_=!!W;return w};
_.HxT=function(a){a=_.Pz?new y8(dnJ(a)):_.IY?new HH(dnJ(a)):new iT(dnJ(a));return zzL(a)};
_.ef=function(a,W,w,Z){var N=new cn;N.isReversed_=yGe(a,W,w,Z);if(_.GK(a)&&!e5(a)){var B=a.parentNode;W=Array.prototype.indexOf.call(B.childNodes,a);a=B}_.GK(w)&&!e5(w)&&(B=w.parentNode,Z=Array.prototype.indexOf.call(B.childNodes,w),w=B);N.isReversed_?(N.startNode_=w,N.startOffset_=Z,N.endNode_=a,N.endOffset_=W):(N.startNode_=a,N.startOffset_=W,N.endNode_=w,N.endOffset_=Z);return N};
_.t=cn.prototype;_.t.clone=function(){var a=new cn;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};
_.t.JSC$9159_getType=function(){return"text"};
_.t.getBrowserRangeObject=function(){return nU(this).range_};
_.t.getTextRangeCount=function(){return 1};
_.t.getTextRange=function(){return this};
var nU=function(a){var W;if(!(W=a.browserRangeWrapper_)){W=a.JSC$9159_getStartNode();var w=a.JSC$9159_getStartOffset(),Z=a.JSC$9159_getEndNode(),N=a.JSC$9159_getEndOffset();W=_.Pz?new y8(mn$(W,w,Z,N)):_.IY?new HH(mn$(W,w,Z,N)):new iT(mn$(W,w,Z,N));W=a.browserRangeWrapper_=W}return W};
_.t=cn.prototype;_.t.getContainer=function(){return nU(this).getContainer()};
_.t.JSC$9159_getStartNode=function(){return this.startNode_||(this.startNode_=nU(this).range_.startContainer)};
_.t.JSC$9159_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=nU(this).range_.startOffset};
_.t.JSC$9159_getEndNode=function(){return this.endNode_||(this.endNode_=nU(this).range_.endContainer)};
_.t.JSC$9159_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=nU(this).range_.endOffset};
_.t.isReversed=function(){return this.isReversed_};
_.t.JSC$9159_containsRange=function(a,W){if(a.JSC$9159_getType()=="text"){var w=nU(this);a=nU(a);W=W&&!a.isCollapsed();a=a.range_;w=W?w.compareBrowserRangeEndpoints(a,0,1)>=0&&w.compareBrowserRangeEndpoints(a,1,0)<=0:w.compareBrowserRangeEndpoints(a,0,0)>=0&&w.compareBrowserRangeEndpoints(a,1,1)<=0}else w=!1;return w};
_.t.isCollapsed=function(){return nU(this).isCollapsed()};
_.t.JSC$9159_getText=function(){return nU(this).range_.toString()};
_.t.__iterator__=function(){return new hA(this.JSC$9159_getStartNode(),this.JSC$9159_getStartOffset(),this.JSC$9159_getEndNode(),this.JSC$9159_getEndOffset())};
_.t.select=function(){nU(this).select(this.isReversed_)};
_.t.JSC$9159_removeContents=function(){var a=nU(this).range_;a.extractContents();if(a.startContainer.hasChildNodes()&&(a=a.startContainer.childNodes[a.startOffset])){var W=a.previousSibling;jE6(a)==""&&_.Xh(a);W&&jE6(W)==""&&_.Xh(W)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.t.insertNode=function(a,W){a=nU(this).insertNode(a,W);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return a};
_.t.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 EpH=function(){};
_.NT(EpH,GCR);EpH.prototype.JSC$9159_containsRange=function(a,W){var w=AA(this);a=AA(a);return(W?sx:_.B0F)(a,function(Z){return sx(w,function(N){return N.JSC$9159_containsRange(Z,W)})})};
EpH.prototype.insertNode=function(a,W){W?_.j5(a,this.JSC$9159_getStartNode()):_.LI(a,this.JSC$9159_getEndNode());return a};var a3R,Whl=Ph().JSC$7233_document_.documentElement;a3R=Whl.requestFullscreen?"fullscreenchange":Whl.webkitRequestFullscreen?"webkitfullscreenchange":Whl.mozRequestFullScreen?"mozfullscreenchange":Whl.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var wuA=function(){var a=Ph().JSC$7233_document_;return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)};var jf=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.NT(jf,EpH);_.t=jf.prototype;_.t.clone=function(){var a=new jf;a.browserRanges_=_.Wl(this.browserRanges_);return a};
_.t.JSC$9159_getType=function(){return"mutli"};
_.t.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.t.getTextRangeCount=function(){return this.browserRanges_.length};
_.t.getTextRange=function(a){this.ranges_[a]||(this.ranges_[a]=zzL(VyV(this.browserRanges_[a])));return this.ranges_[a]};
_.t.getContainer=function(){if(!this.container_){for(var a=[],W=this.getTextRangeCount(),w=0;w<W;w++)a.push(this.getTextRange(w).getContainer());this.container_=rzR.apply(null,a)}return this.container_};
var LU=function(a){a.sortedRanges_||(a.sortedRanges_=AA(a),a.sortedRanges_.sort(function(W,w){var Z=W.JSC$9159_getStartNode();W=W.JSC$9159_getStartOffset();var N=w.JSC$9159_getStartNode();w=w.JSC$9159_getStartOffset();return Z==N&&W==w?0:yGe(Z,W,N,w)?1:-1}));
return a.sortedRanges_};
_.t=jf.prototype;_.t.JSC$9159_getStartNode=function(){return LU(this)[0].JSC$9159_getStartNode()};
_.t.JSC$9159_getStartOffset=function(){return LU(this)[0].JSC$9159_getStartOffset()};
_.t.JSC$9159_getEndNode=function(){return _.xI(LU(this)).JSC$9159_getEndNode()};
_.t.JSC$9159_getEndOffset=function(){return _.xI(LU(this)).JSC$9159_getEndOffset()};
_.t.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.t.JSC$9159_getText=function(){return AA(this).map(function(a){return a.JSC$9159_getText()}).join("")};
_.t.__iterator__=function(){return new JA(this)};
_.t.select=function(){var a=this.getWindow().getSelection();a.removeAllRanges();for(var W=this.getTextRangeCount(),w=0;w<W;w++)a.addRange(this.getTextRange(w).getBrowserRangeObject())};
_.t.JSC$9159_removeContents=function(){AA(this).forEach(function(a){a.JSC$9159_removeContents()})};
_.t.collapse=function(a){if(!this.isCollapsed()){var W=a?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;W.collapse(a);this.ranges_=[W];this.sortedRanges_=[W];this.browserRanges_=[W.getBrowserRangeObject()]}};
var JA=function(a){this.iterators_=null;this.currentIdx_=0;a&&(this.iterators_=LU(a).map(function(W){return _.YnH(W)}));
rq.call(this,a?this.JSC$9165_getStartNode():null,!1,!0)};
_.NT(JA,DnH);_.t=JA.prototype;_.t.JSC$9165_getStartNode=function(){return this.iterators_[0].JSC$9165_getStartNode()};
_.t.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.t.next=function(){for(;this.currentIdx_<this.iterators_.length;){var a=this.iterators_[this.currentIdx_],W=a.next();if(W.done)this.currentIdx_++;else return pU(this,a.node,a.tagType,a.depth),W}return t2};
_.t.JSC$9157_copyFrom=function(a){this.iterators_=_.Wl(a.iterators_);JA.superClass_.JSC$9157_copyFrom.call(this,a)};
_.t.clone=function(){var a=new JA(null);a.JSC$9157_copyFrom(this);return a};var ZCR,yGe;_.YB=function(){var a=window.getSelection();return a&&ZCR(a)};
ZCR=function(a){var W=!1;if(a.createRange)try{var w=a.createRange()}catch(N){return null}else if(a.rangeCount){if(a.rangeCount>1){w=new jf;W=a.rangeCount;for(var Z=0;Z<W;Z++)w.browserRanges_.push(a.getRangeAt(Z));return w}w=a.getRangeAt(0);W=yGe(a.anchorNode,a.anchorOffset,a.focusNode,a.focusOffset)}else return null;return zzL(VyV(w),W)};
_.FS=function(a,W){return _.ef(a,W,a,W)};
_.MD=function(a,W,w,Z){return _.ef(a,W,w,Z)};
yGe=function(a,W,w,Z){if(a==w)return Z<W;var N;if(a.nodeType==1&&W)if(N=a.childNodes[W])a=N,W=0;else if(_.Lr(a,w))return!0;if(w.nodeType==1&&Z)if(N=w.childNodes[Z])w=N,Z=0;else if(_.Lr(w,a))return!1;return(p2_(a,w)||W-Z)>0};var Rw=function(){_.Ti.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Sk)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Sk)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Sk)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Sk)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Sk)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Sk)(this.dispatchProgressEvent_,this)};
_.NT(Rw,_.Ti);Rw.prototype.abort=function(){try{this.reader_.abort()}catch(a){throw new AFl(a,"aborting read");}};
Rw.prototype.getError=function(){return this.reader_.error&&new AFl(this.reader_.error,"reading file")};
Rw.prototype.dispatchProgressEvent_=function(a){this.dispatchEvent(new h2J(a,this))};
Rw.prototype.disposeInternal=function(){Rw.superClass_.disposeInternal.call(this);delete this.reader_};
var tM$=function(a){var W=new Rw,w=NiJ(W);W.reader_.readAsArrayBuffer(a);return w},$jl=function(a){var W=new Rw,w=NiJ(W);
W.reader_.readAsDataURL(a);return w},NiJ=function(a){var W=new Gi;
a.listen("loadend",_.v_(function(w,Z){var N=Z.reader_.result,B=Z.getError();N==null||B?w.errback(B):w.callback(N);Z.dispose()},W,a));
return W};var qD=function(){_.Ti.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9199_eventHandler_=new _.am(this);this.JSC$9199_isInitialized_=!1};
_.NT(qD,_.Ti);var BiT=new _.ok("d"),l3R=new _.ok("beforedragstart"),I3T=new _.ok("dragstart"),Ph_=new _.ok("beforedragmove"),Xu_=new _.ok("dragmove"),vo_=new _.ok("beforedragend"),go$=new _.ok("dragend"),ooA=new _.ok("e");qD.prototype.isDragging=function(){return!!this.JSC$9199_dragger_};
var kXl=function(a,W){W.dlgGrowthDirection_=0;W.dlgDragHoverClass_=void 0;W.dlgDragPermission=0;a.dragLists_.push(W)},UjR=function(a,W){a.getHandleForDragItem_=W};
qD.prototype.init=function(){if(!this.JSC$9199_isInitialized_){for(var a=this.dragLists_.length,W=0;W<a;W++)for(var w=_.J9(this.dragLists_[W]),Z=w.length,N=0;N<Z;++N){var B=w[N],I=this.getHandleForDragItem_(B),X=_.lA(I);this.dragItemForHandle_[X]=B;this.dragItemHoverClasses_&&(this.JSC$9199_eventHandler_.listen(B,"mouseover",this.handleDragItemMouseover_),this.JSC$9199_eventHandler_.listen(B,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9199_eventHandler_.listen(I,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9199_eventHandler_.listen(I,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(B);this.JSC$9199_eventHandler_.listen(I,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9199_isInitialized_=!0}};
qD.prototype.disposeInternal=function(){this.JSC$9199_eventHandler_.dispose();for(var a=this.dragLists_.length,W=0;W<a;W++){var w=this.dragLists_[W];w.dlgGrowthDirection_=void 0;w.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;OCH(this);qD.superClass_.disposeInternal.call(this)};
var S6V=function(a,W){for(var w=a.dragLists_.length,Z=0;Z<w;Z++){var N=a.dragLists_[Z];N.dlgBounds_=GSS(N)}w=a.dragItems_.length;for(Z=0;Z<w;Z++)N=a.dragItems_[Z],N!=W&&(N.dlgBounds_=GSS(N))};
_.t=qD.prototype;
_.t.handlePotentialDragStart_=function(a){var W=_.lA(a.currentTarget);W=this.dragItemForHandle_[W];if(W.parentElement.dlgDragPermission!=2){this.currDragItem_=W;a:{W=this.currDragItem_;for(var w=W.cloneNode(!0),Z=gh("TEXTAREA",W),N=gh("TEXTAREA",w),B=0;B<Z.length;B++)N[B].value=Z[B].value;switch(W.tagName){case "TR":W=_.iE("TABLE",null,_.iE("TBODY",null,w));break a;case "TD":case "TH":W=_.iE("TABLE",null,_.iE("TBODY",null,_.iE("TR",null,w)));break a;case "TEXTAREA":w.value=W.value;default:W=w;break a}W=
void 0}this.draggerEl_=W;this.draggerElClasses_&&ug(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.hv(this.currDragItem_).body.appendChild(this.draggerEl_);w=_.nY(this.currDragItem_);W=this.draggerEl_;Z=_.nY(W);if(w instanceof _.r3){var I=w.y;w=w.x}QK(W,W.offsetLeft+(w-Z.x),W.offsetTop+(Number(I)-Z.y));this.JSC$9199_dragger_=new _.RZ(this.draggerEl_);_.rwe(this.JSC$9199_dragger_,this.hysteresisDistance_);
_.vX(this.JSC$9199_dragger_,"start",this.handleDragStart_,!1,this);_.vX(this.JSC$9199_dragger_,"end",this.handleDragEnd_,!1,this);_.vX(this.JSC$9199_dragger_,"earlycancel",this.JSC$9201_cleanup_,!1,this);this.dispatchEvent(new Qd(BiT,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_));this.JSC$9199_dragger_.startDrag(a)}};
_.t.handleDragStart_=function(a){if(this.dispatchEvent(new Qd(l3R,this,a.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.YIE(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?ug(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var W=qIR(this.draggerEl_);this.draggerEl_.halfWidth=W.width/2;this.draggerEl_.halfHeight=W.height/2;W=this.draggerEl_.getBoundingClientRect();
var w=a.clientY,Z=AwV(this.JSC$9199_dragger_,a.clientX);if(Z>W.right){var N=this.currDragItem_.getBoundingClientRect();this.JSC$9199_dragger_.deltaX=Z-(Z-N.left)/N.width*W.width}w=h8H(this.JSC$9199_dragger_,w);w>W.bottom&&(this.JSC$9199_dragger_.deltaY+=w-W.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";S6V(this,this.currDragItem_);this.currDragItem_.style.display="";_.vX(this.JSC$9199_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Qd(I3T,
this,a.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_))}else a.preventDefault(),this.JSC$9201_cleanup_()};
_.t.handleDragMove_=function(a){var W=_.nY(this.draggerEl_);W=new _.r3(W.x+this.draggerEl_.halfWidth,W.y+this.draggerEl_.halfHeight);a:{var w=null;if(this.currDragItem_.style.display!="none"){w=this.currDragItem_.parentNode;var Z=GSS(w);if(Y6R(W,Z))break a}Z=this.dragLists_.length;for(var N=0;N<Z;N++){var B=this.dragLists_[N];if(B!=w&&Y6R(W,B.dlgBounds_)){w=B;break a}}w=null}if(w){if(w==null)throw Error("Vd");Z=0;N=!1;B=void 0;switch(w.dlgGrowthDirection_){case 0:Z=W.y;var I=TiR;var X=KhR;break;case 4:N=
!0;case 2:Z=W.x;I=pu_;X=KhR;break;case 5:N=!0;case 3:Z=W.x,I=r7$,X=A7A}for(var v=null,U,O=_.J9(w),S=O.length,T=0;T<S;T++){var p=O[T];if(p!=this.currDragItem_){var h=I(p.dlgBounds_);if(N){var L=h5_(p,W);B===void 0&&(B=L);X(Z,h)&&(U==void 0||L<B||L==B&&(X(h,U)||h==U))&&(v=p,U=h);L<B&&(B=L)}else X(Z,h)&&(U==void 0||X(h,U))&&(v=p,U=h)}}I=v!==null&&h5_(v,W)>B?null:v}else I=null;if(!this.dispatchEvent(new Qd(Ph_,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_,W,w,I)))return!1;if(w&&w.dlgDragPermission!=
1)this.currDragItem_.parentNode==w&&_.YIE(this.currDragItem_)==I||w.insertBefore(this.currDragItem_,I),this.currDragItem_.style.display="",w.dlgDragHoverClass_&&_.QD(w,w.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",X=this.dragLists_.length,U=0;U<X;U++)Z=this.dragLists_[U],Z.dlgDragHoverClass_&&_.Rd(Z,Z.dlgDragHoverClass_);w!=this.currHoverList_&&(this.currHoverList_=w,S6V(this,this.currDragItem_));this.dispatchEvent(new Qd(Xu_,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_,
W,w,I));return!1};
_.t.JSC$9201_cleanup_=function(){OCH(this);this.JSC$9199_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var a=this.dragLists_.length,W=0;W<a;W++)this.dragLists_[W].dlgBounds_=null;a=this.dragItems_.length;for(W=0;W<a;W++)this.dragItems_[W].dlgBounds_=null};
_.t.handleDragEnd_=function(a){if(!this.dispatchEvent(new Qd(vo_,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_)))return!1;OCH(this);this.dispatchEvent(new Qd(go$,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_));this.JSC$9201_cleanup_();return!0};
var OCH=function(a){_.d3(a.JSC$9199_dragger_);var W=a.draggerEl_&&a.draggerEl_.parentElement;a.draggerEl_&&_.Xh(a.draggerEl_);a.currDragItem_&&a.currDragItem_.style.display=="none"&&(a.origList_.insertBefore(a.currDragItem_,a.origNextItem_),a.currDragItem_.style.display="");a.currDragItemClasses_&&a.currDragItem_?AKT(a.currDragItem_,a.currDragItemClasses_||[]):a.currDragItem_&&(a.currDragItem_.style.visibility="");for(var w=a.dragLists_.length,Z=0;Z<w;Z++){var N=a.dragLists_[Z];N.dlgDragHoverClass_&&
_.Rd(N,N.dlgDragHoverClass_)}W&&a.dispatchEvent(new Qd(ooA,a,null,a.currDragItem_,a.draggerEl_,a.JSC$9199_dragger_))};
_.t=qD.prototype;_.t.getHandleForDragItem_=function(a){return a};
_.t.handleDragItemMouseover_=function(a){ug(a.currentTarget,this.dragItemHoverClasses_||[])};
_.t.handleDragItemMouseout_=function(a){AKT(a.currentTarget,this.dragItemHoverClasses_||[])};
_.t.handleDragItemHandleMouseover_=function(a){ug(a.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.t.handleDragItemHandleMouseout_=function(a){AKT(a.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Y6R=function(a,W){return a.x>W.left&&a.x<W.left+W.width&&a.y>W.top&&a.y<W.top+W.height},h5_=function(a,W){a=a.dlgBounds_;
return Math.abs(W.y-(a.top+(a.height-1)/2))},TiR=function(a){return a.top+a.height-1},pu_=function(a){return a.left+a.width-1},r7$=function(a){return a.left||0},KhR=function(a,W){return a<W},A7A=function(a,W){return a>W},Qd=function(a,W,w,Z,N,B){_.kO.call(this,a);
this.event=w;this.currDragItem=Z;this.draggerEl=N;this.JSC$9203_dragger=B};
_.NT(Qd,_.kO);_.NT(WG,_.OW);var iCT=new _.r3(0,0);WG.prototype.JSC$9207_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
WG.prototype.JSC$9207_onMouseMove=function(a){var W=this.containerIsActuallyContent_?iCT:Iv(Ph(this.containerNode_)),w=this.horizontalScrolling_?this.calculateScrollDelta(a.clientX+W.x,this.scrollBounds_.left,this.scrollBounds_.width):0,Z=this.calculateScrollDelta(a.clientY+W.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=w;this.scrollDelta_.y=Z;!(w=!w&&!Z)&&(w=this.constrainScroll_)&&(w=a.clientX+W.x,a=a.clientY+W.y,W=this.containerBounds_,w=!(W.left<=w&&W.left+W.width>=
w&&W.top<=a&&W.top+W.height>=a));w?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
WG.prototype.calculateScrollDelta=function(a,W,w){var Z=0;a<W?Z=-8:a>W+w&&(Z=8);return Z};
WG.prototype.disposeInternal=function(){WG.superClass_.disposeInternal.call(this);this.JSC$9205_eventHandler_.dispose();this.scrollTimer_.dispose()};var c7T={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"}}},xi=c7T;xi=c7T;var bT={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 e5e=function(){},Rs=function(a){if(typeof a=="number"){var W=new e5e;
W.standardOffset_=a;var w=a;if(w==0)w="Etc/GMT";else{var Z=["Etc/GMT",w<0?"-":"+"];w=Math.abs(w);Z.push(Math.floor(w/60)%100);w%=60;w!=0&&Z.push(":",_.ZA(w,2));w=Z.join("")}W.timeZoneId_=w;w=a;w==0?w="UTC":(Z=["UTC",w<0?"+":"-"],w=Math.abs(w),Z.push(Math.floor(w/60)%100),w%=60,w!=0&&Z.push(":",w),w=Z.join(""));a=noT(a);W.tzNames_=[w,w];W.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};W.transitions_=[];return W}W=new e5e;W.timeZoneId_=a.id;W.standardOffset_=-a.std_offset;W.tzNames_=a.names;
W.tzNamesExt_=a.names_ext;W.transitions_=a.transitions;return W},noT=function(a){var W=["GMT"];
W.push(a<=0?"+":"-");a=Math.abs(a);W.push(_.ZA(Math.floor(a/60)%100,2),":",_.ZA(a%60,2));return W.join("")},j1L=function(a,W){W=Date.UTC(W.getUTCFullYear(),W.getUTCMonth(),W.getUTCDate(),W.getUTCHours(),W.getUTCMinutes())/36E5;
for(var w=0;w<a.transitions_.length&&W>=a.transitions_[w];)w+=2;return w==0?0:a.transitions_[w-1]},Lh6=function(a,W){a=a.standardOffset_-j1L(a,W);
return a===-1440?0:a};var Qb=function(a,W){this.patternParts_=[];this.JSC$9218_dateTimeSymbols_=W||Ay;typeof a=="number"?J7y(this,a):Fhy(this,a)},MMT=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],s5=function(a){return a.getHours?a.getHours():0},Fhy=function(a,W){for(oVI&&(W=W.replace(/\u200f/g,""));W;){for(var w=W,Z=0;Z<MMT.length;++Z){var N=W.match(MMT[Z]);
if(N){var B=N[0];W=W.substring(B.length);Z==0&&(B=="''"?B="'":(B=B.substring(1,N[1]=="'"?B.length-1:B.length),B=B.replace(/''/g,"'")));a.patternParts_.push({text:B,type:Z});break}}if(w===W)throw Error("Wd`"+W);}};
Qb.prototype.format=function(a,W){if(!a)throw Error("Xd");var w=W?(a.getTimezoneOffset()-Lh6(W,a))*6E4:0,Z=w?new Date(a.getTime()+w):a,N=Z;W&&Z.getTimezoneOffset()!=a.getTimezoneOffset()&&(Z=new Date(Z.getTime()+(Z.getTimezoneOffset()-a.getTimezoneOffset())*6E4),N=new Date(a.getTime()+(w+(w>0?-864E5:864E5))));w=[];for(var B=0;B<this.patternParts_.length;++B){var I=this.patternParts_[B].text;1==this.patternParts_[B].type?w.push(R5_(this,I,a,Z,N,W)):w.push(I)}return w.join("")};
var J7y=function(a,W){if(W<4)var w=a.JSC$9218_dateTimeSymbols_.DATEFORMATS[W];else if(W<8)w=a.JSC$9218_dateTimeSymbols_.TIMEFORMATS[W-4];else if(W<12)w=a.JSC$9218_dateTimeSymbols_.DATETIMEFORMATS[W-8],w=w.replace("{1}",a.JSC$9218_dateTimeSymbols_.DATEFORMATS[W-8]),w=w.replace("{0}",a.JSC$9218_dateTimeSymbols_.TIMEFORMATS[W-8]);else if(W===12)w=a.JSC$9218_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(W===13)w=a.JSC$9218_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{J7y(a,10);return}Fhy(a,w)},uT=function(a,W){W=String(W);
a=a.JSC$9218_dateTimeSymbols_||Ay;if(a.ZERODIGIT!==void 0&&!gVx){for(var w=[],Z=0;Z<W.length;Z++){var N=W.charCodeAt(Z);w.push(48<=N&&N<=57?String.fromCharCode(a.ZERODIGIT+N-48):W.charAt(Z))}W=w.join("")}return W},gVx=!1,oVI=!1,Q1R=function(a,W,w,Z){w=w.getFullYear();
w<=0&&Z&&(w=1-w);return uT(a,q6A(w,W))},q6A=function(a,W){W==2&&(a%=100);
a<0&&W++;return _.ZA(a,W)},CU=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("Yd");
},xj_=function(a,W){CU(W);
W=s5(W);return a.JSC$9218_dateTimeSymbols_.AMPMS[W>=12&&W<24?1:0]},R5_=function(a,W,w,Z,N,B){var I=W.length;
switch(W.charAt(0)){case "G":return w=Z.getFullYear()>0?1:0,I>=4?a.JSC$9218_dateTimeSymbols_.ERANAMES[w]:a.JSC$9218_dateTimeSymbols_.ERAS[w];case "y":return Q1R(a,I,Z,!0);case "Y":return w=(new Date(sse(Z.getFullYear(),Z.getMonth(),Z.getDate(),a.JSC$9218_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.JSC$9218_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),I==2&&(w%=100),uT(a,q6A(w,I));case "u":return Q1R(a,I,Z,!1);case "M":a:switch(w=Z.getMonth(),I){case 5:I=a.JSC$9218_dateTimeSymbols_.NARROWMONTHS[w];break a;
case 4:I=a.JSC$9218_dateTimeSymbols_.MONTHS[w];break a;case 3:I=a.JSC$9218_dateTimeSymbols_.SHORTMONTHS[w];break a;default:I=uT(a,_.ZA(w+1,I))}return I;case "k":return CU(N),uT(a,_.ZA(s5(N)||24,I));case "S":return uT(a,(N.getMilliseconds()/1E3).toFixed(Math.min(3,I)).slice(2)+(I>3?_.ZA(0,I-3):""));case "E":return w=Z.getDay(),I>=4?a.JSC$9218_dateTimeSymbols_.WEEKDAYS[w]:a.JSC$9218_dateTimeSymbols_.SHORTWEEKDAYS[w];case "a":return xj_(a,N);case "b":return xj_(a,N);case "B":return xj_(a,N);case "h":return CU(N),
uT(a,_.ZA(s5(N)%12||12,I));case "K":return CU(N),uT(a,_.ZA(s5(N)%12,I));case "H":return CU(N),uT(a,_.ZA(s5(N),I));case "c":a:switch(w=Z.getDay(),I){case 5:I=a.JSC$9218_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[w];break a;case 4:I=a.JSC$9218_dateTimeSymbols_.STANDALONEWEEKDAYS[w];break a;case 3:I=a.JSC$9218_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[w];break a;default:I=uT(a,_.ZA(w,1))}return I;case "L":a:switch(w=Z.getMonth(),I){case 5:I=a.JSC$9218_dateTimeSymbols_.STANDALONENARROWMONTHS[w];break a;
case 4:I=a.JSC$9218_dateTimeSymbols_.STANDALONEMONTHS[w];break a;case 3:I=a.JSC$9218_dateTimeSymbols_.STANDALONESHORTMONTHS[w];break a;default:I=uT(a,_.ZA(w+1,I))}return I;case "Q":return w=Math.floor(Z.getMonth()/3),I<4?a.JSC$9218_dateTimeSymbols_.SHORTQUARTERS[w]:a.JSC$9218_dateTimeSymbols_.QUARTERS[w];case "d":return uT(a,_.ZA(Z.getDate(),I));case "m":return CU(N),uT(a,_.ZA(N.getMinutes?N.getMinutes():0,I));case "s":return CU(N),uT(a,_.ZA(N.getSeconds(),I));case "v":return(B||Rs(w.getTimezoneOffset())).timeZoneId_;
case "V":return a=B||Rs(w.getTimezoneOffset()),I<=2?a.timeZoneId_:j1L(a,w)>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 w=sse(N.getFullYear(),N.getMonth(),N.getDate(),a.JSC$9218_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.JSC$9218_dateTimeSymbols_.FIRSTDAYOFWEEK),uT(a,_.ZA(Math.floor(Math.round((w-(new Date((new Date(w)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,I));case "z":return a=B||Rs(w.getTimezoneOffset()),I<4?a.tzNames_[j1L(a,w)>0?2:0]:a.tzNames_[j1L(a,w)>0?3:1];case "Z":return W=B||Rs(w.getTimezoneOffset()),I<4?(I=-Lh6(W,w),a=[I<0?"-":"+"],I=Math.abs(I),a.push(_.ZA(Math.floor(I/60)%100,2),_.ZA(I%60,2)),I=a.join("")):I=uT(a,noT(Lh6(W,w))),I;default:return""}};var bCy=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,s1T=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,KAH=function(a){this.patternParts_=[];this.JSC$9227_dateTimeSymbols_=Ay;if(typeof a=="number"){a>11&&(a=10);if(a<4)var W=this.JSC$9227_dateTimeSymbols_.DATEFORMATS[a];else a<8?W=this.JSC$9227_dateTimeSymbols_.TIMEFORMATS[a-4]:(W=this.JSC$9227_dateTimeSymbols_.DATETIMEFORMATS[a-8],W=W.replace("{1}",this.JSC$9227_dateTimeSymbols_.DATEFORMATS[a-8]),W=W.replace("{0}",this.JSC$9227_dateTimeSymbols_.TIMEFORMATS[a-
8]));uKL(this,W)}else uKL(this,a)},uKL=function(a,W){for(var w=!1,Z="",N=0;N<W.length;N++){var B=W.charAt(N);
if(bCy.test(B))for(Z.length>0&&(a.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1}),Z=""),a.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});N<W.length-1&&W.charAt(N+1)==" ";)N++;else if(w)B=="'"?N+1<W.length&&W.charAt(N+1)=="'"?(Z+="'",N++):w=!1:Z+=B;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(B)>=0){Z.length>0&&(a.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1}),Z="");for(var I=W.charAt(N),X=N+1;X<W.length&&W.charAt(X)==I;)X++;I=X-N;I<=0?X=!1:(X="MydhHmsSDkK".indexOf(B),
X=X>0||X==0&&I<3);a.patternParts_.push({text:B,count:I,abutStart:!1,numeric:X});N+=I-1}else B=="'"?N+1<W.length&&W.charAt(N+1)=="'"?(Z+="'",N++):w=!0:Z+=B}Z.length>0&&a.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1});W=!1;for(w=0;w<a.patternParts_.length;w++)a.patternParts_[w].numeric?!W&&w+1<a.patternParts_.length&&a.patternParts_[w+1].numeric&&(W=!0,a.patternParts_[w].abutStart=!0):W=!1};
KAH.prototype.parse=function(a,W,w){var Z=!1,N=!1;w&&(Z=w.predictive||!1,N=w.validate||!1);if(Z)for(w=0;w<this.patternParts_.length;w++){var B=this.patternParts_[w];if(B.count>0&&("abBhHkKm".indexOf(B.text.charAt(0))<0||B.count>2||B.abutStart))throw Error("Zd`"+B.text.charAt(0));}B=new ChE;w=[0];B.dayPeriodIndex=-1;for(var I=0;I<this.patternParts_.length&&!(Z&&w[0]>=a.length);I++){if(this.patternParts_[I].count==0){a:{var X=a;var v=w,U=this.patternParts_[I],O=Z;if(U.text.match(bCy)!=null){if(U=v[0],
GXV(X,v),v[0]>U){X=!0;break a}}else{if(X.indexOf(U.text,v[0])==v[0]){v[0]+=U.text.length;X=!0;break a}if(O&&U.text.indexOf(X.substring(v[0]))==0){v[0]+=X.length-v[0];X=!0;break a}}X=!1}if(X)continue;return 0}if(this.patternParts_[I].abutStart){a:{v=a;U=w;O=I;var S=U[0],T=0;for(X=O;X<this.patternParts_.length;X++){var p=this.patternParts_[X],h=p.count;if(h===0)break;if(X==O&&(h-=T,T++,h==0)){X=0;break a}var L=X>O&&p.numeric,F=U[0];if(!DjR(this,v,U,p,h,B,!1)||L&&U[0]-F<h)X=O-1,U[0]=S}X-=O}if(X<=0)return 0;
I+=X-1}else if(!DjR(this,a,w,this.patternParts_[I],0,B,Z))return 0}a:{a=N;if(W==null)throw Error("$d");B.era!=void 0&&B.year!=void 0&&B.era==0&&B.year>0&&(B.year=-(B.year-1));B.year!=void 0&&W.setFullYear(B.year);Z=W.getDate();W.setDate(1);B.month!=void 0&&W.setMonth(B.month);B.day!=void 0?W.setDate(B.day):(N=z17(W.getFullYear(),W.getMonth()),W.setDate(Z>N?N:Z));typeof W.setHours==="function"&&(B.hours==void 0&&(B.hours=W.getHours()),B.hours<12&&(B.ampm!=void 0&&B.ampm>0?B.hours+=12:B.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(B.dayPeriodName)||["night1","night2"].includes(B.dayPeriodName)&&B.hours>=6)&&(B.hours+=12)),W.setHours(B.hours));typeof W.setMinutes==="function"&&B.minutes!=void 0&&W.setMinutes(B.minutes);typeof W.setSeconds==="function"&&B.seconds!=void 0&&W.setSeconds(B.seconds);typeof W.setMilliseconds==="function"&&B.milliseconds!=void 0&&W.setMilliseconds(B.milliseconds);if(a&&(B.year&&B.year!=W.getFullYear()||B.month&&B.month!=
W.getMonth()||B.day&&B.day!=W.getDate()||B.hours&&B.hours>=24||B.minutes&&B.minutes>=60||B.seconds&&B.seconds>=60||B.milliseconds&&B.milliseconds>=1E3))W=!1;else{B.tzOffset!=void 0&&W.setTime(W.getTime()+(B.tzOffset-W.getTimezoneOffset())*60*1E3);B.ambiguousYear&&(a=new Date,a.setFullYear(a.getFullYear()-80),W.getTime()<a.getTime()&&W.setFullYear(a.getFullYear()+100));if(B.dayOfWeek!=void 0)if(B.day==void 0)B=(7+B.dayOfWeek-W.getDay())%7,B>3&&(B-=7),a=W.getMonth(),W.setDate(W.getDate()+B),W.getMonth()!=
a&&W.setDate(W.getDate()+(B>0?-7:7));else if(B.dayOfWeek!=W.getDay()){W=!1;break a}W=!0}}return W?w[0]:0};
var DjR=function(a,W,w,Z,N,B,I){GXV(W,w);if(Z.numeric&&N>0&&w[0]+N>W.length)return!1;switch(Z.text.charAt(0)){case "G":return Gp(W,w,[a.JSC$9227_dateTimeSymbols_.ERAS],function(X){return B.era=X}),!0;
case "M":case "L":return f3R(a,W,w,N,Z,B);case "E":return Gp(W,w,[a.JSC$9227_dateTimeSymbols_.WEEKDAYS,a.JSC$9227_dateTimeSymbols_.SHORTWEEKDAYS],function(X){return B.dayOfWeek=X});
case "B":case "b":return N=[],a=[[].concat(a.JSC$9227_dateTimeSymbols_.AMPMS)],N.push("isAm"),N.push("isPm"),W=Gp(W,w,a,function(X){return B.dayPeriodIndex=X},I),B.dayPeriodName=N[B.dayPeriodIndex],I?W:!0;
case "a":return W=Gp(W,w,[a.JSC$9227_dateTimeSymbols_.AMPMS],function(X){return B.ampm=X},I),I?W:!0;
case "y":return djT(a,W,w,Z,N,B);case "Q":return Gp(W,w,[a.JSC$9227_dateTimeSymbols_.QUARTERS,a.JSC$9227_dateTimeSymbols_.SHORTQUARTERS],function(X){B.month=X*3;B.day=1});
case "d":return Di(a,W,w,Z,N,function(X){B.day=X}),!0;
case "S":return mj6(a,W,w,N,B);case "h":case "K":case "H":case "k":return W=Di(a,W,w,Z,N,function(X){B.hours=Z.text.charAt(0)==="h"&&X===12?0:X},I),I?W:!0;
case "m":return W=Di(a,W,w,Z,N,function(X){B.minutes=X},I),I?W:!0;
case "s":return Di(a,W,w,Z,N,function(X){B.seconds=X}),!0;
case "z":case "Z":case "v":return VMA(a,W,w,B);default:return!1}},djT=function(a,W,w,Z,N,B){var I=w[0];
N=fU(a,W,w,N);N===null&&(N=fU(a,W,w,0,!0));if(N===null)return!1;N>=0&&w[0]-I==2&&Z.count==2?(a=N,W=(new Date).getFullYear()-80,w=W%100,B.ambiguousYear=a==w,a+=Math.floor(W/100)*100+(a<w?100:0),B.year=a):B.year=N;return!0},f3R=function(a,W,w,Z,N,B){return N.numeric&&Di(a,W,w,N,Z,function(I){B.month=I-1})?!0:Gp(W,w,[a.JSC$9227_dateTimeSymbols_.MONTHS,
a.JSC$9227_dateTimeSymbols_.STANDALONEMONTHS,a.JSC$9227_dateTimeSymbols_.SHORTMONTHS,a.JSC$9227_dateTimeSymbols_.STANDALONESHORTMONTHS],function(I){B.month=I})},mj6=function(a,W,w,Z,N){var B=w[0];
a=fU(a,W,w,Z);if(a===null)return!1;w=w[0]-B;N.milliseconds=w<3?a*Math.pow(10,3-w):Math.round(a/Math.pow(10,w-3));return!0},VMA=function(a,W,w,Z){W.indexOf("GMT",w[0])==w[0]&&(w[0]+=3);
if(w[0]>=W.length)return Z.tzOffset=0,!0;var N=w[0],B=fU(a,W,w,0,!0);if(B===null)return!1;if(w[0]<W.length&&W.charAt(w[0])==":"){var I=B*60;w[0]++;B=fU(a,W,w,0);if(B===null)return!1;I+=B}else I=B,I=I<24&&w[0]-N<=3?I*60:I%100+I/100*60;Z.tzOffset=-I;return!0},Di=function(a,W,w,Z,N,B,I){I=I||!1;
var X=w[0];a=fU(a,W,w,N);if(a===null)return!1;if(I&&w[0]-X<Z.count){if(w[0]<W.length)return!1;a*=Math.pow(10,Z.count-(w[0]-X))}B(a);return!0},Gp=function(a,W,w,Z,N){N=N||!1;
for(var B,I=0;I<w.length;I++){B=W;for(var X=w[I],v=N,U=0,O=null,S=a.substring(B[0]).toLowerCase(),T=0;T<X.length;T++){var p=X[T].toLowerCase();if(v&&p.indexOf(S)==0){U=S.length;O=T;break}X[T].length>U&&S.indexOf(p)==0&&(U=X[T].length,O=T)}O!==null&&(B[0]+=U);B=O;if(B!==null)return Z(B),!0}return!1},GXV=function(a,W){(a=a.substring(W[0]).match(s1T))&&(W[0]+=a[0].length)},fU=function(a,W,w,Z,N){W=Z>0?W.substring(0,w[0]+Z):W;
N=N||!1;if(a.JSC$9227_dateTimeSymbols_.ZERODIGIT){Z=[];for(var B=w[0];B<W.length;B++){var I=W.charCodeAt(B)-a.JSC$9227_dateTimeSymbols_.ZERODIGIT;Z.push(0<=I&&I<=9?String.fromCharCode(I+48):W.charAt(B))}W=Z.join("")}else W=W.substring(w[0]);a=W.match(new RegExp("^"+(N?"[+-]?":"")+"\\d+"));if(!a)return null;w[0]+=a[0].length;return parseInt(a[0],10)},ChE=function(){};
ChE.prototype.ambiguousYear=!1;_.z5R={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 HCR={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"},y7L=HCR,Eoy=HCR;Eoy=y7L=HCR;var WVT,dq,Vd,XqI,mj,aC_;
_.JG=function(a,W,w,Z){var N;if(N=W){a:if(W&&W.length===3){for(N=0;N<3;N++){var B=W[N];if(B<"A"||B>"Z"&&B<"a"||B>"z"){N=!1;break a}}N=!0}else N=!1;N=!N}if(N)throw new TypeError("ae");this.intlCurrencyCode_=W?W.toUpperCase():null;this.currencyStyle_=w||0;this.overrideNumberFormatSymbols_=Z||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_=dq(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:mj(this,dq(this).DECIMAL_PATTERN);break;case 2:mj(this,dq(this).SCIENTIFIC_PATTERN);break;case 3:mj(this,dq(this).PERCENT_PATTERN);break;case 4:a=dq(this).CURRENCY_PATTERN;W=["0"];if(w=
bT[Vd(this)]){w=w[0]&7;if(w>0)for(W.push("."),Z=0;Z<w;Z++)W.push("0");a=a.replace(/0.00/g,W.join(""))}mj(this,a);break;case 5:aC_(this,1);break;case 6:aC_(this,2);break;default:throw Error("de");}else mj(this,a)};
WVT=!1;dq=function(a){return a.overrideNumberFormatSymbols_||(WVT?Eoy:y7L)};
Vd=function(a){return a.intlCurrencyCode_||dq(a).DEF_CURRENCY_CODE};
XqI=function(a,W){if(W>308)throw Error("ce`"+W);a.maximumFractionDigits_=W;return a};
mj=function(a,W){var w=[0];a.positivePrefix_=wAy(a,W,w);for(var Z=w[0],N=-1,B=0,I=0,X=0,v=-1,U=W.length,O=!0;w[0]<U&&O;w[0]++)switch(W.charAt(w[0])){case "#":I>0?X++:B++;v>=0&&N<0&&v++;break;case "0":if(X>0)throw Error("je`"+W);I++;v>=0&&N<0&&v++;break;case ",":v>0&&a.groupingArray_.push(v);v=0;break;case ".":if(N>=0)throw Error("ke`"+W);N=B+I+X;break;case "E":if(a.useExponentialNotation_)throw Error("le`"+W);a.useExponentialNotation_=!0;a.minExponentDigits_=0;w[0]+1<U&&W.charAt(w[0]+1)=="+"&&(w[0]++,
a.useSignForPositiveExponent_=!0);for(;w[0]+1<U&&W.charAt(w[0]+1)=="0";)w[0]++,a.minExponentDigits_++;if(B+I<1||a.minExponentDigits_<1)throw Error("me`"+W);O=!1;break;default:w[0]--,O=!1}I==0&&B>0&&N>=0&&(I=N,I==0&&I++,X=B-I,B=I-1,I=1);if(N<0&&X>0||N>=0&&(N<B||N>B+I)||v==0)throw Error("ne`"+W);X=B+I+X;a.maximumFractionDigits_=N>=0?X-N:0;N>=0&&(a.minimumFractionDigits_=B+I-N,a.minimumFractionDigits_<0&&(a.minimumFractionDigits_=0));a.minimumIntegerDigits_=(N>=0?N:X)-B;a.useExponentialNotation_&&(a.maximumIntegerDigits_=
B+a.minimumIntegerDigits_,a.maximumFractionDigits_==0&&a.minimumIntegerDigits_==0&&(a.minimumIntegerDigits_=1));a.groupingArray_.push(Math.max(0,v));a.decimalSeparatorAlwaysShown_=N==0||N==X;Z=w[0]-Z;a.positiveSuffix_=wAy(a,W,w);w[0]<W.length&&W.charAt(w[0])==";"?(w[0]++,a.multiplier_!=1&&(a.negativePercentSignExpected_=!0),a.negativePrefix_=wAy(a,W,w),w[0]+=Z,a.negativeSuffix_=wAy(a,W,w)):(a.negativePrefix_+=a.positivePrefix_,a.negativeSuffix_+=a.positiveSuffix_)};
aC_=function(a,W){a.compactStyle_=W;mj(a,dq(a).DECIMAL_PATTERN);a.minimumFractionDigits_=0;XqI(a,2);if(a.minimumFractionDigits_>0)throw Error("be");a.significantDigits_=2};
_.JG.prototype.parse=function(a,W){W=W||[0];if(this.compactStyle_!==0)throw Error("ee");a=a.replace(/ |\u202f/g,"\u00a0");var w=a.indexOf(this.positivePrefix_,W[0])==W[0],Z=a.indexOf(this.negativePrefix_,W[0])==W[0];w&&Z&&(this.positivePrefix_.length>this.negativePrefix_.length?Z=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(w=!1));w?W[0]+=this.positivePrefix_.length:Z&&(W[0]+=this.negativePrefix_.length);if(a.indexOf(dq(this).INFINITY,W[0])==W[0]){W[0]+=dq(this).INFINITY.length;var N=
Infinity}else{N=a;var B=!1,I=!1,X=!1,v=-1,U=1,O=dq(this).DECIMAL_SEP,S=dq(this).GROUP_SEP,T=dq(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");S=S.replace(/\u202f/g,"\u00a0");for(var p="";W[0]<N.length;W[0]++){var h=N.charAt(W[0]),L=Zp6(this,h);if(L>=0&&L<=9)p+=L,X=!0;else if(h==O.charAt(0)){if(B||I)break;p+=".";B=!0}else if(h==S.charAt(0)&&("\u00a0"!=S.charAt(0)||W[0]+1<N.length&&Zp6(this,N.charAt(W[0]+1))>=0)){if(B||I)break}else if(h==T.charAt(0)){if(I)break;p+="E";I=!0;v=W[0]}else if(h==
"+"||h=="-"){if(X&&v!=W[0]-1)break;p+=h}else if(this.multiplier_==1&&h==dq(this).PERCENT.charAt(0)){if(U!=1)break;U=100;if(X){W[0]++;break}}else if(this.multiplier_==1&&h==dq(this).PERMILL.charAt(0)){if(U!=1)break;U=1E3;if(X){W[0]++;break}}else break}this.multiplier_!=1&&(U=this.multiplier_);N=parseFloat(p)/U}if(w){if(a.indexOf(this.positiveSuffix_,W[0])!=W[0])return NaN;W[0]+=this.positiveSuffix_.length}else if(Z){if(a.indexOf(this.negativeSuffix_,W[0])!=W[0])return NaN;W[0]+=this.negativeSuffix_.length}return Z?
-N:N};
_.JG.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(a))return dq(this).NAN;var W=[];var w=a;if(this.compactStyle_==0)w=zp;else{w=Math.abs(w);var Z=N$R(this,w<=1?0:tKH(w)).divisorBase;w=N$R(this,Z+tKH($tH(this,Hn(w,-Z)).intValue))}a=Hn(a,-w.divisorBase);(Z=a<0||a==0&&1/a<0)?w.negative_prefix?W.push(w.negative_prefix):(W.push(w.prefix),W.push(this.negativePrefix_)):(W.push(w.prefix),W.push(this.positivePrefix_));if(isFinite(a))if(a*=
Z?-1:1,a*=this.multiplier_,this.useExponentialNotation_){var N=a;if(N==0)B$A(this,N,this.minimumIntegerDigits_,W),lCV(this,0,W);else{var B=Math.floor(Math.log(N)/Math.log(10)+2E-15);N=Hn(N,-B);var I=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(I=B%this.maximumIntegerDigits_,I<0&&(I=this.maximumIntegerDigits_+I),N=Hn(N,I),B-=I,I=1):this.minimumIntegerDigits_<1?(B++,N=Hn(N,-1)):(B-=this.minimumIntegerDigits_-1,N=Hn(N,this.minimumIntegerDigits_-
1));B$A(this,N,I,W);lCV(this,B,W)}}else B$A(this,a,this.minimumIntegerDigits_,W);else W.push(dq(this).INFINITY);Z?w.negative_suffix?W.push(w.negative_suffix):(isFinite(a)&&W.push(w.suffix),W.push(this.negativeSuffix_)):(isFinite(a)&&W.push(w.suffix),W.push(this.positiveSuffix_));return W.join("")};
var $tH=function(a,W){var w=Hn(W,a.maximumFractionDigits_);a.significantDigits_>0&&(w=IC$(w,a.significantDigits_,a.maximumFractionDigits_));w=Math.round(w);if(isFinite(w)){var Z=Math.floor(Hn(w,-a.maximumFractionDigits_));w=Math.floor(w-Hn(Z,a.maximumFractionDigits_));if(w<0||w>=Hn(1,a.maximumFractionDigits_))Z=Math.round(W),w=0}else Z=W,w=0;return{intValue:Z,fracValue:w}},B$A=function(a,W,w,Z){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("ge");
Z||(Z=[]);W=$tH(a,W);var N=W.intValue,B=W.fracValue,I=a.minimumFractionDigits_>0||B>0||!1;W=a.minimumFractionDigits_;I&&(W=a.minimumFractionDigits_);for(var X="",v=N;v>1E20;)X="0"+X,v=Math.round(Hn(v,-1));X=v+X;var U=dq(a).DECIMAL_SEP;v=dq(a).ZERO_DIGIT.codePointAt(0);var O=X.length,S=0;if(N>0||w>0){for(N=O;N<w;N++)Z.push(String.fromCodePoint(v));if(a.groupingArray_.length>=2)for(w=1;w<a.groupingArray_.length;w++)S+=a.groupingArray_[w];w=O-S;if(w>0){N=a.groupingArray_;S=O=0;for(var T,p=dq(a).GROUP_SEP,
h=X.length,L=0;L<h;L++)if(Z.push(String.fromCodePoint(v+Number(X.charAt(L)))),h-L>1)if(T=N[S],L<w){var F=w-L;(T===1||T>0&&F%T===1)&&Z.push(p)}else S<N.length&&(L===w?S+=1:T===L-w-O+1&&(Z.push(p),O+=T,S+=1))}else{w=X;X=a.groupingArray_;N=dq(a).GROUP_SEP;T=w.length;p=[];for(O=X.length-1;O>=0&&T>0;O--){S=X[O];for(h=0;h<S&&T-h-1>=0;h++)p.push(String.fromCodePoint(v+Number(w.charAt(T-h-1))));T-=S;T>0&&p.push(N)}Z.push.apply(Z,p.reverse())}}else I||Z.push(String.fromCodePoint(v));(a.decimalSeparatorAlwaysShown_||
I)&&Z.push(U);B=String(B);I=B.split("e+");I.length==2&&(B=String(IC$(parseFloat(I[0]),a.significantDigits_,1)),B=B.replace(".",""),B+=(0,_.wlH)("0",parseInt(I[1],10)-B.length+1));a.maximumFractionDigits_+1>B.length&&(B="1"+(0,_.wlH)("0",a.maximumFractionDigits_-B.length)+B);for(a=B.length;B.charAt(a-1)=="0"&&a>W+1;)a--;for(W=1;W<a;W++)Z.push(String.fromCodePoint(v+Number(B.charAt(W))))},lCV=function(a,W,w){w.push(dq(a).EXP_SYMBOL);
W<0?(W=-W,w.push(dq(a).MINUS_SIGN)):a.useSignForPositiveExponent_&&w.push(dq(a).PLUS_SIGN);W=""+W;for(var Z=dq(a).ZERO_DIGIT,N=W.length;N<a.minExponentDigits_;N++)w.push(Z);a=Z.codePointAt(0)-PO6;for(Z=0;Z<W.length;Z++)w.push(String.fromCodePoint(a+W.codePointAt(Z)))},Zp6=function(a,W){W=W.codePointAt(0);
if(48<=W&&W<58)return W-48;a=dq(a).ZERO_DIGIT.codePointAt(0);return a<=W&&W<a+10?W-a:-1},PO6="0".codePointAt(0),wAy=function(a,W,w){for(var Z="",N=!1,B=W.length;w[0]<B;w[0]++){var I=W.charAt(w[0]);
if(I=="'")w[0]+1<B&&W.charAt(w[0]+1)=="'"?(w[0]++,Z+="'"):N=!N;else if(N)Z+=I;else switch(I){case "#":case "0":case ",":case ".":case ";":return Z;case "\u00a4":if(w[0]+1<B&&W.charAt(w[0]+1)=="\u00a4")w[0]++,Z+=Vd(a);else switch(a.currencyStyle_){case 0:I=Vd(a);Z+=I in bT?bT[I][1]:I;break;case 2:I=Vd(a);var X=bT[I];Z+=X?I==X[1]?I:I+" "+X[1]:I;break;case 1:I=Vd(a),Z+=I in bT?bT[I][2]:I}break;case "%":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("he");if(a.negativePercentSignExpected_&&
a.multiplier_!=100)throw Error("ie");a.multiplier_=100;a.negativePercentSignExpected_=!1;Z+=dq(a).PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("he");if(a.negativePercentSignExpected_&&a.multiplier_!=1E3)throw Error("ie");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;Z+=dq(a).PERMILL;break;default:Z+=I}}return Z},zp={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},N$R=function(a,W){a=a.compactStyle_==1?xi.COMPACT_DECIMAL_SHORT_PATTERN:xi.COMPACT_DECIMAL_LONG_PATTERN;a==null&&(a=xi.COMPACT_DECIMAL_SHORT_PATTERN);if(W<3)return zp;W=Math.min(14,W);var w=a[Hn(1,W)];for(--W;!w&&W>=3;)w=a[Hn(1,W)],W--;if(!w)return zp;w=w.other;var Z=a="",N=w.indexOf(";");N>=0&&(w=w.substring(0,N),N=w.substring(N+1))&&(Z=/([^0]*)(0+)(.*)/.exec(N),a=Z[1],Z=Z[3]);return w&&w!="0"?(w=/([^0]*)(0+)(.*)/.exec(w))?{divisorBase:W+
1-(w[2].length-1),negative_prefix:a,negative_suffix:Z,prefix:w[1],suffix:w[3]}:zp:zp},tKH=function(a){if(!isFinite(a))return a>0?a:0;
for(var W=0;(a/=10)>=1;)W++;return W},Hn=function(a,W){if(!a||!isFinite(a)||W==0)return a;
a=String(a).split("e");return parseFloat(a[0]+"e"+(parseInt(a[1]||0,10)+W))},XAH=function(a,W){return a&&isFinite(a)?Hn(Math.round(Hn(a,W)),-W):a},IC$=function(a,W,w){if(!a)return a;
W=W-tKH(a)-1;return W<-w?XAH(a,-w):XAH(a,W)};var vQe=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"},gQR=vQe;
gQR=vQe;var oQR;oQR=function(a,W){var w=a|0;if(void 0===W){W=Math;var Z=W.min,N=a+"",B=N.indexOf(".");W=Z.call(W,B===-1?0:N.length-B-1,3)}Z=Math.pow(10,W);a={v:W,f:(a*Z|0)%Z};return w==1&&a.v==0?"one":"other"};
_.xp=oQR;_.xp=oQR;var kDy,UtH,Opy,YNl,T$h;_.SNA=function(a){this.JSC$9270_pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=y7L;var W=xi;if(kDy!==a||UtH!==W)kDy=a,UtH=W,Opy=new _.JG(1);this.numberFormatter_=Opy};
kDy=null;UtH=null;Opy=null;YNl=RegExp("'([{}#].*?)'","g");T$h=RegExp("''","g");
_.SNA.prototype.format=function(a){if(this.JSC$9270_pattern_){this.initialLiterals_=[];var W=KV_(this,this.JSC$9270_pattern_);this.parsedPattern_=pA6(this,W);this.JSC$9270_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Wl(this.initialLiterals_),W=[],rtV(this,this.parsedPattern_,a,!1,W),a=W.join("");this.literals_.length>0;)a=a.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else a="";return a};
var rtV=function(a,W,w,Z,N){for(var B=0;B<W.length;B++)switch(W[B].type){case 4:N.push(W[B].value);break;case 3:var I=W[B].value;var X=a,v=N,U=w[I];U===void 0?v.push("Undefined parameter - "+I):(X.literals_.push(U),v.push(X.buildPlaceholder_(X.literals_)));break;case 2:I=W[B].value;X=a;v=w;U=Z;var O=N,S=I.argumentIndex;v[S]===void 0?O.push("Undefined parameter - "+S):(S=I[v[S]],S===void 0&&(S=I.other),rtV(X,S,v,U,O));break;case 0:I=W[B].value;AtH(a,I,w,_.xp,Z,N);break;case 1:I=W[B].value,AtH(a,I,
w,gQR,Z,N)}},AtH=function(a,W,w,Z,N,B){var I=W.argumentIndex,X=W.argumentOffset,v=+w[I];
isNaN(v)?B.push("Undefined or invalid parameter - "+I):(X=v-X,I=W[w[I]],I===void 0&&(Z=Z(Math.abs(X)),I=W[Z],I===void 0&&(I=W.other)),W=[],rtV(a,I,w,N,W),w=W.join(""),N?B.push(w):(a=a.numberFormatter_.format(X),B.push(w.replace(/#/g,a))))},KV_=function(a,W){var w=a.initialLiterals_,Z=a.buildPlaceholder_.bind(a);
W=W.replace(T$h,function(){w.push("'");return Z(w)});
return W=W.replace(YNl,function(N,B){w.push(B);return Z(w)})},hSE=function(a){var W=0,w=[],Z=[],N=/[{}]/g;
N.lastIndex=0;for(var B;B=N.exec(a);){var I=B.index;B[0]=="}"?(w.pop(),w.length==0&&(B={type:1},B.value=a.substring(W,I),Z.push(B),W=I+1)):(w.length==0&&(W=a.substring(W,I),W!=""&&Z.push({type:0,value:W}),W=I+1),w.push("{"))}a=a.substring(W);a!=""&&Z.push({type:0,value:a});return Z},ipT=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,ctl=/^\s*(\w+)\s*,\s*selectordinal\s*,/,eS_=/^\s*(\w+)\s*,\s*select\s*,/,pA6=function(a,W){var w=[];
W=hSE(W);for(var Z=0;Z<W.length;Z++){var N={};if(0==W[Z].type)N.type=4,N.value=W[Z].value;else if(1==W[Z].type){var B=W[Z].value;switch(ipT.test(B)?0:ctl.test(B)?1:eS_.test(B)?2:/^\s*\w+\s*/.test(B)?3:5){case 2:N.type=2;N.value=nQR(a,W[Z].value);break;case 0:N.type=0;N.value=j5y(a,W[Z].value);break;case 1:N.type=1;N.value=LV$(a,W[Z].value);break;case 3:N.type=3,N.value=W[Z].value}}w.push(N)}return w},nQR=function(a,W){var w="";
W=W.replace(eS_,function(X,v){w=v;return""});
var Z={};Z.argumentIndex=w;W=hSE(W);for(var N=0;N<W.length;){var B=W[N].value;N++;var I=void 0;1==W[N].type&&(I=pA6(a,W[N].value));Z[B.replace(/\s/g,"")]=I;N++}return Z},j5y=function(a,W){var w="",Z=0;
W=W.replace(ipT,function(v,U,O){w=U;O&&(Z=parseInt(O,10));return""});
var N={};N.argumentIndex=w;N.argumentOffset=Z;W=hSE(W);for(var B=0;B<W.length;){var I=W[B].value;B++;var X=void 0;1==W[B].type&&(X=pA6(a,W[B].value));N[I.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=X;B++}return N},LV$=function(a,W){var w="";
W=W.replace(ctl,function(X,v){w=v;return""});
var Z={};Z.argumentIndex=w;Z.argumentOffset=0;W=hSE(W);for(var N=0;N<W.length;){var B=W[N].value;N++;var I=void 0;1==W[N].type&&(I=pA6(a,W[N].value));Z[B.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=I;N++}return Z};
_.SNA.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};var Jt_;
Jt_={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 OBe=function(){this.rdtfSymbols_=FVV||Jt_;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
OBe.prototype.format=function(a,W){a:{W=MK_(this,W);switch(this.style_){case 2:if(W.NARROW!=void 0){W=W.NARROW;break a}case 1:if(W.SHORT!=void 0){W=W.SHORT;break a}default:W=W.LONG;break a}W=void 0}if(!this.alwaysNumeric_&&W&&W.R&&W.R[""+a])a=W.R[""+a];else if(W){var w=Math.abs(a);a=(new _.SNA("{N,plural,"+(a>0||a==0&&1/a==Infinity?W.F:W.P)+"}")).format({N:w})}else a="";return a};
var MK_=function(a,W){switch(W){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 RSe=function(a,W,w,Z,N,B,I,X){this.x0=a;this.y0=W;this.x1=w;this.y1=Z;this.x2=N;this.y2=B;this.x3=I;this.y3=X};
RSe.prototype.clone=function(){return new RSe(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
RSe.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 qNl=function(a,W){if(W==0)return a.x0;if(W==1)return a.x3;var w=pI(a.x0,a.x1,W),Z=pI(a.x1,a.x2,W);a=pI(a.x2,a.x3,W);w=pI(w,Z,W);Z=pI(Z,a,W);return pI(w,Z,W)},Q5T=function(a,W){var w=(W-a.x0)/(a.x3-a.x0);
if(w<=0)return 0;if(w>=1)return 1;for(var Z=0,N=1,B=0,I=0;I<8;I++){B=qNl(a,w);var X=(qNl(a,w+1E-6)-B)/1E-6;if(Math.abs(B-W)<1E-6)return w;if(Math.abs(X)<1E-6)break;else B<W?Z=w:N=w,w-=(B-W)/X}for(I=0;Math.abs(B-W)>1E-6&&I<8;I++)B<W?(Z=w,w=(w+N)/2):(N=w,w=(w+Z)/2),B=qNl(a,w);return w};var yd=function(){_.Ti.call(this);this.JSC$9291_name_="closure_frame"+xtH++;this.iframesForDisposal_=[];bpH[this.JSC$9291_name_]=this},E5;
_.NT(yd,_.Ti);var bpH={},xtH=0,s5V=function(a,W){var w=Ph(a);_.Nj6(W,function(Z,N){Array.isArray(Z)||(Z=[Z]);_.x6(Z,function(B){B=w.JSC$7235_createDom("INPUT",{type:"hidden",name:N,value:B});a.appendChild(B)})})};
_.t=yd.prototype;_.t.JSC$9293_form_=null;_.t.JSC$9293_iframe_=null;_.t.iframeName_=null;_.t.nextIframeId_=0;_.t.JSC$9293_active_=!1;_.t.complete_=!1;_.t.success_=!1;_.t.lastContent_=null;_.t.JSC$9293_lastErrorCode_=0;_.t.iframeDisposalTimer_=null;
_.t.send=function(a,W,w,Z){if(this.JSC$9293_active_)throw Error("oe");a=new _.CS(a);W=W?W.toUpperCase():"GET";w&&_.$$(a);E5||(E5=_.iE("FORM"),E5.acceptCharset="utf-8",w=E5.style,w.position="absolute",w.visibility="hidden",w.top=w.left="-10px",w.width=w.height="10px",w.overflow="hidden",document.body.appendChild(E5));this.JSC$9293_form_=E5;W=="GET"&&s5V(this.JSC$9293_form_,a.JSC$7940_queryData_);Z&&s5V(this.JSC$9293_form_,Z);w=a.toString();w=tme(w);Z=this.JSC$9293_form_;w=_.r5(vP(w));w!==void 0&&(Z.action=
w);this.JSC$9293_form_.method=W;uMl(this);CO_(this)};
_.t.abort=function(a){if(this.JSC$9293_active_){var W=aA(this);if(W)if(Ol(W))W.removeAllListeners(void 0);else if(W=SX(W)){var w=0,Z;for(Z in W.listeners)for(var N=W.listeners[Z].concat(),B=0;B<N.length;++B)Id(N[B])&&++w}this.success_=this.JSC$9293_active_=this.complete_=!1;this.JSC$9293_lastErrorCode_=a||7;this.dispatchEvent("abort");GDh(this)}};
_.t.disposeInternal=function(){this.JSC$9293_active_&&this.abort();yd.superClass_.disposeInternal.call(this);this.JSC$9293_iframe_&&Dte(this);CO_(this);this.JSC$9293_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9293_form_=null;this.JSC$9293_lastErrorCode_=0;delete bpH[this.JSC$9291_name_]};
_.t.isComplete=function(){return this.complete_};
_.t.isSuccess=function(){return this.success_};
_.t.isActive=function(){return this.JSC$9293_active_};
_.t.getResponseText=function(){return this.lastContent_};
_.t.getLastError=function(){return _.RsA(this.JSC$9293_lastErrorCode_)};
var uMl=function(a){a.JSC$9293_active_=!0;a.complete_=!1;a.JSC$9293_lastErrorCode_=0;a.iframeName_=a.JSC$9291_name_+"_"+(a.nextIframeId_++).toString(36);a.JSC$9293_iframe_=Ph(a.JSC$9293_form_).JSC$7235_createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});var W=a.JSC$9293_iframe_.style;W.visibility="hidden";W.width=W.height="10px";W.display="none";_.Pz?W.marginTop=W.marginLeft="-10px":(W.position="absolute",W.top=W.left="-10px");Ph(a.JSC$9293_form_).JSC$7233_document_.body.appendChild(a.JSC$9293_iframe_);
W=a.iframeName_+"_inner";var w=AzJ(a.JSC$9293_iframe_);if(document.baseURI){var Z=aL(W);Z='<head><base href="'+aL(document.baseURI)+'"></head><body><iframe id="'+Z+'" name="'+Z+'"></iframe>';Z=cP(Z)}else Z=aL(W),Z=cP('<body><iframe id="'+Z+'" name="'+Z+'"></iframe>');w.write(eB(Z));_.vX(w.getElementById(W),"load",a.onIframeLoaded_,!1,a);Z=gh("TEXTAREA",a.JSC$9293_form_);for(var N=0,B=Z.length;N<B;N++){var I=Z[N].value;jE6(Z[N])!=I&&(_.FD(Z[N],I),Z[N].value=I)}Z=w.importNode(a.JSC$9293_form_,!0);Z.target=
W;Z.action=a.JSC$9293_form_.action;w.body.appendChild(Z);N=gh("SELECT",a.JSC$9293_form_);B=gh("SELECT",Z);I=0;for(var X=N.length;I<X;I++)for(var v=gh("OPTION",N[I]),U=gh("OPTION",B[I]),O=0,S=v.length;O<S;O++)U[O].selected=v[O].selected;N=gh("INPUT",a.JSC$9293_form_);B=gh("INPUT",Z);I=0;for(X=N.length;I<X;I++)if(N[I].type=="file"&&N[I].value!=B[I].value){a.JSC$9293_form_.target=W;Z=a.JSC$9293_form_;break}try{a.errorHandled_=!1,Z.submit(),w.close(),_.IY&&setTimeout(a.testForFirefoxSilentError_.bind(a),
250)}catch(T){_.YO(w.getElementById(W),"load",a.onIframeLoaded_,!1,a),w.close(),WT(a,2)}};
yd.prototype.onIframeLoaded_=function(){_.YO(aA(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.JSC$9293_iframe_?AzJ(aA(this)):null;this.complete_=!0;this.JSC$9293_active_=!1;try{var W=a.body;this.lastContent_=W.textContent||W.innerText}catch(N){var w=1}var Z;w||typeof this.errorChecker_!="function"||(Z=this.errorChecker_(a))&&(w=4);w?WT(this,w):(this.success_=!0,this.JSC$9293_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),GDh(this))}catch(N){WT(this,1)}};
var WT=function(a,W){a.errorHandled_||(a.success_=!1,a.JSC$9293_active_=!1,a.complete_=!0,a.JSC$9293_lastErrorCode_=W,a.dispatchEvent("complete"),a.dispatchEvent("error"),GDh(a),a.errorHandled_=!0)},GDh=function(a){Dte(a);
CO_(a);a.JSC$9293_form_=null;a.dispatchEvent("ready")},Dte=function(a){var W=a.JSC$9293_iframe_;
W&&(W.onreadystatechange=null,W.onload=null,W.onerror=null,a.iframesForDisposal_.push(W));a.iframeDisposalTimer_&&(clearTimeout(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);_.IY?a.iframeDisposalTimer_=setTimeout(a.disposeIframes_.bind(a),2E3):a.disposeIframes_();a.JSC$9293_iframe_=null;a.iframeName_=null};
yd.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var a=this.iframesForDisposal_.pop();_.Xh(a)}};
var CO_=function(a){a.JSC$9293_form_&&a.JSC$9293_form_==E5&&_.nI(a.JSC$9293_form_)},aA=function(a){return a.JSC$9293_iframe_?AzJ(a.JSC$9293_iframe_).getElementById(a.iframeName_+"_inner"):null};
yd.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9293_active_){var a=this.JSC$9293_iframe_?AzJ(aA(this)):null;a&&!e3(a,"documentUri")?(_.YO(aA(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?WT(this,3):WT(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.wl=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};var fCR;_.Zj=function(a){this.errorMessage_=null;this.result_=[];this.JSC$9295_buffer_="";this.stack_=[];this.JSC$9295_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!a||!a.deliverMessageAsRawString)};
fCR={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};_.Zj.prototype.isInputValid=function(){return this.streamState_!=3};
_.Zj.prototype.done=function(){return this.streamState_===2};
var N7=function(a,W,w){a.streamState_=3;a.errorMessage_="The stream is broken @"+a.JSC$9295_pos_+"/"+w+". With input:\n"+W;throw Error(a.errorMessage_);};
_.Zj.prototype.acceptsBinaryInput=function(){return!1};
_.Zj.prototype.parse=function(a){function W(){for(;T<a.length;)if(_.wl(a[T]))T++,B.JSC$9295_pos_++;else break;return T<U}
function w(){for(var h;;){h=a[T++];if(!h)break;B.JSC$9295_pos_++;switch(B.state_){case v.INIT:h==="{"?B.state_=v.OBJECT_OPEN:h==="["?B.state_=v.ARRAY_OPEN:_.wl(h)||N7(B,a,T);continue;case v.KEY_START:case v.OBJECT_OPEN:if(_.wl(h))continue;if(B.state_===v.KEY_START)I.push(v.KEY_END);else if(h==="}"){N("{}");B.state_=Z();continue}else I.push(v.OBJECT_END);h==='"'?B.state_=v.STRING:N7(B,a,T);continue;case v.KEY_END:case v.OBJECT_END:if(_.wl(h))continue;h===":"?(B.state_===v.OBJECT_END&&(I.push(v.OBJECT_END),
B.depth_++),B.state_=v.VALUE):h==="}"?(B.depth_--,N(),B.state_=Z()):h===","?(B.state_===v.OBJECT_END&&I.push(v.OBJECT_END),B.state_=v.KEY_START):N7(B,a,T);continue;case v.ARRAY_OPEN:case v.VALUE:if(_.wl(h))continue;if(B.state_===v.ARRAY_OPEN)if(B.depth_++,B.state_=v.VALUE,h==="]"){B.depth_--;if(B.depth_===0){B.state_=v.ARRAY_END;return}N("[]");B.state_=Z();continue}else I.push(v.ARRAY_END);h==='"'?B.state_=v.STRING:h==="{"?B.state_=v.OBJECT_OPEN:h==="["?B.state_=v.ARRAY_OPEN:h==="t"?B.state_=v.TRUE1:
h==="f"?B.state_=v.FALSE1:h==="n"?B.state_=v.NULL1:h!=="-"&&("0123456789".indexOf(h)!==-1?B.state_=v.NUM_DIGIT:N7(B,a,T));continue;case v.ARRAY_END:if(h===",")I.push(v.ARRAY_END),B.state_=v.VALUE,B.depth_===1&&(S=T);else if(h==="]"){B.depth_--;if(B.depth_===0)return;N();B.state_=Z()}else if(_.wl(h))continue;else N7(B,a,T);continue;case v.STRING:var L=T;a:for(;;){for(;B.unicodeCount_>0;)if(h=a[T++],B.unicodeCount_===4?B.unicodeCount_=0:B.unicodeCount_++,!h)break a;if(h==='"'&&!B.slashed_){B.state_=
Z();break}if(h==="\\"&&!B.slashed_&&(B.slashed_=!0,h=a[T++],!h))break;if(B.slashed_)if(B.slashed_=!1,h==="u"&&(B.unicodeCount_=1),h=a[T++])continue;else break;X.lastIndex=T;h=X.exec(a);if(!h){T=a.length+1;break}T=h.index+1;h=a[h.index];if(!h)break}B.JSC$9295_pos_+=T-L;continue;case v.TRUE1:if(!h)continue;h==="r"?B.state_=v.TRUE2:N7(B,a,T);continue;case v.TRUE2:if(!h)continue;h==="u"?B.state_=v.TRUE3:N7(B,a,T);continue;case v.TRUE3:if(!h)continue;h==="e"?B.state_=Z():N7(B,a,T);continue;case v.FALSE1:if(!h)continue;
h==="a"?B.state_=v.FALSE2:N7(B,a,T);continue;case v.FALSE2:if(!h)continue;h==="l"?B.state_=v.FALSE3:N7(B,a,T);continue;case v.FALSE3:if(!h)continue;h==="s"?B.state_=v.FALSE4:N7(B,a,T);continue;case v.FALSE4:if(!h)continue;h==="e"?B.state_=Z():N7(B,a,T);continue;case v.NULL1:if(!h)continue;h==="u"?B.state_=v.NULL2:N7(B,a,T);continue;case v.NULL2:if(!h)continue;h==="l"?B.state_=v.NULL3:N7(B,a,T);continue;case v.NULL3:if(!h)continue;h==="l"?B.state_=Z():N7(B,a,T);continue;case v.NUM_DECIMAL_POINT:h===
"."?B.state_=v.NUM_DIGIT:N7(B,a,T);continue;case v.NUM_DIGIT:if("0123456789.eE+-".indexOf(h)!==-1)continue;else T--,B.JSC$9295_pos_--,B.state_=Z();continue;default:N7(B,a,T)}}}
function Z(){var h=I.pop();return h!=null?h:v.VALUE}
function N(h){B.depth_>1||(h||(h=S===-1?B.JSC$9295_buffer_+a.substring(O,T):a.substring(S,T)),B.deliverMessageAsRawString_?B.result_.push(h):B.result_.push(JSON.parse(h)),S=T)}
for(var B=this,I=B.stack_,X=B.stringInputPattern_,v=fCR,U=a.length,O=0,S=-1,T=0;T<U;)switch(B.streamState_){case 3:return N7(B,a,T),null;case 2:return W()&&N7(B,a,T),null;case 0:if(W()){var p=a[T++];B.JSC$9295_pos_++;if(p==="["){B.streamState_=1;O=T;B.state_=v.ARRAY_OPEN;continue}else N7(B,a,T)}return null;case 1:return w(),B.depth_===0&&B.state_==v.ARRAY_END?(B.streamState_=2,B.JSC$9295_buffer_=a.substring(T)):B.JSC$9295_buffer_=S===-1?B.JSC$9295_buffer_+a.substring(O):a.substring(S),B.result_.length>
0?(p=B.result_,B.result_=[],p):null}return null};_.NT(_.wQ,Sg);ZG.prototype.getValue=function(){return this.JSC$9303_value_};
ZG.prototype.clone=function(){return new ZG(this.JSC$9303_key_,this.JSC$9303_value_)};var tM=function(a){this.nodes_=[];if(a)a:{if(a instanceof tM){var W=a.getKeys();a=a.getValues();if(this.getCount()<=0){for(var w=this.nodes_,Z=0;Z<W.length;Z++)w.push(new ZG(W[Z],a[Z]));break a}}else W=_.T5.getKeys(a),a=_.T5.getValues(a);for(w=0;w<W.length;w++)this.insert(W[w],a[w])}};
_.t=tM.prototype;_.t.insert=function(a,W){var w=this.nodes_;w.push(new ZG(a,W));a=w.length-1;W=this.nodes_;for(w=W[a];a>0;){var Z=a-1>>1;if(W[Z].JSC$9303_key_>w.JSC$9303_key_)W[a]=W[Z],a=Z;else break}W[a]=w};
_.t.remove=function(){var a=this.nodes_,W=a.length,w=a[0];if(!(W<=0)){if(W==1)a.length=0;else{a[0]=a.pop();a=0;W=this.nodes_;for(var Z=W.length,N=W[a];a<Z>>1;){var B=a*2+1,I=a*2+2;B=I<Z&&W[I].JSC$9303_key_<W[B].JSC$9303_key_?I:B;if(W[B].JSC$9303_key_>N.JSC$9303_key_)break;W[a]=W[B];a=B}W[a]=N}return w.getValue()}};
_.t.peek=function(){var a=this.nodes_;if(a.length!=0)return a[0].getValue()};
_.t.getValues=function(){for(var a=this.nodes_,W=[],w=a.length,Z=0;Z<w;Z++)W.push(a[Z].getValue());return W};
_.t.getKeys=function(){for(var a=this.nodes_,W=[],w=a.length,Z=0;Z<w;Z++)W.push(a[Z].JSC$9303_key_);return W};
_.t.containsValue=function(a){return this.nodes_.some(function(W){return W.getValue()==a})};
_.t.containsKey=function(a){return this.nodes_.some(function(W){return W.JSC$9303_key_==a})};
_.t.clone=function(){return new tM(this)};
_.t.getCount=function(){return this.nodes_.length};
_.t.isEmpty=function(){return this.nodes_.length===0};
_.t.clear=function(){this.nodes_.length=0};_.$S=function(a,W){this.JSC$9309_map_={};this.JSC$9309_keys_=[];this.version_=this.size=0;var w=arguments.length;if(w>1){if(w%2)throw Error("oa");for(var Z=0;Z<w;Z+=2)this.set(arguments[Z],arguments[Z+1])}else a&&this.addAll(a)};
_.t=_.$S.prototype;_.t.getCount=function(){return this.size};
_.t.getValues=function(){BT(this);for(var a=[],W=0;W<this.JSC$9309_keys_.length;W++)a.push(this.JSC$9309_map_[this.JSC$9309_keys_[W]]);return a};
_.t.getKeys=function(){BT(this);return this.JSC$9309_keys_.concat()};
_.t.containsKey=function(a){return this.has(a)};
_.t.has=function(a){return l3(this.JSC$9309_map_,a)};
_.t.containsValue=function(a){for(var W=0;W<this.JSC$9309_keys_.length;W++){var w=this.JSC$9309_keys_[W];if(l3(this.JSC$9309_map_,w)&&this.JSC$9309_map_[w]==a)return!0}return!1};
_.t.equals=function(a,W){if(this===a)return!0;if(this.size!=a.getCount())return!1;W=W||dtE;BT(this);for(var w,Z=0;w=this.JSC$9309_keys_[Z];Z++)if(!W(this.get(w),a.get(w)))return!1;return!0};
var dtE=function(a,W){return a===W};
_.$S.prototype.isEmpty=function(){return this.size==0};
_.$S.prototype.clear=function(){this.JSC$9309_map_={};this.version_=this.size=this.JSC$9309_keys_.length=0};
_.$S.prototype.remove=function(a){return this.delete(a)};
_.$S.prototype.delete=function(a){return l3(this.JSC$9309_map_,a)?(delete this.JSC$9309_map_[a],--this.size,this.version_++,this.JSC$9309_keys_.length>2*this.size&&BT(this),!0):!1};
var BT=function(a){if(a.size!=a.JSC$9309_keys_.length){for(var W=0,w=0;W<a.JSC$9309_keys_.length;){var Z=a.JSC$9309_keys_[W];l3(a.JSC$9309_map_,Z)&&(a.JSC$9309_keys_[w++]=Z);W++}a.JSC$9309_keys_.length=w}if(a.size!=a.JSC$9309_keys_.length){W={};for(Z=w=0;w<a.JSC$9309_keys_.length;){var N=a.JSC$9309_keys_[w];l3(W,N)||(a.JSC$9309_keys_[Z++]=N,W[N]=1);w++}a.JSC$9309_keys_.length=Z}};
_.t=_.$S.prototype;_.t.get=function(a,W){return l3(this.JSC$9309_map_,a)?this.JSC$9309_map_[a]:W};
_.t.set=function(a,W){l3(this.JSC$9309_map_,a)||(this.size+=1,this.JSC$9309_keys_.push(a),this.version_++);this.JSC$9309_map_[a]=W};
_.t.addAll=function(a){if(a instanceof _.$S)for(var W=a.getKeys(),w=0;w<W.length;w++)this.set(W[w],a.get(W[w]));else for(W in a)this.set(W,a[W])};
_.t.forEach=function(a,W){for(var w=this.getKeys(),Z=0;Z<w.length;Z++){var N=w[Z],B=this.get(N);a.call(W,B,N,this)}};
_.t.clone=function(){return new _.$S(this)};
_.t.transpose=function(){for(var a=new _.$S,W=0;W<this.JSC$9309_keys_.length;W++){var w=this.JSC$9309_keys_[W];a.set(this.JSC$9309_map_[w],w)}return a};
_.t.keys=function(){return TtL(this.__iterator__(!0)).toEs6()};
_.t.values=function(){return TtL(this.__iterator__(!1)).toEs6()};
_.t.entries=function(){var a=this;return FO6(this.keys(),function(W){return[W,a.get(W)]})};
_.t.__iterator__=function(a){BT(this);var W=0,w=this.version_,Z=this,N=new NK;N.next=function(){if(w!=Z.version_)throw Error("pe");if(W>=Z.JSC$9309_keys_.length)return t2;var B=Z.JSC$9309_keys_[W++];return $K(a?B:Z.JSC$9309_map_[B])};
return N};
var l3=function(a,W){return Object.prototype.hasOwnProperty.call(a,W)};var VKT=function(){this.JSC$9312_map_=new _.$S;this.JSC$9312_head_=new mtA("");this.JSC$9312_head_.next=this.JSC$9312_head_.prev=this.JSC$9312_head_},zSR=function(a,W){if(W=a.JSC$9312_map_.get(W))W.remove(),a.insert_(W);
return W};
_.t=VKT.prototype;_.t.get=function(a,W){return(a=zSR(this,a))?a.value:W};
_.t.set=function(a,W){var w=zSR(this,a);w?w.value=W:(w=new mtA(a,W),this.JSC$9312_map_.set(a,w),this.insert_(w))};
_.t.peek=function(){return this.JSC$9312_head_.next.value};
_.t.shift=function(){return HpL(this,this.JSC$9312_head_.next)};
_.t.pop=function(){return HpL(this,this.JSC$9312_head_.prev)};
_.t.remove=function(a){return(a=this.JSC$9312_map_.get(a))?(this.removeNode(a),!0):!1};
_.t.removeNode=function(a){a.remove();this.JSC$9312_map_.remove(a.key)};
_.t.getCount=function(){return this.JSC$9312_map_.getCount()};
_.t.isEmpty=function(){return this.JSC$9312_map_.isEmpty()};
_.t.getKeys=function(){return this.map(function(a,W){return W})};
_.t.getValues=function(){return this.map(function(a){return a})};
_.t.contains=function(a){return this.some(function(W){return W==a})};
_.t.containsKey=function(a){return this.JSC$9312_map_.containsKey(a)};
_.t.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9312_head_.prev)};
_.t.forEach=function(a,W){for(var w=this.JSC$9312_head_.next;w!=this.JSC$9312_head_;w=w.next)a.call(W,w.value,w.key,this)};
_.t.map=function(a,W){for(var w=[],Z=this.JSC$9312_head_.next;Z!=this.JSC$9312_head_;Z=Z.next)w.push(a.call(W,Z.value,Z.key,this));return w};
_.t.some=function(a,W){for(var w=this.JSC$9312_head_.next;w!=this.JSC$9312_head_;w=w.next)if(a.call(W,w.value,w.key,this))return!0;return!1};
_.t.every=function(a,W){for(var w=this.JSC$9312_head_.next;w!=this.JSC$9312_head_;w=w.next)if(!a.call(W,w.value,w.key,this))return!1;return!0};
_.t.insert_=function(a){a.next=this.JSC$9312_head_.next;a.prev=this.JSC$9312_head_;this.JSC$9312_head_.next=a;for(a.next.prev=a;this.getCount()>40;)this.removeNode(this.JSC$9312_head_.prev)};
var HpL=function(a,W){a.JSC$9312_head_!=W&&a.removeNode(W);return W.value},mtA=function(a,W){this.key=a;
this.value=W};
mtA.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var yt$=function(){tM.apply(this,arguments)};
_.c(yt$,tM);yt$.prototype.enqueue=function(a,W){this.insert(a,W)};var EQH=function(){var a=Error();a.name="SecurityError";throw a;},Fue=function(){return{get opener(){return null},
get closed(){return!0},get location(){EQH()},get document(){EQH()},postMessage:function(){},
close:function(){},
focus:function(){}}};var D9S={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 m9e={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 agR={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(m9e).join("|");var WY$=function(){function a(X){X.substr(-1)!==";"&&(X+=";");return I(X)}
for(var W=Object.keys(agR).sort(d97),w=Object.keys(m9e).sort(d97),Z=0,N=0;Z<w.length;Z++)W[N]===w[Z]?(w[Z]+=";?",N++):w[Z]+=";";var B=new RegExp("&(?:"+w.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),I=Vae();return function(X){return String(X).replace(B,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 wXH={};var Ztl=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"),NJL=/[\\&]/,tx_=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),$w_=RegExp('[&<>"]',"g"),BJ6=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),lgh=function(a){return a.charCodeAt(0)===92?a.charAt(1):WY$(a)},IgE=function(a){return NJL.test(a)?a.replace(tx_,lgh):a},PxJ=function(a){try{var W,w="";
if(typeof N!=="string"){var Z=N;var N=";/?:@&=+$,-_.!~*'()#"}typeof Z==="undefined"&&(Z=!0);var B,I=wXH[N];if(I)var X=I;else{I=wXH[N]=[];for(B=0;B<128;B++){var v=String.fromCharCode(B);/^[0-9a-z]$/i.test(v)?I.push(v):I.push("%"+("0"+B.toString(16).toUpperCase()).slice(-2))}for(B=0;B<N.length;B++)I[N.charCodeAt(B)]=N[B];X=I}var U=0;for(W=a.length;U<W;U++){var O=a.charCodeAt(U);if(Z&&O===37&&U+2<W&&/^[0-9a-f]{2}$/i.test(a.slice(U+1,U+3)))w+=a.slice(U,U+3),U+=2;else if(O<128)w+=X[O];else if(O>=55296&&
O<=57343){if(O>=55296&&O<=56319&&U+1<W){var S=a.charCodeAt(U+1);if(S>=56320&&S<=57343){w+=encodeURIComponent(a[U]+a[U+1]);U++;continue}}w+="%EF%BF%BD"}else w+=encodeURIComponent(a[U])}return w}catch(T){return a}},XX$=function(a){switch(a){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return a}},IA=function(a,W){return $w_.test(a)?W?a.replace(BJ6,XX$):a.replace($w_,XX$):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 PT;if(String.fromCodePoint)PT=function(a){try{return String.fromCodePoint(a)}catch(W){if(W instanceof RangeError)return String.fromCharCode(65533);throw W;}};
else{var vJe=String.fromCharCode,gJE=Math.floor;PT=function(){var a=[],W=-1,w=arguments.length;if(!w)return"";for(var Z="";++W<w;){var N=Number(arguments[W]);if(!isFinite(N)||N<0||N>1114111||gJE(N)!==N)return String.fromCharCode(65533);if(N<=65535)a.push(N);else{N-=65536;var B=(N>>10)+55296;N=N%1024+56320;a.push(B,N)}if(W+1===w||a.length>16384)Z+=vJe.apply(null,a),a.length=0}return Z}};var oJV=function(a){this.root=this.current=a;this.entering=!0};
oJV.prototype.next=function(){var a=this.current,W=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 w=!0;break a;default:w=!1}W&&w?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:W,node:a}};
var BG=function(a,W){this._type=a;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=W;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};
BG.prototype.appendChild=function(a){Xc(a);a._parent=this;this._lastChild?(this._lastChild._next=a,a._prev=this._lastChild):this._firstChild=a;this._lastChild=a};
var Xc=function(a){a._prev?a._prev._next=a._next:a._parent&&(a._parent._firstChild=a._next);a._next?a._next._prev=a._prev:a._parent&&(a._parent._lastChild=a._prev);a._parent=null;a._next=null;a._prev=null},k$h=function(a,W){Xc(W);
W._next=a._next;W._next&&(W._next._prev=W);W._prev=a;a._next=W;W._parent=a._parent;W._next||(W._parent._lastChild=W)};
BG.prototype.insertBefore=function(a){Xc(a);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)};
_.dU.Object.defineProperties(BG.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 zhm=/[ \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,
H47={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 Uwh=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]/),
Oty=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),S8y=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),Y8R=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),TJh=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),KYA=/`+/,pXT=/^`+/,rQV=/\.\.\./g,AQL=/--+/g,hIA=/^<([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])?)*)>/,
itA=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,cQ$=/^ *(?:\n *)?/,eI6=/^[ \t\n\x0b\x0c\x0d]/,nJL=/[ \t\n\x0b\x0c\x0d]+/g,jdA=/^\s/,LYR=/ *$/,JQE=/^ */,FYe=/^ *(?:\n|$)/,MxJ=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),RIH=/^[^\n`\[\]\\!<&*_'"]+/m,vT=function(a){var W=new BG("text");W._literal=a;return W},gl=function(a){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=a||{}};
gl.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]};
gl.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var oA=function(a){a.match(cQ$);return!0},q8e=function(a,W,w){var Z=0;
var N=a.pos;if(W===39||W===34)Z++,a.pos++;else for(;a.peek()===W;)Z++,a.pos++;if(Z===0)Z=null;else{var B=N===0?"\n":a.subject.charAt(N-1);var I=a.peek();I=I===-1?"\n":PT(I);var X=jdA.test(I);I=Uwh.test(I);var v=jdA.test(B);var U=Uwh.test(B);B=!X&&!(I&&!v&&!U);X=!v&&!(U&&!X&&!I);W===95?(v=B&&(!X||U),I=X&&(!B||I)):(v=W===39||W===34?B&&!X:B,I=X);a.pos=N;Z={numdelims:Z,can_open:v,can_close:I}}if(!Z)return!1;N=Z.numdelims;I=a.pos;a.pos+=N;I=W===39?"\u2019":W===34?"\u201c":a.subject.slice(I,a.pos);I=vT(I);
w.appendChild(I);a.delimiters={cc:W,numdelims:N,origdelims:N,node:I,previous:a.delimiters,next:null,can_open:Z.can_open,can_close:Z.can_close};a.delimiters.previous!==null&&(a.delimiters.previous.next=a.delimiters);return!0},QdJ=function(a,W){W.previous!==null&&(W.previous.next=W.next);
W.next===null?a.delimiters=W.previous:W.next.previous=W.previous},xwR=function(a,W){var w,Z,N=[],B=!1;
N[95]=W;N[42]=W;N[39]=W;N[34]=W;for(w=a.delimiters;w!==null&&w.previous!==W;)w=w.previous;for(;w!==null;){var I=w.cc;if(w.can_close){var X=w.previous;for(Z=!1;X!==null&&X!==W&&X!==N[I];){B=(w.can_open||X.can_close)&&(X.origdelims+w.origdelims)%3===0;if(X.cc===w.cc&&X.can_open&&!B){Z=!0;break}X=X.previous}var v=w;if(I===42||I===95)if(Z){var U=w.numdelims>=2&&X.numdelims>=2?2:1;var O=X.node;var S=w.node;X.numdelims-=U;w.numdelims-=U;O._literal=O._literal.slice(0,O._literal.length-U);S._literal=S._literal.slice(0,
S._literal.length-U);var T=new BG(U===1?"emph":"strong");for(U=O._next;U&&U!==S;){var p=U._next;Xc(U);T.appendChild(U);U=p}k$h(O,T);U=X;p=w;U.next!==p&&(U.next=p,p.previous=U);X.numdelims===0&&(Xc(O),QdJ(a,X));w.numdelims===0&&(Xc(S),X=w.next,QdJ(a,w),w=X)}else w=w.next;else I===39?(w.node._literal="\u2019",Z&&(X.node._literal="\u2018"),w=w.next):I===34&&(w.node._literal="\u201d",Z&&(X.node.literal="\u201c"),w=w.next);Z||B||(N[I]=v.previous,v.can_open||QdJ(a,v))}else w=w.next}for(;a.delimiters!==
null&&a.delimiters!==W;)QdJ(a,a.delimiters)},btJ=function(a){a=a.match(Oty);
return a===null?null:IgE(a.substr(1,a.length-2))},sdL=function(a){var W=a.match(S8y);
if(W===null){W=a.pos;for(var w=0,Z;(Z=a.peek())!==-1;)if(Z===92)a.pos+=1,a.peek()!==-1&&(a.pos+=1);else if(Z===40)a.pos+=1,w+=1;else if(Z===41)if(w<1)break;else a.pos+=1,--w;else if(eI6.exec(PT(Z))!==null)break;else a.pos+=1;W=a.subject.substr(W,a.pos-W);return PxJ(IgE(W))}return PxJ(IgE(W.substr(1,W.length-2)))},um6=function(a){a=a.match(MxJ);
return a===null||a.length>1001?0:a.length},CxH=function(a,W,w,Z){a.brackets!==null&&(a.brackets.bracketAfter=!0);
a.brackets={node:W,previous:a.brackets,previousDelimiter:a.delimiters,index:w,image:Z,active:!0}},G$_=function(a,W){var w;
return(w=a.match(RIH))?(a.options.smart?W.appendChild(vT(w.replace(rQV,"\u2026").replace(AQL,function(Z){var N=0,B=0;Z.length%3===0?B=Z.length/3:Z.length%2===0?N=Z.length/2:Z.length%3===2?(N=1,B=(Z.length-2)/3):(N=2,B=(Z.length-4)/3);Z="";var I;for(I=0;I<B;I++)Z+="\u2014";for(I=0;I<N;I++)Z+="\u2013";return Z}))):W.appendChild(vT(w)),!0):!1},DwV=function(a,W,w){a.subject=W;
a.pos=0;W=a.pos;var Z=um6(a);if(Z===0)return 0;var N=a.subject.substr(0,Z);if(a.peek()===58)a.pos++;else return a.pos=W,0;oA(a);Z=sdL(a);if(Z===null||Z.length===0)return a.pos=W,0;var B=a.pos;oA(a);var I=btJ(a);I===null&&(I="",a.pos=B);var X=!0;a.match(FYe)===null&&(I===""?X=!1:(I="",a.pos=B,X=a.match(FYe)!==null));if(!X)return a.pos=W,0;N=yN9(N);if(N==="")return a.pos=W,0;w[N]||(w[N]={destination:Z,title:I});return a.pos-W},fgl=function(a,W){var w,Z=a.peek();
if(Z===-1)return!1;switch(Z){case 10:a.pos+=1;if((w=W._lastChild)&&w.type==="text"&&w._literal[w._literal.length-1]===" "){var N=w._literal[w._literal.length-2]===" ";w._literal=w._literal.replace(LYR,"");W.appendChild(new BG(N?"linebreak":"softbreak"))}else W.appendChild(new BG("softbreak"));a.match(JQE);w=!0;break;case 92:w=a.subject;a.pos+=1;a.peek()===10?(a.pos+=1,w=new BG("linebreak"),W.appendChild(w)):Y8R.test(w.charAt(a.pos))?(W.appendChild(vT(w.charAt(a.pos))),a.pos+=1):W.appendChild(vT("\\"));
w=!0;break;case 96:a:if(w=a.match(pXT),w===null)w=!1;else{N=a.pos;for(var B;(B=a.match(KYA))!==null;)if(B===w){B=new BG("code");B._literal=a.subject.slice(N,a.pos-w.length).trim().replace(nJL," ");W.appendChild(B);w=!0;break a}a.pos=N;W.appendChild(vT(w));w=!0}break;case 42:case 95:w=q8e(a,Z,W);break;case 39:case 34:w=a.options.smart&&q8e(a,Z,W);break;case 91:w=a.pos;a.pos+=1;N=vT("[");W.appendChild(N);CxH(a,N,w,!1);w=!0;break;case 33:w=a.pos;a.pos+=1;a.peek()===91?(a.pos+=1,N=vT("!["),W.appendChild(N),
CxH(a,N,w+1,!0)):W.appendChild(vT("!"));w=!0;break;case 93:var I,X=!1,v;a.pos+=1;var U=a.pos;N=a.brackets;if(N===null)W.appendChild(vT("]"));else if(N.active){w=N.image;var O=a.pos;a.peek()===40&&(a.pos++,oA(a)&&(B=sdL(a))!==null&&oA(a)&&(eI6.test(a.subject.charAt(a.pos-1))&&(I=btJ(a)),1)&&oA(a)&&a.peek()===41?(a.pos+=1,X=!0):a.pos=O);if(!X){var S=a.pos,T=um6(a);T>2?v=a.subject.slice(S,S+T):N.bracketAfter||(v=a.subject.slice(N.index,U));T===0&&(a.pos=O);v&&(v=a.refmap[yN9(v)])&&(B=v.destination,I=
v.title,X=!0)}if(X){U=new BG(w?"image":"link");U._destination=B;U._title=I||"";for(B=N.node._next;B;)I=B._next,Xc(B),U.appendChild(B),B=I;W.appendChild(U);xwR(a,N.previousDelimiter);a.brackets=a.brackets.previous;Xc(N.node);if(!w)for(N=a.brackets;N!==null;)N.image||(N.active=!1),N=N.previous}else a.brackets=a.brackets.previous,a.pos=U,W.appendChild(vT("]"))}else W.appendChild(vT("]")),a.brackets=a.brackets.previous;w=!0;break;case 60:(w=a.match(hIA))?(w=w.slice(1,w.length-1),N=new BG("link"),N._destination=
PxJ("mailto:"+w),N._title="",N.appendChild(vT(w)),W.appendChild(N),w=!0):(w=a.match(itA))?(w=w.slice(1,w.length-1),N=new BG("link"),N._destination=PxJ(w),N._title="",N.appendChild(vT(w)),W.appendChild(N),w=!0):w=!1;w||(w=a.match(Ztl),w===null?w=!1:(N=new BG("html_inline"),N._literal=w,W.appendChild(N),w=!0));break;case 38:(w=a.match(TJh))?(W.appendChild(vT(WY$(w))),w=!0):w=!1;break;default:w=G$_(a,W)}w||(a.pos+=1,W.appendChild(vT(PT(Z))));return!0};
gl.prototype.parseInlines=function(a){this.subject=a._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;fgl(this,a););a._string_content=null;xwR(this,null)};
gl.prototype.parse=gl.prototype.parseInlines;var dw6=[/./,/^<(?: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")],mwT=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],Vxh=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,zIy=/^[#`~*+_=<>0-9-\|]|\|/,HtV=/[^ \t\f\v\r\n]/,yQE=/^[*+-]/,EJH=/^(\d{1,9})([.)])/,aKV=/^#{1,6}(?:[ \t]+|$)/,WdL=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,w$h=/^(?:`{3,}|~{3,})(?= *$)/,ZA$=/^(?:=+|-+)[ \t]*$/,N2J=/\r\n|\n|\r/,aLU=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,WKS=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,tLA={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(a){return a!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(a,W){for(a=W._firstChild;a;){if(EXx(a)&&a._next){W._listData.tight=!1;break}for(var w=a._firstChild;w;){if(EXx(w)&&(a._next||w._next)){W._listData.tight=!1;break}w=w._next}a=a._next}},
canContain:function(a){return a==="item"},
acceptsLines:!1},block_quote:{continue:function(a){var W=a.currentLine;if(a.indented||ts(W,a.nextNonspace)!==62)return 1;kS(a);Uo(a,1,!1);NM(ts(W,a.offset))&&Uo(a,1,!0);return 0},
finalize:function(){},
canContain:function(a){return a!=="item"},
acceptsLines:!1},item:{continue:function(a,W){if(a.blank){if(W._firstChild==null)return 1;kS(a)}else if(a.indent>=W._listData.markerOffset+W._listData.padding)Uo(a,W._listData.markerOffset+W._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(a){return a!=="item"&&!wzE(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,W){var w=a.currentLine,Z=a.indent;if(W._isFenced){if((Z=Z<=3&&w.charAt(a.nextNonspace)===W._fenceChar&&w.slice(a.nextNonspace).match(w$h))&&Z[0].length>=W._fenceLength)return a.finalize(W,a.lineNumber),2;for(W=W._fenceOffset;W>0&&NM(ts(w,a.offset));)Uo(a,1,!0),W--}else if(Z>=4)Uo(a,4,!0);else if(a.blank)kS(a);else return 1;return 0},
finalize:function(a,W){if(W._isFenced){var w=W._string_content,Z=w.indexOf("\n");a=w.slice(0,Z);w=w.slice(Z+1);W.info=IgE(a.trim());W._literal=w}else W._literal=W._string_content.replace(/(\n *)+$/,"\n");W._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(a,W){return!a.blank||W._htmlBlockType!==6&&W._htmlBlockType!==7?0:1},
finalize:function(a,W){W._literal=W._string_content.replace(/(\n *)+$/,"");W._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(a){return a.blank?1:0},
finalize:function(a,W){for(var w,Z=!1;ts(W._string_content,0)===91&&(w=DwV(a.inlineParser,W._string_content,a.refmap));)W._string_content=W._string_content.slice(w),Z=!0;Z&&!HtV.test(W._string_content)&&Xc(W)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(a){return $s(a.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(a){return a=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(a,W){if(!W._rowIsDelimiter){a=W._isHeader?"th":"td";for(var w=W._parent._tableColumns,Z=W._string_content,N=0,B="",I,X=W._sourcepos[0][0];N<Z.length;){switch(Z[N]){case "|":I&&(I._string_content=B.trim(),B="",I=null,w--,w<=0&&(N=Z.length));break;default:if(!I){I=new BG(a,[[X,N],[X,N]]);var v=W._parent._columnAlignment,U=W._parent._tableColumns-w;v&&U<=v.length&&U>=0&&(I._alignment=v[U]);W.appendChild(I)}B+=Z[N];I._sourcepos[1][1]=N}N++}I&&(I._string_content=B.trim());W._string_content=
""}},
canContain:function(a){return a!=="row"},
acceptsLines:!1}},$XE=[function(a){if(a.indented||ts(a.currentLine,a.nextNonspace)!==62)return 0;kS(a);Uo(a,1,!1);NM(ts(a.currentLine,a.offset))&&Uo(a,1,!0);Oo(a);a.addChild("block_quote",a.nextNonspace);return 1},
function(a){var W;if(!a.indented&&(W=a.currentLine.slice(a.nextNonspace).match(aKV))){kS(a);Uo(a,W[0].length,!1);Oo(a);var w=a.addChild("heading",a.nextNonspace);w.level=W[0].trim().length;w._string_content=a.currentLine.slice(a.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Uo(a,a.currentLine.length-a.offset);return 2}return 0},
function(a){var W;if(!a.indented&&(W=a.currentLine.slice(a.nextNonspace).match(WdL))){var w=W[0].length;Oo(a);var Z=a.addChild("code_block",a.nextNonspace);Z._isFenced=!0;Z._fenceLength=w;Z._fenceChar=W[0][0];Z._fenceOffset=a.indent;kS(a);Uo(a,w,!1);return 2}return 0},
function(a,W){if(!a.indented&&ts(a.currentLine,a.nextNonspace)===60){var w=a.currentLine.slice(a.nextNonspace),Z;for(Z=1;Z<=7;Z++)if(dw6[Z].test(w)&&(Z<7||W.type!=="paragraph"))return Oo(a),a.addChild("html_block",a.offset)._htmlBlockType=Z,2}return 0},
function(a,W){var w;if(!a.indented&&W.type==="paragraph"&&(w=a.currentLine.slice(a.nextNonspace).match(ZA$))){Oo(a);var Z=new BG("heading",W.sourcepos);Z.level=w[0][0]==="="?1:2;Z._string_content=W._string_content;k$h(W,Z);Xc(W);a.tip=Z;Uo(a,a.currentLine.length-a.offset,!1);return 2}return 0},
function(a){return!a.indented&&Vxh.test(a.currentLine.slice(a.nextNonspace))?(Oo(a),a.addChild("thematic_break",a.nextNonspace),Uo(a,a.currentLine.length-a.offset,!1),2):0},
function(a,W){var w,Z;if(!(Z=a.indented&&W.type!=="list")){a:{var N=W,B=a.currentLine.slice(a.nextNonspace);Z={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:a.indent};if(w=B.match(yQE))Z.type="bullet",Z.bulletChar=w[0][0];else{if(!(w=B.match(EJH))||N.type==="paragraph"&&w[1]!=="1"){w=null;break a}Z.type="ordered";Z.start=parseInt(w[1],10);Z.delimiter=w[2]}var I=ts(a.currentLine,a.nextNonspace+w[0].length);if(I!==-1&&I!==9&&I!==32||N.type==="paragraph"&&!a.currentLine.slice(a.nextNonspace+
w[0].length).match(HtV))w=null;else{kS(a);Uo(a,w[0].length,!0);N=a.column;B=a.offset;do Uo(a,1,!0),I=ts(a.currentLine,a.offset);while(a.column-N<5&&NM(I));I=ts(a.currentLine,a.offset)===-1;var X=a.column-N;X>=5||X<1||I?(Z.padding=w[0].length+1,a.column=N,a.offset=B,NM(ts(a.currentLine,a.offset))&&Uo(a,1,!0)):Z.padding=w[0].length+X;w=Z}}Z=!w}if(Z)return 0;Oo(a);(Z=a.tip.type!=="list")||(W=W._listData,Z=!(W.type===w.type&&W.delimiter===w.delimiter&&W.bulletChar===w.bulletChar));Z&&(W=a.addChild("list",
a.nextNonspace),W._listData=w);W=a.addChild("item",a.nextNonspace);W._listData=w;return 1},
function(a){var W;return((W=a.options.shouldParseIndentAsCodeBlock)!=null?W:1)&&a.indented&&a.tip.type!=="paragraph"&&!a.blank?(Uo(a,4,!0),Oo(a),a.addChild("code_block",a.offset),2):0},
function(a,W){var w=$s(a.currentLine),Z=$s(a.lookahead);if(w!==0&&Z<0&&Math.abs(w)==Math.abs(Z)&&!wzE(W.type)){Oo(a);W=a.addChild("table",a.nextNonspace);W._tableRows=1;W._tableColumns=Math.abs(w);w=a.lookahead;if(WKS.test(w)){Z=[];for(var N=0,B=!1,I=0,X=void 0;N<w.length;){var v=I>=3;switch(w[N]){case "-":I++;break;case "|":B&&(Z.push(X),X=void 0,I=0);B=!0;break;case ":":X||v||(X="left"),!X&&v&&(X="right"),X==="left"&&v&&(X="center")}N++}w=Z}else w=void 0;W._columnAlignment=w;W=a.addChild("row",
a.nextNonspace);W._isHeader=!0;Uo(a,a.currentLine.length-a.offset,!1);W._string_content=a.currentLine;return 1}return 0},
function(a,W){if(W.type=="table"&&$s(a.currentLine)!==0){Oo(a);var w=W;W=a.addChild("row",a.nextNonspace);$s(a.currentLine)<0?W._rowIsDelimiter=!0:w._tableRows+=1;Uo(a,a.currentLine.length-a.offset,!1);W._string_content=a.currentLine;return 2}return 0}],hVC=function(){var a={shouldParseIndentAsCodeBlock:!1};
a=a===void 0?{}:a;this.lastMatchedContainer=this.doc=Zox();this.refmap={};this.lastLineLength=0;this.inlineParser=new gl(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=tLA;this.blockStarts=$XE},B2_=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"};
hVC.prototype.addChild=function(a,W){for(;!this.blocks[this.tip.type].canContain(a);)this.finalize(this.tip,this.lineNumber-1);a=new BG(a,[[this.lineNumber,W+1],[0,0]]);a._string_content="";this.tip.appendChild(a);return this.tip=a};
var Oo=function(a){if(!a.allClosed){for(;a.oldtip!==a.lastMatchedContainer;){var W=a.oldtip._parent;a.finalize(a.oldtip,a.lineNumber-1);a.oldtip=W}a.allClosed=!0}},Uo=function(a,W,w){for(var Z=a.currentLine,N,B;W>0&&(B=Z[a.offset]);)B==="\t"?(N=4-a.column%4,w?(a.partiallyConsumedTab=N>W,N=N>W?W:N,a.column+=N,a.offset+=a.partiallyConsumedTab?0:1,W-=N):(a.partiallyConsumedTab=!1,a.column+=N,a.offset+=1,--W)):(a.partiallyConsumedTab=!1,a.offset+=1,a.column+=1,--W)},kS=function(a){a.offset=a.nextNonspace;
a.column=a.nextNonspaceColumn;a.partiallyConsumedTab=!1},lKT=function(a){for(var W=a.currentLine,w=a.offset,Z=a.column,N;(N=W.charAt(w))!=="";)if(N===" ")w++,Z++;
else if(N==="\t")w++,Z+=4-Z%4;else break;a.blank=N==="\n"||N==="\r"||N==="";a.nextNonspace=w;a.nextNonspaceColumn=Z;a.indent=a.nextNonspaceColumn-a.column;a.indented=a.indent>=4};
hVC.prototype.finalize=function(a,W){var w=a._parent;a._open=!1;a.sourcepos[1]=[W,this.lastLineLength];this.blocks[a.type].finalize(this,a);this.tip=w};
hVC.prototype.parse=function(a){this.tip=this.doc=Zox();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 W=a.split(N2J),w=W.length;a.charCodeAt(a.length-1)===10&&--w;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(a=0;a<w;a++)a:{var Z=void 0,N=W[a],B=W[a+1],I=!0,X=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;N.indexOf("\x00")!==-1&&(N=N.replace(/\0/g,"\ufffd"));this.currentLine=N;for(this.lookahead=B;(Z=X._lastChild)&&Z._open;){X=Z;lKT(this);switch(this.blocks[X.type].continue(this,X)){case 0:break;case 1:I=!1;break;case 2:this.lastLineLength=N.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!I){X=X._parent;break}}this.allClosed=X===this.oldtip;this.lastMatchedContainer=
X;Z=X.type!=="paragraph"&&tLA[X.type].acceptsLines;B=this.blockStarts;for(I=B.length;!Z;){lKT(this);if(!this.indented&&!zIy.test(N.slice(this.nextNonspace))){kS(this);break}for(var v=0;v<I;){var U=B[v](this,X);if(U===1){X=this.tip;break}else if(U===2){X=this.tip;Z=!0;break}else v++}if(v===I){kS(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Oo(this);this.blank&&X.lastChild&&(X.lastChild._lastLineBlank=!0);Z=X.type;B=this.blank&&!(Z==="block_quote"||Z==="code_block"&&X._isFenced||
Z==="item"&&!X._firstChild&&X.sourcepos[0][0]===this.lineNumber);for(I=X;I;)I._lastLineBlank=B,I=I._parent;this.blocks[Z].acceptsLines?(B2_(this),Z==="html_block"&&X._htmlBlockType>=1&&X._htmlBlockType<=5&&mwT[X._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(X,this.lineNumber)):this.offset<N.length&&!this.blank&&(this.addChild("paragraph",this.offset),kS(this),B2_(this))}else B2_(this);this.lastLineLength=N.length}for(;this.tip;)this.finalize(this.tip,w);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");N=new oJV(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;w=N.next();)W=w.node,a=W.type,w.entering||a!=="paragraph"&&a!=="heading"&&a!=="th"&&a!="td"||this.inlineParser.parse(W);this.options.time&&console.timeEnd("inline parsing");return this.doc};NkU.prototype.render=function(a){a=new oJV(a);var W;this.buffer="";for(this.lastOut="\n";W=a.next();){var w=W.node.type;if(this[w])this[w](W.node,W.entering)}return this.buffer};
NkU.prototype.out=function(a){SG(this,a)};
var SG=function(a,W){a.buffer+=W;a.lastOut=W};
NkU.prototype.cr=function(){this.lastOut!=="\n"&&SG(this,"\n")};var IKR=/^javascript:|vbscript:|file:|data:/i,P5A=/^data:image\/(?:png|gif|jpeg|webp)/i,X$R=function(a){return IKR.test(a)&&!P5A.test(a)};
l6.prototype=Object.create(NkU.prototype);_.t=l6.prototype;_.t.text=function(a){this.out(a.literal)};
_.t.html_inline=function(a){this.options.safe?SG(this,"\x3c!-- raw HTML omitted --\x3e"):SG(this,a.literal)};
_.t.html_block=function(a){this.cr();this.options.safe?SG(this,"\x3c!-- raw HTML omitted --\x3e"):SG(this,a.literal);this.cr()};
_.t.softbreak=function(){SG(this,this.options.softbreak)};
_.t.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.t.link=function(a,W){var w=this.attrs(a);W?(this.options.safe&&X$R(a.destination)||w.push(["href",IA(a.destination,!0)]),a.title&&w.push(["title",IA(a.title,!0)]),this.tag("a",w)):this.tag("/a")};
_.t.image=function(a,W){W?(this.disableTags===0&&(this.options.safe&&X$R(a.destination)?SG(this,'<img src="" alt="'):SG(this,'<img src="'+IA(a.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(a.title&&SG(this,'" title="'+IA(a.title,!0)),SG(this,'" />')))};
_.t.emph=function(a,W){this.tag(W?"em":"/em")};
_.t.strong=function(a,W){this.tag(W?"strong":"/strong")};
_.t.paragraph=function(a,W){var w=a.parent.parent;a=this.attrs(a);w!==null&&w.type==="list"&&w.listTight||(W?(this.cr(),this.tag("p",a)):(this.tag("/p"),this.cr()))};
_.t.heading=function(a,W){var w="h"+a.level;a=this.attrs(a);W?(this.cr(),this.tag(w,a)):(this.tag("/"+w),this.cr())};
_.t.code=function(a){this.tag("code");this.out(a.literal);this.tag("/code")};
_.t.code_block=function(a){var W=a.info?a.info.split(/\s+/):[],w=this.attrs(a);W.length>0&&W[0].length>0&&w.push(["class","language-"+IA(W[0],!0)]);this.cr();this.tag("pre");this.tag("code",w);this.out(a.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.t.thematic_break=function(a){a=this.attrs(a);this.cr();this.tag("hr",a,!0);this.cr()};
_.t.block_quote=function(a,W){a=this.attrs(a);W?(this.cr(),this.tag("blockquote",a)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.t.list=function(a,W){var w=a.listType==="bullet"?"ul":"ol",Z=this.attrs(a);W?(a=a.listStart,a!==null&&a!==1&&Z.push(["start",a.toString()]),this.cr(),this.tag(w,Z)):(this.cr(),this.tag("/"+w));this.cr()};
_.t.item=function(a,W){a=this.attrs(a);W?this.tag("li",a):(this.tag("/li"),this.cr())};
_.t.custom_inline=function(a,W){W&&a.onEnter?SG(this,a.onEnter):!W&&a.onExit&&SG(this,a.onExit)};
_.t.custom_block=function(a,W){this.cr();W&&a.onEnter?SG(this,a.onEnter):!W&&a.onExit&&SG(this,a.onExit);this.cr()};
_.t.table=function(a,W){a=this.attrs(a);W?(this.cr(),this.tag("table",a)):(this.tag("/table"),this.cr())};
_.t.row=function(a,W){a._rowIsDelimiter||(a=this.attrs(a),W?this.tag("tr",a):this.tag("/tr"))};
_.t.td=function(a,W){var w=this.attrs(a);a._alignment&&w.push(["align",a._alignment]);W?this.tag("td",w):this.tag("/td")};
_.t.th=function(a,W){var w=this.attrs(a);a._alignment&&w.push(["align",a._alignment]);W?this.tag("th",w):this.tag("/th")};
_.t.out=function(a){SG(this,IA(a,!1))};
_.t.tag=function(a,W,w){if(!(this.disableTags>0)){this.buffer+="<"+a;if(W&&W.length>0){a=0;for(var Z;(Z=W[a])!==void 0;)this.buffer+=" "+Z[0]+'="'+Z[1]+'"',a++}w&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.t.attrs=function(a){var W=[];this.options.sourcepos&&(a=a.sourcepos)&&W.push(["data-sourcepos",String(a[0][0])+":"+String(a[0][1])+"-"+String(a[1][0])+":"+String(a[1][1])]);return W};
l6.prototype.text=l6.prototype.text;l6.prototype.html_inline=l6.prototype.html_inline;l6.prototype.html_block=l6.prototype.html_block;l6.prototype.softbreak=l6.prototype.softbreak;l6.prototype.linebreak=l6.prototype.linebreak;l6.prototype.link=l6.prototype.link;l6.prototype.image=l6.prototype.image;l6.prototype.emph=l6.prototype.emph;l6.prototype.strong=l6.prototype.strong;l6.prototype.paragraph=l6.prototype.paragraph;l6.prototype.heading=l6.prototype.heading;l6.prototype.code=l6.prototype.code;
l6.prototype.code_block=l6.prototype.code_block;l6.prototype.thematic_break=l6.prototype.thematic_break;l6.prototype.block_quote=l6.prototype.block_quote;l6.prototype.list=l6.prototype.list;l6.prototype.item=l6.prototype.item;l6.prototype.custom_inline=l6.prototype.custom_inline;l6.prototype.custom_block=l6.prototype.custom_block;l6.prototype.table=l6.prototype.table;l6.prototype.row=l6.prototype.row;l6.prototype.td=l6.prototype.td;l6.prototype.th=l6.prototype.th;l6.prototype.out=l6.prototype.out;
l6.prototype.tag=l6.prototype.tag;l6.prototype.attrs=l6.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 v_E,g_$,F0e;(function(){function a(J,e){return J<e?-1:J>e?1:J>=e?0:NaN}
function W(J){return function(e,q){return a(J(e),q)}}
function w(){for(var J=0,e=arguments.length,q={},m;J<e;++J){if(!(m=arguments[J]+"")||m in q)throw Error("re`"+m);q[m]=[]}return new Z(q)}
function Z(J){this._=J}
function N(J,e){return J.trim().split(/^|\s+/).map(function(q){var m="",tm=q.indexOf(".");tm>=0&&(m=q.slice(tm+1),q=q.slice(0,tm));if(q&&!e.hasOwnProperty(q))throw Error("se`"+q);return{type:q,name:m}})}
function B(J,e,q){for(var m=0,tm=J.length;m<tm;++m)if(J[m].name===e){J[m]=SMn;J=J.slice(0,m).concat(J.slice(m+1));break}q!=null&&J.push({name:e,value:q});return J}
function I(J){var e=J,q=e.indexOf(":");q>=0&&(e=J.slice(0,q))!=="xmlns"&&(J=J.slice(q+1));return Gb.hasOwnProperty(e)?{space:Gb[e],local:J}:J}
function X(J){return function(){var e=this.ownerDocument,q=this.namespaceURI;return q==="http://www.w3.org/1999/xhtml"&&e.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?e.createElement(J):e.createElementNS(q,J)}}
function v(J){return function(){return this.ownerDocument.createElementNS(J.space,J.local)}}
function U(J){J=I(J);return(J.local?v:X)(J)}
function O(){}
function S(J){return J==null?O:function(){return this.querySelector(J)}}
function T(J){return Array(J.length)}
function p(J,e){this.ownerDocument=J.ownerDocument;this.namespaceURI=J.namespaceURI;this._next=null;this._parent=J;this.__data__=e}
function h(J){return function(){return J}}
function L(J,e,q,m,tm,Xx){for(var OS=0,ie,ES=e.length,z8=Xx.length;OS<z8;++OS)(ie=e[OS])?(ie.__data__=Xx[OS],m[OS]=ie):q[OS]=new p(J,Xx[OS]);for(;OS<ES;++OS)if(ie=e[OS])tm[OS]=ie}
function F(J,e,q,m,tm,Xx,OS){var ie,ES,z8={},ae=e.length,oe=Xx.length,dT=Array(ae),kd;for(ie=0;ie<ae;++ie)if(ES=e[ie])dT[ie]=kd="$"+OS.call(ES,ES.__data__,ie,e),kd in z8?tm[ie]=ES:z8[kd]=ES;for(ie=0;ie<oe;++ie)kd="$"+OS.call(J,Xx[ie],ie,Xx),(ES=z8[kd])?(m[ie]=ES,ES.__data__=Xx[ie],z8[kd]=null):q[ie]=new p(J,Xx[ie]);for(ie=0;ie<ae;++ie)(ES=e[ie])&&z8[dT[ie]]===ES&&(tm[ie]=ES)}
function x(J,e){return J<e?-1:J>e?1:J>=e?0:NaN}
function G(J){return function(){this.removeAttribute(J)}}
function V(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function d(J,e){return function(){this.setAttribute(J,e)}}
function ZD(J,e){return function(){this.setAttributeNS(J.space,J.local,e)}}
function aC(J,e){return function(){var q=e.apply(this,arguments);q==null?this.removeAttribute(J):this.setAttribute(J,q)}}
function Bv(J,e){return function(){var q=e.apply(this,arguments);q==null?this.removeAttributeNS(J.space,J.local):this.setAttributeNS(J.space,J.local,q)}}
function Am(J){return function(){this.style.removeProperty(J)}}
function e9(J,e,q){return function(){this.style.setProperty(J,e,q)}}
function cv(J,e,q){return function(){var m=e.apply(this,arguments);m==null?this.style.removeProperty(J):this.style.setProperty(J,m,q)}}
function C7(J,e){return J.style.getPropertyValue(e)||(J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView).getComputedStyle(J,null).getPropertyValue(e)}
function RC(J){return function(){delete this[J]}}
function G8(J,e){return function(){this[J]=e}}
function QF(J,e){return function(){var q=e.apply(this,arguments);q==null?delete this[J]:this[J]=q}}
function vl(){this.textContent=""}
function Hl(J){return function(){this.textContent=J}}
function SV(J){return function(){var e=J.apply(this,arguments);this.textContent=e==null?"":e}}
function Ny(){this.innerHTML=""}
function Bl(J){return function(){this.innerHTML=J}}
function JL(J){return function(){var e=J.apply(this,arguments);this.innerHTML=e==null?"":e}}
function Pl(){return null}
function W9(){var J=this.parentNode;J&&J.removeChild(this)}
function rC(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function le(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function rT(J,e,q){J=Re(J,e,q);return function(m){var tm=m.relatedTarget;tm&&(tm===this||tm.compareDocumentPosition(this)&8)||J.call(this,m)}}
function Re(J,e,q){return function(){J.call(this,this.__data__,e,q)}}
function u9(J){return J.trim().split(/^|\s+/).map(function(e){var q="",m=e.indexOf(".");m>=0&&(q=e.slice(m+1),e=e.slice(0,m));return{type:e,name:q}})}
function eV(J){return function(){var e=this.__on;if(e){for(var q=0,m=-1,tm=e.length,Xx;q<tm;++q)(Xx=e[q],J.type&&Xx.type!==J.type||Xx.name!==J.name)?e[++m]=Xx:this.removeEventListener(Xx.type,Xx.listener,Xx.capture);++m?e.length=m:delete this.__on}}}
function DE(J,e,q){var m=uce.hasOwnProperty(J.type)?rT:Re;return function(tm,Xx,OS){tm=this.__on;var ie;Xx=m(e,Xx,OS);if(tm){OS=0;for(var ES=tm.length;OS<ES;++OS)if((ie=tm[OS]).type===J.type&&ie.name===J.name){this.removeEventListener(ie.type,ie.listener,ie.capture);this.addEventListener(ie.type,ie.listener=Xx,ie.capture=q);ie.value=e;return}}this.addEventListener(J.type,Xx,q);ie={type:J.type,name:J.name,value:e,listener:Xx,capture:q};tm?tm.push(ie):this.__on=[ie]}}
function mi(J,e,q){var m=J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView,tm=m.CustomEvent;typeof tm==="function"?tm=new tm(e,q):(tm=m.document.createEvent("Event"),q?(tm.initEvent(e,q.bubbles,q.cancelable),tm.detail=q.detail):tm.initEvent(e,!1,!1));J.dispatchEvent(tm)}
function p6(J,e){return function(){return mi(this,J,e)}}
function VF(J,e){return function(){return mi(this,J,e.apply(this,arguments))}}
function K6(J,e){this._groups=J;this._parents=e}
function P2(){return new K6([[document.documentElement]],YM9)}
function AL(){this._="@"+(++Tmf).toString(36)}
function KK(J,e,q){J.prototype=e.prototype=q;q.constructor=J}
function P9(J,e){J=Object.create(J.prototype);for(var q in e)J[q]=e[q];return J}
function ox(){}
function CK(J){var e;J=(J+"").trim().toLowerCase();return(e=Klz.exec(J))?(e=parseInt(e[1],16),new fK(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1)):(e=p00.exec(J))?Y8(parseInt(e[1],16)):(e=r9n.exec(J))?new fK(e[1],e[2],e[3],1):(e=A9n.exec(J))?new fK(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=hW0.exec(J))?hl(e[1],e[2],e[3],e[4]):(e=iIK.exec(J))?hl(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=c9D.exec(J))?Aw(e[1],e[2]/100,e[3]/100,1):(e=eWI.exec(J))?Aw(e[1],e[2]/100,e[3]/100,e[4]):C3T.hasOwnProperty(J)?
Y8(C3T[J]):J==="transparent"?new fK(NaN,NaN,NaN,0):null}
function Y8(J){return new fK(J>>16&255,J>>8&255,J&255,1)}
function hl(J,e,q,m){m<=0&&(J=e=q=NaN);return new fK(J,e,q,m)}
function bA(J){J instanceof ox||(J=CK(J));if(!J)return new fK;J=J.rgb();return new fK(J.r,J.g,J.b,J.opacity)}
function i9(J,e,q,m){return arguments.length===1?bA(J):new fK(J,e,q,m==null?1:m)}
function fK(J,e,q,m){this.r=+J;this.g=+e;this.b=+q;this.opacity=+m}
function XL(J){J=Math.max(0,Math.min(255,Math.round(J)||0));return(J<16?"0":"")+J.toString(16)}
function Aw(J,e,q,m){m<=0?J=e=q=NaN:q<=0||q>=1?J=e=NaN:e<=0&&(J=NaN);return new $q(J,e,q,m)}
function ch(J){if(J instanceof $q)return new $q(J.h,J.s,J.l,J.opacity);J instanceof ox||(J=CK(J));if(!J)return new $q;if(J instanceof $q)return J;J=J.rgb();var e=J.r/255,q=J.g/255,m=J.b/255,tm=Math.min(e,q,m),Xx=Math.max(e,q,m),OS=NaN,ie=Xx-tm,ES=(Xx+tm)/2;ie?(OS=e===Xx?(q-m)/ie+(q<m)*6:q===Xx?(m-e)/ie+2:(e-q)/ie+4,ie/=ES<.5?Xx+tm:2-Xx-tm,OS*=60):ie=ES>0&&ES<1?0:OS;return new $q(OS,ie,ES,J.opacity)}
function Ui(J,e,q,m){return arguments.length===1?ch(J):new $q(J,e,q,m==null?1:m)}
function $q(J,e,q,m){this.h=+J;this.s=+e;this.l=+q;this.opacity=+m}
function zH(J,e,q){return(J<60?e+(q-e)*J/60:J<180?q:J<240?e+(q-e)*(240-J)/60:e)*255}
function pM(J){if(J instanceof T8)return new T8(J.l,J.a,J.b,J.opacity);if(J instanceof YR){if(isNaN(J.h))return new T8(J.l,0,0,J.opacity);var e=J.h*GN$;return new T8(J.l,Math.cos(e)*J.c,Math.sin(e)*J.c,J.opacity)}J instanceof fK||(J=bA(J));var q=tz(J.r),m=tz(J.g),tm=tz(J.b);e=Jm(.2225045*q+.7168786*m+.0606169*tm);if(q===m&&m===tm)var Xx=q=e;else Xx=Jm((.4360747*q+.3850649*m+.1430804*tm)/.96422),q=Jm((.0139322*q+.0971045*m+.7141733*tm)/.82521);return new T8(116*e-16,500*(Xx-e),200*(e-q),J.opacity)}
function T8(J,e,q,m){this.l=+J;this.a=+e;this.b=+q;this.opacity=+m}
function Jm(J){return J>n2I?Math.pow(J,1/3):J/D7y+fj$}
function sS(J){return J>Pg?J*J*J:D7y*(J-fj$)}
function kR(J){return 255*(J<=.0031308?12.92*J:1.055*Math.pow(J,1/2.4)-.055)}
function tz(J){return(J/=255)<=.04045?J/12.92:Math.pow((J+.055)/1.055,2.4)}
function L_(J){if(J instanceof YR)return new YR(J.h,J.c,J.l,J.opacity);J instanceof T8||(J=pM(J));if(J.a===0&&J.b===0)return new YR(NaN,0,J.l,J.opacity);var e=Math.atan2(J.b,J.a)*d7A;return new YR(e<0?e+360:e,Math.sqrt(J.a*J.a+J.b*J.b),J.l,J.opacity)}
function gf(J,e,q,m){return arguments.length===1?L_(J):new YR(J,e,q,m==null?1:m)}
function YR(J,e,q,m){this.h=+J;this.c=+e;this.l=+q;this.opacity=+m}
function OR(J,e,q,m){if(arguments.length===1){var tm=J;if(tm instanceof oE)tm=new oE(tm.h,tm.s,tm.l,tm.opacity);else{tm instanceof fK||(tm=bA(tm));var Xx=tm.g/255,OS=tm.b/255,ie=(m7e*OS+tm.r/255*-1.7884503806-3.5172982438*Xx)/(m7e+-1.7884503806-3.5172982438);OS-=ie;var ES=(1.97294*(Xx-ie)- -.29227*OS)/-.90649;OS=(Xx=Math.sqrt(ES*ES+OS*OS)/(1.97294*ie*(1-ie)))?Math.atan2(ES,OS)*d7A-120:NaN;tm=new oE(OS<0?OS+360:OS,Xx,ie,tm.opacity)}}else tm=new oE(J,e,q,m==null?1:m);return tm}
function oE(J,e,q,m){this.h=+J;this.s=+e;this.l=+q;this.opacity=+m}
function iY(J,e,q,m,tm){var Xx=J*J,OS=Xx*J;return((1-3*J+3*Xx-OS)*e+(4-6*Xx+3*OS)*q+(1+3*J+3*Xx-3*OS)*m+OS*tm)/6}
function $R(J){return function(){return J}}
function pv(J,e){return function(q){return J+q*e}}
function Oi(J,e,q){return J=Math.pow(J,q),e=Math.pow(e,q)-J,q=1/q,function(m){return Math.pow(J+m*e,q)}}
function xb(J,e){var q=e-J;return q?pv(J,q>180||q<-180?q-360*Math.round(q/360):q):$R(isNaN(J)?e:J)}
function mH(J){return(J=+J)===1?Qo:function(e,q){return q-e?Oi(e,q,J):$R(isNaN(e)?q:e)}}
function Qo(J,e){var q=e-J;return q?pv(J,q):$R(isNaN(J)?e:J)}
function pN(J){return function(e){var q=e.length,m=Array(q),tm=Array(q),Xx=Array(q),OS;for(OS=0;OS<q;++OS){var ie=i9(e[OS]);m[OS]=ie.r||0;tm[OS]=ie.g||0;Xx[OS]=ie.b||0}m=J(m);tm=J(tm);Xx=J(Xx);ie.opacity=1;return function(ES){ie.r=m(ES);ie.g=tm(ES);ie.b=Xx(ES);return ie+""}}}
function vM(J,e){return J=+J,e-=J,function(q){return J+e*q}}
function Hv(J){return function(){return J}}
function OI(J){return function(e){return J(e)+""}}
function XX(J,e){var q=kNF.lastIndex=U7U.lastIndex=0,m,tm,Xx,OS=-1,ie=[],ES=[];J+="";for(e+="";(m=kNF.exec(J))&&(tm=U7U.exec(e));)(Xx=tm.index)>q&&(Xx=e.slice(q,Xx),ie[OS]?ie[OS]+=Xx:ie[++OS]=Xx),(m=m[0])===(tm=tm[0])?ie[OS]?ie[OS]+=tm:ie[++OS]=tm:(ie[++OS]=null,ES.push({i:OS,x:vM(m,tm)})),q=U7U.lastIndex;q<e.length&&(Xx=e.slice(q),ie[OS]?ie[OS]+=Xx:ie[++OS]=Xx);return ie.length<2?ES[0]?OI(ES[0].x):Hv(e):(e=ES.length,function(z8){for(var ae=0,oe;ae<e;++ae)ie[(oe=ES[ae]).i]=oe.x(z8);return ie.join("")})}
function RP(J,e,q,m,tm,Xx){var OS,ie,ES;if(OS=Math.sqrt(J*J+e*e))J/=OS,e/=OS;if(ES=J*q+e*m)q-=J*ES,m-=e*ES;if(ie=Math.sqrt(q*q+m*m))q/=ie,m/=ie,ES/=ie;J*m<e*q&&(J=-J,e=-e,ES=-ES,OS=-OS);return{translateX:tm,translateY:Xx,rotate:Math.atan2(e,J)*VG$,skewX:Math.atan(ES)*VG$,scaleX:OS,scaleY:ie}}
function GH(J,e,q,m){function tm(z8){return z8.length?z8.pop()+" ":""}
function Xx(z8,ae,oe,dT,kd,Se){z8!==oe||ae!==dT?(kd=kd.push("translate(",null,e,null,q),Se.push({i:kd-4,x:vM(z8,oe)},{i:kd-2,x:vM(ae,dT)})):(oe||dT)&&kd.push("translate("+oe+e+dT+q)}
function OS(z8,ae,oe,dT){z8!==ae?(z8-ae>180?ae+=360:ae-z8>180&&(z8+=360),dT.push({i:oe.push(tm(oe)+"rotate(",null,m)-2,x:vM(z8,ae)})):ae&&oe.push(tm(oe)+"rotate("+ae+m)}
function ie(z8,ae,oe,dT){z8!==ae?dT.push({i:oe.push(tm(oe)+"skewX(",null,m)-2,x:vM(z8,ae)}):ae&&oe.push(tm(oe)+"skewX("+ae+m)}
function ES(z8,ae,oe,dT,kd,Se){z8!==oe||ae!==dT?(kd=kd.push(tm(kd)+"scale(",null,",",null,")"),Se.push({i:kd-4,x:vM(z8,oe)},{i:kd-2,x:vM(ae,dT)})):oe===1&&dT===1||kd.push(tm(kd)+"scale("+oe+","+dT+")")}
return function(z8,ae){var oe=[],dT=[];z8=J(z8);ae=J(ae);Xx(z8.translateX,z8.translateY,ae.translateX,ae.translateY,oe,dT);OS(z8.rotate,ae.rotate,oe,dT);ie(z8.skewX,ae.skewX,oe,dT);ES(z8.scaleX,z8.scaleY,ae.scaleX,ae.scaleY,oe,dT);z8=ae=null;return function(kd){for(var Se=-1,DP=dT.length,AY;++Se<DP;)oe[(AY=dT[Se]).i]=AY.x(kd);return oe.join("")}}}
function tI(J){return function(e,q){var m=J((e=Ui(e)).h,(q=Ui(q)).h),tm=Qo(e.s,q.s),Xx=Qo(e.l,q.l),OS=Qo(e.opacity,q.opacity);return function(ie){e.h=m(ie);e.s=tm(ie);e.l=Xx(ie);e.opacity=OS(ie);return e+""}}}
function Ca(J){return function(e,q){var m=J((e=gf(e)).h,(q=gf(q)).h),tm=Qo(e.c,q.c),Xx=Qo(e.l,q.l),OS=Qo(e.opacity,q.opacity);return function(ie){e.h=m(ie);e.c=tm(ie);e.l=Xx(ie);e.opacity=OS(ie);return e+""}}}
function po(J){return function m(q){function tm(Xx,OS){var ie=J((Xx=OR(Xx)).h,(OS=OR(OS)).h),ES=Qo(Xx.s,OS.s),z8=Qo(Xx.l,OS.l),ae=Qo(Xx.opacity,OS.opacity);return function(oe){Xx.h=ie(oe);Xx.s=ES(oe);Xx.l=z8(Math.pow(oe,q));Xx.opacity=ae(oe);return Xx+""}}
q=+q;tm.gamma=m;return tm}(1)}
function u5(){return uu||(zuA(HKm),uu=ym.now()+roE)}
function HKm(){uu=0}
function AE(){this._call=this._time=this._next=null}
function fL(J,e,q){var m=new AE;m.restart(J,e,q);return m}
function d1(){uu=(Ao7=ym.now())+roE;X5=EU=0;try{u5();++X5;for(var J=hGS,e;J;)(e=uu-J._time)>=0&&J._call.call(null,e),J=J._next;--X5}finally{X5=0;J=hGS;for(var q=Infinity;J;)if(J._call){q>J._time&&(q=J._time);var m=J;J=J._next}else e=J._next,J._next=null,J=m?m._next=e:hGS=e;aO=m;mA(q);uu=0}}
function cxe(){var J=ym.now(),e=J-Ao7;e>1E3&&(roE-=e,Ao7=J)}
function mA(J){X5||(EU&&(EU=clearTimeout(EU)),J-uu>24?(J<Infinity&&(EU=setTimeout(d1,J-ym.now()-roE)),Wx&&(Wx=clearInterval(Wx))):(Wx||(Ao7=ym.now(),Wx=setInterval(cxe,1E3)),X5=1,zuA(d1)))}
function Hle(J,e,q){var m=new AE;e=e==null?0:+e;m.restart(function(tm){m.stop();J(tm+e)},e,q);
return m}
function Ole(J,e,q,m,tm,Xx){var OS=J.__transition;if(!OS)J.__transition={};else if(q in OS)return;jNk(J,q,{name:e,index:m,group:tm,on:Lld,tween:J90,time:Xx.time,delay:Xx.delay,duration:Xx.duration,ease:Xx.ease,timer:null,state:0})}
function SoU(J,e){J=XH(J,e);if(J.state>0)throw Error("te");return J}
function CP(J,e){J=XH(J,e);if(J.state>2)throw Error("ue");return J}
function XH(J,e){J=J.__transition;if(!J||!(J=J[e]))throw Error("ve");return J}
function jNk(J,e,q){function m(ES){var z8,ae;if(q.state!==1)return Xx();for(dT in OS){var oe=OS[dT];if(oe.name===q.name){if(oe.state===3)return Hle(m);oe.state===4?(oe.state=6,oe.timer.stop(),oe.on.call("interrupt",J,J.__data__,oe.index,oe.group),delete OS[dT]):+dT<e&&(oe.state=6,oe.timer.stop(),delete OS[dT])}}Hle(function(){q.state===3&&(q.state=4,q.timer.restart(tm,q.delay,q.time),tm(ES))});
q.state=2;q.on.call("start",J,J.__data__,q.index,q.group);if(q.state===2){q.state=3;ie=Array(ae=q.tween.length);var dT=0;for(z8=-1;dT<ae;++dT)if(oe=q.tween[dT].value.call(J,J.__data__,q.index,q.group))ie[++z8]=oe;ie.length=z8+1}}
function tm(ES){ES=ES<q.duration?q.ease.call(null,ES/q.duration):(q.timer.restart(Xx),q.state=5,1);for(var z8=-1,ae=ie.length;++z8<ae;)ie[z8].call(null,ES);q.state===5&&(q.on.call("end",J,J.__data__,q.index,q.group),Xx())}
function Xx(){q.state=6;q.timer.stop();delete OS[e];for(var ES in OS)return;delete J.__transition}
var OS=J.__transition,ie;OS[e]=q;q.timer=fL(function(ES){q.state=1;q.timer.restart(m,q.delay,q.time);q.delay<=ES&&m(ES-q.delay)},0,q.time)}
function Fl9(J,e){var q,m;return function(){var tm=CP(this,J),Xx=tm.tween;if(Xx!==q){m=q=Xx;Xx=0;for(var OS=m.length;Xx<OS;++Xx)if(m[Xx].name===e){m=m.slice();m.splice(Xx,1);break}}tm.tween=m}}
function M5i(J,e,q){var m,tm;if(typeof q!=="function")throw Error();return function(){var Xx=CP(this,J),OS=Xx.tween;if(OS!==m){tm=(m=OS).slice();OS={name:e,value:q};for(var ie=0,ES=tm.length;ie<ES;++ie)if(tm[ie].name===e){tm[ie]=OS;break}ie===ES&&tm.push(OS)}Xx.tween=tm}}
function YoC(J,e,q){var m=J._id;J.each(function(){var tm=CP(this,m);(tm.value||(tm.value={}))[e]=q.apply(this,arguments)});
return function(tm){return XH(tm,m).value[e]}}
function yMJ(J,e){var q;return(typeof e==="number"?vM:e instanceof CK?ES_:(q=CK(e))?(e=q,ES_):XX)(J,e)}
function RWf(J){return function(){this.removeAttribute(J)}}
function qMD(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function QNE(J,e,q){var m,tm;return function(){var Xx=this.getAttribute(J);return Xx===q?null:Xx===m?tm:tm=e(m=Xx,q)}}
function xS0(J,e,q){var m,tm;return function(){var Xx=this.getAttributeNS(J.space,J.local);return Xx===q?null:Xx===m?tm:tm=e(m=Xx,q)}}
function bI0(J,e,q){var m,tm,Xx;return function(){var OS=q(this);if(OS==null)return void this.removeAttribute(J);var ie=this.getAttribute(J);return ie===OS?null:ie===m&&OS===tm?Xx:Xx=e(m=ie,tm=OS)}}
function sN2(J,e,q){var m,tm,Xx;return function(){var OS=q(this);if(OS==null)return void this.removeAttributeNS(J.space,J.local);var ie=this.getAttributeNS(J.space,J.local);return ie===OS?null:ie===m&&OS===tm?Xx:Xx=e(m=ie,tm=OS)}}
function uD9(J,e){function q(){var m=this,tm=e.apply(m,arguments);return tm&&function(Xx){m.setAttributeNS(J.space,J.local,tm(Xx))}}
q._value=e;return q}
function CED(J,e){function q(){var m=this,tm=e.apply(m,arguments);return tm&&function(Xx){m.setAttribute(J,tm(Xx))}}
q._value=e;return q}
function G6d(J,e){return function(){SoU(this,J).delay=+e.apply(this,arguments)}}
function DSi(J,e){return e=+e,function(){SoU(this,J).delay=e}}
function fAK(J,e){return function(){CP(this,J).duration=+e.apply(this,arguments)}}
function dSK(J,e){return e=+e,function(){CP(this,J).duration=e}}
function mSi(J,e){if(typeof e!=="function")throw Error();return function(){CP(this,J).ease=e}}
function V5X(J){return(J+"").trim().split(/^|\s+/).every(function(e){var q=e.indexOf(".");q>=0&&(e=e.slice(0,q));return!e||e==="start"})}
function zWa(J,e,q){var m,tm,Xx=V5X(e)?SoU:CP;return function(){var OS=Xx(this,J),ie=OS.on;if(ie!==m)(tm=(m=ie).copy()).on(e,q);OS.on=tm}}
function HIn(J){return function(){var e=this.parentNode,q;for(q in this.__transition)if(+q!==J)return;e&&e.removeChild(this)}}
function y9K(J,e){var q,m,tm;return function(){var Xx=C7(this,J),OS=(this.style.removeProperty(J),C7(this,J));return Xx===OS?null:Xx===q&&OS===m?tm:tm=e(q=Xx,m=OS)}}
function E20(J){return function(){this.style.removeProperty(J)}}
function aQn(J,e,q){var m,tm;return function(){var Xx=C7(this,J);return Xx===q?null:Xx===m?tm:tm=e(m=Xx,q)}}
function Wsn(J,e,q){var m,tm,Xx;return function(){var OS=C7(this,J),ie=q(this);ie==null&&(ie=(this.style.removeProperty(J),C7(this,J)));return OS===ie?null:OS===m&&ie===tm?Xx:Xx=e(m=OS,tm=ie)}}
function w5n(J,e,q){function m(){var tm=this,Xx=e.apply(tm,arguments);return Xx&&function(OS){tm.style.setProperty(J,Xx(OS),q)}}
m._value=e;return m}
function Zk0(J){return function(){this.textContent=J}}
function NDn(J){return function(){var e=J(this);this.textContent=e==null?"":e}}
function o7(J,e,q,m){this._groups=J;this._parents=e;this._name=q;this._id=m}
function Tlm(J){return{type:J}}
function K6x(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function iaE(){}
function alA(J,e){var q=new iaE;if(J instanceof iaE)J.each(function(OS,ie){q.set(ie,OS)});
else if(Array.isArray(J)){var m=-1,tm=J.length,Xx;if(e==null)for(;++m<tm;)q.set(m,J[m]);else for(;++m<tm;)q.set(e(Xx=J[m],m,J),Xx)}else if(J)for(m in J)q.set(m,J[m]);return q}
function cov(){}
function WFJ(J){return function(e){for(var q={},m=0;m<J.length;m++)q[J[m]]=e[m]||"";return q}}
function tX0(J,e){var q=WFJ(J);return function(m,tm){return e(q(m),tm,J)}}
function $5f(J){var e=Object.create(null),q=[];J.forEach(function(m){for(var tm in m)tm in e||q.push(e[tm]=tm)});
return q}
function woT(J){function e(OS,ie){function ES(){if(Se)return pTx;if(DP)return DP=!1,Zzy;var yl,EW=oe,jW;if(OS.charCodeAt(EW)===34){for(;oe++<ae&&OS.charCodeAt(oe)!==34||OS.charCodeAt(++oe)===34;);(yl=oe)>=ae?Se=!0:(jW=OS.charCodeAt(oe++))===10?DP=!0:jW===13&&(DP=!0,OS.charCodeAt(oe)===10&&++oe);return OS.slice(EW+1,yl-1).replace(/""/g,'"')}for(;oe<ae;){if((jW=OS.charCodeAt(yl=oe++))===10)DP=!0;else if(jW===13)DP=!0,OS.charCodeAt(oe)===10&&++oe;else if(jW!==Xx)continue;return OS.slice(EW,yl)}return Se=
!0,OS.slice(EW,ae)}
var z8=[],ae=OS.length,oe=0,dT=0,kd,Se=ae<=0,DP=!1;OS.charCodeAt(ae-1)===10&&--ae;for(OS.charCodeAt(ae-1)===13&&--ae;(kd=ES())!==pTx;){for(var AY=[];kd!==Zzy&&kd!==pTx;)AY.push(kd),kd=ES();ie&&(AY=ie(AY,dT++))==null||z8.push(AY)}return z8}
function q(OS){return OS.map(m).join(J)}
function m(OS){return OS==null?"":tm.test(OS)?'"'+OS.replace(/"/g,'""')+'"':OS}
var tm=new RegExp('["'+J+"\n\r]"),Xx=J.charCodeAt(0);return{parse:function(OS,ie){var ES,z8;OS=e(OS,function(ae,oe){if(ES)return ES(ae,oe-1);z8=ae;ES=ie?tX0(ae,ie):WFJ(ae)});
OS.columns=z8||[];return OS},
parseRows:e,format:function(OS,ie){ie==null&&(ie=$5f(OS));return[ie.map(m).join(J)].concat(OS.map(function(ES){return ie.map(function(z8){return m(ES[z8])}).join(J)})).join("\n")},
formatRows:function(OS){return OS.map(q).join("\n")}}}
function BDk(J){if(!J.ok)throw Error("we`"+J.status+"`"+J.statusText);return J.text()}
function N7J(J){return function(e,q,m){arguments.length===2&&typeof q==="function"&&(m=q,q=void 0);return fetch(e,q).then(BDk).then(function(tm){return J(tm,m)})}}
function tTR(J,e,q,m){if(isNaN(e)||isNaN(q))return J;var tm,Xx=J._root;m={data:m};var OS=J._x0,ie=J._y0,ES=J._x1,z8=J._y1,ae,oe,dT,kd,Se;if(!Xx)return J._root=m,J;for(;Xx.length;)if((dT=e>=(ae=(OS+ES)/2))?OS=ae:ES=ae,(kd=q>=(oe=(ie+z8)/2))?ie=oe:z8=oe,tm=Xx,!(Xx=Xx[Se=kd<<1|dT]))return tm[Se]=m,J;var DP=+J._x.call(null,Xx.data);var AY=+J._y.call(null,Xx.data);if(e===DP&&q===AY)return m.next=Xx,tm?tm[Se]=m:J._root=m,J;do tm=tm?tm[Se]=Array(4):J._root=Array(4),(dT=e>=(ae=(OS+ES)/2))?OS=ae:ES=ae,(kd=
q>=(oe=(ie+z8)/2))?ie=oe:z8=oe;while((Se=kd<<1|dT)===(dT=(AY>=oe)<<1|DP>=ae));return tm[dT]=Xx,tm[Se]=m,J}
function tt(J,e,q,m,tm){this.node=J;this.x0=e;this.y0=q;this.x1=m;this.y1=tm}
function lQX(J){return J[0]}
function IQa(J){return J[1]}
function rMD(J,e,q,m,tm,Xx){this._x=J;this._y=e;this._x0=q;this._y0=m;this._x1=tm;this._y1=Xx;this._root=void 0}
function $aT(J){for(var e={data:J.data},q=e;J=J.next;)q=q.next={data:J.data};return e}
function eGe(J,e){if((e=(J=e?J.toExponential(e-1):J.toExponential()).indexOf("e"))<0)return null;var q=J.slice(0,e);return[q.length>1?q[0]+q.slice(2):q,+J.slice(e+1)]}
function Pg9(J){return J=eGe(Math.abs(J)),J?J[1]:NaN}
function X5X(J,e){return function(q,m){for(var tm=q.length,Xx=[],OS=0,ie=J[0],ES=0;tm>0&&ie>0;){ES+ie+1>m&&(ie=Math.max(1,m-ES));Xx.push(q.substring(tm-=ie,tm+ie));if((ES+=ie+1)>m)break;ie=J[OS=(OS+1)%J.length]}return Xx.reverse().join(e)}}
function vOd(J){return function(e){return e.replace(/[0-9]/g,function(q){return J[+q]})}}
function AMe(J){return new huS(J)}
function huS(J){if(!(e=gOE.exec(J)))throw Error("xe`"+J);var e;this.fill=e[1]||" ";this.align=e[2]||">";this.sign=e[3]||"-";this.symbol=e[4]||"";this.zero=!!e[5];this.width=e[6]&&+e[6];this.comma=!!e[7];this.precision=e[8]&&+e[8].slice(1);this.trim=!!e[9];this.type=e[10]||""}
function B7h(J,e){e=eGe(J,e);if(!e)return J+"";J=e[0];e=e[1];return e<0?"0."+Array(-e).join("0")+J:J.length>e+1?J.slice(0,e+1)+"."+J.slice(e+1):J+Array(e-J.length+2).join("0")}
function llT(J){return J}
function oO9(J){function e(ie){function ES(zk){var Ux=jW,j0=Pe,oP,wC;if(EW==="c")j0=au(zk)+j0,zk="";else{zk=+zk;var Yd=zk<0;zk=au(Math.abs(zk),AY);if(yl){var m$=zk.length,FI=1,Ex=-1;a:for(;FI<m$;++FI)switch(zk[FI]){case ".":Ex=oP=FI;break;case "0":Ex===0&&(Ex=FI);oP=FI;break;default:if(!+zk[FI])break a;Ex>0&&(Ex=0)}zk=Ex>0?zk.slice(0,Ex)+zk.slice(oP+1):zk}Yd&&+zk===0&&(Yd=!1);Ux=(Yd?oe==="("?oe:"-":oe==="-"||oe==="("?"":oe)+Ux;j0=(EW==="s"?Il_[8+PH_/3]:"")+j0+(Yd&&oe==="("?")":"");if(UT)for(Yd=-1,
oP=zk.length;++Yd<oP;)if(wC=zk.charCodeAt(Yd),48>wC||wC>57){j0=(wC===46?tm+zk.slice(Yd+1):zk.slice(Yd))+j0;zk=zk.slice(0,Yd);break}}DP&&!kd&&(zk=q(zk,Infinity));wC=Ux.length+zk.length+j0.length;Yd=wC<Se?Array(Se-wC+1).join(z8):"";DP&&kd&&(zk=q(Yd+zk,Yd.length?Se-j0.length:Infinity),Yd="");switch(ae){case "<":zk=Ux+zk+j0+Yd;break;case "=":zk=Ux+Yd+zk+j0;break;case "^":zk=Yd.slice(0,wC=Yd.length>>1)+Ux+zk+j0+Yd.slice(wC);break;default:zk=Yd+Ux+zk+j0}return Xx(zk)}
ie=AMe(ie);var z8=ie.fill,ae=ie.align,oe=ie.sign,dT=ie.symbol,kd=ie.zero,Se=ie.width,DP=ie.comma,AY=ie.precision,yl=ie.trim,EW=ie.type;EW==="n"?(DP=!0,EW="g"):Xoh[EW]||(AY==null&&(AY=12),yl=!0,EW="g");if(kd||z8==="0"&&ae==="=")kd=!0,z8="0",ae="=";var jW=dT==="$"?m[0]:dT==="#"&&/[boxX]/.test(EW)?"0"+EW.toLowerCase():"",Pe=dT==="$"?m[1]:/[%p]/.test(EW)?OS:"",au=Xoh[EW],UT=/[defgprs%]/.test(EW);AY=AY==null?6:/[gprs]/.test(EW)?Math.max(1,Math.min(21,AY)):Math.max(0,Math.min(20,AY));ES.toString=function(){return ie+
""};
return ES}
var q=J.grouping&&J.thousands?X5X(J.grouping,J.thousands):llT,m=J.currency,tm=J.decimal,Xx=J.numerals?vOd(J.numerals):llT,OS=J.percent||"%";return{format:e,formatPrefix:function(ie,ES){var z8=e((ie=AMe(ie),ie.type="f",ie));ie=Math.max(-8,Math.min(8,Math.floor(Pg9(ES)/3)))*3;var ae=Math.pow(10,-ie),oe=Il_[8+ie/3];return function(dT){return z8(ae*dT)+oe}}}}
function uB(){this.reset()}
function vcJ(J,e,q){var m=J.s=e+q,tm=m-e;J.t=e-(m-tm)+(q-tm)}
function n1v(J){return J>1?Dr:J<-1?-Dr:Math.asin(J)}
function kiI(){}
function gc6(J){var e=J[0];J=J[1];var q=fw(J);return[q*fw(e),q*qn(e),qn(J)]}
function ocV(J,e){return[J[1]*e[2]-J[2]*e[1],J[2]*e[0]-J[0]*e[2],J[0]*e[1]-J[1]*e[0]]}
function kzL(J){var e=juU(J[0]*J[0]+J[1]*J[1]+J[2]*J[2]);J[0]/=e;J[1]/=e;J[2]/=e}
function U52(){var J=[],e;return{point:function(q,m){e.push([q,m])},
lineStart:function(){J.push(e=[])},
lineEnd:kiI,rejoin:function(){J.length>1&&J.push(J.pop().concat(J.shift()))},
result:function(){var q=J;J=[];e=null;return q}}}
function L$I(J,e,q,m){this.x=J;this.z=e;this.o=q;this.e=m;this.v=!1;this.n=this.p=null}
function Ok0(J,e,q,m,tm){var Xx=[],OS=[];J.forEach(function(oe){if(!((dT=oe.length-1)<=0)){var dT,kd=oe[0],Se=oe[dT],DP=kd;if(kZ(DP[0]-Se[0])<1E-6&&kZ(DP[1]-Se[1])<1E-6){tm.lineStart();for(ie=0;ie<dT;++ie)tm.point((kd=oe[ie])[0],kd[1]);tm.lineEnd()}else Xx.push(dT=new L$I(kd,oe,null,!0)),OS.push(dT.o=new L$I(kd,null,dT,!1)),Xx.push(dT=new L$I(Se,oe,null,!1)),OS.push(dT.o=new L$I(Se,null,dT,!0))}});
if(Xx.length){OS.sort(e);Ua$(Xx);Ua$(OS);var ie=0;for(J=OS.length;ie<J;++ie)OS[ie].e=q=!q;q=Xx[0];for(var ES;;){for(var z8=q,ae=!0;z8.v;)if((z8=z8.n)===q)return;e=z8.z;tm.lineStart();do{z8.v=z8.o.v=!0;if(z8.e){if(ae)for(ie=0,J=e.length;ie<J;++ie)tm.point((ES=e[ie])[0],ES[1]);else m(z8.x,z8.n.x,1,tm);z8=z8.n}else{if(ae)for(e=z8.p.z,ie=e.length-1;ie>=0;--ie)tm.point((ES=e[ie])[0],ES[1]);else m(z8.x,z8.p.x,-1,tm);z8=z8.p}z8=z8.o;e=z8.z;ae=!ae}while(!z8.v);tm.lineEnd()}}}
function Ua$(J){if(e=J.length){for(var e,q=0,m=J[0],tm;++q<e;)m.n=tm=J[q],tm.p=m,m=tm;m.n=tm=J[0];tm.p=m}}
function SlD(J){return J.length>1}
function YlI(J,e){return((J=J.x)[0]<0?J[1]-Dr-1E-6:Dr-J[1])-((e=e.x)[0]<0?e[1]-Dr-1E-6:Dr-e[1])}
function ilm(){}
function OzL(J){return function(e,q){var m=fw(e),tm=fw(q);m=J(m*tm);return[m*tm*qn(e),m*qn(q)]}}
function wv(J){return function(e,q){var m=juU(e*e+q*q),tm=J(m),Xx=qn(tm);tm=fw(tm);return[SjV(e*Xx,m*tm),n1v(m&&q*Xx/m)]}}
function TDa(J){var e=0,q=J.children,m=q&&q.length;if(m)for(;--m>=0;)e+=q[m].value;else e=1;J.value=e}
function Yjl(J,e){var q=new Zy(J);J=+J.value&&(q.value=J.value);var m,tm=[q],Xx,OS,ie,ES;for(e==null&&(e=Ks0);m=tm.pop();)if(J&&(m.value=+m.data.value),(OS=e(m.data))&&(ES=OS.length))for(m.children=Array(ES),ie=ES-1;ie>=0;--ie)tm.push(Xx=m.children[ie]=new Zy(OS[ie])),Xx.parent=m,Xx.depth=m.depth+1;return q.eachBefore(p5I)}
function Ks0(J){return J.children}
function rdf(J){J.data=J.data.data}
function p5I(J){var e=0;do J.height=e;while((J=J.parent)&&J.height<++e)}
function Zy(J){this.data=J;this.depth=this.height=0;this.parent=null}
function i6(J,e,q,m){function tm(Xx){return J(Xx=new Date(+Xx)),Xx}
tm.floor=tm;tm.ceil=function(Xx){return J(Xx=new Date(Xx-1)),e(Xx,1),J(Xx),Xx};
tm.round=function(Xx){var OS=tm(Xx),ie=tm.ceil(Xx);return Xx-OS<ie-Xx?OS:ie};
tm.offset=function(Xx,OS){return e(Xx=new Date(+Xx),OS==null?1:Math.floor(OS)),Xx};
tm.range=function(Xx,OS,ie){var ES=[],z8;Xx=tm.ceil(Xx);ie=ie==null?1:Math.floor(ie);if(!(Xx<OS&&ie>0))return ES;do ES.push(z8=new Date(+Xx)),e(Xx,ie),J(Xx);while(z8<Xx&&Xx<OS);return ES};
tm.filter=function(Xx){return i6(function(OS){if(OS>=OS)for(;J(OS),!Xx(OS);)OS.setTime(OS-1)},function(OS,ie){if(OS>=OS)if(ie<0)for(;++ie<=0;)for(;e(OS,-1),!Xx(OS););
else for(;--ie>=0;)for(;e(OS,1),!Xx(OS););})};
q&&(tm.count=function(Xx,OS){cMD.setTime(+Xx);euI.setTime(+OS);J(cMD);J(euI);return Math.floor(q(cMD,euI))},tm.every=function(Xx){Xx=Math.floor(Xx);
return isFinite(Xx)&&Xx>0?Xx>1?tm.filter(m?function(OS){return m(OS)%Xx===0}:function(OS){return tm.count(0,OS)%Xx===0}):tm:null});
return tm}
function GW(J){return i6(function(e){e.setDate(e.getDate()-(e.getDay()+7-J)%7);e.setHours(0,0,0,0)},function(e,q){e.setDate(e.getDate()+q*7)},function(e,q){return(q-e-(q.getTimezoneOffset()-e.getTimezoneOffset())*6E4)/6048E5})}
function Dm(J){return i6(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-J)%7);e.setUTCHours(0,0,0,0)},function(e,q){e.setUTCDate(e.getUTCDate()+q*7)},function(e,q){return(q-e)/6048E5})}
function Ad0(J){if(0<=J.y&&J.y<100){var e=new Date(-1,J.m,J.d,J.H,J.M,J.S,J.L);e.setFullYear(J.y);return e}return new Date(J.y,J.m,J.d,J.H,J.M,J.S,J.L)}
function JoD(J){if(0<=J.y&&J.y<100){var e=new Date(Date.UTC(-1,J.m,J.d,J.H,J.M,J.S,J.L));e.setUTCFullYear(J.y);return e}return new Date(Date.UTC(J.y,J.m,J.d,J.H,J.M,J.S,J.L))}
function NG(J){return{y:J,m:0,d:1,H:0,M:0,S:0,L:0}}
function haI(J){function e(j0,oP){return function(wC){var Yd=[],m$=-1,FI=0,Ex=j0.length,Ot,jG;for(wC instanceof Date||(wC=new Date(+wC));++m$<Ex;)if(j0.charCodeAt(m$)===37){Yd.push(j0.slice(FI,m$));(FI=T7h[Ot=j0.charAt(++m$)])!=null?Ot=j0.charAt(++m$):FI=Ot==="e"?" ":"0";if(jG=oP[Ot])Ot=jG(wC,FI);Yd.push(Ot);FI=m$+1}Yd.push(j0.slice(FI,m$));return Yd.join("")}}
function q(j0,oP){return function(wC){var Yd=NG(1900);if(m(Yd,j0,wC,0)!=wC.length)return null;if("Q"in Yd)return new Date(Yd.Q);"p"in Yd&&(Yd.H=Yd.H%12+Yd.p*12);if("V"in Yd){if(Yd.V<1||Yd.V>53)return null;"w"in Yd||(Yd.w=1);if("Z"in Yd){wC=JoD(NG(Yd.y));var m$=wC.getUTCDay();wC=m$>4||m$===0?nSE.ceil(wC):nSE(wC);wC=KFT.offset(wC,(Yd.V-1)*7);Yd.y=wC.getUTCFullYear();Yd.m=wC.getUTCMonth();Yd.d=wC.getUTCDate()+(Yd.w+6)%7}else wC=oP(NG(Yd.y)),m$=wC.getDay(),wC=m$>4||m$===0?jAU.ceil(wC):jAU(wC),wC=poy.offset(wC,
(Yd.V-1)*7),Yd.y=wC.getFullYear(),Yd.m=wC.getMonth(),Yd.d=wC.getDate()+(Yd.w+6)%7}else if("W"in Yd||"U"in Yd)"w"in Yd||(Yd.w="u"in Yd?Yd.u%7:"W"in Yd?1:0),m$="Z"in Yd?JoD(NG(Yd.y)).getUTCDay():oP(NG(Yd.y)).getDay(),Yd.m=0,Yd.d="W"in Yd?(Yd.w+6)%7+Yd.W*7-(m$+5)%7:Yd.w+Yd.U*7-(m$+6)%7;return"Z"in Yd?(Yd.H+=Yd.Z/100|0,Yd.M+=Yd.Z%100,JoD(Yd)):oP(Yd)}}
function m(j0,oP,wC,Yd){for(var m$=0,FI=oP.length,Ex=wC.length,Ot;m$<FI;){if(Yd>=Ex)return-1;Ot=oP.charCodeAt(m$++);if(Ot===37){if(Ot=oP.charAt(m$++),Ot=Ux[Ot in T7h?oP.charAt(m$++):Ot],!Ot||(Yd=Ot(j0,wC,Yd))<0)return-1}else if(Ot!=wC.charCodeAt(Yd++))return-1}return Yd}
var tm=J.dateTime,Xx=J.date,OS=J.time,ie=J.periods,ES=J.days,z8=J.shortDays,ae=J.months,oe=J.shortMonths,dT=tn(ie),kd=$W(ie),Se=tn(ES),DP=$W(ES),AY=tn(z8),yl=$W(z8),EW=tn(ae),jW=$W(ae),Pe=tn(oe),au=$W(oe),UT={a:function(j0){return z8[j0.getDay()]},
A:function(j0){return ES[j0.getDay()]},
b:function(j0){return oe[j0.getMonth()]},
B:function(j0){return ae[j0.getMonth()]},
c:null,d:r4R,e:r4R,f:ik2,H:cd9,I:ea0,j:nOD,L:A4A,m:jkX,M:LsX,p:function(j0){return ie[+(j0.getHours()>=12)]},
Q:h_A,s:izJ,S:Jd0,u:FsX,U:MXn,V:Ran,w:qlX,W:Qk0,x:null,X:null,y:x5f,Y:bkz,Z:skI,"%":c4V},zk={a:function(j0){return z8[j0.getUTCDay()]},
A:function(j0){return ES[j0.getUTCDay()]},
b:function(j0){return oe[j0.getUTCMonth()]},
B:function(j0){return ae[j0.getUTCMonth()]},
c:null,d:e_R,e:e_R,f:uwD,H:CgK,I:GiD,j:D50,L:nc_,m:fQX,M:d5I,p:function(j0){return ie[+(j0.getUTCHours()>=12)]},
Q:h_A,s:izJ,S:m5k,u:VXd,U:zaz,V:HkE,w:yd0,W:EOX,x:null,X:null,y:a$i,Y:W1z,Z:wyX,"%":c4V},Ux={a:function(j0,oP,wC){return(oP=AY.exec(oP.slice(wC)))?(j0.w=yl[oP[0].toLowerCase()],wC+oP[0].length):-1},
A:function(j0,oP,wC){return(oP=Se.exec(oP.slice(wC)))?(j0.w=DP[oP[0].toLowerCase()],wC+oP[0].length):-1},
b:function(j0,oP,wC){return(oP=Pe.exec(oP.slice(wC)))?(j0.m=au[oP[0].toLowerCase()],wC+oP[0].length):-1},
B:function(j0,oP,wC){return(oP=EW.exec(oP.slice(wC)))?(j0.m=jW[oP[0].toLowerCase()],wC+oP[0].length):-1},
c:function(j0,oP,wC){return m(j0,tm,oP,wC)},
d:jiV,e:jiV,f:Z9n,H:LFy,I:LFy,j:NIk,L:tSd,m:$Pf,M:BIk,p:function(j0,oP,wC){return(oP=dT.exec(oP.slice(wC)))?(j0.p=kd[oP[0].toLowerCase()],wC+oP[0].length):-1},
Q:l$0,s:I$I,S:Pcf,u:Xy0,U:v$X,V:g$n,w:o$0,W:k_z,x:function(j0,oP,wC){return m(j0,Xx,oP,wC)},
X:function(j0,oP,wC){return m(j0,OS,oP,wC)},
y:UP2,Y:O9k,Z:S1D,"%":Y10};UT.x=e(Xx,UT);UT.X=e(OS,UT);UT.c=e(tm,UT);zk.x=e(Xx,zk);zk.X=e(OS,zk);zk.c=e(tm,zk);return{format:function(j0){var oP=e(j0,UT);oP.toString=function(){return j0};
return oP},
parse:function(j0){var oP=q(j0,Ad0);oP.toString=function(){return j0};
return oP},
utcFormat:function(j0){var oP=e(j0,zk);oP.toString=function(){return j0};
return oP},
utcParse:function(j0){var oP=q(j0,JoD);oP.toString=function(){return j0};
return oP}}}
function rj(J,e,q){var m=J<0?"-":"";J=(m?-J:J)+"";var tm=J.length;return m+(tm<q?Array(q-tm+1).join(e)+J:J)}
function TIX(J){return J.replace(K10,"\\$&")}
function tn(J){return new RegExp("^(?:"+J.map(TIX).join("|")+")","i")}
function $W(J){for(var e={},q=-1,m=J.length;++q<m;)e[J[q].toLowerCase()]=q;return e}
function o$0(J,e,q){return(e=LD.exec(e.slice(q,q+1)))?(J.w=+e[0],q+e[0].length):-1}
function Xy0(J,e,q){return(e=LD.exec(e.slice(q,q+1)))?(J.u=+e[0],q+e[0].length):-1}
function v$X(J,e,q){return(e=LD.exec(e.slice(q,q+2)))?(J.U=+e[0],q+e[0].length):-1}
function g$n(J,e,q){return(e=LD.exec(e.slice(q,q+2)))?(J.V=+e[0],q+e[0].length):-1}
function k_z(J,e,q){return(e=LD.exec(e.slice(q,q+2)))?(J.W=+e[0],q+e[0].length):-1}
function O9k(J,e,q){return(e=LD.exec(e.slice(q,q+4)))?(J.y=+e[0],q+e[0].length):-1}
function UP2(J,e,q){return(e=LD.exec(e.slice(q,q+2)))?(J.y=+e[0]+(+e[0]>68?1900:2E3),q+e[0].length):-1}
function S1D(J,e,q){return(e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(q,q+6)))?(J.Z=e[1]?0:-(e[2]+(e[3]||"00")),q+e[0].length):-1}
function $Pf(J,e,q){return(e=LD.exec(e.slice(q,q+2)))?(J.m=e[0]-1,q+e[0].length):-1}
function jiV(J,e,q){return(e=LD.exec(e.slice(q,q+2)))?(J.d=+e[0],q+e[0].length):-1}
function NIk(J,e,q){return(e=LD.exec(e.slice(q,q+3)))?(J.m=0,J.d=+e[0],q+e[0].length):-1}
function LFy(J,e,q){return(e=LD.exec(e.slice(q,q+2)))?(J.H=+e[0],q+e[0].length):-1}
function BIk(J,e,q){return(e=LD.exec(e.slice(q,q+2)))?(J.M=+e[0],q+e[0].length):-1}
function Pcf(J,e,q){return(e=LD.exec(e.slice(q,q+2)))?(J.S=+e[0],q+e[0].length):-1}
function tSd(J,e,q){return(e=LD.exec(e.slice(q,q+3)))?(J.L=+e[0],q+e[0].length):-1}
function Z9n(J,e,q){return(e=LD.exec(e.slice(q,q+6)))?(J.L=Math.floor(e[0]/1E3),q+e[0].length):-1}
function Y10(J,e,q){return(J=pyK.exec(e.slice(q,q+1)))?q+J[0].length:-1}
function l$0(J,e,q){return(e=LD.exec(e.slice(q)))?(J.Q=+e[0],q+e[0].length):-1}
function I$I(J,e,q){return(e=LD.exec(e.slice(q)))?(J.Q=+e[0]*1E3,q+e[0].length):-1}
function r4R(J,e){return rj(J.getDate(),e,2)}
function cd9(J,e){return rj(J.getHours(),e,2)}
function ea0(J,e){return rj(J.getHours()%12||12,e,2)}
function nOD(J,e){return rj(1+poy.count(vg(J),J),e,3)}
function A4A(J,e){return rj(J.getMilliseconds(),e,3)}
function ik2(J,e){return A4A(J,e)+"000"}
function jkX(J,e){return rj(J.getMonth()+1,e,2)}
function LsX(J,e){return rj(J.getMinutes(),e,2)}
function Jd0(J,e){return rj(J.getSeconds(),e,2)}
function FsX(J){J=J.getDay();return J===0?7:J}
function MXn(J,e){return rj(r1f.count(vg(J),J),e,2)}
function Ran(J,e){var q=J.getDay();J=q>=4||q===0?L6e(J):L6e.ceil(J);return rj(L6e.count(vg(J),J)+(vg(J).getDay()===4),e,2)}
function qlX(J){return J.getDay()}
function Qk0(J,e){return rj(jAU.count(vg(J),J),e,2)}
function x5f(J,e){return rj(J.getFullYear()%100,e,2)}
function bkz(J,e){return rj(J.getFullYear()%1E4,e,4)}
function skI(J){J=J.getTimezoneOffset();return(J>0?"-":(J*=-1,"+"))+rj(J/60|0,"0",2)+rj(J%60,"0",2)}
function e_R(J,e){return rj(J.getUTCDate(),e,2)}
function CgK(J,e){return rj(J.getUTCHours(),e,2)}
function GiD(J,e){return rj(J.getUTCHours()%12||12,e,2)}
function D50(J,e){return rj(1+KFT.count(gY(J),J),e,3)}
function nc_(J,e){return rj(J.getUTCMilliseconds(),e,3)}
function uwD(J,e){return nc_(J,e)+"000"}
function fQX(J,e){return rj(J.getUTCMonth()+1,e,2)}
function d5I(J,e){return rj(J.getUTCMinutes(),e,2)}
function m5k(J,e){return rj(J.getUTCSeconds(),e,2)}
function VXd(J){J=J.getUTCDay();return J===0?7:J}
function zaz(J,e){return rj(A1a.count(gY(J),J),e,2)}
function HkE(J,e){var q=J.getUTCDay();J=q>=4||q===0?JMI(J):JMI.ceil(J);return rj(JMI.count(gY(J),J)+(gY(J).getUTCDay()===4),e,2)}
function yd0(J){return J.getUTCDay()}
function EOX(J,e){return rj(nSE.count(gY(J),J),e,2)}
function a$i(J,e){return rj(J.getUTCFullYear()%100,e,2)}
function W1z(J,e){return rj(J.getUTCFullYear()%1E4,e,4)}
function wyX(){return"+0000"}
function c4V(){return"%"}
function h_A(J){return+J}
function izJ(J){return Math.floor(+J/1E3)}
function Bb(J){for(var e=J.length/6|0,q=Array(e),m=0;m<e;)q[m]="#"+J.slice(m*6,++m*6);return q}
function Vt(J){return hTn(J[J.length-1])}
function F$e(J){var e=J.length;return function(q){return J[Math.max(0,Math.min(e-1,Math.floor(q*e)))]}}
function J4T(J){this._context=J}
function FFy(J){this._curve=J}
function MTA(J,e,q){var m=J._x1-J._x0;e-=J._x1;var tm=(J._y1-J._y0)/(m||e<0&&-0);J=(q-J._y1)/(e||m<0&&-0);return((tm<0?-1:1)+(J<0?-1:1))*Math.min(Math.abs(tm),Math.abs(J),.5*Math.abs((tm*e+J*m)/(m+e)))||0}
function R_H(J,e){var q=J._x1-J._x0;return q?(3*(J._y1-J._y0)/q-e)/2:e}
function F6x(J,e,q){var m=J._x0,tm=J._x1,Xx=J._y1,OS=(tm-m)/3;J._context.bezierCurveTo(m+OS,J._y0+OS*e,tm-OS,Xx-OS*q,tm,Xx)}
function MGU(J){this._context=J}
function qj$(J){this._context=J}
function Bx(J,e,q){this.k=J;this.x=e;this.y=q}
(function(J){J.length===1&&(J=W(J));return{left:function(e,q,m,tm){m==null&&(m=0);tm==null&&(tm=e.length);for(;m<tm;){var Xx=m+tm>>>1;J(e[Xx],q)<0?m=Xx+1:tm=Xx}return m},
right:function(e,q,m,tm){m==null&&(m=0);tm==null&&(tm=e.length);for(;m<tm;){var Xx=m+tm>>>1;J(e[Xx],q)>0?tm=Xx:m=Xx+1}return m}}})(a);
var SMn={value:function(){}};
Z.prototype=w.prototype={constructor:Z,on:function(J,e){var q=this._,m=N(J+"",q),tm,Xx=-1,OS=m.length;if(arguments.length<2)for(;++Xx<OS;){var ie;if(ie=tm=(J=m[Xx]).type){a:{ie=q[tm];for(var ES=0,z8=ie.length;ES<z8;++ES)if((tm=ie[ES]).name===J.name){tm=tm.value;break a}tm=void 0}ie=tm}if(ie)return tm}else{if(e!=null&&typeof e!=="function")throw Error("ye`"+e);for(;++Xx<OS;)if(tm=(J=m[Xx]).type)q[tm]=B(q[tm],J.name,e);else if(e==null)for(tm in q)q[tm]=B(q[tm],J.name,null);return this}},
copy:function(){var J={},e=this._,q;for(q in e)J[q]=e[q].slice();return new Z(J)},
call:function(J,e){if((tm=arguments.length-2)>0)for(var q=Array(tm),m=0,tm,Xx;m<tm;++m)q[m]=arguments[m+2];if(!this._.hasOwnProperty(J))throw Error("se`"+J);Xx=this._[J];m=0;for(tm=Xx.length;m<tm;++m)Xx[m].value.apply(e,q)},
apply:function(J,e,q){if(!this._.hasOwnProperty(J))throw Error("se`"+J);J=this._[J];for(var m=0,tm=J.length;m<tm;++m)J[m].value.apply(e,q)}};
var Gb={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/"},QiR=function(J){return function(){return this.matches(J)}};
if(typeof document!=="undefined"){var lP=document.documentElement;if(!lP.matches){var i99=lP.webkitMatchesSelector||lP.msMatchesSelector||lP.mozMatchesSelector||lP.oMatchesSelector;QiR=function(J){return function(){return i99.call(this,J)}}}}var xaL=QiR;
p.prototype={constructor:p,appendChild:function(J){return this._parent.insertBefore(J,this._next)},
insertBefore:function(J,e){return this._parent.insertBefore(J,e)},
querySelector:function(J){return this._parent.querySelector(J)},
querySelectorAll:function(J){return this._parent.querySelectorAll(J)}};
var uce={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(uce={mouseenter:"mouseover",mouseleave:"mouseout"}));var YM9=[null];K6.prototype=P2.prototype={constructor:K6,select:function(J){typeof J!=="function"&&(J=S(J));for(var e=this._groups,q=e.length,m=Array(q),tm=0;tm<q;++tm)for(var Xx=e[tm],OS=Xx.length,ie=m[tm]=Array(OS),ES,z8,ae=0;ae<OS;++ae)(ES=Xx[ae])&&(z8=J.call(ES,ES.__data__,ae,Xx))&&("__data__"in ES&&(z8.__data__=ES.__data__),ie[ae]=z8);return new K6(m,this._parents)},
filter:function(J){typeof J!=="function"&&(J=xaL(J));for(var e=this._groups,q=e.length,m=Array(q),tm=0;tm<q;++tm)for(var Xx=e[tm],OS=Xx.length,ie=m[tm]=[],ES,z8=0;z8<OS;++z8)(ES=Xx[z8])&&J.call(ES,ES.__data__,z8,Xx)&&ie.push(ES);return new K6(m,this._parents)},
data:function(J,e){if(!J)return kd=Array(this.size()),z8=-1,this.each(function(EW){kd[++z8]=EW}),kd;
var q=e?F:L,m=this._parents,tm=this._groups;typeof J!=="function"&&(J=h(J));for(var Xx=tm.length,OS=Array(Xx),ie=Array(Xx),ES=Array(Xx),z8=0;z8<Xx;++z8){var ae=m[z8],oe=tm[z8],dT=oe.length,kd=J.call(ae,ae&&ae.__data__,z8,m),Se=kd.length,DP=ie[z8]=Array(Se),AY=OS[z8]=Array(Se);dT=ES[z8]=Array(dT);q(ae,oe,DP,AY,dT,kd,e);oe=ae=0;for(var yl;ae<Se;++ae)if(dT=DP[ae]){for(ae>=oe&&(oe=ae+1);!(yl=AY[oe])&&++oe<Se;);dT._next=yl||null}}OS=new K6(OS,m);OS._enter=ie;OS._exit=ES;return OS},
exit:function(){return new K6(this._exit||this._groups.map(T),this._parents)},
merge:function(J){var e=this._groups;J=J._groups;for(var q=e.length,m=Math.min(q,J.length),tm=Array(q),Xx=0;Xx<m;++Xx)for(var OS=e[Xx],ie=J[Xx],ES=OS.length,z8=tm[Xx]=Array(ES),ae,oe=0;oe<ES;++oe)if(ae=OS[oe]||ie[oe])z8[oe]=ae;for(;Xx<q;++Xx)tm[Xx]=e[Xx];return new K6(tm,this._parents)},
order:function(){for(var J=this._groups,e=-1,q=J.length;++e<q;)for(var m=J[e],tm=m.length-1,Xx=m[tm],OS;--tm>=0;)if(OS=m[tm])Xx&&Xx!==OS.nextSibling&&Xx.parentNode.insertBefore(OS,Xx),Xx=OS;return this},
sort:function(J){function e(oe,dT){return oe&&dT?J(oe.__data__,dT.__data__):!oe-!dT}
J||(J=x);for(var q=this._groups,m=q.length,tm=Array(m),Xx=0;Xx<m;++Xx){for(var OS=q[Xx],ie=OS.length,ES=tm[Xx]=Array(ie),z8,ae=0;ae<ie;++ae)if(z8=OS[ae])ES[ae]=z8;ES.sort(e)}return(new K6(tm,this._parents)).order()},
call:function(){var J=arguments[0];arguments[0]=this;J.apply(null,arguments);return this},
nodes:function(){var J=Array(this.size()),e=-1;this.each(function(){J[++e]=this});
return J},
node:function(){for(var J=this._groups,e=0,q=J.length;e<q;++e)for(var m=J[e],tm=0,Xx=m.length;tm<Xx;++tm){var OS=m[tm];if(OS)return OS}return null},
size:function(){var J=0;this.each(function(){++J});
return J},
empty:function(){return!this.node()},
each:function(J){for(var e=this._groups,q=0,m=e.length;q<m;++q)for(var tm=e[q],Xx=0,OS=tm.length,ie;Xx<OS;++Xx)(ie=tm[Xx])&&J.call(ie,ie.__data__,Xx,tm);return this},
attr:function(J,e){var q=I(J);if(arguments.length<2){var m=this.node();return q.local?m.getAttributeNS(q.space,q.local):m.getAttribute(q)}return this.each((e==null?q.local?V:G:typeof e==="function"?q.local?Bv:aC:q.local?ZD:d)(q,e))},
style:function(J,e,q){return arguments.length>1?this.each((e==null?Am:typeof e==="function"?cv:e9)(J,e,q==null?"":q)):C7(this.node(),J)},
property:function(J,e){return arguments.length>1?this.each((e==null?RC:typeof e==="function"?QF:G8)(J,e)):this.node()[J]},
text:function(J){return arguments.length?this.each(J==null?vl:(typeof J==="function"?SV:Hl)(J)):this.node().textContent},
html:function(J){return arguments.length?this.each(J==null?Ny:(typeof J==="function"?JL:Bl)(J)):this.node().innerHTML},
append:function(J){var e=typeof J==="function"?J:U(J);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},
insert:function(J,e){var q=typeof J==="function"?J:U(J),m=e==null?Pl:typeof e==="function"?e:S(e);return this.select(function(){return this.insertBefore(q.apply(this,arguments),m.apply(this,arguments)||null)})},
remove:function(){return this.each(W9)},
clone:function(J){return this.select(J?le:rC)},
datum:function(J){return arguments.length?this.property("__data__",J):this.node().__data__},
on:function(J,e,q){var m=u9(J+""),tm=m.length,Xx;if(arguments.length<2){var OS=this.node().__on;if(OS)for(var ie=0,ES=OS.length,z8;ie<ES;++ie){var ae=0;for(z8=OS[ie];ae<tm;++ae)if((Xx=m[ae]).type===z8.type&&Xx.name===z8.name)return z8.value}}else{OS=e?DE:eV;q==null&&(q=!1);for(ae=0;ae<tm;++ae)this.each(OS(m[ae],e,q));return this}},
dispatch:function(J,e){return this.each((typeof e==="function"?VF:p6)(J,e))}};
var Tmf=0;AL.prototype=function(){return new AL}.prototype={constructor:AL,
get:function(J){for(var e=this._;!(e in J);)if(!(J=J.parentNode))return;return J[e]},
set:function(J,e){return J[this._]=e},
remove:function(J){return this._ in J&&delete J[this._]},
toString:function(){return this._}};
var oB=1/.7,Klz=/^#([0-9a-f]{3})$/,p00=/^#([0-9a-f]{6})$/,r9n=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),A9n=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),hW0=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),iIK=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*\\)$"),
c9D=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),eWI=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*\\)$"),C3T={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};
KK(ox,CK,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
KK(fK,i9,P9(ox,{brighter:function(J){J=J==null?oB:Math.pow(oB,J);return new fK(this.r*J,this.g*J,this.b*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new fK(this.r*J,this.g*J,this.b*J,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+XL(this.r)+XL(this.g)+XL(this.b)},
toString:function(){var J=this.opacity;J=isNaN(J)?1:Math.max(0,Math.min(1,J));return(J===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(J===1?")":", "+J+")")}}));
KK($q,Ui,P9(ox,{brighter:function(J){J=J==null?oB:Math.pow(oB,J);return new $q(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new $q(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=this.h%360+(this.h<0)*360,e=this.l,q=e+(e<.5?e:1-e)*(isNaN(J)||isNaN(this.s)?0:this.s);e=2*e-q;return new fK(zH(J>=240?J-240:J+120,e,q),zH(J,e,q),zH(J<120?J+240:J-120,e,q),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 GN$=Math.PI/180,d7A=180/Math.PI,fj$=4/29,Pg=6/29,D7y=3*Pg*Pg,n2I=Pg*Pg*Pg;KK(T8,function(J,e,q,m){return arguments.length===1?pM(J):new T8(J,e,q,m==null?1:m)},P9(ox,{brighter:function(J){return new T8(this.l+18*(J==null?1:J),this.a,this.b,this.opacity)},
darker:function(J){return new T8(this.l-18*(J==null?1:J),this.a,this.b,this.opacity)},
rgb:function(){var J=(this.l+16)/116,e=isNaN(this.a)?J:J+this.a/500,q=isNaN(this.b)?J:J-this.b/200;e=.96422*sS(e);J=1*sS(J);q=.82521*sS(q);return new fK(kR(3.1338561*e-1.6168667*J-.4906146*q),kR(-.9787684*e+1.9161415*J+.033454*q),kR(.0719453*e-.2289914*J+1.4052427*q),this.opacity)}}));
KK(YR,gf,P9(ox,{brighter:function(J){return new YR(this.h,this.c,this.l+18*(J==null?1:J),this.opacity)},
darker:function(J){return new YR(this.h,this.c,this.l-18*(J==null?1:J),this.opacity)},
rgb:function(){return pM(this).rgb()}}));
var m7e=1.78277*-.29227-.1347134789;KK(oE,OR,P9(ox,{brighter:function(J){J=J==null?oB:Math.pow(oB,J);return new oE(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new oE(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=isNaN(this.h)?0:(this.h+120)*GN$,e=+this.l,q=isNaN(this.s)?0:this.s*e*(1-e),m=Math.cos(J);J=Math.sin(J);return new fK(255*(e+q*(-.14861*m+1.78277*J)),255*(e+q*(-.29227*m+-.90649*J)),255*(e+1.97294*m*q),this.opacity)}}));
var ES_=function q(e){function m(Xx,OS){var ie=tm((Xx=i9(Xx)).r,(OS=i9(OS)).r),ES=tm(Xx.g,OS.g),z8=tm(Xx.b,OS.b),ae=Qo(Xx.opacity,OS.opacity);return function(oe){Xx.r=ie(oe);Xx.g=ES(oe);Xx.b=z8(oe);Xx.opacity=ae(oe);return Xx+""}}
var tm=mH(e);m.gamma=q;return m}(1),hTn=pN(function(e){var q=e.length-1;
return function(m){var tm=m<=0?m=0:m>=1?(m=1,q-1):Math.floor(m*q),Xx=e[tm],OS=e[tm+1];return iY((m-tm/q)*q,tm>0?e[tm-1]:2*Xx-OS,Xx,OS,tm<q-1?e[tm+2]:2*OS-Xx)}});
pN(function(e){var q=e.length;return function(m){var tm=Math.floor(((m%=1)<0?++m:m)*q);return iY((m-tm/q)*q,e[(tm+q-1)%q],e[tm%q],e[(tm+1)%q],e[(tm+2)%q])}});
var kNF=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,U7U=new RegExp(kNF.source,"g"),VG$=180/Math.PI,Ru7={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},IO,qoI,bz6,MQS,c1E=GH(function(e){if(e==="none")return Ru7;IO||(IO=document.createElement("DIV"),qoI=document.documentElement,bz6=document.defaultView);IO.style.transform=e;e=bz6.getComputedStyle(qoI.appendChild(IO),null).getPropertyValue("transform");qoI.removeChild(IO);e=e.slice(7,-1).split(",");return RP(+e[0],+e[1],+e[2],+e[3],
+e[4],+e[5])},"px, ","px)","deg)"),eTX=GH(function(e){if(e==null)return Ru7;
MQS||(MQS=document.createElementNS("http://www.w3.org/2000/svg","g"));MQS.setAttribute("transform",e);if(!(e=MQS.transform.baseVal.consolidate()))return Ru7;e=e.matrix;return RP(e.a,e.b,e.c,e.d,e.e,e.f)},", ",")",")");
tI(xb);tI(Qo);Ca(xb);Ca(Qo);po(xb);var QA9=po(Qo),X5=0,EU=0,Wx=0,hGS,aO,Ao7=0,uu=0,roE=0,ym=typeof performance==="object"&&performance.now?performance:Date,zuA=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};
AE.prototype=fL.prototype={constructor:AE,restart:function(e,q,m){if(typeof e!=="function")throw new TypeError("ze");m=(m==null?u5():+m)+(q==null?0:+q);this._next||aO===this||(aO?aO._next=this:hGS=this,aO=this);this._call=e;this._time=m;mA()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,mA())}};
var Lld=w("start","end","interrupt"),J90=[],n$D=P2.prototype.constructor,siT=0,k5=P2.prototype;o7.prototype=function(e){return P2().transition(e)}.prototype={constructor:o7,
select:function(e){var q=this._name,m=this._id;typeof e!=="function"&&(e=S(e));for(var tm=this._groups,Xx=tm.length,OS=Array(Xx),ie=0;ie<Xx;++ie)for(var ES=tm[ie],z8=ES.length,ae=OS[ie]=Array(z8),oe,dT,kd=0;kd<z8;++kd)(oe=ES[kd])&&(dT=e.call(oe,oe.__data__,kd,ES))&&("__data__"in oe&&(dT.__data__=oe.__data__),ae[kd]=dT,Ole(ae[kd],q,m,kd,ae,XH(oe,m)));return new o7(OS,this._parents,q,m)},
filter:function(e){typeof e!=="function"&&(e=xaL(e));for(var q=this._groups,m=q.length,tm=Array(m),Xx=0;Xx<m;++Xx)for(var OS=q[Xx],ie=OS.length,ES=tm[Xx]=[],z8,ae=0;ae<ie;++ae)(z8=OS[ae])&&e.call(z8,z8.__data__,ae,OS)&&ES.push(z8);return new o7(tm,this._parents,this._name,this._id)},
merge:function(e){if(e._id!==this._id)throw Error();var q=this._groups;e=e._groups;for(var m=q.length,tm=Math.min(m,e.length),Xx=Array(m),OS=0;OS<tm;++OS)for(var ie=q[OS],ES=e[OS],z8=ie.length,ae=Xx[OS]=Array(z8),oe,dT=0;dT<z8;++dT)if(oe=ie[dT]||ES[dT])ae[dT]=oe;for(;OS<m;++OS)Xx[OS]=q[OS];return new o7(Xx,this._parents,this._name,this._id)},
selection:function(){return new n$D(this._groups,this._parents)},
transition:function(){for(var e=this._name,q=this._id,m=++siT,tm=this._groups,Xx=tm.length,OS=0;OS<Xx;++OS)for(var ie=tm[OS],ES=ie.length,z8,ae=0;ae<ES;++ae)if(z8=ie[ae]){var oe=XH(z8,q);Ole(z8,e,m,ae,ie,{time:oe.time+oe.delay+oe.duration,delay:0,duration:oe.duration,ease:oe.ease})}return new o7(tm,this._parents,e,m)},
call:k5.call,nodes:k5.nodes,node:k5.node,size:k5.size,empty:k5.empty,each:k5.each,on:function(e,q){var m=this._id;return arguments.length<2?XH(this.node(),m).on.on(e):this.each(zWa(m,e,q))},
attr:function(e,q){var m=I(e),tm=m==="transform"?eTX:yMJ;return this.attrTween(e,typeof q==="function"?(m.local?sN2:bI0)(m,tm,YoC(this,"attr."+e,q)):q==null?(m.local?qMD:RWf)(m):(m.local?xS0:QNE)(m,tm,q+""))},
attrTween:function(e,q){var m="attr."+e;if(arguments.length<2)return(m=this.tween(m))&&m._value;if(q==null)return this.tween(m,null);if(typeof q!=="function")throw Error();var tm=I(e);return this.tween(m,(tm.local?uD9:CED)(tm,q))},
style:function(e,q,m){var tm=e==="transform"?c1E:yMJ;return q==null?this.styleTween(e,y9K(e,tm)).on("end.style."+e,E20(e)):this.styleTween(e,typeof q==="function"?Wsn(e,tm,YoC(this,"style."+e,q)):aQn(e,tm,q+""),m)},
styleTween:function(e,q,m){var tm="style."+e;if(arguments.length<2)return(tm=this.tween(tm))&&tm._value;if(q==null)return this.tween(tm,null);if(typeof q!=="function")throw Error();return this.tween(tm,w5n(e,q,m==null?"":m))},
text:function(e){return this.tween("text",typeof e==="function"?NDn(YoC(this,"text",e)):Zk0(e==null?"":e+""))},
remove:function(){return this.on("end.remove",HIn(this._id))},
tween:function(e,q){var m=this._id;if(arguments.length<2){m=XH(this.node(),m).tween;for(var tm=0,Xx=m.length,OS;tm<Xx;++tm)if((OS=m[tm]).name===e)return OS.value;return null}return this.each((q==null?Fl9:M5i)(m,e,q))},
delay:function(e){var q=this._id;return arguments.length?this.each((typeof e==="function"?G6d:DSi)(q,e)):XH(this.node(),q).delay},
duration:function(e){var q=this._id;return arguments.length?this.each((typeof e==="function"?fAK:dSK)(q,e)):XH(this.node(),q).duration},
ease:function(e){var q=this._id;return arguments.length?this.each(mSi(q,e)):XH(this.node(),q).ease}};
var x77={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};
P2.prototype.transition=function(e){var q;if(e instanceof o7){var m=e._id;e=e._name}else m=++siT,(q=x77).time=u5(),e=e==null?null:e+"";for(var tm=this._groups,Xx=tm.length,OS=0;OS<Xx;++OS)for(var ie=tm[OS],ES=ie.length,z8,ae=0;ae<ES;++ae)if(z8=ie[ae]){var oe=z8,dT=e,kd=m,Se=ae,DP=ie,AY;if(!(AY=q))a:{AY=void 0;for(var yl=m;!(AY=z8.__transition)||!(AY=AY[yl]);)if(!(z8=z8.parentNode)){AY=(x77.time=u5(),x77);break a}}Ole(oe,dT,kd,Se,DP,AY)}return new o7(tm,this._parents,e,m)};
["e","w"].map(Tlm);["n","s"].map(Tlm);"n e s w nw ne se sw".split(" ").map(Tlm);K6x.prototype=function(){return new K6x}.prototype={constructor:K6x,
moveTo:function(e,q){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+q)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(e,q){this._+="L"+(this._x1=+e)+","+(this._y1=+q)},
bezierCurveTo:function(e,q,m,tm,Xx,OS){this._+="C"+ +e+","+ +q+","+ +m+","+ +tm+","+(this._x1=+Xx)+","+(this._y1=+OS)},
rect:function(e,q,m,tm){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+q)+"h"+ +m+"v"+ +tm+"h"+-m+"Z"},
toString:function(){return this._}};
iaE.prototype=alA.prototype={constructor:iaE,has:function(e){return" "+e in this},
get:function(e){return this[" "+e]},
set:function(e,q){this[" "+e]=q;return this},
remove:function(e){e=" "+e;return e in this&&delete this[e]},
clear:function(){for(var e in this)e[0]===" "&&delete this[e]},
keys:function(){var e=[],q;for(q in this)q[0]===" "&&e.push(q.slice(1));return e},
values:function(){var e=[],q;for(q in this)q[0]===" "&&e.push(this[q]);return e},
entries:function(){var e=[],q;for(q in this)q[0]===" "&&e.push({key:q.slice(1),value:this[q]});return e},
size:function(){var e=0,q;for(q in this)q[0]===" "&&++e;return e},
empty:function(){for(var e in this)if(e[0]===" ")return!1;return!0},
each:function(e){for(var q in this)q[0]===" "&&e(this[q],q.slice(1),this)}};
var fP=alA.prototype;cov.prototype=function(e,q){var m=new cov;if(e instanceof cov)e.each(function(OS){m.add(OS)});
else if(e){var tm=-1,Xx=e.length;if(q==null)for(;++tm<Xx;)m.add(e[tm]);else for(;++tm<Xx;)m.add(q(e[tm],tm,e))}return m}.prototype={constructor:cov,
has:fP.has,add:function(e){this[" "+e]=e;return this},
remove:fP.remove,clear:fP.clear,values:fP.keys,size:fP.size,empty:fP.empty,each:fP.each};var Zzy={},pTx={},jZk=woT(",").parse,L10=woT("\t").parse;N7J(jZk);N7J(L10);var $Q=function(e,q,m){q=new rMD(q==null?lQX:q,m==null?IQa:m,NaN,NaN,NaN,NaN);return e==null?q:q.addAll(e)}.prototype=rMD.prototype;
$Q.copy=function(){var e=new rMD(this._x,this._y,this._x0,this._y0,this._x1,this._y1),q=this._root,m,tm;if(!q)return e;if(!q.length)return e._root=$aT(q),e;for(m=[{source:q,target:e._root=Array(4)}];q=m.pop();)for(var Xx=0;Xx<4;++Xx)if(tm=q.source[Xx])tm.length?m.push({source:tm,target:q.target[Xx]=Array(4)}):q.target[Xx]=$aT(tm);return e};
$Q.add=function(e){var q=+this._x.call(null,e),m=+this._y.call(null,e);return tTR(this.cover(q,m),q,m,e)};
$Q.addAll=function(e){var q,m,tm=e.length,Xx,OS,ie=Array(tm),ES=Array(tm),z8=Infinity,ae=Infinity,oe=-Infinity,dT=-Infinity;for(m=0;m<tm;++m)isNaN(Xx=+this._x.call(null,q=e[m]))||isNaN(OS=+this._y.call(null,q))||(ie[m]=Xx,ES[m]=OS,Xx<z8&&(z8=Xx),Xx>oe&&(oe=Xx),OS<ae&&(ae=OS),OS>dT&&(dT=OS));oe<z8&&(z8=this._x0,oe=this._x1);dT<ae&&(ae=this._y0,dT=this._y1);this.cover(z8,ae).cover(oe,dT);for(m=0;m<tm;++m)tTR(this,ie[m],ES[m],e[m]);return this};
$Q.cover=function(e,q){if(isNaN(e=+e)||isNaN(q=+q))return this;var m=this._x0,tm=this._y0,Xx=this._x1,OS=this._y1;if(isNaN(m))Xx=(m=Math.floor(e))+1,OS=(tm=Math.floor(q))+1;else if(m>e||e>Xx||tm>q||q>OS){var ie=Xx-m,ES=this._root,z8;switch(z8=(q<(tm+OS)/2)<<1|e<(m+Xx)/2){case 0:do{var ae=Array(4);ae[z8]=ES;ES=ae}while(ie*=2,Xx=m+ie,OS=tm+ie,e>Xx||q>OS);break;case 1:do ae=Array(4),ae[z8]=ES,ES=ae;while(ie*=2,m=Xx-ie,OS=tm+ie,m>e||q>OS);break;case 2:do ae=Array(4),ae[z8]=ES,ES=ae;while(ie*=2,Xx=m+ie,
tm=OS-ie,e>Xx||tm>q);break;case 3:do ae=Array(4),ae[z8]=ES,ES=ae;while(ie*=2,m=Xx-ie,tm=OS-ie,m>e||tm>q)}this._root&&this._root.length&&(this._root=ES)}else return this;this._x0=m;this._y0=tm;this._x1=Xx;this._y1=OS;return this};
$Q.data=function(){var e=[];this.visit(function(q){if(!q.length){do e.push(q.data);while(q=q.next)}});
return e};
$Q.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
$Q.find=function(e,q,m){var tm=this._x0,Xx=this._y0,OS,ie,ES,z8,ae=this._x1,oe=this._y1,dT=[],kd=this._root,Se;kd&&dT.push(new tt(kd,tm,Xx,ae,oe));m==null?m=Infinity:(tm=e-m,Xx=q-m,ae=e+m,oe=q+m,m*=m);for(;Se=dT.pop();)if(!(!(kd=Se.node)||(OS=Se.x0)>ae||(ie=Se.y0)>oe||(ES=Se.x1)<tm||(z8=Se.y1)<Xx))if(kd.length){Se=(OS+ES)/2;var DP=(ie+z8)/2;dT.push(new tt(kd[3],Se,DP,ES,z8),new tt(kd[2],OS,DP,Se,z8),new tt(kd[1],Se,ie,ES,DP),new tt(kd[0],OS,ie,Se,DP));if(kd=(q>=DP)<<1|e>=Se)Se=dT[dT.length-1],dT[dT.length-
1]=dT[dT.length-1-kd],dT[dT.length-1-kd]=Se}else if(Se=e-+this._x.call(null,kd.data),DP=q-+this._y.call(null,kd.data),Se=Se*Se+DP*DP,Se<m){var AY=Math.sqrt(m=Se);tm=e-AY;Xx=q-AY;ae=e+AY;oe=q+AY;AY=kd.data}return AY};
$Q.remove=function(e){if(isNaN(z8=+this._x.call(null,e))||isNaN(ae=+this._y.call(null,e)))return this;var q,m=this._root,tm,Xx=this._x0,OS=this._y0,ie=this._x1,ES=this._y1,z8,ae,oe,dT,kd,Se,DP;if(!m)return this;if(m.length)for(;;){(kd=z8>=(oe=(Xx+ie)/2))?Xx=oe:ie=oe;(Se=ae>=(dT=(OS+ES)/2))?OS=dT:ES=dT;if(!(q=m,m=m[DP=Se<<1|kd]))return this;if(!m.length)break;if(q[DP+1&3]||q[DP+2&3]||q[DP+3&3]){var AY=q;var yl=DP}}for(;m.data!==e;)if(!(tm=m,m=m.next))return this;(e=m.next)&&delete m.next;if(tm)return e?
tm.next=e:delete tm.next,this;if(!q)return this._root=e,this;e?q[DP]=e:delete q[DP];(m=q[0]||q[1]||q[2]||q[3])&&m===(q[3]||q[2]||q[1]||q[0])&&!m.length&&(AY?AY[yl]=m:this._root=m);return this};
$Q.removeAll=function(e){for(var q=0,m=e.length;q<m;++q)this.remove(e[q]);return this};
$Q.root=function(){return this._root};
$Q.size=function(){var e=0;this.visit(function(q){if(!q.length){do++e;while(q=q.next)}});
return e};
$Q.visit=function(e){var q=[],m,tm=this._root,Xx,OS,ie,ES,z8;for(tm&&q.push(new tt(tm,this._x0,this._y0,this._x1,this._y1));m=q.pop();)if(!e(tm=m.node,OS=m.x0,ie=m.y0,ES=m.x1,z8=m.y1)&&tm.length){m=(OS+ES)/2;var ae=(ie+z8)/2;(Xx=tm[3])&&q.push(new tt(Xx,m,ae,ES,z8));(Xx=tm[2])&&q.push(new tt(Xx,OS,ae,m,z8));(Xx=tm[1])&&q.push(new tt(Xx,m,ie,ES,ae));(Xx=tm[0])&&q.push(new tt(Xx,OS,ie,m,ae))}};
$Q.visitAfter=function(e){var q=[],m=[],tm;for(this._root&&q.push(new tt(this._root,this._x0,this._y0,this._x1,this._y1));tm=q.pop();){var Xx=tm.node;if(Xx.length){var OS,ie=tm.x0,ES=tm.y0,z8=tm.x1,ae=tm.y1,oe=(ie+z8)/2,dT=(ES+ae)/2;(OS=Xx[0])&&q.push(new tt(OS,ie,ES,oe,dT));(OS=Xx[1])&&q.push(new tt(OS,oe,ES,z8,dT));(OS=Xx[2])&&q.push(new tt(OS,ie,dT,oe,ae));(OS=Xx[3])&&q.push(new tt(OS,oe,dT,z8,ae))}m.push(tm)}for(;tm=m.pop();)e(tm.node,tm.x0,tm.y0,tm.x1,tm.y1);return this};
$Q.x=function(e){return arguments.length?(this._x=e,this):this._x};
$Q.y=function(e){return arguments.length?(this._y=e,this):this._y};
var gOE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;AMe.prototype=huS.prototype;huS.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 PH_,Xoh={"%":function(e,q){return(e*100).toFixed(q)},
b:function(e){return Math.round(e).toString(2)},
c:function(e){return e+""},
d:function(e){return Math.round(e).toString(10)},
e:function(e,q){return e.toExponential(q)},
f:function(e,q){return e.toFixed(q)},
g:function(e,q){return e.toPrecision(q)},
o:function(e){return Math.round(e).toString(8)},
p:function(e,q){return B7h(e*100,q)},
r:B7h,s:function(e,q){var m=eGe(e,q);if(!m)return e+"";var tm=m[0];m=m[1];m=m-(PH_=Math.max(-8,Math.min(8,Math.floor(m/3)))*3)+1;var Xx=tm.length;return m===Xx?tm:m>Xx?tm+Array(m-Xx+1).join("0"):m>0?tm.slice(0,m)+"."+tm.slice(m):"0."+Array(1-m).join("0")+eGe(e,Math.max(0,q+m-1))[0]},
X:function(e){return Math.round(e).toString(16).toUpperCase()},
x:function(e){return Math.round(e).toString(16)}},Il_="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),J12;
(function(e){return J12=oO9(e)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});uB.prototype={constructor:uB,reset:function(){this.s=this.t=0},
add:function(e){vcJ(RG9,e,this.t);vcJ(this,RG9.s,this.s);this.s?this.t+=RG9.t:this.s=RG9.t},
valueOf:function(){return this.s}};
var RG9=new uB,Md=Math.PI,Dr=Md/2,u8h=Md/4,F1I=Md*2,blv=Md/180,kZ=Math.abs,sAD=Math.atan,SjV=Math.atan2,fw=Math.cos,qn=Math.sin,juU=Math.sqrt;new uB;new uB;new uB;var ucC=new uB;(function(e,q,m,tm){return function(Xx){function OS(au,UT){e(au,UT)&&Xx.point(au,UT)}
function ie(au,UT){kd.point(au,UT)}
function ES(){Pe.point=ie;kd.lineStart()}
function z8(){Pe.point=OS;kd.lineEnd()}
function ae(au,UT){jW.push([au,UT]);DP.point(au,UT)}
function oe(){DP.lineStart();jW=[]}
function dT(){ae(jW[0][0],jW[0][1]);DP.lineEnd();var au=DP.clean(),UT=Se.result(),zk=UT.length,Ux;jW.pop();yl.push(jW);jW=null;if(zk)if(au&1){if(zk=UT[0],(UT=zk.length-1)>0){AY||(Xx.polygonStart(),AY=!0);Xx.lineStart();for(au=0;au<UT;++au)Xx.point((Ux=zk[au])[0],Ux[1]);Xx.lineEnd()}}else zk>1&&au&2&&UT.push(UT.pop().concat(UT.shift())),EW.push(UT.filter(SlD))}
var kd=q(Xx),Se=U52(),DP=q(Se),AY=!1,yl,EW,jW,Pe={point:OS,lineStart:ES,lineEnd:z8,polygonStart:function(){Pe.point=ae;Pe.lineStart=oe;Pe.lineEnd=dT;EW=[];yl=[]},
polygonEnd:function(){Pe.point=OS;Pe.lineStart=ES;Pe.lineEnd=z8;var au=EW,UT=au.length;var zk=-1;for(var Ux=0,j0,oP;++zk<UT;)Ux+=au[zk].length;for(j0=Array(Ux);--UT>=0;)for(oP=au[UT],zk=oP.length;--zk>=0;)j0[--Ux]=oP[zk];EW=j0;au=yl;UT=tm[0];Ux=tm[1];var wC=qn(Ux);zk=[qn(UT),-fw(UT),0];oP=j0=0;ucC.reset();wC===1?Ux=Dr+1E-6:wC===-1&&(Ux=-Dr-1E-6);wC=0;for(var Yd=au.length;wC<Yd;++wC)if(FI=(m$=au[wC]).length){var m$,FI,Ex=m$[FI-1],Ot=Ex[0],jG=Ex[1]/2+u8h,qie=qn(jG),CH$=fw(jG);for(jG=0;jG<FI;++jG,Ot=
C3E,qie=Gz$,CH$=Px,Ex=QuF){var QuF=m$[jG],C3E=QuF[0];Px=QuF[1]/2+u8h;var Gz$=qn(Px),Px=fw(Px),U2=C3E-Ot,GNx=U2>=0?1:-1,D7H=GNx*U2,xk7=D7H>Md;qie*=Gz$;ucC.add(SjV(qie*GNx*qn(D7H),CH$*Px+qie*fw(D7H)));j0+=xk7?U2+GNx*F1I:U2;xk7^Ot>=UT^C3E>=UT&&(Ex=ocV(gc6(Ex),gc6(QuF)),kzL(Ex),Ot=ocV(zk,Ex),kzL(Ot),Ot=(xk7^U2>=0?-1:1)*n1v(Ot[2]),Ux>Ot||Ux===Ot&&(Ex[0]||Ex[1]))&&(oP+=xk7^U2>=0?1:-1)}}au=(j0<-1E-6||j0<1E-6&&ucC<-1E-6)^oP&1;EW.length?(AY||(Xx.polygonStart(),AY=!0),Ok0(EW,YlI,au,m,Xx)):au&&(AY||(Xx.polygonStart(),
AY=!0),Xx.lineStart(),m(null,null,1,Xx),Xx.lineEnd());AY&&(Xx.polygonEnd(),AY=!1);EW=yl=null},
sphere:function(){Xx.polygonStart();Xx.lineStart();m(null,null,1,Xx);Xx.lineEnd();Xx.polygonEnd()}};
return Pe}})(function(){return!0},function(e){var q=NaN,m=NaN,tm=NaN,Xx;
return{lineStart:function(){e.lineStart();Xx=1},
point:function(OS,ie){var ES=OS>0?Md:-Md,z8=kZ(OS-q);if(kZ(z8-Md)<1E-6)e.point(q,m=(m+ie)/2>0?Dr:-Dr),e.point(tm,m),e.lineEnd(),e.lineStart(),e.point(ES,m),e.point(OS,m),Xx=0;else if(tm!==ES&&z8>=Md){kZ(q-tm)<1E-6&&(q-=tm*1E-6);kZ(OS-ES)<1E-6&&(OS-=ES*1E-6);z8=q;var ae=m,oe=OS,dT,kd,Se=qn(z8-oe);m=kZ(Se)>1E-6?sAD((qn(ae)*(kd=fw(ie))*qn(oe)-qn(ie)*(dT=fw(ae))*qn(z8))/(dT*kd*Se)):(ae+ie)/2;e.point(tm,m);e.lineEnd();e.lineStart();e.point(ES,m);Xx=0}e.point(q=OS,m=ie);tm=ES},
lineEnd:function(){e.lineEnd();q=m=NaN},
clean:function(){return 2-Xx}}},function(e,q,m,tm){e==null?(m*=Dr,tm.point(-Md,m),tm.point(0,m),tm.point(Md,m),tm.point(Md,0),tm.point(Md,-m),tm.point(0,-m),tm.point(-Md,-m),tm.point(-Md,0),tm.point(-Md,m)):kZ(e[0]-q[0])>1E-6?(e=e[0]<q[0]?Md:-Md,m=m*e/2,tm.point(-e,m),tm.point(0,m),tm.point(e,m)):tm.point(q[0],q[1])},[-Md,
-Dr]);new uB;new uB;new uB;new uB;ilm.prototype={constructor:ilm,point:function(e,q){this.stream.point(e,q)},
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()}};
fw(30*blv);(function(e){return function(q){var m=new ilm,tm;for(tm in e)m[tm]=e[tm];m.stream=q;return m}})({point:function(e,q){this.stream.point(e*blv,q*blv)}});
OzL(function(e){return juU(2/(1+e))}).invert=wv(function(e){return 2*n1v(e/2)});
OzL(function(e){return(e=e>1?0:e<-1?Md:Math.acos(e))&&e/qn(e)}).invert=wv(function(e){return e});
juU(3);wv(sAD);wv(n1v);wv(function(e){return 2*sAD(e)});
Zy.prototype=Yjl.prototype={constructor:Zy,count:function(){return this.eachAfter(TDa)},
each:function(e){var q,m=[this],tm;do{var Xx=m.reverse();for(m=[];q=Xx.pop();)if(e(q),q=q.children){var OS=0;for(tm=q.length;OS<tm;++OS)m.push(q[OS])}}while(m.length);return this},
eachAfter:function(e){for(var q,m=[this],tm=[],Xx,OS;q=m.pop();)if(tm.push(q),q=q.children)for(Xx=0,OS=q.length;Xx<OS;++Xx)m.push(q[Xx]);for(;q=tm.pop();)e(q);return this},
eachBefore:function(e){for(var q,m=[this],tm;q=m.pop();)if(e(q),q=q.children)for(tm=q.length-1;tm>=0;--tm)m.push(q[tm]);return this},
sum:function(e){return this.eachAfter(function(q){for(var m=+e(q.data)||0,tm=q.children,Xx=tm&&tm.length;--Xx>=0;)m+=tm[Xx].value;q.value=m})},
sort:function(e){return this.eachBefore(function(q){q.children&&q.children.sort(e)})},
path:function(e){var q=this;var m=q;var tm=e;if(m!==tm){var Xx=m.ancestors(),OS=tm.ancestors(),ie=null;m=Xx.pop();for(tm=OS.pop();m===tm;)ie=m,m=Xx.pop(),tm=OS.pop();m=ie}for(tm=[q];q!==m;)q=q.parent,tm.push(q);for(q=tm.length;e!==m;)tm.splice(q,0,e),e=e.parent;return tm},
ancestors:function(){for(var e=this,q=[e];e=e.parent;)q.push(e);return q},
links:function(){var e=this,q=[];e.each(function(m){m!==e&&q.push({source:m.parent,target:m})});
return q},
copy:function(){return Yjl(this).eachBefore(rdf)}};
(function(e,q){this._=e;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=q}).prototype=Object.create(Zy.prototype);
var cMD=new Date,euI=new Date,DaT=i6(function(){},function(e,q){e.setTime(+e+q)},function(e,q){return q-e});
DaT.every=function(e){e=Math.floor(e);return isFinite(e)&&e>0?e>1?i6(function(q){q.setTime(Math.floor(q/e)*e)},function(q,m){q.setTime(+q+m*e)},function(q,m){return(m-q)/e}):DaT:null};
i6(function(e){e.setTime(Math.floor(e/1E3)*1E3)},function(e,q){e.setTime(+e+q*1E3)},function(e,q){return(q-e)/1E3},function(e){return e.getUTCSeconds()});
i6(function(e){e.setTime(Math.floor(e/6E4)*6E4)},function(e,q){e.setTime(+e+q*6E4)},function(e,q){return(q-e)/6E4},function(e){return e.getMinutes()});
i6(function(e){var q=e.getTimezoneOffset()*6E4%36E5;q<0&&(q+=36E5);e.setTime(Math.floor((+e-q)/36E5)*36E5+q)},function(e,q){e.setTime(+e+q*36E5)},function(e,q){return(q-e)/36E5},function(e){return e.getHours()});
var poy=i6(function(e){e.setHours(0,0,0,0)},function(e,q){e.setDate(e.getDate()+q)},function(e,q){return(q-e-(q.getTimezoneOffset()-e.getTimezoneOffset())*6E4)/864E5},function(e){return e.getDate()-1}),r1f=GW(0),jAU=GW(1);
GW(2);GW(3);var L6e=GW(4);GW(5);GW(6);i6(function(e){e.setDate(1);e.setHours(0,0,0,0)},function(e,q){e.setMonth(e.getMonth()+q)},function(e,q){return q.getMonth()-e.getMonth()+(q.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});
var vg=i6(function(e){e.setMonth(0,1);e.setHours(0,0,0,0)},function(e,q){e.setFullYear(e.getFullYear()+q)},function(e,q){return q.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});
vg.every=function(e){return isFinite(e=Math.floor(e))&&e>0?i6(function(q){q.setFullYear(Math.floor(q.getFullYear()/e)*e);q.setMonth(0,1);q.setHours(0,0,0,0)},function(q,m){q.setFullYear(q.getFullYear()+m*e)}):null};
i6(function(e){e.setUTCSeconds(0,0)},function(e,q){e.setTime(+e+q*6E4)},function(e,q){return(q-e)/6E4},function(e){return e.getUTCMinutes()});
i6(function(e){e.setUTCMinutes(0,0,0)},function(e,q){e.setTime(+e+q*36E5)},function(e,q){return(q-e)/36E5},function(e){return e.getUTCHours()});
var KFT=i6(function(e){e.setUTCHours(0,0,0,0)},function(e,q){e.setUTCDate(e.getUTCDate()+q)},function(e,q){return(q-e)/864E5},function(e){return e.getUTCDate()-1}),A1a=Dm(0),nSE=Dm(1);
Dm(2);Dm(3);var JMI=Dm(4);Dm(5);Dm(6);i6(function(e){e.setUTCDate(1);e.setUTCHours(0,0,0,0)},function(e,q){e.setUTCMonth(e.getUTCMonth()+q)},function(e,q){return q.getUTCMonth()-e.getUTCMonth()+(q.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});
var gY=i6(function(e){e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0)},function(e,q){e.setUTCFullYear(e.getUTCFullYear()+q)},function(e,q){return q.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});
gY.every=function(e){return isFinite(e=Math.floor(e))&&e>0?i6(function(q){q.setUTCFullYear(Math.floor(q.getUTCFullYear()/e)*e);q.setUTCMonth(0,1);q.setUTCHours(0,0,0,0)},function(q,m){q.setUTCFullYear(q.getUTCFullYear()+m*e)}):null};
var T7h={"-":"",_:" ",0:"0"},LD=/^\s*\d+/,pyK=/^%/,K10=/[\\^$*+?|[\]().{}]/g,baU;(function(e){baU=haI(e);v_E=baU.utcFormat;g_$=baU.utcParse;return baU})({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||v_E("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||g_$("%Y-%m-%dT%H:%M:%S.%LZ");Bb("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Bb("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Bb("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Bb("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Bb("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Bb("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Bb("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Bb("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Bb("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Bb("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Bb("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Bb("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var MSD=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Bb);Vt(MSD);var RTX=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Bb);Vt(RTX);var q10=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Bb);Vt(q10);var QZX=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Bb);
Vt(QZX);var xPd=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Bb);Vt(xPd);var b9d=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Bb);Vt(b9d);var sZ9=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Bb);Vt(sZ9);var uHD=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Bb);Vt(uHD);var CcX=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Bb);Vt(CcX);var G_f=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Bb);Vt(G_f);var DPa=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Bb);Vt(DPa);var f$f=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Bb);Vt(f$f);var dP9=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Bb);Vt(dP9);var mPd=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Bb);Vt(mPd);var VSX=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Bb);Vt(VSX);var zTk=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Bb);Vt(zTk);var H9E=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Bb);Vt(H9E);var y1X=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Bb);Vt(y1X);var E$D=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Bb);Vt(E$D);var atK=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Bb);Vt(atK);var Wvf=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Bb);Vt(Wvf);var w1n=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Bb);Vt(w1n);var ZmX=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Bb);Vt(ZmX);var NF0=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Bb);Vt(NF0);var tin=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Bb);Vt(tin);var $Kd=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Bb);Vt($Kd);var BFK=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Bb);Vt(BFK);QA9(OR(300,.5,0),OR(-240,.5,1));QA9(OR(-100,.75,.35),OR(80,1.5,.8));QA9(OR(260,.75,.35),OR(80,1.5,.8));OR();i9();F$e(Bb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
F$e(Bb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
F$e(Bb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
F$e(Bb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
J4T.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(e,q){e=+e;q=+q;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,q):this._context.moveTo(e,q);break;case 1:this._point=2;default:this._context.lineTo(e,q)}}};
(function(e){function q(m){return new FFy(e(m))}
q._curve=e;return q})(function(e){return new J4T(e)});
FFy.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(e,q){this._curve.point(q*Math.sin(e),q*-Math.cos(e))}};
MGU.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:F6x(this,this._t0,R_H(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(e,q){var m=NaN;e=+e;q=+q;if(e!==this._x1||q!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,q):this._context.moveTo(e,q);break;case 1:this._point=2;break;case 2:this._point=3;F6x(this,R_H(this,m=MTA(this,e,q)),m);break;default:F6x(this,this._t0,m=MTA(this,e,q))}this._x0=this._x1;this._x1=e;this._y0=this._y1;this._y1=q;this._t0=m}}};
(function(e){this._context=new qj$(e)}.prototype=Object.create(MGU.prototype)).point=function(e,q){MGU.prototype.point.call(this,q,e)};
qj$.prototype={moveTo:function(e,q){this._context.moveTo(q,e)},
closePath:function(){this._context.closePath()},
lineTo:function(e,q){this._context.lineTo(q,e)},
bezierCurveTo:function(e,q,m,tm,Xx,OS){this._context.bezierCurveTo(q,e,tm,m,OS,Xx)}};
Bx.prototype={constructor:Bx,scale:function(e){return e===1?this:new Bx(this.k*e,this.x,this.y)},
translate:function(e,q){return e===0&q===0?this:new Bx(this.k,this.x+this.k*e,this.y+this.k*q)},
apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},
invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Bx(1,0,0);F0e=CK;Gb.svg=Gb.svg;Gb.xhtml=Gb.xhtml;Gb.xlink=Gb.xlink;Gb.xml=Gb.xml;Gb.xmlns=Gb.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 o_$="hammer_"+(Math.random()*1E6|0),kwR=function(){var a=document||document;if(!a[o_$]){var W=function(){(function(w,Z,N,B){function I(T8,Jm,sS){return setTimeout(T(T8,sS),Jm)}
function X(T8,Jm,sS){return Array.isArray(T8)?(v(T8,sS[Jm],sS),!0):!1}
function v(T8,Jm,sS){var kR;if(T8)if(T8.forEach)T8.forEach(Jm,sS);else if(T8.length!==B){var tz=0;for(kR=T8.length;tz<kR;tz++)Jm.call(sS,T8[tz],tz,T8)}else for(tz in T8)T8.hasOwnProperty(tz)&&Jm.call(sS,T8[tz],tz,T8)}
function U(T8,Jm,sS){for(var kR=Object.keys(Jm),tz=0,L_=kR.length;tz<L_;tz++)if(!sS||sS&&T8[kR[tz]]===B)T8[kR[tz]]=Jm[kR[tz]];return T8}
function O(T8,Jm){return U(T8,Jm,!0)}
function S(T8,Jm,sS){Jm=Jm.prototype;var kR=T8.prototype=Object.create(Jm);kR.constructor=T8;kR._super=Jm;sS&&U(kR,sS)}
function T(T8,Jm){return function(){return T8.apply(Jm,arguments)}}
function p(T8,Jm){return typeof T8=="function"?T8.apply(Jm?Jm[0]||B:B,Jm):T8}
function h(T8,Jm,sS){v(F(Jm),function(kR){T8.addEventListener(kR,sS,!1)})}
function L(T8,Jm,sS){v(F(Jm),function(kR){T8.removeEventListener(kR,sS,!1)})}
function F(T8){return T8.trim().split(/\s+/g)}
function x(T8,Jm,sS){if(T8.indexOf&&!sS)return T8.indexOf(Jm);for(var kR=0,tz=T8.length;kR<tz;kR++)if(sS&&T8[kR][sS]==Jm||!sS&&T8[kR]===Jm)return kR;return-1}
function G(T8,Jm,sS){for(var kR=[],tz=[],L_=0,gf=T8.length;L_<gf;L_++){var YR=Jm?T8[L_][Jm]:T8[L_];x(tz,YR)<0&&kR.push(T8[L_]);tz[L_]=YR}sS&&(kR=Jm?kR.sort(function(OR,oE){return OR[Jm]>oE[Jm]}):kR.sort());
return kR}
function V(T8,Jm){for(var sS,kR=Jm[0].toUpperCase()+Jm.slice(1),tz=0,L_=VF.length;tz<L_;tz++)if(sS=(sS=VF[tz])?sS+kR:Jm,sS in T8)return sS;return B}
function d(T8,Jm){var sS=this;this.manager=T8;this.callback=Jm;this.element=T8.element;this.target=T8.options.inputTarget;this.domHandler=function(kR){p(T8.options.enable,[T8])&&sS.handler(kR)};
this.evEl&&h(this.element,this.evEl,this.domHandler);this.evTarget&&h(this.target,this.evTarget,this.domHandler);this.evWin&&h(w,this.evWin,this.domHandler)}
function ZD(T8){var Jm;Y8?Jm=G8:hl?Jm=QF:CK?Jm=vl:Jm=RC;return new Jm(T8,aC)}
function aC(T8,Jm,sS){var kR=sS.pointers.length,tz=sS.changedPointers.length,L_=Jm&1&&kR-tz===0;sS.isFirst=!!L_;sS.isFinal=!!(Jm&12&&kR-tz===0);L_&&(T8.session={});sS.eventType=Jm;Jm=T8.session;kR=sS.pointers;tz=kR.length;Jm.firstInput||(Jm.firstInput=Bv(sS));tz>1&&!Jm.firstMultiple?Jm.firstMultiple=Bv(sS):tz===1&&(Jm.firstMultiple=!1);L_=Jm.firstInput;var gf=(tz=Jm.firstMultiple)?tz.center:L_.center,YR=sS.center=Am(kR);sS.timeStamp=KK();sS.deltaTime=sS.timeStamp-L_.timeStamp;sS.angle=C7(gf,YR);sS.distance=
cv(gf,YR);L_=sS.center;gf=Jm.offsetDelta||{};YR=Jm.prevDelta||{};var OR=Jm.prevInput||{};if(sS.eventType===1||OR.eventType===4)YR=Jm.prevDelta={x:OR.deltaX||0,y:OR.deltaY||0},gf=Jm.offsetDelta={x:L_.x,y:L_.y};sS.deltaX=YR.x+(L_.x-gf.x);sS.deltaY=YR.y+(L_.y-gf.y);sS.offsetDirection=e9(sS.deltaX,sS.deltaY);tz?(L_=tz.pointers,L_=cv(kR[0],kR[1],i9)/cv(L_[0],L_[1],i9)):L_=1;sS.scale=L_;tz?(tz=tz.pointers,kR=C7(kR[1],kR[0],i9)-C7(tz[1],tz[0],i9)):kR=0;sS.rotation=kR;gf=Jm.lastInterval||sS;kR=sS.timeStamp-
gf.timeStamp;sS.eventType!=8&&(kR>25||gf.velocity===B)?(L_=gf.deltaX-sS.deltaX,gf=gf.deltaY-sS.deltaY,YR=L_/kR||0,OR=gf/kR||0,kR=YR,tz=OR,YR=AL(YR)>AL(OR)?YR:OR,L_=e9(L_,gf),Jm.lastInterval=sS):(YR=gf.velocity,kR=gf.velocityX,tz=gf.velocityY,L_=gf.direction);sS.velocity=YR;sS.velocityX=kR;sS.velocityY=tz;sS.direction=L_;Jm=T8.element;a:{for(kR=sS.srcEvent.target;kR;){if(kR==Jm){kR=!0;break a}kR=kR.parentNode}kR=!1}kR&&(Jm=sS.srcEvent.target);sS.target=Jm;T8.emit("hammer.input",sS);T8.recognize(sS);
T8.session.prevInput=sS}
function Bv(T8){for(var Jm=[],sS=0;sS<T8.pointers.length;sS++)Jm[sS]={clientX:P2(T8.pointers[sS].clientX),clientY:P2(T8.pointers[sS].clientY)};return{timeStamp:KK(),pointers:Jm,center:Am(Jm),deltaX:T8.deltaX,deltaY:T8.deltaY}}
function Am(T8){var Jm=T8.length;if(Jm===1)return{x:P2(T8[0].clientX),y:P2(T8[0].clientY)};for(var sS=0,kR=0,tz=0;tz<Jm;tz++)sS+=T8[tz].clientX,kR+=T8[tz].clientY;return{x:P2(sS/Jm),y:P2(kR/Jm)}}
function e9(T8,Jm){return T8===Jm?1:AL(T8)>=AL(Jm)?T8>0?2:4:Jm>0?8:16}
function cv(T8,Jm,sS){sS||(sS=bA);var kR=Jm[sS[0]]-T8[sS[0]];T8=Jm[sS[1]]-T8[sS[1]];return Math.sqrt(kR*kR+T8*T8)}
function C7(T8,Jm,sS){sS||(sS=bA);return Math.atan2(Jm[sS[1]]-T8[sS[1]],Jm[sS[0]]-T8[sS[0]])*180/Math.PI}
function RC(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;d.apply(this,arguments)}
function G8(){this.evEl=ch;this.evWin=Ui;d.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function QF(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};d.apply(this,arguments)}
function vl(){d.apply(this,arguments);var T8=T(this.handler,this);this.touch=new QF(this.manager,T8);this.mouse=new RC(this.manager,T8)}
function Hl(T8,Jm){this.manager=T8;this.set(Jm)}
function SV(T8){if(T8.indexOf("none")>-1)return"none";var Jm=T8.indexOf("pan-x")>-1,sS=T8.indexOf("pan-y")>-1;return Jm&&sS?"pan-x pan-y":Jm||sS?Jm?"pan-x":"pan-y":T8.indexOf("manipulation")>-1?"manipulation":"auto"}
function Ny(T8){this.id=P9++;this.manager=null;this.options=O(T8||{},this.defaults);T8=this.options.enable;this.options.enable=T8===B?!0:T8;this.state=1;this.simultaneous={};this.requireFail=[]}
function Bl(T8){return T8==16?"down":T8==8?"up":T8==2?"left":T8==4?"right":""}
function JL(T8,Jm){return(Jm=Jm.manager)?Jm.get(T8):T8}
function Pl(){Ny.apply(this,arguments)}
function W9(){Pl.apply(this,arguments);this.pY=this.pX=null}
function rC(){Pl.apply(this,arguments)}
function le(){Ny.apply(this,arguments);this._input=this._timer=null}
function rT(){Pl.apply(this,arguments)}
function Re(){Pl.apply(this,arguments)}
function u9(){Ny.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function eV(T8,Jm){Jm=Jm||{};var sS=Jm.recognizers;Jm.recognizers=sS===B?eV.defaults.preset:sS;return new DE(T8,Jm)}
function DE(T8,Jm){Jm=Jm||{};this.options=O(Jm,eV.defaults);this.options.inputTarget=this.options.inputTarget||T8;this.handlers={};this.session={};this.recognizers=[];this.element=T8;this.input=ZD(this);this.touchAction=new Hl(this,this.options.touchAction);mi(this,!0);v(Jm.recognizers,function(sS){var kR=this.add(new sS[0](sS[1]));sS[2]&&kR.recognizeWith(sS[2]);sS[3]&&kR.requireFailure(sS[2])},this)}
function mi(T8,Jm){var sS=T8.element;v(T8.options.cssProps,function(kR,tz){sS.style[V(sS.style,tz)]=Jm?kR:""})}
function p6(T8,Jm){var sS=Z.createEvent("Event");sS.initEvent(T8,!0,!0);sS.gesture=Jm;Jm.target.dispatchEvent(sS)}
var VF=" webkit moz MS ms o".split(" "),K6=Z.createElement("div"),P2=Math.round,AL=Math.abs,KK=Date.now,P9=1,ox=/mobile|tablet|ip(ad|hone|od)|android/i,CK="ontouchstart"in w,Y8=V(w,"PointerEvent")!==B,hl=CK&&ox.test(navigator.userAgent),bA=["x","y"],i9=["clientX","clientY"];d.prototype={handler:function(){},
destroy:function(){this.evEl&&L(this.element,this.evEl,this.domHandler);this.evTarget&&L(this.target,this.evTarget,this.domHandler);this.evWin&&L(w,this.evWin,this.domHandler)}};
var fK={mousedown:1,mousemove:2,mouseup:4};S(RC,d,{handler:function(T8){var Jm=fK[T8.type];Jm&1&&T8.button===0&&(this.pressed=!0);Jm&2&&T8.which!==1&&(Jm=4);this.pressed&&this.allow&&(Jm&4&&(this.pressed=!1),this.callback(this.manager,Jm,{pointers:[T8],changedPointers:[T8],pointerType:"mouse",srcEvent:T8}))}});
var XL={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Aw={2:"touch",3:"pen",4:"mouse",5:"kinect"},ch="pointerdown",Ui="pointermove pointerup pointercancel";w.MSPointerEvent&&(ch="MSPointerDown",Ui="MSPointerMove MSPointerUp MSPointerCancel");S(G8,d,{handler:function(T8){var Jm=this.store,sS=!1,kR=T8.type.toLowerCase().replace("ms","");kR=XL[kR];var tz=Aw[T8.pointerType]||T8.pointerType;kR&1&&(T8.button===0||tz=="touch")?Jm.push(T8):kR&12&&(sS=!0);var L_=x(Jm,T8.pointerId,"pointerId");
L_<0||(Jm[L_]=T8,this.callback(this.manager,kR,{pointers:Jm,changedPointers:[T8],pointerType:tz,srcEvent:T8}),sS&&Jm.splice(L_,1))}});
var $q={touchstart:1,touchmove:2,touchend:4,touchcancel:8};S(QF,d,{handler:function(T8){var Jm=$q[T8.type];var sS=Array.prototype.slice.call(T8.touches,0);var kR=this.targetIds;if(Jm&3&&sS.length===1)kR[sS[0].identifier]=!0,kR=[sS,sS];else{var tz,L_=Array.prototype.slice.call(T8.targetTouches,0),gf=Array.prototype.slice.call(T8.changedTouches,0),YR=[];if(Jm===1)for(sS=0,tz=L_.length;sS<tz;sS++)kR[L_[sS].identifier]=!0;sS=0;for(tz=gf.length;sS<tz;sS++)kR[gf[sS].identifier]&&YR.push(gf[sS]),Jm&12&&
delete kR[gf[sS].identifier];kR=YR.length?[G(L_.concat(YR),"identifier",!0),YR]:void 0}kR&&this.callback(this.manager,Jm,{pointers:kR[0],changedPointers:kR[1],pointerType:"touch",srcEvent:T8})}});
S(vl,d,{handler:function(T8,Jm,sS){var kR=sS.pointerType=="mouse";if(sS.pointerType=="touch")this.mouse.allow=!1;else if(kR&&!this.mouse.allow)return;Jm&12&&(this.mouse.allow=!0);this.callback(T8,Jm,sS)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var zH=V(K6.style,"touchAction"),pM=zH!==B;Hl.prototype={set:function(T8){T8=="compute"&&(T8=this.compute());pM&&(this.manager.element.style[zH]=T8);this.actions=T8.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var T8=[];v(this.manager.recognizers,function(Jm){p(Jm.options.enable,[Jm])&&(T8=T8.concat(Jm.getTouchAction()))});
return SV(T8.join(" "))},
preventDefaults:function(T8){if(!pM){var Jm=T8.srcEvent;T8=T8.offsetDirection;if(this.manager.session.prevented)Jm.preventDefault();else{var sS=this.actions,kR=sS.indexOf("none")>-1,tz=sS.indexOf("pan-y")>-1;sS=sS.indexOf("pan-x")>-1;if(kR||tz&&sS||tz&&T8&6||sS&&T8&24)return this.preventSrc(Jm)}}},
preventSrc:function(T8){this.manager.session.prevented=!0;T8.preventDefault()}};
Ny.prototype={defaults:{},set:function(T8){U(this.options,T8);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(T8){if(X(T8,"recognizeWith",this))return this;var Jm=this.simultaneous;T8=JL(T8,this);Jm[T8.id]||(Jm[T8.id]=T8,T8.recognizeWith(this));return this},
dropRecognizeWith:function(T8){if(X(T8,"dropRecognizeWith",this))return this;T8=JL(T8,this);delete this.simultaneous[T8.id];return this},
requireFailure:function(T8){if(X(T8,"requireFailure",this))return this;var Jm=this.requireFail;T8=JL(T8,this);x(Jm,T8)===-1&&(Jm.push(T8),T8.requireFailure(this));return this},
dropRequireFailure:function(T8){if(X(T8,"dropRequireFailure",this))return this;T8=JL(T8,this);T8=x(this.requireFail,T8);T8>-1&&this.requireFail.splice(T8,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(T8){return!!this.simultaneous[T8.id]},
emit:function(T8){function Jm(tz){sS.manager.emit(sS.options.event+(tz?kR&16?"cancel":kR&8?"end":kR&4?"move":kR&2?"start":"":""),T8)}
var sS=this,kR=this.state;kR<8&&Jm(!0);Jm();kR>=8&&Jm(!0)},
tryEmit:function(T8){if(this.canEmit())return this.emit(T8);this.state=32},
canEmit:function(){for(var T8=0;T8<this.requireFail.length;T8++)if(!(this.requireFail[T8].state&33))return!1;return!0},
recognize:function(T8){T8=U({},T8);p(this.options.enable,[this,T8])?(this.state&56&&(this.state=1),this.state=this.process(T8),this.state&30&&this.tryEmit(T8)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
S(Pl,Ny,{defaults:{pointers:1},attrTest:function(T8){var Jm=this.options.pointers;return Jm===0||T8.pointers.length===Jm},
process:function(T8){var Jm=this.state,sS=T8.eventType,kR=Jm&6;T8=this.attrTest(T8);return kR&&(sS&8||!T8)?Jm|16:kR||T8?sS&4?Jm|8:Jm&2?Jm|4:2:32}});
S(W9,Pl,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var T8=this.options.direction;if(T8===30)return["none"];var Jm=[];T8&6&&Jm.push("pan-y");T8&24&&Jm.push("pan-x");return Jm},
directionTest:function(T8){var Jm=this.options,sS=!0,kR=T8.distance,tz=T8.direction,L_=T8.deltaX,gf=T8.deltaY;tz&Jm.direction||(Jm.direction&6?(tz=L_===0?1:L_<0?2:4,sS=L_!=this.pX,kR=Math.abs(T8.deltaX)):(tz=gf===0?1:gf<0?8:16,sS=gf!=this.pY,kR=Math.abs(T8.deltaY)));T8.direction=tz;return sS&&kR>Jm.threshold&&tz&Jm.direction},
attrTest:function(T8){return Pl.prototype.attrTest.call(this,T8)&&(this.state&2||!(this.state&2)&&this.directionTest(T8))},
emit:function(T8){this.pX=T8.deltaX;this.pY=T8.deltaY;var Jm=Bl(T8.direction);Jm&&this.manager.emit(this.options.event+Jm,T8);this._super.emit.call(this,T8)}});
S(rC,Pl,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(T8){return this._super.attrTest.call(this,T8)&&(Math.abs(T8.scale-1)>this.options.threshold||this.state&2)},
emit:function(T8){this._super.emit.call(this,T8);T8.scale!==1&&this.manager.emit(this.options.event+(T8.scale<1?"in":"out"),T8)}});
S(le,Ny,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(T8){var Jm=this.options,sS=T8.pointers.length===Jm.pointers,kR=T8.distance<Jm.threshold,tz=T8.deltaTime>Jm.time;this._input=T8;if(!kR||!sS||T8.eventType&12&&!tz)this.reset();else if(T8.eventType&1)this.reset(),this._timer=I(function(){this.state=8;this.tryEmit()},Jm.time,this);
else if(T8.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(T8){this.state===8&&(T8&&T8.eventType&4?this.manager.emit(this.options.event+"up",T8):(this._input.timeStamp=KK(),this.manager.emit(this.options.event,this._input)))}});
S(rT,Pl,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(T8){return this._super.attrTest.call(this,T8)&&(Math.abs(T8.rotation)>this.options.threshold||this.state&2)}});
S(Re,Pl,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return W9.prototype.getTouchAction.call(this)},
attrTest:function(T8){var Jm=this.options.direction;if(Jm&30)var sS=T8.velocity;else Jm&6?sS=T8.velocityX:Jm&24&&(sS=T8.velocityY);return this._super.attrTest.call(this,T8)&&Jm&T8.direction&&AL(sS)>this.options.velocity&&T8.eventType&4},
emit:function(T8){var Jm=Bl(T8.direction);Jm&&this.manager.emit(this.options.event+Jm,T8);this.manager.emit(this.options.event,T8)}});
S(u9,Ny,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(T8){var Jm=this.options,sS=T8.pointers.length===Jm.pointers,kR=T8.distance<Jm.threshold,tz=T8.deltaTime<Jm.time;this.reset();if(T8.eventType&1&&this.count===0)return this.failTimeout();if(kR&&tz&&sS){if(T8.eventType!=4)return this.failTimeout();sS=this.pTime?T8.timeStamp-this.pTime<Jm.interval:!0;kR=!this.pCenter||cv(this.pCenter,T8.center)<Jm.posThreshold;this.pTime=T8.timeStamp;this.pCenter=T8.center;kR&&sS?this.count+=1:this.count=1;this._input=T8;if(this.count%Jm.taps===0)return this.hasRequireFailures()?
(this._timer=I(function(){this.state=8;this.tryEmit()},Jm.interval,this),2):8}return 32},
failTimeout:function(){this._timer=I(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))}});
eV.VERSION="2.0.2";eV.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[rT,{enable:!1}],[rC,{enable:!1},["rotate"]],[Re,{direction:6}],[W9,{direction:6},["swipe"]],[u9],[u9,{event:"doubletap",taps:2},["tap"]],[le]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};DE.prototype={set:function(T8){U(this.options,T8);return this},
stop:function(T8){this.session.stopped=T8?2:1},
recognize:function(T8){var Jm=this.session;if(!Jm.stopped){this.touchAction.preventDefaults(T8);var sS=this.recognizers,kR=Jm.curRecognizer;if(!kR||kR&&kR.state&8)kR=Jm.curRecognizer=null;for(var tz=0,L_=sS.length;tz<L_;tz++){var gf=sS[tz];Jm.stopped===2||kR&&gf!=kR&&!gf.canRecognizeWith(kR)?gf.reset():gf.recognize(T8);!kR&&gf.state&14&&(kR=Jm.curRecognizer=gf)}}},
get:function(T8){if(T8 instanceof Ny)return T8;for(var Jm=this.recognizers,sS=0;sS<Jm.length;sS++)if(Jm[sS].options.event==T8)return Jm[sS];return null},
add:function(T8){if(X(T8,"add",this))return this;var Jm=this.get(T8.options.event);Jm&&this.remove(Jm);this.recognizers.push(T8);T8.manager=this;this.touchAction.update();return T8},
remove:function(T8){if(X(T8,"remove",this))return this;var Jm=this.recognizers;T8=this.get(T8);Jm.splice(x(Jm,T8),1);this.touchAction.update();return this},
on:function(T8,Jm){var sS=this.handlers;v(F(T8),function(kR){sS[kR]=sS[kR]||[];sS[kR].push(Jm)});
return this},
off:function(T8,Jm){var sS=this.handlers;v(F(T8),function(kR){Jm?sS[kR].splice(x(sS[kR],Jm),1):delete sS[kR]});
return this},
emit:function(T8,Jm){this.options.domEvents&&p6(T8,Jm);var sS=this.handlers[T8]&&this.handlers[T8].slice();if(sS&&sS.length){Jm.type=T8;Jm.preventDefault=function(){Jm.srcEvent.preventDefault()};
T8=0;for(var kR=sS.length;T8<kR;T8++)sS[T8](Jm)}},
destroy:function(){this.element&&mi(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
U(eV,{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:DE,Input:d,TouchAction:Hl,Recognizer:Ny,AttrRecognizer:Pl,Tap:u9,Pan:W9,Swipe:Re,Pinch:rC,Rotate:rT,Press:le,on:h,off:L,each:v,merge:O,extend:U,inherit:S,bindFn:T,prefixed:V});
w[N]=eV})(window,document,"Hammer");
return window.Hammer}.call({});
W.DOCUMENT=a;a[o_$]=W}return a[o_$]};/*

 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 UXl=function(a,W){if(a.length!==W.length)return!1;for(var w=0;w<a.length;++w)if(a[w]!==W[w])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var OA_=_.l(["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"]),SbE=OA_.next();!SbE.done;SbE=OA_.next()){var YbR=SbE.value,T2T=document.createElement("link");T2T.rel="stylesheet";T2T.href=YbR;document.head.appendChild(T2T)};var PBU,vTv,oTF,BkS,Xzx,lLx,tFe,$T8;PBU={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};vTv={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:"*"};oTF={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};BkS=/[a-z0-9*]/;Xzx=/U\+/;lLx=/^arrow/;tFe=/^space(bar)?/;$T8=/^escape$/;_.YS={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,W){this._imperativeKeyBindings[a]=W;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(a,W){W=UTS(W);for(var w=0;w<W.length;++w)if(gTC(W[w],a))return!0;return!1},
_collectKeyBindings:function(){var a=this.behaviors.map(function(W){return W.keyBindings});
a.indexOf(this.keyBindings)===-1&&a.push(this.keyBindings);return a},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(w){for(var Z in w)this._addKeyBinding(Z,w[Z])},this);
for(var a in this._imperativeKeyBindings)this._addKeyBinding(a,this._imperativeKeyBindings[a]);for(var W in this._keyBindings)this._keyBindings[W].sort(function(w,Z){w=w[0].hasModifiers;return w===Z[0].hasModifiers?0:w?-1:1})},
_addKeyBinding:function(a,W){UTS(a).forEach(function(w){this._keyBindings[w.event]=this._keyBindings[w.event]||[];this._keyBindings[w.event].push([w,W])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(a){var W=this._onKeyBindingEvent.bind(this,this._keyBindings[a]);this._boundKeyHandlers.push([this.keyEventTarget,a,W]);this.keyEventTarget.addEventListener(a,W)},this)},
_unlistenKeyEventListeners:function(){for(var a,W,w;this._boundKeyHandlers.length;)a=this._boundKeyHandlers.pop(),W=a[0],w=a[1],a=a[2],W.removeEventListener(w,a)},
_onKeyBindingEvent:function(a,W){this.stopKeyboardEventPropagation&&W.stopPropagation();if(!W.defaultPrevented)for(var w=0;w<a.length;w++){var Z=a[w][0],N=a[w][1];if(gTC(Z,W)&&(this._triggerKeyHandler(Z,N,W),W.defaultPrevented))break}},
_triggerKeyHandler:function(a,W,w){var Z=Object.create(a);Z.keyboardEvent=w;a=new CustomEvent(a.event,{detail:Z,cancelable:!0});this[W].call(this,a);a.defaultPrevented&&w.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
*/
_.kQ({is:"iron-a11y-keys",_template:null,behaviors:[_.YS],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,{})}});_.TN={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 Kl={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 W=_.Tq(a).localTarget;this.isLightDescendant(W)||(a.preventDefault(),a.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(a){a=_.Tq(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,W){W&&W!=a&&this.hasAttribute(W)&&this.removeAttribute(W)},
_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()}},KdR=[_.YS,
Kl];_.pl={IronButtonState:KdR,IronButtonStateImpl:Kl};_.rl={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.AM=function(a){_.AM[" "](a);this.type=a&&a.type||"default";this.key=a&&a.key;a&&"value"in a&&(this.value=a.value)};
_.AM.prototype.byKey=function(a){this.key=a;return this.value};
_.dU.Object.defineProperties(_.AM.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var a=this.type,W=this.key;if(a&&W)return hM[a]&&hM[a][W]},
set:function(a){var W=this.type,w=this.key;W&&w&&(W=hM[W]=hM[W]||{},a==null?delete W[w]:W[w]=a)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var a=hM[this.type];return a?Object.keys(a).map(function(W){return hM[this.type][W]},this):[]}}});
_.AM[" "]=function(){};
var hM={};_.kQ({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,W,w){a=new _.AM({type:a,key:W});w!==void 0&&w!==a.value?a.value=w: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 _.AM({type:this.type,key:a})).value}});var p$V;p$V=null;_.i3={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){p$V=new _.AM({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return p$V&&p$V.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 ruy={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"}},AuJ=[_.rl,
_.i3,ruy];_.kQ({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 _.AM({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,W){this.removeIcon(a);if(W=this._cloneIcon(W,this.rtlMirroring&&this._targetIsRTL(a))){var w=_.Tq(a.root||a);w.insertBefore(W,w.childNodes[0]);return a._svgIcon=W}return null},
removeIcon:function(a){a._svgIcon&&(_.Tq(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);_.Tq(this).querySelectorAll("[id]").forEach(function(W){a[W.id]=W});
return a},
_cloneIcon:function(a,W){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[a],this.size,W)},
_prepareSvgClone:function(a,W,w){if(a){a=a.cloneNode(!0);var Z=document.createElementNS("http://www.w3.org/2000/svg","svg");W=a.getAttribute("viewBox")||"0 0 "+W+" "+W;var N="pointer-events: none; display: block; width: 100%; height: 100%;";w&&a.hasAttribute("mirror-in-rtl")&&(N+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");Z.setAttribute("viewBox",W);Z.setAttribute("preserveAspectRatio","xMidYMid meet");Z.setAttribute("focusable","false");Z.style&&(Z.style.cssText=
N);Z.appendChild(a).removeAttribute("id");return Z}return null}});var hnV=function(a){this.multi=!1;this.selection=[];this.selectCallback=a};
_.t=hnV.prototype;_.t.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.t.clear=function(a){this.selection.slice().forEach(function(W){(!a||a.indexOf(W)<0)&&this.setItemSelected(W,!1)},this)};
_.t.isSelected=function(a){return this.selection.indexOf(a)>=0};
_.t.setItemSelected=function(a,W){if(a!=null&&W!==this.isSelected(a)){if(W)this.selection.push(a);else{var w=this.selection.indexOf(a);w>=0&&this.selection.splice(w,1)}this.selectCallback&&this.selectCallback(a,W)}};
_.t.select=function(a){this.multi?this.toggle(a):this.get()!==a&&(this.setItemSelected(this.get(),!1),this.setItemSelected(a,!0))};
_.t.toggle=function(a){this.setItemSelected(a,!this.isSelected(a))};_.jK={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 hnV(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Tq(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,W=a-1;this.selected!==void 0&&(W=(Number(this._valueToIndex(this.selected))-1+a)%a);this.selected=this._indexToValue(W)},
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,W){this._removeListener(W);this._addListener(a)},
_updateItems:function(){var a=_.Tq(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 W=0,w;w=this.items[W];W++){if(this._valueForItem(w)==a)return W}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 W=a[N6(this.attrForSelected)];return W!=void 0?W:a.getAttribute(this.attrForSelected)},
_applySelection:function(a,W){this.selectedClass&&this.toggleClass(this.selectedClass,W,a);this.selectedAttribute&&this.toggleAttribute.call(a,this.selectedAttribute,W);this._selectionChange();this.fire("iron-"+(W?"select":"deselect"),{item:a})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(a){return _.Tq(a).observeNodes(function(W){this._updateItems();this._updateSelected();this.fire("iron-items-changed",W,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(a){a=a.target;for(var W=this.items;a&&a!=this;){var w=W.indexOf(a);if(w>=0){W=this._indexToValue(w);this._itemActivate(W,a);break}a=a.parentNode}},
_itemActivate:function(a,W){this.fire("iron-activate",{selected:a,item:W},{cancelable:!0}).defaultPrevented||this.select(a)}};var iAR={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)):_.jK._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(w){return w!==null&&w!==void 0});
this._selection.clear(a);for(var W=0;W<a.length;W++)this._selection.setItemSelected(a[W],!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 W=this.selectedValues.indexOf(a);W<0?this.push("selectedValues",a):this.splice("selectedValues",W,1)},
_valuesToItems:function(a){return a==null?null:a.map(function(W){return this._valueToItem(W)},this)}},cuA=[_.jK,
iAR];var enL;
_.cT={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 W=this._valueToItem(a);W&&W.hasAttribute("disabled")||(this._setFocusedItem(W),iAR.select.apply(this,arguments))},
_resetTabindices:function(){var a=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(W){W.setAttribute("tabindex",W===a?"0":"-1");W.setAttribute("aria-selected",this._selection.isSelected(W))},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 W=this._searchText||"";W+=(a.key&&a.key.length==1?a.key:String.fromCharCode(a.keyCode)).toLocaleLowerCase();a=W.length;for(var w=0,Z;Z=this.items[w];w++)if(!Z.hasAttribute("disabled")){var N=this.attrForItemTitle||"textContent";N=(Z[N]||Z.getAttribute(N)||"").trim();if(!(N.length<a)&&N.slice(0,a).toLocaleLowerCase()==W){this._setFocusedItem(Z);break}}this._searchText=W;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var a=this.items.length,W=Number(this.indexOf(this.focusedItem)),w=1;w<a+1;w++){var Z=this.items[(W-w+a)%a];if(!Z.hasAttribute("disabled")){var N=_.Tq(Z).getOwnerRoot()||document;this._setFocusedItem(Z);if(_.Tq(N).activeElement==Z)break}}},
_focusNext:function(){for(var a=this.items.length,W=Number(this.indexOf(this.focusedItem)),w=1;w<a+1;w++){var Z=this.items[(W+w)%a];if(!Z.hasAttribute("disabled")){var N=_.Tq(Z).getOwnerRoot()||document;this._setFocusedItem(Z);if(_.Tq(N).activeElement==Z)break}}},
_applySelection:function(a,W){W?a.setAttribute("aria-selected","true"):a.setAttribute("aria-selected","false");_.jK._applySelection.apply(this,arguments)},
_focusedItemChanged:function(a,W){W&&W.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");_.cT._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",a);_.cT._shiftTabPressed=!1},1)},
_onFocus:function(a){!_.cT._shiftTabPressed&&(a=_.Tq(a).rootTarget,a===this||typeof a.tabIndex==="undefined"||this.isLightDescendant(a))&&(this._defaultFocusAsync=this.async(function(){var W=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);W?this._setFocusedItem(W):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){_.jK._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};enL=[cuA,_.YS,_.cT];_.n__={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)}};
_.jty=[enL,_.n__];var LdA;LdA=new Set;_.eG={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):(LdA.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 W=this._interestedResizables.indexOf(a);W>-1&&(this._interestedResizables.splice(W,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():Fv||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(a){var W=_.Tq(a).rootTarget;W!==this&&(W.assignParentResizable(this),this._notifyDescendant(W),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 w(){document.removeEventListener("readystatechange",w);a()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(W){W!==this&&W._findParent()},this):(LdA.forEach(function(W){W!==this&&W._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?LdA.delete(this):LdA.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
*/
_.JuA={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(a,W){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);W&&(a==="document"?this.scrollTarget=this._doc:typeof a==="string"?this.scrollTarget=(W=this.domHost)&&W.$?W.$[a]:_.Tq(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,W){if(typeof a==="object"){var w=a.left;W=a.top}else w=a;w=w||0;W=W||0;this.scrollTarget===this._doc?window.scrollTo(w,W):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=w,this.scrollTarget.scrollTop=W)},
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,W){W=W===this._doc?window:W;a?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),W.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(W.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(a){this._shouldHaveListener=a;this._toggleScrollListener(a,this.scrollTarget)}};_.kQ({is:"iron-selector",_template:null,behaviors:[cuA]});var nl={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 W in a.timing)this.animationTiming[W]=a.timing[W];return this.animationTiming},
setPrefixedProperty:function(a,W,w){for(var Z={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[W],N,B=0;N=Z[B];B++)a.style[N]=w;a.style[W]=w},
complete:function(){}};_.kQ({is:"fade-in-animation",_template:null,behaviors:[nl],configure:function(a){return this._effect=new KeyframeEffect(a.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(a))}});_.kQ({is:"fade-out-animation",_template:null,behaviors:[nl],configure:function(a){return this._effect=new KeyframeEffect(a.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(a))}});var Fdl=[{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,W){for(var w in W)a[w]=W[w]},
_cloneConfig:function(a){var W={isClone:!0};this._copyProperties(W,a);return W},
_getAnimationConfigRecursive:function(a,W,w){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 Z=a?this.animationConfig[a]:this.animationConfig;Array.isArray(Z)||(Z=[Z]);if(Z)for(var N,B=0;N=Z[B];B++)if(N.animatable)N.animatable._getAnimationConfigRecursive(N.type||a,W,w);else if(N.id){var I=W[N.id];
I?(I.isClone||(W[N.id]=this._cloneConfig(I),I=W[N.id]),this._copyProperties(I,N)):W[N.id]=N}else w.push(N)}},
getAnimationConfig:function(a){var W={},w=[];this._getAnimationConfigRecursive(a,W,w);for(var Z in W)w.push(W[Z]);return w}},
{_configureAnimations:function(a){var W=[],w=[];if(a.length>0)for(var Z,N=0;Z=a[N];N++){var B=document.createElement(Z.name);if(B.isNeonAnimation){var I=null;B.configure||(B.configure=function(){return null});
I=B.configure(Z);w.push({result:I,config:Z})}else console.warn(this.is+":",Z.name,"not found!")}for(a=0;a<w.length;a++){I=w[a].result;Z=w[a].config;try{typeof I.cancel!="function"&&(I=document.timeline.play(I))}catch(X){I=null,console.warn("Couldnt play","(",Z.name,").",X)}I&&W.push({neonAnimation:B,config:Z,animation:I})}return W},
_shouldComplete:function(a){for(var W=!0,w=0;w<a.length;w++)if(a[w].animation.playState!="finished"){W=!1;break}return W},
_complete:function(a){for(var W=0;W<a.length;W++)a[W].neonAnimation.complete(a[W].config);for(W=0;W<a.length;W++)a[W].animation.cancel()},
playAnimation:function(a,W){var w=this.getAnimationConfig(a);if(w){this._active=this._active||{};this._active[a]&&(this._complete(this._active[a]),delete this._active[a]);var Z=this._configureAnimations(w);if(Z.length==0)this.fire("neon-animation-finish",W,{bubbles:!1});else for(this._active[a]=Z,w=0;w<Z.length;w++)Z[w].animation.onfinish=function(){this._shouldComplete(Z)&&(this._complete(Z),delete this._active[a],this.fire("neon-animation-finish",W,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var a in this._active){var W=this._active[a],w;for(w in W)W[w].animation&&W[w].animation.cancel&&W[w].animation.cancel()}this._active={}}}];var Im=function(a,W){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.arg=W;this.name=this.constructor.name;this.constructor=Im;this.__proto__=Im.prototype};
_.c(Im,Error);var MLh=mv(function(a){var W=function(){return a.apply(this,arguments)||this};
_.c(W,a);W.prototype._marshalArgs=function(w,Z,N){Z=a.prototype._marshalArgs.call(this,w,Z,N);if(this._legacyUndefinedCheck&&Z.length>1)for(N=0;N<Z.length;N++)if(Z[N]===void 0||w[N].wildcard&&Z[N].base===void 0)throw w=w[N].name,new Im("Argument '"+w+"' is undefined.",w);return Z};
W.prototype._addPropertyEffect=function(w,Z,N){return a.prototype._addPropertyEffect.call(this,w,Z,OoC(N,N&&N.info&&N.info.methodName))};
W._addTemplatePropertyEffect=function(w,Z,N){return a._addTemplatePropertyEffect.call(this,w,Z,OoC(N))};
return W}),RnL=_.kQ.Class;
_.kQ.Class=function(a,W){return RnL(a,function(w){return W?W(MLh(w)):MLh(w)})};
var qbe=mv(function(a){var W=MLh(a);a=function(){return W.apply(this,arguments)||this};
_.c(a,W);_.dU.Object.defineProperties(a.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return a}),Qth=RU.mixin;
RU.mixin=Qth?function(a){return qbe(Qth(a))}:qbe;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.Ll=_.pl.IronButtonState;var knE=Jf;/*

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 bAe;_.xXe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");bAe=function(){var a=[],W;var w=w||_.xXe.length;for(W=0;W<8;W++)a[W]=_.xXe[0|Math.random()*w];return a.join("")};var KK7=function(){return Math.random().toString(36).substring(7).split("").join(".")},TkS="@@redux/INIT"+KK7(),ADC="@@redux/REPLACE"+KK7();var hEU=typeof Symbol==="function"&&Symbol.observable||"@@observable";var stA=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var uq6="top right bottom left width height size weight".split(" "),C5T=typeof MutationObserver!=="undefined",GwV=stA&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,DXR=function(){this.mutationEventsAdded_=this.JSC$9568_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=ioe(this.refresh.bind(this))},fKy=function(a,
W){var w=a.observers_;
W=w.indexOf(W);~W&&w.splice(W,1);!w.length&&a.JSC$9568_connected_&&stA&&a.JSC$9568_connected_&&(document.removeEventListener("transitionend",a.onTransitionEnd_),window.removeEventListener("resize",a.refresh),a.mutationsObserver_&&(a.mutationsObserver_.disconnect(),GwV&&(HTMLElement.prototype.attachShadow=GwV)),a.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",a.refresh),a.mutationsObserver_=null,a.mutationEventsAdded_=!1,a.JSC$9568_connected_=!1)};
DXR.prototype.refresh=function(){dXH(this)&&this.refresh()};
var dXH=function(a){a=a.observers_.filter(function(W){return mXh(W),W.activeObservations_.length>0});
a.forEach(function(W){return VLH(W)});
return a.length>0},zn6=function(a){if(stA&&!a.JSC$9568_connected_){document.addEventListener("transitionend",a.onTransitionEnd_);
window.addEventListener("resize",a.refresh);if(C5T){a.mutationsObserver_=new MutationObserver(a.refresh);var W={attributes:!0,childList:!0,characterData:!0,subtree:!0};a.mutationsObserver_.observe(document,W);GwV&&(function N(Z){var B=Z.shadowRoot;B&&(a.mutationsObserver_.observe(B,W),N(B));for(Z=Z.firstElementChild;Z;)N(Z),Z=Z.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var Z=GwV.apply(this,_.TH.apply(0,arguments));
a.mutationsObserver_.observe(Z,W);return Z})}else document.addEventListener("DOMSubtreeModified",a.refresh),a.mutationEventsAdded_=!0;
a.JSC$9568_connected_=!0}};
DXR.prototype.onTransitionEnd_=function(a){var W=a.propertyName===void 0?"":a.propertyName;uq6.some(function(w){return!!~W.indexOf(w)})&&this.refresh()};
var HA6=null;var yuL=function(a,W){for(var w=_.l(Object.keys(W)),Z=w.next();!Z.done;Z=w.next())Z=Z.value,Object.defineProperty(a,Z,{value:W[Z],enumerable:!1,writable:!1,configurable:!0})};var JM=function(a){var W;return(a==null?void 0:(W=a.ownerDocument)==null?void 0:W.defaultView)||globalThis};var E_V={x:0,y:0,width:0,height:0},aBJ=typeof SVGGraphicsElement!=="undefined"?function(a){return a instanceof JM(a).SVGGraphicsElement}:function(a){return a instanceof JM(a).SVGElement&&typeof a.getBBox==="function"};var W5E=function(a){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=a};
W5E.prototype.isActive=function(){var a=this.target;if(stA)if(aBJ(a)){var W=a.getBBox();W={x:0,y:0,width:W.width,height:W.height}}else{var w=a.clientWidth,Z=a.clientHeight;if(w||Z){var N=JM(a).getComputedStyle(a);W=Xt(N["padding-top"]);var B=Xt(N["padding-left"]),I=B+Xt(N["padding-right"]),X=W+Xt(N["padding-bottom"]),v=Xt(N.width),U=Xt(N.height);N.boxSizing==="border-box"&&(Math.round(v+I)!==w&&(v-=cDS(N,"left","right")+I),Math.round(U+X)!==Z&&(U-=cDS(N,"top","bottom")+X));a!==JM(a).document.documentElement&&
(a=Math.round(v+I)-w,Z=Math.round(U+X)-Z,Math.abs(a)!==1&&(v-=a),Math.abs(Z)!==1&&(U-=Z));W={x:B,y:W,width:v,height:U}}else W=E_V}else W=E_V;this.contentRect_=W;return W.width!==this.broadcastWidth||W.height!==this.broadcastHeight};var weV=function(a,W){var w=W.x;var Z=W.y;var N=W.width;W=W.height;var B=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);yuL(B,{x:w,y:Z,width:N,height:W,top:Z,right:w+N,bottom:W+Z,left:w});yuL(this,{target:a,contentRect:B})};var Zj$=function(a,W){var w=HA6;this.activeObservations_=[];this.observations_=new Map;if(typeof a!=="function")throw new TypeError("Qe");this.callback_=a;this.controller_=w;this.callbackCtx_=W};
Zj$.prototype.observe=function(a){if(a===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(a instanceof JM(a).Element))throw new TypeError("Se");var W=this.observations_;W.has(a)||(W.set(a,new W5E(a)),a=this.controller_,~a.observers_.indexOf(this)||a.observers_.push(this),a.JSC$9568_connected_||zn6(a),this.controller_.refresh())}};
Zj$.prototype.unobserve=function(a){if(a===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(a instanceof JM(a).Element))throw new TypeError("Se");var W=this.observations_;W.has(a)&&(W.delete(a),W.size||fKy(this.controller_,this))}};
Zj$.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();fKy(this.controller_,this)};
var mXh=function(a){a.activeObservations_.splice(0);a.observations_.forEach(function(W){W.isActive()&&a.activeObservations_.push(W)})},VLH=function(a){if(a.activeObservations_.length>0){var W=a.callbackCtx_,w=a.activeObservations_.map(function(Z){var N=Z.target,B=Z.contentRect_;
Z.broadcastWidth=B.width;Z.broadcastHeight=B.height;return new weV(N,B)});
a.callback_.call(W,w,W);a.activeObservations_.splice(0)}};var Fc=function(a){if(!(this instanceof Fc))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");HA6||(HA6=new DXR);this.observer_=new Zj$(a,this)};
Fc.prototype.observe=function(a){this.observer_.observe(a)};
Fc.prototype.unobserve=function(a){this.observer_.unobserve(a)};
Fc.prototype.disconnect=function(){this.observer_.disconnect()};var ca7=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Fc;var REm="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(" "),MFe={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},FKC=null,eEH=null;var qyF={},QYe=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 DTI={text:1},sY9={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var NPR=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,t4H={CONSTANT:{isUnwrappable:function(a){return a instanceof Jl},
unwrap:$iA},JAVASCRIPT:{isUnwrappable:function(a){return a instanceof _.Fr},
unwrap:RJ},HTML:{isUnwrappable:function(a){return a instanceof iq},
unwrap:function(a){return eB(a)}},
RESOURCE_URL:{isUnwrappable:function(a){return a instanceof BP},
unwrap:_.IJ},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 g5(a)},
unwrap:_.oJ}},$se={CONSTANT:fLe,JAVASCRIPT:fLe,HTML:function(a){a=a instanceof iq?a:cP(String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return eB(a)},
RESOURCE_URL:fLe,STRING:String,STYLE:fLe,URL:function(a,W){a=NPR.test(a)?a:void 0;return a===void 0?W:a}};var ZIv=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,dTe=/[\t\n\f\r ]+/,VFU=/[\t\n\f\r ,]+/g,HoU=function(a,W,w){return w},ks={},BPJ=function(){var a=function(){var Z={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",Z):Z}(),W=a.createHTML(""),w=a.createScript("");
a=a.createScriptURL("");return{INNOCUOUS_STRING:W,INNOCUOUS_SCRIPT:w,INNOCUOUS_URL:a}}(),om=BPJ.INNOCUOUS_STRING,w08=BPJ.INNOCUOUS_SCRIPT,Wl7=BPJ.INNOCUOUS_URL;var lBT=function(a){var W=Nm7(a);return function(w,Z,N,B){return B?W(B,Z,N,w):om}}({reportHandler:function(a,W){if(a)try{throw Error(W);
}catch(w){_.eJ(w)}},
safeTypesBridge:function(a,W,w){var Z=t4H[W];return Z.isUnwrappable(a)&&(Z=Z.unwrap(a,w),Z!==w)?Z:(0,$se[W])(String(a),w)},
allowedIdentifierPrefixes:[""]});if(kU!==void 0)throw Error("Ue");kU=lBT;if(kU!==lBT)throw Error("Ve");U$("Injectable",[]);var jNF=U$("Inject",[["token",void 0]]),J98=U$("Optional",[]);U$("Injectable",[]);var Fle=U$("Self",[]),M5H=U$("SkipSelf",[]);U$("Host",[]);var IBy={},PKR=function(){};
PKR.prototype.resolve=function(){throw Error("Xe");};
PKR.prototype.addProvider=function(){throw Error("Xe");};var eWS=Function;var Xe_=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,vDE=function(){this._reflect=window.Reflect};
_.t=vDE.prototype;_.t.factory=function(a){return function(){return new (Function.prototype.bind.apply(a,[null].concat(_.K8(_.TH.apply(0,arguments)))))}};
_.t._zipTypesAndAnnotations=function(a,W){var w=typeof a==="undefined"?Array(W.length):Array(a.length);for(var Z=0;Z<w.length;Z++)w[Z]=typeof a==="undefined"?[]:a[Z]!=Object?[a[Z]]:[],W&&$SC(W[Z])&&(w[Z]=w[Z].concat(W[Z]));return w};
_.t._ownParameters=function(a,W){if(Xe_.exec(a.toString()))return null;if(a.parameters&&a.parameters!==W.parameters)return a.parameters;var w=a.ctorParameters;return w&&w!==W.ctorParameters?(W=typeof w==="function"?w():w,a=W.map(function(Z){return Z&&Z.type}),W=W.map(function(Z){return Z&&lA7(Z.decorators)}),this._zipTypesAndAnnotations(a,W)):$SC(this._reflect)&&$SC(this._reflect.getOwnMetadata)&&(W=this._reflect.getOwnMetadata("parameters",a),(w=this._reflect.getOwnMetadata("design:paramtypes",a))||
W)?this._zipTypesAndAnnotations(w,W):Array(a.length).fill(void 0)};
_.t.parameters=function(a){if(!a.prototype)return[];var W=Object.getPrototypeOf(a.prototype).constructor;(a=this._ownParameters(a,W))||W===Object||(a=this.parameters(W));return a||[]};
_.t._ownAnnotations=function(a,W){if(a.annotations&&a.annotations!==W.annotations)return a=a.annotations,typeof a==="function"&&a.annotations&&(a=a.annotations),a;if(a.decorators&&a.decorators!==W.decorators)return lA7(a.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",a)};
_.t.annotations=function(a){var W=Object.getPrototypeOf(a.prototype).constructor;a=this._ownAnnotations(a,W)||[];return(W!==Object?this.annotations(W):[]).concat(a)};
_.t._ownPropMetadata=function(a,W){if(a.propMetadata&&a.propMetadata!==W.propMetadata)return a=a.propMetadata,typeof a==="function"&&a.propMetadata&&(a=a.propMetadata),a;if(a.propDecorators&&a.propDecorators!==W.propDecorators){var w=a.propDecorators,Z={};Object.keys(w).forEach(function(N){Z[N]=lA7(w[N])});
return Z}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",a)};
_.t.propMetadata=function(a){var W=Object.getPrototypeOf(a.prototype).constructor,w={};if(W!==Object){var Z=this.propMetadata(W);Object.keys(Z).forEach(function(B){w[B]=Z[B]})}var N=this._ownPropMetadata(a,W);
N&&Object.keys(N).forEach(function(B){var I=[];w.hasOwnProperty(B)&&I.push.apply(I,_.K8(w[B]));I.push.apply(I,_.K8(N[B]));w[B]=I});
return w};
_.t.getter=function(a){return function(W){return W[a]}};
_.t.method=function(a){return function(W,w){if(!W[a])throw Error("Ye`"+a);return W[a].apply(W,w)}};var gDA=function(){};var oDh=function(a){this.reflectionCapabilities=a};
_.c(oDh,gDA);_.t=oDh.prototype;_.t.factory=function(a){return this.reflectionCapabilities.factory(a)};
_.t.parameters=function(a){return this.reflectionCapabilities.parameters(a)};
_.t.annotations=function(a){return this.reflectionCapabilities.annotations(a)};
_.t.propMetadata=function(a){return this.reflectionCapabilities.propMetadata(a)};
_.t.getter=function(a){return this.reflectionCapabilities.getter(a)};
_.t.method=function(a){return this.reflectionCapabilities.method(a)};var OIF=new oDh(new vDE);var M7=function(a,W){this.token=a;this.id=W;if(a===void 0||a===null)throw Error("cf");};
_.dU.Object.defineProperties(M7.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return O$(this.token)}}});
_.dU.Object.defineProperties(M7,{JSC$9610_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Ys.JSC$9614_numberOfKeys}}});
var k9L=function(){this._allKeys=new Map};
k9L.prototype.get=function(a){if(a instanceof M7)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var W=new M7(a,M7.JSC$9610_numberOfKeys);this._allKeys.set(a,W);return W};
_.dU.Object.defineProperties(k9L.prototype,{JSC$9614_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Ys=new k9L;var RWE=function(a,W,w){this.key=a;this.optional=W;this.visibility=w},YMe=function(a){return new RWE(a,!1,null)},Klm=[],A9U=function(a,W,w){this.key=a;
this.resolvedFactories=W;this.multiProvider=w},p08=function(a,W,w,Z){this.factory=a;
this.dependencies=W;this.providerClass=w;this.providerValue=Z};var RA={},q7=function(a,W){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=W===void 0?null:W;a=_.l(a);for(W=a.next();!W.done;W=a.next())this.addProvider(W.value)};
_.t=q7.prototype;_.t.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(RA)};
_.t.resolve=function(a,W){W=W===void 0?IBy:W;return this._getByKey(Ys.get(SH(a)),null,W)};
_.t._new=function(a){if(this.constructedKeyIds[a.key.id])throw o2F(this,a.key);this.constructedKeyIds[a.key.id]=!0;return this._instantiateProvider(a)};
_.t._instantiateProvider=function(a){if(a.multiProvider){for(var W=Array(a.resolvedFactories.length),w=0;w<a.resolvedFactories.length;++w)W[w]=this._instantiate(a,a.resolvedFactories[w]);return W}return this._instantiate(a,a.resolvedFactories[0])};
_.t._instantiate=function(a,W){var w=this,Z=W.factory;try{var N=W.dependencies.map(function(I){return w._getByReflectiveDependency(I)})}catch(I){throw I.addKey&&I.addKey(this,a.key),I;
}try{var B=Z.apply(null,_.K8(N))}catch(I){throw k6S(this,I,a.key);}return B};
_.t._getByReflectiveDependency=function(a){return this._getByKey(a.key,a.visibility,a.optional?null:IBy)};
_.t._getByKey=function(a,W,w){return a===UsJ?this:W instanceof Fle?this._getByKeySelf(a,w):this._getByKeyDefault(a,w,W)};
_.t._getObjByKeyId=function(a){for(var W=0;W<this.keyIds.length;W++)if(this.keyIds[W]===a)return this.objs[W]===RA&&(this.objs[W]=this._new(this.providers[W])),this.objs[W];return RA};
_.t._throwOrNull=function(a,W){if(W!==IBy)return W;throw g2F(this,a);};
_.t._getByKeySelf=function(a,W){var w=this._getObjByKeyId(a.id);return w!==RA?w:this._throwOrNull(a,W)};
_.t._getByKeyDefault=function(a,W,w){for(var Z=w=w instanceof M5H?this.parent:this;w instanceof q7;){var N=w._getObjByKeyId(a.id);if(N!==RA)return N;w=w.parent}N=void 0;if(w!==null)try{var B=w.resolve(a.token,W);if(B!==RA)return B}catch(I){N=I}if(!(Z instanceof q7&&QNC(a.token))){if(N)throw N;return this._throwOrNull(a,W)}for(B=Z;B.parent instanceof q7;)B=B.parent;B.addProvider(hW8({provide:a.token,useClass:a.token}));return B.resolve(a.token,W)};
_.t.toString=function(){return this.displayName};
_.dU.Object.defineProperties(q7.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+qMe(this,function(a){return' "'+a.key.displayName+'" '}).join(", ")+"])"}}});
var UsJ=Ys.get(SH(PKR));(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 OjL=window.XRegExp;var SBR=-1,YBy=function(a){addEventListener("pageshow",function(W){W.persisted&&(SBR=W.timeStamp,a(W))},!0)};var K5V=function(a,W,w){var Z=TPV,N,B;return function(I){if(W.value>=0&&(I||w)){var X;if((B=W.value-((X=N)!=null?X:0))||N===void 0)N=W.value,W.delta=B,I=W.value,W.rating=I>Z[1]?"poor":I>Z[0]?"needs-improvement":"good",a(W)}}};var peV=function(a){requestAnimationFrame(function(){return requestAnimationFrame(function(){return a()})})};var rxR=function(){var a=performance.getEntriesByType("navigation")[0];if(a&&a.responseStart>0&&a.responseStart<performance.now())return a};var AxV=function(){var a,W;return(W=(a=rxR())==null?void 0:a.activationStart)!=null?W:0};var hgJ=function(){var a=a===void 0?-1:a;var W=rxR(),w="navigate";SBR>=0?w="back-forward-cache":W&&(document.prerendering||AxV()>0?w="prerender":document.wasDiscarded?w="restore":W.type&&(w=W.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:w}};var bI9=new WeakMap;var ije=function(a){var W=W===void 0?{}:W;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var w=new PerformanceObserver(function(Z){Promise.resolve().then(function(){a(Z.getEntries())})});
w.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},W));return w}}catch(Z){}};var cxH=function(a){var W=!1;return function(){W||(a(),W=!0)}};var Qp=-1,egE=function(a){document.visibilityState==="hidden"&&Qp>-1&&(Qp=a.type==="visibilitychange"?a.timeStamp:0,removeEventListener("visibilitychange",egE,!0),removeEventListener("prerenderingchange",egE,!0))},nD_=function(){addEventListener("visibilitychange",egE,!0);
addEventListener("prerenderingchange",egE,!0)},jL_=function(){if(Qp<0){var a=AxV(),W,w;
Qp=(w=document.prerendering?void 0:(W=globalThis.performance.getEntriesByType("visibility-state").filter(function(Z){return Z.name==="hidden"&&Z.startTime>a})[0])==null?void 0:W.startTime)!=null?w:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
nD_();YBy(function(){setTimeout(function(){Qp=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;nD_()})})}return{get firstHiddenTime(){return Qp}}};var L5J=function(a){document.prerendering?addEventListener("prerenderingchange",function(){return a()},!0):a()};var xS9=function(){};
xS9.prototype._processEntry=function(a){var W;(W=this._onBeforeProcessingEntry)==null||W.call(this,a)};var TPV=[2500,4E3],pfC=function(a){var W=W===void 0?{}:W;L5J(function(){var w=jL_(),Z=hgJ(),N=sNv(W),B=function(S){W.reportAllChanges||(S=S.slice(-1));S=_.l(S);for(var T=S.next();!T.done;T=S.next())T=T.value,N._processEntry(T),T.startTime<w.firstHiddenTime&&(Z.value=Math.max(T.startTime-AxV(),0),Z.entries=[T],X())},I=ije(B);
if(I){var X=K5V(a,Z,W.reportAllChanges);for(var v=cxH(function(){B(I.takeRecords());I.disconnect();X(!0)}),U=_.l(["keydown",
"click","visibilitychange"]),O=U.next();!O.done;O=U.next())addEventListener(O.value,function(){var S=v,T=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?S():(S=cxH(S),T(S),document.addEventListener("visibilitychange",S,{once:!0}))},{capture:!0,
once:!0});YBy(function(S){Z=hgJ();X=K5V(a,Z,W.reportAllChanges);peV(function(){Z.value=performance.now()-S.timeStamp;X(!0)})})}})};var Jxh;var F5L;_.y=function(){return F5L!==void 0?F5L:F5L=document.createElement("template")};
document.head.appendChild(_.y().content);var M4J;_.kQ({_template:function(){if(M4J!==void 0)return M4J;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
var W=a.content,w=W.insertBefore;Jxh===void 0&&(Jxh=document.createElement("template"));var Z=Jxh;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return M4J=a},
is:"tp-yt-app-toolbar"});var RgV;var qBL;_.xS=function(){};
_.xS=_.kQ({_template:function(){if(qBL!==void 0)return qBL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;RgV===void 0&&(RgV=document.createElement("template"));var Z=RgV;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return qBL=a},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.xS.instance||(_.xS.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)}});
_.xS.instance=null;_.xS.requestAvailability=function(){_.xS.instance||(_.xS.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.xS.instance):document.addEventListener("load",function(){document.body.appendChild(_.xS.instance)})};var QLL;var xs$;/*

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
*/
_.kQ({_template:function(){if(xs$!==void 0)return xs$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;QLL===void 0&&(QLL=document.createElement("template"));var Z=QLL;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return xs$=a},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.i3,_.TN],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=_.i3.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 W=this.textarea;W&&(W.value!==a&&(W.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 W=_.Tq(a).path;this.value=W?W[0].value:a.target.value},
_constrain:function(a){var W;a=a||[""];for(W=this.maxRows>0&&a.length>this.maxRows?a.slice(0,this.maxRows):a.slice(0);this.rows>0&&W.length<this.rows;)W.push("");return W.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 bjT;var sLh;_.kQ({_template:function(){if(sLh!==void 0)return sLh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
var W=a.content,w=W.insertBefore;bjT===void 0&&(bjT=document.createElement("template"));var Z=bjT;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return sLh=a},
is:"tp-yt-iron-collapse",behaviors:[_.eG],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,W){a=a==="auto"?"":a;W=W&&!this.noAnimation&&this.isAttached&&this._desiredSize!==a;this._desiredSize=a;this._updateTransition(!1);W&&(W=this._calcSize(),a===""&&(this.style[this._dimensionMax]="",a=this._calcSize()),this.style[this._dimensionMax]=W,this.scrollTop=this.scrollTop,this._updateTransition(!0),W=a!==W);this.style[this._dimensionMax]=a;W||this._transitionEnd()},
enableTransition:function(a){_.Tp._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){_.Tq(a).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var u76;var CKV;var G9R=void 0,Ds_={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,W=_.Tq((a=this.hostElement)!=null?a:
this).parentNode;W&&W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(W=W.host);return W},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,W=window.getComputedStyle((a=this.hostElement)!=null?a:this);a=window.getComputedStyle(this.sizingTarget);var w,Z,N;this._fitInfo={inlineStyle:{top:((w=this.hostElement)!=null?w:this).style.top||"",left:((Z=this.hostElement)!=null?Z:this).style.left||"",position:((N=this.hostElement)!=null?N:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:W.top!=="auto"?"top":W.bottom!=="auto"?"bottom":null,horizontally:W.left!=="auto"?"left":W.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(W.marginTop,10)||0,right:parseInt(W.marginRight,10)||0,bottom:parseInt(W.marginBottom,10)||0,left:parseInt(W.marginLeft,10)||0}}}},
resetFit:function(){var a=this._fitInfo||{},W;for(W in a.sizerInlineStyle)this.sizingTarget.style[W]=a.sizerInlineStyle[W];for(W in a.inlineStyle){var w=void 0;((w=this.hostElement)!=null?w:this).style[W]=a.inlineStyle[W]}this._fitInfo=null},
refit:function(){var a=this.sizingTarget.scrollLeft,W=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=a;this.sizingTarget.scrollTop=W},
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 W;((W=this.hostElement)!=null?W:this).style.left="0px";var w;((w=this.hostElement)!=null?w:this).style.top="0px";var Z,N=((Z=this.hostElement)!=null?Z:this).getBoundingClientRect();W=this.__getNormalizedRect(this.positionTarget);Z=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(Z={left:Z.left+24,right:Z.right-24,top:Z.top+24,bottom:Z.bottom-24});if(this.expandSizingTargetForScrollbars){var B=this.sizingTarget.offsetWidth;var I=this.sizingTarget.offsetHeight;var X=this.sizingTarget.clientWidth;var v=this.sizingTarget.clientHeight}a=this._fitInfo.margin;W=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:N.width+a.left+a.right,height:N.height+a.top+a.bottom},N,W,Z);var U=W.left+a.left,O=W.top+a.top;w=Math.min(Z.right-a.right,U+N.width);var S=Math.min(Z.bottom-
a.bottom,O+N.height);U=Math.max(Z.left+a.left,Math.min(U,w-this._fitInfo.sizedBy.minWidth));O=Math.max(Z.top+a.top,Math.min(O,S-this._fitInfo.sizedBy.minHeight));w=Math.max(w-U,this._fitInfo.sizedBy.minWidth);S=Math.max(S-O,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=w+"px";this.sizingTarget.style.maxHeight=S+"px";U-=N.left;N=O-N.top;var T;((T=this.hostElement)!=null?T:this).style.left=U+"px";var p;((p=this.hostElement)!=null?p:this).style.top=N+"px";if(this.expandSizingTargetForScrollbars){T=
this.sizingTarget.offsetHeight;I=T-this.sizingTarget.clientHeight-(I-v);if(I>0){this.sizingTarget.style.maxHeight=Math.min(Z.height-a.top-a.bottom,S+I)+"px";I=this.sizingTarget.offsetHeight;v=I-T;var h;W.verticalAlign==="top"?h=N:W.verticalAlign==="middle"?h=N-v/2:W.verticalAlign==="bottom"&&(h=N-v);h=Math.max(Z.top+a.top,Math.min(h,Z.bottom-a.bottom-I));var L;((L=this.hostElement)!=null?L:this).style.top=h+"px"}h=this.sizingTarget.offsetWidth;B=h-this.sizingTarget.clientWidth-(B-X);if(B>0){G9R!==
void 0?X=G9R:(X=document.createElement("div"),Object.assign(X.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),L=document.createElement("div"),L.style.width="200px",L.style.height="200px",X.appendChild(L),document.body.appendChild(X),G9R=Math.abs(X.offsetWidth-100)>1?X.offsetWidth-X.clientWidth:0,document.body.removeChild(X),X=G9R);this.sizingTarget.style.maxWidth=Math.min(Z.width-a.left-a.right,w+B-X)+"px";B=this.sizingTarget.offsetWidth+X;X=B-h;var F;
W.horizontalAlign==="left"?F=U:W.horizontalAlign==="center"?F=U-X/2:W.horizontalAlign==="right"&&(F=U-X);F=Math.max(Z.left+a.left,Math.min(F,Z.right-a.right-B));var x;((x=this.hostElement)!=null?x:this).style.left=F+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var a=this._fitInfo;if(!a.positionedBy.vertically){var W;((W=this.hostElement)!=null?W:this).style.position="fixed";var w;((w=this.hostElement)!=null?w:this).style.top="0px"}if(!a.positionedBy.horizontally){var Z;((Z=this.hostElement)!=null?Z:this).style.position="fixed";var N;((N=this.hostElement)!=null?N:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var B;W=((B=this.hostElement)!=null?B:this).getBoundingClientRect();
a.sizedBy.height||this.__sizeDimension(W,a.positionedBy.vertically,"top","bottom","Height");a.sizedBy.width||this.__sizeDimension(W,a.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(a,W,w,Z,N){this.__sizeDimension(a,W,w,Z,N)},
__sizeDimension:function(a,W,w,Z,N){var B=this._fitInfo,I=this.__getNormalizedRect(this.fitInto);I=N==="Width"?I.width:I.height;a=(W=W===Z)?I-a[Z]:a[w];w=B.margin[W?w:Z];Z="offset"+N;var X;B=((X=this.hostElement)!=null?X:this)[Z]-this.sizingTarget[Z];this.sizingTarget.style["max"+N]=I-w-a-B+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var a=this._fitInfo.positionedBy;if(!a.vertically||!a.horizontally){var W;((W=this.hostElement)!=null?W:this).style.position="fixed";if(!a.vertically){var w;((w=this.hostElement)!=null?w:this).style.top="0px"}if(!a.horizontally){var Z;((Z=this.hostElement)!=null?Z:this).style.left="0px"}var N;W=((N=this.hostElement)!=null?N:this).getBoundingClientRect();N=this.__getNormalizedRect(this.fitInto);if(!a.vertically){w=N.top-W.top+(N.height-
W.height)/2;var B;((B=this.hostElement)!=null?B:this).style.top=w+"px"}if(!a.horizontally){a=N.left-W.left+(N.width-W.width)/2;var I;((I=this.hostElement)!=null?I: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,W,w){return Math.abs(Math.min(0,a.top)+Math.min(0,w.bottom-(a.top+W.height)))*W.width+Math.abs(Math.min(0,a.left)+Math.min(0,w.right-(a.left+W.width)))*W.height},
__getPosition:function(a,W,w,Z,N,B){var I=[{verticalAlign:"top",horizontalAlign:"left",top:N.top+this.verticalOffset,left:N.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:N.top+this.verticalOffset,left:N.right-w.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:N.bottom-w.height-this.verticalOffset,left:N.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:N.bottom-w.height-this.verticalOffset,left:N.right-w.width-
this.horizontalOffset}];if(this.noOverlap){for(var X=0,v=I.length;X<v;X++){var U={},O;for(O in I[X])U[O]=I[X][O];I.push(U)}I[0].top=I[1].top+=N.height;I[2].top=I[3].top-=N.height;I[4].left=I[6].left+=N.width;I[5].left=I[7].left-=N.width}W=W==="auto"?null:W;a=a==="auto"?null:a;a&&a!=="center"||(I.push({verticalAlign:"top",horizontalAlign:"center",top:N.top+this.verticalOffset+(this.noOverlap?N.height:0),left:N.left-Z.width/2+N.width/2+this.horizontalOffset}),I.push({verticalAlign:"bottom",horizontalAlign:"center",
top:N.bottom-w.height-this.verticalOffset-(this.noOverlap?N.height:0),left:N.left-Z.width/2+N.width/2+this.horizontalOffset}));W&&W!=="middle"||(I.push({verticalAlign:"middle",horizontalAlign:"left",top:N.top-Z.height/2+N.height/2+this.verticalOffset,left:N.left+this.horizontalOffset+(this.noOverlap?N.width:0)}),I.push({verticalAlign:"middle",horizontalAlign:"right",top:N.top-Z.height/2+N.height/2+this.verticalOffset,left:N.right-w.width-this.horizontalOffset-(this.noOverlap?N.width:0)}));W==="middle"&&
a==="center"&&I.push({verticalAlign:"middle",horizontalAlign:"center",top:N.top-Z.height/2+N.height/2+this.verticalOffset,left:N.left-Z.width/2+N.width/2+this.horizontalOffset});for(X=0;X<I.length;X++){Z=I[X];N=Z.verticalAlign===W;v=Z.horizontalAlign===a;if(!this.dynamicAlign&&!this.noOverlap&&N&&v){var S=Z;break}U=(!W||N)&&(!a||v);if(this.dynamicAlign||U){Z.offscreenArea=this.__getOffscreenArea(Z,w,B);if(Z.offscreenArea===0&&U){S=Z;break}Z.alignsOk=N+v;S=S||Z;N=Z.offscreenArea-S.offscreenArea;if(N<
0||N===0&&Z.alignsOk>S.alignsOk)S=Z}}return S}};/*

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 b3,fBV,ds_;b3=Element.prototype;fBV=b3.matches||b3.matchesSelector||b3.mozMatchesSelector||b3.msMatchesSelector||b3.oMatchesSelector||b3.webkitMatchesSelector;ds_=function(){};
_.V4y=function(a){var W=msl,w=[];return W._collectTabbableNodes(a,w)?W._sortByTabIndex(w):w};
_.t=ds_.prototype;_.t._normalizedTabIndex=function(a){return(fBV.call(a,"input, select, textarea, button, object")?fBV.call(a,":not([disabled])"):fBV.call(a,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(a=a.getAttribute("tabindex")||0,Number(a)):-1};
_.t._collectTabbableNodes=function(a,W){if(a.nodeType!==Node.ELEMENT_NODE||!this._isVisible(a))return!1;var w=this._normalizedTabIndex(a),Z=w>0;w>=0&&W.push(a);if(a.localName==="content"||a.localName==="slot")w=_.Tq(a).getDistributedNodes();else{var N;w=((N=_.Tq(a).shadowRoot)!=null?N:_.Tq(a.root||a)).children}for(a=0;a<w.length;a++)Z=this._collectTabbableNodes(w[a],W)||Z;return Z};
_.t._isVisible=function(a){var W=a.style;return W.visibility!=="hidden"&&W.display!=="none"?(W=window.getComputedStyle(a),W.visibility!=="hidden"&&W.display!=="none"):!1};
_.t._sortByTabIndex=function(a){var W=a.length;if(W<2)return a;var w=Math.ceil(W/2);W=this._sortByTabIndex(a.slice(0,w));a=this._sortByTabIndex(a.slice(w));return this._mergeSortByTabIndex(W,a)};
_.t._mergeSortByTabIndex=function(a,W){for(var w=[];a.length>0&&W.length>0;)this._hasLowerTabOrder(a[0],W[0])?w.push(W.shift()):w.push(a.shift());return w.concat(a,W)};
_.t._hasLowerTabOrder=function(a,W){a=Math.max(a.tabIndex,0);W=Math.max(W.tabIndex,0);return a===0||W===0?W>a:a>W};
var msl=new ds_;var zgR;var HjL;_.kQ({_template:function(){if(HjL!==void 0)return HjL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;zgR===void 0&&(zgR=document.createElement("template"));var Z=zgR;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return HjL=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&&_.Tq(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Tq(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 so=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;cH(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)};
so.prototype._bringOverlayAtIndexToFront=function(a){var W=this._overlays[a];if(W){var w=this._overlays.length-1,Z=this._overlays[w];Z&&this._shouldBeBehindOverlay(W,Z)&&w--;if(!(a>=w)){Z=Math.max(this._getZ(_.yx$(this)),this._minimumZ);for(this._getZ(W)<=Z&&this._applyOverlayZ(W,Z);a<w;)this._overlays[a]=this._overlays[a+1],a++;this._overlays[w]=W}}};
so.prototype.addOverlay=function(a){var W=this._overlays.indexOf(a);if(W>=0)this._bringOverlayAtIndexToFront(W);else{W=this._overlays.length;var w=this._overlays[W-1],Z=Math.max(this._getZ(w),this._minimumZ),N=this._getZ(a);w&&this._shouldBeBehindOverlay(a,w)&&(this._applyOverlayZ(w,Z),W--,Z=Math.max(this._getZ(this._overlays[W-1]),this._minimumZ));N<=Z&&this._applyOverlayZ(a,Z);this._overlays.splice(W,0,a)}this.trackBackdrop()};
so.prototype.removeOverlay=function(a){a=this._overlays.indexOf(a);a!==-1&&(this._overlays.splice(a,1),this.trackBackdrop())};
_.yx$=function(a){return a._overlays[a._overlays.length-1]};
_.t=so.prototype;_.t.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()};
_.t._overlayWithBackdrop=function(){for(var a=this._overlays.length-1;a>=0;a--)if(this._overlays[a].withBackdrop)return this._overlays[a]};
_.t._getZ=function(a){var W=this._minimumZ;if(a){var w,Z,N=Number(((w=a.hostElement)!=null?w:a).style.zIndex||window.getComputedStyle((Z=a.hostElement)!=null?Z:a).zIndex);N===N&&(W=N)}return W};
_.t._setZ=function(a,W){var w;((w=a.hostElement)!=null?w:a).style.zIndex=W};
_.t._applyOverlayZ=function(a,W){this._setZ(a,W+2)};
_.t._overlayInPath=function(a){a=a||[];for(var W=0;W<a.length;W++){var w=void 0;if(((w=a[W].polymerController)!=null?w:a[W])._manager===this)return a[W]}};
_.t._onCaptureClick=function(a){var W=this._overlays.length-1;if(W!==-1)for(var w=_.Tq(a).path,Z,N;(Z=this._overlays[W])&&this._overlayInPath(w)!==((N=Z.hostElement)!=null?N:Z);)if(Z._onCaptureClick(a),Z.allowClickThrough)W--;else break};
_.t._onCaptureFocus=function(a){var W=_.yx$(this);W&&W._onCaptureFocus(a)};
_.t._onCaptureKeyDown=function(a){var W=_.yx$(this);W&&(_.YS.keyboardEventMatchesKeys(a,"esc")?W._onCaptureEsc(a):_.YS.keyboardEventMatchesKeys(a,"tab")&&W._onCaptureTab(a))};
_.t._shouldBeBehindOverlay=function(a,W){return!a.alwaysOnTop&&W.alwaysOnTop&&!W.contains(a)};
_.dU.Object.defineProperties(so.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&&_.Tq(a.root).activeElement;)a=_.Tq(a.root).activeElement;return a}}});
_.u3=new so;var uDe=0,CEe=0,G6I=null,DSH=[],KS=["wheel","mousewheel","DOMMouseScroll"],fA7;_.r("web_no_lock_on_touchstart_killswitch")&&(KS.push("touchstart"),KS.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;_.Cl={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:_.u3},_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||_.Tq((a=this.hostElement)!=null?a:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var a;return _.V4y((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=_.Tq((a=this.hostElement)!=null?a:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var a;_.Tq((a=this.hostElement)!=null?a:this).unobserveNodes(this._observer)}this._observer=null;for(var W in this.__rafs)this.__rafs[W]!==null&&cancelAnimationFrame(this.__rafs[W]);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 W;((W=this.hostElement)!=null?W:this).style.display="none"}},
_openedChanged:function(a){if(a){var W;((W=this.hostElement)!=null?W:this).removeAttribute("aria-hidden")}else{var w;((w=this.hostElement)!=null?w: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 W;((W=this.hostElement)!=null?W:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var w;((w=this.hostElement)!=null?w: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 W;((W=this.hostElement)!=null?W:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var a,W;((a=this.hostElement)!=null?a:this).style.transition=((W=this.hostElement)!=null?W:this).style.webkitTransition="none";var w,Z;((w=this.hostElement)!=null?w:this).style.transform=((Z=this.hostElement)!=null?Z:this).style.webkitTransform="none";var N;((N=this.hostElement)!=null?N:this).style.display=""},
_finishPositioning:function(){var a;((a=this.hostElement)!=null?a:this).style.display="none";this.scrollTop=this.scrollTop;var W,w;((W=this.hostElement)!=null?W:this).style.transition=((w=this.hostElement)!=null?w:this).style.webkitTransition="";var Z,N;((Z=this.hostElement)!=null?Z:this).style.transform=((N=this.hostElement)!=null?N:this).style.webkitTransform="";var B;((B=this.hostElement)!=null?B: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,W;if(!(W=a===document.body))a:{for(;a;a=a.assignedSlot||a.parentNode||a.host)if(a===this){W=!0;break a}W=!1}W&&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 W=_.Tq(a).path;W.indexOf(this)===-1?(a.stopPropagation(),this._applyFocus()):this._focusedChild=W[0]}},
_onCaptureEsc:function(a){this.noCancelOnEscKey||this.cancel(a)},
_onCaptureTab:function(a){if(this.withBackdrop){this.__ensureFirstLastFocusables();var W=a.shiftKey,w=W?this.__firstFocusableNode:this.__lastFocusableNode;W=W?this.__lastFocusableNode:this.__firstFocusableNode;if(w===W)w=!0;else{var Z=this._manager.deepActiveElement;w=Z===w||Z===this}w&&(a.preventDefault(),this._focusedChild=W,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,W){var w=this.__rafs;w[a]!==null&&cancelAnimationFrame(w[a]);w[a]=requestAnimationFrame(function(){w[a]=null;W.call(this)}.bind(this))},
__updateScrollObservers:function(a,W,w){a&&W&&this.__isValidScrollAction(w)?(w==="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),fA7=_._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),fA7=_._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(Fv)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(W){W.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||_.Tq(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)}};
_.GN=[Ds_,_.eG,_.Cl];_.kQ({_template:function(){if(CKV!==void 0)return CKV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;u76===void 0&&(u76=document.createElement("template"));var Z=u76;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return CKV=a},
is:"tp-yt-iron-dropdown",behaviors:[_.TN,_.YS,_.GN,Fdl],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=_.Tq(this.$.content).getDistributedNodes(),W=0,w=a.length;W<w;W++)if(a[W].nodeType===Node.ELEMENT_NODE)return a[W]},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(),_.Cl._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Cl._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Cl._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var a=this.containedElement,W=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),w=0;w<W.length;w++)W[w].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():_.Cl._applyFocus.apply(this,arguments)}});var ED_;var arA;/*

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 WIH=new _.AM({type:"iconset"});
_.kQ({_template:function(){if(arA!==void 0)return arA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;ED_===void 0&&(ED_=document.createElement("template"));
var Z=ED_;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return arA=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&&_.Tq(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=WIH.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,_.Tq(this.root).appendChild(this._img)}});var w66;var Zwh;_.kQ({_template:function(){if(Zwh!==void 0)return Zwh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
var W=a.content,w=W.insertBefore;w66===void 0&&(w66=document.createElement("template"));var Z=w66;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return Zwh=a},
is:"tp-yt-iron-input",behaviors:[_.i3],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(){_.xS.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Tq(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Tq(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,W){W&&(a===void 0?W.value=null:a!==W.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 W=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&&W)},
_onKeypress:function(a){if(this.allowedPattern||this.inputElement.type==="number"){var W=this._patternRegExp;if(W&&!(a.metaKey||a.ctrlKey||a.altKey)){this._patternAlreadyChecked=!0;var w=String.fromCharCode(a.charCode);this._isPrintable(a)&&!W.test(w)&&(a.preventDefault(),this._announceInvalidCharacter("Invalid character "+w+" not entered."))}}},
_checkPatternValidity:function(){var a=this._patternRegExp;if(!a)return!0;for(var W=0;W<this.inputElement.value.length;W++)if(!a.test(this.inputElement.value[W]))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=_.i3.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 NX$;var tre;var $mE=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),BX6=$mE&&$mE[1]>=8;
_.kQ({_template:function(){if(tre!==void 0)return tre;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;NX$===void 0&&(NX$=document.createElement("template"));var Z=NX$;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return tre=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:[UlC,_.eG,_.JuA,KOl],_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 _.Tq(_.Tq(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 W=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
a=this._iterateItems(function(w,Z){W+=this._getPhysicalSizeIncrement(w);if(W>this._scrollPosition)return this.grid?Z-Z%this._itemsPerRow:Z;if(this.grid&&this._virtualCount-1===Z)return Z-Z%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 W=this._physicalTop+this._scrollOffset;this._iterateItems(function(w,Z){W<this._scrollBottom&&(a=Z);W+=this._getPhysicalSizeIncrement(w)})}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,_.gJ);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,_.gJ)},
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)),W=a-this._scrollPosition,w=W>=0;this._scrollPosition=a;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(W)>this._physicalSize&&this._physicalSize>0?(W-=this._scrollOffset,w=Math.round(W/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=w,this._physicalStart+=w,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(a=this._getReusables(w),w?(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,w?null:a.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),j2))},
_getReusables:function(a){var W=[],w=this._hiddenContentSize*this._ratio,Z=this._virtualStart,N=this._virtualEnd,B=this._physicalCount,I=this._physicalTop+this._scrollOffset;var X=this._physicalBottom+this._scrollOffset;var v=this._scrollPosition,U=this._scrollBottom;if(a){var O=this._physicalStart;X=v-I}else O=this._physicalEnd,X-=U;for(;;){var S=this._getPhysicalSizeIncrement(O);X-=S;if(W.length>=B||X<=w)break;if(a){if(N+W.length+1>=this._virtualCount)break;if(I+S>=v-this._scrollOffset)break;W.push(O);
I+=S;O=(O+1)%B}else{if(Z-W.length<=0)break;if(I+this._physicalSize-S<=U)break;W.push(O);I-=S;O=O===0?B-1:O-1}}return{indexes:W,physicalTop:I-this._scrollOffset}},
_update:function(a,W){if(!(a&&a.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(a);this._updateMetrics(a);if(W)for(;W.length;)a=W.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(a);this._positionItems();this._updateScrollerSize()}},
_createPool:function(a){this._ensureTemplatized();var W,w=Array(a);for(W=0;W<a;W++){var Z=this.stamp(null);w[W]=Z.root.querySelector("*");this._itemsParent.appendChild(Z.root)}return w},
_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 W=a%this._itemsPerRow;W&&a-W<=this._physicalCount&&(a+=this._itemsPerRow);a-=W}a-=this._physicalCount;W=Math.round(this._physicalCount*.5);if(!(a<0)){if(a>0){W=window.performance.now();[].push.apply(this._physicalItems,this._createPool(a));for(var w=0;w<a;w++)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()-W)/a;W=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||W===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,W)),ZDH):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,W),j2))}},
_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,W){typeof W!=="undefined"&&(this.notifyResize(),_.Pn(),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,
_.gJ);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(w){return w.addedCount>0||w.removed.length>0})){var W=this._getActiveElement();
this.contains(W)&&W.blur()}a=a.value.indexSplices.some(function(w){return w.index+w.addedCount>=this._virtualStart&&w.index<=this._virtualEnd},this);
this._isClientFull()&&!a||this._debounce("_render",this._render,_.gJ)}else a.path!=="items.length"&&this._forwardItemPath(a.path,a.value)},
_forwardItemPath:function(a,W){a=a.slice(6);var w=a.indexOf(".");w===-1&&(w=a.length);var Z,N=this.modelForElement(this._offscreenFocusedItem),B=parseInt(a.substring(0,w),10);if(Z=this._isIndexRendered(B)){var I=this._getPhysicalIndex(B);var X=this.modelForElement(this._physicalItems[I])}else N&&(X=N);X&&X[this.indexAs]===B&&(a=a.substring(w+1),a=this.as+(a?"."+a:""),X._setPendingPropertyOrPath(a,W,!1,!0),X._flushProperties&&X._flushProperties(),Z&&(this._updateMetrics([I]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(a){a.forEach(function(W){W.removed.forEach(this._removeItem,this);W.index<this._virtualStart&&(W=Math.max(W.addedCount-W.removed.length,W.index-this._virtualStart),this._virtualStart+=W,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=W))},this)},
_removeItem:function(a){this.$.selector.deselect(a);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===a&&this._removeFocusedItem()},
_iterateItems:function(a,W){var w,Z;if(arguments.length===2&&W)for(Z=0;Z<W.length;Z++){var N=W[Z];var B=this._computeVidx(N);if((w=a.call(this,N,B))!=null)return w}else{N=this._physicalStart;for(B=this._virtualStart;N<this._physicalCount;N++,B++)if((w=a.call(this,N,B))!=null)return w;for(N=0;N<this._physicalStart;N++,B++)if((w=a.call(this,N,B))!=null)return w}},
_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(W,w){var Z=this._physicalItems[W],N=this.items&&this.items[w];if(N!=null){var B=this.modelForElement(Z);B.__key__=null;this._forwardProperty(B,this.as,N);this._forwardProperty(B,this.selectedAs,this.$.selector.isSelected(N));this._forwardProperty(B,this.indexAs,w);this._forwardProperty(B,"tabIndex",this._focusedVirtualIndex===w?0:-1);this._physicalIndexForKey[B.__key__]=W;B._flushProperties&&B._flushProperties(!0);Z.removeAttribute("hidden")}else Z.setAttribute("hidden",
"")},a)},
_updateMetrics:function(a){_.Pn();var W=0,w=0,Z=this._physicalAverageCount,N=this._physicalAverage;this._iterateItems(function(B){w+=this._physicalSizes[B];this._physicalSizes[B]=this._physicalItems[B].offsetHeight;W+=this._physicalSizes[B];this._physicalAverageCount+=this._physicalSizes[B]?1:0},a);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(w=this._itemsPerRow===1?w:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+W-w,this._itemsPerRow=1);this._physicalAverageCount!==Z&&(this._physicalAverage=Math.round((N*Z+W)/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 W=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(w,Z){var N=Math.floor(Z%this._itemsPerRow*this._itemWidth+W);this._isRTL&&(N*=-1);this.translate3d(N+"px",a+"px",0,this._physicalItems[w]);this._shouldRenderNextRow(Z)&&(a+=this._rowHeight)})}else this._iterateItems(function(w){this.translate3d(0,a+"px",0,this._physicalItems[w]);
a+=this._physicalSizes[w]})},
_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 W=this._scrollPosition;!BX6&&W>0&&this._resetScrollPosition(W-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)&&(_.Pn(),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 W=this._physicalStart,w=this._virtualStart,Z=0,N=this._hiddenContentSize;w<a&&
Z<=N;)Z+=this._getPhysicalSizeIncrement(W),W=(W+1)%this._physicalCount,w++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+Z);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)},_.gJ)},
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 W=this.modelForElement(this._physicalItems[this._getPhysicalIndex(a)]);W&&(W[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 W=this.modelForElement(a.target);if(W){var w=_.Tq(a).path[0];a=this._getActiveElement();var Z=this._physicalItems[this._getPhysicalIndex(W[this.indexAs])];if(w.localName!=="input"&&w.localName!=="button"&&w.localName!=="select"){w=W.tabIndex;W.tabIndex=-100;var N=a?a.tabIndex:-1;W.tabIndex=w;a&&Z!==a&&Z.contains(a)&&N!==-100||this.toggleSelectionForItem(W[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 W=this._physicalItems[this._getPhysicalIndex(a)],w=this.modelForElement(W),Z;w.tabIndex=-100;W.tabIndex===-100&&(Z=W);Z||(Z=_.Tq(W).querySelector('[tabindex="-100"]'));w.tabIndex=0;this._focusedVirtualIndex=a;Z&&Z.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 W=this.stamp(null);this._focusBackfillItem=W.root.querySelector("*");this._itemsParent.appendChild(W.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),W=this._physicalItems[a];if(W){var w=this.modelForElement(W),Z=this.modelForElement(this._offscreenFocusedItem);w[this.as]===Z[this.as]?(this._focusBackfillItem=W,w.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 W=this.modelForElement(this._focusedItem),w=this._offscreenFocusedItem!==null,Z=this._focusedVirtualIndex;a&&(W===a?this._isIndexVisible(Z)||this.scrollToIndex(Z):(this._restoreFocusedItem(),W&&(W.tabIndex=-1),a.tabIndex=0,this._focusedVirtualIndex=Z=a[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(Z),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],w&&!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,W,w){return Math.min(w,Math.max(W,a))},
_debounce:function(a,W,w){this._debouncers=this._debouncers||{};this._debouncers[a]=_.tA(this._debouncers[a],w,W.bind(this));_.$i(this._debouncers[a])},
_forwardProperty:function(a,W,w){a._setPendingProperty(W,w)},
_forwardHostPropV2:function(a,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(w){w&&this.modelForElement(w).forwardHostProp(a,W)},this)},
_notifyInstancePropV2:function(a,W,w){E_9(this.as,W)&&(a=a[this.indexAs],W==this.as&&(this.items[a]=w),this.notifyPath(IU(this.as,"items."+a,W),w))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(a,W,w){W.indexOf(this.as+".")===0&&this.notifyPath("items."+a.__key__+"."+W.slice(this.as.length+1),w)},
_forwardParentPath:function(a,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(w){w&&this.modelForElement(w).notifyPath(a,W)},this)},
_forwardParentProp:function(a,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(w){w&&(this.modelForElement(w)[a]=W)},this)},
_getActiveElement:function(){var a=this._itemsParent.node.domHost;return _.Tq(a?a.root:document).activeElement},
_scrollTargetChanged:function(a,W){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(W)if(a==="document")this.scrollTarget=this._doc;else if(typeof a==="string"){var w,Z;this.scrollTarget=(W=(Z=(w=this.domHost)==null?void 0:w.polymerController)!=null?Z:this.domHost)&&W.$?W.$[a]:_.Tq(this.ownerDocument).querySelector("#"+a)}else this._isValidScrollTarget()&&(this._oldScrollTarget=a,this._toggleScrollListener(this._shouldHaveListener,a))}});var lrR;var Irh;var PLT=function(a,W,w,Z){a-=w;W-=Z;return Math.sqrt(a*a+W*W)},X6H=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
dS7.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var mSH=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 dS7(a.element)};
V5x.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var a=X6H()-this.mouseDownStart;this.mouseUpStart&&(a-=this.mouseUpElapsed);return a},get mouseUpElapsed(){return this.mouseUpStart?X6H()-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 W=this.xNow-this.containerMetrics.width/2;var w=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+W+"px, "+w+"px)";this.waveContainer.style.transform="translate3d("+W+"px, "+w+"px, 0)";this.wave.style.webkitTransform="scale("+a+","+a+")";this.wave.style.transform="scale3d("+a+","+a+",1)"},
downAction:function(a){var W=this.containerMetrics.width/2,w=this.containerMetrics.height/2;mSH(this);this.mouseDownStart=X6H();this.center?(this.xStart=W,this.yStart=w):(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=W,this.yEnd=w);a=this.containerMetrics;W=this.xStart;w=this.yStart;this.maxRadius=Math.max(PLT(W,w,0,0),PLT(W,w,
a.width,0),PLT(W,w,0,a.height),PLT(W,w,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=X6H())},
remove:function(){_.Tq(_.Tq(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.kQ({_template:function(){if(Irh!==void 0)return Irh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;lrR===void 0&&(lrR=document.createElement("template"));var Z=lrR;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return Irh=a},
is:"tp-yt-paper-ripple",behaviors:[_.YS],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(){_.Tq(this).parentNode.nodeType==11?this.keyEventTarget=_.Tq(this).getOwnerRoot().host:this.keyEventTarget=_.Tq(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(W){W.upAction(a)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var a=0;a<this.ripples.length;++a){var W=this.ripples[a];W.isOpacityFullyDecayed&&!W.isRestingAtMaxRadius&&this.removeRipple(W)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var a=new V5x(this);_.Tq(this.$.waves).appendChild(a.waveContainer);this.$.background.style.backgroundColor=a.color;this.ripples.push(a);this._setAnimating(!0);return a},
removeRipple:function(a){var W=this.ripples.indexOf(a);W<0||(this.ripples.splice(W,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 W=this.ripples[a];W.draw();this.$.background.style.opacity=W.outerOpacity;W.isOpacityFullyDecayed&&!W.isRestingAtMaxRadius&&this.removeRipple(W)}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,W){W!==void 0&&(a?this.downAction():this.upAction())}});var Dj={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(a){Kl._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 W=this._rippleContainer||this.root;W&&_.Tq(W).appendChild(this._ripple);if(a){W=_.Tq(this._rippleContainer||this);var w=_.Tq(a).rootTarget;W.deepContains(w)&&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 vBR={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){Kl._spaceKeyDownHandler.call(this,a);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(a){Kl._spaceKeyUpHandler.call(this,a);this.hasRipple()&&this._ripple.uiUpAction()}},gBT=[KdR,
_.TN,Dj,vBR];_.oBT={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=a)},
_createRipple:function(){var a=Dj._createRipple();a.id="ink";a.setAttribute("center","");a.classList.add("circle");return a}};
_.kb6=[KdR,_.TN,Dj,_.oBT];_.UmA=[_.kb6,AuJ,{_checkedChanged:function(){ruy._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){Dj._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var OwT;var SaH;var YaV=function(){};
_.t=YaV.prototype;_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._buttonStateChanged=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._createRipple=function(){};
_.t._noinkChanged=function(){};
_.t._computeKeyboardClass=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
_.t._setElevation=function(){};
YaV=_.kQ({_template:function(){if(SaH!==void 0)return SaH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
var W=a.content,w=W.insertBefore;OwT===void 0&&(OwT=document.createElement("template"));var Z=OwT;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return SaH=a},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[gBT],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?vBR._calculateElevation.apply(this):this._setElevation(0)}});var TXH;var KIE;var p6H={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(a){_.r("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(a)},
_onDialogClickWrapped:function(a){_.r("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,W){W&&(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))},
_updateClosingReasonConfirmed:function(a){this.closingReason=this.closingReason||{};this.closingReason.confirmed=a},
_onDialogClick:function(a){for(var W=_.Tq(a).path,w=0,Z,N=W.indexOf((Z=this.hostElement)!=null?Z:this);w<N;w++)if(Z=W[w],Z.hasAttribute&&(Z.hasAttribute("dialog-dismiss")||Z.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(Z.hasAttribute("dialog-confirm"));this.close();a.stopPropagation();break}}},rye=[_.GN,
p6H];var Ayl=document.createElement("template");_.n(Ayl,'<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(Ayl.content);var hiT=document.createElement("template");_.n(hiT,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(hiT.content);_.kQ({_template:function(){if(KIE!==void 0)return KIE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
var W=a.content,w=W.insertBefore;TXH===void 0&&(TXH=document.createElement("template"));var Z=TXH;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return KIE=a},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[rye,Fdl],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 iwJ;var cyl;_.kQ({_template:function(){if(cyl!==void 0)return cyl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;iwJ===void 0&&(iwJ=document.createElement("template"));var Z=iwJ;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return cyl=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,W,w;if(((a=window.ShadyDOM)==null?void 0:a.noPatch)!==!0&&((W=window.ShadyDOM)==null?void 0:W.noPatch)!=="on-demand"||((w=this.__shady_parentNode)==null?void 0:w.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(p6H)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var ei6=_.ma(['<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>']),nBe=_.iDJ(ei6);nBe.setAttribute("style","display: none;");document.head.appendChild(nBe.content);var jaE;var LIe;var Jyy;var FIE;_.kQ({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[nl],configure:function(a){var W=a.node,w=W.getBoundingClientRect().height;return this._effect=new KeyframeEffect(W,[{height:w/2+"px"},{height:w+"px"}],this.timingFromConfig(a))}});
_.kQ({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[nl],configure:function(a){var W=a.node,w=W.getBoundingClientRect().width;return this._effect=new KeyframeEffect(W,[{width:w/2+"px"},{width:w+"px"}],this.timingFromConfig(a))}});
_.kQ({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[nl],configure:function(a){var W=a.node,w=W.getBoundingClientRect().width;return this._effect=new KeyframeEffect(W,[{width:w+"px"},{width:w-w/20+"px"}],this.timingFromConfig(a))}});
_.kQ({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[nl],configure:function(a){var W=a.node,w=W.getBoundingClientRect().height;this.setPrefixedProperty(W,"transformOrigin","0 0");return this._effect=new KeyframeEffect(W,[{height:w+"px",transform:"translateY(0)"},{height:w/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(a))}});var fl={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Mry=function(){};
_.t=Mry.prototype;_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._focusBlurHandler=function(){};
_.t._changedControlState=function(){};
_.t._setFocused=function(){};
Mry=_.kQ({_template:function(){if(FIE!==void 0)return FIE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;Jyy===void 0&&(Jyy=document.createElement("template"));var Z=Jyy;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return FIE=a},
is:"tp-yt-paper-menu-button",behaviors:[_.YS,_.TN],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:fl.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:fl.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:fl.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=_.Tq(this.$.content).getDistributedNodes(),W=0,w=a.length;W<w;W++)if(a[W].nodeType===Node.ELEMENT_NODE)return a[W]},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,W){a?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):W!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(a){_.TN._disabledChanged.apply(this,arguments);a&&this.opened&&this.close()},
__onIronOverlayCanceled:function(a){var W=this.$.trigger;_.Tq(a.detail).path.indexOf(W)>-1&&a.preventDefault()}});
Object.keys(fl).forEach(function(a){Mry[a]=fl[a]});var RiV=_.pl.IronButtonState,qaV=(0,_.Yi)(HTMLElement);
_.kQ({_template:function(){if(LIe!==void 0)return LIe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;jaE===void 0&&(jaE=document.createElement("template"));var Z=jaE;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return LIe=a},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[RiV,_.TN,Dj,_.rl,_.i3],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 W=(0,_.oU)(this);W.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:a});W.shadowRoot.appendChild(a);return qaV.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=_.Tq(this.$.content).getDistributedNodes(),W=0,w=a.length;W<w;W++)if(a[W].nodeType===Node.ELEMENT_NODE)return a[W]},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 W="";a?W=a.label||a.getAttribute("label")||a.textContent.trim():W="";this.value=W;this._setSelectedItemLabel(W)},
_computeMenuVerticalOffset:function(a,W){return W?W:a?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var a=this.opened?"true":"false",W=this.contentElement;W&&W.setAttribute("aria-expanded",a)},
_computeLabelClass:function(a,W,w){var Z="label";if(a)w&&(Z+=" label-is-hidden");else if(w||W)Z+=" label-is-floating";return Z},
_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 QaA;var xmR;_.kQ({is:"tp-yt-paper-icon-button",_template:function(){if(xmR!==void 0)return xmR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;QaA===void 0&&(QaA=document.createElement("template"));var Z=QaA;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return xmR=a},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.kb6],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(a,W){var w=this.getAttribute("aria-label");w&&W!=w||this.setAttribute("aria-label",a)}});var bwe;var saL;_.dl=[KdR,_.TN,{hostAttributes:{role:"option",tabindex:"0"}}];_.kQ({_template:function(){if(saL!==void 0)return saL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;bwe===void 0&&(bwe=document.createElement("template"));var Z=bwe;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return saL=a},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.dl]});var uNh;var CLy;var GbL={attached:function(){this.fire("addon-attached")},
update:function(){}};var Dme=1,fre=1,dm$=1,mmV=[_.TN,_.YS,{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();!y9&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(a,W){a?a=a+" "+W:a=W;return a},
_onAddonAttached:function(a){a=_.Tq(a).rootTarget;if(a.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,a.id);else{var W="paper-input-add-on-"+fre++;a.id=W;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,W)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(a){_.TN._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 W=this.inputElement.selectionStart;this.value=a;this.inputElement.selectionStart=W;this.inputElement.selectionEnd=W}catch(w){this.value=a}},
_computeAlwaysFloatLabel:function(a,W){return W||a},
_updateAriaLabelledBy:function(){var a=_.Tq(this.root).querySelector("label");if(a){if(a.id)var W=a.id;else W="paper-input-label-"+Dme++,a.id=W;this._ariaLabelledBy=W}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+dm$++)},
_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 VrJ;var zie;_.kQ({_template:function(){if(zie!==void 0)return zie;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;VrJ===void 0&&(VrJ=document.createElement("template"));var Z=VrJ;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return zie=a},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[GbL],properties:{_charCounterStr:{type:String,value:"0"}},update:function(a){if(a.inputElement){a.value=a.value||"";var W=a.value.toString().length.toString();a.inputElement.hasAttribute("maxlength")&&(W+="/"+a.inputElement.getAttribute("maxlength"));this._charCounterStr=W}}});var Hwh;var yyA;_.kQ({_template:function(){if(yyA!==void 0)return yyA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;Hwh===void 0&&(Hwh=document.createElement("template"));var Z=Hwh;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return yyA=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 N6(this.attrForValue)},get _inputElement(){return _.Tq(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 W=a.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,W.value===void 0||W.value===""))return;this._handleValueAndAutoValidate(a.target)},
_handleValue:function(a){var W=this._inputElementValue;W||W===0||a.type==="number"&&!a.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:a,value:W,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 W,w=0;W=this._addons[w];w++)W.update(a)},
_computeInputContentClass:function(a,W,w,Z,N){var B="input-content";a?(N&&(B+=" label-is-hidden"),Z&&!this.noUnfloatedLabelError&&(B+=" is-invalid")):(a=this.querySelector("label"),W||N?(B+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",Z?B+=" is-invalid":w&&(B+=" label-is-highlighted")):(a&&(this.$.labelAndInputContainer.style.position="relative"),Z&&!this.noUnfloatedLabelError&&(B+=" is-invalid")));w&&(B+=" focused");return B},
_computeUnderlineClass:function(a,W){var w="underline";W?w+=" is-invalid":a&&(w+=" is-highlighted");return w},
_computeAddOnContentClass:function(a,W){var w="add-on-content";W?w+=" is-invalid":a&&(w+=" is-highlighted");return w}});var EBe;var adE;_.kQ({_template:function(){if(adE!==void 0)return adE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;EBe===void 0&&(EBe=document.createElement("template"));var Z=EBe;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return adE=a},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[GbL],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(a){this._setInvalid(a.invalid)}});_.kQ({is:"tp-yt-paper-input",_template:function(){if(CLy!==void 0)return CLy;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;uNh===void 0&&(uNh=document.createElement("template"));var Z=uNh;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return CLy=a},
behaviors:[mmV,_.rl],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 WaR;var wNR;_.kQ({_template:function(){if(wNR!==void 0)return wNR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=
a.content,w=W.insertBefore;WaR===void 0&&(WaR=document.createElement("template"));var Z=WaR;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return wNR=a},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.dl]});var Z4A;var NOR;_.kQ({_template:function(){if(NOR!==void 0)return NOR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
var W=a.content,w=W.insertBefore;Z4A===void 0&&(Z4A=document.createElement("template"));var Z=Z4A;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return NOR=a},
is:"tp-yt-paper-item-body"});var tae;var $9_;var BOT=function(){};
_.t=BOT.prototype;_.t.indexOf=function(){};
_.t.selectPrevious=function(){};
_.t.selectNext=function(){};
_.t.selectIndex=function(){};
_.t.forceSynchronousItemUpdate=function(){};
_.t._checkFallback=function(){};
_.t._addListener=function(){};
_.t._removeListener=function(){};
_.t._activateEventChanged=function(){};
_.t._updateItems=function(){};
_.t._selectSelected=function(){};
_.t._filterItem=function(){};
_.t._valueToItem=function(){};
_.t._valueToIndex=function(){};
_.t._indexToValue=function(){};
_.t._valueForItem=function(){};
_.t._observeItems=function(){};
_.t._itemActivate=function(){};
_.t.multiChanged=function(){};
_.t._updateAttrForSelected=function(){};
_.t._updateSelected=function(){};
_.t._selectMulti=function(){};
_.t._selectionChange=function(){};
_.t._toggleSelected=function(){};
_.t._valuesToItems=function(){};
_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t.select=function(){};
_.t._resetTabindices=function(){};
_.t._updateMultiselectable=function(){};
_.t._focusWithKeyboardEvent=function(){};
_.t._clearSearchText=function(){};
_.t._focusPrevious=function(){};
_.t._focusNext=function(){};
_.t._applySelection=function(){};
_.t._focusedItemChanged=function(){};
_.t._onIronItemsChanged=function(){};
_.t._onShiftTabDown=function(){};
_.t._onFocus=function(){};
_.t._onUpKey=function(){};
_.t._onDownKey=function(){};
_.t._onEscKey=function(){};
_.t._onKeydown=function(){};
_.t._activateHandler=function(){};
_.t._disabledChanged=function(){};
_.t._setSelectedItem=function(){};
_.t._setItems=function(){};
_.t._setSelectedItems=function(){};
_.t._setFocusedItem=function(){};
BOT=_.kQ({_template:function(){if($9_!==void 0)return $9_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
var W=a.content,w=W.insertBefore;tae===void 0&&(tae=document.createElement("template"));var Z=tae;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return $9_=a},
is:"tp-yt-paper-listbox",behaviors:[enL],hostAttributes:{role:"listbox"}});var ldh;var IdR;var PVR={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,W){return[a||W?"active":"",W?"cooldown":""].join(" ")},
__activeChanged:function(a,W){this.__setAriaHidden(!a);this.__coolingDown=!a&&W},
__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}};_.kQ({_template:function(){if(IdR!==void 0)return IdR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;ldh===void 0&&(ldh=document.createElement("template"));var Z=ldh;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return IdR=a},
is:"tp-yt-paper-spinner",behaviors:[PVR]});var XNL;var vX_;_.kQ({_template:function(){if(vX_!==void 0)return vX_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;XNL===void 0&&(XNL=document.createElement("template"));var Z=XNL;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return vX_=a},
is:"tp-yt-paper-spinner-lite",behaviors:[PVR]});var gXV;var oX$;_.kQ({_template:function(){if(oX$!==void 0)return oX$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;gXV===void 0&&(gXV=document.createElement("template"));var Z=gXV;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return oX$=a},
is:"tp-yt-paper-tab",behaviors:[_.TN,_.pl.IronButtonState,Dj],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=_.Tq(this).parentNode;return!!a&&!!a.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(a){if(this.link){var W=this.queryEffectiveChildren("a");W&&a.target!==W&&W.click()}}});var kS_;var U9J;var O4e=_.ma(['<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>']),S9h=_.iDJ(O4e);document.head.appendChild(S9h.content);_.kQ({_template:function(){if(U9J!==void 0)return U9J;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;kS_===void 0&&(kS_=document.createElement("template"));var Z=kS_;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return U9J=a},
is:"tp-yt-paper-tabs",behaviors:[_.eG,_.jty],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){_.Tq(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,W,w,Z){return!W||w?"hidden":a?Z?"hidden":"not-visible":""},
_computeTabsContentClass:function(a,W){var w="tabs-content";a&&(w+=" scrollable");if(!a||W)w+=" fit-container";return w},
_computeSelectionBarClass:function(a,W){var w="selection-bar";a?w+=" hidden":W&&(w+=" align-bottom");return w},
_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();_.cT._activateHandler.apply(this,arguments)},
_scheduleActivation:function(a,W){this._pendingActivationItem=a;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,W)},
_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,W){this.scrollable&&this._affectScroll(W&&-W.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,W){if(a){var w=this.$.tabsContent.getBoundingClientRect(),Z=w.width,N=a.getBoundingClientRect();w=N.left-w.left;this._pos={width:this._calcPercent(N.width,Z),left:this._calcPercent(w,Z)};if(this.noSlide||W==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var B=W.getBoundingClientRect();W=this.items.indexOf(W);a=this.items.indexOf(a);this.$.selectionBar.classList.add("expand");
a=W<a;this._isRTL&&(a=!a);a?this._positionBar(this._calcPercent(N.left+N.width-B.left,Z)-5,this._left):this._positionBar(this._calcPercent(B.left+B.width-N.left,Z)-5,this._calcPercent(w,Z)+5);this.scrollable&&this._scrollToSelectedIfNeeded(N.width,w)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(a,W){W-=this.$.tabsContainer.scrollLeft;W<0?this.$.tabsContainer.scrollLeft+=W:(W+=a-this.$.tabsContainer.offsetWidth,W>0&&(this.$.tabsContainer.scrollLeft+=W))},
_calcPercent:function(a,W){return 100*a/W},
_positionBar:function(a,W){a=a||0;W=W||0;this._width=a;this._left=W;this.transform("translateX("+W+"%) 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 Y9J;var TOR;_.kQ({_template:function(){if(TOR!==void 0)return TOR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;Y9J===void 0&&(Y9J=document.createElement("template"));var Z=Y9J;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return TOR=a},
is:"tp-yt-paper-textarea",behaviors:[mmV,_.rl],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 KaR;var pN6;/*

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 rNA=function(){};
_.t=rNA.prototype;_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._noinkChanged=function(){};
_.t._focusedChanged=function(){};
_.t.registered=function(){};
_.t._invalidChanged=function(){};
_.t.hasValidator=function(){};
_.t.validate=function(){};
_.t._getValidity=function(){};
_.t._requiredChanged=function(){};
_.t._valueChanged=function(){};
_.t._checkedChanged=function(){};
_.t._buttonStateChanged=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
rNA=_.kQ({is:"tp-yt-paper-toggle-button",_template:function(){if(pN6!==void 0)return pN6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;KaR===void 0&&(KaR=document.createElement("template"));var Z=KaR;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return pN6=a},
behaviors:[_.UmA],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");_.DW(this,function(){_.nM(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=Dj._createRipple();a.id="ink";a.setAttribute("recenters","");a.classList.add("circle","toggle-ink");return a}});var ANe;var hhh;_.kQ({_template:function(){if(hhh!==void 0)return hhh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;ANe===void 0&&(ANe=document.createElement("template"));var Z=ANe;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return hhh=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=_.Tq(this).parentNode,W=_.Tq(this).getOwnerRoot(),w;this.for?w=_.Tq(W).querySelector("#"+this.for):w=a.nodeType==Node.DOCUMENT_FRAGMENT_NODE?W.host:a;return w},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&&_.Tq(this).textContent.trim()===""){for(var a=!0,W=_.Tq(this).getEffectiveChildNodes(),w=0;w<W.length;w++)if(W[w].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 W=this.offsetParent.getBoundingClientRect(),w=this._target.getBoundingClientRect(),Z=this.getBoundingClientRect(),N=(w.width-Z.width)/2,B=(w.height-Z.height)/2,I=w.left-W.left,X=w.top-W.top;switch(this.position){case "top":var v=I+N;var U=X-Z.height-a;break;case "bottom":v=I+N;U=X+w.height+a;break;case "left":v=I-Z.width-a;U=X+B;break;case "right":v=I+w.width+
a,U=X+B}this.fitToVisibleBounds?(W.left+v+Z.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,v)+"px",this.style.right="auto"),W.top+U+Z.height>window.innerHeight?(this.style.bottom=W.height+"px",this.style.top="auto"):(this.style.top=Math.max(-W.top,U)+"px",this.style.bottom="auto")):(this.style.left=v+"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 W=this.animationConfig[a][0].timing.delay;a==="entry"?this.updateStyles({"--paper-tooltip-delay-in":W+"ms"}):a==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":W+
"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 i4V=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(i4V,_.QH);var cNh=_.Em(i4V,[0,_.Hz]);var m6=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(m6,_.QH);var ehy=[3,4],nXe=[5,6];var jI_=[0,ehy,nXe,_.jPe,-1,_.z1,_.LZh,-1,ejS,nNI];var LaA=_.Em(m6,jI_),JNA=_.aJ(jI_);var FaH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(FaH,_.QH);var MaR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(MaR,_.QH);var RhH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(RhH,_.QH);var q9E=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(q9E,_.QH);var QIJ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(QIJ,_.QH);var Vp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Vp,_.QH);Vp.prototype.getSource=function(){return _.JD(this,1)};
Vp.prototype.getMessage=function(){return _.Lo(this,4)};
Vp.prototype.getData=function(){return _.Hi(this,QIJ,8)};var x9_=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(x9_,_.QH);var zN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(zN,_.QH);var HT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(HT,_.QH);var yp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(yp,_.QH);yp.prototype.getUrl=function(){return _.Lo(this,1)};
yp.prototype.setUrl=function(a){return _.Xu(this,1,a)};
yp.prototype.hasUrl=function(){return _.b9(_.Oy(this,1))!=null};var b46=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(b46,_.QH);var sIH=[3];var u2l=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(u2l,_.QH);var Eo=function(a){var W=new u2l;return _.yJ(W,2,a)};
u2l.prototype.getLanguage=function(){return MT(this,4,ai)};
var CVl=function(a){var W=Eo(1);return _.N_(W,6,ai,a)},ai=[3,
4,5,6];var GSR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(GSR,_.QH);var Wo=function(a){var W=new GSR;return _.yJ(W,1,a)},w7=function(a,W){return _.N_(a,2,D9R,W)},D9R=[2,
3,4,5];var fdh=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(fdh,_.QH);var Zl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Zl,_.QH);var d96=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(d96,_.QH);var m9A=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(m9A,_.QH);var VaA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(VaA,_.QH);var zhL=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(zhL,_.QH);var H46=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(H46,_.QH);var Na=function(a){return _.Hi(a,HT,5)};var yNV=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(yNV,_.QH);yNV.prototype.getValue=function(){return no(this,1)};var EX$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(EX$,_.QH);var t4=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(t4,_.QH);t4.prototype.getMetadata=function(){return _.RY(this,VaA,7,$c)};
t4.prototype.hasMetadata=function(){return _.T1(this,VaA,7,$c)};
var aLJ=_.w9F(t4),$c=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Bo=function(a){this.JSC$9835_name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};
Bo.prototype.getName=function(){return this.JSC$9835_name_};var Ii=function(a,W){this.callback_=W;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Bo("");WKR(this,a,this.rootDirectory_);lH(this)},WKR=function(a,W,w){for(var Z=0;Z<W.length;Z++){var N=W[Z];
N.isFile?(a.fileOps_++,N.file((0,_.Sk)(a.handleFileSuccess_,a,w),(0,_.Sk)(a.handleFileError_,a))):a.unscannedDirectories_.push(new wzT(N,w))}},lH=function(a){if(a.unscannedDirectories_.length>0&&a.directoryOps_<5&&!a.hasError_){a.directoryOps_++;
var W=a.unscannedDirectories_.shift(),w=W.entry,Z=new Bo(w.name);W=W.parent;W.directoryMap_[Z.getName()]=Z;W.directories_.push(Z);w=w.createReader();w.readEntries((0,_.Sk)(a.handleDirectorySuccess_,a,w,Z),(0,_.Sk)(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_)};
Ii.prototype.handleDirectorySuccess_=function(a,W,w){WKR(this,w,W);w.length==0?(this.directoryOps_--,lH(this)):a.readEntries((0,_.Sk)(this.handleDirectorySuccess_,this,a,W),(0,_.Sk)(this.handleDirectoryError_,this))};
Ii.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;lH(this)};
Ii.prototype.handleFileSuccess_=function(a,W){a.files_.push(W);this.fileOps_--;lH(this)};
Ii.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;lH(this)};
var wzT=function(a,W){this.entry=a;this.parent=W};var Po=function(a){_.Ti.call(this);_.vX(a,"drop",this.onObjectsDropped_,!1,this);_.vX(a,"dragenter",this.onFilesDragged_,!1,this);_.vX(a,"dragover",this.onFilesDragged_,!1,this);_.vX(a,"dragleave",this.onDragLeave_,!1,this);_.vX(a,"dragend",this.onDragLeave_,!1,this)};
_.NT(Po,_.Ti);var Zo$=function(a,W){_.kO.call(this,"f");this.files=a;this.directories=W};
_.NT(Zo$,_.kO);var NkJ=function(){_.kO.call(this,"h")};
_.NT(NkJ,_.kO);var tFA=function(){_.kO.call(this,"i")};
_.NT(tFA,_.kO);var $Th=function(){_.kO.call(this,"g")};
_.NT($Th,_.kO);Po.prototype.onObjectsDropped_=function(a){var W=this;a.preventDefault();var w=a.event_.dataTransfer;if((a=w&&w.items)&&a.length>0&&a[0].webkitGetAsEntry){w=[];for(var Z=[],N=0;N<a.length;N++){var B=a[N].webkitGetAsEntry();B?w.push(B):Z.push(a[N])}new Ii(w,function(I,X,v){v?W.dispatchEvent(new $Th("Error occurred while reading from the file system.")):W.dispatchEvent(new Zo$(I,X,Z))})}else(a=w&&w.files)&&this.dispatchEvent(new Zo$(Array.from(a),[]))};
Po.prototype.onFilesDragged_=function(a){a.type==="dragenter"&&this.dispatchEvent(new NkJ);a.preventDefault()};
Po.prototype.onDragLeave_=function(){this.dispatchEvent(new tFA)};var BkR=function(a,W){this.JSC$9858_name_=a;this.inputElement_=W};
BkR.prototype.getName=function(){return this.JSC$9858_name_};
BkR.prototype.getInputElement=function(){return this.inputElement_};var X8=function(a,W,w){W=W===void 0?"single_file":W;w=w===void 0?[]:w;_.Ti.call(this);this.overlayTarget_=a;this.parentOverlay_=a!=null?a.parentNode:_.PM("scotty-overlay-parent");this.selectorType_=W;this.acceptTypes_=w;this.overlay_=lL$(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.c(X8,_.Ti);
var lL$=function(a,W,w,Z){var N=document.createElement("input");N.setAttribute("type","file");N.setAttribute("name","Filedata");_.vX(N,"change",a.onFilesSelected_,!1,a);w==="multiple_file"&&(N.multiple="true");w==="single_directory"&&(N.webkitdirectory="true");Z.length>0&&N.setAttribute("accept",Z.join(","));N.style.position="absolute";N.style.overflow="hidden";N.style.height="0px";N.style.width="0px";N.style.opacity="0";N.setAttribute("aria-hidden","true");N.setAttribute("tabIndex",-1);if(a.overlayTarget_!=
null)return N.style.height=W.offsetHeight+"px",N.style.width=W.offsetWidth+"px",a.parentOverlay_&&(a.parentOverlay_.style.position="relative"),_.LI(N,W),QK(N,new _.r3(W.offsetLeft,W.offsetTop)),N;a.parentOverlay_.appendChild(N);return N};
X8.prototype.click=function(){this.overlay_.click()};
X8.prototype.onFilesSelected_=function(a){a:{try{var W=(new XMLHttpRequest).upload!==void 0;break a}catch(U){}W=!1}if(W){var w;a=Array.from((w=a.target.files)!=null?w:[]);w=[];if(this.selectorType_==="single_directory"&&(_.Pz||C3||_.IY)){w=new Bo("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(W=0;W<a.length;W++)for(var Z=a[W],N=Z.webkitRelativePath.split("/"),B=w,I=0;I<N.length;I++){var X=N[I];if(I==N.length-1){X!="."&&B.files_.push(Z);break}var v=B.directoryMap_[X];v==void 0&&(X=
v=new Bo(X),B.directoryMap_[X.getName()]=X,B.directories_.push(X));B=v}w=w.directories_}this.dispatchEvent(new ILy(a,w,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new ILy([],[],new BkR(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=lL$(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var ILy=function(a,W){_.kO.call(this,"j");this.files=a;this.directories=W};
_.c(ILy,_.kO);var PBJ=function(a){this.uploadUrl_=a};var Xz$=function(){_.Ti.call(this)};
_.NT(Xz$,_.Ti);var vo=function(a){_.kO.call(this,a)};
_.NT(vo,_.kO);var g7=function(a){_.kO.call(this,a)};
_.NT(g7,_.kO);var vTl=function(a,W,w,Z,N){_.Ti.call(this);w=document.createElement("form");w.setAttribute("method",W);w.setAttribute("enctype","multipart/form-data");w.setAttribute("encoding","multipart/form-data");W=document.createElement("input");W.setAttribute("type","hidden");W.setAttribute("name","metadata");W.setAttribute("value",N);w.appendChild(W);w.appendChild(Z);this.JSC$9875_form_=w;a=new _.CS(a);_.qF(a,"upload_protocol","multipart");this.JSC$9875_url_=a.toString();this.JSC$9875_request_=new yd;this.state_=
"Ready";this.JSC$9875_errorDescription_=null;this.JSC$9875_eventHandler_=new _.am(this);_.$3(this,this.JSC$9875_eventHandler_);this.JSC$9875_eventHandler_.listen(this.JSC$9875_request_,"success",this.onTransferSuccess_);this.JSC$9875_eventHandler_.listen(this.JSC$9875_request_,"error",this.onTransferError_)};
_.c(vTl,Xz$);_.t=vTl.prototype;_.t.run=function(){this.state_="Transferring";var a=this.JSC$9875_request_,W=this.JSC$9875_form_;if(a.JSC$9293_active_)throw Error("oe");var w=new _.CS(this.JSC$9875_url_||W.action);a.JSC$9293_form_=W;W=a.JSC$9293_form_;w=_.r5(w.toString());w!==void 0&&(W.action=w);uMl(a)};
_.t.getResponseCode=function(){return null};
_.t.getResponseText=function(){return this.JSC$9875_request_&&this.JSC$9875_request_.getResponseText()||null};
_.t.JSC$25716_getErrorDescription=function(){return this.JSC$9875_errorDescription_};
_.t.cancel=function(){this.JSC$9875_request_&&this.JSC$9875_request_.abort();this.state_="Cancelled";this.dispatchEvent(new vo("o"))};
_.t.pause=function(){};
_.t.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new vo("l"))};
_.t.onTransferError_=function(){this.JSC$9875_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new vo("n"))};var oi=function(){_.eX.call(this)};
_.c(oi,_.eX);oi.prototype.createXhr=function(){var a=_.eX.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=(0,_.Sk)(this.onProgress_,this));return a};
oi.prototype.onProgress_=function(a){this.dispatchEvent(a)};var gTe=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},k1L=function(a,W){var w=a.attempt_+1;
if(a.maxAttempts_>0&&w>a.maxAttempts_)return!1;w==0?W():a.delayCallId_=hd(function(){a.delayCallId_=null;W()},oT_(a),a);
a.attempt_=w;return!0};
gTe.prototype.reset=function(){this.delayCallId_&&_.NH.clearTimeout(this.delayCallId_);this.attempt_=-1};
var oT_=function(a){var W=250*Math.pow(2,a.attempt_);a.maxDelayMs_>=0&&(W=Math.min(W,a.maxDelayMs_));return W};var HIU=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var kc=function(){_.Ti.call(this);this.JSC$9885_request_=this.state_=null;this.JSC$9885_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9885_bytesTransferred_=0;this.retryIterator_=new gTe;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9885_errorDescription_=null;this.JSC$9885_eventHandler_=new _.am(this);_.$3(this,this.JSC$9885_eventHandler_);this.JSC$9885_url_=this.blob_=null;this.JSC$9885_method_=void 0;this.chunkSize_=this.JSC$9885_metadata_=
this.JSC$9885_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9885_responseText_=this.JSC$9885_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.NT(kc,Xz$);_.t=kc.prototype;_.t.run=function(){Uj(this)};
_.t.getResponseCode=function(){return this.JSC$9885_responseCode_};
_.t.getResponseText=function(){return this.JSC$9885_responseText_};
_.t.JSC$25716_getErrorDescription=function(){return this.JSC$9885_errorDescription_};
_.t.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9885_eventHandler_.removeAll();this.JSC$9885_request_&&this.JSC$9885_request_.abort();this.retryIterator_.reset();var a=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(a==="Upload"||a==="Query")a=new oi,a.JSC$7703_withCredentials_=this.JSC$9885_withCredentials_,a.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9885_bytesTransferred_=
0;this.dispatchEvent(new vo("o"))}};
_.t.pause=function(){this.pauseRequested_=!0};
var Uj=function(a){var W=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=W,a.state_="Paused"):k1L(a.retryIterator_,function(){switch(a.state_){case "Start":a.JSC$9885_request_=new oi;var w=_.T5.clone(a.JSC$9885_headers_);a.blob_.size!=null&&(w["Content-Length"]=a.blob_.size);w=y97(w);w["X-Goog-Upload-Protocol"]="resumable";w["X-Goog-Upload-Command"]="start";a.JSC$9885_eventHandler_.removeAll();a.JSC$9885_eventHandler_.listen(a.JSC$9885_request_,"complete",a.onStartComplete_);
a.JSC$9885_request_.JSC$7703_withCredentials_=a.JSC$9885_withCredentials_;a.JSC$9885_request_.send(a.JSC$9885_url_,a.JSC$9885_method_,a.JSC$9885_metadata_,w);a.lastCommandResponseCode_=null;a.dispatchEvent(new g7("q"));break;case "Upload":w=a.transferHandle_.uploadUrl_;var Z=a.blob_.size;if(cFl()){var N=a.chunkSize_;var B=a.offset_+N>=Z;Z=iJe(a.blob_,a.offset_,B?Z:a.offset_+N)}else a.offset_=0,Z=a.blob_,B=!0;a.JSC$9885_request_=new oi;a.JSC$9885_request_.JSC$7703_withCredentials_=a.JSC$9885_withCredentials_;
a.JSC$9885_eventHandler_.removeAll();a.JSC$9885_eventHandler_.listen(a.JSC$9885_request_,"progress",a.onUploadProgress_);N=(0,_.Sk)(a.JSC$9887_onUploadComplete_,a,a.offset_+Z.size,B);a.JSC$9885_eventHandler_.listen(a.JSC$9885_request_,"complete",N);a.lastCommandResponseCode_=null;a.dispatchEvent(new g7("q"));B=Object.assign({},a.JSC$9885_headers_||{},{"X-Goog-Upload-Command":"upload"+(B?", finalize":""),"X-Goog-Upload-Offset":a.offset_});a.JSC$9885_request_.send(w,"POST",Z,B);break;case "Query":a.JSC$9885_request_=
new oi;a.JSC$9885_eventHandler_.removeAll();a.JSC$9885_eventHandler_.listen(a.JSC$9885_request_,"complete",a.onQueryComplete_);w=Object.assign({},a.JSC$9885_headers_||{},{"X-Goog-Upload-Command":"query"});a.JSC$9885_request_.send(a.transferHandle_.uploadUrl_,"POST","",w);a.lastCommandResponseCode_=null;a.dispatchEvent(new g7("q"));break;default:throw Error("df");}})||Oj(a,"Transfer encountered too many consecutive failures.")},Oj=function(a,W){a.state_="Error";
a.JSC$9885_errorDescription_=W;a.dispatchEvent(new vo("n"))};
kc.prototype.onStartComplete_=function(a){var W=a.target;this.lastCommandResponseCode_=W.getStatus();this.dispatchEvent(new g7("r"));if(UTR(W))Ooe(this,W);else if(SyT(W)){a=sW(a.target.getAllResponseHeaders());for(var w in a)_.IC(w.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new vo("m"));w=pS(a,"X-Goog-Upload-URL");a=(a=pS(a,"X-Goog-Upload-Chunk-Granularity"))?parseInt(a,10):1;w===void 0||isNaN(a)||a<=0?Oj(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
a)*a,this.transferHandle_=new PBJ(w),this.dispatchEvent(new vo("p")),this.state_="Upload",this.retryIterator_.reset(),Uj(this))}else Uj(this)};
kc.prototype.onUploadProgress_=function(a){this.JSC$9885_bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new vo("k"))};
kc.prototype.JSC$9887_onUploadComplete_=function(a,W,w){var Z=this,N,B;return _.P(function(I){switch(I.nextAddress){case 1:N=w.target;Z.lastCommandResponseCode_=N.getStatus();Z.dispatchEvent(new g7("r"));if(Yyy(N)||N.getStatus()==404)return Z.JSC$9885_bytesTransferred_=a,Ooe(Z,N),I.return();if(SyT(N)){I.jumpTo(2);break}if(!(B=Z.detectCorruptedBlobEnabled_)){I.jumpTo(3);break}return _.g(I,TkR(Z),4);case 4:B=I.yieldResult;case 3:if(B)return Oj(Z,"Blob has been modified or corrupted."),I.return();Z.requireUploadRequestModification_=
N.getStatus()==400;Z.state_="Query";Uj(Z);return I.return();case 2:if(W)return Oj(Z,"Got a non-final success response after issuing a finalize command."),I.return();Z.JSC$9885_bytesTransferred_=a;Z.offset_=a;Z.retryIterator_.reset();Uj(Z);return I.return()}})};
kc.prototype.onQueryComplete_=function(a){var W=a.target;this.lastCommandResponseCode_=W.getStatus();this.dispatchEvent(new g7("r"));UTR(W)?(W.getStatus()===200&&(this.JSC$9885_bytesTransferred_=this.blob_.size),Ooe(this,W)):SyT(W)?(a=sW(a.target.getAllResponseHeaders()),a=parseInt(pS(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?Oj(this,"Server did not respond with current offset."):a<this.offset_?Oj(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
a+"."):this.requireUploadRequestModification_&&this.offset_===a?Oj(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$9885_bytesTransferred_=a,this.state_="Upload",Uj(this))):Uj(this)};
var Ooe=function(a,W){a.JSC$9885_responseCode_=W.getStatus();var w=sW(W.getAllResponseHeaders());E29(w);a.JSC$9885_responseText_=W.getResponseText();a.state_="Response received";a.dispatchEvent(new vo("l"))},SyT=function(a){var W=a.getStatus();
a=sW(a.getAllResponseHeaders());a=pS(a,"X-Goog-Upload-Status");return W===200&&a==="active"},Yyy=function(a){a=sW(a.getAllResponseHeaders());
return pS(a,"X-Goog-Upload-Status")==="final"},UTR=function(a){if(Yyy(a))return!0;
a=a.getStatus();return a>=400&&a<500},TkR=function(a){var W;
return _.P(function(w){if(w.nextAddress==1){if(!a.blob_||a.originalBlobSize_<=0)return w.return(!1);if(a.blob_.size!==a.originalBlobSize_)return w.return(!0);_.tq(w,2);if(W=iJe(a.blob_,0,1)){var Z=new Rw,N=NiJ(Z);Z.reader_.readAsBinaryString(W);w=_.g(w,N,4)}else w=w.return(!0);return w}if(w.nextAddress!=2)return w.return(a.blob_.size!==a.originalBlobSize_);_.Pb(w);return w.return(!0)})};var KK6=function(a,W,w,Z,N,B){_.Ti.call(this);this.payload_=Z;this.JSC$9888_url_=a;this.JSC$9888_method_=W;this.JSC$9888_headers_=w;this.JSC$9888_metadata_=N;this.encoding_=B||"binary";a=new _.KU;this.boundary_="uploader-"+Fh()+"-"+a.JSC$9142_toIsoString();this.JSC$9888_responseText_=this.JSC$9888_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9888_errorDescription_=null;this.JSC$9888_eventHandler_=new _.am(this);_.$3(this,this.JSC$9888_eventHandler_)};
_.c(KK6,Xz$);_.t=KK6.prototype;
_.t.run=function(){var a=_.T5.clone(this.JSC$9888_headers_);this.payload_.length!=null&&(a["Content-Length"]=this.payload_.length);a=y97(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new oi;this.JSC$9888_eventHandler_.removeAll();this.JSC$9888_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9888_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9888_url_,this.JSC$9888_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9888_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)};
_.t.getResponseCode=function(){return this.JSC$9888_responseCode_};
_.t.getResponseText=function(){return this.JSC$9888_responseText_};
_.t.JSC$25716_getErrorDescription=function(){return this.JSC$9888_errorDescription_};
_.t.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9888_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new vo("o")))};
_.t.pause=function(){};
_.t.onTransferProgress_=function(){this.dispatchEvent(new vo("k"))};
_.t.onTransferComplete_=function(a){var W=a.target.getStatus();W===void 0||W===-1?(this.JSC$9888_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new vo("n"))):(this.JSC$9888_responseCode_=W,a=a.target,W=sW(a.getAllResponseHeaders()),E29(W),this.JSC$9888_responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new vo("l")))};_.pz$=function(a,W,w,Z){Z=Z===void 0?!1:Z;if(w instanceof BkR)return new vTl(a,"POST",W,w.getInputElement(),"");if(typeof w==="string"||w instanceof String)return new KK6(a,"POST",W,w,"");var N=new kc(void 0);N.JSC$9885_url_=a;N.JSC$9885_method_="POST";N.JSC$9885_headers_=W;N.blob_=w;N.originalBlobSize_=w.size;N.JSC$9885_metadata_="";Z&&(N.JSC$9885_withCredentials_=Z);N.state_="Start";return N};var ST=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(ST,_.QH);_.t=ST.prototype;_.t.getEnableSsEngine=function(){return _.eF(this,2)};
_.t.getEnableAwr=function(){return _.eF(this,3)};
_.t.getAlohaAutoGaRollout=function(){return _.eF(this,5)};
_.t.getEnableConfigurator=function(){return _.eF(this,6)};
_.t.getEnableMweb=function(){return _.eF(this,7)};
var ADe=function(){var a=rDl();return _.As(a,7,!0)};
ST.prototype.getEnableCtlConsentCheckbox=function(){return _.eF(this,8)};
ST.prototype.getEnableIframe=function(){return _.eF(this,9)};
var rDl=function(){var a=new ST;a=_.As(a,5,!0);a=_.As(a,2,!0);a=_.As(a,4,!1);a=_.As(a,8,!0);return _.As(a,9,!0)};
ST.prototype.getEnableScreenshotNudge=function(){return _.eF(this,10)};
var hEJ=function(){var a=ADe();return _.As(a,10,!0)};
ST.prototype.getEnableWebStartupConfigEndpoint=function(){return _.eF(this,11)};
ST.prototype.getEnableJunkNudge=function(){return _.eF(this,12)};
var U5v=function(){var a=hEJ();return _.As(a,12,!0)};
_.t=ST.prototype;_.t.getEnableConfiguratorLocale=function(){return _.eF(this,13)};
_.t.getEnableTinyNoPointer=function(){return _.eF(this,14)};
_.t.getEnableSupportSessionLogging=function(){return _.eF(this,15)};
_.t.getEnableFileUploadForScreenshot=function(){return _.eF(this,16)};
_.t.getEnableDirectDeflectionForSingleCategory=function(){return _.eF(this,17)};
_.t.getEnableImageSanitization=function(){return _.eF(this,18)};
_.t.getEnableAlohaBinarySplit=function(){return _.eF(this,19)};
_.t.getEnableDbFeedbackIntents=function(){return _.eF(this,20)};
_.t.getEnableMarkMandatoryFieldsWithRequired=function(){return _.eF(this,21)};
_.t.getEnableFeedbackCategoryCustomUi=function(){return _.eF(this,22)};
_.t.getEnableRealtimeCtl=function(){return _.eF(this,23)};var kiS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(kiS,_.QH);var aQU=[/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 w5U="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 Zk8=_.ma(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),NDU=_.ma(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var $5E,lQx;var ioH,cDR;
ioH=function(a,W,w){a.timeOfStartCall=(new Date).getTime();var Z=w||_.NH,N=Z.document,B=a.nonce||_.JY(Z.document);B&&!a.nonce&&(a.nonce=B);if(a.flow=="help"){var I=_.RT("document.location.href",Z);!a.helpCenterContext&&I&&(a.helpCenterContext=I.substring(0,1200));I=!0;if(W&&JSON&&JSON.stringify){var X=JSON.stringify(W);(I=X.length<=1200)&&(a.psdJson=X)}I||(W={invalidPsd:!0})}W=[a,W,w];Z.GOOGLE_FEEDBACK_START_ARGUMENTS=W;w=a.feedbackServerUri||"//www.google.com/tools/feedback";if(I=Z.GOOGLE_FEEDBACK_START)I.apply(Z,W);
else{Z=w+"/load.js?";for(var v in a)W=a[v],W==null||_.tL(W)||(Z+=encodeURIComponent(v)+"="+encodeURIComponent(W)+"&");a=Ph(N).createElement("SCRIPT");B&&a.setAttribute("nonce",B);_.Q$(a,_.lq(Z));N.body.appendChild(a)}};
cDR=function(a,W,w,Z){var N,B;_.P(function(I){N=w||_.NH;var X=a.serverEnvironment==="DEV",v=w||_.NH;v=a.nonce||_.JY(v.document);X={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:X,nonce:v,useNightlyRelease:X,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}};W&&(v=new Map(Object.entries(W)),X.extraData.productSpecificData=v);B=X;return _.g(I,vOI(B,Z,N),0)})};
_.eEy=function(a,W,w){try{if(a.flow==="help"){var Z=a.helpCenterPath.replace(/^\//,"");_.Lv(w||window,"https://support.google.com/"+Z)}else a.flow==="submit"?ioH(a,W,w):Ok9(a.productId,a.feedbackServerUri).then(function(N){N=_.Hi(N,ST,1);var B=!Vh9||(N==null?void 0:N.getEnableMweb()),I=!a.tinyNoPointer||(N==null?void 0:N.getEnableTinyNoPointer());!N||N.getAlohaAutoGaRollout()&&B&&I?cDR(a,W,w,N):ioH(a,W,w)},function(N){N&&N.name!=="DuplicateFormError"&&ioH(a,W,w)})}catch(N){cDR(a,W,w,null)}};
_.Dp("userfeedback.api.startFeedback",_.eEy);var Sle=/https?:\/\/\S+\.\S+/,YlS=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],TDD=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var uES=function(a){var W=a.split(""),w=[-263237435,15,W,function(Z,N,B){var I=N.length;B.forEach(function(X,v,U){this.push(U[v]=N[(N.indexOf(X)-N.indexOf(this[v])+v+I--)%N.length])},Z.split(""))},
function(Z,N){Z=(Z%N.length+N.length)%N.length;N.splice(-Z).reverse().forEach(function(B){N.unshift(B)})},
"response",function(){for(var Z=64,N=[];++Z-N.length-32;){switch(Z){case 58:Z-=14;case 91:case 92:case 93:continue;case 123:Z=47;case 94:case 95:case 96:continue;case 46:Z=95}N.push(String.fromCharCode(Z))}return N},
null,12,1540023973,65941107,null,W,function(Z,N){for(Z=(Z%N.length+N.length)%N.length;Z--;)N.unshift(N.pop())},
695603893,function(Z){for(var N=Z.length;N;)Z.push(Z.splice(--N,1)[0])},
"'[;'[(",function(Z,N){Z.push(N)},
null,function(Z,N,B,I,X){return N(B,I,X)},
"continuation",W,function(Z,N){if(Z.length!=0){N=(N%Z.length+Z.length)%Z.length;var B=Z[0];Z[0]=Z[N];Z[N]=B}},
function(){for(var Z=64,N=[];++Z-N.length-32;){switch(Z){case 91:Z=44;continue;case 123:Z=65;break;case 65:Z-=18;continue;case 58:Z=96;continue;case 46:Z=95}N.push(String.fromCharCode(Z))}return N},
'"),/]];'];w[7]=w;w[11]=w;w[18]=w;try{(((0,w[15])(w[21]),w[22])(w[11],w[9]),w[22])(w[new Date("1970-01-01T04:30:12.000+04:30")/1E3],w[1]),((0,w[22])(w[11],w[23]),w[4])(w[10],w[18]),(0,w[20])(w[21],w[14])<<(0,w[17])(w[18],w[1]),(0,w[4])(w[8],w[21]),(0,w[19])((0,w[19])((0,w[17])(w[7],w[9]),w[3],w[20],(0,w[6])(),w[2]),w[3],w[5],(0,w[15])(),w[2])}catch(Z){return"aTlOUOubTO4AP____8P_"+a}return W.join("")};_.nTR=new _.H("runAttestationCommand");var jYE=new _.H("verifyCommand");_.DB=new _.H("accessibilityContext");var LKV=new _.H("accessibilityData");var JDV=new _.H("profileCardCommand");var QBE=new _.H("signInEndpoint");var q2C=new _.H("signOutEndpoint");var MFA;_.FKe=new _.H("accountItemSectionRenderer");MFA=new _.H("accountItemRenderer");_.REL=new _.H("saveCommandToSessionStorageAction");var qy_=new _.H("crossAccountChannelTransferEndpoint");var MtD=new _.H("getAccountMenuEndpoint");_.Rd8=new _.H("getAccountSwitcherEndpoint");var FPv=new _.H("getAccountsListEndpoint");var QYH=new _.H("getAccountsListInnertubeEndpoint");_.xTT=new _.H("addToToastAction");var bo$=new _.H("hideEnclosingAction");_.Yc=new _.H("replaceEnclosingAction");_.sYV=new _.H("buttonRefreshAction");var uk$=new _.H("adsControlFlowOpportunityReceivedCommand");var CBJ=new _.H("openAdAllowlistInstructionCommand");var G1J=new _.H("videoMastheadAdPrimaryVideoRenderer");var DTR=new _.H("displayAdRenderer");var ls7=new _.H("instreamVideoAdRenderer");_.fLH=new _.H("inFeedAdLayoutRenderer");var dTA=new _.H("sequenceItemInPlayerAdLayoutRenderer");_.mTe=new _.H("adSlotRenderer");var VFJ=new _.H("adAvatarViewModel");var zEh=new _.H("adBadgeViewModel");var HoJ=new _.H("adButtonViewModel");var Tz=new _.H("adImageViewModel");var uFI=new _.H("reelsAdCardButtonedViewModel");var yD6=new _.H("reelsPlayerOverlayLayoutViewModel");var ET_=new _.H("showSchedulingPanelCommand");var aAR=new _.H("backstageCommentsRenderer");var Wl6=new _.H("backstageImageRenderer");var w0h=new _.H("backstagePostRenderer");var ZIl=new _.H("postRenderer");var Nm6=new _.H("sharedPostRenderer");var t5y=new _.H("createBackstagePostEndpoint");var $Se=new _.H("getPostVideoPreviewEndpoint");var Bm_=new _.H("updateBackstagePostEndpoint");var lA6=new _.H("filterChipTransformCommand");var IA$=new _.H("insertRichSectionCommand");var iVI=new _.H("talkToRecsDeselectCommand");var PE6=new _.H("talkToRecsNextCommand");var h4F=new _.H("talkToRecsSelectCommand");var X06=new _.H("talkToRecsUpdateTextCommand");_.I1=new _.H("browseEndpoint");_.v2e=new _.H("confirmDialogEndpoint");var g2_=new _.H("expandOnHoverCardRenderer");var o2_=new _.H("lumiereShelfDetailsRenderer");var k6R=new _.H("revealBusinessEmailCommand");var US$=new _.H("validateChannelHandleCommand");var OI_=new _.H("channelCreationFormEndpoint");var SMJ=new _.H("aboutChannelViewModel");var YMA=new _.H("channelThumbnailWithLinkRenderer");var TmT=new _.H("channelCreationServiceEndpoint");var KlL=new _.H("updateChannelPageSettingsEndpoint");var Kz=function(a){this.delegate=a},pz=function(){Kz.apply(this,arguments)};
_.c(pz,Kz);_.dU.Object.defineProperties(pz.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(a){this.delegate.entityMetadata=a}}});var p0h=function(){pz.apply(this,arguments)};
_.c(p0h,pz);p0h.prototype.getAssociations=function(){return[]};var zrx=new _.H("webThumbnailDetailsExtensionData");var G9=new _.H("commandContext");var r9J=new _.H("addVideoLinkAction");var A9J=new _.H("createPollAction");var hWh=new _.H("hideIdentityChipAction");var iI6=new _.H("openUpdateCommentDialogAction");var r7=new _.H("updateBackstagePollAction");var c9H=new _.H("updateCommentVoteAction");var eWR=new _.H("commentThreadRenderer");var n2R=function(){pz.apply(this,arguments)};
_.c(n2R,pz);n2R.prototype.getAssociations=function(){return[]};_.jN_=new _.H("commentDialogRenderer");var LlR=new _.H("updateCommentsSettingsEndpoint");var J9h=new _.H("commentViewModel");var FlA=new _.H("triStateButtonViewModel");var M5y=new _.H("voiceReplyContainerViewModel");_.$7=new _.H("commandExecutorCommand");var T$=new _.H("emoji");var RWT=new _.H("updateCreatorChannelInnertubeCommand");_.qMH=new _.H("appendContinuationItemsAction");_.QNe=new _.H("changeEngagementPanelVisibilityAction");_.i5=new _.H("continuationCommand");var xSV=new _.H("listMutationCommand");_.A4=new _.H("openPopupAction");var bIV=new _.H("persistSubscriptionsDisplayPreferencesCommand");var mSy;_.sNl=new _.H("playlistRemoveVideosAction");_.uDA=new _.H("updatePlaylistAction");_.CEH=new _.H("addToPlaylistCommand");_.G6R=new _.H("endPlaylistCommand");_.DSy=new _.H("recoverPlaylistCommand");_.fA6=new _.H("refreshPlaylistCommand");_.dS6=new _.H("refreshFormCommand");mSy=new _.H("openOnePickAddVideoModalCommand");_.u99=new _.H("reloadContinuationItemsCommand");_.V5$=new _.H("scrollToEngagementPanelCommand");var zWE=new _.H("selectCountryCommand");var HIJ=new _.H("showReloadUiCommand");var y96=new _.H("undoFeedbackAction");var E2V=new _.H("updateButtonAction");var IxI=new _.H("updateSubscribeButtonAction");var aQJ=new _.H("updateToggleAction");var WsJ=new _.H("webNativeShareCommand");_.mm=new _.H("webCommandMetadata");_.h4=new _.H("webHandleServiceEndpointExtension");var ClD=new _.H("webNavigationEndpointData");var w5J=new _.H("copyLinkCommand");var Zkh=new _.H("playlistVotingRefreshPopupCommand");var NDJ=new _.H("selectChipCommand");var tXV=new _.H("setCookieCommand");var $5T=new _.H("setLocalStorageCommand");var BD_=new _.H("setPrefStorageEntryCommand");var X5$;_.lQ$=new _.H("settingsUpdateCheckboxCommand");_.IQE=new _.H("settingsUpdateTextCommand");_.PgA=new _.H("settingsUpdateOptionsCommand");X5$=new _.H("settingsUpdateSwitchCommand");_.vOR=new _.H("settingsUpdateConnectedAppRendererCommand");var gOe=new _.H("updateTextInputFormFieldRendererCommand");var oOA=new _.H("updateToggleButtonStateCommand");var kiR=new _.H("updateUrlParamCommand");var U5l=new _.H("webSubmitFormCommand");var OkV=new _.H("channelSwitcherPageRenderer"),SlH=new _.H("updateChannelSwitcherPageAction");_.BN=new _.H("continuationItemRenderer");_.iH=new _.H("richItemRenderer");var YlR=new _.H("richSectionRenderer");_.TDE=new _.H("richShelfRenderer");_.Ksh=new _.H("metadataBadgeRenderer");_.p5R=new _.H("multiPageMenuNotificationSectionRenderer");_.rdT=new _.H("playlistLoopButtonStateRenderer");var AdV=new _.H("claimLegacyYoutubeChannelEndpoint");var haR=new _.H("getNotificationMenuEndpoint");var ikl=new _.H("getSearchInVideoCommand");_.cdA=new _.H("getTranscriptEndpoint");_.l0=new _.H("signalServiceEndpoint");var eaV=new _.H("verifyAgeEndpoint");var D0E=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(D0E,_.QH);D0E.prototype.getPath=function(){return _.Lo(this,1)};
D0E.prototype.getValue=function(){return _.Lo(this,2)};var nOH=[0,_.mK,-1];var jk$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(jk$,_.QH);var Gy7=_.Em(jk$,[0,_.VZ,nOH]);var Ls$=new _.H("dismissalEndpoint");var Jdh=new _.H("elementsCommand");_.pt=new _.H("innertubeCommand");var Fs$=new _.H("multipleInlinePlaybackCommand");var iRv=new _.H("loggingDirectives");var MXJ=new _.H("acknowledgeChannelTouStrikeCommand");var RaJ=function(){pz.apply(this,arguments)};
_.c(RaJ,pz);RaJ.prototype.getAssociations=function(){return[]};var ql$=function(){pz.apply(this,arguments)};
_.c(ql$,pz);ql$.prototype.getAssociations=function(){return[]};var Q6=new _.H("entityBatchUpdate");_.Qkh=new _.H("entityUpdateCommand");var x5T=function(){pz.apply(this,arguments)};
_.c(x5T,pz);x5T.prototype.getAssociations=function(){var a=[];this.delegate.alternateChannel&&a.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&a.push.apply(a,_.K8(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&a.push(this.delegate.oneofChannelEntity);return[].concat(_.K8(new Set(a)))};var bkL=function(){pz.apply(this,arguments)};
_.c(bkL,pz);bkL.prototype.getAssociations=function(){var a=[];this.delegate.entryCollection&&a.push(this.delegate.entryCollection);return[].concat(_.K8(new Set(a)))};
var skR=function(){pz.apply(this,arguments)};
_.c(skR,pz);skR.prototype.getAssociations=function(){var a=[];this.delegate.parentPlaylist&&a.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var W=_.l(this.delegate.entries),w=W.next();!w.done;w=W.next())a.push.apply(a,_.K8((new uwH(w.value)).getAssociations()));return[].concat(_.K8(new Set(a)))};
var uwH=function(){Kz.apply(this,arguments)};
_.c(uwH,Kz);uwH.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);return[].concat(_.K8(new Set(a)))};var Cg6=function(){pz.apply(this,arguments)};
_.c(Cg6,pz);Cg6.prototype.getAssociations=function(){var a=[];this.delegate.descriptionEntity&&a.push(this.delegate.descriptionEntity);this.delegate.creators&&a.push.apply(a,_.K8(this.delegate.creators));this.delegate.theBiggestFan&&a.push(this.delegate.theBiggestFan);return[].concat(_.K8(new Set(a)))};
var GiH=function(){pz.apply(this,arguments)};
_.c(GiH,pz);GiH.prototype.getAssociations=function(){return[]};var D5V=new _.H("fantasyRosterViewModel");var fQ$=new _.H("addFollowUpSurveyCommand");var d5R=new _.H("getSurveyCommand");var m5_=new _.H("ratingSurveyOptionRenderer");_.F2=new _.H("feedbackEndpoint");var VXR=new _.H("reportHistoryTableCellRenderer"),zaL=new _.H("reportHistoryTableTextCellRenderer"),Hke=new _.H("reportHistoryTableReasonCellRenderer");_.ydh=new _.H("flagEndpoint");var EO$=new _.H("getFlowCommand");var a$y=new _.H("submitFormWithValidationFlowCommand");var W1L=function(){pz.apply(this,arguments)};
_.c(W1L,pz);W1L.prototype.getAssociations=function(){return[]};var wy$=new _.H("flowFormState");var Z9J=new _.H("gameCardRenderer");var NI_=new _.H("accountLinkingStateChangedCommand");var tSR=function(){pz.apply(this,arguments)};
_.c(tSR,pz);tSR.prototype.getAssociations=function(){return[]};var $PT=new _.H("changeMiniAppPlayStateCommand");var BI_=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(BI_,_.QH);var co=[1,2,3];var l$V=[0,co,rhe,_.AhF,UIv];var I$R=_.Em(BI_,l$V),PcT=_.aJ(l$V);var XyV=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(XyV,_.QH);var v$$=[0,_.DL,_.mK];var g$J=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(g$J,_.QH);var o$V=[0,_.mK];var k_L=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(k_L,_.QH);var UPl=function(a,W){return _.yJ(a,3,W)};var O9_=_.aJ([0,1,v$$,_.Hz,o$V]);var S1H=new _.H("miniAppScoreChallengeViewModel");var Y1V=new _.H("miniGameCardViewModel");var TI$=new _.H("teaserCardViewModel");var K1V=function(){pz.apply(this,arguments)};
_.c(K1V,pz);K1V.prototype.getAssociations=function(){return[]};_.py6=new _.H("feedbackItemRenderer");var r1T={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",TAB_BOOKMARK:"TAB_BOOKMARK",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",
INSERT_CHART:"INSERT_CHART",INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",
MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",
LABS_HEADER:"LABS_HEADER",SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",
RESHARE:"RESHARE",MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",
SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",
FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",
ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",
LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD",TEXT_FILLED:"TEXT_FILLED"};var A1E=function(){pz.apply(this,arguments)};
_.c(A1E,pz);A1E.prototype.getAssociations=function(){return[]};_.hTJ=new _.H("playerInterstitialRenderer");var i9A=new _.H("getKidsBlocklistPickerCommand");_.c1e=new _.H("updateKidsBlacklistEndpoint");_.mI=new _.H("likeEndpoint");var eT$,n$H,jZ_;eT$=new _.H("addChatItemAction");n$H=new _.H("removeChatItemAction");jZ_=new _.H("markChatItemAsDeletedAction");_.L1h=new _.H("setLiveChatCollapsedStateAction");var J1l=function(){pz.apply(this,arguments)};
_.c(J1l,pz);J1l.prototype.getAssociations=function(){return[]};var F1R=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(F1R,_.QH);var MSH=_.Em(F1R,[0,1,_.DL]);var RT$=new _.H("liveChatEndpoint");var q1V=new _.H("liveChatItemContextMenuEndpoint");var QZ$=new _.H("liveChatReplayEndpoint");_.xPR=new _.H("emojiPickerRenderer");var b9R=new _.H("liveChatAuthorBadgeViewModel");var sZA=new _.H("deleteLiveChatMessageCommand");var uHH=new _.H("liveChatActionEndpoint");var Cc$=new _.H("createLiveChatPollEndpoint");var G_T=new _.H("manageLiveChatUserEndpoint");var DPE=new _.H("moderateLiveChatEndpoint");_.f$T=new _.H("sendLiveChatMessageEndpoint");var dPA=new _.H("sendLiveChatVoteEndpoint");var mPR=new _.H("clearLocationCommand");var VS$=new _.H("resolveLocationCommand");var zT_=new _.H("interactionLoggingCommandMetadata");var S7F=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(S7F,_.QH);var Oc8=function(a,W){return _.wh(a,1,W)};var H9e=[0,_.dk];var UU8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(UU8,_.QH);var kt9=function(a,W){return og(a,1,S7F,W)};UU8.prototype.JSC$9981_serializeBinary=WZe([0,_.VZ,H9e]);var Cg7={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 y1$={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"},
E$H={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 QCH={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"};_.gES=new _.H("logFlowLoggingEventCommand");_.WfU=new _.H("loggingContext");var at6=new _.H("captionLanguageSelectActionCommand");var WvT=new _.H("showCaptionLanguageSelectActionCommand");var w1J=new _.H("dismissDialogEndpoint");var Zm$=new _.H("hideItemSectionVideosByIdCommand");var NFV=new _.H("showMiniplayerCommand");var tiJ=function(){pz.apply(this,arguments)};
_.c(tiJ,pz);tiJ.prototype.getAssociations=function(){return[]};var $KR=function(){pz.apply(this,arguments)};
_.c($KR,pz);$KR.prototype.getAssociations=function(){return[]};var BF6=function(){pz.apply(this,arguments)};
_.c(BF6,pz);BF6.prototype.getAssociations=function(){return[]};var lth=function(){pz.apply(this,arguments)};
_.c(lth,pz);lth.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(_.K8(new Set(a)))};var Ity=function(){pz.apply(this,arguments)};
_.c(Ity,pz);Ity.prototype.getAssociations=function(){var a=[];this.delegate.refresh&&a.push(this.delegate.refresh);if(this.delegate.downloads)for(var W=_.l(this.delegate.downloads),w=W.next();!w.done;w=W.next())a.push.apply(a,_.K8((new PwA(w.value)).getAssociations()));return[].concat(_.K8(new Set(a)))};
var PwA=function(){Kz.apply(this,arguments)};
_.c(PwA,Kz);PwA.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(_.K8(new Set(a)))};var X1y=function(){pz.apply(this,arguments)};
_.c(X1y,pz);X1y.prototype.getAssociations=function(){var a=[];this.delegate.localImageEntities&&a.push.apply(a,_.K8(this.delegate.localImageEntities));return[].concat(_.K8(new Set(a)))};var vKh=function(){pz.apply(this,arguments)};
_.c(vKh,pz);vKh.prototype.getAssociations=function(){var a=[];this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.localImageEntities&&a.push.apply(a,_.K8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.K8(new Set(a)))};var gK6=function(){pz.apply(this,arguments)};
_.c(gK6,pz);gK6.prototype.getAssociations=function(){return[]};var oKy=function(){pz.apply(this,arguments)};
_.c(oKy,pz);oKy.prototype.getAssociations=function(){var a=[];this.delegate.fakeChildren&&a.push.apply(a,_.K8(this.delegate.fakeChildren));return[].concat(_.K8(new Set(a)))};var kV$=function(){pz.apply(this,arguments)};
_.c(kV$,pz);kV$.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(_.K8(new Set(a)))};var UKA=function(){pz.apply(this,arguments)};
_.c(UKA,pz);UKA.prototype.getAssociations=function(){return[]};var OmR=function(){pz.apply(this,arguments)};
_.c(OmR,pz);OmR.prototype.getAssociations=function(){var a=[];this.delegate.channelOwner&&a.push(this.delegate.channelOwner);this.delegate.videos&&a.push.apply(a,_.K8(this.delegate.videos));this.delegate.collaboratorChannels&&a.push.apply(a,_.K8(this.delegate.collaboratorChannels));this.delegate.downloadState&&a.push(this.delegate.downloadState);this.delegate.refresh&&a.push(this.delegate.refresh);return[].concat(_.K8(new Set(a)))};var SVE=function(){pz.apply(this,arguments)};
_.c(SVE,pz);SVE.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.channelContributor&&a.push(this.delegate.channelContributor);return[].concat(_.K8(new Set(a)))};var YVJ=function(){Kz.apply(this,arguments)};
_.c(YVJ,Kz);YVJ.prototype.getAssociations=function(){var a=[];this.delegate.recommendedVideoMetadata&&a.push.apply(a,_.K8((new TFT(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.K8(new Set(a)))};
var TFT=function(){Kz.apply(this,arguments)};
_.c(TFT,Kz);TFT.prototype.getAssociations=function(){var a=[];this.delegate.localImageEntities&&a.push.apply(a,_.K8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.K8(new Set(a)))};var KvA=function(){Kz.apply(this,arguments)};
_.c(KvA,Kz);KvA.prototype.getAssociations=function(){var a=[];this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);return[].concat(_.K8(new Set(a)))};var p1y=function(){pz.apply(this,arguments)};
_.c(p1y,pz);p1y.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,_.K8((new KvA(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&a.push.apply(a,_.K8((new YVJ(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.K8(new Set(a)))};var r2A=function(){pz.apply(this,arguments)};
_.c(r2A,pz);r2A.prototype.getAssociations=function(){var a=[];this.delegate.userChannelDetails&&a.push(this.delegate.userChannelDetails);return[].concat(_.K8(new Set(a)))};var A2T=function(){pz.apply(this,arguments)};
_.c(A2T,pz);A2T.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,_.K8(this.delegate.localImageEntities));this.delegate.downloadStatus&&a.push(this.delegate.downloadStatus);return[].concat(_.K8(new Set(a)))};var Sj9=new _.H("downloadsPageSmartDownloadsOptInBannerParams");var hxR=function(){pz.apply(this,arguments)};
_.c(hxR,pz);hxR.prototype.getAssociations=function(){return[]};var imT=function(){pz.apply(this,arguments)};
_.c(imT,pz);imT.prototype.getAssociations=function(){return[]};var c2V=function(){pz.apply(this,arguments)};
_.c(c2V,pz);c2V.prototype.getAssociations=function(){return[]};var exA=function(){pz.apply(this,arguments)};
_.c(exA,pz);exA.prototype.getAssociations=function(){return[]};var nKy=function(){pz.apply(this,arguments)};
_.c(nKy,pz);nKy.prototype.getAssociations=function(){return[]};var jrR=function(){pz.apply(this,arguments)};
_.c(jrR,pz);jrR.prototype.getAssociations=function(){return[]};var LvH=function(){pz.apply(this,arguments)};
_.c(LvH,pz);LvH.prototype.getAssociations=function(){return[]};var J2R=function(){pz.apply(this,arguments)};
_.c(J2R,pz);J2R.prototype.getAssociations=function(){return[]};var FvA=function(){pz.apply(this,arguments)};
_.c(FvA,pz);FvA.prototype.getAssociations=function(){return[]};var j4=new _.H("dislikeButtonViewModel");var nj=new _.H("likeButtonViewModel");var Miy=new _.H("videoSummaryContentViewModel");var Z5C=new _.H("videoSummaryParagraphViewModel");var Rx_=new _.H("changeTimelyActionVisibilityCommand");var qVl=new _.H("hideEngagementPanelEndpoint");var Qr$=new _.H("refreshPanelEndpoint");var xKE=new _.H("scrollToSectionEndpoint");var bm$=new _.H("seekToVideoTimestampCommand");_.JN=new _.H("showEngagementPanelEndpoint");var srR=new _.H("showTransientPlayerScrimOverlayCommand");var uWT=new _.H("toggleEngagementPanelCommand");_.CwV=new _.H("createBroadcastCommand");var GVy=new _.H("metadataUpdateCommand");var DK_=function(){pz.apply(this,arguments)};
_.c(DK_,pz);DK_.prototype.getAssociations=function(){return[]};var ftl=function(){pz.apply(this,arguments)};
_.c(ftl,pz);ftl.prototype.getAssociations=function(){return[]};var dKh=function(){pz.apply(this,arguments)};
_.c(dKh,pz);dKh.prototype.getAssociations=function(){return[]};_.mKH=new _.H("merchandiseShelfRenderer");var Vih=new _.H("gridMovieRenderer");_.zxJ=new _.H("movieRenderer");var HmJ=function(){pz.apply(this,arguments)};
_.c(HmJ,pz);HmJ.prototype.getAssociations=function(){var a=[];this.delegate.trackDownloadMetadatas&&a.push.apply(a,_.K8(this.delegate.trackDownloadMetadatas));return[].concat(_.K8(new Set(a)))};var y2h=function(){pz.apply(this,arguments)};
_.c(y2h,pz);
y2h.prototype.getAssociations=function(){var a=[];this.delegate.downloadedTracks&&a.push.apply(a,_.K8(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&a.push.apply(a,_.K8(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&a.push.apply(a,_.K8(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&a.push.apply(a,_.K8(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&a.push.apply(a,_.K8(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
a.push.apply(a,_.K8(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&a.push.apply(a,_.K8(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&a.push.apply(a,_.K8(this.delegate.metadataOnlyTracks));return[].concat(_.K8(new Set(a)))};var EKe=function(){pz.apply(this,arguments)};
_.c(EKe,pz);EKe.prototype.getAssociations=function(){var a=[];this.delegate.trackDownloadMetadatas&&a.push.apply(a,_.K8(this.delegate.trackDownloadMetadatas));return[].concat(_.K8(new Set(a)))};var aiH=function(){pz.apply(this,arguments)};
_.c(aiH,pz);aiH.prototype.getAssociations=function(){var a=[];this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.localImageEntities&&a.push.apply(a,_.K8(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.K8(new Set(a)))};var Wjl=function(){pz.apply(this,arguments)};
_.c(Wjl,pz);
Wjl.prototype.getAssociations=function(){var a=[];this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&a.push.apply(a,_.K8(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,_.K8(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(_.K8(new Set(a)))};
var wnR=function(){pz.apply(this,arguments)};
_.c(wnR,pz);wnR.prototype.getAssociations=function(){var a=[];this.delegate.albumRelease&&a.push(this.delegate.albumRelease);this.delegate.tracks&&a.push.apply(a,_.K8(this.delegate.tracks));return[].concat(_.K8(new Set(a)))};
var ZUT=function(){pz.apply(this,arguments)};
_.c(ZUT,pz);ZUT.prototype.getAssociations=function(){var a=[];this.delegate.albumRelease&&a.push(this.delegate.albumRelease);return[].concat(_.K8(new Set(a)))};var Nqe=function(){pz.apply(this,arguments)};
_.c(Nqe,pz);Nqe.prototype.getAssociations=function(){var a=[];this.delegate.details&&a.push(this.delegate.details);this.delegate.userDetails&&a.push(this.delegate.userDetails);return[].concat(_.K8(new Set(a)))};
var tfy=function(){pz.apply(this,arguments)};
_.c(tfy,pz);tfy.prototype.getAssociations=function(){var a=[];this.delegate.parentArtist&&a.push(this.delegate.parentArtist);return[].concat(_.K8(new Set(a)))};
var $DE=function(){pz.apply(this,arguments)};
_.c($DE,pz);$DE.prototype.getAssociations=function(){var a=[];this.delegate.parentArtist&&a.push(this.delegate.parentArtist);return[].concat(_.K8(new Set(a)))};var BqT=function(){pz.apply(this,arguments)};
_.c(BqT,pz);BqT.prototype.getAssociations=function(){return[]};var lil=function(){pz.apply(this,arguments)};
_.c(lil,pz);lil.prototype.getAssociations=function(){return[]};var Iih=function(){pz.apply(this,arguments)};
_.c(Iih,pz);
Iih.prototype.getAssociations=function(){var a=[];this.delegate.tracks&&a.push.apply(a,_.K8(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,_.K8((new PTA(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.K8(new Set(a)))};
var PTA=function(){Kz.apply(this,arguments)};
_.c(PTA,Kz);PTA.prototype.getAssociations=function(){var a=[];this.delegate.creatorEntity&&a.push(this.delegate.creatorEntity);return[].concat(_.K8(new Set(a)))};var Xne=function(){pz.apply(this,arguments)};
_.c(Xne,pz);Xne.prototype.getAssociations=function(){return[]};var viT=function(){pz.apply(this,arguments)};
_.c(viT,pz);
viT.prototype.getAssociations=function(){var a=[];this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&a.push.apply(a,_.K8(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(_.K8(new Set(a)))};
var gi6=function(){pz.apply(this,arguments)};
_.c(gi6,pz);gi6.prototype.getAssociations=function(){var a=[];this.delegate.parentTrack&&a.push(this.delegate.parentTrack);return[].concat(_.K8(new Set(a)))};
var oiA=function(){pz.apply(this,arguments)};
_.c(oiA,pz);oiA.prototype.getAssociations=function(){var a=[];this.delegate.parentTrack&&a.push(this.delegate.parentTrack);return[].concat(_.K8(new Set(a)))};var N9=new _.H("musicResponsiveListItemRenderer");var fSD=new _.H("addToPlaylistEndpoint");var kpy=new _.H("captionPickerEndpoint");var UDR=new _.H("suggestStats");var OU$=new _.H("backstageImageUploadEndpoint");var S5R=new _.H("createBackstagePostDialogEndpoint");_.Y5l=new _.H("createCommentReplyDialogEndpoint");_.Tql=new _.H("updateCommentDialogEndpoint");_.Kjy=new _.H("updateCommentReplyDialogEndpoint");var pnA=new _.H("menuEndpoint");var bRS=new _.H("modalEndpoint");var rAh=new _.H("playlistEditorEndpoint");var AAJ=new _.H("copyTextEndpoint");var hXR,iU6;hXR=new _.H("shareEndpoint");iU6=new _.H("shareEntityEndpoint");_.cAV=new _.H("shareEntityServiceEndpoint");_.N6S=new _.H("userFeedbackEndpoint");_.u6=new _.H("watchEndpoint");var YqF=new _.H("watchPlaylistEndpoint");var eXl=new _.H("addUpcomingEventReminderEndpoint");_.eT=new _.H("getCommentsFromInboxCommand");var ni6=new _.H("notificationOptOutEndpoint");var jw_=new _.H("recordNotificationInteractionsEndpoint");var LjV=new _.H("removeUpcomingEventReminderEndpoint");var GFC=new _.H("getDownloadActionCommand");_.JAR=new _.H("offlineOrchestrationActionCommand");var Fj_=function(){pz.apply(this,arguments)};
_.c(Fj_,pz);Fj_.prototype.getAssociations=function(){return[]};var Mfy=function(){pz.apply(this,arguments)};
_.c(Mfy,pz);Mfy.prototype.getAssociations=function(){return[]};var RXT=function(){pz.apply(this,arguments)};
_.c(RXT,pz);RXT.prototype.getAssociations=function(){return[]};var q5E=function(){pz.apply(this,arguments)};
_.c(q5E,pz);q5E.prototype.getAssociations=function(){return[]};var Qwy=function(){pz.apply(this,arguments)};
_.c(Qwy,pz);Qwy.prototype.getAssociations=function(){var a=[];this.delegate.transfer&&a.push(this.delegate.transfer);this.delegate.adsPlaybackData&&a.push.apply(a,_.K8(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(_.K8(new Set(a)))};var xDl=function(){pz.apply(this,arguments)};
_.c(xDl,pz);xDl.prototype.getAssociations=function(){return[]};var bUV=function(){pz.apply(this,arguments)};
_.c(bUV,pz);bUV.prototype.getAssociations=function(){var a=[];this.delegate.offlineVideoStreams&&a.push.apply(a,_.K8(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&a.push.apply(a,_.K8(this.delegate.captionTrack));return[].concat(_.K8(new Set(a)))};var swy=function(){pz.apply(this,arguments)};
_.c(swy,pz);swy.prototype.getAssociations=function(){return[]};var uS6=new _.H("showMoreDrawerCommand");var CTR=new _.H("updateEngagementPanelContentCommand");var Gph=new _.H("getPdgBuyFlowCommand");var DDl=new _.H("liveChatPurchaseMessageEndpoint");var fiA=new _.H("openSuperStickerBuyFlowCommand");var dDh=new _.H("updatePdgFeatureEnablementCommand");var mD$=function(){pz.apply(this,arguments)};
_.c(mD$,pz);mD$.prototype.getAssociations=function(){return[]};var VfL=function(){pz.apply(this,arguments)};
_.c(VfL,pz);VfL.prototype.getAssociations=function(){return[]};_.zX$=new _.H("pdgCommentChipRenderer");_.HUL=new _.H("permissionRoleBottomBarRenderer");_.yAE=new _.H("updatePermissionRoleCommand");var Eil=new _.H("prefetchWatchCommand");var ajH=new _.H("updatePlayerErrorMessageCommand");var q4E=new _.H("toggleCaptionsVisibilityCommand");_.W66=new _.H("quickActionsViewModel");var wTA=new _.H("playerResponse");var ZlL=new _.H("playlistRenderer");_.Nl$=new _.H("playlistVideoListRenderer");_.nz=new _.H("playlistEditEndpoint");var tG6=new _.H("createImagePollCommand");var $7y=new _.H("createQuizCommand");var BlE=new _.H("quizRenderer");var lj$=new _.H("uploadedVideoRenderer");var IjL=new _.H("decorateMessageEndpoint");var P3E=new _.H("lpOfferCardOptionViewModel");var XTR=new _.H("sfvAudioItemPlaybackCommand");var vS6=function(){pz.apply(this,arguments)};
_.c(vS6,pz);vS6.prototype.getAssociations=function(){return[]};_.jT=new _.H("reelNonVideoContentEndpoint");_.gi=new _.H("reelWatchEndpoint");_.Lz=new _.H("reelItemRenderer");_.gSR=new _.H("reelMetapanelViewModel");_.oS$=new _.H("reelNonVideoContentRenderer");_.kN_=new _.H("reelPlayerOverlayRenderer");var U7J=new _.H("shortsLockupViewModel");var OlH=new _.H("sponsorButtonViewModel");var SoJ=new _.H("reelItemWatchResponse");var Yoe=new _.H("textBadgeRenderer");_.J4=new _.H("buttonRenderer");_.F8=new _.H("toggleButtonRenderer");var CUI=new _.H("switchButtonViewModel");_.TlL=new _.H("confirmDialogRenderer");var K6$;K6$=new _.H("menuRenderer");_.pT$=new _.H("menuFlexibleItemRenderer");var rME=new _.H("pollRenderer");_.AMA=new _.H("backgroundPromoRenderer");var ilL;_.huR=new _.H("chipCloudRenderer");ilL=new _.H("chipCloudChipRenderer");var cME=new _.H("dropdownRenderer");var euR=new _.H("gridVideoRenderer");_.KW9=new _.H("itemSectionRenderer");_.nST=new _.H("messageRenderer");var jAJ=new _.H("sortFilterHeaderRenderer");_.Ma=new _.H("videoRenderer");var L6H=new _.H("resolveUrlCommandMetadata");var JMR=function(){pz.apply(this,arguments)};
_.c(JMR,pz);JMR.prototype.getAssociations=function(){return[]};_.F6$=new _.H("getAnswerCommand");_.Pu=new _.H("searchEndpoint");var MGJ=new _.H("genAiRichTextViewModel");var CSF=new _.H("overviewAnswerViewModel");var Ru6=new _.H("addToPlaylistServiceEndpoint");var qoR=new _.H("clearSearchHistoryEndpoint");var QAV=new _.H("clearWatchHistoryEndpoint");var x76=new _.H("webSerializedServiceEndpointExtension");_.bll=new _.H("createCommentEndpoint");var sAE=new _.H("createCommentReplyEndpoint");var fl_=new _.H("performCommentActionEndpoint");var da6=new _.H("updateCommentEndpoint");var maV=new _.H("updateCommentReplyEndpoint");_.Ri=new _.H("createPlaylistServiceEndpoint");var VTe=new _.H("deletePlaylistEndpoint");var z_6=new _.H("deleteVideoEndpoint");var DcD=new _.H("getReportFormEndpoint");var HzL=new _.H("modifyChannelNotificationPreferenceEndpoint");var Xje;_.lK=new _.H("offlinePlaylistEndpoint");Xje={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 vYF;_.Be=new _.H("offlineVideoEndpoint");vYF={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 y4R=new _.H("pingingEndpoint");_.EcH=new _.H("selectActiveIdentityEndpoint");var aJR=new _.H("setSettingEndpoint");var cBH=new _.H("undoFeedbackEndpoint");var WT$=new _.H("unsubscribeEndpoint");_.wEH=new _.H("updatedMetadataEndpoint");var ZB_=function(){pz.apply(this,arguments)};
_.c(ZB_,pz);ZB_.prototype.getAssociations=function(){return[]};_.N9e=new _.H("updateLocalAppSettingCommand");var twH=new _.H("saveImageToDeviceEndpoint");var $JL=new _.H("shareImageCommand");var B9h=new _.H("sharingProviderDataCommand");var lJR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(lJR,_.QH);var IJV=[0,_.mK,-1];lJR.prototype.JSC$10182_serializeBinary=WZe(IJV);var PM_=_.aJ(IJV);var XEh=new _.H("userMentionSuggestionRenderer");var vVR=new _.H("liveChatTunnelCommand");var gV$=new _.H("showSponsorshipsGiftOfferDialogCommand");var oVR=new _.H("sponsorshipsScrollableShelfViewModel");var kZ_=new _.H("updateUpcomingEventReminderButtonStateCommand");var UJy=new _.H("upcomingEventReminderButtonStateRenderer");var OBH=new _.H("subscribeEndpoint");var SFE=new _.H("registerTasksCommand");var YFV=new _.H("showDialogCommand");_.kD=new _.H("showSheetCommand");var T9R=function(){pz.apply(this,arguments)};
_.c(T9R,pz);T9R.prototype.getAssociations=function(){return[]};var KTy=function(){pz.apply(this,arguments)};
_.c(KTy,pz);KTy.prototype.getAssociations=function(){return[]};_.fj=new _.H("avatarViewModel");var lNe=new _.H("badgeViewModel");_.hx=new _.H("buttonViewModel");_.qa=new _.H("chipViewModel");var pEe=new _.H("contentPreviewImageViewModel");var rcR=new _.H("decoratedAvatarViewModel");var bZS=new _.H("downloadButtonViewModel");_.tP9=new _.H("engagementBarViewModel");_.Acl=new _.H("imageBannerViewModel");var rrv=new _.H("lockupContentMetadataRowExtension");var hlL=new _.H("lockupMetadataViewModel");_.iBJ=new _.H("lockupViewModel");var ccl=new _.H("avatarStackViewModel");var el_=function(){pz.apply(this,arguments)};
_.c(el_,pz);el_.prototype.getAssociations=function(){return[]};_.nVT=new _.H("pageHeaderViewModel");var jqv=new _.H("thumbnailHoverOverlayToggleActionsViewModel");_.iK=new _.H("toggleButtonViewModel");var jXe=function(){pz.apply(this,arguments)};
_.c(jXe,pz);jXe.prototype.getAssociations=function(){return[]};_.$GD=new _.H("votingViewModel");var LTh=new _.H("sectionHeaderViewModel");var Jch=new _.H("notifyDropdownOptionSelectedCommand");var ZZE=new _.H("listViewModel");_.UB=new _.H("listItemViewModel");var FT6=new _.H("dialogHeaderViewModel");var Mw$=function(){pz.apply(this,arguments)};
_.c(Mw$,pz);Mw$.prototype.getAssociations=function(){return[]};var RlL=function(){pz.apply(this,arguments)};
_.c(RlL,pz);RlL.prototype.getAssociations=function(){return[]};var qFy=function(){pz.apply(this,arguments)};
_.c(qFy,pz);qFy.prototype.getAssociations=function(){return[]};_.QXJ=new _.H("transcriptSubmitCaptionCorrectionCommand");var xJh=function(){pz.apply(this,arguments)};
_.c(xJh,pz);xJh.prototype.getAssociations=function(){return[]};var cCU=new _.H("unpluggedStringRunImage");var bBA=new _.H("tabViewModel");var sXR=new _.H("tabbedViewModel");var u4h=function(){pz.apply(this,arguments)};
_.c(u4h,pz);u4h.prototype.getAssociations=function(){return[]};_.CMA=new _.H("updateDescriptionAction");var GZA=new _.H("updateToggleButtonTextAction");_.DJR=new _.H("autoplaySwitchButtonRenderer");var q9;_.fJV=new _.H("multiMarkersPlayerBarRenderer");q9=new _.H("chapterRenderer");var dJV=new _.H("heatMarkerRenderer");var bVH=new _.H("heatmapRenderer");var mJh=new _.H("smartSkipPlayerScrimOverlayRenderer");var VwH=new _.H("timedMarkerDecorationRenderer");var fFH=new _.H("postWebToNativeMessageCommand");var zlT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(zlT,_.QH);var HBR=_.Em(zlT,[0,_.mK,-2]);var ycR=new _.H("whitelistEditEndpoint");var EVh=new _.H("clearUrlParamCommand");var ahR=new _.H("commerceActionCommand");_.W4V=new _.H("getPaymentInstrumentsParamsCommand");var w7T=new _.H("getPaymentsClientTokenCommand");var ZNV=new _.H("googlePaymentBillingCommand");var N4$=new _.H("googlePaymentPurchaseManagerCommand");_.t7J=new _.H("logGtmCommand");var $RL=new _.H("updateCardItemOnClickCommand");_.B4V=new _.H("ypcPauseSubscriptionCommand");_.lhT=new _.H("ypcResumeSubscriptionCommand");var IhJ=function(){pz.apply(this,arguments)};
_.c(IhJ,pz);IhJ.prototype.getAssociations=function(){return[]};var PiE=function(){pz.apply(this,arguments)};
_.c(PiE,pz);PiE.prototype.getAssociations=function(){return[]};var X7J=function(){pz.apply(this,arguments)};
_.c(X7J,pz);X7J.prototype.getAssociations=function(){return[]};var vHh=function(){pz.apply(this,arguments)};
_.c(vHh,pz);vHh.prototype.getAssociations=function(){return[]};var gH6=function(){pz.apply(this,arguments)};
_.c(gH6,pz);gH6.prototype.getAssociations=function(){return[]};var XWF=new _.H("ypcOffersEndpoint");var oHl=new _.H("cardItemRenderer"),kRJ=new _.H("cardItemTextRenderer");var URl=new _.H("commerceCartItemQuantityPickerRenderer");var ONV=new _.H("linkCardRenderer");var xBx=new _.H("quantityIncrementerButtonViewModel");var SAE=new _.H("quantityIncrementerViewModel");var YAE=new _.H("themedImageViewModel");_.T4R=new _.H("ypcCancelRecurrenceEndpoint");var K4L=new _.H("ypcCompleteTransactionEndpoint");_.p7R=new _.H("ypcGetCartEndpoint");_.Nm=new _.H("ypcGetOffersEndpoint");_.QY=new _.H("ypcHandleTransactionEndpoint");var rby=new _.H("ypcLogWalletAnalyticDataEndpoint");_.AbJ=new _.H("ypcRedeemCodeEndpoint");var hKT=new _.H("ypcUpdateFopEndpoint");w7(Wo(1),Eo(4));NET((new MessageChannel).port2);var iNA=function(){this.register=new Map},D59=function(a,W,w){a=a+"_"+W;
xc.register.has(a)?w=xc.register.get(a):(w=w(),xc.register.set(a,w));return w},cbl=function(a){a=_.l(a.register.values());
for(var W=a.next();!W.done;W=a.next())_.U9(W.value,"ABORTED")};
iNA.prototype.clear=function(){cbl(this);this.register.clear()};
var xc=new iNA;var rdE=Date.now().toString();var haS,eKH=_.NH.ytLoggingDocDocumentNonce_;eKH||(eKH=hs(16),_.Dp("ytLoggingDocDocumentNonce_",eKH));haS=eKH;var Fsx={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 nHA;nHA=1;_.cG=function(a){this.veData=a};
_.PX=function(a){return new _.cG({trackingParams:a})};
_.Ob=function(a,W,w,Z,N,B){var I=nHA++;return new _.cG({veType:a,veCounter:I,elementIndex:w,dataElement:W,youtubeData:Z,jspbYoutubeData:N,loggingDirectives:B})};
_.t=_.cG.prototype;
_.t.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};
_.t.getAsJspb=function(){var a=new PaA;this.veData.trackingParams!==void 0?a.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.qT(a,2,this.veData.veType),this.veData.veCounter!==void 0&&_.qT(a,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.qT(a,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.wh(a,5,!0));if(this.veData.dataElement!==void 0){var W=this.veData.dataElement.getAsJspb();_.ZP(a,7,W)}this.veData.youtubeData!==void 0&&_.ZP(a,8,this.veData.jspbYoutubeData);
return a};
_.t.toString=function(){return JSON.stringify(this.getAsJson())};
_.t.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.t.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Dp("yt_logging_screen.getRootVeType",jkx);_.Dp("yt_logging_screen.getCurrentCsn",_.nS);_.Dp("yt_logging_screen.getCttAuthInfo",jH);_.Dp("yt_logging_screen.setCurrentScreen",_.qlx);var jcL=function(){this.events=new Map},L4l=function(a){var W=[];
a=_.l(a.events.values());for(var w=a.next();!w.done;w=a.next())W.push(w.value);return W};
jcL.prototype.clear=function(){this.events.clear()};var F4h=function(){this.logTransport=new JbA;this.loggedEventRegister=new jcL;this.unloggedEventRegister=new jcL;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10239_flushTimer=new _.Ef(this.flushInterval);this.JSC$10239_flushTimer.listen("tick",this.flush,!1,this)};
F4h.prototype.flush=function(){if(this.eventsCount){var a={loggedEvents:L4l(this.loggedEventRegister),unloggedEvents:L4l(this.unloggedEventRegister)};if(_.r("export_player_version_to_ytconfig")){var W;(W=_.LF("PLAYER_CLIENT_VERSION"))?(W=W.split("-")[0].replace(/\./g,""),W=isNaN(Number(W))?"0":W):W="";var w=_.LF("PLAYER_CLIENT_VERSION");if(w){w=w.split("-");var Z="";w.length>1&&(Z=w[w.length-1]);w=p5S(Z.startsWith("canary_experiment")?"canary":Z.startsWith("canary_control")?"control":"none")}else w=
"CLIENT_CANARY_STATE_UNKNOWN";a.dimensions={playerClientVersion:W,playerCanaryState:w}}this.logTransport.flush(a);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10239_flushTimer.enabled&&this.JSC$10239_flushTimer.stop()}};
var M76=function(a){bH==null&&(bH=new F4h);var W=bH;var w=W.loggedEventRegister;a.dimensions=a.dimensions||{};a.dimensions.csn=_.nS()||"";var Z=Qk8(a.dimensions).join(";");if(a.records!=null)if(w.events.has(Z)){var N;(N=w.events.get(Z).records)==null||N.push.apply(N,_.K8(a.records))}else w.events.set(Z,a);W.JSC$10239_flushTimer.enabled||W.JSC$10239_flushTimer.start();W.eventsCount++;W.eventsCount>=100&&W.flush()};var JbA=function(){};
JbA.prototype.flush=function(a,W){_.r("enable_client_sli_logging")&&_.ia("sliEventBatch",a,{sendIsolatedPayload:!!W})};var bH;var qA6;qA6=function(a){var W=RKR;a=a===void 0?{}:a;W=W.name;var w=Gie("SUCCESS");M76({dimensions:a,records:[{name:W,state:"SLI_STATE_END",status:w}]})};
_.fQx=function(a,W,w,Z){this.name=a;this.sliId=W;this.timeoutMs=w;this.statusOnTimeout=Z;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.fQx.prototype.getId=function(){return this.sliId};
_.kX=function(a,W){W=W===void 0?{}:W;a.ongoing||(a.ongoing=!0,a.dimensions=W,a.logSliId=bAe(),M76({dimensions:a.dimensions,records:[{name:a.name,state:"SLI_STATE_START",sliId:a.logSliId}]}),a.timeoutMs>0&&(a.timeoutHandle=setTimeout(function(){_.U9(a,a.statusOnTimeout)},a.timeoutMs)))};
_.U9=function(a,W){a.ongoing&&(a.timeoutMs>0&&clearTimeout(a.timeoutHandle),a.ongoing=!1,W={dimensions:a.dimensions,records:[{name:a.name,status:Gie(W),state:"SLI_STATE_END",sliId:a.logSliId}]},xc.register.delete(a.name+"_"+a.sliId),M76(W))};var RKR=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Qch=function(){pz.apply(this,arguments)};
_.c(Qch,pz);Qch.prototype.getAssociations=function(){return[]};var oyx=new _.H("highlightTextDecoratorColorMapExtension");var vye=new _.H("styleRunColorMapExtension");var EOx=_.ma(["data-"]),wyx={};var NIF={};var sj=function(a){this.wrappedPromise_=a===void 0?null:a;this.state_=0;this.JSC$10271_value_=null};
sj.prototype.then=function(a,W,w){return this.wrappedPromise_?this.wrappedPromise_.then(a,W,w):this.state_===1&&a?(a=a.call(w,this.JSC$10271_value_))&&typeof a.then==="function"?a:_.uH(a):this.state_===2&&W?(a=W.call(w,this.JSC$10271_value_))&&typeof a.then==="function"?a:_.xRJ(a):this};
sj.prototype.getValue=function(){return this.JSC$10271_value_};
sj.prototype.isRejected=function(){return this.state_==2};
PbV(sj);_.xRJ=function(a){var W=new sj;a=a===void 0?null:a;W.state_=2;W.JSC$10271_value_=a===void 0?null:a;return W};
_.uH=function(a){var W=new sj;a=a===void 0?null:a;W.state_=1;W.JSC$10271_value_=a===void 0?null:a;return W};var Y19="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var bNV=["load","abort","error"],Cz=function(a,W,w){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10291_maxAspectRatio_=a;this.disableAnimation_=W===void 0?!1:W;this.disableExifRotation_=w===void 0?!1:w;this.JSC$10291_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10291_reject_=this.resolve_=null};
Cz.prototype.transform=function(a){var W=this;this.mime_=a.type;fk($jl(a),this.dataUrlRead_,this.readError_,this);fk(tM$(a.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(w,Z){W.resolve_=w;W.JSC$10291_reject_=Z})};
Cz.prototype.dataUrlRead_=function(a){this.dataUrl_=a;this.angle_!=null&&sc_(this)};
Cz.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 W=2,w=a.byteLength;W<w;){var Z=a.getUint16(W),N=a.getUint16(W+2);if(Z===65505){W+=4;Z=a.getUint32(W);N=a.getUint16(W+4);if(Z!==1165519206||N!==0)break;W+=6;Z=a.getUint16(W)===18761;W+=a.getUint32(W+4,Z);N=a.getUint16(W,Z);W+=2;for(var B=0;B<N;B++){if(a.getUint16(W,Z)===274){W+=8;a=a.getUint16(W,Z);break a}W+=12}}else if(Z>>8!==255)break;
else W+=N+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&&sc_(this)};
Cz.prototype.readError_=function(){this.JSC$10291_reject_()};
var sc_=function(a){lx(a.JSC$10291_image_,bNV,a.completeTransform_,!1,a);a.JSC$10291_image_.src=_.SB(a.dataUrl_).toString();a.JSC$10291_image_.src!=O0.toString()&&a.JSC$10291_image_.src.substr(0,11)==="data:image/"||a.JSC$10291_reject_()};
Cz.prototype.completeTransform_=function(){if(this.JSC$10291_image_.src!=O0.toString()){var a=_.SB(this.dataUrl_),W=this.JSC$10291_image_.naturalHeight?this.JSC$10291_image_.naturalWidth/this.JSC$10291_image_.naturalHeight:null;this.invalidAspectRatio=W>this.JSC$10291_maxAspectRatio_||W<1/this.JSC$10291_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var w=this.JSC$10291_image_.naturalWidth,Z=this.JSC$10291_image_.naturalHeight,N=W=0,B=this.JSC$10291_image_.naturalHeight?this.JSC$10291_image_.naturalWidth/
this.JSC$10291_image_.naturalHeight:null;B>this.JSC$10291_maxAspectRatio_?(w=this.JSC$10291_maxAspectRatio_*Z,W=(w-this.JSC$10291_image_.naturalWidth)/2,this.cropped=!0):B<1/this.JSC$10291_maxAspectRatio_?(Z=this.JSC$10291_maxAspectRatio_*w,N=(Z-this.JSC$10291_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)B=w,w=Z,Z=B,B=W,W=N,N=B;switch(this.angle_){case 90:N-=w;break;case 180:W-=w;N-=Z;break;case 270:W-=
Z}this.cropped||this.angle_%360!==0?(a=document.createElement("canvas"),a.width=w||1,a.height=Z||1,this.JSC$10291_image_.naturalWidth&&this.JSC$10291_image_.naturalHeight&&(w=a.getContext("2d"),w.rotate(Math.PI/180*this.angle_),w.drawImage(this.JSC$10291_image_,W,N,this.JSC$10291_image_.naturalWidth,this.JSC$10291_image_.naturalHeight)),this.transformedData=_.SB(a.toDataURL(this.mime_))):this.transformedData=a}else this.transformedData=a;this.resolve_(this)}};var Gz=function(a,W){_.kO.call(this,a);this.value=W};
_.c(Gz,_.kO);
var Dl=function(a,W,w,Z,N,B,I){I=I===void 0?!1:I;_.Ti.call(this);var X=this;this.JSC$10296_url_=a;this.channelId_=W;this.maxFileSizeMb_=w;this.JSC$10296_maxAspectRatio_=Z;this.dropZoneEl_=N;this.rejectInvalidAspectRatio_=I;this.selectButtonEl_=B;this.JSC$10296_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Po(this.dropZoneEl_);this.selectOverlay_=new X8(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10296_image_=this.transfer_=null;this.handler_=new _.am(this);_.$3(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(B,"click",function(){X.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.c(Dl,_.Ti);Dl.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();_.Ti.prototype.disposeInternal.call(this)};
Dl.prototype.uploadPromise=function(){if(this.JSC$10296_image_==null)return null;this.uploadPromise_||ui_(this);return this.uploadPromise_};
Dl.prototype.cancel=function(){Cih(this);this.JSC$10296_image_=null};
var Cih=function(a){a.transfer_&&a.transfer_.cancel();a.transfer_=null;a.uploadPromise_=null;a.resolve_=null;a.JSC$10296_reject_=null},ui_=function(a){Cih(a);
a.transfer_=_.pz$(a.JSC$10296_url_,{"X-YouTube-ChannelId":a.channelId_},a.JSC$10296_image_);a.handler_.listenOnce(a.transfer_,"l",a.JSC$10298_onUploadComplete_);a.handler_.listenOnce(a.transfer_,"n",a.onUploadError_);a.transfer_.run();a.uploadPromise_=new Promise(function(W,w){a.resolve_=W;a.JSC$10296_reject_=w})};
_.t=Dl.prototype;_.t.onChange_=function(a){a.files.length&&(this.JSC$10296_image_=a.files[0],this.JSC$10296_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10296_image_=null,this.dispatchEvent(new Gz("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(ui_(this),(new Cz(this.JSC$10296_maxAspectRatio_)).transform(this.JSC$10296_image_).then((0,_.Sk)(this.onPreview_,this),(0,_.Sk)(this.onPreviewError_,this))))};
_.t.onPreview_=function(a){if(a.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10296_image_=null),this.dispatchEvent(new Gz("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;a.cropped&&this.dispatchEvent(new Gz("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Gz("yt.comments.ImageUploadOverlay.CHANGE_EVENT",a.transformedData))};
_.t.onPreviewError_=function(){this.JSC$10296_image_=null;this.dispatchEvent(new Gz("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.t.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 Gz("yt.comments.ImageUploadOverlay.HOVER_EVENT",a))};
_.t.JSC$10298_onUploadComplete_=function(){var a=(0,_.Mn$)(this.transfer_.getResponseText());this.resolve_(a.encryptedBlobId)};
_.t.onUploadError_=function(){this.JSC$10296_reject_();Cih(this)};var GRe=function(a){a=a||{};var W={},w={};this.url=a.url||"";this.args=a.args||_.T5.clone(W);this.assets=a.assets||{};this.attrs=a.attrs||_.T5.clone(w);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||{}};
GRe.prototype.clone=function(){var a=new GRe,W;for(W in this)if(this.hasOwnProperty(W)){var w=this[W];a[W]=_.UI(w)=="object"?_.T5.clone(w):w}return a};var DRl,fhl,dR_,Zd,V7J,zKh,HNl,ybR,EH$,asl,Wzh,wwJ,Z0R,NnL,tDH,$Le,BnR,ls6,IsT,PNV,XwV,vZH,gZT,oZ$,kuA,ULR,O0L,SqH,Yq_,WWE,Tny,Kze,pwe,rp6,Ap_,hvT,i0h,cp6,ev6,nZ$,j7_,Lzy,JpV,FzT,MD_,Rvl,qql,Q7R,xL6,b0A,s7T,ujA,CNA,Gul,DLh,fsR,fz,dLL,mLR,VDH,zvR,H0L,yph,EZ_,aHV,W7V,wpE,ZgH,N0J,tN_,$vE,B0_,lH$,IHL,PjV,Ek7,Xp$,v4A,g4_,o4J,kdV,UvR,OgR,SDJ,YDl,T0V,K7y,ppJ,reJ,Ae6,hN6,ig6,ceh,eN6,n46,j3T,L7L,JeE,F7y,MNy,RNh;DRl=["account/accounts_list"];fhl=["acknowledge_channel_tou_strike"];dR_=["notification/add_upcoming_event_reminder"];
_.mRT=["att/get"];Zd=["browse","music/browse","unplugged/browse"];V7J=["channel/claim_legacy_youtube_channel"];zKh=["history/clear_search_history"];HNl=["history/clear_watch_history"];ybR=["comment/perform_comment_action"];EH$=["comment/get_comment_replies"];asl=["ypc/commerce_action"];Wzh=["backstage/create_post"];wwJ=["live/create_broadcast"];Z0R=["channel/create_channel"];NnL=["comment/create_comment_reply"];tDH=["comment/create_comment"];$Le=["live_chat/create_poll"];BnR=["playlist/create"];
ls6=["decorate_message"];IsT=["live_chat/delete_message"];PNV=["playlist/delete"];XwV=["video/delete"];vZH=["like/dislike"];gZT=["dismissal/dismiss"];oZ$=["flag/flag"];kuA=["flow"];ULR=["account/account_menu"];O0L=["playlist/get_add_to_playlist"];SqH=["get_answer"];Yq_=["channel/get_channel_creation_form"];WWE=["offline/get_download_action"];Tny=["kids/get_kids_blocklist_picker"];Kze=["live_chat/get_item_context_menu"];pwe=["live_chat/get_live_chat_message_buy_flow"];rp6=["live_chat/get_live_chat_replay"];
Ap_=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];hvT=["live_chat/get_live_chat_super_sticker_buy_flow"];i0h=["notification/get_notification_menu"];cp6=["playlist/get_settings_editor"];ev6=["backstage/get_post_video_preview"];nZ$=["account/get_profile_card"];j7_=["share/get_share_panel"];Lzy=["share/get_sharing_provider_data"];JpV=["get_survey"];FzT=["notification/get_unseen_count"];MD_=["get_user_mention_suggestions"];Rvl=["get_watch"];qql=["guide"];
Q7R=["feedback"];xL6=["kids/update_blacklist"];b0A=["like/like"];s7T=["live_chat/live_chat_action"];ujA=["live_chat/manage_user"];CNA=["video_manager/metadata_update"];Gul=["live_chat/moderate"];DLh=["notification/modify_channel_preference"];fsR=["notification/opt_out"];fz=["get_panel","get_posts_by_host_panel"];dLL=["player"];mLR=["browse/edit_playlist"];VDH=["notification/record_interactions"];zvR=["reel/reel_item_watch"];H0L=["reel/reel_watch_sequence"];yph=["like/removelike"];EZ_=["notification/remove_upcoming_event_reminder"];
aHV=["flag/get_form"];W7V=["miniapp/report_value"];wpE=["navigation/resolve_url"];ZgH=["channel/reveal_business_email"];N0J=["in_video/search"];tN_=["search","sfv/search","unplugged/search"];$vE=["live_chat/send_message"];B0_=["live_chat/send_live_chat_vote"];lH$=["account/set_setting"];IHL=["submit_caption_correction"];PjV=["subscription/subscribe"];Ek7=["get_transcript"];Xp$=["resolve_location","unplugged/resolve_location"];v4A=["subscription/unsubscribe"];g4_=["backstage/update_post"];o4J=["channel_edit/update_channel_page_settings"];
kdV=["comment/update_comment_reply"];UvR=["comment/update_comment"];OgR=["comment/update_comments_settings"];SDJ=["creator/update_creator_channel"];YDl=["pdg/update_enablement"];T0V=["updated_metadata"];K7y=["channel_edit/validate_channel_handle"];ppJ=["verify_age"];reJ=["next","unplugged/watch_next"];Ae6=["whitelist/edit"];hN6=["ypc/cancel_recurrence"];ig6=["ypc/complete_transaction"];ceh=["ypc/get_cart"];eN6=["ypc/get_fix_instrument_params"];n46=["ypc/get_offers"];j3T=["ypc/get_payment_instruments_params"];
L7L=["ypc/handle_transaction"];JeE=["ypc/log_payment_server_analytics"];F7y=["ypc/pause_subscription"];MNy=["ypc/redeem_code"];RNh=["ypc/resume_subscription"];var qDJ=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,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,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,
191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,
79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,
113746,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,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,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,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,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,262801,262800,262799,262802,262798,82039];var IV=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Dp("yt.msgs_",IV);var d7=new _.yq("ACTION_ROUTER_TOKEN");_.mF=function(){this.autonavState_=_.r("kevlar_is_pupi_enabled")?2:L18()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.mF.prototype.getState=function(){return this.autonavState_};
_.mF.prototype.pause=function(a){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=a):this.autonavState_==1&&(this.disabledAutonavPauseReason_=a)};
_.mF.prototype.setState=function(a,W,w){W&&(this.autoplayChangedByUser=!0);W=this.autonavState_===3||a===3;this.autonavState_!=a&&(this.autonavState_=a,a!=3&&_.J1v(a==2),a=_.r("kevlar_is_pupi_enabled")?w||W:!0,_.sn.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,a,w))};
_.mF.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.wk(_.mF);var VY=function(){this.hasRun=!1};var zz={},f$E=(zz.auto_search="LATENCY_ACTION_AUTO_SEARCH",zz.ad_to_ad="LATENCY_ACTION_AD_TO_AD",zz.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",zz.app_startup="LATENCY_ACTION_APP_STARTUP",zz.browse="LATENCY_ACTION_BROWSE",zz.cast_splash="LATENCY_ACTION_CAST_SPLASH",zz.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",zz.channels="LATENCY_ACTION_CHANNELS",zz.chips="LATENCY_ACTION_CHIPS",zz.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",zz.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
zz.editor="LATENCY_ACTION_EDITOR",zz.embed="LATENCY_ACTION_EMBED",zz.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",zz.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",zz.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",zz.explore="LATENCY_ACTION_EXPLORE",zz.favorites="LATENCY_ACTION_FAVORITES",zz.home="LATENCY_ACTION_HOME",zz.inboarding="LATENCY_ACTION_INBOARDING",zz.landing="LATENCY_ACTION_LANDING",zz.library="LATENCY_ACTION_LIBRARY",zz.live=
"LATENCY_ACTION_LIVE",zz.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",zz.management="LATENCY_ACTION_MANAGEMENT",zz.mini_app="LATENCY_ACTION_MINI_APP_PLAY",zz.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",zz.onboarding="LATENCY_ACTION_ONBOARDING",zz.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",zz.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",zz.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",zz.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
zz.prebuffer="LATENCY_ACTION_PREBUFFER",zz.prefetch="LATENCY_ACTION_PREFETCH",zz.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",zz.profile_switcher="LATENCY_ACTION_LOGIN",zz.projects="LATENCY_ACTION_PROJECTS",zz.reel_watch="LATENCY_ACTION_REEL_WATCH",zz.results="LATENCY_ACTION_RESULTS",zz.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",zz.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",zz.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",zz.review="LATENCY_ACTION_REVIEW",zz.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",zz.search_ui="LATENCY_ACTION_SEARCH_UI",zz.search_suggest="LATENCY_ACTION_SUGGEST",zz.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",zz.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",zz.seek="LATENCY_ACTION_PLAYER_SEEK",zz.settings="LATENCY_ACTION_SETTINGS",zz.store="LATENCY_ACTION_STORE",zz.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",zz.tenx="LATENCY_ACTION_TENX",zz.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",zz.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
zz.watch="LATENCY_ACTION_WATCH",zz.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",zz["watch,watch7"]="LATENCY_ACTION_WATCH",zz["watch,watch7_html5"]="LATENCY_ACTION_WATCH",zz["watch,watch7ad"]="LATENCY_ACTION_WATCH",zz["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",zz.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",zz.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",zz.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",zz.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",zz.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",zz.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",zz.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",zz.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",zz);var X1H=function(a,W){pm.call(this,1,arguments);this.timer=W};
_.c(X1H,pm);var Pwe=new SdE("aft-recorded",X1H);var zTF=_.NH.ytLoggingGelSequenceIdObj_||{};_.Dp("ytLoggingGelSequenceIdObj_",zTF);var Ho=_.NH.ytLoggingLatencyUsageStats_||{};_.Dp("ytLoggingLatencyUsageStats_",Ho);var yY=function(){this.cleanupJob=0},E$e=function(){yY.instance||(yY.instance=new yY);
return yY.instance};
_.t=yY.prototype;_.t.baseline=function(a,W,w){Ej(this,"baseline_"+a)||_.ia("latencyActionBaselined",{clientActionNonce:a},{timestamp:W,cttAuthInfo:w})};
_.t.tick=function(a,W,w,Z){Ej(this,"tick_"+a+"_"+W)||_.ia("latencyActionTicked",{tickName:a,clientActionNonce:W},{timestamp:w,cttAuthInfo:Z})};
_.t.info=function(a,W,w){var Z=Object.keys(a).join("");Ej(this,"info_"+Z+"_"+W)||(a=Object.assign({},a),a.clientActionNonce=W,_.ia("latencyActionInfo",a,{cttAuthInfo:w}))};
_.t.jspbInfo=function(a,W,w){for(var Z="",N=0;N<Z2(a).length;N++)Z2(a)[N]!==void 0&&(Z=N===0?Z.concat(""+N):Z.concat("_"+N));Ej(this,"info_"+Z+"_"+W)||(_.Xu(a,2,W),W={cttAuthInfo:w},w=_.r("jspb_sparse_encoded_pivot")?new Yj([{}]):new Yj,_.N_(w,7,h3_,a),H9C("latencyActionInfo",w,W))};
_.t.span=function(a,W,w){var Z=Object.keys(a).join("");Ej(this,"span_"+Z+"_"+W)||(a.clientActionNonce=W,_.ia("latencyActionSpan",a,{cttAuthInfo:w}))};
var Ej=function(a,W){Ho[W]=Ho[W]||{count:0};var w=Ho[W];w.count++;w.time=(0,_.mG)();a.cleanupJob||(a.cleanupJob=_.TP(_.hF,function(){var Z=(0,_.mG)(),N;for(N in Ho)Ho[N]&&Z-Ho[N].time>6E4&&delete Ho[N];a&&(a.cleanupJob=0)},5E3));
return w.count>5?(w.count===6&&Math.random()*1E5<1&&(w=new _.Uw("CSI data exceeded logging limit with key",W.split("_")),W.indexOf("plev")>=0||_.jJ(w)),!0):!1};var Q3E,xvV;Q3E=window;xvV=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.U_=Q3E.performance||Q3E.mozPerformance||Q3E.msPerformance||Q3E.webkitPerformance||new xvV;var ItH=!1,WvE=!1,vK8=(0,_.Sk)(_.U_.clearResourceTimings||_.U_.webkitClearResourceTimings||_.U_.mozClearResourceTimings||_.U_.msClearResourceTimings||_.U_.oClearResourceTimings||_.S5,_.U_);var bgy=window;bgy.ytcsi&&(bgy.ytcsi.infoGel=_.pD,bgy.ytcsi.tick=_.Ak);var A2E=function(a){pm.call(this,1,arguments);this.csn=a};
_.c(A2E,pm);var rGI=new SdE("screen-created",A2E),srI=[],r2e=bmx,uWE=0,nD=new Map,hxS=new Map,imE=new Map;var Jx=Symbol("vf"),CD=new WeakMap;var aX=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},BX=function(){aX.instance||(aX.instance=new aX);
return aX.instance};
_.t=aX.prototype;_.t.setClient=function(a){this.client=a};
_.t.JSC$10377_newScreen=function(){this.clear();this.csn=_.nS()};
_.t.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.t.reportShown=function(a,W,w){var Z=this.JSC$10377_getTrackingParams(a),N=a.visualElement?a.visualElement:Z;W=this.shownElements.has(N);var B=this.visibleState.get(N);this.shownElements.add(N);this.visibleState.set(N,!0);a.impressionLog&&!W&&a.impressionLog();if(Z||a.visualElement)if(w=s36(this,a,w))if(N=uGh(this,a),WE(this,a)||N){Z=a.visualElement?a.visualElement:_.PX(Z);var I=a.interactionLoggingClientData;N||W?WE(this,a)&4?B||MiH(this.client,w,Z,I):WE(this,a)&1&&!W&&Lve(this.client,w,Z,I):Lve(this.client,
w,Z,I)}};
_.t.reportHidden=function(a,W,w){var Z=this.JSC$10377_getTrackingParams(a),N=a.visualElement?a.visualElement:Z;W=this.hiddenElements.has(N);var B=this.visibleState.get(N);this.hiddenElements.add(N);this.visibleState.set(N,!1);if(B===!1)return!0;if(!Z&&!a.visualElement)return!1;w=s36(this,a,w);if(!w||!WE(this,a)&&uGh(this,a))return!1;Z=a.visualElement?a.visualElement:_.PX(Z);WE(this,a)&8?RxF(this.client,w,Z):WE(this,a)&2&&!W&&(a=this.client,W=eW({cttAuthInfo:jH(w)||void 0},w),Z={csn:w,ve:Z.getAsJson(),
eventType:2},w==="UNDEFINED_CSN"?Fz("visualElementHidden",W,Z):a?rt("visualElementHidden",Z,a,W):_.ia("visualElementHidden",Z,W));return!0};
_.t.JSC$10377_getTrackingParams=function(a){var W=this.getData(a),w,Z;if(_.r("il_use_view_model_logging_context")&&(W==null?0:(w=W.context)==null?0:(Z=w.loggingContext)==null?0:Z.loggingDirectives))return W.context.loggingContext.loggingDirectives.trackingParams||"";var N,B;if(W==null?0:(N=W.rendererContext)==null?0:(B=N.loggingContext)==null?0:B.loggingDirectives)return W.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(W==null?0:W.loggingDirectives)return W.loggingDirectives.trackingParams||
"";var I;return((I=a.veContainer)==null?0:I.trackingParams)?a.veContainer.trackingParams:(W==null?void 0:W.trackingParams)||""};
_.t.JSC$10377_elementShouldLogGesture=function(a,W){a=this.getData(a);return!!((Math.floor(Number(a&&a.loggingDirectives&&a.loggingDirectives.gestures&&a.loggingDirectives.gestures.types||""))||0)&W)};
_.t.JSC$10377_getNearestParentVe=function(a){var W=this.JSC$10377_getTrackingParams(a);return a.visualElement?a.visualElement:W?_.PX(W):a.parentElement?this.JSC$10377_getNearestParentVe(a.parentElement):null};
var s36=function(a,W,w){var Z=_.nS(w);return a.csn===null||Z===a.csn||w?Z:(a=new _.Uw("VisibilityLogger called before newScreen",{caller:W.tagName,previous_csn:a.csn,current_csn:Z}),_.jJ(a),null)};
aX.prototype.getData=function(a){var W,w=a.data||((W=a.props)==null?void 0:W.data);if(!w&&_.r("enable_wiz_always_try_logging_info_map")){var Z;w=(Z=GG(a))==null?void 0:Z[Jx]}else if(a.isWebComponentWrapper){var N;w=(N=GG(a))==null?void 0:N[Jx]}return w};
var uGh=function(a,W){var w;return!((w=a.getData(W))==null||!w.loggingDirectives)},WE=function(a,W){a=a.getData(W);
return Math.floor(Number(a&&a.loggingDirectives&&a.loggingDirectives.visibility&&a.loggingDirectives.visibility.types||""))||1};var w9;w9=function(){};
_.Nw=function(){w9.instance||(w9.instance=new w9);return w9.instance};
w9.prototype.setClient=function(a){_.Mx(BX().setClient).bind(BX())(a)};
_.CjR=function(){_.Nw();_.Mx(BX().JSC$10377_newScreen).bind(BX())()};
w9.prototype.clear=function(){_.Mx(BX().clear).bind(BX())()};
w9.prototype.reportShown=function(a,W,w){_.Mx(BX().reportShown).bind(BX())(a,W,w)};
w9.prototype.reportHidden=function(a,W,w){return _.Mx(BX().reportHidden).bind(BX())(a,W,w)};
var IuC=function(a,W){return _.Mx(BX().JSC$10377_getTrackingParams).bind(BX())(W)},BV9=function(a,W){return _.Mx(BX().JSC$10377_getNearestParentVe).bind(BX())(W)};var ZJ,Gdl;ZJ=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};
_.$J=function(){ZJ.instance||(ZJ.instance=new ZJ);return ZJ.instance};
ZJ.prototype.setClient=function(a){this.client=a};
Gdl=function(a,W,w){w=w===void 0?{}:w;_.Mx(function(){var Z,N,B,I=((Z=_.A(W==null?void 0:W.commandMetadata,_.mm))==null?void 0:Z.rootVe)||((N=_.A(W==null?void 0:W.commandMetadata,zT_))==null?void 0:(B=N.screenVisualElement)==null?void 0:B.uiType);if(I){Z=_.A(W==null?void 0:W.commandMetadata,L6H);if(Z==null?0:Z.parentTrackingParams){var X=_.PX(Z.parentTrackingParams);if(Z.parentCsn)var v=Z.parentCsn}else w.clickedVisualElement?X=w.clickedVisualElement:W.clickTrackingParams&&(X=_.PX(W.clickTrackingParams));
a:{Z=_.A(W,_.u6);N=_.A(W,YqF);if(Z){if(N=F1S(Z,"VIDEO")){Z={token:N,videoId:Z.videoId};break a}}else if(N&&(Z=F1S(N,"PLAYLIST"))){Z={token:Z,playlistId:N.playlistId};break a}Z=void 0}w=Object.assign({},{cttAuthInfo:Z,parentCsn:v},w);if(_.r("expectation_logging")){var U;w.loggingExpectations=((U=_.A(W==null?void 0:W.commandMetadata,zT_))==null?void 0:U.loggingExpectations)||void 0}_.NJ(a,I,X,w)}else _.jJ(new _.Uw("Error: Trying to create a new screen without a rootVeType",W))})()};
_.NJ=function(a,W,w,Z){Z=Z===void 0?{}:Z;_.Mx(function(){qDJ.includes(W)||(_.jJ(new _.Uw("createClientScreen() called with a non-page VE",W)),W=83769);Z.isHistoryNavigation||(a.forwardHistoryStack=[],a.backHistoryStack.push({rootVe:W,key:Z.key||""}));a.graftQueue=[];a.stateChangedQueue=[];Z.dataPromises?DvL(a,W,w,Z):fHh(a,W,w,Z)})()};
_.dvy=function(a,W,w){w=w===void 0?0:w;_.Mx(function(){W.then(function(Z){a.pendingScreenCreation.has(w)&&a.pendingScreenFn&&a.pendingScreenFn();var N=_.nS(w),B=_.eH(w);if(N&&B){var I;(Z==null?0:(I=Z.response)==null?0:I.trackingParams)&&Jk(a.client,N,B,_.PX(Z.response.trackingParams));var X;(Z==null?0:(X=Z.playerResponse)==null?0:X.trackingParams)&&Jk(a.client,N,B,_.PX(Z.playerResponse.trackingParams))}})})()};
ZJ.prototype.graftServerVe=function(a,W,w){var Z=this;return _.Mx(function(){var N=_.PX(a);_.tc(Z,N,W,w);return N})()};
_.ln7=function(a,W,w,Z){return _.r("enable_client_ve_spec")&&W.clientVeSpec?(W=_.Ob(W.clientVeSpec.uiType,void 0,W.clientVeSpec.elementIndex,W.clientVeSpec.clientYoutubeData,void 0,W),_.tc(a,W,w,Z)?W:null):W.trackingParams?a.graftServerVe(W.trackingParams,w,Z):null};
_.tQ=function(a,W,w,Z){return _.Mx(function(){if(!W.veType)return _.nH(new _.Uw("Error: Trying to graft a client VE without a veType.")),null;if(W.visibilityTypes){var N=W.visibilityTypes.reduce(function(B,I){return B|I});
N={visibility:{types:String(N)}}}N=_.Ob(W.veType,W.visualElement,W.elementIndex,W.clientYouTubeData,void 0,N);return _.tc(a,N,w,Z)?N:null})()};
_.tc=function(a,W,w,Z){Z=Z===void 0?0:Z;return _.Mx(function(){if(a.pendingScreenCreation.has(Z))return a.graftQueue.push([W,w]),!0;var N=_.nS(Z),B=w||_.eH(Z);if(N&&B){if(_.r("combine_ve_grafts")){var I=a.cachedVisualElements.get(B.toString());I?I.push(W):(a.cachedRootVisualElements.set(B.toString(),B),a.cachedVisualElements.set(B.toString(),[W]));a.attachTimeout||(a.attachTimeout=_.TP(_.hF,function(){mv_(a,N)},1200))}else Jk(a.client,N,B,W);
return!0}return!1})()};
_.$V=function(a,W,w){w=w===void 0?0:w;var Z=a.recurringGrafts.get(w)||new Map;if(_.r("smarter_ve_dedupping"))for(var N=Array.from(Z.keys()),B=0;B<N.length;B++){var I=void 0,X=void 0;var v=W;var U=N[B];U.isClientVe()&&v.isClientVe()?(I=v.getAsJson(),X=U.getAsJson(),v=I.veType!==X.veType||I.elementIndex!==X.elementIndex||I.dataElement!==X.dataElement||v.getLoggingDirectives()!==U.getLoggingDirectives()?!1:!0):v=U.veData.trackingParams!==void 0&&v.veData.trackingParams!==void 0?((X=v.veData)==null?void 0:
X.trackingParams)===((I=U.veData)==null?void 0:I.trackingParams):!1;if(v)return}else if(Z.has(W))return;Z.set(W,void 0);a.recurringGrafts.set(w,Z);_.nS(w)==="UNDEFINED_CSN"||a.pendingScreenCreation.has(w)||_.tc(a,W,void 0,w)};
_.BE=function(a,W,w,Z){Z=_.nS(Z===void 0?0:Z);if(!Z)return!1;Qrx(a.client,Z,W,w);return!0};
_.lM=function(a,W,w,Z){if(!W)return!1;Z=_.nS(Z===void 0?0:Z);if(!Z)return!1;Qrx(a.client,Z,_.PX(W),w);return!0};
_.LA=function(a,W){var w=W.getScreenLayer&&W.getScreenLayer();if(W.visualElement)return _.BE(a,W.visualElement,void 0,w);W=IuC(_.Nw(),W);return _.lM(a,W,void 0,w)};
ZJ.prototype.clickCommand=function(a,W,w){return _.lM(this,a.clickTrackingParams,W,w===void 0?0:w)};
ZJ.prototype.stateChanged=function(a,W,w){this.visualElementStateChanged(_.PX(a),W,w===void 0?0:w)};
ZJ.prototype.visualElementStateChanged=function(a,W,w){w=w===void 0?0:w;w===0&&this.pendingScreenCreation.has(w)?this.stateChangedQueue.push([a,W]):this.logStateChanged(a,W,w)};
ZJ.prototype.logStateChanged=function(a,W,w){w=w===void 0?0:w;var Z=_.nS(w);a=a||_.eH(w);return Z&&a?(xKD(this.client,Z,a,W),!0):!1};
var DvL=function(a,W,w,Z){Z=Z===void 0?{}:Z;a.pendingScreenCreation.add(Z.layer||0);a.pendingScreenFn=function(){fHh(a,W,w,Z);var I=_.eH(Z.layer);if(I){for(var X=_.l(a.graftQueue),v=X.next();!v.done;v=X.next())v=v.value,_.tc(a,v[0],v[1]||I,Z.layer);I=_.l(a.stateChangedQueue);for(X=I.next();!X.done;X=I.next())X=X.value,a.logStateChanged(X[0],X[1])}};
w||_.nS(Z.layer)||a.pendingScreenFn();if(Z.dataPromises)for(var N=_.l(Z.dataPromises),B=N.next();!B.done;B=N.next())_.dvy(a,B.value,Z.layer);else _.eJ(Error("wf"))},fHh=function(a,W,w,Z){Z=Z===void 0?{}:Z;
var N=void 0;Z.layer||(Z.layer=0);N=Z.parentLayer!==void 0?Z.parentLayer:Z.layer;var B=_.nS(N);N=_.eH(N);var I=w||N,X;I&&(Z.parentCsn!==void 0?X={clientScreenNonce:Z.parentCsn,visualElement:I}:B&&B!=="UNDEFINED_CSN"&&(X={clientScreenNonce:B,visualElement:I}));var v,U=_.LF("EVENT_ID");B==="UNDEFINED_CSN"&&U&&(v={servletData:{serializedServletEventId:U}});_.r("combine_ve_grafts")&&B&&mv_(a,B);_.r("no_client_ve_attach_unless_shown")&&I&&B&&jrI(I,B);try{var O=_.c29(a.client,W,X,Z.csnToClone,Z.cttAuthInfo,
v,Z.implicitGestureType,void 0,Z.loggingExpectations)}catch(p){_.LH(p,{rootVeType:W,rootVe:N,parentVisualElement:w,currentCsn:B,parentEl:X,csnToClone:Z.csnToClone});_.eJ(p);return}_.qlx(O,W,Z.layer,Z.cttAuthInfo);B&&B!=="UNDEFINED_CSN"&&N&&!MXU(B)&&RxF(a.client,B,N,!0);a.backHistoryStack[a.backHistoryStack.length-1]&&!a.backHistoryStack[a.backHistoryStack.length-1].csn&&(a.backHistoryStack[a.backHistoryStack.length-1].csn=O||"");_.pD({clientScreenNonce:O});_.CjR();var S=_.eH(Z.layer);B&&B!=="UNDEFINED_CSN"&&
S&&(_.r("web_mark_root_visible")||_.r("music_web_mark_root_visible"))&&_.q1(O,S);a.pendingScreenCreation.delete(Z.layer||0);a.pendingScreenFn=void 0;var T;(T=a.recurringGrafts.get(Z.layer))==null||T.forEach(function(p,h){p?_.tc(a,h,p,Z.layer):S&&_.tc(a,h,S,Z.layer)});
VNl(a)},VNl=function(a){for(var W=0;W<a.afterNewScreenOneOffJobs.length;W++){var w=a.afterNewScreenOneOffJobs[W];
try{w()}catch(Z){_.eJ(Z)}}for(W=a.afterNewScreenOneOffJobs.length=0;W<a.afterNewScreenRecurringJobs.length;W++){w=a.afterNewScreenRecurringJobs[W];try{w()}catch(Z){_.eJ(Z)}}},mv_=function(a,W){if(W===void 0)for(var w=Jd8(),Z=0;Z<w.length;Z++)w[Z]!==void 0&&mv_(a,w[Z]);
else a.cachedVisualElements.forEach(function(N,B){(B=a.cachedRootVisualElements.get(B))&&exe(a.client,W,B,N)}),a.cachedVisualElements.clear(),a.cachedRootVisualElements.clear(),a.attachTimeout=void 0};var IX=function(a){a=a===void 0?{layer:0}:a;this.hasRun=!1;this.createScreenConfig=a;a={};this.kq5=(a.response=!1,a.playerResponse=!1,a)};
_.c(IX,VY);IX.prototype.validate=function(a){return!(!a.data||!a.data.response&&!a.data.playerResponse)};
IX.prototype.handle=function(a){var W=_.$J(),w=this.createScreenConfig.layer;a.data.response&&a.data.response.trackingParams&&!this.kq5.response&&(W.graftServerVe(a.data.response.trackingParams,void 0,w),this.kq5.response=!0);a.data.playerResponse&&a.data.playerResponse.trackingParams&&!this.kq5.playerResponse&&(W.graftServerVe(a.data.playerResponse.trackingParams,void 0,w),this.kq5.playerResponse=!0)};var PE=function(){this.kG=_.Rt();this.ca=[];this.qYy=0};
PE.prototype.processChunk=function(a){if(a){for(var W=_.l(this.ca),w=W.next();!w.done;w=W.next())w=w.value,w.validate(a)&&(w.handle(a),w.hasRun=!0);_.Ak("np"+this.qYy);this.qYy++}};var dK8,D9,fD,DKF=0,ftv=function(a,W,w,Z,N,B){var I=fD;this.name=a;this.attributes=W;this.startTime=w;this.id=Z;this.sessionId=N;this.traceId=B;this.parent=I};
ftv.prototype.attr=function(a,W){this.attributes[a]=W};
ftv.prototype.close=function(a){if(this!==fD)throw Error("xf");var W=fD;a&&(W.status=a);W.endTime=performance.now();a=_.l(D9.spanProcessors);for(var w=a.next();!w.done;w=a.next()){var Z=void 0,N=void 0;(N=(Z=w.value).onSpanEnd)==null||N.call(Z,W)}fD=W==null?void 0:W.parent};
ftv.prototype[Symbol.dispose]=function(){this.close()};var e4S,yeL;_.WX=function(a,W,w,Z,N,B,I){I=I===void 0?[]:I;this.buildCommandPayload=a;this.navigate=W;this.handleServiceRequest=w;this.sendAction=Z;this.JSC$10418_screenManager=N;this.commandResolverMap=B;this.autoLogResolverAllowlist=I;this.pendingCommands=new Set;if(Vi8("command")){var X=this.resolveCommand;this.resolveCommand=function(v,U){var O=mKe("command",{command:v});return HmU(O,X.bind(this,v,U),null)}}};
e4S=function(a,W,w){var Z=oa7,N=kT8,B=_.$J(),I=zNh;w=w===void 0?[]:w;_.WX.instance=new _.WX(a,W,Z,N,B,I,w)};
yeL=function(a,W,w){if(!a.commandResolverMap)return!1;var Z=Wjv(W,a.commandResolverMap);return Z?((a.autoLogResolverAllowlist.some(function(N){return!!_.A(W,N)})||(w==null?0:w.forceClickLogging))&&Hgl(a,W,w),Z instanceof Promise?Z.then(function(N){N.resolve(W,w)}):Z.resolve(W,w),!0):!1};
_.WX.prototype.resolveCommand=function(a,W){var w=this,Z=E4h(a);if(yeL(this,a,W))return!0;if(Z)return aqR(this,a,W);if(!this.buildCommandPayload)return y28(a,"Unhandled command by buildCommandPayload"),!1;var N=this.buildCommandPayload(a,W);if(W==null?0:W.commandController)N.commandController=W.commandController;if(N.type===0){if(!this.navigate)return EKC(a,"navigate"),!1;if(!Wx$(N.command))return y28(a,"Page requests need to specify a url"),!1;_.r("logging_avoid_blocking_during_navigation")&&_.IgD().transition("application_navigating");
a=this.navigate(N)||[];O8H(a).then(function(){w.pendingCommands.delete(N.command)});
return!0}if(N.type===1){if(!this.handleServiceRequest)return EKC(a,"handleServiceRequest"),!1;(W==null?0:W.forceClickLogging)&&Hgl(this,N.command,W);a=this.handleServiceRequest(N);O8H(a).then(function(){w.pendingCommands.delete(N.command)});
return!0}if(N.type===2){if(!this.sendAction)return EKC(a,"sendAction"),!1;Hgl(this,N.command,W);this.sendAction(N);return!0}return!1};
var Hgl=function(a,W,w){if((w==null||!w.disableClickTracking)&&a.JSC$10418_screenManager)if(W.clickTrackingParams&&_.r("log_click_with_layer_from_element_in_command_handler")){var Z;w=w==null?void 0:(Z=w.form)==null?void 0:Z.element;a.JSC$10418_screenManager.clickCommand(W,null,w&&w.getScreenLayer&&w.getScreenLayer())}else W.clickTrackingParams?a.JSC$10418_screenManager.clickCommand(W):!_.r("disable_clicked_visual_element_in_command_handler")&&(w==null?0:w.clickedVisualElement)&&_.BE(a.JSC$10418_screenManager,
w.clickedVisualElement)},E4h=function(a){var W=!!_.A(a,_.$7),w;
a=((w=_.A(a,_.l0))==null?void 0:w.signal)==="CLIENT_SIGNAL";return W||a},aqR=function(a,W,w){var Z=_.A(W,_.$7);
if(Z)var N=(Z==null?void 0:Z.commands)||[];else{var B;if(((B=_.A(W,_.l0))==null?void 0:B.signal)==="CLIENT_SIGNAL"){var I;N=((I=_.A(W,_.l0))==null?void 0:I.actions)||[]}}if(N){W=_.l(N);for(N=W.next();!N.done;N=W.next()){N=N.value;try{a.resolveCommand(N,w)}catch(X){X instanceof Error&&_.eJ(X)}}return!0}y28(W,"Could not handle the meta command");return!1},Wx$=function(a){var W;
return!((W=_.A(a==null?void 0:a.commandMetadata,_.mm))==null||!W.url)};var X4=function(){VY.apply(this,arguments)};
_.c(X4,VY);X4.prototype.validate=function(a){var W,w;return!this.hasRun&&!!((W=a.data.response)==null?0:(w=W.onResponseReceivedEndpoints)==null?0:w.length)};
X4.prototype.handle=function(a){var W=_.WX.instance;a=_.l(a.data.response.onResponseReceivedEndpoints);for(var w=a.next();!w.done;w=a.next())W.resolveCommand(w.value)};var w3y,ZGl,NyE;
w3y=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=_.tk();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.vE=function(){ZGl||(ZGl=new w3y);return ZGl};
NyE=function(){var a=_.vE();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};
_.tOl=function(){var a=_.vE(),W=a.mediaSessionPipActivation,w=a.watchPipActivation,Z=a.watchWhileActivation,N=a.playlistWatchPageActivation,B=a.lockupActivation,I=a.showMiniplayerCommandActivation,X=a.navigatingAwayFromWatchDeletedVideo,v=a.shortsPipActivation,U=a.playlistSuggestionsShelfActivation,O=a.productDetailsPageActivation,S=a.miniAppPageActivation,T=a.playablesDestPageActivation;return!a.miniplayerButtonActivation&&!N&&!U&&!O&&!S&&!T&&!B&&!I&&!W&&!w&&!Z&&!v||X};var Qp9;_.g9=mX("FEwhat_to_watch","/",3854);_.xgv=mX("FEdownloads","/feed/downloads",42352);Qp9=mX("FEmusic_offline","browse/FEmusic_offline",42352);var u8=function(a,W){W=W===void 0?[]:W;var w=w===void 0?[]:w;W=SyE.apply(null,[YyH.apply(null,_.K8(W))].concat(_.K8(w)));this.store=rDv(a,void 0,W)};
u8.prototype.getState=function(){return this.store.getState()};
u8.prototype.dispatch=function(a){return this.store.dispatch(a)};
u8.prototype.subscribe=function(a){return this.store.subscribe(a)};
u8.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
u8.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.oX=function(a,W,w){var Z=W(a.getState());return a.subscribe(function(){var N=W(a.getState());if(N!==Z){var B=Z;Z=N;w(N,B)}})};var fie;_.oL=function(a,W,w){return _.E_({type:"REPLACE_ENTITY",payload:{entityPayload:w,entityType:a,key:W}})};
fie=function(a){return _.E_({type:"REPLACE_ENTITIES",payload:a})};
_.e4=function(a,W,w,Z){return _.E_({type:"UPDATE_ENTITY",payload:{entityPayload:w,entityType:a,key:W,mergeOption:Z}})};var oie=function(a){var W=this;a=a===void 0?[]:a;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;a.forEach(function(w){W.append(w)})};
_.t=oie.prototype;_.t.getLength=function(){return this.totalLength};
_.t.append=function(a){var W=this.arrays.length===0?!1:(W=this.arrays[this.arrays.length-1])&&W.buffer===a.buffer&&W.byteOffset+W.length===a.byteOffset;W?(W=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(W.buffer,W.byteOffset,W.length+a.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(a);this.totalLength+=a.length};
_.t.split=function(a){for(var W=new oie,w=new oie,Z=_.l(this.arrays),N=Z.next();!N.done;N=Z.next())N=N.value,a>=N.length?(W.append(N),a-=N.length):a?(W.append(new Uint8Array(N.buffer,N.byteOffset,a)),w.append(new Uint8Array(N.buffer,N.byteOffset+a,N.length-a)),a=0):w.append(N);return{headView:W,tailView:w}};
_.t.extract=function(a,W){return this.split(a).tailView.split(W).headView};
_.t.isFocused=function(a){return a>=this.arrayPos&&a<this.arrayPos+this.arrays[this.arrayIdx].length};
_.t.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 $QA=function(a,W){a.focus(W);return a.arrays[a.arrayIdx][W-a.arrayPos]};(function(){var a=function(Z){return new Uint8Array(Z)},W=function(Z){for(var N=new Uint8Array(Z.length),B=0;B<Z.length;B++)N[B]=Z[B];
return N},w=new Uint8Array([1]);
return w.length===1&&w[0]===1?a:W})();
var liv=Array(1024),BqE=window.TextDecoder?new TextDecoder:void 0,PTe=window.TextEncoder?new TextEncoder:void 0;var gi7=function(a){this.arrayView=a;this.pos=0;this.pendingTagAndType=-1},as=function(a){var W=$QA(a.arrayView,a.pos);
++a.pos;if(W<128)return W;for(var w=W&127,Z=1;W>=128;)W=$QA(a.arrayView,a.pos),++a.pos,Z*=128,w+=(W&127)*Z;return w},kpH=function(a,W){var w=a.pendingTagAndType;
for(a.pendingTagAndType=-1;a.pos+1<=a.arrayView.totalLength;){w<0&&(w=as(a));var Z=w>>3,N=w&7;if(Z===W)return!0;if(Z>W){a.pendingTagAndType=w;break}w=-1;switch(N){case 0:as(a);break;case 1:a.pos+=8;break;case 2:Z=as(a);a.pos+=Z;break;case 5:a.pos+=4}}return!1};var OUx=function(){this.pos=0;this.submessagePosStack=[];this.buf=viE(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Zb=function(a,W){W=a.pos+W;
if(!(a.buf.length>=W)){for(var w=a.buf.length*2;w<W;)w*=2;a.buf=viE(w,a.buf.subarray(0,a.pos));a.view=new DataView(a.buf.buffer,a.buf.byteOffset,a.buf.byteLength)}},wK=function(a,W){if(W>268435455){Zb(a,4);
for(var w=W&1073741823,Z=0;Z<4;Z++)a.view.setUint8(a.pos,w&127|128),w>>=7,a.pos+=1;W=Math.floor(W/268435456)}for(Zb(a,4);W>127;)a.view.setUint8(a.pos,W&127|128),W>>=7,a.pos+=1;a.view.setUint8(a.pos,W);a.pos+=1};for(var S5I={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,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},UDI={},ByL=_.l(Object.entries(S5I)),lq6=ByL.next();!lq6.done;lq6=ByL.next()){var Iq_=_.l(lq6.value),PrL=Iq_.next().value,X3J=Iq_.next().value,vte=PrL,gt_=X3J;gt_&&(UDI[gt_]=vte)};var Tqv=function(a,W){a=a===void 0?{}:a;switch(W.type){case "ENTITY_LOADED":return W.payload.reduce(function(Z,N){var B,I=(B=N.options)==null?void 0:B.persistenceOption;if(I&&I!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&I!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Z;if(!N.entityKey)return _.eJ(Error("zf")),Z;if(N.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!N.payload)return N=new _.Uw("REPLACE entity mutation is missing a payload",{entityKey:N.entityKey}),_.eJ(N),Z;var X=(0,_.T5.getAnyKey)(N.payload);
return pne(Z,X,N.entityKey,N.payload[X])}if(N.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{N=N.entityKey;try{var v=_.WJ(N).entityType;X=pne(Z,v,N);break a}catch(S){if(S instanceof Error){N=new _.Uw("Failed to deserialize entity key",{entityKey:N,originalMessage:S.message});_.eJ(N);X=Z;break a}throw S;}X=void 0}return X}if(N.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!N.payload)return N=new _.Uw("UPDATE entity mutation is missing a payload",{entityKey:N.entityKey}),_.eJ(N),Z;X=(0,_.T5.getAnyKey)(N.payload);
var U,O;return rA8(Z,X,N.entityKey,N.payload[X],(U=N.fieldMask)==null?void 0:(O=U.mergeOptions)==null?void 0:O.repeatedFieldsMergeOption)}return Z},a);
case "REPLACE_ENTITY":var w=W.payload;return pne(a,w.entityType,w.key,w.entityPayload);case "REPLACE_ENTITIES":return Object.keys(W.payload).reduce(function(Z,N){var B=W.payload[N];return Object.keys(B).reduce(function(I,X){return pne(I,N,X,B[X])},Z)},a);
case "UPDATE_ENTITY":return w=W.payload,rA8(a,w.entityType,w.key,w.entityPayload,w.mergeOption);default:return a}};var AAU;var ot6=!1,kV,UF,OF,Sw,YV,kAT=function(a){_.OW.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!ot6){var W,w=new Uint8Array(256),Z=new Uint8Array(256);var N=1;for(W=0;W<256;W++)w[N]=W,Z[W]=N,N^=N<<1^(N>>7&&283);kV=new Uint8Array(256);UF=$p(256);OF=$p(256);Sw=$p(256);YV=$p(256);for(var B=0;B<256;B++){N=B?Z[255^w[B]]:0;N^=N<<1^N<<2^N<<3^N<<4;N=N&255^N>>>8^99;kV[B]=N;W=N<<1^(N>>7&&283);var I=W^N;UF[B]=W<<24|N<<16|N<<8|I;OF[B]=I<<24|UF[B]>>>8;Sw[B]=N<<24|OF[B]>>>
8;YV[B]=N<<24|Sw[B]>>>8}ot6=!0}N=$p(44);for(w=0;w<4;w++)N[w]=a[4*w]<<24|a[4*w+1]<<16|a[4*w+2]<<8|a[4*w+3];for(Z=1;w<44;w++)a=N[w-1],w%4||(a=(kV[a>>16&255]^Z)<<24|kV[a>>8&255]<<16|kV[a&255]<<8|kV[a>>>24],Z=Z<<1^(Z>>7&&283)),N[w]=N[w-4]^a;this.key=N};
_.c(kAT,_.OW);
kAT.prototype.encrypt=function(a){var W=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+W));for(var w=this.cipherBlock,Z=0;Z<W&&this.blockOffset<16;)a[Z++]^=w[this.blockOffset++];for(var N=W-(W-Z)%16;Z<N;)UQy(this),a[Z++]^=w[0],a[Z++]^=w[1],a[Z++]^=w[2],a[Z++]^=w[3],a[Z++]^=w[4],a[Z++]^=w[5],a[Z++]^=w[6],a[Z++]^=w[7],a[Z++]^=w[8],a[Z++]^=w[9],a[Z++]^=w[10],a[Z++]^=w[11],a[Z++]^=w[12],a[Z++]^=w[13],a[Z++]^=w[14],a[Z++]^=w[15];if(Z<W)for(UQy(this),this.blockOffset=0;Z<W;)a[Z++]^=
w[this.blockOffset++];return a};
var OGA=function(a,W){for(var w=0;w<4;w++)a.counter[w]=W[w*4]<<24|W[w*4+1]<<16|W[w*4+2]<<8|W[w*4+3];a.blockOffset=16},UQy=function(a){for(var W=a.key,w=a.counter[0]^W[0],Z=a.counter[1]^W[1],N=a.counter[2]^W[2],B=a.counter[3]^W[3],I=3;I>=0&&!(a.counter[I]=-~a.counter[I]);I--);
for(var X,v,U=4;U<40;)I=UF[w>>>24]^OF[Z>>16&255]^Sw[N>>8&255]^YV[B&255]^W[U++],X=UF[Z>>>24]^OF[N>>16&255]^Sw[B>>8&255]^YV[w&255]^W[U++],v=UF[N>>>24]^OF[B>>16&255]^Sw[w>>8&255]^YV[Z&255]^W[U++],B=UF[B>>>24]^OF[w>>16&255]^Sw[Z>>8&255]^YV[N&255]^W[U++],w=I,Z=X,N=v;a=a.cipherBlock;I=W[40];a[0]=kV[w>>>24]^I>>>24;a[1]=kV[Z>>16&255]^I>>16&255;a[2]=kV[N>>8&255]^I>>8&255;a[3]=kV[B&255]^I&255;I=W[41];a[4]=kV[Z>>>24]^I>>>24;a[5]=kV[N>>16&255]^I>>16&255;a[6]=kV[B>>8&255]^I>>8&255;a[7]=kV[w&255]^I&255;I=W[42];
a[8]=kV[N>>>24]^I>>>24;a[9]=kV[B>>16&255]^I>>16&255;a[10]=kV[w>>8&255]^I>>8&255;a[11]=kV[Z&255]^I&255;I=W[43];a[12]=kV[B>>>24]^I>>>24;a[13]=kV[w>>16&255]^I>>16&255;a[14]=kV[Z>>8&255]^I>>8&255;a[15]=kV[N&255]^I&255};var SYR=!1;(function(){var a=function(Z){return new Uint8Array(Z)},W=function(Z){for(var N=new Uint8Array(Z.length),B=0;B<Z.length;B++)N[B]=Z[B];
return N},w=new Uint8Array([1]);
return w.length===1&&w[0]===1?a:W})();
var TZ;var YYT=function(a){this.JSC$10485_aesKey=a};
YYT.prototype.encrypt=function(a,W){var w=this,Z,N;return _.P(function(B){if(B.nextAddress==1){a:{if(!SYR&&!C3){if(TZ){var I=TZ;break a}TZ=(I=window.crypto)==null?void 0:I.subtle;var X,v,U;if(((X=TZ)==null?0:X.importKey)&&((v=TZ)==null?0:v.sign)&&((U=TZ)==null?0:U.encrypt)){I=TZ;break a}TZ=void 0}I=void 0}Z=I;if(!Z)return B.return(TyR(w,a,W));_.tq(B,3);return _.g(B,KxV(w,a,W,Z),5)}if(B.nextAddress!=3)return B.return(B.yieldResult);N=_.Pb(B);_.jJ(N);SYR=!0;return B.return(TyR(w,a,W))})};
var KxV=function(a,W,w,Z){var N,B;return _.P(function(I){switch(I.nextAddress){case 1:if(a.cryptoKey){I.jumpTo(2);break}return _.g(I,Z.importKey("raw",a.JSC$10485_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:a.cryptoKey=I.yieldResult;case 2:return N={name:"AES-CTR",counter:w,length:128},_.g(I,Z.encrypt(N,a.cryptoKey,W),4);case 4:return B=I.yieldResult,I.return(new Uint8Array(B))}})},TyR=function(a,W,w){a.encryptorPolyfill||(a.encryptorPolyfill=new kAT(a.JSC$10485_aesKey));
OGA(a.encryptorPolyfill,w);return a.encryptorPolyfill.encrypt(W)},p3H=function(a){this.JSC$10489_aesKey=a};
p3H.prototype.encrypt=function(a,W){this.encryptor||(this.encryptor=new kAT(this.JSC$10489_aesKey));OGA(this.encryptor,W);return this.encryptor.encrypt(a)};var r86={},cA9=dz("yt-idb-pref-storage",{objectStores:(r86.prefs={addedAtVersion:1},r86),shared:!1,upgrade:function(a,W){W(1)&&ME(FU(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.KB=function(a){this.token=a};
_.KB.getInstance=function(){return _.P(function(a){return a.return(new Promise(function(W){_.f3().then(function(w){w?(_.KB.instance||(_.KB.instance=new _.KB(w)),W(_.KB.instance)):W(void 0)})}))})};
_.KB.prototype.get=function(a){var W=this,w,Z,N;return _.P(function(B){if(B.nextAddress==1)return _.g(B,eXv(W.token),2);if(B.nextAddress!=3)return w=B.yieldResult,_.g(B,w.get("prefs",a),3);Z=B.yieldResult;if(!Z)return B.return();N=(0,_.mG)();return Z.expirationTimestampMs<=N?B.return():B.return(Z.value)})};
_.KB.prototype.set=function(a,W,w){w=w===void 0?31536E3:w;var Z=this,N,B,I;return _.P(function(X){if(X.nextAddress==1)return N=(0,_.mG)(),B={key:a,value:W,expirationTimestampMs:N+w*1E3},_.g(X,eXv(Z.token),2);I=X.yieldResult;return _.g(X,I.put("prefs",B),0)})};
_.KB.prototype.remove=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,eXv(W.token),2);w=Z.yieldResult;return _.g(Z,w.delete("prefs",a),0)})};var pB={},A8V=(pB.INVALID_ENCODER_VERSION="Invalid encoder version",pB.KEY_CREATION_FAILED="Failed to create encoder key",pB.UNKNOWN_DECODE_ERROR="Failed to decode PES data",pB.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",pB.WRONG_DATA_TYPE="Encoder cannot process the data type",pB),BJ=function(a,W){W=W===void 0?{}:W;_.Uw.call(this,A8V[a],Object.assign({},{name:"PESEncoderError",type:a},W));this.type=a;this.level="WARNING";Object.setPrototypeOf(this,BJ.prototype)};
_.c(BJ,_.Uw);var h7R=function(){},iG_=function(a,W,w){try{return a.encodeImpl(W,w)}catch(Z){JAS(Z,jwF)}},c8J=function(a,W,w){var Z;
return _.P(function(N){if(N.nextAddress==1)return _.tq(N,2),_.g(N,a.decodeAsyncImpl(W,w),4);if(N.nextAddress!=2)return N.return(N.yieldResult);Z=_.Pb(N);JAS(Z,Lj9);_.Xd(N)})};
h7R.prototype.decodeAsyncImpl=function(a,W){return Promise.resolve(this.decodeImpl(a,W))};var r9=function(a,W){this.aesEncryptor=a;this.aesEncryptorAsync=W};
_.c(r9,h7R);r9.prototype.encodeImpl=function(a,W){W=FjF(W);a=(new TextEncoder).encode(JSON.stringify(a));return this.aesEncryptor.encrypt(a,W)};
r9.prototype.decodeImpl=function(a,W){if(!(a instanceof Uint8Array))throw ni7(1);var w=new TextDecoder;W=FjF(W);a=this.aesEncryptor.encrypt(a,W);return JSON.parse(w.decode(a))};
r9.prototype.decodeAsyncImpl=function(a,W){var w=this,Z,N,B;return _.P(function(I){if(I.nextAddress==1){if(!(a instanceof Uint8Array))throw ni7(1);Z=new TextDecoder;N=FjF(W);return _.g(I,w.aesEncryptorAsync.encrypt(a,N),2)}B=I.yieldResult;return I.return(JSON.parse(Z.decode(B)))})};var MfH={accountLinkStatusEntity:tSR,booleanEntity:RaJ,buttonEntity:xJh,captionTrack:Fj_,channelHandle:p0h,chipEntity:T9R,commerceAcquisitionClientPayloadEntity:IhJ,commerceCartListEntity:PiE,contextNoteFeedEntityPayload:n2R,continuationTokenEntity:UKA,downloadQualityPickerEntity:tiJ,downloadsPageRefreshTokenEntity:BF6,downloadsPageViewConfigurationEntity:hxR,downloadStatusEntity:$KR,dismissState:KTy,sfvAudioItemCurrentlyPlayingEntity:vS6,emojiFountainDataEntity:RlL,emojiCustomizationSetEntity:Mw$,
fakeChannel:x5T,fakePlaylist:bkL,fakePlaylistEntryCollection:skR,fakeVideo:Cg6,fakeVideoDescription:GiH,featuredProductsEntity:DK_,flowStateEntity:W1L,iconBadgeEntity:X7J,interstitialInteractionStateEntity:A1E,likeButtonAnimationEntity:imT,liveChatPollStateEntity:J1l,liveViewerLeaderboardChatEntryPointStateEntity:mD$,liveViewerLeaderboardPointsEntity:VfL,liveReactionsDataEntity:qFy,logoEntity:K1V,macroMarkerEntity:c2V,mainDownloadsLibraryEntity:lth,mainDownloadsListEntity:Ity,mainPlaylistDownloadStateEntity:X1y,
mainPlaylistEntity:OmR,mainPlaylistVideoEntity:SVE,mainVideoDownloadStateEntity:vKh,mainVideoEntity:p1y,markersEngagementPanelSyncEntity:exA,markersVisibilityOverrideEntity:nKy,musicAlbumReleaseDetail:wnR,musicAlbumReleaseDownloadMetadataEntity:HmJ,musicAlbumRelease:Wjl,musicAlbumReleaseUserDetail:ZUT,musicArtistDetail:tfy,musicArtist:Nqe,musicArtistUserDetail:$DE,musicDownloadsLibraryEntity:y2h,musicLibraryEdit:BqT,musicLibraryStatusEntity:lil,musicPlaylist:Iih,musicPlaylistDownloadMetadataEntity:EKe,
musicShare:Xne,musicTrackDetail:gi6,musicTrackDownloadMetadataEntity:aiH,musicTrack:viT,musicTrackUserDetail:oiA,offlineOrchestrationActionWrapperEntity:Mfy,offlineVideoPolicy:RXT,offlineVideoStreams:q5E,offlineabilityEntity:gK6,orchestrationWebSamplingEntity:oKy,pageHeaderEntity:el_,pdpStateEntity:vHh,pinnedProductEntity:ftl,playbackData:Qwy,playerStateEntity:jrR,quantityIncrementerEntity:gH6,refresh:xDl,saveToPlaylistListEntity:JMR,selectedChipIndexEntityPayload:LvH,settingEntity:ZB_,stringEntity:ql$,
suggestedFeedbackChipStateEntity:J2R,transfer:bUV,trendingOfferEntity:dKh,videoDownloadContextEntity:swy,videoOverviewAsyncDataEntity:Qch,videoPlaybackPositionEntity:u4h,votingEntity:jXe,ytMainChannelEntity:r2A,youchatPendingResponseEntity:FvA,ytMainDownloadedVideoEntity:kV$,ytMainVideoEntity:A2T};var e7h,j4l,vJ,CTS,Gp8,FxE,R7V,MOy,J8_;e7h=function(a,W){this.JSC$10508_wrapped=a;this.JSC$10508_encoderRegistry=W;this.changedKeys={}};
j4l=function(a,W){a:{a=ntR(a.JSC$10508_encoderRegistry,W.version);try{var w=a.decodeImpl(W.data,W.key);break a}catch(Z){JAS(Z,Lj9)}w=void 0}return w};
_.Lxy=function(a,W,w){return a.JSC$10508_wrapped.objectStore("EntityStore").get(W).then(function(Z){if(Z){if(w&&Z.entityType!==w)throw Error("Af");return j4l(a,Z)}})};
vJ=function(a,W,w){return w?(w=w.map(function(Z){return _.Lxy(a,Z,W)}),Jw.all(w)):a.JSC$10508_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(W)).then(function(Z){return Z.map(function(N){return j4l(a,N)})})};
_.uS7=function(a,W,w){var Z=Y5v(W),N=ntR(a.JSC$10508_encoderRegistry,1),B=Object.assign({},W);return a.JSC$10508_wrapped.objectStore("EntityStore").get(Z).then(function(I){if(I){if(I.entityType!==w)throw Error("Af");B.entityMetadata||(I=j4l(a,I),B.entityMetadata=I.entityMetadata)}}).then(function(){var I={key:Z,
entityType:w,data:iG_(N,B,Z),version:1};return Jw.all([a.JSC$10508_wrapped.objectStore("EntityStore").put(I),J8_(a,B,w)])}).then(function(){FxE(a,Z,w);
return Z})};
CTS=function(a,W){var w=_.WJ(W).entityType;return Jw.all([a.JSC$10508_wrapped.objectStore("EntityStore").delete(W),MOy(a,W)]).then(function(){FxE(a,W,w)})};
Gp8=function(a,W,w,Z){var N=ntR(a.JSC$10508_encoderRegistry,1);return _.Lxy(a,W,Z).then(function(B){if(B){B=$DD(B,w);var I={key:W,entityType:Z,data:iG_(N,B,W),version:1};return Jw.all([a.JSC$10508_wrapped.objectStore("EntityStore").put(I),J8_(a,B,Z)])}}).then(function(){FxE(a,W,Z);
return W})};
FxE=function(a,W,w){var Z=a.changedKeys[w];Z||(Z=new Set,a.changedKeys[w]=Z);Z.add(W)};
R7V=function(a,W,w){var Z=Y5v(W);w=RXE(w);if(!w)return Jw.resolve([]);w=new w(W);a=a.JSC$10508_wrapped.objectStore("EntityAssociationStore");W=[];w=_.l(w.getAssociations());for(var N=w.next();!N.done;N=w.next())W.push(a.put({parentEntityKey:Z,childEntityKey:N.value}));return Jw.all(W).then(function(B){return B.map(function(I){return I[1]})})};
MOy=function(a,W){return a.JSC$10508_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(W))};
J8_=function(a,W,w){var Z=Y5v(W);return MOy(a,Z).then(function(){return R7V(a,W,w)})};var qYJ=function(){};
_.c(qYJ,h7R);qYJ.prototype.encodeImpl=function(a){return a};
qYJ.prototype.decodeImpl=function(a){if(a instanceof Uint8Array)throw ni7(0);return a};var xDv=function(){this.cacheMap={};this.cacheMap[0]=new qYJ;if(!_.r("aes_pes_encoder_killswitch")){var a=this.cacheMap;try{var W=_.o0();var w=FjF(W);var Z=new r9(new p3H(w),new YYT(w))}catch(N){throw a=N instanceof Error?new BJ("KEY_CREATION_FAILED",{originalMessage:N.message}):new BJ("KEY_CREATION_FAILED"),_.eJ(a),a;}a[1]=Z}},ntR=function(a,W){W=W===void 0?0:W;
a=a.cacheMap[W];if(!a)throw W=new BJ("INVALID_ENCODER_VERSION",{encoderVersion:W}),_.eJ(W),W;return a};var Is=function(a,W){_.OW.call(this);this.token=a;this.JSC$10522_encoderRegistry=W;this.observers=[];a=new _.NH.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.o0());a.onmessage=this.handleMessage.bind(this);this.channel=a};
_.c(Is,_.OW);_.Xb=function(a,W,w){var Z,N,B,I;return _.P(function(X){if(X.nextAddress==1)return _.g(X,iU7(a.token),2);if(X.nextAddress!=3)return Z=X.yieldResult,_.g(X,_.bd(Z,["EntityStore","EntityAssociationStore"],W,function(v){N=new e7h(v,a.JSC$10522_encoderRegistry);return w(N)}),3);
B=X.yieldResult;N&&(I=N.changedKeys,Object.keys(I).length>0&&(a.channel.postMessage(I),Q4T(a,I)));return X.return(B)})};
Is.prototype.observe=function(a){var W=this;this.observers.push(a);return function(){var w=W.observers.indexOf(a);w>=0&&W.observers.splice(w,1)}};
var XQe=function(a){var W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,_.Xb(a,{mode:"readonly",enableRetries:!0},function(Z){return Z.JSC$10508_wrapped.objectStore("EntityStore").getAll()}),2);
W=w.yieldResult;return w.return(Promise.all(W.filter(function(Z){return!!Z}).map(function(Z){var N,B;
return _.P(function(I){if(I.nextAddress==1){N=Z.key;B=Z.entityType;var X=c8J(ntR(a.JSC$10522_encoderRegistry,Z.version),Z.data,Z.key);return _.g(I,X,2)}return I.return({key:N,entityType:B,data:I.yieldResult})})})))})};
Is.prototype.handleMessage=function(a){Q4T(this,a.data)};
var Q4T=function(a,W){a=_.l(a.observers);for(var w=a.next();!w.done;w=a.next())w=w.value,w(W)};
Is.prototype.disposeInternal=function(){this.channel.close()};
var q5D;var Ac,bGe,Ozm,Ijm;Ac={};_.xQR=(Ac.mainVideoEntity="mainVideoEntityActionMetadata",Ac.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Ac.musicTrack="musicTrackEntityActionMetadata",Ac.musicPlaylist="musicPlaylistEntityActionMetadata",Ac);bGe=new _.yq("DOWNLOADS_ENTITY_TYPE_MAP");Ozm=_.Nn("","downloadsPageViewConfigurationEntity");Ijm=_.Nn("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.T78=_.Nn("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Nn("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Nn("SMART_DOWNLOADS_ENABLED","settingEntity");_.Nn("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Vfm=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var wTe=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var B78={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var hc,twe,FVV,vkS;hc=window;_.Lx=hc.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.UJH=hc.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.xp;twe=hc.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Ay;FVV=hc.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Jt_;_.s46=hc.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.z5R;vkS=hc.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Eoy;Rs({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 YF9=$Jm(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(a){return a}}}),ebE=$Jm(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(a){return a}}}),PMF=new Map;var KTH=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],kZF;var uCJ=function(a){return _.E_({type:"SET_EPHEMERAL_ACTION",payload:a})};var Crh={ephemeralAction:null};var GAJ={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var GZe={sharedUi:function(a,W){a=a===void 0?GAJ:a;switch(W.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},a,{animatedThumbnailEnabled:W.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},a,{inlinePreviewEnabled:W.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},a,{currentPageType:W.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},a,{currentPageSubType:W.payload});default:return a}},
a11y:PG({ephemeralAction:function(a,W){a=a===void 0?Crh.ephemeralAction:a;switch(W.type){case "SET_EPHEMERAL_ACTION":return W.payload;default:return a}}})};var qFH=PG({isLeaderTab:function(a,W){a=a===void 0?!0:a;switch(W.type){case "SET_IS_LEADER_TAB":var w,Z;return(Z=W==null?void 0:(w=W.payload)==null?void 0:w.isLeaderTab)!=null?Z:a;default:return a}}});var DQH=function(a){return _.E_({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:a}})};var CMe=PG({isDesktopSmallWidth:function(a,W){switch(W.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return W.payload.isDesktopSmallWidth;default:return a===void 0?!1:a}},
isShortsActive:function(a,W){switch(W.type){case "SET_IS_SHORTS_ACTIVE":return W.payload.isShortsActive;default:return a===void 0?!1:a}},
isWatchWhileMode:function(a,W){switch(W.type){case "SET_IS_WATCH_WHILE_MODE":return W.payload.isWatchWhileMode;default:return a===void 0?!1:a}},
playerState:function(a,W){switch(W.type){case "SET_PLAYER_STATE":return W.payload.playerState;default:return a===void 0?-1:a}},
isFullscreen:function(a,W){switch(W.type){case "SET_IS_FULLSCREEN":return W.payload.isFullscreen;default:return a===void 0?!1:a}},
isSmallScreenSqueezeback:function(a,W){switch(W.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return W.payload.isSmallScreenSqueezeback;default:return a===void 0?!1:a}},
isShortsPipActive:function(a,W){switch(W.type){case "SET_IS_SHORTS_PIP_ACTIVE":return W.payload.isShortsPipActive;default:return a===void 0?!1:a}},
isPlaybackStarted:function(a,W){switch(W.type){case "SET_IS_PLAYBACK_STARTED":return W.payload.isPlaybackStarted;default:return a===void 0?!1:a}}});var ccv={playlistId:"",inviteLinkURL:""};var fqR={};var Rlm=PG({continuationCommand:function(a,W){a=a===void 0?fqR:a;switch(W.type){case "SET_CONTINUATION_COMMAND":return W.payload.continuationCommand;default:return a}}});var fJ9=function(){return function(a){return function(W){var w=a(W);_.aV(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[W],!0);return w}}};var dQl,H1C;dQl=new _.wi;_.H$=new _.yq("WATCH_PLAYER_PROMISE_TOKEN");_.mQJ=new _.wi;_.VOT=new _.yq("SHORTS_PLAYER_PROMISE_TOKEN");H1C=new _.yq("");var dJ9=function(){return function(a){return function(W){W.type==="ENTITY_LOADED"&&_.K().resolve(_.H$).then(function(w){var Z;(Z=w.dispatchReduxAction)==null||Z.call(w,W)});
return a(W)}}};var nVE={currentFormId:"",commandsMap:{}};var z7V={};var QXU=PG({additionalContext:function(a,W){switch(W.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var w;return(w=W.payload)!=null?w:"";default:return a===void 0?"":a}},
impersonatedChannelUrl:function(a,W){switch(W.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var w;return(w=W.payload)!=null?w:"";default:return a===void 0?"":a}},
selectedVideoIds:function(a,W){a=a===void 0?z7V:a;switch(W.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var w={};return Object.assign({},a,(w[W.payload]=!0,w));case "VIDEO_UNSELECTED":return W=W.payload,a=Object.assign({},a),delete a[W],a;default:return a}}});var xJ8=PG({parentClickTrackingParams:function(a,W){switch(W.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return W.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return a===void 0?"":a}}});var HG6=function(a){return _.E_({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:a})};var y8R={};var bBe=PG({stepStates:function(a,W){a=a===void 0?y8R:a;switch(W.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var w=a,Z=W.payload,N,B,I;a={};W={selectionStates:Object.assign({},(I=(N=w[Z.stepId])==null?void 0:N.selectionStates)!=null?I:{},(a[Z.token]={isSelected:Z.isSelected},a)),userQuery:(B=w[Z.stepId])==null?void 0:B.userQuery};N={};return Object.assign({},w,(N[Z.stepId]=W,N));case "TALK_TO_RECS_UPDATE_USER_QUERY":return N=a,B=W.payload,I={selectionStates:Object.assign({},
(Z=(w=N[B.stepId])==null?void 0:w.selectionStates)!=null?Z:{}),userQuery:{userQuery:B.userQuery,token:B.userQueryToken}},w={},Object.assign({},N,(w[B.stepId]=I,w));default:return a}}});var Et_,aUH;Et_=function(a){return _.E_({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:a})};
aUH=function(a){return _.E_({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:a})};
_.ja=function(a){return _.E_({type:"SET_CURRENT_PAGE_TYPE",payload:a})};
_.WRA=function(a){return _.E_({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:a})};var LT8={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"};_.wRH=function(a){return _.E_({type:"SET_PLAYER_STATE",payload:{playerState:a}})};var ZdT=[],N8l={width:0,height:0};var sXS=PG({isTheaterMode:function(a,W){a=a===void 0?_.r("kevlar_disable_theater_mode_persistence")?!1:_.JS("START_IN_THEATER_MODE"):a;switch(W.type){case "SET_IS_THEATER_MODE":return W.payload.isTheaterMode;default:return a}},
isWatchActive:function(a,W){switch(W.type){case "SET_IS_WATCH_ACTIVE":return W.payload.isWatchActive;default:return a===void 0?!1:a}},
isLearningJourneyActive:function(a,W){switch(W.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return W.payload.isLearningJourneyActive;default:return a===void 0?!1:a}},
isWatchFullscreen:function(a,W){switch(W.type){case "SET_IS_WATCH_FULLSCREEN":return W.payload.isWatchFullscreen;default:return a===void 0?!1:a}},
isWatchNarrowWidth:function(a,W){switch(W.type){case "SET_IS_WATCH_NARROW_WIDTH":return W.payload.isWatchNarrowWidth;default:return a===void 0?!1:a}},
isWatchRetroMode:function(a,W){switch(W.type){case "SET_IS_WATCH_RETRO_MODE":return W.payload.isWatchRetroMode;default:return a===void 0?!1:a}},
isLiveChatCollapsed:function(a,W){switch(W.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return W.payload.isLiveChatCollapsed;default:return a===void 0?!1:a}},
openEngagementPanels:function(a,W){a=a===void 0?ZdT:a;var w=[].concat(_.K8(a));switch(W.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return w.push(W.payload.panelToAdd),w;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return w.splice(w.indexOf(W.payload.panelToRemove),1),w;default:return a}},
playerState:function(a,W){switch(W.type){case "SET_PLAYER_STATE":return W.payload.playerState;default:return a===void 0?-1:a}},
watchScrollTop:function(a,W){switch(W.type){case "SET_WATCH_SCROLL_TOP":return W.payload.watchScrollTop;default:return a===void 0?0:a}},
watchWindowSize:function(a,W){a=a===void 0?N8l:a;switch(W.type){case "SET_WATCH_WINDOW_SIZE":return W.payload.watchWindowSize;default:return a}}});var td_={feedbackTokens:[]};var u48=PG({surveyFeedbackData:function(a,W){a=a===void 0?td_:a;switch(W.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return W.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},a,W.payload);default:return a}}});var FT7={};var Vwe=void 0;_.r("web_enable_redux_store_on_demand")||(Vwe=mJ8());var $l_=function(a,W,w){var Z=this;this.listId=a;this.JSC$10656_updateCallback=W;this.isOfflineVideoCallback=w;_.Cx().subscribe(function(){Z.handleUpdate()})};
$l_.prototype.getPlaylistData=function(){var a=_.Cx().getState().entities;if(this.listId&&this.listId!=="PPSV"){var W=zue(a,this.listId,!0),w=_.Nn(this.listId,"mainPlaylistEntity"),Z,N;a=a==null?void 0:(Z=a.mainPlaylistEntity)==null?void 0:(N=Z[w])==null?void 0:N.title;return zlE(W,a,this.listId)}W=_.Zlm(A4e(a));a=_.Zlm(_.TC(a));return zlE(W.concat(a))};
$l_.prototype.getPlaylistId=function(){return this.listId};
$l_.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10656_updateCallback(this.listId,this.getPlaylistData(),{})};var iM=function(a,W,w,Z){Z=Z===void 0?[]:Z;this.JSC$10659_playlistNetworkManager=a;this.listId=W;this.JSC$10659_updateCallback=w;this.videoIds=Z;this.pendingUpdates=[];this.currentIndex=0};
iM.prototype.JSC$10659_setCurrentIndex=function(a){this.currentIndex=a};
iM.prototype.setListId=function(a){this.listId=a};
var B8y=function(a,W){a.currentCreateRequest&&a.currentCreateRequest.cancel(W);a.currentUpdateRequest&&a.currentUpdateRequest.cancel(W);a.currentRefreshRequest&&a.currentRefreshRequest.cancel(W)};
iM.prototype.delete=function(){B8y(this,"PROXY DELETED")};
iM.prototype.addVideos=function(a,W,w){var Z=this;w!==void 0?this.videoIds.splice.apply(this.videoIds,[w,0].concat(_.K8(a))):this.videoIds.push.apply(this.videoIds,_.K8(a));this.listId||this.currentCreateRequest?(a.forEach(function(N,B){N={addedVideoId:N,action:"ACTION_ADD_VIDEO"};w&&(N.addedVideoPosition=w+B);Z.pendingUpdates.push(N)}),cE(this)):lUT(this,W.onCreateListCommand)};
var IUR=function(a,W,w,Z,N){rme(a.videoIds,W,w);W>a.currentIndex&&w<=a.currentIndex?a.JSC$10659_setCurrentIndex(a.currentIndex+1):W===a.currentIndex?a.JSC$10659_setCurrentIndex(w):W<a.currentIndex&&w>=a.currentIndex&&a.JSC$10659_setCurrentIndex(a.currentIndex-1);a.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:Z,movedSetVideoIdPredecessor:N});cE(a)},lUT=function(a,W){B8y(a,"OBSOLETE");
a.currentCreateRequest=PCR(a.JSC$10659_playlistNetworkManager,W,a.videoIds);_.Ad(a.currentCreateRequest,function(){a.currentCreateRequest=void 0}).then(function(w){a.setListId(w.playlistId);
a.pendingUpdates.length>0?cE(a):XRJ(a)})},cE=function(a){if(a.pendingUpdates.length!==0&&(a.currentRefreshRequest&&a.currentRefreshRequest.cancel("OBSOLETE"),!a.currentUpdateRequest&&!a.currentCreateRequest)){var W=a.pendingUpdates.splice(0,a.pendingUpdates.length);
a.currentUpdateRequest=a.JSC$10659_playlistNetworkManager.updatePlaylist(a.listId,W);_.Ad(a.currentUpdateRequest,function(){a.currentUpdateRequest=void 0}).then(function(){a.pendingUpdates.length>0?cE(a):XRJ(a)}).thenCatch(function(){a.pendingUpdates.unshift.apply(a.pendingUpdates,_.K8(W))})}},XRJ=function(a){a.currentRefreshRequest=_.vlT(a.JSC$10659_playlistNetworkManager,a.listId,a.currentIndex,a.videoIds[a.currentIndex]);
_.Ad(a.currentRefreshRequest,function(){a.currentRefreshRequest=void 0}).then(function(W){a.JSC$10659_updateCallback(W.playlistId,W.playlistPanelRenderer,W.autoplayRenderer)})};
iM.prototype.size=function(){return this.videoIds.length};var gl$=function(a,W,w,Z){Z=Z===void 0?[]:Z;iM.call(this,a,W,w,Z);this.JSC$10659_playlistNetworkManager=a;this.listId=W;this.JSC$10659_updateCallback=w;this.videoIds=Z};
_.c(gl$,iM);_.ew=function(a,W,w,Z,N,B,I){N=N===void 0?[]:N;I=I===void 0?td:I;iM.call(this,a,W,w,N);this.JSC$10659_playlistNetworkManager=a;this.listId=W;this.JSC$10659_updateCallback=w;this.onAuthChange=Z;this.videoIds=N;this.storage=B;this.cookieReader=I;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.mY(_.hF,this.checkLoggedInStatusChange.bind(this),1E3)};
_.c(_.ew,iM);_.t=_.ew.prototype;_.t.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.mY(_.hF,this.checkLoggedInStatusChange.bind(this),1E3)};
_.t.JSC$10659_setCurrentIndex=function(a){iM.prototype.JSC$10659_setCurrentIndex.call(this,a);this.store()};
_.t.delete=function(){_.hF.cancelJob(this.queueSapisIdJob);iM.prototype.delete.call(this)};
_.t.setListId=function(a){iM.prototype.setListId.call(this,a);this.store()};
_.t.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var olR=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],knT=["playerResponse","videoDetails"],Ule=["response","currentVideoEndpoint","watchEndpoint","videoId"],OdE=["response","currentVideoEndpoint","watchEndpoint","playlistId"],SuA=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Yu$=["response","contents","twoColumnWatchNextResults","playlist","playlist"],T8$=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
KRe=["response","contents","twoColumnWatchNextResults"];var nB={},W49=(nB.WEB_UNPLUGGED="^unplugged/",nB.WEB_UNPLUGGED_ONBOARDING="^unplugged/",nB.WEB_UNPLUGGED_OPS="^unplugged/",nB.WEB_UNPLUGGED_PUBLIC="^unplugged/",nB.WEB_CREATOR="^creator/",nB.WEB_KIDS="^kids/",nB.WEB_EXPERIMENTS="^experiments/",nB.WEB_MUSIC="^music/",nB.WEB_REMIX="^music/",nB.WEB_MUSIC_EMBEDDED_PLAYER="^music/",nB.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",nB);var j7F,PCR;j7F=function(a,W){this.networkManager=a;this.innertubeTransportService=W};
PCR=function(a,W,w){if(!_.A(W,_.Ri))return _.od(Error("Ef"));_.A(W,_.Ri).videoIds=w;w={create_playlist_title:_.P_("QUEUE",void 0,"Queue")};return EV8(_.MX(a.innertubeTransportService,W,w),HBS)};
_.vlT=function(a,W,w,Z){W={videoId:Z,playlistId:W,playlistIndex:w};w=_.GC(reJ);return EV8(_.jw(a.innertubeTransportService,W,w),ahI)};
j7F.prototype.updatePlaylist=function(a,W){return EV8(_.MX(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:a,actions:W}}),ycI)};var pR6=function(a){this.storage=a},rVR;
pR6.prototype.store=function(a,W){W=W===void 0?0:W;if(this.storage&&a.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",a),this.storage.set("TLPQindex",String(W)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(w){}};
pR6.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
pR6.prototype.getPlaylistId=function(){if(!this.storage)return null;var a=null;try{a=this.storage.get("TLPQplaylist")}catch(W){}return a};var t7U=["navigationEndpoint","watchEndpoint","videoId"],N4x=["nextButtonVideo","watchEndpoint","videoId"];_.U6=new _.yq("NETWORK_TOKEN");_.Gw=new _.yq("PAGE_TOKEN");_.LB=new _.yq("PLAYLIST_TOKEN");var AVh;AVh=new _.yq("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.O6=new _.yq("INNERTUBE_TRANSPORT_TOKEN");var hCA,Jc,cVT,eCV,jyh,LRR;hCA=new Set(["ci","cr","carml"]);Jc=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10706_parkedJobs=new Map;this.parkedProcessors=new Map};
_.F4=function(){Jc.instance||(Jc.instance=new Jc);return Jc.instance};
Jc.prototype.onAny=function(a){return _.id6(this,a,2)};
Jc.prototype.parkOrScheduleJob=function(a,W,w,Z,N){_.MJ(this,w)?_.n4().addJob(a,W,Z):(N&&(a=cVT(a),eCV(this,a,W,w,N)),N=this.JSC$10706_parkedJobs.get(w),N||(this.JSC$10706_parkedJobs.set(w,[]),N=this.JSC$10706_parkedJobs.get(w)),N.push({job:a,priority:W,delay:Z}))};
Jc.prototype.addListener=function(a,W,w){w&&(W=cVT(W),eCV(this,W,0,a,w));w=this.parkedProcessors.get(a);w||(this.parkedProcessors.set(a,[]),w=this.parkedProcessors.get(a));w.push(W)};
Jc.prototype.processSignal=function(a){if(!_.MJ(this,a)){this.inProgressSignals.add(a);var W=this.JSC$10706_parkedJobs.get(a);if(W){W=_.l(W);for(var w=W.next();!w.done;w=W.next())w=w.value,_.n4().addJob(w.job,w.priority,w.delay);this.JSC$10706_parkedJobs.delete(a)}if(W=this.parkedProcessors.get(a)){W=_.l(W);for(w=W.next();!w.done;w=W.next())w=w.value,w();this.parkedProcessors.delete(a)}this.signals.push(a);this.inProgressSignals.delete(a)}};
_.MJ=function(a,W){return hCA.has(W)||_.JS("IS_HOMEPAGE_COLD")||_.JS("IS_RESULTS_PAGE_COLD")||_.JS("IS_WATCH_PAGE_COLD")?a.signals.indexOf(W)>=0:!0};
cVT=function(a){var W=!1;return function(){W||(W=!0,a())}};
eCV=function(a,W,w,Z,N){if(nlE.has(Z))_.n4().addJob(W,w,N);else{var B=a.compoundSignals.get(Z);B&&_.n4().addJob(function(){_.MJ(a,Z)||(B.isTimeoutConditionSatisfied?_.n4().addJob(W,w):B.timeoutConditionObservers.push(function(){_.n4().addJob(W,w)}))},w,N)}};
_.id6=function(a,W,w){if(W.length>1){var Z=[],N=Object.create(null);W=_.l(W);for(var B=W.next();!B.done;B=W.next())B=B.value,N[B]||(Z.push(B),N[B]=!0);W=Z}if(W.length===1)return W[0];B=W;Z="";N=w===2?"|":"&";B.sort();B=_.l(B);for(var I=B.next();!I.done;I=B.next())Z+=I.value+N;if(!a.compoundSignals.get(Z)){N=0;B=[];I=_.l(W);for(var X=I.next();!X.done;X=I.next())X=X.value,N++,_.MJ(a,X)||B.push(X);(w=w===2)&&N>B.length||!w&&!B.length?a.signals.push(Z):jyh(a,Z,w,W,B)}return Z};
jyh=function(a,W,w,Z,N){var B=N.length,I=function(){w||--B===0?a.processSignal(W):LRR(a,W)};
N=_.l(N);for(var X=N.next();!X.done;X=N.next())a.addListener(X.value,I);a.compoundSignals.set(W,{signals:Z,isOnAny:w,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});LRR(a,W)};
LRR=function(a,W){if(!_.MJ(a,W)){var w=a.compoundSignals.get(W);if(w&&!w.isTimeoutConditionSatisfied){for(var Z=!1,N=0,B=0,I=_.l(w.signals),X=I.next();!X.done;X=I.next()){var v=X.value;X=!_.MJ(a,v);nlE.has(v)?Z=!0:(v=a.compoundSignals.get(v))?X&&!v.isTimeoutConditionSatisfied&&(B++,w.isInitialized||v.timeoutConditionObservers.push(function(){LRR(a,W)})):X&&N++}w.isInitialized=!0;
w.isOnAny?Z&&(w.isTimeoutConditionSatisfied=!0):N===0&&B===0&&(w.isTimeoutConditionSatisfied=!0);if(w.isTimeoutConditionSatisfied)for(w=_.l(w.timeoutConditionObservers),Z=w.next();!Z.done;Z=w.next())Z=Z.value,Z()}}};
Jc.prototype.processSignal=Jc.prototype.processSignal;Jc.prototype.parkOrScheduleJob=Jc.prototype.parkOrScheduleJob;Jc.prototype.onAny=Jc.prototype.onAny;_.Dp("ytsignals.getInstance",_.F4);Jc.prototype.onAny=Jc.prototype.onAny;Jc.prototype.parkOrScheduleJob=Jc.prototype.parkOrScheduleJob;Jc.prototype.processSignal=Jc.prototype.processSignal;var nlE=new Set(["eop","eocs","dl","pcl"]);_.bV=new _.yq("MINIPLAYER_SERVICE");var RX,JVR,FRy;RX=function(a,W,w){var Z=_.sn.getInstance();if(!rVR){var N=new pGD;var B=void 0,I=_.LF("ID_TOKEN");I&&N.isAvailable()&&(B=new T4(N,"yt-queue"+I));rVR=new pR6(B)}N=rVR;B=_.F4();this.JSC$10713_actionRouter=Z;this.pageManager=a;this.playlistManager=W;this.JSC$10713_playlistNetworkManager=w;this.storage=N;this.signals=B;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.qJ=function(){if(!JVR){var a=_.K(),W=a.resolve(_.Vv(_.Gw)),w=a.resolve(_.Vv(_.U6)),Z=a.resolve(_.Vv(_.LB));a=a.resolve(_.O6);JVR=new RX(W,Z,new j7F(w,a))}return JVR};
FRy=function(a,W,w){if(w){var Z;if(((Z=a.responsePlaylistData)==null?void 0:Z.playlistId)!==w)return}a.responsePlaylistData&&(w=X7U(W,a.responsePlaylistData),a.responsePlaylistData=(0,_.T5.unsafeClone)(a.responsePlaylistData),gH7(a.responsePlaylistData,w));w=a.temporaryItems.findIndex(function(N){return N.videoId===W});
w>-1&&a.temporaryItems.splice(w,1);_.QI(a,_.xV(a,a.response?a.response.autoplayRenderer:void 0))};
_.Md_=function(a,W){if(a.responsePlaylistData){var w=vH8(W,a.responsePlaylistData);gH7(a.responsePlaylistData,w);if(a.queueProxy){var Z=a.queueProxy;w<0||(Z.videoIds.splice(w,1),w<Z.currentIndex&&Z.JSC$10659_setCurrentIndex(Z.currentIndex-1),Z.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:W}),cE(Z))}}_.QI(a,_.xV(a,a.response?a.response.autoplayRenderer:void 0))};
RX.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.QI(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
RX.prototype.setPlaylistData=function(a,W,w){this.temporaryItems=[];this.listId=a;this.responsePlaylistData=W;_.QI(this,_.xV(this,w))};
var RCV=function(a){return(a==null?0:a.playlistId)?a.playlistId:"PPSV"},qu_=function(a){return a&&a.playlistId?a.playlistId==="PPSV"?!0:m7C(_.Cx().getState().entities,a.playlistId):!1};
RX.prototype.isPlayingOfflineVideo=function(){return this.response?qu_(this.response):!1};
RX.prototype.closeMiniplayer=function(a){var W=this.queueProxy&&this.queueProxy.size()<=1,w=_.K().resolve(_.bV);if(!this.queueProxy||W)this.queueProxy&&this.clearQueue(),w.close(!0);else{w.pipController.getWindow()&&window.focus();W=this.responsePlaylistData;var Z=this.temporaryItems.length+(W&&W.contents?W.contents.length:0);W=_.P_("QUEUE_CLEARED_UNPLURALIZED")||_.Xz("QUEUE_CLEARED",Z);W=_.fx(W);w=_.P_("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");Z=_.P_("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Xz("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",Z);var N=_.P_("MINIPLAYER_CLOSE",void 0,"Close"),B=_.P_("CANCEL",void 0,"Cancel");_.J2(this.JSC$10713_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.b8(w),dialogMessages:[_.b8(Z)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.b8(N),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
W]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.b8(B)}}}}}}],a)}};
_.xV=function(a,W){var w={},Z=a.response;w.autoplayRenderer=W;if(!a.responsePlaylistData&&!a.temporaryItems.length)return!Z||!Z.hasRelatedVideoData&&_.r("kevlar_prefetch_data_augments_network_data")||(w.playerData={rvs:Z.relatedVideoArgs,endScreenRenderer:Z.endScreenRenderer}),w;w.playerData={};if(a.index===void 0)return _.eJ(Error("Gf")),w;w.panel=a.responsePlaylistData?(0,_.T5.unsafeClone)(a.responsePlaylistData):{titleText:_.b8(_.P_("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
W=w.panel;if(W.contents)for(var N=_.l(a.temporaryItems),B=N.next();!B.done;B=N.next())W.contents.push({playlistPanelVideoRenderer:B.value});a.queueProxy&&Z&&Z.playingVideo&&Z.playingVideoId&&!PiD(Z.playingVideoId,w.panel)&&(W=Z.playingVideo,N=w.panel,B=a.index,N.contents&&N.contents.splice(B===void 0?0:B,0,{playlistPanelVideoRenderer:W}));Z&&Z.playingVideoId&&(W=a.index,N=w.panel,W=!N.contents||W>=N.contents.length?void 0:N.contents[W].playlistPanelVideoRenderer,W&&W.videoId===Z.playingVideoId||(W=
X7U(Z.playingVideoId,w.panel),a.index=W!==-1?W:a.index?a.index-1:0));W=IhU(a.index+1,w.panel);N=void 0;a.index>0&&(N=IhU(a.index-1,w.panel));if(N||W)w.autoplayRenderer=$Rm(W,N,w.autoplayRenderer);!W&&(Z==null?0:Z.relatedVideoArgs)&&(w.playerData.rvs=Z.relatedVideoArgs);Z=Z?Z.playlistIndexOffset:0;a.queueProxy?URv(w.panel,a.index,Z,lhE,!0,!0,!0):URv(w.panel,a.index,Z);w.playerData.playlistPanelRenderer=w.panel;return w};
RX.prototype.openToast=function(a){_.K().resolve(_.bV).openToast(a,_.P_("ADDED_TO_QUEUE",void 0,"Added to queue"))};
RX.prototype.isMiniplayerActive=function(){return _.K().resolve(_.bV).isMiniplayerActive()};
_.QI=function(a,W){a.playlistManager.setAutoplayRenderer(W.autoplayRenderer||null);a.playlistManager.setPlaylistData(W.panel||null);W.playerData&&a.playlistManager.setPlayerPlaybackControlData(W.playerData)};var SAD="#";var QyV={},xlH={},bd_={},syT={},u06={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:(QyV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",QyV),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:(xlH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",xlH),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:(bd_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",bd_),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:(syT.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",syT),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 Wz8=[{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:u06},{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:u06}}];_.Wu=[[["dXdycWs1YW14a2luZCNtM2M=","bTIzMW12YWx1ZSNvbWtiNzJz"],"czFsczNBRF9QTEFDRU1FTlRfS0lORF9TVEFSVCNmeXV2eHYy"]];_.a1=["YWxsYmFja3MjYnI4eXhlNWU2ODIxZ2xvYmFsQw==","d3FmcDlpdTF6YTlvbkFibm9ybWFsaXR5RGV0ZWN0ZWQj","cCM2cWszNHliMDZrNDNvbkFkU2tp","I3NqcXl6MXo2OWl5eHJhd19wbGF5ZXJfcmVzcG9uc2U=","bG90cyNscmdobWhyMTV0cDFhZFM="];_.bM="YWxsYmFja3MjYnI4eXhlNWU2ODIxZ2xvYmFsQw== d3FmcDlpdTF6YTlvbkFibm9ybWFsaXR5RGV0ZWN0ZWQj cCM2cWszNHliMDZrNDNvbkFkU2tp I3NqcXl6MXo2OWl5eHJhd19wbGF5ZXJfcmVzcG9uc2U= bHRpcGxlX3NraXBzX2tzI3BzZmR0aXhndWV0ZndlYl9wbGF5bGlzdF9xdWV1ZV9tdQ== ZiNlY2xidGN6NHZuMTlhYl9zYV9l bG90cyNscmdobWhyMTV0cDFhZFM=".split(" ");var DRv=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var sF;sF=function(a,W,w){this.dPU=a;this.isAsync=W;this.nau=w};
_.vZe=[new sF("b.f_",!1,0),new sF("j.s_",!1,2),new sF("r.s_",!1,4),new sF("e.h_",!1,6),new sF("i.s_",!0,8),new sF("s.t_",!1,10),new sF("p.h_",!1,12),new sF("s.i_",!1,14),new sF("f.i_",!1,16),new sF("a.b_",!1,18),new sF("a.o_",!1),new sF("g.o_",!1,22),new sF("p.i_",!1,24),new sF("p.m_",!1),new sF("n.k_",!0,20),new sF("i.f_",!1),new sF("a.s_",!0),new sF("m.c_",!1),new sF("n.h_",!1,26),new sF("o.p_",!1),new sF("m.p_",!0,28),new sF("o.a_",!1),new sF("d.p_",!1)].reduce(function(a,W){a[W.dPU]=W;return a},
{});var CCH=function(){};
CCH.prototype.flush=function(a,W){a=a===void 0?[]:a;W=W===void 0?!1:W;if(_.r("enable_client_streamz_web")){a=_.l(a);for(var w=a.next();!w.done;w=a.next())w=$_H(w.value),this.rootSpec&&_.ZP(w,2,this.rootSpec),w={serializedIncrementBatch:_.EI(w.JSC$7514_serializeBinary())},_.ia("streamzIncremented",w,{sendIsolatedPayload:W})}};
var rbH=function(){};
_.c(rbH,CCH);var GnR=function(a){var W=new EbR;var w=new zRR;w=_.Xu(w,1,"botguard");a=_.Xu(w,2,a);this.rootSpec=_.N_(W,1,aPL,a)};
_.c(GnR,CCH);var HJ,DlV=new Map;var V7U,hKE,M77,eKe,L4v,Ci8,HNv,scF;V7U=2;hKE=2;M77=2;eKe=2;L4v=2;Ci8=2;HNv=2;scF=new wMJ;var dll,mly,Vd6;dll=function(){this.ongoingFlowNonces=new Map};
_.t7=function(){mly||(mly=new dll);return mly};
_.Z3=function(a,W,w){return{eventType:{flowEventNamespace:a,flowEventType:W},metadata:w,statusCode:void 0,csn:void 0,can:void 0}};
_.oZx=function(a,W){var w=_.t7(),Z=Vd6(w,W,!0);_.Nj(w,a,W,Z)};
_.Nj=function(a,W,w,Z){a={flowNonce:Z||Vd6(a,w),flowType:w,flowEventType:W.eventType};W.metadata&&(a.flowMetadata=W.metadata);W.statusCode!==void 0&&(a.flowEventStatus=W.statusCode);W.csn&&(a.csn=W.csn);W.can&&(a.can=W.can);_.ia("flowEvent",a,void 0)};
Vd6=function(a,W,w){w=w===void 0?!1:w;var Z=a.ongoingFlowNonces.get(W);if(!Z||w)Z=hs(16),a.ongoingFlowNonces.set(W,Z);return Z};_.zCR=new WHJ;var Sqe={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_JOURNEY_WATCH:"learning_journey_watch"};var uM=function(a,W,w,Z,N,B,I){w=w===void 0?!1:w;Z=Z===void 0?!1:Z;B=B===void 0?_.qJ():B;this.hasRun=!1;this.w87=a;this.cma=W;this.xmf=w;this.fromHistory=Z;this.previousVideoId=N;this.roV=B;this.tempData=I;this.jYD=new _.ZrJ};
_.c(uM,VY);uM.prototype.validate=function(a){return!(!a.data.playerResponse||a.data.page!=="watch"&&a.data.page!=="learning_journey_watch"&&a.data.page!=="shorts"||this.hasRun)};
uM.prototype.handle=function(a){var W=this,w=_.A(a.endpoint,_.u6),Z=_.A(a.endpoint,_.gi);if(_.r("kevlar_continue_playback_without_player_response")&&(w==null?0:w.videoId)&&this.previousVideoId&&(w==null?void 0:w.videoId)===this.previousVideoId&&(w==null?0:w.continuePlayback)&&!this.fromHistory)this.w87.resolve();else{var N={};w?N.watch_endpoint=w:Z&&(N.watch_endpoint=Z,Z.endTimeSeconds&&(N.end=Z.endTimeSeconds));a.data.page==="watch"?(a.data.filler||this.xmf||(_.hk("cfg"),_.sn.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(N,HdA(this,a.endpoint)),_.r("enable_masthead_quartile_ping_fix")&&Object.assign(N,yV6(this)),w=!_.r("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(N,w),a.data.forceExternalPlaylist&&(N.external_list=!0)):a.data.page==="shorts"?_.sn.getInstance().triggerAction("yt-start-loading-shorts"):a.data.page==="learning_journey_watch"&&_.sn.getInstance().triggerAction("yt-start-loading-learning-journey");if(w=this.cma()){try{w.loadVideoWithPlayerResponse(a.data.playerResponse,
N),w.getPlayerPromise().then(this.w87.resolve)}catch(B){_.eJ(B),this.w87.resolve()}this.hasRun=!0;w.getPlayerPromise().then(function(B){B.addEventListener("onAbnormalityDetected",function(){var I=a.data.playerResponse,X=B.getVideoData().cpn;HNv=0;_.fUh=X;if(X=Xw9(I))W.jYD.increment("IN_PLAYER"),_.$o(5),_.r("ab_st_vid_ks")?B.pauseVideo(!0):B.stopVideo(),I.playabilityStatus=Object.assign({},I.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:X}}),I.videoDetails=void 0,_.sn.getInstance().triggerOptionalAction("yt-updated-playability-status",
I.playabilityStatus)})})}else _.jJ(Error("Jf"))}};
var HdA=function(a,W){var w=_.A(W,_.u6);if(W&&w&&w.playlistId&&w.videoId&&(a=a.roV,a.queueProxy?(a=a.queueProxy,w=a.listId===w.playlistId?a.attributionData.get(w.videoId):void 0):w=void 0,w))return{queue_info:w}},yV6=function(a){var W;
if((W=a.tempData)==null?0:W.adpings)return{adpings:a.tempData.adpings}};var CB=function(a,W,w){this.hasRun=!1;this.vml=a;this.yGK=W;this.wrN=w};
_.c(CB,VY);CB.prototype.validate=function(a){return!!_.T5.getValueByKeys.apply(null,[a.data].concat(_.K8(KRe)))};
CB.prototype.handle=function(a){var W=this;this.vml.promise.then(function(){var w=a.data;var Z=_.T5.getValueByKeys.apply(null,[w].concat(_.K8(olR))),N=_.T5.getValueByKeys.apply(null,[w].concat(_.K8(Yu$))),B=_.T5.getValueByKeys.apply(null,[w].concat(_.K8(Ule)));var I=(I=_.T5.getValueByKeys.apply(null,[w].concat(_.K8(knT))))?{videoId:I.videoId,thumbnail:I.thumbnail,title:I.title?_.b8(I.title):void 0,shortBylineText:I.author?_.b8(I.author):void 0}:void 0;var X=void 0;_.r("web_get_playlist_id_from_current_endpoint_ks")||
(X=_.T5.getValueByKeys.apply(null,[w].concat(_.K8(OdE))));var v=_.T5.getValueByKeys.apply(null,[w].concat(_.K8(T8$))),U=_.T5.getValueByKeys.apply(null,[w].concat(_.K8(SuA))),O=!!v||!!U&&!!U.results&&U.results.length>0,S=0;N&&N.currentIndex&&N.localCurrentIndex&&(S=N.currentIndex-N.localCurrentIndex);N&&N.playlistId&&(X=N.playlistId);w={rawResponse:w,autoplayRenderer:Z,hasRelatedVideoData:O,playingVideo:I,playingVideoId:B,playlistPanelRenderer:N,playlistId:X,playlistIndex:N&&N.currentIndex,relatedVideoArgs:v,
endScreenRenderer:U,playlistIndexOffset:S};a:{Z=W.wrN;N=W.yGK;Z.response=w;if(qu_(w))Z.downloadPlaylistProxy&&Z.downloadPlaylistProxy.getPlaylistId()===RCV(w)||(Z.downloadPlaylistProxy=new $l_(RCV(w),Z.setPlaylistData.bind(Z),Z.isPlayingOfflineVideo.bind(Z))),Z.responsePlaylistData=Z.downloadPlaylistProxy.getPlaylistData(),Z.listId=RCV(w),Z.index=0;else if(w.playlistPanelRenderer&&w.playlistId&&w.autoplayRenderer)w.playlistId.startsWith("TLPQ")?Z.queueProxy?Z.listId===w.playlistId?(Z.index=w.playlistIndex,
Z.responsePlaylistData=w.playlistPanelRenderer,Z.queueProxy.JSC$10659_setCurrentIndex(Z.index)):w.playingVideoId&&Z.index!==void 0&&N.clientParams.autoSaveToQueue&&(Z.index+=1,Z.queueProxy.JSC$10659_setCurrentIndex(Z.index),Z.queueProxy.addVideos([w.playingVideoId],{},Z.index)):(Z.queueProxy=new _.ew(Z.JSC$10713_playlistNetworkManager,w.playlistId,Z.setPlaylistData.bind(Z),Z.clearQueue.bind(Z),_.oHv(w.playlistPanelRenderer),Z.storage),Z.responsePlaylistData=w.playlistPanelRenderer,Z.listId=w.playlistId,
Z.index=w.playlistIndex):(Z.index=w.playlistIndex,Z.listId!==w.playlistId&&Z.clearQueue(),Z.responsePlaylistData=w.playlistPanelRenderer,Z.listId=w.playlistId,Z.playlistProxy=new gl$(Z.JSC$10713_playlistNetworkManager,w.playlistId,Z.setPlaylistData.bind(Z),_.oHv(w.playlistPanelRenderer)));else if(!Z.queueProxy)Z.responsePlaylistData=void 0;else if(w.playingVideoId&&N.clientParams.autoSaveToQueue){if(Z.index===void 0){_.eJ(Error("Ff"));Z.clearQueue();break a}Z.queueProxy.videoIds.includes(w.playingVideoId)||
(Z.index+=1,Z.queueProxy.JSC$10659_setCurrentIndex(Z.index),Z.queueProxy.addVideos([w.playingVideoId],{},Z.index))}_.QI(Z,_.xV(Z,Z.response.autoplayRenderer))}})};var ElL=function(a,W){W=W===void 0?_.qJ():W;PE.call(this);this.ca.push(new CB(this.kG,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},W));this.ca.push(new uM(this.kG,a,!1,!1));_.r("web_response_commands_chunk_processor")&&this.ca.push(new X4)};
_.c(ElL,PE);ElL.prototype.processChunk=function(a){a&&a.data.player===void 0&&this.kG.resolve();PE.prototype.processChunk.call(this,a)};var GZ=function(a,W){a=a===void 0?{layer:0}:a;this.hasRun=!1;this.createScreenConfig=a;this.gR9=W};
_.c(GZ,VY);GZ.prototype.validate=function(a){return!(this.hasRun||!a.endpoint)};
GZ.prototype.handle=function(a){var W=_.$J(),w,Z,N=(Z=_.A((w=a.endpoint)==null?void 0:w.commandMetadata,_.mm))==null?void 0:Z.rootVe;this.gR9&&N?_.NJ(W,N,this.gR9,this.createScreenConfig):Gdl(W,a.endpoint,this.createScreenConfig);this.hasRun=!0};var DJ=function(a,W){this.hasRun=!1;this.sHL=a;this.previousVideoId=W};
_.c(DJ,VY);DJ.prototype.validate=function(a){return _.r("kevlar_continue_playback_without_player_response")&&(a=_.A(a.endpoint,_.u6),(a==null?0:a.videoId)&&this.previousVideoId&&(a==null?void 0:a.videoId)===this.previousVideoId&&(a==null?0:a.continuePlayback))?!1:this.sHL.qYy===0};
DJ.prototype.handle=function(a){_.sn.getInstance().triggerAction("yt-stop-old-player",a.data,!0)};var avl=function(a){a=a===void 0?{layer:0}:a;PE.call(this);this.ca.push(new DJ(this));this.ca.push(new GZ(a));this.ca.push(new IX(a))};
_.c(avl,PE);var WbH=function(){this.hasRun=this.hasRun=!1};
_.c(WbH,VY);WbH.prototype.validate=function(a){return!this.hasRun&&!(!a.data.csn||!a.data.rootVe)};
WbH.prototype.handle=function(a){this.hasRun=!0;_.qlx(a.data.csn,a.data.rootVe,3)};var wdE=function(){VY.apply(this,arguments)};
_.c(wdE,VY);wdE.prototype.validate=function(a){return!!a.data.preconnect};
wdE.prototype.handle=function(a){_.Ak("bc");a=_.l(a.data.preconnect);for(var W=a.next();!W.done;W=a.next())W=W.value,(new Image).src=W};var ZfR=function(a,W,w){w=w===void 0?{layer:0}:w;PE.call(this);this.ca.push(new uM(this.kG,a));this.ca.push(new GZ(w));this.ca.push(new IX(w))};
_.c(ZfR,PE);var NMV=function(a,W,w,Z,N){w=w===void 0?{layer:0}:w;Z=Z===void 0?_.qJ():Z;PE.call(this);var B=!!W&&!!W.clientParams&&!!W.clientParams.miniplayer;B&&this.ca.push(new WbH);this.ca.push(new CB(this.kG,W,Z));this.ca.push(new wdE);var I,X;this.ca.push(new uM(this.kG,a,B,!((I=W.clientParams)==null||!I.fromHistory),(X=W.clientParams)==null?void 0:X.previousVideoId,Z,W.tempData));var v;this.ca.push(new DJ(this,(v=W.clientParams)==null?void 0:v.previousVideoId));var U;(U=W.clientParams)!=null&&U.fromHistory||
(w.layer||(w=Object.assign({},w,{layer:B?3:0})),this.ca.push(new GZ(w,N)),this.ca.push(new IX(w)));_.r("web_response_commands_chunk_processor")&&this.ca.push(new X4)};
_.c(NMV,PE);var fB,BMl;fB={};
_.t8$=(fB["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},fB["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},fB["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},fB["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},fB["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},fB["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},fB["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},fB);_.d9=new _.LJ("yt-edu");_.$rH=function(){this.JSC$10815_eduDisplayedThisLoad_={}};
BMl=function(a){var W=_.$rH.getInstance();var w=_.yv("kevlar_tooltip_impression_cap");W=w&&parseInt(_.d9.get(a+"-impression")||0,10)>=w||_.d9.get(a+"-dismissed")?!1:(w=_.t8$[a])&&!W.JSC$10815_eduDisplayedThisLoad_[w.setKey||a]&&(w.titleText&&_.P_(w.titleText)||w.bodyText&&_.P_(w.bodyText))?!0:!1;if(!W)return null;W=_.t8$[a];if(!W)return null;w=W.bodyText?_.P_(W.bodyText):void 0;var Z=W.titleText?_.P_(W.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:W.position,popup:{bubbleHintRenderer:{text:Z?
_.b8(Z):void 0,detailsText:w?_.b8(w):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.b8(_.P_("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:a}}]}}}}}}}},{eduImpressionAction:{key:a}}]};
_.wk(_.$rH);var kue=!1;for(var lvR="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),Iv$=[],mT=6;mT>=1;mT--)Iv$.push({columnCount:mT,query:mT==1?0:mT*2*107-4+32,className:"grid-"+mT+"-columns",width:mT*2*107+"px"});_.XdR=function(a){this.actionRouter_=a=a===void 0?_.sn.getInstance():a;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.PQT(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.PQT=function(a){var W=a.miniGuideVisible_?72:0,w=a.documentWidth_-(a.guidePersistentAndVisible_?240:W);return Iv$.find(function(Z){return w>Z.query})};
_.wk(_.XdR);var vvL=function(){var a=this;this.JSC$10827_keyboardInUse=!1;document.addEventListener("keydown",function(){a.onKeydown()});
document.addEventListener("mousedown",function(){a.JSC$10827_keyboardInUse=!1})},gvR;
vvL.prototype.isKeyBoardInUse=function(){return this.JSC$10827_keyboardInUse};
vvL.prototype.onKeydown=function(){this.JSC$10827_keyboardInUse=!0};var ov6,HE;_.VI=new _.LJ("yt-mentions");_.zZ=function(){};
ov6=function(a,W){return HE(W,"drag-to-reorder-edu-displayed")};
HE=function(a,W,w,Z,N,B){w=w===void 0?"OPEN_POPUP_POSITION_TOP":w;if(W){if(_.VI.get(W))return;_.VI.set(W,!0,Z)}if(N&&B!==void 0){W=Number(_.VI.get(N)||0);if(W>=B)return;_.VI.set(N,W+1)}return[{openPopupAction:{popupType:"HINT",position:w,popup:{bubbleHintRenderer:{detailsText:a,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.wk(_.zZ);var kx$,UrR,Of6;kx$=function(a,W,w,Z){this.JSC$10837_taskManager_=a;this.onFulfilled_=typeof W==="function"?W:null;this.onRejected_=typeof w==="function"?w:null;this.JSC$10837_context_=Z};
UrR=function(a,W){a.onFulfilled_&&_.OB(a.JSC$10837_taskManager_,function(){a.onFulfilled_.call(a.JSC$10837_context_,W)})};
Of6=function(a,W){a.onRejected_&&_.OB(a.JSC$10837_taskManager_,function(){a.onRejected_.call(a.JSC$10837_context_,W)})};
_.yI=function(a){this.JSC$10840_taskManager_=a;this.callbacks_=[]};
_.yI.prototype.then=function(a,W,w){this.callbacks_.push(new kx$(this.JSC$10840_taskManager_,a,W,w));return this};
_.yI.prototype.onSuccess=function(a){this.callbacks_.forEach(function(W){UrR(W,a)})};
_.yI.prototype.onFailure=function(a){this.callbacks_.forEach(function(W){Of6(W,a)})};
_.yI.prototype.cancel=function(){this.callbacks_.length=0};
PbV(_.yI);_.TnH=null;_.Y_=new _.yq("ACTIVITY_TOKEN");var hvE=/^[a-zA-Z0-9_\-]{11}$/;var i08=_.Y2(function(){var a,W;return(W=(a=window).matchMedia)==null?void 0:W.call(a,"(prefers-reduced-motion: reduce)").matches});var SPH=_.Y2(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=_.RT("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");a||(a=_.PM("VIDEO"),_.Dp("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 YPH;_.EF=new _.yq("SHORTS_CONTROLLER_TOKEN");YPH=new _.yq("SHORTS_STATE_STORE_TOKEN");var ac=function(a,W){var w=_.TH.apply(2,arguments);a=a===void 0?0:a;_.Uw.call(this,W,w);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(ac,_.Uw);var TMe,KbR,rEJ,SOI,C4,uOI,cET,ife,Fbh,jDR,nvR;TMe=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(a){return a+"="}).join("|"));
KbR=RegExp(".*\\?.*playnext=1.*");_.W7=function(a,W,w,Z){this.watchEndpointMap=a;this.reelWatchEndpointMap=W;this.innerTubeTransportService=w;this.fetchPbj=Z};
rEJ=function(a,W,w){var Z=_.K().resolve(_.Vv(pdR));_.W7.instance=new _.W7(a,W,w,Z)};
_.AEy=function(a,W){var w=_.yv("web_pbj_log_warning_rate",0);w=w>0&&Math.random()<w;var Z;if((Z=_.A(W.commandMetadata,_.mm))==null||!Z.rootVe)return w&&_.jJ(Error("Pf")),!1;var N;Z=(N=_.A(W.commandMetadata,_.mm))==null?void 0:N.url;if(!Z)return w&&_.jJ(Error("Qf")),!1;if(KbR.test(Z))return!0;if(TMe.test(Z))return w&&_.jJ(Error("Rf`"+Z)),!1;if(_.A(W,_.u6)){if(!(a.watchEndpointMap.watchNext&&a.watchEndpointMap.player||_.r("kevlar_fetch_initial_data_op_watch_client")))return w&&_.jJ(Error("Lf")),!1;
a=_.yv("web_pbj_log_warning_rate",0);a=a>0&&Math.random()<a;_.A(W,_.u6)?rp7(W)?W=!0:(a&&_.jJ(Error("Mf")),W=!1):(a&&_.jJ(Error("Lf")),W=!1);return W}if(_.A(W,_.gi))return ApF(W);if(_.A(W,_.jT))return!0;a=_.Fq(a.innerTubeTransportService,W);!a&&w&&_.eJ(Error("Sf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(W)});return a};
SOI=function(a,W,w,Z,N,B){W={url:W};if(w==null?0:w.itct)W.parentTrackingParams=w.itct;var I=_.GC(wpE);return _.jw(a.innerTubeTransportService,W,I).then(function(X){(X=X.endpoint)||(X=_.g9);(w==null?0:w.itct)&&X&&!X.trackingParams&&(X.trackingParams=w.itct);var v=XK(X);return C4(a,X,w,Z,v,N,B)})};
C4=function(a,W,w,Z,N,B,I,X){X=X===void 0?{}:X;if(a.fetchPbj&&!_.AEy(a,W)&&!_.r("force_one_platform")){X=a.fetchPbj(W);var v=_.tk(X.then(function(d){if(!d)throw Error("Tf");I(v)||B(W,d);return d}));
return v}var U,O,S={rootVe:(U=_.A(W.commandMetadata,_.mm))==null?void 0:U.rootVe,url:(O=_.A(W.commandMetadata,_.mm))==null?void 0:O.url,endpoint:W,page:N};if(_.A(W,_.u6)){var T,p={contentPlaybackContext:_.o1(w,(T=_.A(W.commandMetadata,_.mm))==null?void 0:T.url,Z)},h=_.Rt();_.r("web_streaming_watch")&&window.TextDecoderStream?(X=htL(a.innerTubeTransportService,W,p,function(d){!S.response&&d.content&&(S.response=d.content);!S.playerResponse&&d.player&&(S.playerResponse=d.player);B(W,S)}),U=PcE(W),U.length&&
(S.preconnect=U,B(W,S)),ife(X,h,S).catch(function(d){d instanceof ac&&d.errorType===2&&cET(a,W,p,S,B,I,h)})):cET(a,W,p,S,B,I,h);
return h.promise}if(_.A(W,_.gi)){var L;if(((L=_.A(W,_.gi))==null?void 0:L.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var F=_.Rt();_.etR(_.K().resolve(_.EF),W).then(function(d){nvR(a,w,Z,N,B,F,d)});
return F.promise}X=_.tk();var x;U={contentPlaybackContext:_.o1(w,(x=_.A(W.commandMetadata,_.mm))==null?void 0:x.url,Z)};(x=a.reelWatchEndpointMap.player)&&(x=x().JSC$11817_getRequest(W,U))&&(X=_.jw(a.innerTubeTransportService,x.innerTubeRequest,x.input,W.clickTrackingParams,x.config));x=_.tk();(O=a.reelWatchEndpointMap.reelItemWatch)&&(O=O().JSC$11817_getRequest(W))&&(x=_.jw(a.innerTubeTransportService,O.innerTubeRequest,O.input,W.clickTrackingParams,O.config));O=_.tk();(T=a.reelWatchEndpointMap.reelWatchSequence)&&
_.A(W,_.gi).sequenceParams&&(U=T().JSC$11817_getRequest(W,U))&&(O=_.jw(a.innerTubeTransportService,U.innerTubeRequest,U.input,W.clickTrackingParams,U.config));U=_.tk(S);T=_.Rt();jDR(W,U,X,x,O,B,I,T);return T.promise}var G;if(_.A(W,YqF)&&((G=_.A(W.commandMetadata,_.mm))==null?0:G.url))return X=L7m(_.MF(Av().location.href),_.MF(_.A(W.commandMetadata,_.mm).url)).toString(),SOI(a,X,w,Z,B,function(){return!1});
if(_.A(W,_.jT))return B(W,S),_.tk(S);if(_.Fq(a.innerTubeTransportService,W)){X=Object.assign({},{tempData:w,disableCache:w.disableCache},X);var V=_.MX(a.innerTubeTransportService,W,X).then(function(d){S.response=d;I(V)||B(W,S);return S});
return V}return _.tk(S)};
_.JEh=function(a,W,w,Z){if(_.A(W,_.u6)||_.A(W,_.gi)&&(_.r("mweb_enable_shorts_innertube_player_prefetch")||_.r("kevlar_enable_shorts_prefetch_in_sequence"))||_.A(W,Eil)&&_.r("web_enable_prefetching_videos_on_home")){var N,B={contentPlaybackContext:_.o1(w,(N=_.A(W.commandMetadata,_.mm))==null?void 0:N.url,Z),prefetchPlaybackContext:ev7(w)},I,X,v;if(((I=_.A(W,_.u6))==null?void 0:(X=I.watchEndpointSupportedPrefetchConfig)==null?void 0:(v=X.prefetchHintConfig)==null?void 0:v.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(w=
a.watchEndpointMap.watchNext)if(B=w().JSC$11817_getRequest(W,B))return Promise.resolve(_.jw(a.innerTubeTransportService,B.innerTubeRequest,B.input,void 0,B.config).then(function(S){return S}))}else if(_.A(W,_.gi)&&_.r("web_prefetch_riw_for_next_video")){if(w=a.reelWatchEndpointMap.reelItemWatch)if((w=w().JSC$11817_getRequest(W,B))&&_.jw(a.innerTubeTransportService,w.innerTubeRequest,w.input,void 0,w.config).then(function(S){return S}),w=a.reelWatchEndpointMap.player)if(B=w().JSC$11817_getRequest(W,
B))return Promise.resolve(_.jw(a.innerTubeTransportService,B.innerTubeRequest,B.input,void 0,B.config).then(function(S){return S}))}else if(w=a.watchEndpointMap.player)if(B=w().JSC$11817_getRequest(W,B))return Promise.resolve(_.jw(a.innerTubeTransportService,B.innerTubeRequest,B.input,void 0,B.config).then(function(S){return S}))}else if(_.Fq(a.innerTubeTransportService,W)){var U={tempData:w},O=LbR(a.innerTubeTransportService,W);
return O?new Promise(function(S,T){var p,h;return _.P(function(L){if(L.nextAddress==1)return _.g(L,O,2);if(L.nextAddress!=4)return p=L.yieldResult,p.JSC$11824_getStoreKey(W,U)?_.g(L,_.MX(a.innerTubeTransportService,W,U),4):(T(new _.Uw("Prefetching request builder with no store key.",W)),L.jumpTo(0));h=L.yieldResult;S(h);_.Xd(L)})}):Promise.reject(new _.Uw("Prefetching unregistered request builder.",W))}return Promise.reject(new _.Uw("No request builder available to prefetch endpoint.",W))};
uOI=function(a,W){var w,Z,N;if(_.A(W,_.u6)){var B=a.watchEndpointMap.watchNext;B&&(w=B());(a=a.watchEndpointMap.player)&&(Z=a())}else if(_.A(W,_.gi))(B=a.reelWatchEndpointMap.reelItemWatch)&&(w=B()),(B=a.reelWatchEndpointMap.player)&&(Z=B()),(a=a.reelWatchEndpointMap.reelWatchSequence)&&(N=a());else{a:{a=pOH(W,a.innerTubeTransportService.endpointMap);if(a!==void 0)if(typeof a.then==="function")_.eJ(new _.Uw("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",W));else break a;
a=void 0}a&&(w=a)}var I,X,v;return{content:(I=w)==null?void 0:I.JSC$11824_getStoreKey(W),player:(X=Z)==null?void 0:X.JSC$11824_getStoreKey(W),reelSequence:(v=N)==null?void 0:v.JSC$11824_getStoreKey(W)}};
cET=function(a,W,w,Z,N,B,I){var X=_.tk(),v=a.watchEndpointMap.player;v&&(v=v().JSC$11817_getRequest(W,w))&&(X=_.jw(a.innerTubeTransportService,v.innerTubeRequest,v.input,W.clickTrackingParams,v.config));v=_.tk();var U=a.watchEndpointMap.watchNext;U&&(w=U().JSC$11817_getRequest(W,w))&&(v=_.jw(a.innerTubeTransportService,w.innerTubeRequest,w.input,W.clickTrackingParams,w.config));a=_.tk(Z);Fbh(W,a,X,v,N,B,I)};
ife=function(a,W,w){return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a,2);W.resolve(w);_.Xd(Z)})};
Fbh=function(a,W,w,Z,N,B,I){var X,v,U,O,S;_.P(function(T){switch(T.nextAddress){case 1:return _.g(T,W,2);case 2:X=T.yieldResult;if(B(I.promise))return I.resolve(X),T.return();N(a,X);v=PcE(a);if(!v.length){T.jumpTo(3);break}return _.g(T,W,4);case 4:X.preconnect=v,N(a,X);case 3:return _.tq(T,5),_.g(T,w,7);case 7:U=T.yieldResult;_.qY(T,6);break;case 5:return O=_.Pb(T),I.reject(O),T.return();case 6:if(U===void 0)return X.reload=!0,N(a,X),I.resolve(X),T.return();if(B(I.promise))return I.resolve(X),T.return();
X.playerResponse=U;N(a,X);_.tq(T,8);return _.g(T,Z,10);case 10:S=T.yieldResult;_.qY(T,9);break;case 8:_.Pb(T);case 9:if(S===void 0)return X.response={responseContext:{}},I.resolve(X),T.return();if(B(I.promise))return I.resolve(X),T.return();X.response=S;N(a,X);I.resolve(X);_.Xd(T)}})};
jDR=function(a,W,w,Z,N,B,I,X){var v,U,O,S,T,p;_.P(function(h){switch(h.nextAddress){case 1:return _.g(h,W,2);case 2:v=h.yieldResult;if(I(X.promise))return X.resolve(v),h.return();B(a,v);U=PcE(a);if(!U.length){h.jumpTo(3);break}return _.g(h,W,4);case 4:v.preconnect=U,B(a,v);case 3:return _.tq(h,5),_.g(h,w,7);case 7:O=h.yieldResult;_.qY(h,6);break;case 5:return S=_.Pb(h),X.reject(S),h.return();case 6:if(O===void 0)return v.reload=!0,B(a,v),X.resolve(v),h.return();if(I(X.promise))return X.resolve(v),
h.return();v.playerResponse=O;B(a,v);_.tq(h,8);return _.g(h,Z,10);case 10:T=h.yieldResult;_.qY(h,9);break;case 8:_.Pb(h);case 9:if(T===void 0)return v.response={responseContext:{}},X.resolve(v),h.return();if(I(X.promise))return X.resolve(v),h.return();v.response=T;B(a,v);_.tq(h,11);return _.g(h,N,13);case 13:p=h.yieldResult;_.qY(h,12);break;case 11:_.Pb(h);case 12:if(I(X.promise))return X.resolve(v),h.return();v.reelWatchSequenceResponse=p;B(a,v);X.resolve(v);_.Xd(h)}})};
nvR=function(a,W,w,Z,N,B,I){var X,v,U,O,S,T;_.P(function(p){if((X=I)==null||!X.replacementEndpoint)return B.reject(),p.return();v=I.replacementEndpoint;(U=_.A(v,_.gi))?(I.sequenceContinuation&&(U.sequenceParams=I.sequenceContinuation),O=_.K().resolve(_.EF),S=U.sequenceParams,M8R(O,v)&&delete U.sequenceParams,T=C4(a,v,W,w,Z,N,function(){return!1}),T.then(function(h){return _.P(function(L){if(L.nextAddress==1)return Rt$(O,{reelWatchEndpoint:{sequenceParams:S}},h),_.g(L,0,2);
B.resolve(h);_.Xd(L)})})):B.reject();
_.Xd(p)})};_.qPy=function(a){if(a.validatedFragments_.length==0)return null;if(!a.mergedPrefetchedData_){for(var W=[],w=_.l(a.validatedFragments_),Z=w.next();!Z.done;Z=w.next()){Z=_.l(a.fragmentConfiguration_[Z.value].graftedKeys);for(var N=Z.next();!N.done;N=Z.next())(N=a.prefetchedData_[N.value].trackingParams)&&W.push(N)}a.mergedPrefetchedData_={};Object.assign(a.mergedPrefetchedData_,a.prefetchedData_,{clientSideGrafts:W})}return a.mergedPrefetchedData_};var QDJ;_.w4=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
QDJ=function(a,W,w){if(_.KzC(W))return a.prefetchCache_.get(_.pwC(W,w))};_.Zh=new _.yq("NAVIGATION_TOKEN");var xr6=function(a){var W=this;var w=w===void 0?LzH():w;var Z=Z===void 0?_.K().resolve(_.Zh):Z;this.onePickCommand=a;this.JSC$10941_playlistNetworkManager=w;this.navigationManager=Z;this.videoPickerBuilder=_.nZx("yt-addtoplaylist");_.eqE(ToL(KQR(YxT(this.videoPickerBuilder.setTitle(a.modalTitle).setSize(1E3).addView(ASA()).addView(rS$())).addView("youtube"),a.selectButtonLabel)),function(N){W.handleAction(N)})};
xr6.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
xr6.prototype.handleAction=function(a){var W=this;if(a&&this.onePickCommand.listId&&a.action==="picked"&&a.docs){var w=[];a.docs.forEach(function(Z){w.push({addedVideoId:Z.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10941_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,w).then(function(){_.r("playlist_add_video_hard_reload_killswitch")?W.navigationManager.reload():bfA(W.navigationManager)})}};var sDL=function(){if(this.constructor===sDL)throw new TypeError("Uf");};
_.t=sDL.prototype;_.t.dispose=function(){};
_.t.disconnect=function(){};
_.t.reconnect=function(){};
_.t.observe=function(a,W,w){return{element:a,option:w}};
_.t.unobserveByKey=function(){};var Jp9=function(a,W){W=W===void 0?0:W;sDL.call(this);this.viewroot=a;this.defaultPrescanHeight=W;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};
_.c(Jp9,sDL);_.t=Jp9.prototype;_.t.dispose=function(){this.disconnect();this.handlers.clear()};
_.t.disconnect=function(a){this.isConnected=!1;this.pauseObservingUntilReconnect=a===void 0?!1:a;this.observer.disconnect();a=_.l(this.prescanObservers.values());for(var W=a.next();!W.done;W=a.next())W.value.disconnect()};
_.t.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var a=_.l(this.handlers),W=a.next();!W.done;W=a.next()){var w=_.l(W.value);W=w.next().value;var Z=w.next().value;w=!1;Z=_.l(Z.keys());for(var N=Z.next();!N.done;N=Z.next())if((N=N.value)&&N.state==="prescan"){w=!0;break}w&&uJT(this,W).observe(W);this.observer.observe(W)}}};
_.t.handleObserveEvent=function(a){a=_.l(a);for(var W=a.next();!W.done;W=a.next()){W=W.value;var w=this.handlers.get(W.target);if(w){var Z=W.isIntersecting;w=_.l(w);for(var N=w.next();!N.done;N=w.next()){var B=_.l(N.value);N=B.next().value;B=B.next().value;N&&(N.state==="visible"&&Z||N.state==="hidden"&&!Z)&&(B(W.target,N.state),N.calledOnce&&this.unobserveByKey({element:W.target,option:N}))}}}};
_.t.handlePrescanEvent=function(a){a=_.l(a);for(var W=a.next();!W.done;W=a.next()){W=W.value;var w=this.handlers.get(W.target);if(w&&W.isIntersecting){w=_.l(w);for(var Z=w.next();!Z.done;Z=w.next()){var N=_.l(Z.value);Z=N.next().value;N=N.next().value;Z&&Z.state==="prescan"&&(N(W.target,Z.state),Z.calledOnce&&this.unobserveByKey({element:W.target,option:Z}))}}}};
_.t.observe=function(a,W,w){var Z=(Z=this.handlers.get(a))&&Z.has(w)?{element:a,option:w}:void 0;if(Z)return Z;Z={element:a,option:w};this.handlers.has(a)||this.handlers.set(a,new Map);var N=this.handlers.get(a);N&&!N.has(w)&&N.set(w,W);this.pauseObservingUntilReconnect||(w.state==="prescan"&&uJT(this,a).observe(a),this.observer.observe(a));return Z};
_.t.unobserveByKey=function(a){var W=this.handlers.get(a.element);if(W&&W.has(a.option)){W.delete(a.option);if(a&&a.option.state==="prescan")for(var w=_.l(this.prescanObservers.values()),Z=w.next();!Z.done;Z=w.next())Z.value.unobserve(a.element);W.size===0&&(this.handlers.delete(a.element),this.observer.unobserve(a.element))}};
var uJT=function(a,W){var w=a.defaultPrescanHeight;W.hasAttribute("prescan-height")&&(W=Number(W.getAttribute("prescan-height")),isNaN(W)||(w=W));if(a.prescanObservers.has(w))return a.prescanObservers.get(w);W="-0.1px -0.1px "+w+"px -0.1px";W=new IntersectionObserver(a.handlePrescanEvent.bind(a),a.viewroot?{root:a.viewroot,rootMargin:W}:{rootMargin:W});a.prescanObservers.set(w,W);return W};var CQe=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],Gx6=function(){var a,W=this;this.JSC$10958_actionRouter=a=a===void 0?_.sn.getInstance():a;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return W.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return W.visibilityObservedElementHandlerKeys}}},Drl,drH,ztA;
Gx6.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.r("kevlar_use_vimio_behavior")&&_.LF("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=FzE())};
Gx6.prototype.dispose=function(){this.visibilityMonitor&&_.YO(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
Gx6.prototype.handleVisibilityRefreshed=function(){for(var a=_.l(this.targetMap.entries()),W=a.next();!W.done;W=a.next()){var w=_.l(W.value);W=w.next().value;w=w.next().value;_.fvL(this,W,w)}};
_.V8J=function(a,W,w){drH(a,w);var Z=_.mr_(a,W);Z.element=w;a.targetedElements.set(w,W);_.fvL(a,W,Z)};
drH=function(a,W){var w=a.targetedElements.get(W);if(w){var Z=a.targetMap.get(w);Z&&(delete Z.element,a.targetMap.set(w,Z));a.targetedElements.delete(W);a.visibilityObserver&&a.visibilityObservedElementHandlerKeys&&(w=a.visibilityObservedElementHandlerKeys.get(W))&&(a.visibilityObserver.unobserveByKey(w),a.visibilityObservedElementHandlerKeys.delete(W))}};
_.fvL=function(a,W,w){var Z=w.action,N=w.element;N&&Z&&(CQe.includes(W)||_.LF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||a.visibilityMonitor&&a.visibilityMonitor.isNodeVisible(N)?ztA(a,W,w):a.visibilityObserver&&(a.visibilityObservedElementHandlerKeys||(a.visibilityObservedElementHandlerKeys=new WeakMap),Z=a.visibilityObserver.observe(N,function(){ztA(a,W,w);a.visibilityObservedElementHandlerKeys.delete(N)},{calledOnce:!0,
state:"visible"}),a.visibilityObservedElementHandlerKeys.set(N,Z)))};
ztA=function(a,W,w){var Z=w.action;(w=w.element)&&Z&&(_.J2(a.JSC$10958_actionRouter,[Z],w),a.targetMap.delete(W),a.targetedElements.delete(w),a.triggeredTargets.add(W))};
_.mr_=function(a,W){var w=a.targetMap.get(W);w||(w={},a.targetMap.set(W,w));return w};
_.NR=function(){Drl||(Drl=new Gx6);return Drl};var HfA=document.createElement("div");HfA.style.touchAction="pan-down";var MDF=HfA.style.touchAction==="pan-down";var yER,Eve;yER=function(){this.hammerFn=kwR();this.JSC$10966_screenManager=_.$J();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Ob(83615);_.$V(this.JSC$10966_screenManager,this.ve);Rvv()};
_.tb=function(){Eve||(Eve=new yER);return Eve};
yER.prototype.registerTouchEvents=function(a,W,w){var Z=_.TH.apply(3,arguments),N=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}]]});w&&N.set({touchAction:w});this.nodeManagerMapping.set(a,N);var B=
qqv(W);Z=_.l(Z);for(var I=Z.next();!I.done;I=Z.next()){I=I.value;if(I.includes("swipe")||I.includes("pinch")||I.includes("pan"))I.includes("swipe")?N.get("swipe").set({enable:!0,direction:B,velocity:.2}):I.includes("pinch")?N.get("pinch").set({enable:!0}):I.includes("pan")&&(N.get("pan").set({enable:!0,direction:B}),N.get("swipe").set({enable:!0,direction:B,velocity:.2}),N.get("swipe").recognizeWith("pan"));amT(this,a,N,I)}};
var amT=function(a,W,w,Z){w.on(Z,function(N){if(Z.includes("pinch"))a.lastPinchTime=Date.now();else if(Z.includes("swipe")&&Date.now()-a.lastPinchTime<400)return;N.pointerType!=="mouse"&&(N=Z==="doubletap"?{coordinates:N.center}:Z.includes("pan")?N:Z.includes("swipe")?{target:N.target}:{},W.dispatchEvent(new CustomEvent(Z,{bubbles:!0,composed:!0,detail:N})))})};
yER.prototype.unregisterTouchEvents=function(a){var W=_.TH.apply(1,arguments),w=this.nodeManagerMapping.get(a);if(w){W=_.l(W);for(var Z=W.next();!Z.done;Z=W.next())w.off(Z.value);this.nodeManagerMapping.delete(a);a.style.touchAction="unset"}};var WMl=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Q7I=null;var ZP_;_.$H=function(a,W,w){var Z=w&&w>0?w:0;w=Z?Date.now()+Z*1E3:0;if((Z=Z?(0,_.wk6)():ZP_())&&window.JSON){typeof W!=="string"&&(W=JSON.stringify(W,void 0));try{Z.set(a,W,w)}catch(N){Z.remove(a)}}};
_.B7=function(a){var W=ZP_(),w=(0,_.wk6)();if(!W&&!w||!window.JSON)return null;try{var Z=W.get(a)}catch(N){}if(typeof Z!=="string")try{Z=w.get(a)}catch(N){}if(typeof Z!=="string")return null;try{Z=JSON.parse(Z,void 0)}catch(N){}return Z};
_.li=function(a){try{var W=ZP_(),w=(0,_.wk6)();W&&W.remove(a);w&&w.remove(a)}catch(Z){}};
_.wk6=_.Y2(function(){try{var a=new KmD;var W=a.isAvailable()?a:null}catch(w){return null}return W?new _.wQ(W):null});
ZP_=_.Y2(function(){var a=new pGD;return a.isAvailable()?new _.wQ(a):null});var N_$=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},wpD=function(){N_$.instance||(N_$.instance=new N_$);
return N_$.instance},Zge=function(a){var W=a.networkEvents;
a.networkEvents=[];return _.r("enable_network_monitoring")?W:[]};var tvL;tvL={};_.$$R=dz("yt-serviceworker-metadata",{objectStores:(tvL.auth={addedAtVersion:1},tvL["resource-manifest-assets"]={addedAtVersion:2},tvL),shared:!0,upgrade:function(a,W){W(1)&&FU(a,"resource-manifest-assets");W(2)&&FU(a,"auth")},
version:2});var Guv=self.location.origin+"/";DL8([/\.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\//]);DL8([/purge_shell=1/]);var B_e=void 0;B_e=B_e===void 0?[]:B_e;for(var lmV=[],Imy=_.l(NtH),Pue=Imy.next();!Pue.done;Pue=Imy.next())lmV.push({key:Pue.value});for(var Xkh=_.l(B_e),vxA=Xkh.next();!vxA.done;vxA=Xkh.next())lmV.push(vxA.value);var gx6,SM=_.NH==null?void 0:(gx6=_.NH.performance)==null?void 0:gx6.memory,mLI=!1,N0U={},H0m={},Yo={},TX=navigator;var Ic=function(a){this.JSC$11010_expiringStorage=new Sg(a)};
Ic.prototype.set=function(a,W,w){w=w!==void 0?Date.now()+w:void 0;this.JSC$11010_expiringStorage.set(a,W,w)};
Ic.prototype.get=function(a){return this.JSC$11010_expiringStorage.get(a)};
Ic.prototype.remove=function(a){this.JSC$11010_expiringStorage.remove(a)};var v4e=_.ma(["https://www.youtube.com/",""]),g4F=_.ma(["https://studio.youtube.com/",""]),SDU="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",kd9=null,reU;var ox$=_.ma(["https://www.youtube.com/iframe_api"]),P7=function(){this.playerResolver_=_.Rt();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.S5;this.playbackDurationSeconds_=0},kWE=function(a){var W=function(){return window.YT&&typeof window.YT.ready==="function"};
if(W())return _.tk(window.YT);var w=_.Rt(),Z=_.PM("SCRIPT");Z.onload=Z.onreadystatechange=function(){Z.readyState&&Z.readyState!="loaded"&&Z.readyState!="complete"||(Z.onload=_.S5,Z.onreadystatechange=_.S5,Z.onerror=_.S5,W()?w.resolve(window.YT):w.reject(new _.Uw("Failed to load the iframe player library","script.onload",Z.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
Z.onerror=function(N){Z.onload=_.S5;Z.onreadystatechange=_.S5;Z.onerror=_.S5;w.reject(new _.Uw("Failed to load the iframe player library","script.onerror",N&&N.target&&N.target.src))};
_.Q$(Z,_.ya(ox$));a.insertBefore(Z,a.firstChild);return w.promise},U$V=function(a,W,w){var Z,N;
_.P(function(B){switch(B.nextAddress){case 1:return a.playbackEndedCallback_=w,_.tq(B,2),_.g(B,kWE(W.parentElement||null),4);case 4:Z=B.yieldResult;_.qY(B,3);break;case 2:return N=_.Pb(B),N instanceof _.Uw&&N.args&&N.args[0]=="script.onerror"?_.jJ(N):_.eJ(N),B.return();case 3:Z.ready(function(){return new Z.Player(W,{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)}})}),_.Xd(B)}})};
_.t=P7.prototype;_.t.getPlayerPromise=function(){return this.playerPromise_};
_.t.onPlayerReady_=function(a){this.playerResolver_.resolve(a.target)};
_.t.onPlayerStateChange_=function(a){if(a.data==YT.PlayerState.PLAYING){a=a.target;var W=a.getCurrentTime();a.addCueRange("playback",W,W+this.playbackDurationSeconds_)}};
_.t.onCueRangeExit_=function(a){a.data=="playback"&&(a.target.stopVideo(),this.playbackEndedCallback_())};
_.t.stopVideo=function(){this.playerPromise_.then(function(a){a.stopVideo()})};
var OPR=function(a){a.playerVars_&&a.playerPromise_.then(function(W){typeof W.cueVideoByPlayerVars!="function"?_.jJ(new _.Uw("vmh: player API not ready","cueVideoByPlayerVars",typeof W.cueVideoByPlayerVars)):W.cueVideoByPlayerVars(a.playerVars_)})};
P7.prototype.playVideo=function(){var a=this;this.playerVars_&&this.playerPromise_.then(function(W){typeof W.loadVideoByPlayerVars!="function"?(W=new _.Uw("vmh: player API not ready","loadVideoByPlayerVars",typeof W.loadVideoByPlayerVars),_.eJ(W)):W.loadVideoByPlayerVars(a.playerVars_)})};
var SHy=function(a,W,w,Z,N){W&&(w===void 0&&(w=0),Z===void 0&&(Z=0),a.playbackDurationSeconds_=Z/1E3,a.playerVars_={adformat:"17_8",videoId:W,suggestedQuality:"hd720",startSeconds:w/1E3,player_params:N})};
P7.prototype.mute=function(){this.playerPromise_.then(function(a){a.mute()})};
P7.prototype.unMute=function(){this.playerPromise_.then(function(a){a.unMute()})};var j3E=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Xi;Xi=function(){this.tokenJars={};if(this.cookiesEnabled=_.gz()){var a=_.XQ.get("CONSISTENCY",void 0);a&&YHy(this,{encryptedTokenJarContents:a})}};
_.JeD=function(){Xi.instance||(Xi.instance=new Xi);return Xi.instance};
Xi.prototype.handleResponse=function(a,W){if(!W)throw Error("Zf");var w,Z;W=((w=W.innerTubeRequest.context)==null?void 0:(Z=w.request)==null?void 0:Z.consistencyTokenJars)||[];var N;(a=(N=a.responseContext)==null?void 0:N.consistencyTokenJar)&&this.replace(W,a)};
Xi.prototype.replace=function(a,W){a=_.l(a);for(var w=a.next();!w.done;w=a.next())delete this.tokenJars[w.value.encryptedTokenJarContents];YHy(this,W)};
var YHy=function(a,W){if(W.encryptedTokenJarContents&&(a.tokenJars[W.encryptedTokenJarContents]=W,typeof W.expirationSeconds==="string")){var w=Number(W.expirationSeconds);setTimeout(function(){delete a.tokenJars[W.encryptedTokenJarContents]},w*1E3);
a.cookiesEnabled&&_.vi("CONSISTENCY",W.encryptedTokenJarContents,w,void 0,!0)}};var T_e,v7;T_e=window.location.hostname.split(".").slice(-2).join(".");_.LC=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var a=_.LF("LOCATION_PLAYABILITY_TOKEN");_.LF("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=KMR(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.mostRecentPosition=void 0)};
_.LC.getInstance=function(){v7=_.RT("yt.clientLocationService.instance");v7||(v7=new _.LC,_.Dp("yt.clientLocationService.instance",v7));return v7};
_.LC.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};
_.LC.prototype.handleResponse=function(a){var W;a=(W=a.responseContext)==null?void 0:W.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.mostRecentPosition=void 0,_.LF("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=KMR(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):_.vi("YT_CL",JSON.stringify({loctok:a}),15552E3,T_e,!0))};
var KMR=function(a){return a.localStorage===void 0?new _.LJ("yt-client-location"):a.localStorage};
_.LC.prototype.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=KMR(this))&&this.localStorage.remove("yt-location-playability-token"):_.osm("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.LC.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var W=!1,w=1E4;_.LF("INNERTUBE_CLIENT_NAME")==="MWEB"&&(W=!0,w=15E3);return new Promise(function(Z,N){navigator.geolocation.getCurrentPosition(function(B){a.mostRecentPosition=B;Z(B)},function(B){N(B)},{enableHighAccuracy:W,
maximumAge:0,timeout:w})})};
_.LC.prototype.createUnpluggedLocationInfo=function(a){var W={};a=a.coords;if(a==null?0:a.latitude)W.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)W.longitudeE7=Math.floor(a.longitude*1E7);if(a==null?0:a.accuracy)W.locationRadiusMeters=Math.round(a.accuracy);return W};
_.LC.prototype.createLocationInfo=function(a){var W={};a=a.coords;if(a==null?0:a.latitude)W.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)W.longitudeE7=Math.floor(a.longitude*1E7);return W};var pk$=function(a,W){var w=Ft();a||(a="unknown");W||(W="unknown");a="MAIN_APP_WEB_PAGE_TYPE_"+a.toUpperCase();a in y1$||(a="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");W="MAIN_APP_WEB_REQUEST_TYPE_"+W.toUpperCase();W in E$H||(W="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.kX(w,{mainAppWeb:{pageType:a,requestType:W,isShellLoad:_.JS("IS_SHELL_LOAD",!1)}})},rRL={start:function(){_.kX(m5F(),{mainAppWeb:_.J7()})},
success:function(){_.U9(m5F(),"SUCCESS")},
failure:function(){_.U9(m5F(),"FAILURE")},
cancelled:function(){_.U9(m5F(),"CANCELLED")}};var ARH,hfe,Q3D;ARH=_.ma(["/sw.js"]);hfe=_.ma(["/sw.js?0"]);_.iPJ=_.ya(ARH);Q3D=_.ya(hfe);var cRh=function(){var a=Error.apply(this,arguments);this.message=a.message;"stack"in a&&(this.stack=a.stack)};
_.c(cRh,Error);_.R1.prototype.load=function(a){this.megabloxUrl_=_.LF("YPC_MB_URL");_.MM(this.megabloxUrl_,(0,_.Sk)(function(){a&&a()},this))};
_.xGF=function(a,W,w,Z,N,B,I,X,v,U,O){_.bgH(v);a.load((0,_.Sk)(function(){try{var S=B?B:_.LF("HL"),T=_.LF("SESSION_INDEX");_.i9e("client",function(){kOy("59",{helpCenterPath:"/youtube",locale:S,window:window}).JSC$7882_loadChatSupport({authuser:String(T)})})}catch(p){throw FK(10,O,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),N&&N(p),_.eJ(p),p;
}efL(this,W,w,Z,N,B,I,X,v,U,O)},a))};
_.R1.prototype.openFixFlowDialog=function(a,W,w,Z){this.load((0,_.Sk)(function(){try{nxy(this,_.RT("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(a).withIntegratorCallback(W).load(w,Z)}catch(N){throw _.eJ(N),N;}},this))};
var nxy=function(a,W,w,Z){var N=W.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.r("enable_window_constrained_buy_flow_dialog")&&(N=N.usingPopupStyle(_.RT("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));Z&&(N=N.usingCloseCallback(Z));W.bootstrap.fromPaymentsUrl(a.megabloxUrl_);a=W.bootstrap.asMashupMode(N);w=w?w:_.LF("HL");a.usingGaiaIndex(_.LF("SESSION_INDEX")).usingLocale(w).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.r("enable_google_payments_buyflow_material2_style_web")?
a.usingStyle(":m2;pc=#444;ac=#065fd4"):a.usingStyle(":md;pc=#444;ac=#065fd4");return a},efL=function(a,W,w,Z,N,B,I,X,v,U,O){try{var S=_.RT("payments.business.integration");
if(!S)throw new cRh("payments.business.integration is undefined");var T=S.standaloneContextAuthId.forUserId(),p=nxy(a,S,B,X);I&&p.usingServerAnalyticsEventHandler(I);var h=p.inStandaloneContext(T).buyFlow(function(L){if(L&&(!L.integratorData||L.integratorData===""||L.error))if(L.error!=null)if(String(L.error)==="-1")_.s37(v);else{var F=String(L.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";FK(10,O,F,L.debugCode);
_.Mj(F,v,L.debugCode);F=new _.Uw("PAYMENT_ERROR_MESSAGE::"+L.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+L.internalErrorDetails);_.eJ(F)}else FK(10,O,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Mj("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",v,"EMPTY_INTEGRATOR_DATA"),_.eJ(Error("bg"));w&&w(L)}).withEncryptedParameters(W);
U&&h.withClientParameters(nnD(_.CsC(U)));h.load(function(){FK(24,O);_.i0("ttc",void 0,"commerce_transaction");kVx("commerce_transaction");Z&&Z()},function(L){if(L==null?0:L.debugCode)var F=L==null?void 0:L.debugCode;
else if(!L||(L==null?0:L.debugCode))F="EMPTY_LOAD_FAILURE_ERROR",_.eJ(Error(F));else{F="EMPTY_LOAD_FAILURE_DEBUG_CODE";var x=new _.Uw("LOAD_FAILURE:"+L.message," DEBUG_CODE:"+F);_.eJ(x)}FK(10,O,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",F);_.Mj("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",v,F);_.eJ(L);N&&N(L)})}catch(L){throw L instanceof cRh&&(FK(10,O,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),N&&N(L)),_.eJ(L),L;
}};var jjA;jjA=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.Rcm=function(a,W){W=W===void 0?!1:W;a=jjA.test(a)?_.lq(a):null;!W&&window.payments||!a?(a=_.Rt(),W=a.promise,a.resolve()):W=_.jS(a,{attributes:{"data-payments-main":"",id:"payment-lib"}});return W};var LMR;LMR=_.ma(["//www.googletagmanager.com/gtm.js?id=",""]);_.g4=function(a,W){_.md(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:W}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.LF("GL")}),W=_.PM("SCRIPT"),W.async=!0,_.Q$(W,_.ya(LMR,a)),W.id="gtm",a=document.getElementsByTagName("script"),a.length==0?document.head.appendChild(W):(a=a[0],a.parentNode.insertBefore(W,a)))};
_.oc=function(a){if(a=JSON.parse(a))window.dataLayer=window.dataLayer||[],window.dataLayer.push(a)};var JRE,FMR;JRE=_.ma(["https://clients2.google.com/gr/gr_sync.js"]);_.FWv=function(){};
_.FWv.prototype.init=function(){if(FMR()){var a=_.Rt();a.resolve();return a.promise}return _.jS(_.ya(JRE)).then(function(){if(!FMR())throw Error("cg");},function(){throw Error("dg");
})};
_.MPS=function(){if(!FMR())return"";var a=window.google.gr;a.init({async:{schedule:"sync"},merchantId:"youtube"});a.start();a=a.finish();return a==null?"":a};
FMR=function(){return window.google!=null&&window.google.gr!=null};var HG7,aUe=new Set,y8S;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.u=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.c(_.u,PolymerFakeBaseClassWithoutHtml);_.Nt=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.c(_.Nt,PolymerFakeBaseClassWithoutHtml);var uG8=window.ShadyDOM;var p3e,TyS,A89,h7I,c8U,e78,kH,fC;p3e=_.r("enable_shadydom_free_scoped_query_methods");TyS=_.r("enable_shadydom_free_scoped_node_methods");A89=_.r("enable_shadydom_free_scoped_readonly_properties_batch_one");h7I=_.r("enable_shadydom_free_parent_node");c8U=_.r("enable_shadydom_free_children");e78=_.r("enable_shadydom_free_last_child");kH=window.ShadyDOM;_.zX=kH&&kH.noPatch&&kH.wrap?kH.wrap:kH?function(a){return kH.patch(a)}:function(a){return a};
fC=function(a){if(a instanceof ShadowRoot)this.host=(0,_.zX)(a.host),this.root=a;else if(a.$$){this.host=(0,_.zX)(a);var W;this.root=(W=a.root)!=null?W:this.host}else if(a.polymerController){this.host=(0,_.zX)(a);var w;this.root=(w=this.host.shadowRoot)!=null?w:this.host}else this.root=this.host=(0,_.zX)(a)};
Kx9();r87();ntI();j4v();iGF();var MvJ={querySelector:function(a,W){W=Gdv(W,bh(a));a=_.s6(a);return uh(a).prototype.querySelector.call(a,W)},
querySelectorAll:function(a,W){W=Gdv(W,bh(a));a=_.s6(a);return uh(a).prototype.querySelectorAll.call(a,W)}},Rfe={appendChild:function(a,W){var w=bh(a),Z=_.xo(W);
return _.SYS(_.s6(a),w?_.GX(W,w,Z):W)},
cloneNode:function(a,W){var w=_.xo(a);a=_.s6(a);W=uh(a).prototype.cloneNode.call(a,W);return w?D3(W,w):W},
contains:function(a,W){var w=bh(a),Z=_.xo(W);return w!==Z?!1:YYE(a,W)},
insertBefore:function(a,W,w){var Z=bh(a),N=_.xo(W);a=_.s6(a);W=Z?_.GX(W,Z,N):W;return uh(a).prototype.insertBefore.call(a,W,w)},
removeChild:function(a,W){var w=bh(a);a=_.s6(a);W=w?D3(W,w):W;return uh(a).prototype.removeChild.call(a,W)},
replaceChild:function(a,W,w){var Z=bh(a),N=_.xo(W);W=Z?_.GX(W,Z,N):N?D3(W,N):W;w=Z?D3(w,Z):w;a=_.s6(a);return uh(a).prototype.replaceChild.call(a,W,w)},
getRootNode:function(a,W){W=W===void 0?{composed:!0}:W;var w;if(((w=W)!=null?w:{}).composed)a=Wxx(a);else{W=a;for(a=fH8(a);a;)W=a,a=mvF(a);a=W}return a}},J8F=A89?{firstChild:vtC,
nextSibling:IqF,previousSibling:X3U,firstElementChild:gtF,lastElementChild:kAE,nextElementSibling:lq7,previousElementSibling:Prm,childNodes:UQH}:{};h7I&&(J8F.parentNode=Bym);c8U&&(J8F.children=OGe);e78&&(J8F.lastChild=ot7);p3e&&LxH(MvJ);TyS&&LxH(Rfe);FxD();var MOH=function(a){this.node=a instanceof ShadowRoot?a.host:a};
R79();qYU();var s47=new WeakMap;var Cr8=Symbol("wd");var mQU=new Set(["tap","track","down","up"]),VOE=_.r("pbcm_fi_query_decorators");var UA=function(){return _.Nt.apply(this,arguments)||this};
_.c(UA,_.Nt);_.t=UA.prototype;_.t.getState=function(){return this.store.getState()};
_.t.dispatch=function(a){this.store.dispatch(a)};
_.t.beforeRegister=function(){if(this&&typeof this==="object"){var a;var W=!!this.useSignals||!((a=this.polymerController)==null||!a.useSignals)}else W=!1;if(!W&&this.properties)for(W=_.l(Object.keys(this.properties)),a=W.next();!a.done;a=W.next()){var w=a.value;a=this.properties[w];if(a.selector){if(a.computed)throw Error("jg");w=["reduxPropertiesRecomputeTrigger",'"'+w+'"'].concat(_.K8(a.selectorArgs||[])).join(",");a.computed="recomputeReduxSelector("+w+")"}}};
_.t.attached=function(){var a=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){a.reduxPropertiesRecomputeTrigger++}));
_.r("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.t.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.t.recomputeReduxSelector=function(a,W){var w=_.TH.apply(2,arguments),Z=this.properties[W].selector;if(!Z)throw Error("hg`"+W);return Z.apply(null,[this.store.getState()].concat(_.K8(w)))};
_.t.select=function(a){var W=_.TH.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return a.apply(null,[this.store.getState()].concat(_.K8(W)))};
_.dU.Object.defineProperties(UA.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
UA.prototype.recomputeReduxSelector=UA.prototype.recomputeReduxSelector;_.f([_.b(),_.z("design:type",Number)],UA.prototype,"reduxPropertiesRecomputeTrigger",void 0);UA=_.f([_.BA()],UA);var OA=[],ZdE={},YQ=function(){return V8.apply(this,arguments)||this};
_.c(YQ,V8);YQ.prototype._addPropertyEffect=function(a,W,w){if(W==="__observeEffects"&&w){var Z,N=(Z=w.info.method)!=null?Z:w.info.methodName;if(N){var B=this[N];this[N]=function(){OA.push(N);try{B==null||B.apply(this,arguments)}finally{OA.pop()}}}}_.Tp._addPropertyEffect.apply(this,[a,
W,w])};
YQ.prototype._setPendingProperty=function(a,W,w){if(OA.length){var Z=OA[OA.length-1],N;(N=ZdE[this.is])!=null&&N.has(Z)||(N8v(this.is,Z),_.ia("polymerPropertyChangedInObserver",{componentName:this.is,observerName:Z}))}return _.Tp._setPendingProperty.apply(this,[a,W,w])};
YQ=_.f([Lae()],YQ);var tdF=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),B8H,PA={};_.r("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=PA);var g$=function(){return _.Nt.apply(this,arguments)||this};
_.c(g$,_.Nt);g$.prototype._setUnmanagedPropertyToNode=function(a,W,w){a.loggingStatus&&(a.loggingStatus.isDeclarativeExternal=!0);if(w!==a[W]||typeof w==="object")a[W]=w;a.is&&a.polymerController&&a.polymerController!==a&&XM(a.is,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");a.loggingStatus&&(a.loggingStatus.isDeclarativeExternal=!1)};
g$=_.f([_.BA()],g$);$lF()&&(M6.prototype._setUnmanagedPropertyToNode=(new g$)._setUnmanagedPropertyToNode);_.KRC={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(a){},set polymerController(a){}}]};var SK=function(){var a=V8.apply(this,arguments)||this;a.json=function(){};
return a};
_.c(SK,V8);SK.prototype.equals=function(a,W){return a===W};
SK.prototype.isEmpty=function(a){return!a||_.wT(a)&&a.length===0};
SK=_.f([Lae()],SK);var qHE=function(a){a=c9e(a);q7.call(this,a)};
_.c(qHE,q7);qHE.prototype.addProvider=function(a){a=a.key?a:c9e([a])[0];var W=this.keyIdToIndex.get(a.key.id);if(W){if(vlE(a,this.providers[W]))throw Error("kg`"+a.key.displayName);}else q7.prototype.addProvider.call(this,a)};
var Qjl=new qHE([]);var x$l=!1;var Sue={};x$l||(OdD(),x$l=!0);
Sue.InjectBehavior={initializeInjection:function(){var a=this.provide;try{if((a=a!=null?a:[])&&a.length>0)for(var W=c9e(a),w=_.l(W),Z=w.next();!Z.done;Z=w.next())Qjl.addProvider(Z.value);var N=new Set;glx(this.behaviors||[],N);W={};for(var B=_.l(N),I=B.next();!I.done;I=B.next()){var X=I.value;X.inject&&Object.assign(W,X.inject)}this.inject&&Object.assign(W,this.inject);for(var v=_.l(Object.keys(W)),U=v.next();!U.done;U=v.next()){var O=U.value,S=W[O];try{this[O]=Qjl.resolve(S)}catch(T){throw T;}}}catch(T){throw Error(T.message);
}}};var T8x;var pR7=/\bclass\b/.test(function(){}.toString()),hCe=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var bPJ=function(a){this.wasDefined=!0;Array.isArray(a)||a instanceof Array?(this.JSC$11169_getImpl=a[0],this.JSC$11169_setImpl=a[1]):this.JSC$11169_getImpl=a};
_.t=bPJ.prototype;_.t.getWithPath=function(a){return eC9(this.JSC$11169_getImpl(),a)};
_.t.setWithPath=function(a,W){var w=this;if(a.length)throw Error("lg");if(!this.JSC$11169_setImpl)throw Error("mg");va(function(){w.JSC$11169_setImpl(W)})};
_.t.notifyPath=function(){throw Error("ng");};
_.t.notifySplices=function(){throw Error("og");};
_.t.getChangeRecordSignal=function(a,W){var w=this;if(a.length)throw Error("pg");return function(){var Z=w.getWithPath(a);return{path:W!=null?W:"",base:Z,value:Z}}};
_.t.getSplicesSignal=function(){throw Error("qg");};
_.t.getPathMutationSignal=function(){throw Error("rg");};
_.t.pop=function(){throw Error("sg");};
_.t.push=function(){throw Error("tg");};
_.t.splice=function(){throw Error("ug");};
_.t.unshift=function(){throw Error("vg");};var S7=function(a){var W=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(a)||a instanceof Array?(this.JSC$11174_getImpl=a[0],this.JSC$11174_setImpl=a[1]):this.JSC$11174_getImpl=a;this.wasDefined=!1;to(function(){W.wasDefined=W.JSC$11174_getImpl()!==void 0})};
S7.prototype.getWithPath=function(a){return eC9(this.JSC$11174_getImpl(),a)};
S7.prototype.setWithPath=function(a,W){var w=this;if(a[a.length-1]!=="*"&&a[a.length-1]!=="splices"){if(a.length===0){if(!this.JSC$11174_setImpl)throw Error("wg");this.wasDefined||(this.wasDefined=W!==void 0);va(function(){w.JSC$11174_setImpl(W)})}else{for(var Z=to(function(){return w.getWithPath([])}),N=0;N<a.length-1;N++){if(!Z)return;
Z=Z[a[N]]}N=a[a.length-1];Z&&(Z[N]=W);this.wasDefined||(this.wasDefined=a.length>1||W!==void 0)}sjJ(this,a,{pathComponents:a,value:W})}};
S7.prototype.notifyPath=function(a,W){a.length===0?W&&this.setWithPath(a,W.value):sjJ(this,a,{pathComponents:a,value:W==null?void 0:W.value,fallbackWhenUndefined:W==null?void 0:W.value})};
var sjJ=function(a,W,w,Z){if(a.setMutationSignal){var N=++a.mutationIndex,B=[a.observedPath],I=a.observedPath,X;W.length===0&&(X=I);for(var v=0;v<W.length;v++){var U=I.subPaths[W[v]];if(!U)break;B.push(U);I=U;v===W.length-1&&(X=U)}for(W=!1;B.length;)I=B.shift(),I.data={index:N,mutation:w,spliceMutationIndex:Z},W||(W=I===X),W&&B.push.apply(B,_.K8(Object.values(I.subPaths)));va(function(){a.setMutationSignal(N)})}};
S7.prototype.notifySplices=function(a,W){var w=this,Z=to(function(){return w.getWithPath(a)}),N=[].concat(_.K8(a),["splices"]);
sjJ(this,N,{pathComponents:N,value:{indexSplices:W}});if(Z==null?0:Z.length)W=this.mutationIndex,N=[].concat(_.K8(a),["length"]),sjJ(this,N,{pathComponents:N,value:Z.length},W)};
var uyy=function(a,W,w,Z,N,B){a.notifySplices(w,[{index:Z,addedCount:N,removed:B,object:W,type:"splice"}])},CuR=function(a,W){a=a.observedPath;
for(var w=0;w<W.length;w++){var Z=W[w],N=a.subPaths[Z];N||(N={pathComponents:W.slice(0,w+1),subPaths:{}},a.subPaths[Z]=N);a=N}},D$T=function(a,W,w){CuR(a,W);
if(!a.getMutationSignal){var Z=_.l(_.$1(a.mutationIndex,void 0,"HavCgf"));a.getMutationSignal=Z.next().value;a.setMutationSignal=Z.next().value}var N=a.getMutationSignal;return _.XT(function(){N();return w(GWh(a,W))},void 0,"BYaPo")};
S7.prototype.getChangeRecordSignal=function(a,W){var w=this,Z=this.mutationIndex,N;return D$T(this,a,function(B){if(B&&B.index>Z){var I=B.mutation;Z=B.index;N=void 0}B=to(function(){return w.getWithPath(a)});
if(I){var X=I.pathComponents[I.pathComponents.length-1],v=[].concat(_.K8(I.pathComponents));if(X==="splices"||X==="length")return{base:B,path:(W?[W].concat(_.K8(v)):v).join("."),value:I.value};var U=a.length>v.length?a:v,O;return{base:B!=null?B:I.fallbackWhenUndefined,path:(W?[W].concat(_.K8(U)):U).join("."),value:(O=to(function(){return w.getWithPath(U)}))!=null?O:I.fallbackWhenUndefined}}N||(N={base:B,
path:(W?[W].concat(_.K8(a)):a).join("."),value:B});return N})};
S7.prototype.getSplicesSignal=function(a){var W=this.mutationIndex,w;return D$T(this,a,function(Z){if(Z&&Z.index>W&&Z.spliceMutationIndex!==W){var N=Z.mutation;W=Z.index;w=void 0}return N&&N.pathComponents[N.pathComponents.length-1]==="splices"?w=Z=N.value:w})};
S7.prototype.getPathMutationSignal=function(a){var W=this;CuR(this,a);if(!this.getMutationSignal){var w=_.l(_.$1(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=w.next().value;this.setMutationSignal=w.next().value}var Z=this.getMutationSignal,N=this.mutationIndex,B;return _.XT(function(){Z();var I=GWh(W,a);if(I&&I.index>N&&I.mutation&&nlD(I.mutation.pathComponents,a)){var X=I.mutation;N=I.index}if(!B||N!==B.index){var v,U;I=(U=to(function(){return W.getWithPath(a)}))!=null?U:(v=X)==null?
void 0:v.fallbackWhenUndefined;
B={index:N,value:I}}return B},void 0,"Aumsyf")};
var GWh=function(a,W){a=a.observedPath;W=_.l(W);for(var w=W.next();!w.done;w=W.next())a=a.subPaths[w.value];return a.data};
S7.prototype.pop=function(a){var W=this,w=to(function(){return W.getWithPath(a)});
if(!(w instanceof Array))throw Error("xg");var Z=w.length>0,N=w.pop();Z&&uyy(this,w,a,w.length,0,[N]);return N};
S7.prototype.push=function(a){var W=_.TH.apply(1,arguments),w=this,Z=to(function(){return w.getWithPath(a)});
if(!(Z instanceof Array))throw Error("yg");var N=Z.length,B=Z.push.apply(Z,_.K8(W));W.length&&uyy(this,Z,a,N,W.length,[]);return B};
S7.prototype.splice=function(a,W,w){var Z=_.TH.apply(3,arguments),N=this,B=to(function(){return N.getWithPath(a)});
if(!(B instanceof Array))throw Error("zg");W<0?W=B.length-Math.floor(-W):W&&(W=Math.floor(W));var I=B.splice.apply(B,[W,w].concat(_.K8(Z)));(Z.length||I.length)&&uyy(this,B,a,W,Z.length,I);return I};
S7.prototype.unshift=function(a){var W=_.TH.apply(1,arguments),w=this,Z=to(function(){return w.getWithPath(a)});
if(!(Z instanceof Array))throw Error("Ag");var N=Z.unshift.apply(Z,_.K8(W));W.length&&uyy(this,Z,a,0,W.length,[]);return N};var fmA=!0,d$J=!1,Xk8=!1,m$J=!1,YH=!1,Vv6=0;m$J=!1;Vv6=0;fmA=!0;YH=d$J=Xk8=!1;var TR=function(a,W,w){this.model=a;this.unknownSignalResolver=W;this.options=w;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];W=_.l(xle());a=W.next().value;W=W.next().value;this.owner=a;this.disposeImpl=W};
TR.prototype.dispose=function(){if(!this.isDisposed){for(var a=_.l(this.childSignalProxies),W=a.next();!W.done;W=a.next())W.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var zfL=function(a,W){a=GO(a.owner);try{W()}finally{GO(a)}};
TR.prototype.effect=function(a){zfL(this,function(){_.pa(a)})};
var HPh=function(a,W){a.options!=null||(a.options={});var w;(w=a.options).immutableProps!=null||(w.immutableProps=new Set);a.options.immutableProps.add(W)},PQE=function(a,W){W=""+W;
yRE(a,W);var w;if((w=a.model.__signalCache)==null?0:w.has(W))w=a.model.__signalCache.get(W),Array.isArray(w)&&HPh(a,W);var Z,N,B;return(B=(Z=a.options)==null?void 0:(N=Z.immutableProps)==null?void 0:N.has(W))!=null?B:!1},ExL=function(a,W){var w;
a.unknownSignalResolver&&(w=a.unknownSignalResolver(W));var Z,N;((Z=a.options)==null?0:(N=Z.immutableProps)==null?0:N.has(W))?w!=null||(w=new bPJ(_.$1(a.model[W],void 0,"Xu3svb"))):w!=null||(w=new S7(_.$1(a.model[W],void 0,"NgC9n")));var B=a.model.hostElement;Object.defineProperty(a.model,W,{get:function(){IUS(B,W);return w.getWithPath([])},
set:function(I){vA(B,W);a.setWithPath([W],I)},
configurable:!0});return w},yRE=function(a,W){var w,Z,N;
((w=a.model.__signalCache)==null||!w.has(W))&&((Z=a.options)==null?0:(N=Z.externalSignalProps)==null?0:N.has(W))&&a.model[W]},r$=function(a,W){W=""+W;
var w=a.signalCache[W];if(w!==void 0)return w;w=!1;yRE(a,W);var Z;if((Z=a.model.__signalCache)==null?0:Z.has(W))if(w=a.model.__signalCache.get(W),Array.isArray(w))w=!0,HPh(a,W);else return a.signalCache[W]=a.model.__signalCache.get(W).signal,a.signalCache[W];var N,B;Z=(B=(N=a.options)==null?void 0:N.reactivityMode)!=null?B:0;var I,X;if(!((I=a.options)==null?0:(X=I.reactiveProps)==null?0:X.has(W))&&!w&&Z===1)throw Error("Bg`"+W);N=w?aIl(a,W):ExL(a,W);return a.signalCache[W]=N},aIl=function(a,W){var w=
Object.getOwnPropertyDescriptor(a.model.constructor.prototype,W),Z=function(){return a.model[W]};
return new bPJ(w&&w.get&&!w.set?Z:[Z,function(N){a.model[W]=N}])};
TR.prototype.getWithPath=function(a){var W=_.l(a);a=W.next().value;W=bJ(W);IUS(this.model.hostElement,""+a);return r$(this,a).getWithPath(W)};
TR.prototype.setWithPath=function(a,W){if(a.length){vA(this.model.hostElement,a.join("."));var w=_.l(a);a=w.next().value;w=bJ(w);r$(this,a).setWithPath(w,W)}};
TR.prototype.getPathMutationSignal=function(a){var W=_.l(a);a=W.next().value;W=bJ(W);return r$(this,a).getPathMutationSignal(W)};
TR.prototype.notifyPath=function(a,W){var w=_.l(a);a=w.next().value;w=bJ(w);r$(this,a).notifyPath(w,W)};
var W0E=function(a,W){if(W.type==="literal")return function(){return{rootWasDefined:!0,value:W.value}};
var w=Kp(W.path),Z=_.l(w),N=Z.next().value;Z=bJ(Z);var B,I;if(W.type==="path"&&(w.length===1||((B=a.options)==null?0:(I=B.immutableProps)==null?0:I.has(N))))return function(){var S=a.getWithPath(w.slice(0,1)),T=eC9(S,w.slice(1));S=S!==void 0;YH&&(S=r$(a,w[0]).wasDefined);return{rootWasDefined:S,value:T}};
var X=r$(a,N);if(W.type==="path"){var v=X.getPathMutationSignal(Z);return function(){var S=YH?X.wasDefined:ca(a.owner,function(){return X.getWithPath([])})!==void 0;
var T,p=(T=v())==null?void 0:T.value;return{rootWasDefined:S,value:p}}}if(W.type==="splices"){var U=X.getSplicesSignal(Z);
return function(){var S=U();return{rootWasDefined:YH?X.wasDefined:S!==void 0,value:S}}}var O=X.getChangeRecordSignal(Z,""+N);
return function(){var S=O();return{rootWasDefined:YH?X.wasDefined:S!==void 0,value:S}}},RC9=function(a,W,w){var Z=w.map(function(X){return W0E(a,X)}),N=w.length===0,B=[],I=w.length!==1||w[0].type!=="path"?!1:!0;
a.effect(function(){for(var X=Z.length,v=[],U=!!B.length,O=0;O<X;O++){var S=Z[O](),T=S.rootWasDefined;S=S.value;N||(N=T);v[O]=S;I&&(v[O+X]=U?B[O]:v[O],B[O]=S)}N&&ca(a.owner,function(){return void W.apply(null,_.K8(v))})})},jy8=function(a,W,w,Z,N){var B=r$(a,W);
N!==void 0&&B.setWithPath([],N);RC9(a,function(){var I=_.TH.apply(0,arguments);vA(a.model.hostElement,W,!0);B.setWithPath([],w.apply(null,_.K8(I)))},Z)};
TR.prototype.arrayPush=function(a){var W=_.TH.apply(1,arguments),w=_.l(a),Z=w.next().value;w=bJ(w);Z=r$(this,Z);return Z.push.apply(Z,[w].concat(_.K8(W)))};
TR.prototype.arraySplice=function(a,W,w){var Z=_.TH.apply(3,arguments),N=_.l(a),B=N.next().value;N=bJ(N);B=r$(this,B);return B.splice.apply(B,[N,W,w].concat(_.K8(Z)))};
TR.prototype.arrayUnshift=function(a){var W=_.TH.apply(1,arguments),w=_.l(a),Z=w.next().value;w=bJ(w);Z=r$(this,Z);return Z.unshift.apply(Z,[w].concat(_.K8(W)))};
TR.prototype.notifySplices=function(a,W){var w=_.l(a);a=w.next().value;w=bJ(w);r$(this,a).notifySplices(w,W)};var Dl9=/([^\s]+?)\(([\s\S]*)\)/,u07=/\.([^.]+)$/,dlv=/\\,/g,bdF=/&comma;/g,syE=/\\(.)/g,fU8=[],CCe={"*":"wildcard",splices:"splices"};var ZfS=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"),Elm=/[A-Z]/,wth=["class","hidden","id","on-dom-change"],t8x=new Set([].concat(_.K8(wth),
["if","notify-dom-change","restamp"])),$re=new Set([].concat(_.K8(wth),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),BMv=new Set(["restamp"]);var tYm=new Set(["className","id"]);var vvm=Symbol(),YPe=window;var cEE=window;var M8S=0,jDI=0,At=[],Fb8=0,nvI=!1,JE8=document.createTextNode("");(new window.MutationObserver(LbS)).observe(JE8,{characterData:!0});var iO=new Map,ht=0,ZTV=function(a){this.mappedHandleId=a},qPH=function(a,W,w,Z){this.mappedHandleId=a;
var N=this;this.mappedHandleId=a;this.callback=W;this.waitTime=w;this.schedulerPriority=Z;this.handleId=_.hF.addJob(function(){N.callback();iO.delete(N.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.c(qPH,ZTV);qPH.prototype.cancel=function(){_.hF.cancelJob(this.handleId);iO.delete(this.mappedHandleId)};
var QDU=function(a,W){this.mappedHandleId=a;var w=this;this.mappedHandleId=a;this.callback=W;this.handleId=Rtx(function(){w.callback();iO.delete(w.mappedHandleId)})};
_.c(QDU,ZTV);QDU.prototype.cancel=function(){var a=this.handleId-jDI;a<0||At.length<=a||(At[a]=null);iO.delete(this.mappedHandleId)};var uJE=function(){};
uJE.prototype.cancel=function(){this.jobHandle!==void 0&&(xr7(this.jobHandle),this.jobHandle=void 0)};
uJE.prototype.run=function(a,W,w){var Z=this;this.cancel();this.callback=a;this.jobHandle=_.cA(function(){a();Z.callback=void 0},W,w)};
uJE.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var bfe=new WeakMap;var NxA=mv(function(a){for(var W=a,w=0;w<3;w++)W=Object.getPrototypeOf(W);delete W.prototype.connectedCallback;var Z=function(){return a.apply(this,arguments)||this};
_.c(Z,a);Z.prototype._attachDom=function(N){if(!N)return null;var B=(0,_.zX)(this.hostElement);B.attachShadow({mode:"open",shadyUpgradeFragment:N});B.shadowRoot.appendChild(N);return B.shadowRoot};
Z.prototype._takeAttributes=function(){for(var N=this.hostElement.attributes,B=0;B<N.length;B++){var I=N[B],X=void 0,v=void 0;(v=(X=this).__attributeReaction)==null||v.call(X,I.name,null,I.value)}};
Z.prototype._readyClients=function(){a.prototype._readyClients.call(this);this.root=this};
Z.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);a.prototype.connectedCallback.call(this)};
_.dU.Object.defineProperties(Z,{template:{configurable:!0,enumerable:!0,get:function(){return Z.prototype._template}}});
return Z}),tYL=mv(function(a){var W=function(){return a.apply(this,arguments)||this};
_.c(W,a);W.prototype.created=function(){if(this.__notifyEffects)for(var w=_.l(Object.values(this.__notifyEffects)),Z=w.next();!Z.done;Z=w.next()){Z=_.l(Z.value);for(var N=Z.next();!N.done;N=Z.next())N.value.fn=fvm}if(this.__reflectEffects)for(w=_.l(Object.values(this.__reflectEffects)),Z=w.next();!Z.done;Z=w.next())for(Z=_.l(Z.value),N=Z.next();!N.done;N=Z.next())N.value.fn=dre};
W.prototype._addEventListenerToNode=function(w,Z,N){w=np(w);cH(w,Z,N)||a.prototype._addEventListenerToNode.call(this,w,Z,N)};
W.prototype._removeEventListenerFromNode=function(w,Z,N){w=np(w);e2(w,Z,N)||a.prototype._removeEventListenerFromNode.call(this,w,Z,N)};
W.prototype._propertiesChanged=function(w,Z,N){if(this.__dataToNotify&&this.__notifyEffects)for(var B=_.l(Object.keys(this.__dataToNotify)),I=B.next();!I.done;I=B.next()){I=I.value;var X=Drv(I);this.__notifyEffects[X]||delete this.__dataToNotify[I]}else this.__dataToNotify=null;a.prototype._propertiesChanged.call(this,w,Z,N)};
W.prototype.fire=function(w,Z,N){Z=Z===void 0?{}:Z;var B;return _.E$(np((B=N==null?void 0:N.node)!=null?B:this),w,Z,N)};
W.prototype._ensureAttribute=function(w,Z){var N=np(this);N.hasAttribute(w)||pp(N,Z,w)};
W.prototype.isLightDescendant=function(w){var Z=np(this);return np(Z)!==w&&_.M(Z).contains(w)&&_.M(Z).getRootNode()===_.M(w).getRootNode()};
return W});
_.TN.ready=function(){var a;((a=this.hostElement)!=null?a:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var W;((W=this.hostElement)!=null?W:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.eG._subscribeIronResize=function(a){var W;((W=a.hostElement)!=null?W:a).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.eG._unsubscribeIronResize=function(a){var W;((W=a.hostElement)!=null?W:a).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var zte=[Array,Boolean,Date,Number,Object,String],Lp=function(a,W,w,Z){this.polySiInfo=a;this.polySiParams=W;this.polySiContext=w;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;Z||this instanceof HTMLElement&&(Z=this);if(!Z)throw Error("Ig");this.allowedProps=W.allowedProps;this.hostElement=Z;this.is=a.is;this.upgradeDisabled=!!W.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");a=new Set(W.reactiveSchemas.filter(function(N){return N.type!==
"observe"}).map(function(N){return N.propertyKey}));
this.signalProxy=new TR(this,void 0,{reactiveProps:a,reactivityMode:W.reactivityMode});this.__dataHasAccessor={};W=_.l(W.reactiveSchemas);for(a=W.next();!a.done;a=W.next())a=a.value,a.type==="signal"&&(this.__dataHasAccessor[a.propertyKey]=!0);this.upgradeDisabled||$CL(this)};
Lp.prototype.getExtraMethodsToForward=function(){return[]};
var $CL=function(a){a.polySiContext.didRegister||(a.registered(),a.polySiContext.didRegister=!0);a.polySiContext.finalizedTemplate||(a.polySiContext.finalizedTemplate={},a.polySiParams.templateGetter&&(a.polySiContext.finalizedTemplate.processedTemplate=etI(a.polySiParams.templateGetter,a.polySiParams.is)));BxV(a);var W=a.hostElement;W.loggingStatus!=null||(W.loggingStatus={});W.loggingStatus.isInitializing=!0;to(function(){return void a.created()});
W.loggingStatus.isInitializing=!1;a.isPolySiElementConnected&&lIh(a)},lIh=function(a){a.didCallReady||(to(function(){return void a.ready()}),a.didCallReady=!0);
a.isAttached=!0;a.attached()};
_.t=Lp.prototype;_.t.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||lIh(this)};
_.t.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.t.attributeChangedCallback=function(a,W,w){if(this.upgradeDisabled)a==="disable-upgrade"&&w===null&&(this.upgradeDisabled=!1,$CL(this));else if(W!==w){var Z=_.gQ(a),N=this.polySiContext.typesForSignals[Z];if(N&&(!this.reflecting||_.r("polysi_attribute_changed_serializing_killswitch"))){switch(N){case Object:try{var B=JSON.parse(w)}catch(X){B=w}break;case Array:try{B=JSON.parse(w)}catch(X){B=null}break;case Date:B=isNaN(w)?String(w):Number(w);B=new Date(B);break;case Boolean:B=w!==null;break;case Number:B=
Number(w);break;default:B=w}this[Z]=B}Z=_.l(this.polySiParams.behaviors);for(N=Z.next();!N.done;N=Z.next())B=void 0,(B=N.value.attributeChanged)==null||B.call(this,a,W,w);var I;(I=this.attributeChanged)==null||I.call(this,a,W,w)}};
_.t.attributeChangedCallbackWrapper=function(a,W,w){this.attributeChangedCallback(a,W,w)};
_.t.setPropertiesFromInitialAttributeValues=function(){for(var a=0;a<this.hostElement.attributes.length;a++){var W=this.hostElement.attributes[a];(W.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(W.name))&&this.attributeChangedCallback(W.name,null,W.value)}};
_.t.created=function(){this.provide=this.polySiParams.provide;var a;(a=this.initializeInjection)==null||a.call(this);a=_.l(this.polySiParams.reactiveSchemas);for(var W=a.next();!W.done;W=a.next())W=W.value,W.type==="signal"&&(this.mutablePropNames.add(W.propertyKey),r$(this.signalProxy,W.propertyKey));V8U(this,this.polySiInfo,this.polySiParams.behaviors);a=_.l(this.polySiParams.reactiveSchemas);for(W=a.next();!W.done;W=a.next())W=W.value,W.type==="signal"&&W.value!==void 0&&(this.signalProxy.model[W.propertyKey]=
typeof W.value==="function"?W.value.call(this):W.value);if(this.polySiParams.signalProperties)for(a=_.l(this.polySiParams.signalProperties),W=a.next();!W.done;W=a.next()){W=W.value;var w=void 0;((w=this.__signalCache)==null?0:w.has(W))||(this.signalProxy.model[W]=void 0)}m$J||IIh(this);mrF(this);a=_.l(this.polySiParams.behaviors);for(W=a.next();!W.done;W=a.next())w=void 0,(w=W.value.created)==null||w.call(this);var Z;(Z=this.polySiInfo.created)==null||Z.call(this)};
_.t.registered=function(){var a=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var W=Object.getPrototypeOf(this);W.addReactiveSchema=function(X){a.polySiParams.reactiveSchemas.push(X)};
for(var w=_.l(this.polySiParams.behaviors),Z=w.next();!Z.done;Z=w.next()){var N=void 0;(N=Z.value.beforeRegister)==null||N.call(W)}var B;(B=this.polySiInfo.beforeRegister)==null||B.call(W);W.addReactiveSchema=yEI;w=_.l(this.polySiParams.behaviors);for(Z=w.next();!Z.done;Z=w.next())N=void 0,(N=Z.value.registered)==null||N.call(W);var I;(I=this.polySiInfo.registered)==null||I.call(W)};
_.t.ready=function(){var a;(a=this.beforeReady)==null||a.call(this);m$J&&IIh(this);var W;if(a=(W=this.polySiContext.finalizedTemplate)==null?void 0:W.processedTemplate){a=ifC(a.template,a.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:a.hasInsertionPoint,thisCtx:this});W=a.nodesById;a=a.root;var w=this.hostElement;var Z=Z===void 0?!1:Z;w=(0,_.zX)(w);if(!w.attachShadow)throw Error("Cd");if(!w.shadowRoot||Z)w.attachShadow({mode:"open",shadyUpgradeFragment:a}),w.shadowRoot.appendChild(a);
this.root=w.shadowRoot;this.$=W}P$e(this);Z=_.l(this.polySiParams.behaviors);for(W=Z.next();!W.done;W=Z.next())a=void 0,(a=W.value.ready)==null||a.call(this);var N;(N=this.polySiInfo.ready)==null||N.call(this)};
_.t.attached=function(){for(var a=_.l(this.polySiParams.behaviors),W=a.next();!W.done;W=a.next()){var w=void 0;(w=W.value.attached)==null||w.call(this)}var Z;(Z=this.polySiInfo.attached)==null||Z.call(this)};
_.t.detached=function(){for(var a=_.l(this.polySiParams.behaviors),W=a.next();!W.done;W=a.next()){var w=void 0;(w=W.value.detached)==null||w.call(this)}var Z;(Z=this.polySiInfo.detached)==null||Z.call(this)};
var BxV=function(a){for(var W=_.l(a.polySiParams.behaviors),w=W.next();!w.done;w=W.next())if(w=w.value,w.listeners)for(var Z in w.listeners)htm(a,a.hostElement,Z,w.listeners[Z]);if(a.polySiInfo.listeners)for(var N in a.polySiInfo.listeners)htm(a,a.hostElement,N,a.polySiInfo.listeners[N])},htm=function(a,W,w,Z,N){a=cVE(a,Z,N);
cH(W,w,a)||W.addEventListener(w,a);return a},IIh=function(a){for(var W=_.l(a.polySiParams.reactiveSchemas),w=W.next();!w.done;w=W.next())w=w.value,w.type==="compute"||w.type==="computeWithMethod"?LRI(a.signalProxy,w,a):w.type==="redux"?MdF(a.signalProxy,w,a.store):w.type==="signal"&&w.readOnly&&FRH(a.signalProxy,w)},P$e=function(a){for(var W=_.l(a.polySiParams.reactiveSchemas),w=W.next(),Z={};!w.done;Z={schema$jscomp$12:void 0},w=W.next())Z.schema$jscomp$12=w.value,Z.schema$jscomp$12.type==="notify"?
quF(a.signalProxy,Z.schema$jscomp$12,a.hostElement):Z.schema$jscomp$12.type==="observe"?Qy9(a.signalProxy,Z.schema$jscomp$12,a):Z.schema$jscomp$12.type==="reflect"&&a.signalProxy.effect(function(B){return function(){var I=a.signalProxy.getWithPath([B.schema$jscomp$12.propertyKey]);
a.reflecting=!0;Vd7(a.hostElement,B.schema$jscomp$12.propertyKey,I,!0);a.reflecting=!1}}(Z));
if(a.reflectedAttributes)for(W=_.l(Object.entries(a.reflectedAttributes)),Z=W.next(),w={};!Z.done;w={key$jscomp$873:void 0,value$jscomp$8802:void 0},Z=W.next()){var N=_.l(Z.value);Z=N.next().value;N=N.next().value;w.key$jscomp$873=Z;w.value$jscomp$8802=N;a.signalProxy.effect(function(B){return function(){a.reflecting=!0;Vd7(a.hostElement,B.key$jscomp$873,(0,B.value$jscomp$8802)(),!0);a.reflecting=!1}}(w))}};
_.t=Lp.prototype;_.t._setPendingProperty=function(a,W){this.set(a,W);return!1};
_.t._enableProperties=function(){};
_.t._setPendingPropertyOrPath=function(a,W){this.notifyPath(a,W);return!1};
_.t._addPropertyEffect=function(){};
_.t._stampTemplate=function(){throw Error("Jg");};
_.t.fire=function(a,W,w){W=W===void 0?{}:W;w=w===void 0?{}:w;var Z,N,B={bubbles:(Z=w.bubbles)!=null?Z:!0,cancelable:!!w.cancelable,composed:(N=w.composed)!=null?N:!0},I;return _.E$(EvC((I=w.node)!=null?I:this.hostElement),a,W,B)};
_.t.get=function(a,W){var w=Kp(a);return W?eC9(W,w):a==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(w)};
_.t.linkPaths=function(){};
_.t.listen=function(a,W,w){a=EvC(a);this.boundListeners!=null||(this.boundListeners=new WeakMap);var Z=this.boundListeners.get(a);Z||(Z={},this.boundListeners.set(a,Z));var N=W+w;Z[N]||(Z[N]=htm(this,a,W,w))};
_.t.notifyPath=function(a,W){this.signalProxy.notifyPath(Kp(a),arguments.length===2?{value:W}:void 0)};
_.t.canNotifyPath=function(a){var W,w;return this.mutablePropNames.has(a)&&!((W=this.signalProxy.options)==null?0:(w=W.immutableProps)==null?0:w.has(a))};
_.t.notifySplices=function(a,W){this.signalProxy.notifySplices(Kp(a),W)};
_.t.pop=function(a){var W=this.signalProxy;a=Kp(a);var w=_.l(a);a=w.next().value;w=bJ(w);return r$(W,a).pop(w)};
_.t.push=function(a){var W=_.TH.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Kp(a)].concat(_.K8(W)))};
_.t.set=function(a,W,w){if(w)throw Error("Kg");a==="hidden"?this.hostElement.hidden=!!W:this.signalProxy.setWithPath(Kp(a),W)};
_.t.setProperties=function(a){a=_.l(Object.entries(a));for(var W=a.next();!W.done;W=a.next()){var w=_.l(W.value);W=w.next().value;w=w.next().value;this[W]=w}};
_.t.splice=function(a,W,w){var Z=_.TH.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Kp(a),W,w].concat(_.K8(Z)))};
_.t.unlinkPaths=function(){};
_.t.unlisten=function(a,W,w){a=EvC(a);if(this.boundListeners){var Z=this.boundListeners.get(a);if(Z){w=W+w;var N=Z[w];N&&(e2(a,W,N)||a.removeEventListener(W,N),delete Z[w])}}};
_.t.unshift=function(a){var W=_.TH.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Kp(a)].concat(_.K8(W)))};
_.dU.Object.defineProperties(Lp.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 PuC=[Array,Boolean,Date,Number,Object,String];var gx7=!1;var KN=function(){var a=HTMLElement.apply(this,arguments)||this;a.restamp=!1;a.notifyDomChange=!1;a.JSC$11282_didCallConnected=!1;a.JSC$11282_renderDebouncer=null;a.disableTemplateUpdateSignalImpl=Jt()?void 0:_.$1(!1,void 0,"zLXz1e");var W;a.getDisableTemplateUpdate=(W=a.disableTemplateUpdateSignalImpl)==null?void 0:W[0];var w;a.setDisableTemplateUpdate=(w=a.disableTemplateUpdateSignalImpl)==null?void 0:w[1];return a};
_.c(KN,HTMLElement);var XtV=function(a){a.conditionSignalImpl!=null||(a.conditionSignalImpl=new S7(_.$1(!1,void 0,"wcuOQ")));return a.conditionSignalImpl};
_.t=KN.prototype;_.t.showHideChildren=function(a){vwH(this,a,this.if)};
_.t.attributeChangedCallback=function(a,W,w){if(this.JSC$11282_didCallConnected)throw Error("Og`"+a);a==="notify-dom-change"?this.notifyDomChange=w!==null:a==="restamp"&&(this.restamp=w!==null)};
_.t.debounceRender=function(){this.JSC$11282_renderDebouncer=_.tA(this.JSC$11282_renderDebouncer,j2,this.JSC$11282_renderImpl.bind(this));_.$i(this.JSC$11282_renderDebouncer)};
_.t.disconnectedCallback=function(){var a=(0,_.zX)(this).parentNode;(!a||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in a&&!a.host)&&gwV(this)};
_.t.connectedCallback=function(){var a=this;this.JSC$11282_didCallConnected=!0;fmA?oxx():this.style.display="none";this.parentSignalProxy.effect(function(){XtV(a).getWithPath([]);a.debounceRender()})};
_.t.render=function(){_.Pn()};
_.t.JSC$11282_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var a=this.if;if(a){a:{var W=(0,_.zX)(this).parentNode;if(this.hasInstance()){var w=this.instance.children;if((w==null?0:w.length)&&(0,_.zX)(this).previousSibling!==w[w.length-1])for(var Z=0;Z<w.length;Z++)(0,_.zX)(W).insertBefore(w[Z],this)}else{if(!W){W=!1;break a}ow_(this,W)}W=!0}if(!W)return}else this.restamp&&gwV(this);vwH(this,!1,a);a&&kgh(this);d$J&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.t.hasInstance=function(){return!!this.instance};
var ow_=function(a,W){var w=a.parentSignalProxy;if(Jt()){var Z=_.l(_.$1(!0,void 0,"wXzgnc"));var N=Z.next().value;Z=Z.next().value;w=a.parentSignalProxy}else{var B;var I=new TR((B=UC6(a))!=null?B:{},function(v){var U=r$(a.parentSignalProxy,v).getChangeRecordSignal([]);v=_.$1(void 0,void 0,"mryEkc");var O=new S7(v);I.effect(function(){if(a.getDisableTemplateUpdate&&!a.getDisableTemplateUpdate()){var S=U();O.notifyPath(Kp(S.path),{value:S.value})}});
return O});
a.parentSignalProxy.childSignalProxies.push(I);var X=w=I}w=ifC(a.templateInfo,a.templateInfo.nodeInfoList,w,{eventListenerHost:a.eventListenerHost,hasInsertionPoint:a.templateInfo.hasInsertionPoint,thisCtx:a.eventListenerHost,enabledSignal:Jt()?N:void 0,getModel:function(){return UC6(a)}}).root;
a.instance={root:w,children:[],hidden:!1,signalProxy:X,getTemplateUpdatesEnabled:N,setTemplateUpdatesEnabled:Z};X=_.l(w.childNodes);for(N=X.next();!N.done;N=X.next())a.instance.children.push(N.value);(0,_.zX)(W).insertBefore(a.instance.root,a)},UC6=function(a){if((a=a.parentSignalProxy.model)&&!a.hostElement){var W={},w;
for(w in a)a.hasOwnProperty(w)&&(W[w]=a[w]);return W}},gwV=function(a){if(a.instance){var W=a.instance.children;
if(W.length){var w=(0,_.zX)(W[0]).parentNode;if(w){w=(0,_.zX)(w);for(var Z=0;Z<W.length;Z++)w.removeChild(W[Z])}}Jt()?a.instance.setTemplateUpdatesEnabled(!1):a.instance.signalProxy.dispose();a.instance=void 0}},vwH=function(a,W,w){W=W||!w;
a.instance&&a.instance.hidden!==W&&(a.instance.hidden=W,vxe(W,a.instance.children))},kgh=function(a){if(Jt()){var W=a.instance;
W&&ca(a.parentSignalProxy.owner,function(){return!W.getTemplateUpdatesEnabled()})&&W.setTemplateUpdatesEnabled(!0)}else a.setDisableTemplateUpdate(!1)};
_.dU.Object.defineProperties(KN.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var a=this;return ca(this.parentSignalProxy.owner,function(){return XtV(a).getWithPath([])})},
set:function(a){a||(Jt()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));XtV(this).setWithPath([],!!a)}}});
_.dU.Object.defineProperties(KN,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",KN);var OTh=[],r4=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$11289_renderDebouncer=null;a.instances=[];a.chunkingId=null;a.chunkCount=null;a.shouldMeasureChunk=!1;a.shouldContinueChunking=!1;a.renderStartTime=null;a.JSC$11289_didCallConnected=!1;return a};
_.c(r4,HTMLElement);var SrJ=function(a){a.itemSignalImpl!=null||(a.itemSignalImpl=new S7(_.$1(OTh,void 0,"YBrqgf")));return a.itemSignalImpl},YrT=function(a,W){Array.isArray(W)||(W=OTh);
SrJ(a).setWithPath([],W)};
_.t=r4.prototype;_.t.showHideChildren=function(a){for(var W=_.l(this.instances),w=W.next();!w.done;w=W.next())vxe(a,w.value.children)};
_.t.notifyPath=function(a,W){a=Kp(a);a[0]==="items"&&(a.length===1?YrT(this,W):SrJ(this).setWithPath(a.slice(1),W))};
_.t.canNotifyPath=function(a){return a==="items"};
_.t.attributeChangedCallback=function(a,W,w){if(this.JSC$11289_didCallConnected)throw Error("Pg`"+a);a==="as"?this.as=w:a==="index-as"?this.indexAs=w:a==="items-index-as"?this.itemsIndexAs=w:a==="initial-count"?this.initialCount=Number(w):a==="notify-dom-change"?this.notifyDomChange=w!==null:a==="target-framerate"&&(this.targetFramerate=Number(w))};
_.t.disconnectedCallback=function(){this.isDetached=!0;for(var a=0;a<this.instances.length;a++)Tx6(this,a);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.t.connectedCallback=function(){var a=this,W=SrJ(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var N=W(),B=Kp(N.path);if(B[0]===void 0||B[0]==="splices"||B[0]==="length")a.debounceRender();else{var I=B[0];if(I=a.instances[typeof I==="string"?Math.floor(Number(I)):I])B=[a.as].concat(_.K8(B.slice(1))),I.signalProxy.notifyPath(B,N)}});
this.JSC$11289_didCallConnected=!0;fmA?oxx():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var w=(0,_.zX)((0,_.zX)(this).parentNode),Z=0;Z<this.instances.length;Z++)w.insertBefore(this.instances[Z].root,this);this.chunkingId&&this.render()}};
_.t.debounceRender=function(){this.JSC$11289_renderDebouncer=_.tA(this.JSC$11289_renderDebouncer,j2,this.JSC$11289_renderImpl.bind(this));_.$i(this.JSC$11289_renderDebouncer)};
_.t.render=function(){this.debounceRender();_.Pn()};
_.t.JSC$11289_renderImpl=function(){var a=this,W=this.items,w=K0T(this,W.length);ptR(this,W,w);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){a.chunkingId=null;if(a.shouldMeasureChunk){var Z=performance.now()-a.renderStartTime;a.chunkCount=Math.round(Math.ceil(1E3/a.targetFramerate)/Z*a.chunkCount)||1}a.shouldContinueChunking&&a.debounceRender()}));
d$J&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var K0T=function(a,W){var w=W,Z=a.instances.length;if(a.initialCount){if(a.chunkCount){var N=Math.min(Math.max(W-Z,0),a.chunkCount);w=Math.min(Z+N,W)}else w=Math.min(W,a.initialCount),N=Math.max(w-Z,0),a.chunkCount=N||1;a.shouldMeasureChunk=N===a.chunkCount;a.shouldContinueChunking=w<W;a.renderStartTime=performance.now()}return w},ptR=function(a,W,w){for(var Z=0;Z<w;Z++){var N=a.instances[Z],B=W[Z];
N?(N.signalProxy.setWithPath([a.as],B),N.signalProxy.setWithPath([a.indexAs],Z)):r6R(a,B,Z)}for(W=a.instances.length-1;W>=Z;W--)w=a,N=W,Tx6(w,N),_.l(w.instances.splice(N,1)).next().value.signalProxy.dispose()},Tx6=function(a,W){a=a.instances[W];
W=(0,_.zX)(a.root);for(var w=0;w<a.children.length;w++)W.appendChild(a.children[w])},r6R=function(a,W,w){var Z={};
W=Object.assign({},A6_(a),(Z[a.as]=W,Z[a.indexAs]=w,Z[a.itemsIndexAs]=w,Z));var N=new TR(W,function(I){if(I!==a.as&&I!==a.indexAs){if(I===a.itemsIndexAs)return r$(N,a.indexAs);var X=r$(a.parentSignalProxy,I).getChangeRecordSignal([]);I=_.$1(void 0,void 0,"Mu2Bwb");var v=new S7(I);N.effect(function(){var U=X();v.notifyPath(Kp(U.path),{value:U.value})});
return v}});
a.parentSignalProxy.childSignalProxies.push(N);Z=ifC(a.templateInfo,a.templateInfo.nodeInfoList,N,{eventListenerHost:a.eventListenerHost,getModel:function(){var I={};return Object.assign({},A6_(a),(I[a.as]=N.model[a.as],I[a.indexAs]=N.model[a.indexAs],I[a.itemsIndexAs]=N.model[a.indexAs],I))},
hasInsertionPoint:a.templateInfo.hasInsertionPoint,thisCtx:a.eventListenerHost,methodInvocationRequirement:Vv6,enabledSignal:a.stampingEnabled}).root;W={root:Z,children:[],signalProxy:N};Z=_.l(Z.childNodes);for(var B=Z.next();!B.done;B=Z.next())W.children.push(B.value);Z=(Z=a.instances[w+1])?Z.children[0]:a;(0,_.zX)((0,_.zX)(a).parentNode).insertBefore(W.root,Z);a.instances[w]=W},A6_=function(a){if((a=a.parentSignalProxy.model)&&!a.hostElement){var W={},w;
for(w in a)a.hasOwnProperty(w)&&(W[w]=a[w]);return W}};
r4.prototype.itemForElement=function(a){var W=this,w=this.instances.find(function(Z){return Z.children.includes(a)});
if(w)return ca(this.parentSignalProxy.owner,function(){return w.signalProxy.getWithPath([W.as])})};
r4.prototype.indexForElement=function(a){var W=this.instances.findIndex(function(w){return w.children.includes(a)});
return W>=0?W:void 0};
_.dU.Object.defineProperties(r4.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var a=this;return ca(this.parentSignalProxy.owner,function(){return SrJ(a).getWithPath([])})},
set:function(a){YrT(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}}});
_.dU.Object.defineProperties(r4,{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",r4);var hAy,iTA;_.Ab=new _.yq("STATE_STORE_TOKEN");hAy=new _.yq("SELECT_TOKEN");iTA=new _.yq("DISPATCH_TOKEN");var T_C={getSelectFn:function(){var a;return(a=_.K().resolve(_.Vv(hAy)))!=null?a:kWD},
getDispatchFn:function(){var a;return(a=_.K().resolve(_.Vv(iTA)))!=null?a:_.FM().dispatch.bind(_.FM())},
getAppStore:function(){return _.K().resolve(_.Ab)}},U$9,YHH=!1;var rRm=void 0;var c6l=function(){};
c6l.prototype.hasAttribute=function(a){if(a==="dir")return!1;if(a==="disable-upgrade"){var W,w;return(w=(W=this.hostElement)==null?void 0:W.hasAttribute("disable-upgrade"))!=null?w:!1}throw Error("Qg`"+a);};
c6l.prototype.attributeChangedCallbackWrapper=function(a,W,w){if(a==="disable-upgrade"&&this.__isUpgradeDisabled&&w===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var Z;((Z=this.hostElement)!=null?Z:this).isConnected&&this.connectedCallback()}else W===w||this.__isReflecting||this.attributeChangedCallback(a,W,w)};
c6l.prototype.getExtraMethodsToForward=function(){for(var a=this,W=[],w=_.l(eAl),Z=w.next(),N={};!Z.done;N={tagName$jscomp$52:void 0,name$jscomp$533:void 0},Z=w.next())N.name$jscomp$533=Z.value,Z=void 0,N.name$jscomp$533==="_setPendingProperty"?(N.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),Z=function(B){return function(I,X,v){XM(B.tagName$jscomp$52,I,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return a._setPendingProperty(I,X,v)}}(N)):Z=function(B){return function(){return a[B.name$jscomp$533].apply(a,
_.K8(_.TH.apply(0,arguments)))}}(N),W.push([N.name$jscomp$533,
Z]);return W};
for(var jje=tYL(NxA((0,_.Yi)(c6l))),MvU=["disabled","disable-upgrade"],nwT=(0,_.Yi)(function(){}),j2l=new Set(Object.getOwnPropertyNames(nwT.prototype)),bPU=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.K8(j2l))),qHD=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),eAl=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),L0L=new Set([].concat(_.K8(qHD),_.K8(eAl),_.K8(j2l))),J6T=_.l(L0L),F0H=J6T.next();!F0H.done;F0H=J6T.next())tdF.add(F0H.value);var x$v={created:function(){mrF(this);this.initializeInjection()}};var Vv7=!1,Cp=window.ShadyDOM,ZT9=["appendChild","insertBefore","removeChild","replaceChild"],wt8=[Node];Cp&&wt8.push(Cp.Wrapper);var II8,P$C,gw9={};var fp=new Set,GD="",owF="";var DC,d$=new Set;var r6S=new Set("context didCallReady is info params signalProxy".split(" ")),hAH="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),iTe="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var MYH=PG({entities:KjH}),RAJ=new u8(MYH);var hb=function(){return _.Nt.apply(this,arguments)||this};
_.c(hb,_.Nt);_.dU.Object.defineProperties(hb.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return RAJ}}});
hb=_.f([_.BA()],hb);_.ii=[UA.prototype,hb.prototype];_.c7={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var a=this,W={};setTimeout(function(){var w;return _.E$((w=a.hostElement)!=null?w:a,"yt-live-chat-add-tooltip-target",W)},0);
this.handler_=W.handler},
detached:function(){if(this.handler_){var a;this.handler_.removeElementFromSupportingTooltips((a=this.hostElement)!=null?a:this)}this.handler_=null}}};_.ad=new _.yq("ICON_MANAGER_TOKEN");var qrR=[48,20,18,16,15,13,12],VYe=new Map,C$S=new Set,bTS=new Set,uZ8=new Set,xCe=new Set,s2S=new Set,DCx=new Promise(function(a){var W=!1,w=!1,Z=!1,N=[],B=function(I){if("detail"in I)if(I=I.detail,I.name==="yt-icons")Gge(I),W=!0;else if(I.name==="yt-sys-icons")Gge(I),w=!0;else{var X;((X=I.name)==null?0:X.includes("yt-sys-icons"))&&I.size!==24&&(Gge(I,!0),N.push(I.size),N.length===qrR.length&&(Z=!0))}W&&w&&Z&&(window.removeEventListener("iron-iconset-added",B),a())};
window.addEventListener("iron-iconset-added",B)}),dCC=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"]]);_.e7={};_.e7.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.sd,computeHref_:function(a,W){W=W===void 0?!1:W;if(!a||a.commandExecutorCommand)return null;var w=Ht9(a,W);return W||w!==null?w?_.r("enable_polymer_resin")?_.SB(w).toString():w:null:(_.jJ(new _.Uw("computeHref was null",this.is,a)),null)},
computeOptionalHref_:function(a){return this.computeHref_(a,!0)},
computeNofollow_:function(a){return a?um7(a)?"nofollow":null:null},
computeIcon_:function(a){return a&&a.iconType?_.EN(a.iconType):""},
resolveCommand:function(a,W,w){W=W===void 0?{}:W;return _.wJ(a,this.hostElement,W,w===void 0?!1:w)}};var xCA,nN;_.Q2L={};xCA=null;
nN={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_=FzE(this.viewroot));_.cA(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var a=this;this.unobserve_();if(_.r("kevlar_vimio_use_shared_monitor"))au9(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 W=[];this.visibilityOptionVisible_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=W}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){zAI(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=_.LY(this.parentNode,function(w){var Z,N=(Z=w.polymerController)!=null?Z:w;return!!N.getVisibilityObserverForChild&&N.getVisibilityObserverForChild()},!0);
if(a){var W;this.localVisibilityObserver_=((W=a.polymerController)!=null?W:a).getVisibilityObserverForChild()}else xCA||(xCA=FzE()),this.localVisibilityObserver_=xCA;return this.localVisibilityObserver_},visibilityCallback:function(a){a?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.r("kevlar_use_vimio_behavior")||(nN={});nN&&!_.r("kevlar_use_vimio_behavior")&&(delete nN.attached,delete nN.detached);_.Q2L.YtVisibilityObserverBehavior=[nN];var bTR={};bTR.YtVisualElementBehavior=[_.Q2L.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.r("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.r("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var a=this.getScreenLayer&&this.getScreenLayer(),W=this.getVisibilityLogger();W&&W.reportShown(this,void 0,a)}},
onHidden:function(){if(_.r("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.r("kevlar_vimio_use_shared_monitor")){var a=this.getScreenLayer&&this.getScreenLayer(),W=this.getVisibilityLogger();W&&W.reportHidden(this,void 0,a)}},
getVisibilityLogger:function(){return _.r("kevlar_use_vimio_behavior")?_.Nw():null},
shouldSkipLogging:function(){if(_.LF("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var a=this.getParentRenderer&&this.getParentRenderer();if(!a)return!1;var W,w=(W=a.polymerController)!=null?W:a;if(!w.data)return!1;a=this.data.trackingParams;a=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:a;var Z;W=(Z=w.data)==null?void 0:Z.trackingParams;var N,B;W=((N=w.data)==null?0:N.loggingDirectives)?(B=w.data)==null?void 0:B.loggingDirectives.trackingParams:W;return a&&W&&a===
W}}];var NZm=new Map,Xm;var $Ue=function(a){this.layer=a},Lj=function(a){return a.layer!==void 0?a.layer:a.parent?Lj(a.parent):a.layer=0};var Pl8;_.E={};Pl8=0;_.E.YtRendererBehavior=[_.e7.YtComponentBehavior,bTR.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_:_.r("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var a,W;(W=(a=this.monitorScrollElement)!=null?a:this.hostElement)==null||W.removeEventListener("scroll",_.yV(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();wKF(this.hostElement);drH(_.NR(),this.hostElement);CD.delete(this.hostElement)},
registerRenderer:function(a){var W;((W=a.polymerController)!=null?W: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,W=this.getParentRenderer();if(W){var w,Z,N;(Z=(w=(N=W.polymerController)!=null?N:W).registerRenderer)==null||Z.call(w,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var B,I;(I=(B=this.monitorScrollElement)!=null?B:this.hostElement)==null||I.addEventListener("scroll",_.yV(this,this.onScroll))}_.hF.addJob(function(){tUx(a.hostElement)},8);
w=new $Ue(this.screenLayer||void 0);(W=GG(W))&&W.layerNode&&(w.parent=W.layerNode);W={};Cw9(this.hostElement,(W.isRenderer=!0,W.layerNode=w,W[Jx]=this.data,W))},
getParentRenderer:function(){for(var a=this.hostElement.parentNode,W,w;a&&((W=GG(a))==null||!W.isRenderer)&&!((w=a.polymerController)!=null?w:a).isRenderer_;)a=a.parentNode||a.host;return a},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.r("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.JS("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.r("debug_web_ve_data")&&this.data.trackingParams){var a="";try{a=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(w){_.eJ(w)}if(a){var W=P6U(a,1);W!==void 0&&(this.hostElement.dataset.veIndex=String(W));a=P6U(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,_.r("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.PX(this.data.loggingDirectives.trackingParams)),this.visualElement=_.tQ(_.$J(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var a=this.data.targetId;_.V8J(_.NR(),a,this.hostElement)}else drH(_.NR(),this.hostElement)},
onScroll:function(){var a=Date.now();a-this.lastHandledScroll_<50||(this.lastHandledScroll_=a,this.markDirty())},
markDirty:function(){_.r("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():XKI(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var a=this.getParentRenderer();if(a&&(a=GG(a))&&a.layerNode)return Lj(a.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.K8(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 W,w;(a==null?0:(W=a.commandMetadata)==null?0:(w=W.webCommandMetadata)==null?0:w.sendPost)?_.Z9(this.hostElement,[a,{impression:!0}]):_.N1(this.hostElement,[a],this.hostElement)},
logExplicitClick:function(a){var W=_.nS(this.getScreenLayer());if(W){var w,Z=(w=a.polymerController)!=null?w:a;a=Z.visualElement;Z=Z.trackingParams||Z.clickTrackingParams;!a&&Z&&(a=_.PX(Z));a&&_.b0(W,a)}}}];var s2R={},j7=function(){return _.Nt.apply(this,arguments)||this};
_.c(j7,_.Nt);j7.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
j7.prototype.onPdgItemBehaviorClick=j7.prototype.onPdgItemBehaviorClick;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],j7.prototype,"data",void 0);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],j7.prototype,"onPdgItemBehaviorClick",null);j7=_.f([_.BA()],j7);s2R.YtPdgLiveChatItemBehavior=[j7.prototype,_.E.YtRendererBehavior];var uZh;var C$R;_.LN={};_.LN.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Jb=function(){var a=V8.apply(this,arguments)||this;a.switchTemplateAtRegistration=!1;return a};
_.c(Jb,V8);Jb.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||ksH(this),_.CQC(this,"doRender"),this.doRender())};
Jb.prototype.debounceRender=function(){this.templatingFn&&_.eK(this,"doRender",this.doRender)};
Jb.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.eJ(Error("$g"))};
Jb.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
Jb=_.f([Lae()],Jb);var GgH=Jb;var DC$=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Fi={},YLF=(Fi[1]={filterString:null,isUnwrappable:null,unwrap:null},Fi[2]={filterString:function(a,W,w){return aL(w)},
isUnwrappable:function(a){return a instanceof iq},
unwrap:function(a){return eB(a)}},Fi[3]={filterString:function(a,W,w){return DC$.test(w)?w:O0.toString()},
isUnwrappable:function(a){return g5(a)},
unwrap:function(a){return _.oJ(a)}},Fi[4]={filterString:function(){return O0.toString()},
isUnwrappable:function(a){return a instanceof BP},
unwrap:function(a){return _.IJ(a).toString()}},Fi[5]={filterString:function(a,W,w){return w},
isUnwrappable:function(a){return typeof a==="string"},
unwrap:function(a){return a.toString()}},Fi[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(a){return a instanceof _.Fr},
unwrap:function(a){return RJ(a)}},Fi[8]={filterString:function(a,W,w){w=String(w).toLowerCase();
return pII(a,W,w)?w:"zClosurez"},
isUnwrappable:null,unwrap:null},Fi[10]={filterString:null,isUnwrappable:null,unwrap:null},Fi);Vz[jQ["default"]]=Kfe;var pKE=[];var JJD=AC9("A"),Fee=AC9("BUTTON"),v$=AC9("DIV"),Mjv=AC9("LABEL");(function(){var a=uk;uk=function(W){a==null||a(W);kJ(function(){for(var w=0;w<W.length;w++)rCU(W[w])})}})();var MR=function(){var a=_.Nt.apply(this,arguments)||this;a.hasUnmounted=!1;return a};
_.c(MR,_.Nt);_.t=MR.prototype;_.t.beforeRegister=function(){var a=this.doIdomRender;this.templatingFn?_.eJ(Error("Zg")):(this.templatingFn=a,this.switchTemplateAtRegistration=!0,SLF(this))};
_.t.attached=function(){};
_.t.detached=function(){rCU(this.hostElement)};
_.t.renderIdom=function(){throw Error("bh");};
_.t.doIdomRender=function(){var a=this;X$I(this.hostElement,function(){a.renderIdom()})};
MR=_.f([_.BA()],MR);var fI6=[GgH.prototype,MR.prototype];var dCe,mCy=function(){return dCe!==void 0?dCe:dCe=document.createElement("template")};
document.head.appendChild(mCy().content);var VYA;var zAR,HTl=function(){return zAR!==void 0?zAR:zAR=document.createElement("template")};
document.head.appendChild(HTl().content);var y6l;var Ewh=document.head,auV=Ewh.appendChild,WfJ;if(y6l===void 0){var wK_=document.createElement("template");_.n(wK_,"\x3c!--css-build:shady--\x3e");wK_.content.insertBefore(HTl().content.cloneNode(!0),wK_.content.firstChild);y6l=wK_}WfJ=y6l;auV.call(Ewh,WfJ.content);var ZRA,NZL=function(){return ZRA!==void 0?ZRA:ZRA=document.createElement("template")};
document.head.appendChild(NZL().content);var tU$;var $h$=document.head,BZ$=$h$.appendChild,luE;if(tU$===void 0){var Iue=document.createElement("template");_.n(Iue,"\x3c!--css-build:shady--\x3e");Iue.content.insertBefore(NZL().content.cloneNode(!0),Iue.content.firstChild);tU$=Iue}luE=tU$;BZ$.call($h$,luE.content);var Plh=document.head,XKR=Plh.appendChild,vE$;if(VYA===void 0){var gER=document.createElement("template");_.n(gER,"\x3c!--css-build:shady--\x3e");gER.content.insertBefore(mCy().content.cloneNode(!0),gER.content.firstChild);VYA=gER}vE$=VYA;XKR.call(Plh,vE$.content);var oEL,ksy=function(){return oEL!==void 0?oEL:oEL=document.createElement("template")};
document.head.appendChild(ksy().content);var Uh_;_.Lt=new _.yq("DARK_THEME_TOKEN");var U37=new _.H("accessibilityProperties");var kam=new _.H("layoutProperties");var OO7=new _.H("imageType");var ORV={};if("ytAttributedStringLinkHoverColor"in ORV)throw Error("eh`ytAttributedStringLinkHoverColor");(function(a,W){ORV[a]="value"in W&&"unit"in W?nES(a,W):function(w){try{return W(w)}catch(Z){throw Error("ch`"+a+"`"+Z.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var SL_=function(a){var W=this;this.holdTime=a===void 0?500:a;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(w){var Z=new CustomEvent("LONG_PRESS"),N;(N=w.changedTouches[0].target)==null||N.dispatchEvent(Z)};
this.ontouchstart=function(w){W.longPressTimeout=_.rP(_.hF,function(){W.onlongpress(w);W.longPressOccurred=!0},W.holdTime)};
this.ontouchmove=function(){_.hF.cancelJob(W.longPressTimeout);W.longPressTimeout=NaN;W.longPressOccurred=!1;W.moveOccurred=!0};
this.ontouchend=function(w){if(W.longPressTimeout&&!W.longPressOccurred&&!W.moveOccurred){var Z;(Z=w.changedTouches[0].target)==null||Z.dispatchEvent(new Event("click"))}_.hF.cancelJob(W.longPressTimeout);W.longPressTimeout=NaN;W.longPressOccurred=!1;W.moveOccurred=!1}};var HRE=function(a,W){SL_.call(this,W);var w=this;this.callback=a;this.onlongpress=function(Z){var N;(N=w.callback)==null||N.call(w,Z)}};
_.c(HRE,SL_);var yCx=function(a,W){var w=Object.assign({},W);a=_.l(new Map([["ontouchstart",a.ontouchstart],["ontouchend",a.ontouchend],["ontouchmove",a.ontouchmove]]));for(var Z=a.next(),N={};!Z.done;N={eventName$jscomp$87:void 0,eventHandler$jscomp$3:void 0},Z=a.next()){var B=_.l(Z.value);Z=B.next().value;B=B.next().value;N.eventName$jscomp$87=Z;N.eventHandler$jscomp$3=B;W[N.eventName$jscomp$87]=function(I){return function(X){var v;(v=w[I.eventName$jscomp$87])==null||v.call(w,X);(0,I.eventHandler$jscomp$3)(X)}}(N)}};_.zU=new _.yq("COMMAND_HANDLER_TOKEN");var Lfe=new _.H("parallelCommand");var MUH=new _.H("performOnceCommand");var FfC=new _.H("serialCommand");var Rp9=void 0;var YL_=function(){this.data=[]};
YL_.prototype.push=function(a){this.data.push(a)};var Zr={};_.$1(Zr,void 0,"sgPmTd");_.$1(null,void 0,"jypsq");var Cpe=new YL_;var Gs9=[sC$,uxe,CeV,DH6,G8$,b7y,fDR,dH_];var gyD=new _.H("bracketTextDecorator");var jx=new _.H("highlightTextDecorator");_.Fm=new _.yq("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var lXE=function(){},TZ_;
(TZ_=window.requestIdleCallback)==null||TZ_.bind(window);var PDH={calledOnce:!1,state:"visible"},IXD={calledOnce:!1,state:"hidden"};var lxF=new _.yq("ICON_RENDERER_TOKEN"),KfH=new _.yq("ICON_WIZ_COMPONENT_TOKEN");_.P$=_.xQ(function(a){var W=a.icon;var w=a.active;var Z=a.className;var N=a.style;var B=a.dataSelected;var I=a.dataDisabled;var X=a.role;var v=a.animateIcon;var U=a.themeOverride;var O=a.ariaHidden;var S=a.ariaExpanded;var T=a.ariaLabel;var p=a.id;var h=a.size;var L=a.iconFilter;return _.k(_.Y,{cond:W,then:function(){var F=_.K().resolve(KfH);return _.k(F,{icon:W,dataSelected:B,dataDisabled:I,animateIcon:v,themeOverride:U,ariaExpanded:S,id:p,active:w,size:h,role:X,className:Z,ariaHidden:O,ariaLabel:T,
style:function(){return N!=null&&N()||h==null||!h()?N==null?void 0:N():"width: "+(h==null?void 0:h())+"px;height: "+((h==null?void 0:h())+"px;")},
iconFilter:L})}})},"b");
_.P$.idomCompat=!0;var F99=window.devicePixelRatio||1;var Q6U=new Map([["yt_outline_bag_black_24","bag"]]);var Rc=function(a){var W=this;this.margin=.1;this.whenInViewportWithMargin=a;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){W.requestScan()});
window.addEventListener("touchend",function(){W.requestScan()});
window.addEventListener("updateui",function(){W.requestScan()});
var w=new _.yP((0,_.Sk)(this.requestScan,this),100);window.addEventListener("scroll",function(){w.fire()},!0);
window.addEventListener("resize",(0,_.Sk)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){W.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Sk)(this.requestScan,this))};
Rc.prototype.observe=function(a){this.observationTargets.includes(a)||this.observationTargets.push(a)};
Rc.prototype.unobserve=function(a){this.observationTargets=this.observationTargets.filter(function(W){return W!==a})};
Rc.prototype.requestScan=function(){var a=this;this.scanRequested||(kJ(function(){pKT(a)}),this.scanRequested=!0)};
var pKT=function(a){var W=(1+a.margin)*(document.documentElement.clientHeight||window.innerHeight);a.observationTargets=a.observationTargets.filter(function(w){var Z=w.getBoundingClientRect();(Z=W>Z.top&&!!Z.height)&&a.whenInViewportWithMargin(w);return!Z&&w.parentNode});
a.scanRequested=!1};
Rc.prototype.disconnect=function(){this.observationTargets=[]};var rCJ,hpJ;rCJ=_.l(_.$1(uYe(),void 0,"O3X2wd"));_.ACV=rCJ.next().value;hpJ=rCJ.next().value;window.addEventListener("resize",function(){hpJ(uYe())});var iRl={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},cCJ=void 0,epl=window.innerWidth,nER=window.innerHeight;window.addEventListener("resize",function(){cCJ=void 0});var j8R;if("IntersectionObserver"in window)j8R=D3D();else{if(cCJ===void 0){var LfA;LfA="matchMedia"in window?window.matchMedia(iRl.landscape+","+iRl.portrait).matches:void 0;cCJ=LfA!==void 0?LfA:epl>=930&&nER>=550||epl>=550&&nER>=930}j8R=cCJ?{observe:function(a){kJ(function(){var W;(W=a.onViewportEntered)==null||W.call(a)})},
unobserve:function(){}}:new Rc(function(a){kJ(function(){var W;
(W=a.onViewportEntered)==null||W.call(a)})})}var CDE=j8R;var JC$=_.xQ(function(a){var W=!1,w=_.D8(function(Z){_.Ao(function(){W=!0;Z.onload=null})});
_.Ka(function(){var Z,N=(Z=a.data)==null?void 0:Z.call(a),B,I=(B=a.getSrc)==null?void 0:B.call(a).cb,X;Z=(X=a.config)==null?void 0:X.call(a);if(X=w.value)if(B=function(U,O){if(!W)return I?I(U,O):U},m3S(X,Z),_.r("web_image_dont_reload_same_src")&&d3F(X,N,B))_.r("web_image_dont_reload_same_src_simulate_load")&&X.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var v;fXI(X,N||null,B,Z,(v=a.lazy)==null?void 0:v.call(a))}});
return _.k("img",{el:w})},"c");
JC$.idomCompat=!0;_.qw=_.xQ(function(a){var W=function(){var w,Z=a.data(),N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V,d,ZD,aC,Bv,Am,e9,cv,C7,RC,G8,QF;var vl={contentMode:(N=a.contentMode)==null?void 0:N.call(a),loadedClass:(B=a.loadedClass)==null?void 0:B.call(a),isPreloaded:(I=a.isPreloaded)==null?void 0:I.call(a),notifyOnLoaded:(X=a.notifyOnLoaded)==null?void 0:X.call(a),notifyOnUnloaded:(v=a.notifyOnUnloaded)==null?void 0:v.call(a),preferredThumbnail:(U=a.preferredThumbnail)==null?void 0:U.call(a),preserveHeight:(O=a.preserveHeight)==
null?void 0:O.call(a),preserveWidth:(S=a.preserveWidth)==null?void 0:S.call(a),objectPosition:(T=a.objectPosition)==null?void 0:T.call(a),targetWidth:(p=a.targetWidth)==null?void 0:p.call(a),targetHeight:(h=a.targetHeight)==null?void 0:h.call(a),shouldShowPlaceholder:(L=a.shouldShowPlaceholder)==null?void 0:L.call(a),useWidth:(F=a.useWidth)==null?void 0:F.call(a),alt:(x=a.alt)==null?void 0:x.call(a),className:(G=a.className)==null?void 0:G.call(a),onerror:a.onerror,onload:a.onload,style$:((V=a.style$)==
null?void 0:V.call(a))||((d=a.style)==null?void 0:d.call(a)),color:(ZD=a.color)==null?void 0:ZD.call(a),width:(aC=a.width)==null?void 0:aC.call(a),height:(Bv=a.height)==null?void 0:Bv.call(a),"aria-hidden$":(G8=(Am=a["aria-hidden$"])==null?void 0:Am.call(a))!=null?G8:(e9=a.ariaHidden)==null?void 0:e9.call(a),draggable:(cv=a.draggable)==null?void 0:cv.call(a),"data-disabled$":(QF=(C7=a["data-disabled$"])==null?void 0:C7.call(a))!=null?QF:(RC=a.dataDisabled)==null?void 0:RC.call(a)};return HOE(Z,vl,
(w=a.hideOn404)==null?void 0:w.call(a))};
return _.k(_.Y6,null,_.k(_.Ut,{when:function(){var w;return((w=W())==null?void 0:w.type)==="image"}},function(){return _.k(JC$,{data:function(){return W().image},
getSrc:{cb:function(w,Z){var N=W().image.sources,B=W().config.isPreloaded,I=W().config.useWidth,X=W().config.targetWidth,v=W().config.targetHeight,U=W().config.preferredThumbnail;return _.Mb9(Z,N,B,I,X,v,U)||""}},
config:function(){var w=W().config,Z;for(Z in w)w[Z]===void 0&&delete w[Z];return w},
lazy:a.renderLazy})}),_.k(_.Ut,{when:function(){var w;
return((w=W())==null?void 0:w.type)==="icon"}},function(){return _.k(_.P$,{icon:function(){return W().iconName},
role:function(){return W().config.role},
className:function(){return W().config.className},
style:function(){return W().config.style$+";width: "+(W().config.width+"px;height: ")+(W().config.height+"px;color: ")+(W().config.color+";")},
ariaLabel:function(){return W().config["aria-label$"]},
ariaHidden:function(){return W().config["aria-hidden$"]},
dataDisabled:function(){return W().config["data-disabled$"]}})}))},"d");
_.qw.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Ffe=function(a){return function(W){return _.k(enm,null,function(){var w=W.data(),Z=_.ik(W.config);return _.k(dt,null,function(){return void a(w,Z)})})}}(Wqe),EyI=_.xQ(function(a){var W=function(Z){var N,B=_.xJ(function(T){N=ho(function(){for(var p=_.l(O()),h=p.next();!h.done;h=p.next()){h=w4E(h.value);
h=typeof h==="string"?document.createTextNode(h):h;if(!(h instanceof Node)){p=new _.Uw("Part is not a node",h,typeof h);_.eJ(p);break}T.appendChild(h)}})}),I=bx(function(){return YhH(Z())},{isEqual:y3E}),X=_.qt(a.config),v=function(){var T,p=I();
return!((T=X())==null||!T.ariaLabel)||!(p.commandRuns&&p.commandRuns.length!==0||p.paragraphStyleRuns&&p.paragraphStyleRuns.length!==0)},U=bx(X,{isEqual:Na8}),O=function(){var T=Sh9(I(),U());
K9E(T,U());return I().content?c3x(I().content,T).parts:[]},S=!0;
_.Ka(function(){I();U();if(S)S=!1;else{var T=O();Promise.resolve().then(function(){var p=B.value;if(p){p.innerText="";var h;(h=N)==null||h();N=_.KF(p,function(){return _.k(Z2S,{parts:T})})}})}});
return _.k("span",{el:B,class:function(){return I()&&ZOD(I(),X())},
dir:function(){var T;return((T=X())==null?0:T.userInput)?"auto":void 0},
"aria-label":function(){var T;return v()?(T=X())==null?void 0:T.ariaLabel:void 0},
role:function(){return v()?"text":void 0}})},w;
return((w=a.config)==null?0:w.renderedFromFormattedString)?W(a.text):_.k(_.Y,{cond:a.text,then:W})},"e");
EyI.idomCompat=!0;_.k_=_.xQ(function(a){var W=_.qt(a.text),w=tEe(a);a.renderedFromFormattedString!==void 0&&(w.renderedFromFormattedString=!0);return _.r("attr_string_reactive")?_.k(EyI,{text:W,config:w}):_.k(_.Y,{cond:function(){var Z;return W()&&((Z=YhH(W()))==null?void 0:Z.content)},
then:function(){return _.k(Ffe,{data:a.text,config:w})},
debugInstance:"Apcuac"})},"f");
_.k_.idomCompat=!0;var BaH=function(a,W,w){W=W===void 0?"unknown":W;w=w===void 0?{}:w;_.Uw.call(this,a+" ("+W+")",Object.assign({},{name:"YtWcwError",tagName:W},w));Object.setPrototypeOf(this,this.constructor.prototype)};
_.c(BaH,_.Uw);_.gex=new WeakMap;_.veH=!1;var X4v,oe7,P1e;_.qR=Symbol("gh");_.ux=Symbol("hh");X4v=Symbol("ih");oe7=new Set(Object.getOwnPropertyNames(Element.prototype));P1e=Symbol("jh");var MUy=_.xQ(function(a){return _.k("yt-attributed-string",{"aria-label":a.ariaLabel,hidden:a.hidden,id:a.id,class:a.className,"force-default-style":a.forceDefaultStyle},_.k(_.k_,{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");
_.r("web_wiz_attributed_string")&&_.Ct(MUy,"yt-attributed-string",{props:{ariaHidden:_.qR,ariaLabel:_.qR,className:_.qR,ellipsisTruncate:_.qR,isOverlay:_.qR,linkInheritColor:_.qR,noEndpoints:_.qR,noStyleRuns:_.qR,noLinkColor:_.qR,noPreWrap:_.qR,noWrap:_.qR,skipOnClick:_.qR,userInput:_.qR,headerRuns:_.qR,id:_.qR,data:_.qR,hidden:_.qR,forceDefaultStyle:_.qR,text:_.ux,stopPropagation:_.ux,disableUpgrade:_.ux,disable:_.ux,slot:_.ux}});var Qx=function(){return _.u.apply(this,arguments)||this};
_.c(Qx,_.u);Qx.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},Wqe(this.data,this.config))};
_.f([_.R(fI6),_.z("design:type",Object)],Qx.prototype,"ytIdomTemplatingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Qx.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qx.prototype,"ariaLabel",void 0);_.f([_.b(),_.z("design:type",Boolean)],Qx.prototype,"disable",void 0);_.f([_.b(),_.z("design:type",Boolean)],Qx.prototype,"ellipsisTruncate",void 0);_.f([_.b(),_.z("design:type",Boolean)],Qx.prototype,"isOverlay",void 0);
_.f([_.b(),_.z("design:type",Boolean)],Qx.prototype,"linkInheritColor",void 0);_.f([_.b(),_.z("design:type",Boolean)],Qx.prototype,"noPreWrap",void 0);_.f([_.b(),_.z("design:type",Boolean)],Qx.prototype,"noWrap",void 0);_.f([_.b(),_.z("design:type",Boolean)],Qx.prototype,"userInput",void 0);_.f([_.b(),_.z("design:type",Boolean)],Qx.prototype,"noEndpoints",void 0);_.f([_.b(),_.z("design:type",Array)],Qx.prototype,"headerRuns",void 0);
Qx=_.f([_.TD({is:"yt-attributed-string",disableElementRegistration:!0})],Qx);
_.r("web_wiz_attributed_string")||_.D(Qx,"yt-attributed-string",function(){if(Uh_===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
a.content.insertBefore(ksy().content.cloneNode(!0),a.content.firstChild);Uh_=a}a=Uh_;return a},{mode:2});var RpV,qLR,KqE;RpV=function(){this.firstThumbnailLoaded=!1};
_.Q8A=function(){qLR||(qLR=new RpV);return qLR};
KqE=function(a){var W=_.Q8A();W.firstThumbnailLoaded||(W.firstThumbnailLoaded=!0,_.Ak("ftl",a))};
RpV.prototype.reset=function(){this.firstThumbnailLoaded=!1};var UAx=0,Tae=new WeakMap,SJv=0,ft=new Set;var xhh,bRR=function(){return xhh!==void 0?xhh:xhh=document.createElement("template")};
document.head.appendChild(bRR().content);var s8T;var h6e,cHF,xH;_.VD=_.NH.caches;xH=function(){};
xH.prototype.open=function(a){return _.VD.open(uVT(a))};
xH.prototype.has=function(a){return _.VD.has(uVT(a))};
xH.prototype.delete=function(a){return _.VD.delete(uVT(a))};
xH.prototype.match=function(a,W){var w=this,Z,N,B,I,X,v;return _.P(function(U){switch(U.nextAddress){case 1:return _.g(U,w.keys(),2);case 2:Z=U.yieldResult,N=_.l(Z),B=N.next();case 3:if(B.done){U.jumpTo(5);break}I=B.value;return _.g(U,w.open(I),6);case 6:return X=U.yieldResult,_.g(U,X.match(a,W),7);case 7:if(v=U.yieldResult)return U.return(v);B=N.next();U.jumpTo(3);break;case 5:return U.return()}})};
var e6H=function(){};
_.c(e6H,xH);var uVT=function(a){if(a.includes(":"))throw Error("mh`"+a);return a+":"+_.o0("CacheStorage get")};
e6H.prototype.keys=function(){var a,W,w,Z,N,B,I,X,v;return _.P(function(U){if(U.nextAddress==1)return a=[],W=_.o0("CacheStorage keys"),_.g(U,_.VD.keys(),2);w=U.yieldResult;Z=_.l(w);for(N=Z.next();!N.done;N=Z.next())B=N.value,I=_.AHU(B),X=I.originalName,v=I.datasyncId,v===W&&a.push(X);return U.return(a)})};var bi=function(){var a=_.u.apply(this,arguments)||this;a.objectURL=null;a.loadTime=Infinity;return a};
_.c(bi,_.u);_.t=bi.prototype;_.t.renderIdom=function(){rHm(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&Vbx(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.t.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"}};
_.t.logThumbnailFailureVe=function(){var a=_.Ob(197497);_.tc(_.$J(),a);var W=_.nS();W&&a&&W&&_.Qw(W,[a])};
_.t.loadImageFromCacheIfExists=function(a){var W=this,w=a.target;(w==null?0:w.src)&&jKD(w.src).then(function(Z){W.objectURL=_.Yf(Z).toString();W.setSrc(w,W.objectURL)}).catch(function(){})};
_.t.onError=function(a){var W=this;if(_.r("web_use_cache_for_image_fallback")){var w=a.target;w&&jKD(w.src).then(function(Z){W.objectURL=_.Yf(Z).toString();W.setSrc(w,W.objectURL)}).catch(function(){_.r("kevlar_woffle_log_thumbnail_failure_ve")&&W.logThumbnailFailureVe();
_.r("kevlar_woffle_fallback_image")&&W.setSrc(w,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.t.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.t.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(W){a.loadImageFromCacheIfExists(W);a.revokeObjectURL();p4m(a.hostElement)},
onerror:function(W){a.onError(W)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.r("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.t.setSrc=function(a,W){W&&(a.src=W)};
_.f([_.R(fI6),_.z("design:type",Object)],bi.prototype,"ytIdomTemplatingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],bi.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],bi.prototype,"alt",void 0);_.f([_.b(),_.z("design:type",Boolean)],bi.prototype,"ftlEligible",void 0);_.f([_.b(),_.z("design:type",Number)],bi.prototype,"height",void 0);_.f([_.b(),_.z("design:type",Boolean)],bi.prototype,"notifyOnLoaded",void 0);
_.f([_.b(),_.z("design:type",Boolean)],bi.prototype,"notifyOnUnloaded",void 0);_.f([_.b(),_.z("design:type",String)],bi.prototype,"objectFit",void 0);_.f([_.b(),_.z("design:type",String)],bi.prototype,"objectPosition",void 0);_.f([_.b(),_.z("design:type",String)],bi.prototype,"preferredThumbnail",void 0);_.f([_.b(),_.z("design:type",Boolean)],bi.prototype,"preserveHeight",void 0);_.f([_.b(),_.z("design:type",Boolean)],bi.prototype,"preserveWidth",void 0);
_.f([_.b({value:!0}),_.z("design:type",Boolean)],bi.prototype,"useWidth",void 0);_.f([_.b({value:function(){return!_.JS("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.z("design:type",Boolean)],bi.prototype,"shouldRenderLazy",void 0);_.f([_.b(),_.z("design:type",Number)],bi.prototype,"width",void 0);bi=_.f([_.TD({is:"yt-image",disableElementRegistration:!0})],bi);
_.D(bi,"yt-image",function(){if(s8T===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(bRR().content.cloneNode(!0),a.content.firstChild);
s8T=a}a=s8T;return a},{mode:2});var sA=function(){return _.u.apply(this,arguments)||this};
_.c(sA,_.u);sA.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var a=_.rJ(this.data.onVisibleCommand);a&&this.ytComponentBehavior.resolveCommand(a)}};
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],sA.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.LN.YtVisibilityBehavior),_.z("design:type",Object)],sA.prototype,"ytVisibilityBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sA.prototype,"data",void 0);sA=_.f([_.TD({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],sA);
_.D(sA,"yt-bumper-user-edu-content-view-model",function(){if(C$R===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;uZh===void 0&&(uZh=document.createElement("template"));var Z=uZh;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);C$R=a}a=C$R;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var ClE;var GsV,DhA=function(){if(GsV!==void 0)return GsV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;ClE===void 0&&(ClE=document.createElement("template"));var Z=ClE;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return GsV=a};var fuR;_.ui={};fuR=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"]);_.ui.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var a=this.getContext_();return a?a.getTaskManager():_.hF},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var a=_.E$(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 fuR.has(this.hostElement.localName)},
getNetworkManager:function(){var a=this.getContext_();if(a)return a.getNetworkManager()}};var qJI,dhl,VUJ,mhR;_.CN=function(a){var W=dhl.get(a);if(W&&(W=W.pop()))return mhR++,W;VUJ++;try{var w=document.createElement(a)}catch(Z){throw new _.Uw("ElementPool failed to create element",a,Z.message);}return w};
qJI=function(a){var W=a.is;if(W){var w=dhl.get(W);w||(w=[],dhl.set(W,w));var Z=_.LF("ELEMENT_POOL_CONFIG")||{};w.length>=(Z[W]!==void 0?Z[W]:_.LF("ELEMENT_POOL_DEFAULT_CAP",0))||w.push(a)}else _.jJ(new _.Uw("Element pool should only handle custom elements:",a.nodeName))};
dhl=new Map;VUJ=0;mhR=0;var z$=new WeakMap,R6e=new WeakMap;var HRT;_.GR=function(a,W,w){w=w===void 0?_.n4():w;this.JSC$11552_defaultPriority=a;this.signal=W;this.scheduler=w;this.nextJobDescriptor=0;this.JSC$11552_parkedJobs=[];this.scheduledJobs=new Map};
_.Dh=function(a,W){if(W){var w=_.F4();a.signal&&!_.MJ(w,a.signal)?(w.addListener(a.signal,function(){a.processSignal()}),a.JSC$11552_parkedJobs.push({job:W,
priority:void 0})):zpL(a,W)}};
HRT=function(a,W){if(W!==a.JSC$11552_defaultPriority){a.JSC$11552_defaultPriority=W;for(var w=_.l(a.scheduledJobs.values()),Z=w.next();!Z.done;Z=w.next())Z=Z.value,a.scheduler.cancelJob(Z.jobId),Z.jobId=a.scheduler.addJob(Z.jobWrapper,W)}};
_.GR.prototype.flushJobs=function(){HRT(this,10);this.processSignal()};
_.GR.prototype.cancel=function(){for(var a=_.l(this.scheduledJobs),W=a.next();!W.done;W=a.next()){var w=_.l(W.value);W=w.next().value;w=w.next().value;this.scheduler.cancelJob(w.jobId);this.scheduledJobs.delete(W)}this.JSC$11552_parkedJobs=[]};
_.GR.prototype.processSignal=function(){for(var a=_.l(this.JSC$11552_parkedJobs),W=a.next();!W.done;W=a.next())W=W.value,zpL(this,W.job,W.priority);this.JSC$11552_parkedJobs=[]};
var zpL=function(a,W,w){w=w||a.JSC$11552_defaultPriority;if(w===10)dJ(W);else{var Z=a.nextJobDescriptor++,N=function(){W();a.scheduledJobs.delete(Z)},B=a.scheduler.addJob(N,w);
a.scheduledJobs.set(Z,{jobWrapper:N,jobId:B,priority:w})}};_.En(sKm);var u6U={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};iHm({beforeVisit:function(a){if(fp.has(a.type)){var W;(W=a.props).idomKey!=null||(W.idomKey=a.type)}else a.type.TAG_NAME&&(GD=a.type.TAG_NAME)},
afterRender:function(a,W){var w;GD=(w=W==null?void 0:W.type)!=null?w:""},
didPatch:function(){GD=""}});var yC$;_.fN={};yC$={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.fN.YtRendererstamperBehavior=[_.ui.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 W=this.stampDom[a];W&&W.id&&this.addReactiveSchema({type:"observe",method:{methodName:JHE(W.id),args:[{type:"wildcard",path:a}]}})}else{(a=(this.constructor.generatedFrom||this).observers)||(a=[]);for(W in this.stampDom){var w=this.stampDom[W];w&&w.id&&a.push(JHE(w.id)+"("+W+".*)")}this.constructor.generatedFrom.observers=a}},
addStampDomObserverFns_:function(){for(var a in this.stampDom){var W=this.stampDom[a];W.id?(this[JHE(W.id)]=this.rendererStamperObserver_.bind(this,a,W.id),this.hasDataPath_[a]=!1):(W=new _.Uw("Bad rendererstamper config",this.is+":"+a),_.eJ(W))}},
rendererStamperObserver_:function(a,W,w){if(w.path==a){if(w.value===void 0&&!this.hasDataPath_[a])return;this.hasDataPath_[a]=w.value!==void 0}this.rendererStamperApplyChangeRecord_(a,W,w)},
rendererStamperApplyChangeRecord_:function(a,W,w){var Z=this.renderJobsMap_[W],N=null;a==w.path?(w=w.value,_.wT(w)||(w=w===void 0||w===null?[]:[w]),a=this.stampDom[a],a.mapping&&(N=this.stampDomArray_.bind(this,w,W,a.mapping,a.reuseComponents,a.events,a.stamperStableList)),Z&&Z.cancel(),w=a.usePageScheduler?this.getTaskManager():void 0,Z||a.initialRenderPriority==void 0)?a.renderPriority==void 0||Z||(Z=new _.GR(a.renderPriority,a.waitForSignal,w),this.renderJobsMap_[W]=Z):(Z=new _.GR(a.initialRenderPriority,
a.waitForSignal,w),this.renderJobsMap_[W]=Z,N=function(B,I){B();HRT(I,10)}.bind(this,N,Z)):N=a+".splices"==w.path?this.stampDomArraySplices_.bind(this,a,W,w.value):this.forwardRendererStamperChanges_.bind(this,a,W,w);
Z?_.Dh(Z,N):N()},
forwardRendererStamperChanges_:function(a,W,w){var Z=w.path.slice(a.length+1),N=this.getStampContainer_(W),B=Z.indexOf("."),I=Z.substring(0,B),X=!1,v=0,U=parseInt(I,0);if(I[0]=="#"){X=parseInt(I.substring(1),0);U=this.get(a);var O=this.get([a,I]);U[X]==O?v=X:v=U.indexOf(O);X=!0}else isNaN(U)||(v=U,X=!0);X&&(Z=Z.substring(I.length+1),B=Z.indexOf("."));I=_.Tq(N).children[v];var S;if(N=(S=I==null?void 0:I.polymerController)!=null?S:I)Z="data"+Z.slice(B),typeof N.notifyPath!=="function"?_.jJ(new _.Uw("notifyPath missing",
this.is+": "+a+", "+W)):w.value?N.notifyPath(Z,w.value):N.notifyPath(Z)},
stampDomArraySplices_:function(a,W,w){if(w&&w.indexSplices){var Z=this.getStampContainer_(W);if(Z){for(var N=_.Tq(Z),B=MES(this.stampDom[a].reuseComponents),I=w.indexSplices.length,X=0;X<I;X++){for(var v=w.indexSplices[X],U=N.children[v.index],O=v.removed.length;O>0;O--)U&&U.parentElement&&(_.Tq(U.parentElement).removeChild(U),B&&qJI(U),U=N.children[v.index]);O=this.stampDom[a].mapping;for(var S=v.index+v.addedCount,T=document.createDocumentFragment(),p=B,h=v.index;h<S;h++){var L=v.object[h],F=LqC(O,
L);if(F){var x=O[F];L=L[F];F=this.getComponentName_(x,L);var G=U?z$.has(U):!1;p&&U&&U.is==F&&G?(F=U,this.telemetry_.reuse++,U=U.nextElementSibling):p&&U&&G?(F=this.createComponent_(x,L,B),G=_.Tq(U).nextElementSibling,N.insertBefore(F,G),xAm(this.is,N,U,B),U=G):(p=!1,F=this.createComponent_(x,L,B),T.appendChild(F));this.deferRenderStamperBinding_(F,x,L)}else x=new _.Uw("Unimplemented type",a,W,Z.tagName,Object.keys(L)[0]),_.eJ(x)}N.insertBefore(T,U)}this.flushRenderStamperComponentBindings_();this.stampDom[a].events&&
_.E$(this.hostElement,"yt-rendererstamper-finished",{container:Z})}else a=new _.Uw("Container object not found",W,this.hostElement?this.hostElement.is:""),_.eJ(a)}},
stampDomArray_:function(a,W,w,Z,N,B){var I=this.getStampContainer_(W);if(I)if(W=_.Tq(I),Z=MES(Z),a){var X=0,v=0,U;if(B=B===void 0?_.JS("STAMPER_STABLE_LIST",!1):B||!1)for(U=W.firstElementChild;U&&!z$.has(U)&&a.length>v;){B=a[v];var O=LqC(w,B);if(O){if(this.getComponentName_(w[O],B[O])!=U.is){var S=this.createComponent_(w[O],B[O],Z),T=_.Tq(U).nextElementSibling;T?W.insertBefore(S,T):W.appendChild(S);xAm(this.is,W,U,Z);U=S}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(U,w[O],B[O]);X++;
v++;U=_.Tq(U).nextElementSibling}else v++}b2m(this.is,W,X,Z);X=U;if(a.length>v){B=document.createDocumentFragment();for(O=a.length;v<O;v++)if(S=a[v],T=LqC(w,S))U=this.createComponent_(w[T],S[T],Z),this.deferRenderStamperBinding_(U,w[T],S[T]),B.appendChild(U);X&&_.Tq(X).parentNode&&U&&!z$.has(U)?W.insertBefore(B,X):W.appendChild(B)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();N&&_.E$(this.hostElement,"yt-rendererstamper-finished",{container:I})}else b2m(this.is,W,0,
Z);else a=new _.Uw("Container object not found",W,this.hostElement?this.hostElement.is:""),_.eJ(a)},
getStampContainer_:function(a){return this.$&&this.$[a]||_.M(this.hostElement).querySelector("#"+a)},
getComponentName_:function(a,W){return typeof a==="string"?a:a.matcher?a.matcher.call(this,W):a.component},
createComponent_:function(a,W,w){a=this.getComponentName_(a,W);try{var Z=d$.has(a)||fp.has(a);if(w&&!Z){var N=_.CN(a);try{_.Hu(N)}catch(B){w="Failed to clear styles for "+a+".",B.message&&(w+=" Original error: "+B.message),_.jJ(new _.Uw(w))}}else N=document.createElement(a)}catch(B){return N="YtRendererStamperBehavior failed to create "+a+".",B.message&&(N+=" Original description: "+B.message),B.message="YtRendererStamperBehavior failed to create element",_.LH(B,N),yC$.hasOwnProperty(a)?_.jJ(B):_.eJ(B),
document.createElement("SPAN")}this.telemetry_.create++;return N},
deferRenderStamperBinding_:function(a,W,w){this.deferredBindingTasks_.push({component:a,typeOrConfig:W,data:w})},
flushRenderStamperComponentBindings_:function(){for(var a=0,W=this.deferredBindingTasks_.length;a<W;a++){var w=this.deferredBindingTasks_[a];if(!w)break;var Z=void 0,N=void 0,B=void 0,I=void 0,X=w.component,v=w.typeOrConfig;w=w.data;var U=(I=X.polymerController)!=null?I:X;I=X.loggingStatus;try{I&&(I.isRendererStamper=!0);if(typeof v!=="string"){for(B in v.attributes)v.attributes[B]===!0?X.setAttribute(B,""):v.attributes[B]===!1?X.removeAttribute(B):X.setAttribute(B,v.attributes[B]);for(N in v.params)U[N]=
v.params[N],X!==U&&XM(X.localName,N,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(Z in v.properties){var O=v.properties[Z];if(O){var S=Fqe(O);U[Z]=this.get(S);X!==U&&XM(X.localName,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(Z==="on-tap"||Z==="on-click"){var T=this.get(S);X.addEventListener("click",T);R6e.set(X,{property:Z,listener:{type:"element",eventName:"click",handler:T}})}}else{var p=new _.Uw("Undefined property binding",Z);_.eJ(p)}}}if(v.classListBinding){var h=Fqe(v.classListBinding),
L=h?this[h]:null;if(L)for(Z=0;Z<L.length;Z++)_.mh(X,L[Z],!0)}U.data=w}finally{I&&(I.isRendererStamper=!1)}if(Z=z$.get(X))X.hidden=!1,z$.delete(X),_.hF.cancelJob(Z)}this.deferredBindingTasks_.length=0}}];_.d4={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(a){for(var W=_.sn.getInstance(),w=_.l(Object.keys(a)),Z=w.next();!Z.done;Z=w.next()){var N=Z.value;Z=a[N];if(this&&this[Z]){var B=W.actionRoutingMap.get(N);B||(B=new Map,W.actionRoutingMap.set(N,B));W.registerActionHandler(this,N,this[Z].bind(this),B)}else N=Error("id"),N.params=Z,_.Ff(N)}},
unregisterActionMap:function(a){_.CH(_.sn.getInstance(),a,this)}}]};var E8=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_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"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:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var yD;var at=new Map;var WeD=window.matchMedia("(forced-colors: active)").matches;var EEl;var aXe;var tj9=new _.yq("LOTTIE_LOADER_TOKEN");_.En($2m);_.Ct(_.xQ(function(a){return _.k("ytd-lottie-player",{id:a.id,hidden:a.hidden,class:a.className,"aria-label":a.ariaLabel,style:"display: block;"},_.k(_.w2,{data:a.data,animationName:function(){var W;return((W=a.data().animationConfig)==null?void 0:W.name)||""},
animationRef:function(){return a.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.qR,
id:_.qR,hidden:_.qR,className:_.qR,ariaLabel:_.qR}});var m4=function(){var a=_.u.apply(this,arguments)||this;a.animationRef={};return a};
_.c(m4,_.u);_.t=m4.prototype;
_.t.handlePropertyChange=function(){var a=this.animatedIcon,W=this.active,w=this.isDarkTheme;if(a){var Z=this.previousActive!==W;this.previousActive=W;this.animationRef.lottieEl?Z&&this.toggleAnimation(W,a.totalFrames):W?this.initializeAnimationAsToggled(a.lottiePlayerProps,a.totalFrames):this.initializeAnimationAsUntoggled(a.lottiePlayerProps);a.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=a.type;this.lottiePlayerProps=this.computeLottiePlayerProps(a,w)}};
_.t.computeLottiePlayerProps=function(a,W){var w=this.deepCloneLottiePlayerProps(a);W?(W=a.nameDarkTheme,a=a.pathDarkTheme):(W=a.name,a=a.path);w.animationConfig.name=W;(W=at.get(a))?w.animationConfig.animationData=W:w.animationConfig.path=a;return w};
_.t.initializeAnimationAsToggled=function(a,W){a.animationConfig.initialSegment=[W-1,W]};
_.t.initializeAnimationAsUntoggled=function(a){a.animationConfig.initialSegment=void 0};
_.t.toggleAnimation=function(a,W){if(a){var w;(w=this.animationRef.lottieEl)==null||w.playSegments([0,W],!0)}else{var Z;(Z=this.animationRef.lottieEl)==null||Z.playSegments([0,1],!0)}};
_.t.deepCloneLottiePlayerProps=function(a){var W=Object.assign({},a.lottiePlayerProps.animationConfig);a=Object.assign({},a.lottiePlayerProps);a.animationConfig=W;return a};
m4.prototype.handlePropertyChange=m4.prototype.handlePropertyChange;_.f([_.b(),_.z("design:type",Object)],m4.prototype,"animatedIcon",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],m4.prototype,"active",void 0);_.f([_.b(),_.z("design:type",Boolean)],m4.prototype,"isDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],m4.prototype,"animatedIconType",void 0);_.f([_.b(),_.z("design:type",Boolean)],m4.prototype,"previousActive",void 0);
_.f([_.b(),_.z("design:type",Object)],m4.prototype,"lottiePlayerProps",void 0);_.f([_.b(),_.z("design:type",Object)],m4.prototype,"animationRef",void 0);_.f([_.a5("animatedIcon","active","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m4.prototype,"handlePropertyChange",null);m4=_.f([_.TD({is:"yt-animated-icon",disableElementRegistration:!0})],m4);
_.D(m4,"yt-animated-icon",function(){if(aXe===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;EEl===void 0&&(EEl=document.createElement("template"));var Z=EEl;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);aXe=a}a=aXe;return a},{mode:2});var W9l;var wLV;var I4U=_.xQ(function(a){var W=_.fH(),w=iG(function(){return{value:null}});
_.Ao(function(){var N;(N=w.value)==null||N.cancel()});
var Z=_.XT(a.data,{equals:function(N,B){return N.iconName===B.iconName&&N.iconStyle===B.iconStyle&&N.iconSize===B.iconSize&&N.iconSetName===B.iconSetName&&N.iconSelected===B.iconSelected}},"aoiXAb");
_.Ka(function(){var N,B=(N=a.options)==null?void 0:N.call(a);l4F(W,w,Z(),B)});
return _.k("span",{class:"yt-icon-shape",el:W})},"i");
I4U.idomCompat=!0;var IyS=["youtube_fill","youtube_outline"];var ZOE=new _.AM({type:"iconset",value:void 0}),Vx=function(){var a=_.u.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=_.$1(void 0,void 0,"RQ9kUb");a.renderingOptionsSignal=_.$1({iconWidth:"100%",iconHeight:"100%",iconFilter:a.iconFilter},void 0,"qtx8Ef");a.wizHasRendered=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.c(Vx,_.u);_.t=Vx.prototype;_.t.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
_.t.handlePropertyChange=function(){var a=this,W,w,Z,N,B,I,X,v,U,O,S;return _.P(function(T){switch(T.nextAddress){case 1:if(W=!a.icon&&!a.iconName||!a.isAttached)return T.return();w=a;Z=w.icon;N=w.size;B=w.defaultToFilled;I=w.active;X=w.targetContainer;a.toggleContainerClass(X);_.r("kevlar_use_wil_icons")&&Z&&(v=Q2m(Z),v.length?_.r("kevlar_icon_type_fix_killswitch")?(U=v[1].toUpperCase(),a.iconType=r1T[U],a.iconType||(a.iconType=v[1])):a.iconType=v[1]:a.iconType=null);if(Z){T.jumpTo(2);break}a.iconsetName=
"";a.iconName="";return _.g(T,a.renderIcon(X,Z),3);case 3:return T.return();case 2:O=a.computeIcon(Z);S=Q2m(O);S.length&&(a.iconsetName=S[0],a.iconName=S[1]);if(!_.r("kevlar_use_wil_icons")){T.jumpTo(4);break}return _.g(T,a.getIconShapeData(),5);case 5:a.iconShapeData=T.yieldResult;case 4:if(a.shouldRenderIconShape(X)){T.jumpTo(6);break}return _.g(T,a.determineIconSet(O,I,B,N,X),6);case 6:return _.g(T,a.renderIcon(X,Z),0)}})};
_.t.toggleContainerClass=function(a){a?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.t.computeIcon=function(a){return!_.r("default_to_innertube_icon")||a.indexOf(":")>0?a:_.EN(a)};
_.t.determineIconSet=function(a,W,w,Z){var N=this;return _.P(function(B){return B.nextAddress==1?_.r("kevlar_system_icons")||_.LF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.LF("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.g(B,N.switchToYtSysIconset(a,W,w,Z),3):B.jumpTo(2):B.nextAddress!=2?B.return():_.g(B,N.useYtSysIconsetForMissingIcons(a,W,w,Z),0)})};
_.t.switchToYtSysIconset=function(a,W,w,Z){var N=this,B,I,X,v,U,O,S;return _.P(function(T){switch(T.nextAddress){case 1:if(!a||N.iconsetName!=="yt-icons"&&N.iconsetName!=="yt-sys-icons"){T.jumpTo(0);break}B=Q2m(a);I=B[1];I=_.mCH(I);_.r("enable_polymer_icons_replace_underscores_dash")&&I.includes("_filled")&&(I=I.replace(/_filled/g,"-filled"));return _.g(T,yn(I,!0),3);case 3:return X=T.yieldResult,_.g(T,yn(I,!1),4);case 4:if((v=T.yieldResult)||W&&X)N.iconsetName="yt-sys-icons";N.iconName=N.getIconName(I,
W,w,v,X);if(Z===24){T.jumpTo(0);break}U="yt-sys-icons"+Z+":"+N.iconName;return _.g(T,yn(U,!1,!0),6);case 6:return O=T.yieldResult,_.g(T,yn(U,!0,!0),7);case 7:S=T.yieldResult;N.iconName=N.getIconName(I,W,w,O,S);if(!W&&O||W&&S)N.iconsetName="yt-sys-icons"+Z;_.Xd(T)}})};
_.t.getIconName=function(a,W,w,Z,N){a.includes("-filled")&&(a=a.replace("-filled",""));return N&&(W||w)?a+"-filled":a};
_.t.useYtSysIconsetForMissingIcons=function(a,W,w,Z){var N=this,B,I;return _.P(function(X){if(X.nextAddress==1)return N.iconsetName!=="yt-icons"?X.jumpTo(0):_.g(X,yn(N.iconName,!1,!1,!0),3);if(X.nextAddress!=4)return B=X.yieldResult,_.g(X,yn(N.iconName,!1),4);I=X.yieldResult;if(B||!I)return X.jumpTo(0);N.iconsetName="yt-sys-icons";return _.g(X,N.switchToYtSysIconset(a,W,w,Z),0)})};
_.t.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.t.getIconManager=function(){return _.P(function(a){try{return a.return(_.K().resolve(_.ad))}catch(W){return a.return(new Promise(function(w){_.F4().parkOrScheduleJob(function(){w(_.K().resolve(_.ad))},2,"ci")}))}})};
_.t.getIconShapeData=function(){var a=this,W,w,Z,N,B,I;return _.P(function(X){if(X.nextAddress==1){if(!a.iconType)return X.return(void 0);W=a.iconType.toLowerCase();w=W.endsWith("_filled")||W.endsWith("-filled");return _.g(X,a.getIconManager(),2)}Z=X.yieldResult;N=a.active||a.defaultToFilled||w?"youtube_fill":"youtube_outline";B={iconName:W,iconStyle:N,iconSize:a.size,iconSetName:a.iconsetName};I=!!Z.resolveIcon(B);I||(B.iconSize=void 0,I=!!Z.resolveIcon(B));!I&&w&&(B.iconName=W.substring(0,W.length-
7),B.iconSize=a.size,I=!!Z.resolveIcon(B),I||(B.iconSize=void 0,I=!!Z.resolveIcon(B)));I||(B.iconStyle=void 0,I=!!Z.resolveIcon(B));I||_.jJ(new _.Uw("Icon not supported",{iconName:B.iconName,iconStyle:B.iconStyle,iconSize:B.iconSize,iconType:W}));return X.return(I?B:void 0)})};
_.t.shouldRenderIconShape=function(a){if(!_.r("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;a=this.getContainer(a);return!wYv(a,this.icon)};
_.t.renderIcon=function(a,W){var w=this,Z,N,B,I,X,v,U,O;return _.P(function(S){switch(S.nextAddress){case 1:if(W&&w.icon!==W)return S.return();Z=w.getContainer(a);N=wYv(Z,w.icon);if(w.shouldRenderIconShape(a)&&w.iconType)return w.applyIconShape(N,Z),S.return();w.removeIconShape();if(!Z)return S.return();w.iconName===""&&w.iconset&&Z&&(w.removeStaticIcon(w.iconset,Z),N&&w.removeAnimatedIcon(Z));if(w.iconName===""&&w.iconset||!w.iconsetName||!ZOE)return S.return();w.iconset=ZOE.byKey(w.iconsetName);
if(!w.iconset)return w.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.yV(w,w.onIconsetAdded)),S.return();w.missingIconSet&&(w.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.yV(w,w.onIconsetAdded)));I=(B=N||w.isAnimatedIcon?a4F(w.icon):void 0)&&!B.lazyLoad;v=B&&((X=B)==null?void 0:X.lazyLoad)&&(B.lottiePlayerProps.animationConfig.animationData?!0:at.get(w.isDarkTheme?B.pathDarkTheme:B.path)?!0:!1);if(I||v)return w.applyAnimatedIcon(Z,B,w.iconset),S.return();if(v||
(U=B)==null||!U.lazyLoad){S.jumpTo(2);break}O=NeI(B,w.isDarkTheme);w.applyStaticIcon(w.iconset,Z,w.iconName,a,N);return _.g(S,O,3);case 3:return _.g(S,w.renderIcon(w.targetContainer,w.icon),4);case 4:return S.return();case 2:w.applyStaticIcon(w.iconset,Z,w.iconName,a,N),_.Xd(S)}})};
_.t.getContainer=function(a){var W,w=(W=Wxx(this.hostElement))==null?void 0:W.host;W=!!w&&!!w.polymerController;if(!a||W)return a?this.getTargetContainer(a,w):this.hostElement};
_.t.getTargetContainer=function(a,W){var w=_.M(W).querySelector("#"+a);w||(a=new _.Uw("yt-icon container missing",W.is,a),_.eJ(a));return w};
_.t.applyStaticIcon=function(a,W,w,Z,N){N&&this.removeAnimatedIcon(W);this.removeIconShape();N=N&&!!this.iconType&&!!this.iconShapeData&&_.r("kevlar_use_wil_icons");try{N?this.applyIconShape(!1,W):a.applyIcon(W,w)}catch(B){this.handleError(B,Z,W)}};
_.t.applyIconShape=function(a,W){this.iconset&&W&&(this.removeStaticIcon(this.iconset,W),a&&this.removeAnimatedIcon(W));a={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var w=_.l(this.iconShapeDataSignal);W=w.next().value;w=w.next().value;var Z=_.l(this.renderingOptionsSignal),N=Z.next().value;Z=Z.next().value;w(this.iconShapeData);Z(a);if(!this.wizHasRendered)for(this.wizHasRendered=!0,a=_.l(PtU(W,N)).next().value;a.firstChild;)_.M(this.hostElement).appendChild(a.firstChild)};
_.t.removeIconShape=function(){if(_.r("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.t.removeStaticIcon=function(a,W){a.removeIcon(W)};
_.t.applyAnimatedIcon=function(a,W,w){this.removeStaticIcon(w,a);this.removeIconShape();var Z;w=this.animatedIconElement&&((Z=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:Z.type)===W.type;if(this.animatedIconElement&&w){this.animatedIconElement.polymerController.animatedIcon=W;var N;((N=this.animatedIconElement)==null?void 0:N.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=W,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.r("kevlar_use_wil_icons")?a.insertBefore(this.animatedIconElement,a.childNodes[0]):(a=_.M(a),a.insertBefore(this.animatedIconElement,a.childNodes[0]))};
_.t.removeAnimatedIcon=function(a){_.r("kevlar_use_wil_icons")?this.animatedIconElement&&a.contains(this.animatedIconElement)&&a.removeChild(this.animatedIconElement):(a=_.M(a),this.animatedIconElement&&a.contains(this.animatedIconElement)&&a.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.t.handleError=function(a,W,w){_.LH(a,this.iconName,W,w);W=wYv(w,this.icon);var Z=!1;window.location.href.includes("JpymaW6Lh2w")?Z=!0:w._svgIcon&&(w=(w=w._svgIcon.parentNode)?w.tagName:"unknown",_.LH(a,w),w==="YT-ICON"&&a.name==="NotFoundError"?Z=!0:a.name==="NotFoundError"&&W&&(Z=!0));Z?_.jJ(a):_.eJ(a)};
_.dU.Object.defineProperties(Vx,{template:{configurable:!0,enumerable:!0,get:function(){if(wLV===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;
W9l===void 0&&(W9l=document.createElement("template"));var Z=W9l;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);wLV=a}a=wLV;return a}}});
Vx.prototype.handlePropertyChange=Vx.prototype.handlePropertyChange;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Vx.prototype,"actionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",String)],Vx.prototype,"icon",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Vx.prototype,"active",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Vx.prototype,"defaultToFilled",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Vx.prototype,"isAnimatedIcon",void 0);
_.f([_.b({value:24}),_.z("design:type",Number)],Vx.prototype,"size",void 0);_.f([_.b({value:""}),_.z("design:type",String)],Vx.prototype,"targetContainer",void 0);_.f([_.b(),_.z("design:type",Object)],Vx.prototype,"animatedIconElement",void 0);_.f([_.b(),_.z("design:type",Object)],Vx.prototype,"isDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Vx.prototype,"ariaHidden",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Vx.prototype,"ariaLabel",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Vx.prototype,"role",void 0);_.f([_.b(),_.z("design:type",String)],Vx.prototype,"style",void 0);_.f([_.b(),_.z("design:type",String)],Vx.prototype,"iconFilter",void 0);_.f([_.a5("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],Vx.prototype,"handlePropertyChange",null);
Vx=_.f([_.TD({is:"yt-icon",noInjection:!0})],Vx);var Nsh;var tbl=function(){var a=document.body,W=a.appendChild;if(Nsh===void 0){var w=document.createElement("template");_.n(w,'\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>');
Nsh=w}w=Nsh;W.call(a,w.content)};
document.body?tbl():window.addEventListener("DOMContentLoaded",tbl);var $3A,Bs6=function(){return $3A!==void 0?$3A:$3A=document.createElement("template")};
document.head.appendChild(Bs6().content);var lXT,IXE=function(){return lXT!==void 0?lXT:lXT=document.createElement("template")};
document.head.appendChild(IXE().content);var PDy;_.S4=new _.yq("KEY_MANAGER_TOKEN");var kl8={duration:1E3,easing:"ease",fill:"forwards"};_.En(oh8);var XLJ=_.NX(_.tu);_.En(_.tu);_.ot=_.xQ(function(a){var W=_.D8(a.ref),w=a.aTagConfig?a.aTagConfig:_.XT(function(){var B,I,X,v,U,O;var S=(O=_.rJ((v=a.command)==null?void 0:v.call(a)))!=null?O:(U=a.command)==null?void 0:U.call(a);return _.hQ({innertubeCommand:S,skipOnClick:(B=a.skipOnClick)==null?void 0:B.call(a),stopPropagation:(I=a.dangerousStopPropagation)==null?void 0:I.call(a),defaultTarget:(X=a.target)==null?void 0:X.call(a)})||{}},void 0,"gnrRge");
_.Ka(function(){W.value._data=w()._data;W.value.params=w().params});
var Z=_.$_(function(B){var I,X;return void((X=(I=w()).onpointerdown)==null?void 0:X.call(I,B))}),N=_.$_(function(B){var I,X;
return void((X=(I=w()).onclick)==null?void 0:X.call(I,B))});
return _.k("a",{el:W,href:function(){return w().href$},
rel:function(){return w().rel$},
class:function(){var B,I;return(I=w().className)!=null?I:(B=a.className)==null?void 0:B.call(a)},
style:function(){var B;if((B=a.style)==null?0:B.call(a))return a.style();var I;return((I=a.disabled)==null?0:I.call(a))?"pointer-events:none":""},
"aria-haspopup":function(){return!!w()["aria-haspopup$"]},
"force-new-state":B$(function(){return w()["force-new-state$"]}),
title:B$(function(){var B,I;return(I=w().title$)!=null?I:(B=a.title)==null?void 0:B.call(a)}),
role:B$(function(){return w().role$}),
target:B$(function(){return w().target$}),
dir:B$(function(){var B;return((B=a.dir)==null?0:B.call(a))?a.dir():w().dir}),
tabindex:function(){var B;return w().tabindex$?Number(w().tabindex$):(B=a.tabIndex)==null?void 0:B.call(a)},
"aria-hidden":function(){var B,I;return(I=w()["aria-hidden$"])!=null?I:(B=a.ariaHidden)==null?void 0:B.call(a)},
"aria-label":function(){var B,I;return(I=w()["aria-label$"])!=null?I:(B=a.ariaLabel)==null?void 0:B.call(a)},
"aria-current":a.ariaCurrent,"aria-labelledby":a.ariaLabelledby,"aria-describedby":a.ariaDescribedby,"aria-selected":a.ariaSelected,"tab-identifier":a.tabIdentifier,"on:pointerdown":Z,"on:click":N},a.children)},"j");var vyH=function(a,W){this.fillAnimation=new Animation(SpF(a),document.timeline);this.strokeAnimation=new Animation(YpS(W),document.timeline)};
vyH.prototype.play=function(){var a,W;(W=(a=this.fillAnimation).play)==null||W.call(a);var w,Z;(Z=(w=this.strokeAnimation).play)==null||Z.call(w)};
vyH.prototype.cancel=function(){var a,W;(W=(a=this.fillAnimation).cancel)==null||W.call(a);var w,Z;(Z=(w=this.strokeAnimation).cancel)==null||Z.call(w)};_.g2=_.xQ(function(a){var W=a.model;var w=a.pointerDownEvent;var Z=a.pointerUpEvent;var N=a.pointerLeaveEvent;a=_.D8();var B=_.It({"border-radius":function(){return W().borderRadius}}),I=_.D8(),X=_.D8(),v=_.l(_.l5(function(){return(Z==null?0:Z())||(N==null?0:N())?!1:!(w==null||!w())||!1})),U=v.next().value,O=v.next().value,S=void 0,T=function(){!S&&X.value&&I.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(S=new vyH(X.value,I.value));
var G;(G=S)==null||G.play()},p=function(){var G;
(G=S)==null||G.cancel()},h=function(){var G;
(G=S)==null||G.cancel()};
_.Ka(function(){(Z==null?0:Z())&&T()});
_.Ka(function(){(w==null?0:w())&&p()});
_.Ka(function(){(N==null?0:N())&&h()});
v=_.$_(function(){T();O(!1)});
var L=_.$_(function(){p();O(!0)}),F=_.$_(function(){h();
O(!1)});
_.Ao(function(){if(S){var G;(G=S)==null||G.cancel();S=void 0}});
var x={};U=_.W$("yt-spec-touch-feedback-shape",function(){return KeC(W().color)},(x["yt-spec-touch-feedback-shape--focused"]=function(){return!!W().focused&&!W().disabled},x["yt-spec-touch-feedback-shape--circular"]=function(){return!!W().circular},x["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!W().isExtended},x["yt-spec-touch-feedback-shape--down"]=U,x["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!W().triggerEvents},x));
return _.k("yt-touch-feedback-shape",{style:_.It({"border-radius":"inherit"})},_.k("div",{el:a,class:U,style:_.It({"margin-top":function(){return W().customTopExtend?"-"+W().customTopExtend+"px":void 0}}),
"on:mousedown":L,"on:mouseup":v,"on:pointerleave":F,"on:touchstart":L,"on:touchend":v,"aria-hidden":!0},_.k("div",{class:"yt-spec-touch-feedback-shape__stroke",style:B,el:I}),_.k("div",{class:"yt-spec-touch-feedback-shape__fill",style:B,el:X})))},"k");
_.g2.idomCompat=!0;var gyE={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 zR=_.S9();zR=zR.toLowerCase();if(_.gE(zR,"android")){var oy$=zR.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);oy$&&parseFloat(oy$[1])<100||zR.match("("+Object.keys(gyE).join("|")+")")};var kaL=_.xQ(function(a){return _.k(_.Y,{cond:a.aTagConfig,then:function(W){return _.k(_.ot,{aTagConfig:W,disabled:a.disabled,className:a.className,style:a.style,title:a.title,ariaLabel:a.ariaLabel,ariaCurrent:function(){var w,Z;return((w=a.toggleable)==null?void 0:w.call(a))&&((Z=a.toggled)==null?void 0:Z.call(a))}},a.children)},
else:function(){return _.k("button",{"on:click":_.$_(function(W){var w;return(w=a.onClick)==null?void 0:w.call(a,W)}),
class:a.className,title:a.title,style:a.style,disabled:a.disabled,"aria-pressed":function(){var W,w;return((W=a.toggleable)==null?0:W.call(a))?!((w=a.toggled)==null||!w.call(a)):void 0},
"aria-label":a.ariaLabel,"aria-disabled":a.visiblyDisabled,"aria-hidden":a.ariaHidden,tabindex:a.tabIndex},a.children)}})},"l"),OO6=_.xQ(function(a){var W=a.data;
var w=a.hasIconLeading;var Z=a.hasIconLeadingTrailing;var N=a.hasIconTrailing;var B=a.iconButton;var I=a.iconClassName;var X=a.secondaryIconClassName;var v=a.icon;var U=a.secondaryIcon;var O=a.textContentClassName;return _.k(H7,{className:"",style:"display: inherit; justify-content: center"},_.k(_.Y,{cond:function(){return v&&(w()||Z()||(B==null?void 0:B()))},
then:function(){return _.k(H7,null,_.k("div",{class:I,"aria-hidden":"true"},v==null?void 0:v()))}}),_.k(_.Y,{cond:function(){return(W().buttonText||W().animatedTextProps||W().formattedButtonText)&&!(B==null?0:B())},
then:function(){return _.k(H7,null,_.k(U36,{className:O,iconPosition:function(){return W().iconPosition},
text:function(){return W().buttonText},
oneOffCustomTextWrap:function(){return W().oneOffCustomTextWrap},
formattedButtonText:function(){return W().formattedButtonText},
animatedTextProps:function(){return W().animatedTextProps}}))}}),_.k(_.Y,{cond:N,
then:function(){return _.k(H7,null,_.k("div",{class:I},v==null?void 0:v()))}}),_.k(_.Y,{cond:Z,
then:function(){return _.k(H7,null,_.k("div",{class:X},U==null?void 0:U()))}}),_.k(_.Y,{cond:function(){return!W().disabled&&!0},
then:function(){return _.k(_.g2,{model:function(){return{color:hPF(W())}}})}}))},"m"),U36=_.xQ(function(a){var W=function(){var w,Z;
return((w=a.iconPosition)==null?void 0:w.call(a))==="icon-with-label"||((Z=a.oneOffCustomTextWrap)==null?void 0:Z.call(a))};
return _.k("div",{class:a.className,"aria-hidden":function(){var w,Z,N;return((w=a.ariaHidden)==null?void 0:w.call(a))&&(!((Z=a.animatedTextProps)==null||!Z.call(a))||!((N=a.formattedButtonText)==null||!N.call(a)))}},_.k(_.Y6,null,_.k(_.Ut,{when:function(){var w;
return(w=a.animatedTextProps)==null?void 0:w.call(a)}},function(){return _.k(XLJ,{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}})}),_.k(_.Ut,{when:function(){var w;
return(w=a.formattedButtonText)==null?void 0:w.call(a)}},function(){return _.k(_.k_,{text:function(){return Object.assign({},a.formattedButtonText(),{lineBreakMode:W()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":a.formattedButtonText().lineBreakMode,
alignment:W()?"TEXT_ALIGNMENT_CENTER":a.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!W()}})}),_.k(_.Ut,{when:function(){var w,Z;
return((w=a.iconPosition)==null?void 0:w.call(a))==="icon-with-label"&&((Z=a.text)==null?void 0:Z.call(a))}},function(){return _.k(_.k_,{text:function(){return{content:a.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.k(_.Sm,null,function(){return a.text})))},"n"),ShV=_.xQ(function(a){return _.k(_.Y,{cond:a.hasLabel,
then:function(){var W;return _.k("label",{class:a.className},a.children,(W=a.textContent)==null?void 0:W.call(a))},
else:function(){return a.children}})},"o"),H7=_.xQ(function(a){return a.children},"p");var ruH=Df("stamper-context");_.En(sHx);var EB=_.xQ(function(a){var W=a.data;var w=a.icon;var Z=a.iconName;var N=a.secondaryIcon;var B=a.secondaryIconName;var I=a.focusedOverride;QHx();var X=pYv(W),v=X.size,U=X.style;a=X.disabled;var O=X.onTap,S=X.alignByText,T=X.aTagConfig,p=X.customColors,h=X.segmentedPosition,L=X.toggled,F=X.toggleable,x=X.accessibilityLabel,G=X.onToggle,V=X.iconPosition,d=X.oneOffCustomTextWrap,ZD=X.disableTextEllipsis,aC=X.disableBackdropFilter,Bv=X.tooltipText,Am=X.ariaHidden,e9=X.tabIndex,cv=X.buttonText,C7=X.formattedButtonText,
RC=X.animatedTextProps,G8=AJm(W,w,N,Z,B,I),QF=G8.type;w=G8.shouldFocus;Z=G8.hasIconLeading;N=G8.hasIconTrailing;var vl=G8.hasIconLeadingTrailing,Hl=G8.hasIconOnly;B=G8.hasIconOnly40;var SV=G8.hasIconWithLabel;I=G8.iconButton;var Ny=G8.visiblyDisabled;X=G8.overrideSmallSizeIcon;var Bl=G8.iconToRender;G8=G8.secondaryIconToRender;var JL={},Pl={};return _.k(ShV,{className:_.W$("yt-spec-button-shape-with-label",(JL["yt-spec-button-shape-with-label--is-overlay"]=function(){return U()==="overlay"||U()===
"overlay-dark"},JL)),
hasLabel:SV,textContent:function(){return _.k(U36,{text:cv,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:d,iconPosition:V,formattedButtonText:C7,animatedTextProps:RC})}},_.k(kaL,{aTagConfig:T,
className:_.W$("yt-spec-button-shape-next",function(){return cJv(QF())},function(){return Ny()?void 0:ePH(U())},function(){return nh9(v())},(Pl["yt-spec-button-shape-next--disabled"]=Ny,Pl["yt-spec-button-shape-next--focused"]=w,Pl["yt-spec-button-shape-next--icon-trailing"]=N,Pl["yt-spec-button-shape-next--icon-leading"]=Z,Pl["yt-spec-button-shape-next--icon-leading-trailing"]=vl,Pl["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return vl()&&!(cv()||C7())},Pl["yt-spec-button-shape-next--icon-button"]=
function(){return Hl()||SV()},Pl["yt-spec-button-shape-next--icon-only-default"]=B,Pl["yt-spec-button-shape-next--align-by-text"]=S,Pl["yt-spec-button-shape-next--segmented-start"]=function(){return h()==="start"},Pl["yt-spec-button-shape-next--segmented-end"]=function(){return h()==="end"},Pl["yt-spec-button-shape-next--override-small-size-icon"]=X,Pl["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=d,Pl["yt-spec-button-shape-next--disable-text-ellipsis"]=ZD,Pl["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!aC()&&iXU()},Pl)),
style:function(){return Le9(p()).style},
onClick:function(W9){O==null||O(W9);F()&&(G==null||G(W9))},
disabled:a,ariaLabel:x,toggleable:F,toggled:L,title:function(){var W9;return(W9=Bv())!=null?W9:""},
visiblyDisabled:Ny,ariaHidden:Am,tabIndex:e9},_.k(OO6,{data:W,hasIconLeading:Z,hasIconLeadingTrailing:vl,hasIconTrailing:N,iconButton:I,icon:Bl,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:G8})))},"q");
EB.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var Yhy=_.xQ(function(a){var W=a.data;var w=a.id;var Z=a.hidden;var N=a.className;var B=a.icon;var I=a.secondaryIcon;var X=a.iconName;var v=a.secondaryIconName;a=_.l(_.$1(!1,void 0,"ikxyhf"));var U=a.next().value,O=a.next().value,S=function(){var p=_.K().resolve(_.Vv(_.S4));p&&O(p.isKeyBoardInUse())},T=function(){O(!1)};
a=_.D8(function(p){if(_.K().resolve(_.Vv(_.S4)))return p.addEventListener("focusin",S),p.addEventListener("focusout",T),function(){p.removeEventListener("focusin",S);p.removeEventListener("focusout",T)}});
return _.k("yt-button-shape",{el:a,id:w,class:N,hidden:Z},_.k(_.Y,{cond:W,then:function(){return _.k(EB,{data:W,icon:B,secondaryIcon:I,iconName:X,secondaryIconName:v,focusedOverride:U})}}))},"r");
_.r("web_wiz_button_shape")&&_.Ct(Yhy,"yt-button-shape",{props:{data:_.qR,id:_.qR,hidden:_.qR,className:_.qR,icon:_.ux,secondaryIcon:_.ux,iconName:_.qR,secondaryIconName:_.qR},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var yx=function(){var a=_.u.apply(this,arguments)||this;a.keyboardFocused=!1;return a};
_.c(yx,_.u);yx.prototype.onFocus=function(){var a=_.K().resolve(_.Vv(_.S4));a&&(this.keyboardFocused=a.isKeyBoardInUse())};
yx.prototype.onBlur=function(){this.keyboardFocused=!1};
yx.prototype.renderIdom=function(){var a=this;if(this.data){var W=Xq(this.data,!!this.iconName),w=jHm(this.data);this.data.focused=this.keyboardFocused;RPm(this.data,function(){var Z;O8("yt-icon",{icon:a.iconName,active:(Z=a.data)==null?void 0:Z.toggled,size:W,style:"width: "+W+"px; height: "+W+"px;",iconFilter:w},x1)},function(){var Z;
O8("yt-icon",{icon:a.secondaryIconName,active:(Z=a.data)==null?void 0:Z.toggled,size:W,style:"width: "+W+"px; height: "+W+"px;",iconFilter:w},x1)});
_.E$(this.hostElement,"yt-renderidom-finished")}};
_.dU.Object.defineProperties(yx,{template:{configurable:!0,enumerable:!0,get:function(){if(PDy===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(IXE().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(Bs6().content.cloneNode(!0),a.content.firstChild);PDy=a}a=PDy;return a}}});
yx.prototype.onBlur=yx.prototype.onBlur;yx.prototype.onFocus=yx.prototype.onFocus;_.f([_.R(fI6),_.z("design:type",Object)],yx.prototype,"ytIdomTemplatingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],yx.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],yx.prototype,"iconName",void 0);_.f([_.b(),_.z("design:type",String)],yx.prototype,"secondaryIconName",void 0);_.f([_.b(),_.z("design:type",Object)],yx.prototype,"keyboardFocused",void 0);
_.f([_.E6("focusin"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yx.prototype,"onFocus",null);_.f([_.E6("focusout"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yx.prototype,"onBlur",null);yx=_.f([_.TD({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.r("web_wiz_button_shape")})],yx);_.Ct(_.xQ(function(a){function W(){w().seconds&&B(aJS({seconds:Number(w().seconds)-Date.now()/1E3}))}
var w=a.targetTimestamp;a=a.className;var Z=_.l(_.$1("",void 0,"U1Q8Ae")),N=Z.next().value,B=Z.next().value;_.pF(function(){W();var I=setInterval(function(){W()},1E3);
_.Ao(function(){clearInterval(I)})});
return _.k("yt-countdown",{class:_.W$("ytCountDownHost",a)},_.k("div",null,N))},"s"),"yt-countdown",{props:{targetTimestamp:_.qR,
className:_.ux}});_.F7=_.xQ(function(a){var W=a.data;var w=a.className;var Z=a.style;var N=a.useOutlinedIcon;var B=a.buttonOverrides;var I=a.animatedTextProps;var X=a.onClick;var v=_.D8(function(F){return function(){drH(_.NR(),F)}}),U=function(){return W().iconName},O,S=(O=_.K().resolve(_.Vv(_.Lt)))==null?void 0:O(),T=function(){var F=W();
var x=B==null?void 0:B(),G=I==null?void 0:I();if(F){var V=Gl7(F.type);var d=!!F.title||!!F.titleFormatted;var ZD=!(!F.iconName&&!F.iconImage);d=ZD&&!d?"icon-only":ZD?F.iconTrailing||F.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;d==="icon-only-40"&&(V="text");var aC,Bv=(aC=x==null?void 0:x.disabled)!=null?aC:F.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||F.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";aC=Object;ZD=aC.assign;var Am=F.title,e9=F.titleFormatted;G=
G&&G.numberText&&!isNaN(Number(G.numberValue))?G:void 0;var cv=F.accessibilityText,C7=CtF(F.style),RC=D2v(F.state),G8=f4I(F.buttonSize),QF=un9(F,v,Bv,X);Bv=Bv&&!F.onDisabledTap;var vl=_.hQ({elementsCommand:F.onTap,forceNewState:!0});vl=ix(vl)?vl:void 0;var Hl=F.customFontColor,SV=F.customBackgroundColor;var Ny=F.customBorderColor;var Bl=F.customDarkThemeFontColor,JL=F.customDarkThemeBackgroundColor,Pl=F.customDarkThemeBorderColor;Hl=S&&Bl?Bl:Hl;SV=S&&JL?JL:SV;Ny=S&&Pl?Pl:Ny;Ny={color:Hl?_.pC(Hl):
void 0,backgroundColor:SV?_.pC(SV):void 0,borderColor:Ny?_.pC(Ny):void 0};F=ZD.call(aC,{},{buttonText:Am,formattedButtonText:e9,animatedTextProps:G,accessibilityLabel:cv,style:C7,type:V,state:RC,size:G8,iconPosition:d,onTap:QF,disabled:Bv,aTagConfig:vl,customColors:Ny,tooltipText:F.tooltip},x)}else F={style:"mono",type:"text",state:"active",size:"M"};F.focused=L();return F},p=function(){return Xq(T(),!!W().iconName)};
a=_.l(_.$1(!1,void 0,"JjUrEe"));O=a.next().value;var h=a.next().value,L=O;a=_.$_(function(){var F=_.K().resolve(_.Vv(_.S4));F&&h(F.isKeyBoardInUse());return!1});
O=_.$_(function(){h(!1);return!1});
_.Ka(function(){var F,x=_.A(W==null?void 0:(F=W())==null?void 0:F.onVisible,_.pt);x&&_.AQ(x,{disableClickTracking:!0})});
_.AS(function(){v.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var F=W().targetId;F&&_.V8J(_.NR(),F,v.value)});
return _.k("button-view-model",{el:v,class:_.W$("yt-spec-button-view-model",w),"on:focusin":a,"on:focusout":O},_.k(_.Y,{cond:function(){return W().iconImage?{sources:[W().iconImage]}:void 0},
then:function(F){return _.k(EB,{data:T,icon:function(){return _.k(_.qw,{data:F,alt:"",targetWidth:p,targetHeight:p,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.k(EB,{data:T,icon:function(){return _.k(_.P$,{icon:U,active:function(){return(N==null?0:N())?!1:T().toggled},
animateIcon:function(){var F;return!!(Z==null?0:(F=Z())==null?0:F.animateIcon)},
size:p})}})}}))},"t");
_.F7.idomCompat={callbacks:{onClick:!0}};_.Ct(_.xQ(function(a){return _.k("yt-button-view-model",{id:a.id,class:_.W$(a.scopingClassName,a.classes),icon:function(){var W;return(W=a.icon)==null?void 0:W.call(a)},
"dialog-dismiss":function(){var W;return((W=a.dialogDismiss)==null?0:W.call(a))?"":void 0}},_.k(_.F7,{data:function(){var W;
return(W=a.data)==null?void 0:W.call(a)},
className:function(){var W;return(W=a.className)==null?void 0:W.call(a)},
style:function(){var W;return(W=a.style)==null?void 0:W.call(a)},
useOutlinedIcon:function(){var W;return(W=a.useOutlinedIcon)==null?void 0:W.call(a)},
buttonOverrides:function(){var W;return(W=a.buttonOverrides)==null?void 0:W.call(a)},
animatedTextProps:function(){var W;return(W=a.animatedTextProps)==null?void 0:W.call(a)},
onClick:function(W){var w;return(w=a.onClick)==null?void 0:w.call(a,W)}}))},"u"),"yt-button-view-model",{props:{data:_.qR,
className:_.qR,style:_.qR,useOutlinedIcon:_.qR,buttonOverrides:_.qR,animatedTextProps:_.qR,onClick:_.ux,scopingClassName:_.qR,id:_.qR,icon:_.qR,dialogDismiss:_.qR,classes:_.qR}});var EA=function(){var a=_.u.apply(this,arguments)||this;a.isGoalActive=!0;return a};
_.c(EA,_.u);EA.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
EA.prototype.progressBarChanged=function(){var a=_.M(this.hostElement).querySelector("#progress-bar-progress"),W,w,Z,N=(Z=Number((W=this.creatorGoalState)==null?void 0:W.currentGoalCount)/Number((w=this.creatorGoalState)==null?void 0:w.totalGoalCount)*100)!=null?Z:0,B;a.style.width=((B=Math.min(N,100))!=null?B:0)+"%"};
EA.prototype.goalStateChanged=function(){var a;this.isGoalActive=((a=this.creatorGoalState)==null?void 0:a.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var W;a={"--yt-progress-bar-color":vEx((W=this.creatorGoalState)==null?void 0:W.progressBarColor)};_.Hu(this.hostElement,a)};
EA.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.dU.Object.defineProperties(EA.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 W;a=Number((W=this.creatorGoalState)==null?void 0:W.endTimestampMs)/1E3;return{seconds:String(a)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.creatorGoalState)==null?0:a.themedTargetImage){var W;a=_.A((W=this.creatorGoalState)==null?void 0:W.themedTargetImage,YAE);return this.isAppDarkTheme()?a==null?void 0:a.imageDark:a==null?void 0:a.imageLight}}}});
_.dU.Object.defineProperties(EA,{template:{configurable:!0,enumerable:!0,get:function(){return DhA()}}});
EA.prototype.goalStateChanged=EA.prototype.goalStateChanged;EA.prototype.progressBarChanged=EA.prototype.progressBarChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],EA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ii),_.z("design:type",Object)],EA.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);
_.f([_.b({selectorArgs:["data.creatorGoalEntityKey"],selector:function(a,W){return _.tG(a.entities,"creatorGoalEntity",W)}}),
_.z("design:type",Object)],EA.prototype,"creatorGoalState",void 0);_.f([_.b(),_.z("design:type",Object)],EA.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],EA.prototype,"isGoalActive",void 0);_.f([_.Q("creatorGoalState","isGoalActive"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],EA.prototype,"shouldShowCountdown",null);_.f([_.Q("creatorGoalState"),_.z("design:type",Object),_.z("design:paramtypes",[])],EA.prototype,"endTimestamp",null);
_.f([_.Q("creatorGoalState"),_.z("design:type",Object),_.z("design:paramtypes",[])],EA.prototype,"targetIconThemedImage",null);_.f([_.a5("creatorGoalState.currentGoalCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EA.prototype,"progressBarChanged",null);_.f([_.a5("creatorGoalState.creatorGoalState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EA.prototype,"goalStateChanged",null);
EA=_.f([_.TD({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],EA);_.D(EA,"yt-creator-goal-progress-flow-view-model",function(){return DhA()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Ts6;var K9T;var a7=function(){return _.u.apply(this,arguments)||this};
_.c(a7,_.u);a7.prototype.attached=function(){var a,W,w;if(this==null?0:(a=this.data)==null?0:(W=a.pdgPurchasedBumperLoggingDirectives)==null?0:(w=W.loggingDirectives)==null?0:w.trackingParams){var Z,N,B;Vj7(this==null?void 0:(Z=this.data)==null?void 0:(N=Z.pdgPurchasedBumperLoggingDirectives)==null?void 0:(B=N.loggingDirectives)==null?void 0:B.trackingParams)}};
a7.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],a7.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],a7.prototype,"data",void 0);a7=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],a7);
_.D(a7,"yt-live-chat-item-bumper-view-model",function(){if(K9T===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Ts6===void 0&&(Ts6=document.createElement("template"));var Z=Ts6;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);K9T=a}a=K9T;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var pL_;var r3l;_.x_=function(a,W){this.data=a;this.actions=W;this.data=a;this.actions=W};
_.jL=function(){};_.Ww={};_.Ww.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(a,W){zP9(this.hostElement,a,W)},
getNavigationEndpointPopupAction:function(a){return HXI(a,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(a,W){yJU(this.hostElement,a,W,this.openPopupConfig)}};var lSm=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.wn={};
_.wn.YtEndpointBehavior=[_.Ww.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.LF("openPopupConfig");(this.useClickHandler=_.JS("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(a){WPC(this.hostElement,a,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(a){var W=this.hostElement,w=this.openPopupConfig,Z=this.disableCommandHandlerOverride;Z=Z===void 0?!1:Z;var N=Ehe(a);if(N){N.href&&h7(N.href);var B=a.detail;var I=B.sourceEvent;B=B.preventer;I=I.button!==void 0?I.button===0&&!SL(I):B?!SL(B):!0;N.data&&I&&aSe(W,N,a,w,Z)}},
onEndpointTouchEnd_:function(a){SL(a)||Ehe(a)&&a.preventDefault()},
onEndpointTapStart_:function(a){$ce(a)}}];var ISI="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),XO8=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var A3_={};A3_.YtPlaintextBehavior=[_.YS,{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){_.gk&&(a=a.detail.keyboardEvent,a.stopImmediatePropagation(),a.preventDefault())}}];var hrR;var iOE;var Zs=function(){var a=_.u.apply(this,arguments)||this;a.ignoreShadyDom=!1;a.hasChange_=!1;a.hasSetTitle_=!1;a.useIOObserverForVisibilityLogging_=_.r("kevlar_use_vimio_behavior")&&_.LF("INNERTUBE_CLIENT_NAME")==="WEB";a.ytFormattedStringObserverHandlerKeys_=void 0;return a};
_.c(Zs,_.u);_.t=Zs.prototype;_.t.created=function(){this.useIOObserverForVisibilityLogging_=_.r("kevlar_use_vimio_behavior")&&_.LF("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.t.ready=function(){_.LF("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_()};
_.t.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.t.detached=function(){this.unobserveIOObservers_()};
_.t.clearContents_=function(){for(var a=this.getRoot(),W=a.lastChild;W&&W.tagName!=="STYLE";){try{a.removeChild(W)}catch(w){break}W=a.lastChild}};
_.t.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var a=_.l(this.ytFormattedStringObserverHandlerKeys_),W=a.next();!W.done;W=a.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(W.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.t.resetForAttributedString=function(){var a=this.getRoot();!a.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),a.appendChild(this.ytAttributedStringElementRef))};
_.t.resetForFormattedString=function(){var a=this.getRoot(),W=a.querySelector("yt-attributed-string");W&&(this.ytAttributedStringElementRef=a.removeChild(W))};
_.t.textChanged=function(){this.textChanged_(this.text)};
_.t.textChanged_=function(a){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!a||!a.runs&&!a.simpleText;if(_.r("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var W=this.hostElement.firstChild;W&&W.nodeName==="FONT";){var w=W;W=W.nextSibling;this.hostElement.removeChild(w)}W=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
w=a.simpleText;var Z;!w&&((Z=a.runs)==null?void 0:Z.length)===1&&this.isSimpleString_(a.runs[0])&&(w=a.runs[0].text);w!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.LF("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(w!==void 0){try{W.textContent=w}catch(N){}W.textContent||(this.isEmpty=!0)}else a=a.runs,w!==void 0&&(a=[{text:w}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),a&&this.updateText_(a),
W.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.t.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)};
_.t.computeAriaLabel_=function(a){return a};
_.t.computeEllipsisTruncateStyling=function(a,W){return a&&!W};
_.t.computeUseAttributedString=function(a){return _.r("web_replace_formatted_with_attributed_string")&&epv(a)&&!this.disableAttributedString&&!this.enableContentEditable};
_.t.setNodeStyle_=function(a,W){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.r("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?W.removeAttribute("dir"):W.setAttribute("dir","auto");W.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");W.style.color="";var w=null;this.noStyles||(a.bold&&(W.classList.add("bold"),w="bold"),a.deemphasize&&(W.classList.add("deemphasize"),w="deemphasize"),a.italics&&W.classList.add("italic"),
a.strikethrough&&W.classList.add("strikethrough"),a.errorUnderline&&(W.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),a.bracket&&W.classList.add("bracket"),a.textColor&&(W.style.color=_.KC(a.textColor)));w!==W.getAttribute("style-target")&&(w?W.setAttribute("style-target",w):W.removeAttribute("style-target"))};
_.t.setUpVisibilityLogging_=function(a,W){var w=this;this.setNodeTrackingParams_(a,W);var Z;((Z=W.data)==null?0:Z.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(a=this.ytRendererBehavior.visibilityObserver.observe(W,function(N){var B=w.ytRendererBehavior.getVisibilityLogger();B&&B.reportShown(N)},this.ytRendererBehavior.visibilityOptionVisible_),W=this.ytRendererBehavior.visibilityObserver.observe(W,function(N){var B=w.ytRendererBehavior.getVisibilityLogger();
B&&B.reportHidden(N)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(a),this.ytFormattedStringObserverHandlerKeys_.push(W))};
_.t.setNodeTrackingParams_=function(a,W){W.data||(W.data={});if((a=a.loggingDirectives?a.loggingDirectives.trackingParams:null)||W.data.trackingParams)W.data.trackingParams=a};
_.t.computeHasLinkOnly_=function(a){return!(!a||a.length!==1||this.noEndpoints||!a[0].navigationEndpoint)};
_.t.getRoot=function(){var a=this.buildScopeDomOptions();return this.enableContentEditable?_.M(_.M(this.hostElement,a).querySelector("[contenteditable]")):_.M(this.hostElement,a)};
_.t.fixContenteditableScope=function(){var a=function(W){W&&(W.nodeType===1&&W.classList&&(W.classList.add("style-scope"),W.classList.add("yt-formatted-string")),W.childNodes&&W.childNodes.forEach(function(w){a(w)}))};
a(this.getRoot())};
_.t.updateText_=function(a){for(var W=a.length,w=this.getRoot(),Z=w.firstChild;Z&&Z.nodeName==="STYLE";)Z=Z.nextSibling;for(var N=0;N<W&&Z;){var B=a[N],I=_.r("remove_cr_char")&&B.text?B.text.replace("\r",""):B.text;if(this.isSimpleString_(B)&&!this.useMixedDirectionFormattedStrings)if(Z.nodeName==="#text"){Z.textContent!=I&&(Z.textContent=I);N++;Z=Z.nextSibling;continue}else break;if(_.A(B,T$))break;else if(!this.noEndpoints&&B.navigationEndpoint){if(Z.nodeName!=="A")break;this.setDataOnAnchor_(Z,
B.navigationEndpoint)}else if(Z.nodeName!=="SPAN")break;this.setNodeStyle_(B,Z);this.setUpVisibilityLogging_(B,Z);Z.textContent!=I&&(Z.textContent=I);N++;Z=Z.nextSibling}if(Z)for(B=w.lastChild,Z=N?Z.previousSibling:null;B&&B!=Z;){try{w.removeChild(B)}catch(X){break}B=w.lastChild}N!==W&&this.addTextNodes_(a,N)};
_.t.addTextNodes_=function(a,W){for(var w=document.createDocumentFragment(),Z=a.length;W<Z;W++){var N=a[W],B=_.r("remove_cr_char")&&N.text?N.text.replace("\r",""):N.text;if(this.isSimpleString_(N)&&!this.useMixedDirectionFormattedStrings)w.appendChild(document.createTextNode(B));else{var I=_.A(N,T$);if(I){if(I.image){var X=document.createElement("img");I.isCustomEmoji||X.classList.add("small-emoji");X.classList.add("emoji");I.isCustomEmoji&&(X.dataset.emojiId=I.emojiId);X.src=_.G$(I.image.thumbnails,
this.emojiSize);(N=this.get("image.accessibility.accessibilityData.label",I))?X.alt=N:I.shortcuts&&I.shortcuts.length>0?X.alt=I.shortcuts[0]:I.emojiId&&(X.alt=I.emojiId);w.appendChild(X);this.hasEmoji=!0}}else!this.noEndpoints&&N.navigationEndpoint?(X=document.createElement("a"),X.classList.add("yt-simple-endpoint"),X.setAttribute("spellcheck","false"),this.setDataOnAnchor_(X,N.navigationEndpoint)):X=document.createElement("span"),this.setNodeStyle_(N,X),this.setUpVisibilityLogging_(N,X),X.appendChild(document.createTextNode(B)),
w.appendChild(X)}}this.getRoot().appendChild(w)};
_.t.isSimpleString_=function(a){return(this.noEndpoints||!a.navigationEndpoint)&&!_.A(a,T$)&&(this.noStyles||!(a.bold||a.deemphasize||a.italics||a.strikethrough||a.errorUnderline||a.bracket||a.textColor))&&!a.loggingDirectives};
_.t.getRawText=function(){return _.sd(this.text)};
_.t.getFirstRunText=function(){var a;if(((a=this.text)==null?0:a.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.t.setFirstRunText=function(a){var W;((W=this.text)==null?0:W.runs)&&this.text.runs[0]&&(this.text.runs[0].text=a,this.textChanged_(this.text))};
_.t.setDataOnAnchor_=function(a,W){var w=this;!_.r("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(W)||this.isSignalServiceEndpoint_(W)?(a.onclick=this.serviceEndpointHandler_(W),hY(a,"#")):btU({text:this.text,command:W},function(){yQD(a,W,w.target)})};
_.t.isServiceEndpoint_=function(a){var W;return!((W=_.A(a==null?void 0:a.commandMetadata,_.mm))==null||!W.sendPost)};
_.t.isSignalServiceEndpoint_=function(a){return!!_.A(a,_.l0)};
_.t.serviceEndpointHandler_=function(a){var W=this;return function(w){_.Z9(W.hostElement,[a]);w.preventDefault()}};
_.t.overrideAriaLabelChanged_=function(){var a=this.getRoot();this.enableContentEditable&&a&&a.setAttribute("aria-label",this.overrideAriaLabel)};
_.t.enableContentEditableChanged_=function(){var a=this,W=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),W=_.M(this.hostElement,W),!W.lastChild||W.lastChild instanceof HTMLElement&&W.lastChild.id!=="contenteditable-root"){var w=document.createElement("div");w.id="contenteditable-root";w.setAttribute("contenteditable","true");w.setAttribute("dir","auto");w.onfocus=function(){a.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
W.appendChild(w);this.overrideAriaLabel&&w.setAttribute("aria-label",this.overrideAriaLabel)}}else w=_.di(this.hostElement).firstChild,w instanceof HTMLElement&&w.id==="contenteditable-root"&&_.M(this.hostElement,W).removeChild(w)};
_.t.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.t.getNodesForVisibilityLogging_=function(){return _.$T(this.getRoot().childNodes,function(a){var W;return!((W=a.data)==null||!W.trackingParams)})};
_.t.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.t.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var a=this.ytRendererBehavior.getVisibilityLogger();a&&this.getNodesForVisibilityLogging_().forEach(function(W){a.reportShown(W)})}};
_.t.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var a=this.ytRendererBehavior.getVisibilityLogger();a&&this.getNodesForVisibilityLogging_().forEach(function(W){a.reportHidden(W)})}};
_.dU.Object.defineProperties(Zs.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.r("enable_mixed_direction_formatted_strings")}}});
Zs.prototype.enableContentEditableChanged_=Zs.prototype.enableContentEditableChanged_;Zs.prototype.overrideAriaLabelChanged_=Zs.prototype.overrideAriaLabelChanged_;Zs.prototype.ellipsisTruncateChanged_=Zs.prototype.ellipsisTruncateChanged_;Zs.prototype.textChanged=Zs.prototype.textChanged;_.f([_.R(A3_.YtPlaintextBehavior),_.z("design:type",Object)],Zs.prototype,"ytPlaintextBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Zs.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Zs.prototype,"text",void 0);_.f([_.b(),_.z("design:type",Boolean)],Zs.prototype,"noEndpoints",void 0);_.f([_.b(),_.z("design:type",Boolean)],Zs.prototype,"noStyles",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Zs.prototype,"isDarkTheme",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Zs.prototype,"splitLines",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Zs.prototype,"forceDefaultStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Zs.prototype,"ellipsisTruncate",void 0);_.f([_.b(),_.z("design:type",Object)],Zs.prototype,"ignoreShadyDom",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.z("design:type",Boolean)],Zs.prototype,"ellipsisTruncateStyling",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.z("design:type",String)],Zs.prototype,"ariaLabel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Zs.prototype,"isEmpty",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.z("design:type",Boolean)],Zs.prototype,"hasLinkOnly_",void 0);_.f([_.b(),_.z("design:type",Boolean)],Zs.prototype,"hasEmoji",void 0);_.f([_.b(),_.z("design:type",Boolean)],Zs.prototype,"disableAttributedString",void 0);_.f([_.b(),_.z("design:type",Boolean)],Zs.prototype,"isOverlay",void 0);_.f([_.b(),_.z("design:type",Boolean)],Zs.prototype,"linkInheritColor",void 0);
_.f([_.b(),_.z("design:type",Boolean)],Zs.prototype,"noPreWrap",void 0);_.f([_.b(),_.z("design:type",Boolean)],Zs.prototype,"userInput",void 0);_.f([_.b({value:16}),_.z("design:type",Number)],Zs.prototype,"emojiSize",void 0);_.f([_.b(),_.z("design:type",String)],Zs.prototype,"target",void 0);_.f([_.b(),_.z("design:type",Boolean)],Zs.prototype,"enableContentEditable",void 0);_.f([_.b(),_.z("design:type",String)],Zs.prototype,"overrideAriaLabel",void 0);
_.f([_.b(),_.z("design:type",Boolean)],Zs.prototype,"respectHtmlDir",void 0);_.f([_.b(),_.z("design:type",Boolean)],Zs.prototype,"respectLangDir",void 0);_.f([_.Q("plaintextOnly"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Zs.prototype,"useMixedDirectionFormattedStrings",null);_.f([_.b({computed:"computeUseAttributedString(text)"}),_.z("design:type",Boolean)],Zs.prototype,"useYtAttributedString",void 0);
_.f([_.a5("text"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zs.prototype,"textChanged",null);_.f([_.a5("ellipsisTruncate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zs.prototype,"ellipsisTruncateChanged_",null);_.f([_.a5("overrideAriaLabel"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zs.prototype,"overrideAriaLabelChanged_",null);
_.f([_.a5("enableContentEditable"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zs.prototype,"enableContentEditableChanged_",null);Zs=_.f([_.TD({is:"yt-formatted-string",disableElementRegistration:!0})],Zs);
_.D(Zs,"yt-formatted-string",function(){if(iOE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;hrR===void 0&&(hrR=document.createElement("template"));var Z=hrR;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);iOE=a}a=iOE;return a});var c3$;var erE;var nyR;var j6A;var NL=function(){var a=_.u.apply(this,arguments)||this;a.focused=!1;a.disabled=!1;a.isOverlay=!1;return a};
_.c(NL,_.u);NL.prototype.triggerDown=function(){if(!this.disabled){_.mh(this.hostElement,"down",!0);var a;(a=this.currentAnimation)==null||a.cancel()}};
NL.prototype.triggerUp=function(){if(!this.disabled){_.mh(this.hostElement,"down",!1);var a=this.fillElement;var W=this.strokeElement;typeof GroupEffect==="function"?(a=new GroupEffect([SpF(a),YpS(W)]),a=new Animation(a,document.timeline)):a=new vyH(a,W);this.currentAnimation=a;var w;(w=this.currentAnimation)==null||w.play()}};
_.f([_.w$(".stroke"),_.z("design:type",HTMLElement)],NL.prototype,"strokeElement",void 0);_.f([_.w$(".fill"),_.z("design:type",HTMLElement)],NL.prototype,"fillElement",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],NL.prototype,"focused",void 0);_.f([_.b(),_.z("design:type",Object)],NL.prototype,"disabled",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],NL.prototype,"isOverlay",void 0);NL=_.f([_.TD({is:"yt-interaction",disableElementRegistration:!0})],NL);
_.D(NL,"yt-interaction",function(){if(j6A===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;nyR===void 0&&(nyR=document.createElement("template"));var Z=nyR;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);j6A=a}a=j6A;return a},{mode:2});var tp=function(){return _.u.apply(this,arguments)||this};
_.c(tp,_.u);_.t=tp.prototype;_.t.ready=function(){var a=this,W=_.M(this.hostElement).querySelector("#button");W.addEventListener("focus",function(){gvR||(gvR=new vvL);a.keyboardFocused=gvR.isKeyBoardInUse()});
W.addEventListener("blur",function(){a.keyboardFocused=!1;a.rippleUp_()})};
_.t.computeTabIndex_=function(a){return a?-1:0};
_.t.computeButtonAriaPressed_=function(a){if(this.toggleable)return a?"true":"false"};
_.t.rippleDown_=function(){_.M(this.hostElement).querySelector("#interaction").triggerDown()};
_.t.rippleUp_=function(){_.M(this.hostElement).querySelector("#interaction").triggerUp()};
_.t.onPressedChanged_=function(){var a=_.di(_.M(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.di(_.M(this.hostElement).querySelector("#button")).children[0];a&&(a.active=this.pressed)};
tp.prototype.onPressedChanged_=tp.prototype.onPressedChanged_;tp.prototype.rippleUp_=tp.prototype.rippleUp_;tp.prototype.rippleDown_=tp.prototype.rippleDown_;_.f([_.b(),_.z("design:type",String)],tp.prototype,"label",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],tp.prototype,"disabled",void 0);_.f([_.b(),_.z("design:type",Boolean)],tp.prototype,"pressed",void 0);_.f([_.b(),_.z("design:type",Object)],tp.prototype,"toggleable",void 0);
_.f([_.b(),_.z("design:type",Boolean)],tp.prototype,"untabbable",void 0);_.f([_.b(),_.z("design:type",Boolean)],tp.prototype,"keyboardFocused",void 0);_.f([_.E6("down"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tp.prototype,"rippleDown_",null);_.f([_.E6("up"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tp.prototype,"rippleUp_",null);
_.f([_.a5("pressed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tp.prototype,"onPressedChanged_",null);tp=_.f([_.TD({is:"yt-icon-button",disableElementRegistration:!0})],tp);
_.D(tp,"yt-icon-button",function(){if(erE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;c3$===void 0&&(c3$=document.createElement("template"));var Z=c3$;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);erE=a}a=erE;return a},{mode:2});var L9A=_.ma(["aria-"]),$Z={};$Z.YtRenderButtonBehavior=[_.E.YtRendererBehavior,_.wn.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!!_.K().resolve(_.Vv(_.S4))&&_.r("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?hY(this.elements_.endpoint,a):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){a=this.buttonClass.split(" ");a=_.l(a);for(var W=a.next();!W.done;W=a.next())W=W.value,_.mh(this.hostElement,W,!0),this.elements_.button&&_.mh(this.elements_.button,W,!0),this.elements_.text&&_.mh(this.elements_.text,W,!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?_.bq([_.z2(L9A)],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=_.K().resolve(_.Vv(_.S4));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_()?_.CN("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,_.Tq(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Tq(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(a,W){if(W)for(a=W.split(" "),a=_.l(a),W=a.next();!W.done;W=a.next())W=W.value,_.mh(this.hostElement,W,!1),this.elements_.button&&_.mh(this.elements_.button,W,!1),this.elements_.text&&_.mh(this.elements_.text,W,!1)},
buttonIconChanged_:function(a){this.elements_.icon?a?(this.elements_.icon.icon=a,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Tq(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.VV(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"&&_.Tq(this.elements_.button).appendChild(this.elements_.icon):_.Tq(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.VV(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 W=!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":W=!0;_.mh(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();a=_.Tq(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;_.Tq(this.elements_.endpoint).appendChild(this.elements_.button);_.Tq(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.CN("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;_.Tq(this.elements_.button).appendChild(this.elements_.text);_.Tq(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":W=!0,this.elements_.button=this.getYtIconButton_(),a=_.Tq(this.elements_.button).firstElementChild,this.elements_.icon=a,this.setIconActive_(this.elements_.icon),
_.Tq(this.elements_.endpoint).appendChild(this.elements_.button)}_.VV(this.hostElement,"is-icon-button",W);_.VV(this.hostElement,"is-paper-button",!W);_.VV(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 w;_.M((w=this.container.hostElement)!=null?w:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Tq(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){_.r("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){_.Tw(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&&_.Z9(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)_.r("handle_service_request_actions")||_.Z9(this.hostElement,[this.serviceEndpoint]),
_.E$(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.r("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&&_.N1(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?_.Z9(this.hostElement,[a]):_.N1(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,W=_.M((a=this.container.hostElement)!=null?a:this.container);W.lastChild&&W.lastChild.tagName!="STYLE";)try{W.removeChild(W.lastChild)}catch(w){break}},
getYtIconButton_:function(){var a=this.reuseEnabled_()?_.CN("yt-icon-button"):document.createElement("yt-icon-button"),W=_.Tq(a).firstElementChild;if(W&&W.is!="yt-icon"){for(W=_.Tq(a);W.lastChild;)W.removeChild(W.lastChild);W=null}W||(W=this.getIcon_(),this.setIconActive_(W),_.Tq(a).appendChild(W));return a},
reuseEnabled_:function(){return _.r("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.CN("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.CN("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.J3L={};
_.J3L.YtButtonBehavior=[$Z.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 W;if((W=this.elements_)==null?0:W.button)this.elements_.button.pressed=!!a},
computeIconPositionType_:function(a){return a&&a.iconPosition||null},
computeEndpoint_:function(a){var W=a&&a.navigationEndpoint,w=this.get("data.command.commandMetadata.webCommandMetadata.url"),Z=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:a&&a.command&&a.command.modalEndpoint?a.command:w&&!Z&&a.command?a.command:null},
computeServiceEndpoint_:function(a){var W=a&&a.serviceEndpoint,w=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:w&&a.command?a.command:null},
computeCommand_:function(a){return a&&a.command||null},
computeButtonIcon_:function(a){return a&&a.icon&&a.icon.iconType?_.EN(a.icon.iconType):null},
computeButtonText_:function(a,W){return!W&&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 W=a&&a.style?a.style.toLowerCase().replace(/_/g,"-")+" ":"";W+=a&&a.size?a.size.toLowerCase().replace(/_/g,"-")+" ":"";a.colorData&&a.colorData.basicColorPaletteData&&a.colorData.basicColorPaletteData.borderColor&&(W+="palette-with-border");return W.trim()}}];var KA={};var F9V;var MbV;var RrL,qhJ=function(){return RrL!==void 0?RrL:RrL=document.createElement("template")};
document.head.appendChild(qhJ().content);var Q6J;var x3h,bOe=function(){return x3h!==void 0?x3h:x3h=document.createElement("template")};
document.head.appendChild(bOe().content);var s6R;var uYA,CDT=function(){return uYA!==void 0?uYA:uYA=document.createElement("template")};
document.head.appendChild(CDT().content);var GaV;var D3E=document.head,fXR=D3E.appendChild,d3_;if(GaV===void 0){var m3R=document.createElement("template");_.n(m3R,"\x3c!--css-build:shady--\x3e");m3R.content.insertBefore(CDT().content.cloneNode(!0),m3R.content.firstChild);GaV=m3R}d3_=GaV;fXR.call(D3E,d3_.content);var Vb$=document.head,zr$=Vb$.appendChild,HOT;if(s6R===void 0){var y3T=document.createElement("template");_.n(y3T,"\x3c!--css-build:shady--\x3e");y3T.content.insertBefore(bOe().content.cloneNode(!0),y3T.content.firstChild);s6R=y3T}HOT=s6R;zr$.call(Vb$,HOT.content);var EyR=document.head,aoV=EyR.appendChild,WqA;if(Q6J===void 0){var w4T=document.createElement("template");_.n(w4T,"\x3c!--css-build:shady--\x3e");w4T.content.insertBefore(qhJ().content.cloneNode(!0),w4T.content.firstChild);Q6J=w4T}WqA=Q6J;aoV.call(EyR,WqA.content);var Z2R;_.pA("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");Z2R=_.r("web_button_rework")&&_.JS("BUTTON_REWORK")||_.r("web_button_rework_with_live");_.Bw=function(){return _.u.apply(this,arguments)||this};
_.c(_.Bw,_.u);_.Bw.prototype.created=function(){this.openPopupConfig=_.LF("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Bw.prototype.onYtNavigate_=function(a){var W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);W&&(this.ytOpenPopupBehavior.openPopup(W),a.stopPropagation(),a.preventDefault())};
_.dU.Object.defineProperties(_.Bw,{template:{configurable:!0,enumerable:!0,get:function(){if(MbV===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
var W=a.content,w=W.insertBefore;F9V===void 0&&(F9V=document.createElement("template"));var Z=F9V;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);MbV=a}a=MbV;return a}}});
_.Bw.prototype.onYtNavigate_=_.Bw.prototype.onYtNavigate_;_.f([_.R(_.Ww.YtOpenPopupBehavior),_.z("design:type",Object)],_.Bw.prototype,"ytOpenPopupBehavior",void 0);_.f([_.R(_.J3L.YtButtonBehavior),_.z("design:type",Object)],_.Bw.prototype,"ytButtonBehavior",void 0);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],_.Bw.prototype,"onYtNavigate_",null);
_.Bw=_.f([_.TD({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:Z2R})],_.Bw);var Nah;var tEA=_.r("web_button_rework")&&_.JS("BUTTON_REWORK")||_.r("web_button_rework_with_live"),lN=function(){var a=_.u.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(W){_.E$(a.hostElement,"yt-service-request-sent-button-renderer",W)};
return a};
_.c(lN,_.u);_.t=lN.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.t.onClick=function(a){var W,w=this.disabled||((W=this.data)==null?void 0:W.isDisabled);W=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");w&&W&&a.stopPropagation()};
_.t.computeIcon=function(){var a,W,w=(a=this.data)==null?void 0:(W=a.icon)==null?void 0:W.iconType;if(w)return _.EN(w)};
_.t.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.t.handleUpdateButtonAction=function(a){a=_.A(a,E2V);var W=_.A(a==null?void 0:a.updatedButton,_.J4);if(this.data&&a&&W){var w=this.data;w.targetId&&a.targetId&&w.targetId===a.targetId&&(this.data=W)}};
_.dU.Object.defineProperties(lN.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var a=this;if(this.data){var W=O$H({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.E$(a.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.E$(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});W.alignByText=this.alignByText;return W}}}});
_.dU.Object.defineProperties(lN,{template:{configurable:!0,enumerable:!0,get:function(){if(Nah===void 0){var a=document.createElement("template");_.n(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>');Nah=a}a=Nah;return a}}});
lN.prototype.onClick=lN.prototype.onClick;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],lN.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],lN.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],lN.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],lN.prototype,"isPressed",void 0);
_.f([_.b(),_.z("design:type",Object)],lN.prototype,"forceIconButton",void 0);_.f([_.b(),_.z("design:type",Object)],lN.prototype,"forceIconOnly",void 0);_.f([_.b(),_.z("design:type",Object)],lN.prototype,"forceModernIconButton",void 0);_.f([_.b(),_.z("design:type",Object)],lN.prototype,"skipCommandHandling",void 0);_.f([_.b(),_.z("design:type",Object)],lN.prototype,"alignByText",void 0);_.f([_.b(),_.z("design:type",Object)],lN.prototype,"buttonTooltipPosition",void 0);
_.f([_.b(),_.z("design:type",Object)],lN.prototype,"fitToVisibleBounds",void 0);_.f([_.b({computed:"computeTooltip(data)"}),_.z("design:type",Object)],lN.prototype,"tooltip",void 0);_.f([_.b(),_.z("design:type",Object)],lN.prototype,"overrides",void 0);_.f([_.b(),_.z("design:type",Boolean)],lN.prototype,"disabled",void 0);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],lN.prototype,"onClick",null);
_.f([_.Q("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.z("design:type",Object),_.z("design:paramtypes",[])],lN.prototype,"computedButtonShape",null);lN=_.f([_.TD({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!tEA,cssBuildOptOut:!0}),_.TD({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!tEA,cssBuildOptOut:!0})],lN);var $A6;var Bay;var I7=function(){var a=_.u.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};
_.c(I7,_.u);_.t=I7.prototype;_.t.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.t.ready=function(){var a=this.shouldShowPlaceholder_();_.mh(this.hostElement,"no-transition",!0);a&&this.hostElement.classList.add("with-placeholder")};
_.t.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.t.isThumbPreloaded_=function(a){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",a)};
_.t.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||lo_};
_.t.computeThumbnailSrc_=function(a){return a&&a.thumbnails?_.G$(a.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.t.computeAlt_=function(){var a=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&a||""};
_.t.thumbnailChanged_=function(){var a=_.l([this.thumbnail,this.oldThumbnail_]),W=a.next().value;a=a.next().value;this.oldThumbnail_=W;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(a=this.computeThumbnailSrc_(a),this.computeThumbnailSrc_(W)===a))return;_.r("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(W)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):W&&_.JS("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.DW(this,this.onReload_):_.DW(this,this.onShow_):this.resetImage_();W&&(this.hostElement.style.opacity=""+W.opacity)}};
_.t.delayedSrcChanged_=function(){var a=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===a||this.resetImage_()};
_.t.setSrc_=function(a){a?(_.M(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.M(this.hostElement).querySelector("#img").src=a):(_.M(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.t.resetImage_=function(){rHm(this.hostElement);this.empty_=!0;this.setSrc_(lo_);this.ytRendererBehavior.invalidate(!1)};
_.t.observePlaceholderColor_=function(){var a=this.thumbnail&&this.thumbnail.placeholderColor;a?this.hostElement.style.backgroundColor=_.KC(a):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.t.onLoad_=function(){_.M(this.hostElement).querySelector("#img").src&&_.M(this.hostElement).querySelector("#img").src!==lo_&&(p4m(this.hostElement),this.notifyOnLoaded&&_.E$(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.t.onError_=function(){var a=this;if(_.r("web_use_cache_for_image_fallback"))jKD(_.M(this.hostElement).querySelector("#img").src).then(function(W){a.objectURL_=_.Yf(W).toString();a.setSrc_(a.objectURL_)}).catch(function(){_.r("kevlar_woffle_fallback_image")&&a.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.t.onPrescanVisible=function(){this.onShow_()};
_.t.onVisible=function(){if(_.r("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.t.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var a=this.computeSrc_();a!==_.M(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(a))}};
_.t.onReload_=function(){this.empty_=!1;var a=this.computeSrc_();a!==_.M(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(a))};
_.t.shouldShowPlaceholder_=function(){return _.r("kevlar_thumbnail_bg")};
I7.prototype.observePlaceholderColor_=I7.prototype.observePlaceholderColor_;I7.prototype.delayedSrcChanged_=I7.prototype.delayedSrcChanged_;I7.prototype.thumbnailChanged_=I7.prototype.thumbnailChanged_;_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],I7.prototype,"alt",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],I7.prototype,"ariaHidden",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],I7.prototype,"ariaLabel",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],I7.prototype,"hidden",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],I7.prototype,"id",void 0);_.f([_.R(_.LN.YtVisibilityBehavior),_.z("design:type",Object)],I7.prototype,"ytVisibilityBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",String)],I7.prototype,"delayedSrc",void 0);
_.f([_.b(),_.z("design:type",Object)],I7.prototype,"thumbnail",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],I7.prototype,"loaded",void 0);_.f([_.b(),_.z("design:type",Boolean)],I7.prototype,"notifyOnLoaded",void 0);_.f([_.b(),_.z("design:type",Number)],I7.prototype,"height",void 0);_.f([_.b(),_.z("design:type",Number)],I7.prototype,"width",void 0);_.f([_.b({value:function(){return"width"}}),
_.z("design:type",String)],I7.prototype,"dimension",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],I7.prototype,"fit",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],I7.prototype,"fitHeight",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],I7.prototype,"fitWidth",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],I7.prototype,"objectFit",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],I7.prototype,"objectPosition",void 0);_.f([_.b(),_.z("design:type",String)],I7.prototype,"preferredThumbnail",void 0);_.f([_.b({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.z("design:type",String)],I7.prototype,"alt_",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],I7.prototype,"sharedTooltipText",void 0);
_.f([_.b(),_.z("design:type",Boolean)],I7.prototype,"ftlEligible",void 0);_.f([_.b({value:void 0}),_.z("design:type",String)],I7.prototype,"observeHiddenOption",void 0);_.f([_.b({value:"observe_once"}),_.z("design:type",String)],I7.prototype,"observePrescanOption",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],I7.prototype,"roundedContainer",void 0);
_.f([_.lO("thumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],I7.prototype,"thumbnailChanged_",null);_.f([_.lO("delayedSrc"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],I7.prototype,"delayedSrcChanged_",null);_.f([_.a5("thumbnail.placeholderColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],I7.prototype,"observePlaceholderColor_",null);
I7=_.f([_.TD({is:"yt-img-shadow",disableElementRegistration:!0})],I7);var lo_=_.JS("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.mV()(I7,"yt-img-shadow",function(){if(Bay===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;$A6===void 0&&($A6=document.createElement("template"));var Z=$A6;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Bay=a}a=Bay;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 TGx;_.Pw=new _.yq("SCREEN_MANAGER_TOKEN");TGx=new _.yq("LOG_INITIAL_SCREEN_TOKEN");_.ce=_.xQ(function(a){function W(Bv){return _.A(Bv,_.hx)}
function w(){var Bv=Z().isTogglingDisabled||T()?L():!L();F(Bv);G(!1);if(!Z().isTogglingDisabled){var Am;(Am=I)==null||Am(!!Bv)}var e9;((e9=B)==null?0:e9())||_.lM(_.K().resolve(_.Pw),Z().trackingParams);var cv;if(!Bv||!W(Z().defaultButtonViewModel)||(cv=B)!=null&&cv()){var C7;!W(Z().toggledButtonViewModel)||((C7=B)==null?0:C7())||_.lM(_.K().resolve(_.Pw),W(Z().toggledButtonViewModel).trackingParams)}else _.lM(_.K().resolve(_.Pw),W(Z().defaultButtonViewModel).trackingParams)}
var Z=a.data,N=a.buttonShapeOverrides,B=a.disableExplicitClickLogging,I=a.onToggle,X=a.style,v=a.useOutlinedIcon,U=a.className,O=function(){var Bv,Am;return L()?(Bv=a.animatedTextPropsToggled)==null?void 0:Bv.call(a):(Am=a.animatedTextPropsDefault)==null?void 0:Am.call(a)},S=_.XT(function(){return O()?Object.assign({},O(),{shouldAnimate:x()}):void 0},void 0,"ZKEa0b"),T=function(){var Bv;
return((Bv=ZD())==null?void 0:Bv.isToggled)!==void 0},p=_.l(_.l5(function(){var Bv,Am,e9;
return T()?(Bv=ZD())==null?void 0:Bv.isToggled:(e9=N==null?void 0:(Am=N())==null?void 0:Am.toggled)!=null?e9:Z().isToggled})),h=p.next().value;
p=p.next().value;var L=h,F=p;p=_.l(_.l5(function(){var Bv,Am;return(Bv=a.animatedTextPropsToggled)==null?void 0:(Am=Bv.call(a))==null?void 0:Am.shouldAnimate}));
h=p.next().value;p=p.next().value;var x=h,G=p;h=_.l(_.$1(!1,void 0,"S11hid"));var V=h.next().value,d=h.next().value,ZD=_.Au(function(Bv){var Am;a:{var e9=Z().entityKey,cv=Z().toggledStateEntitySelectorType;if(cv&&e9)switch(cv){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var C7;Bv=(C7=_.tG(Bv.entities,"sfvAudioItemCurrentlyPlayingEntity",e9))!=null?C7:void 0;C7=(Am=Bv==null?void 0:Bv.sfvAudioItemPlaybackState)!=null?Am:void 0;if(C7==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Am={isToggled:!0};
break a}if(C7){Am={isToggled:!1};break a}break;default:_.jJ(new _.Uw("Error: entitySelectorType defined but not matched in selector.",Bv,cv))}Am=void 0}return Am});
h=_.$_(function(){var Bv=_.K().resolve(_.Vv(_.S4));Bv&&d(Bv.isKeyBoardInUse());return!1});
p=_.$_(function(){d(!1);return!1});
var aC=function(){return Object.assign({},N==null?void 0:N(),{onToggle:w,toggleable:!0,toggled:L(),focused:V()})};
return _.k("toggle-button-view-model",{"on:focusin":h,"on:focusout":p,class:U},_.k(_.Y,{cond:function(){return L()?W(Z().toggledButtonViewModel):W(Z().defaultButtonViewModel)},
then:function(Bv){return _.k(_.F7,{data:Bv,className:U,style:X,useOutlinedIcon:v,buttonOverrides:aC,animatedTextProps:S})}}))},"v");
_.ce.idomCompat={callbacks:{onToggle:!0}};_.Ct(_.xQ(function(a){return _.k("yt-toggle-button-view-model",{class:function(){var W;return(W=a.scopingClassName)==null?void 0:W.call(a)}},_.k(_.ce,{data:function(){var W;
return(W=a.data)==null?void 0:W.call(a)},
buttonShapeOverrides:function(){var W;return(W=a.overrides)==null?void 0:W.call(a)},
animatedTextPropsDefault:function(){var W;return(W=a.animatedTextPropsDefault)==null?void 0:W.call(a)},
animatedTextPropsToggled:function(){var W;return(W=a.animatedTextPropsToggled)==null?void 0:W.call(a)},
disableExplicitClickLogging:function(){var W;return(W=a.disableExplicitClickLogging)==null?void 0:W.call(a)},
onToggle:function(W){var w;return(w=a.onToggle)==null?void 0:w.call(a,W)},
style:function(){var W;return(W=a.style)==null?void 0:W.call(a)},
useOutlinedIcon:function(){var W;return(W=a.useOutlinedIcon)==null?void 0:W.call(a)},
className:function(){var W;return(W=a.className)==null?void 0:W.call(a)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.qR,
buttonShapeOverrides:_.qR,overrides:_.qR,animatedTextPropsDefault:_.qR,animatedTextPropsToggled:_.qR,disableExplicitClickLogging:_.qR,onToggle:_.ux,style:_.qR,useOutlinedIcon:_.qR,className:_.qR,scopingClassName:_.qR}});var Xj=function(){return _.u.apply(this,arguments)||this};
_.c(Xj,_.u);Xj.prototype.onTap=function(a){a.stopPropagation();a=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.e4("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:a})):this.ytLiveChatReduxBehavior.dispatch(_.oL("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:a}))};
_.dU.Object.defineProperties(Xj.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=_.A(this.data.toggleButton,_.iK),W;if(Number(((W=this.likeCountState)==null?void 0:W.likeCountIfIndifferentNumber)||"0")===0){var w;W=((w=this.data.likeCountPlaceholder)==null?void 0:w.content)||""}else{var Z,N,B;W=((Z=this.likeCountState)==null?void 0:(N=Z.likeCountIfIndifferent)==null?void 0:N.content)||((B=this.data.likeCountPlaceholder)==null?void 0:B.content)||""}var I,X;w=((I=this.likeCountState)==null?void 0:(X=
I.likeCountIfLiked)==null?void 0:X.content)||"1";I=_.A(a.toggledButtonViewModel,_.hx);return Object.assign({},a,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.A(a.defaultButtonViewModel,_.hx),{title:W})},toggledButtonViewModel:{buttonViewModel:Object.assign({},I,{title:w})}})}}}});
Xj.prototype.onTap=Xj.prototype.onTap;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Xj.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ii),_.z("design:type",Object)],Xj.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Xj.prototype,"data",void 0);
_.f([_.b({selectorArgs:["data.likeCountEntityKey"],selector:S4C}),_.z("design:type",Object)],Xj.prototype,"likeCountState",void 0);_.f([_.b({selectorArgs:["data.engagementStateKey"],selector:d2x}),_.z("design:type",Object)],Xj.prototype,"engagementState",void 0);_.f([_.Q("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Xj.prototype,"isLiked",null);
_.f([_.Q("data","likeCountState","isLiked"),_.z("design:type",Object),_.z("design:paramtypes",[])],Xj.prototype,"toggleButton",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Xj.prototype,"onTap",null);Xj=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Xj);
_.D(Xj,"yt-live-chat-like-button-view-model",function(){if(r3l===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;pL_===void 0&&(pL_=document.createElement("template"));var Z=pL_;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);r3l=a}a=r3l;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Ioh;var P1A;var vw=function(){return _.u.apply(this,arguments)||this};
_.c(vw,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vw.prototype,"data",void 0);vw=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],vw);
_.D(vw,"yt-live-chat-paid-message-footer-renderer",function(){if(P1A===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Ioh===void 0&&(Ioh=document.createElement("template"));var Z=Ioh;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);P1A=a}a=P1A;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var X4l;var vey;var ge$;var oe6,kfR=function(){if(oe6!==void 0)return oe6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;ge$===void 0&&(ge$=document.createElement("template"));var Z=ge$;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return oe6=a};var gn=function(){return _.u.apply(this,arguments)||this};
_.c(gn,_.u);gn.prototype.onTap=function(a){a.stopPropagation()};
_.dU.Object.defineProperties(gn.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=_.A(this.data.replyButton,_.hx),W,w,Z,N,B,I,X,v=Number(((W=this.replyCountState)==null?void 0:W.replyCountNumber)||"0")===0?(w=this.data)==null?void 0:(Z=w.replyCountPlaceholder)==null?void 0:Z.content:((N=this.replyCountState)==null?void 0:(B=N.replyCount)==null?void 0:B.content)||((I=this.data)==null?void 0:(X=I.replyCountPlaceholder)==null?void 0:X.content)||"",U;return Object.assign({},
a,{title:v,accessibilityText:(U=this.replyCountState)==null?void 0:U.replyButtonAccessibilityText})}}}});
_.dU.Object.defineProperties(gn,{template:{configurable:!0,enumerable:!0,get:function(){return kfR()}}});
gn.prototype.onTap=gn.prototype.onTap;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],gn.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ii),_.z("design:type",Object)],gn.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],gn.prototype,"data",void 0);
_.f([_.b({selectorArgs:["data.replyCountEntityKey"],selector:function(a,W){return _.tG(a.entities,"replyCountEntity",W)}}),
_.z("design:type",Object)],gn.prototype,"replyCountState",void 0);_.f([_.Q("data","replyCountState"),_.z("design:type",Object),_.z("design:paramtypes",[])],gn.prototype,"buttonViewModel",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],gn.prototype,"onTap",null);gn=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],gn);
_.D(gn,"yt-live-chat-reply-button-view-model",function(){return kfR()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var UA$;var O26;var Uq=function(){var a=_.u.apply(this,arguments)||this;a.ariaLabel="";return a};
_.c(Uq,_.u);
Uq.prototype.dataChanged=function(){for(var a=(0,_.zX)(_.M(this.hostElement).querySelector("#image"));a.firstChild;)a.removeChild(a.firstChild);if(this.data)if(this.data.icon){var W=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(W.polymerController.icon="yt-sys-icons:shield-filled",W.polymerController.defaultToFilled=!0):W.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();a.appendChild(W)}else if(this.data.customThumbnail){W=document.createElement("img");
var w=_.kfS(this.data.customThumbnail.thumbnails,16);w?(W.src=w,a.appendChild(W),W.setAttribute("alt",this.hostElement.ariaLabel||"")):_.jJ(new _.Uw("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Uq.prototype.identity=function(a){return a};
Uq.prototype.computeType=function(a){return zD(a||void 0)};
Uq.prototype.dataChanged=Uq.prototype.dataChanged;_.f([_.b(),_.z("design:type",Object)],Uq.prototype,"data",void 0);_.f([_.b({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.z("design:type",Object)],Uq.prototype,"ariaLabel",void 0);_.f([_.b({computed:"computeType(data)",reflectToAttribute:!0}),_.z("design:type",String)],Uq.prototype,"type",void 0);
_.f([_.b({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.z("design:type",String)],Uq.prototype,"sharedTooltipText",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("live_chat_enable_new_moderator_badge")}}),
_.z("design:type",Boolean)],Uq.prototype,"enableNewModeratorBadge",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Uq.prototype,"dataChanged",null);Uq=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Uq);
_.D(Uq,"yt-live-chat-author-badge-renderer",function(){if(O26===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;UA$===void 0&&(UA$=document.createElement("template"));var Z=UA$;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);O26=a}a=O26;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var SJl;var YJh;var Oq=function(){return _.u.apply(this,arguments)||this};
_.c(Oq,_.u);_.t=Oq.prototype;_.t.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"}}}}};
_.t.computeBadgesInsideChip=function(a){return a?a.filter(function(W){return zD(W.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.t.computeBadgesOutsideChip=function(a){return this.prependChatBadges||!a?[]:a.filter(function(W){W=zD(W.liveChatAuthorBadgeRenderer);return W!=="verified"&&W!=="owner"})};
_.t.computeBadgesBeforeChip=function(a){return this.prependChatBadges&&a?a.filter(function(W){W=zD(W.liveChatAuthorBadgeRenderer);return W!=="verified"&&W!=="owner"}):[]};
_.t.computeIsHighlighted=function(a,W){var w=!!nwE(a,"owner"),Z=!!nwE(a,"verified");a=!!nwE(a,"moderator");return(w||Z&&!a)&&!W};
_.t.computeAuthorType=function(a){return eAv(a)};
_.t.computeAuthorClass=function(a,W){return W?(a?a+" ":"")+"single-line":a};
_.t.onSeedColorChanged=function(){_.r("live_chat_author_name_color_usernames")||_.r("live_chat_seed_color_usernames")||_.r("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):_.r("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Oq.prototype.onSeedColorChanged=Oq.prototype.onSeedColorChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Oq.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Oq.prototype,"authorName",void 0);_.f([_.b(),_.z("design:type",Array)],Oq.prototype,"authorBadges",void 0);
_.f([_.b({computed:"computeAuthorType(authorBadges)"}),_.z("design:type",String)],Oq.prototype,"authorType",void 0);_.f([_.b({computed:"computeAuthorClass(authorType, singleLine)"}),_.z("design:type",String)],Oq.prototype,"authorClass",void 0);_.f([_.b({computed:"computeBadgesInsideChip(authorBadges)"}),_.z("design:type",Array)],Oq.prototype,"badgesInsideChip",void 0);_.f([_.b({computed:"computeBadgesOutsideChip(authorBadges)"}),_.z("design:type",Array)],Oq.prototype,"badgesOutsideChip",void 0);
_.f([_.b({computed:"computeBadgesBeforeChip(authorBadges)"}),_.z("design:type",Array)],Oq.prototype,"badgesBeforeChip",void 0);_.f([_.b({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Oq.prototype,"isHighlighted",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Oq.prototype,"singleLine",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Oq.prototype,"disableHighlighting",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Oq.prototype,"dashboardMoneyFeed",void 0);_.f([_.b({value:_.r("live_chat_prepend_badges"),reflectToAttribute:!0}),_.z("design:type",Boolean)],Oq.prototype,"prependChatBadges",void 0);_.f([_.b(),_.z("design:type",String)],Oq.prototype,"authorNameColor",void 0);_.f([_.w$("#author-name"),_.z("design:type",HTMLDivElement)],Oq.prototype,"username",void 0);
_.f([_.a5("authorNameColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oq.prototype,"onSeedColorChanged",null);Oq=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Oq);
_.D(Oq,"yt-live-chat-author-chip",function(){if(YJh===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;SJl===void 0&&(SJl=document.createElement("template"));var Z=SJl;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);YJh=a}a=YJh;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var TaA;var KqT;var SD=function(){var a=_.u.apply(this,arguments)||this;a.debounceCommand=_.T6(function(W){a.ytComponentBehavior.resolveCommand(W)},1500);
return a};
_.c(SD,_.u);SD.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",W,w,Z=this.isHearted?(W=this.data)==null?void 0:W.unheartCommand:(w=this.data)==null?void 0:w.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.e4("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:a}));(a=_.rJ(Z))&&this.debounceCommand(a)}};
_.dU.Object.defineProperties(SD.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var a,W;if(!((a=this.data)==null?0:(W=a.creatorThumbnail)==null?0:W.sources))return{};a={thumbnails:[]};W={};W.url=this.data.creatorThumbnail.sources[0].url;a.thumbnails.push(W);return a}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((W=this.engagementState)==null?void 0:W.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,W,w;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((w=this.engagementState)==null?void 0:w.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}}});
SD.prototype.onTap=SD.prototype.onTap;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],SD.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],SD.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ii),_.z("design:type",Object)],SD.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],SD.prototype,"data",void 0);
_.f([_.b({selectorArgs:["data.engagementStateKey"],selector:d2x}),_.z("design:type",Object)],SD.prototype,"engagementState",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],SD.prototype,"thumbnailDetails",null);_.f([_.Q("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],SD.prototype,"isHearted",null);_.f([_.Q("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],SD.prototype,"isEditable",null);
_.f([_.Q("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],SD.prototype,"showCreatorView",null);_.f([_.Q("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],SD.prototype,"showButton",null);_.f([_.Q("data","isHearted"),_.z("design:type",String),_.z("design:paramtypes",[])],SD.prototype,"label",null);_.f([_.Q("data","isHearted"),_.z("design:type",Object),_.z("design:paramtypes",[])],SD.prototype,"heartHoverText",null);
_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SD.prototype,"onTap",null);SD=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],SD);
_.D(SD,"yt-live-chat-creator-heart-view-model",function(){if(KqT===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;TaA===void 0&&(TaA=document.createElement("template"));var Z=TaA;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);KqT=a}a=KqT;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var YZ=function(a,W){this.serviceId=new l7T(a,W)};
YZ.prototype.toString=function(){return this.serviceId.toString()};var p4L=function(){this.internalMap={}};
_.t=p4L.prototype;_.t.contains=function(a){return Object.prototype.hasOwnProperty.call(this.internalMap,a)};
_.t.get=function(a){if(this.contains(a))return this.internalMap[a]};
_.t.set=function(a,W){this.internalMap[a]=W};
_.t.getKeys=function(){return Object.keys(this.internalMap)};
_.t.remove=function(a){delete this.internalMap[a]};var Tu=function(){this.mappings=new p4L;this.errorCallbacks=new Set};
Tu.prototype.getModuleId=function(a){return a.serviceId.getModuleId()};
Tu.prototype.get=function(a){var W=this.mappings.get(a.toString());return rHL(this,W,a)};
Tu.prototype.getMultipleAsync=function(){var a=_.TH.apply(0,arguments),W=this,w=a.map(function(v){return W.getModuleId(v)}),Z=a.map(function(v){return W.mappings.get(v.toString())}).filter(function(v){return v});
if(Z.length===a.length)return _.tk(Z.map(function(v,U){return rHL(W,v,a[U])}));
var N=rh().loadMultiple(w);Z=_.rD(w.map(function(v){return N[v]}));
var B=document.hidden,I=-1,X=_.yv("get_async_timeout_ms",-1);X>-1&&(I=setTimeout(function(){_.jJ(new _.Uw("Module timeout.",w,B,document.hidden))},X));
return _.Ad(Z.then(function(){return a.map(function(v){return rHL(W,W.mappings.get(v.toString()),v)})}).thenCatch(function(v){for(var U=_.l(W.errorCallbacks),O=U.next();!O.done;O=U.next())O=O.value,O(v);
throw v;}),function(){clearTimeout(I)})};
Tu.prototype.registerService=function(a,W){this.mappings.set(a.toString(),{type:"mapping",value:W});return a};
var rHL=function(a,W,w){switch(W.type){case "mapping":return W.value;case "factory":return W=W.value(),a.mappings.set(w.toString(),{type:"mapping",value:W}),W;default:return _.l9(W)}};
Tu.prototype.onLoadError=function(a){var W=this;this.errorCallbacks.add(a);return function(){W.errorCallbacks.delete(a)}};
_.K0=new Tu;var AHJ=function(){};
_.t=AHJ.prototype;
_.t.JSC$11817_getRequest=function(a,W,w){W=W===void 0?{}:W;w=w===void 0?XZA:w;var Z=W;if(this.isNavigationCommand()){var N,B=(N=_.A(a==null?void 0:a.commandMetadata,_.mm))==null?void 0:N.url;Z=_.F7H(a.clickTrackingParams,!0,!1,B,this.JSC$11817_getClientScreen(Z))}else Z=_.F7H(a.clickTrackingParams,!1,this.includeCsn);Z={context:Z};if(N=this.getExtension(a))return this.JSC$11817_buildRequest(Z,N,W),N=this.getApiUrl(a),B=Object.assign({},{command:a},this.getRequestConfig(a,W)),Z={input:N,requestShell:b6(N),
innerTubeRequest:Z,config:B},Z.config.authStrategy?Z.config.authStrategy.identity=w:Z.config.authStrategy={identity:w},(a=this.JSC$11817_getRequestKey(a,W))&&!Z.config.requestKey&&(Z.config.requestKey=a),Z;a=new _.Uw("Error: Failed to create Request from Command.",a);_.eJ(a)};
_.t.getApiUrl=function(a){var W=_.GC(this.getApiPaths(a)),w;(a=(w=_.A(a.commandMetadata,_.mm))==null?void 0:w.apiUrl)&&(W=a);return I$S(l$9(W))};
_.t.isNavigationCommand=function(){return!1};
_.t.JSC$11817_getClientScreen=function(){};
_.t.JSC$11817_getRequestKey=function(){};
_.t.getRequestConfig=function(){};
_.dU.Object.defineProperties(AHJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var p0=function(){};
_.c(p0,AHJ);p0.prototype.JSC$11824_getStoreKey=function(){};
p0.prototype.JSC$11817_getRequestKey=function(a,W){W=W===void 0?{}:W;return this.JSC$11824_getStoreKey(a,W)};var rn=function(){};
_.c(rn,p0);rn.prototype.JSC$11817_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:b6("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
rn.prototype.getApiPaths=function(){return[]};
rn.prototype.getExtension=function(){};
rn.prototype.JSC$11817_buildRequest=function(){};var h6A={},i2$=(h6A.GET_DATASYNC_IDS=c$(rn),h6A);var cH_,e6y,neJ,htL,Ap,JHT,LbR,Lqe,jKE;cH_="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");e6y=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Ju=function(a,W,w,Z,N,B,I,X,v){this.endpointMap=a;this.networkManager=W;this.authService=w;this.responseProcessorMap=Z;this.innertubeResponseStore=N;this.contextProcessors=B;this.asyncContextProcessors=I;this.localInnertubeRouter=X;this.requestSequencer=v;this.inflightRequests=new Map;a.signalEndpointMap||(a.signalEndpointMap={});a.signalEndpointMap=Object.assign({},i2$,a.signalEndpointMap)};
neJ=function(a,W,w,Z,N,B,I,X,v){if(_.Ju.instance!==void 0){if(Z=_.Ju.instance,a=[a!==Z.endpointMap,W!==Z.networkManager,w!==Z.authService,N!==Z.innertubeResponseStore,B!==Z.contextProcessors,I!==Z.asyncContextProcessors,X!==Z.localInnertubeRouter],a.some(function(U){return U}))throw new _.Uw("InnerTubeTransportService is already initialized",a);
}else _.Ju.instance=new _.Ju(a,W,w,Z,N,B,I,X,v)};
_.MX=function(a,W,w){var Z=Z===void 0?XZA:Z;var N=LbR(a,W);return N?new _.PZ(function(B,I){var X,v,U,O,S;return _.P(function(T){switch(T.nextAddress){case 1:return _.g(T,N,2);case 2:X=T.yieldResult;v=X.JSC$11817_getRequest(W,w,Z);if(!v){I(new _.Uw("Error: Failed to build request for command.",W));T.jumpTo(0);break}h7(v.input);O=((U=v.requestShell)==null?void 0:U.mode)==="cors"?"cors":void 0;if(a.authService.syncHeaders){S=jKE(v.config,O);T.jumpTo(4);break}return _.g(T,Lqe(v.config,O),5);case 5:S=
T.yieldResult;case 4:B(JHT(a,v,S)),_.Xd(T)}})}):_.od(new _.Uw("Error: No request builder found for command.",W))};
htL=function(a,W,w,Z){var N=N===void 0?XZA:N;var B,I,X,v,U,O,S,T,p,h,L,F,x,G,V,d,ZD,aC;return _.P(function(Bv){switch(Bv.nextAddress){case 1:B=KPS(W,a.endpointMap);if(!B)throw new _.Uw("Error: No streaming request builder found for command",W);I=B.JSC$11817_getRequest(W,w,N);if(!I)throw new _.Uw("Failed to build YtRequest for streaming Command",W);if((X=a.localInnertubeRouter)==null||!X.shouldPreferLocalResponse(I.input,I.innerTubeRequest)){Bv.jumpTo(2);break}return _.g(Bv,a.localInnertubeRouter.localInnertubeResponse(I.input,
I.innerTubeRequest),3);case 3:return v=Bv.yieldResult,U={},v.playerResponse&&(Ap(a,v.playerResponse,I),U.player=v.playerResponse,(O=Z)==null||O(U,v)),v.watchNextResponse&&(Ap(a,v.watchNextResponse,I),U.content=v.watchNextResponse,(S=Z)==null||S(U,v)),Bv.return(U);case 2:p=((T=I.requestShell)==null?void 0:T.mode)==="cors"?"cors":void 0;if(a.authService.syncHeaders){h=jKE(I.config,p);Bv.jumpTo(4);break}return _.g(Bv,Lqe(I.config,p),5);case 5:h=Bv.yieldResult;case 4:return x=(F=(L=I.requestShell)==null?
void 0:L.headers)!=null?F:{},I.requestShell=Object.assign({},I.requestShell,{headers:Object.assign({},x,h)}),G=Object.assign({},I.requestShell),V=JSON.stringify(I.innerTubeRequest),I.requestShell.method==="POST"&&(G=Object.assign({},G,{body:V})),d=function(Am,e9){Ap(a,e9.playerResponse||e9.watchNextResponse||e9.reelItemWatchResponse||e9.reelWatchSequenceResponse,I);Z==null||Z(Am,e9)},ZD={},_.g(Bv,FqH(a.networkManager,I.input,G,d),6);
case 6:return ZD=Bv.yieldResult,((aC=I.config)==null?0:aC.responseTick)&&_.Ak(I.config.responseTick),Bv.return(ZD)}})};
_.jw=function(a,W,w,Z,N){N=N===void 0?{authStrategy:{identity:XZA}}:N;var B=B===void 0?!0:B;var I=function(){};
I=p1H(TFE(w));W.context||(W.context=_.F7H(Z,B));return new _.PZ(function(X){var v,U,O,S,T;return _.P(function(p){if(p.nextAddress==1)return v=l$9(w),U=_.xs(v),a.authService.syncHeaders?(O=jKE(N,U),p.jumpTo(2)):_.g(p,Lqe(N,U),3);p.nextAddress!=2&&(O=p.yieldResult);S=I$S(l$9(w));T={input:S,requestShell:b6(S),innerTubeRequest:W,config:N};X(JHT(a,T,O,I));_.Xd(p)})})};
Ap=function(a,W,w){var Z;if(W&&!(W==null?0:(Z=W.sequenceMetaData)==null?0:Z.skipProcessing)&&a.responseProcessorMap){Z=_.l(cH_);for(var N=Z.next();!N.done;N=Z.next())N=N.value,a.responseProcessorMap[N]&&a.responseProcessorMap[N].handleResponse(W,w)}};
JHT=function(a,W,w,Z){Z=Z===void 0?function(){}:Z;
var N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V,d,ZD,aC,Bv,Am,e9,cv,C7,RC,G8,QF,vl,Hl,SV,Ny,Bl,JL,Pl,W9,rC,le,rT,Re,u9;return _.P(function(eV){switch(eV.nextAddress){case 1:I=(N=W.config)==null?void 0:(B=N.storeStrategy)==null?void 0:B.storeKey;if(!(I&&a.innertubeResponseStore&&a.innertubeResponseStore.has(I))||((X=W.config)==null?0:(v=X.storeStrategy)==null?0:v.disableCache)){eV.jumpTo(2);break}return _.g(eV,a.innertubeResponseStore.get(I),3);case 3:if((U=eV.yieldResult)&&!U.isExpired())return eV.return(Promise.resolve(_.PN(U)));
case 2:if(!((O=W)==null?0:(S=O.innerTubeRequest)==null?0:S.context)){eV.jumpTo(4);break}T=W.innerTubeRequest.context;if(!(a.asyncContextProcessors&&a.asyncContextProcessors.length>0)){eV.jumpTo(5);break}p=[];h=_.l(a.asyncContextProcessors);for(L=h.next();!L.done;L=h.next())F=L.value,x=F.processContext(W),x.wrappedPromise_&&p.push(x.wrappedPromise_);if(!(p.length>0)){eV.jumpTo(5);break}return _.g(eV,Promise.all(p),5);case 5:G=_.l(a.contextProcessors||[]),V=G.next();case 8:if(V.done){eV.jumpTo(4);break}d=
V.value;return _.g(eV,d.processContext(T),9);case 9:V=G.next();eV.jumpTo(8);break;case 4:if((ZD=a.localInnertubeRouter)==null||!ZD.shouldPreferLocalResponse(W.input,W.innerTubeRequest)){eV.jumpTo(12);break}return _.g(eV,a.localInnertubeRouter.localInnertubeResponse(W.input,W.innerTubeRequest),13);case 13:return aC=eV.yieldResult,Ap(a,aC,W),eV.return(aC);case 12:return(e9=(Am=W.config)==null?void 0:Am.requestKey)&&a.inflightRequests.has(e9)?Bv=a.inflightRequests.get(e9):(cv=JSON.stringify(W.innerTubeRequest),
G8=(RC=(C7=W.requestShell)==null?void 0:C7.headers)!=null?RC:{},W.requestShell=Object.assign({},W.requestShell,{headers:Object.assign({},G8,w)}),QF=Object.assign({},W.requestShell),W.requestShell.method==="POST"&&(QF=Object.assign({},QF,{body:cv})),((vl=W.config)==null?0:vl.requestTick)&&_.Ak(W.config.requestTick),Hl=function(){return a.networkManager.fetch(W.input,QF,W.config)},Bv=a.requestSequencer?MER(a.requestSequencer,W,Hl):Hl(),e9&&a.inflightRequests.set(e9,Bv)),_.g(eV,Bv,14);
case 14:(SV=eV.yieldResult)&&_.r("web_streaming_player")&&Array.isArray(SV)&&(SV=SV[0].playerResponse);if(SV&&"error"in SV&&((Ny=SV)==null?0:(Bl=Ny.error)==null?0:Bl.details))for(JL=SV.error.details,Pl=_.l(JL),W9=Pl.next();!W9.done;W9=Pl.next())rC=W9.value,(le=rC["@type"])&&e6y.indexOf(le)>-1&&(delete rC["@type"],SV=rC);e9&&a.inflightRequests.has(e9)&&a.inflightRequests.delete(e9);((rT=W.config)==null?0:rT.responseTick)&&_.Ak(W.config.responseTick);if(SV||(Re=a.localInnertubeRouter)==null||!Re.canProvideFallbackResponse(W.input,
W.innerTubeRequest)){eV.jumpTo(15);break}return _.g(eV,a.localInnertubeRouter.localFallbackInnertubeResponse(W.input,W.innerTubeRequest),16);case 16:SV=eV.yieldResult;case 15:return Ap(a,SV,W),((u9=W.config)==null?0:u9.processorTick)&&_.Ak(W.config.processorTick),Z(),eV.return(SV||void 0)}})};
_.Fq=function(a,W){return T6D(W,a.endpointMap)};
LbR=function(a,W){a=pOH(W,a.endpointMap);if(a!==void 0)return Promise.resolve(a)};
Lqe=function(a,W){var w,Z,N,B;return _.P(function(I){if(I.nextAddress==1){N=(w=a)==null?void 0:(Z=w.authStrategy)==null?void 0:Z.sessionIndex;var X=_.tk(n7U({sessionIndex:N}));return _.g(I,X,2)}B=I.yieldResult;return I.return(Promise.resolve(Object.assign({},r0I(W),B)))})};
jKE=function(a,W){var w;a=a==null?void 0:(w=a.authStrategy)==null?void 0:w.sessionIndex;w=n7U({sessionIndex:a});return Object.assign({},r0I(W),w)};var R6A,qJR,QKA,xAL,b2L,sKL,GfV,DAE,cw,foL,dA$,C1l,mAJ;R6A=0;qJR=/tone[1-5]/;QKA=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");xAL="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
b2L=Number.MAX_SAFE_INTEGER;sKL=RegExp("\ufe0f","g");_.hp=function(a){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;a&&_.u6J(this,a)};
_.u6J=function(a,W){try{_.Bi(W,{context:a,onSuccess:function(Z,N){Array.isArray(N)?a.load(N):(Z=new _.Uw("Emoji manager JSON response was not an array!",{response:N}),_.eJ(Z))},
onError:function(Z){Z=new _.Uw("Failed to retrieve emoji manager initial JSON data!",{url:W,statusCode:_.Wi(Z).toString()});_.jJ(Z)}})}catch(Z){var w=new _.Uw("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:W});
_.jJ(w)}};
_.hp.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.hp.prototype.load=function(a,W){if(W)if(a.length)a=a.concat(W.emojis);else{this.emojis=W.emojis;this.emojiMap=W.emojiMap;this.emojiShortcutMap=W.emojiShortcutMap;this.emojiShortcutCharMap=C1l(W);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=W.emojiRegex;return}this.emojis=[].concat(_.K8(new Set(this.emojis.concat(a))));this.hasInitializedShortcutCharMap=!1;a=Array(this.emojis.length);for(W=0;W<this.emojis.length;W++){var w=this.emojis[W];if(w.emojiId){this.emojiMap[w.emojiId]=w;this.emojiMap[w.emojiId].index=
W;for(var Z=0;w.shortcuts&&Z<w.shortcuts.length;Z++)this.emojiShortcutMap[w.shortcuts[Z].toLocaleLowerCase()]=w;a[W]=w.isCustomEmoji&&w.shortcuts?w.shortcuts[0]:w.emojiId}}a.sort(function(N,B){return B.length-N.length});
if(a.length)try{this.emojiRegex=new RegExp(a.join("|").replace("*","\\*"),"gi")}catch(N){this.emojiRegex=/$./}else this.emojiRegex=/$./};
GfV=function(a,W){W=_.l(W);for(var w=W.next();!w.done;w=W.next()){var Z=w.value;if(Z.emojiId&&a.emojiMap[Z.emojiId]){w=Object.assign({},a.emojiMap[Z.emojiId],Z);a.emojiMap[Z.emojiId]=w;var N=void 0;w.index&&((N=a.emojis[w.index])==null?void 0:N.emojiId)===Z.emojiId&&(a.emojis[w.index]=w);Z=void 0;if((Z=w.shortcuts)==null?0:Z.length)for(a.hasInitializedShortcutCharMap=!1,Z=_.l(w.shortcuts),N=Z.next();!N.done;N=Z.next())a.emojiShortcutMap[N.value.toLocaleLowerCase()]=w}}};
DAE=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,_.KB.getInstance(),2);if(Z.nextAddress!=3)return(W=Z.yieldResult)?_.g(Z,W.get("ytlc-emoji-pref"),3):Z.return();(w=Z.yieldResult)&&GfV(a,Object.keys(w).map(function(N){return{emojiId:N,stickyPrefId:w[N]}}).filter(function(N){return!!N.emojiId&&!!N.stickyPrefId}));
_.Xd(Z)})};
_.iN=function(a,W,w){return(a=a.emojiMap[W])&&(!a.isLocked||w!==void 0&&w)?a:void 0};
cw=function(a,W,w){w=_.iN(a,W,w===void 0?!1:w);var Z=W.match("\u200d");w&&a.skinTone!==0&&(a=(Z==null?void 0:Z.length)===1?_.iN(a,W.replace("\u200d",QKA[a.skinTone]+"\u200d")):_.iN(a,W+QKA[a.skinTone]))&&(w=a);return w};
foL=function(a,W){var w=a.emojiMap[W];return(w==null?0:w.stickyPrefId)?a.emojiMap[w.stickyPrefId]:cw(a,W)};
_.Oa=function(a,W){a=a.emojiShortcutMap[W.toLocaleLowerCase()];return!a||a.isLocked?null:a};
dA$=function(a,W,w){return C1l(a,w===void 0?!1:w)[W]||{}};
C1l=function(a,W){W=W===void 0?!1:W;if(!a.hasInitializedShortcutCharMap){a.hasInitializedShortcutCharMap=!0;for(var w=0;w<a.emojis.length;w++){var Z=a.emojis[w];if(!(Z.isLocked||W&&Z.isCustomEmoji&&Z.emojiId&&!a.pickerCustomEmojiIds.includes(Z.emojiId)))for(var N=0;Z.shortcuts&&N<Z.shortcuts.length;N++){var B=Z.shortcuts[N];B.startsWith(":_")&&Z.isCustomEmoji&&(a.emojiShortcutCharMap[":_"]==null&&(a.emojiShortcutCharMap[":_"]=Object.create(null)),a.emojiShortcutCharMap[":_"][B]=Z);if(!(B.length<3||
!Z.isCustomEmoji&&qJR.test(B))){var I=B.substr(0,3).toLocaleLowerCase();a.emojiShortcutCharMap[I]==null&&(a.emojiShortcutCharMap[I]=Object.create(null));a.emojiShortcutCharMap[I][B]=Z}}}}return a.emojiShortcutCharMap};
_.hp.prototype.createEmoji=function(a,W){W=W===void 0?!0:W;var w=document.createElement("img");a.isCustomEmoji||w.classList.add("small-emoji");w.classList.add("emoji");w.classList.add("yt-formatted-string");w.src=a.image?_.G$(a.image.thumbnails,this.emojiSize)||"":"";var Z=void 0;a.image&&a.image.accessibility&&a.image.accessibility.accessibilityData&&(Z=a.image.accessibility.accessibilityData.label);w.alt=Z?Z:(a.isCustomEmoji&&a.shortcuts?a.shortcuts[0]:a.emojiId)||"";a.isCustomEmoji&&(w.dataset.emojiId=
a.emojiId);_.lB&&(w.setAttribute("contenteditable","false"),w.setAttribute("unselectable","on"));W&&(a.shortcuts&&a.shortcuts.length&&w.setAttribute("shared-tooltip-text",a.shortcuts[0]),w.id="emoji-"+R6A++);return w};
_.hp.prototype.createDocumentFragment=function(a,W,w,Z){W=W===void 0?!1:W;w=w===void 0?!0:w;Z=Z===void 0?!1:Z;a=a.replace(sKL,"");for(var N=document.createDocumentFragment(),B=0,I,X=0;(I=this.emojiRegex.exec(a))!=null;){var v=_.iN(this,I[0])||_.Oa(this,I[0]);!v||v.isCustomEmoji&&!W||(v=this.createEmoji(v,w),B!==I.index&&N.appendChild(document.createTextNode(a.substring(B,I.index))),N.appendChild(v),B=I.index+I[0].length,X++)}if(!Z||X)return N.appendChild(document.createTextNode(a.substr(B))),N};
mAJ=function(a,W,w){var Z,N,B,I,X,v,U,O,S;return _.P(function(T){if(T.nextAddress==1){if(!W.emojiId||!a.emojiMap[W.emojiId])return T.return();Z=Object.assign({},a.emojiMap[W.emojiId],{stickyPrefId:w});a.emojiMap[W.emojiId]=Z;W.index&&((N=a.emojis[W.index])==null?void 0:N.emojiId)===W.emojiId&&(a.emojis[W.index]=Z);if((B=W.shortcuts)==null?0:B.length)for(a.hasInitializedShortcutCharMap=!1,I=_.l(W.shortcuts),X=I.next();!X.done;X=I.next())v=X.value,a.emojiShortcutMap[v.toLocaleLowerCase()]=Z;return _.g(T,
_.KB.getInstance(),2)}if(T.nextAddress!=4)return(U=T.yieldResult)?_.g(T,U.get("ytlc-emoji-pref"),4):T.jumpTo(0);S=(O=T.yieldResult)!=null?O:{};S[W.emojiId]=w;return _.g(T,U.set("ytlc-emoji-pref",S,b2L),0)})};
_.eD=new _.hp;var H2T;_.n0={};
H2T={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.r("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:_.r("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 Qb(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=_.M(this.hostElement||this).querySelector("#inline-action-button-container");a&&a.setAttribute("aria-hidden","true");this.menuButton=_.M(this.hostElement).querySelector("#menu-button")},
attached:function(){var a=this.menuButton;a&&(a.addEventListener("focusin",_.yV(this,this.onMenuButtonFocus_)),a.addEventListener("focusout",_.yV(this,this.onMenuButtonBlur_)))},
detached:function(){var a=this.menuButton;a&&(a.removeEventListener("focusin",_.yV(this,this.onMenuButtonFocus_)),a.removeEventListener("focusout",_.yV(this,this.onMenuButtonBlur_)))},
identity:_.ue,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 _.r("live_chat_whole_message_clickable")&&a},
computeMenuVisible_:function(a,W){return a||W},
computeHasInlineActionButtons:function(a){if(!a)return!1;var W,w;return!((W=a.inlineActionButtons)==null||!W.length)||!((w=a.additionalInlineActionButtons)==null||!w.length)},
createDocumentFragmentFromString:function(a){var W=_.eD.createDocumentFragment.bind(_.eD),w;if((w=this.participantsManager)==null||!w.viewerRegex)return W(a);w=document.createDocumentFragment();for(var Z=0,N;(N=this.participantsManager.viewerRegex.exec(a))!=null;){if(N.index>0){var B=":"+N[0]+":";if((_.iN(_.eD,B)||_.Oa(_.eD,B))&&a.indexOf(B)===N.index-1)continue}w.appendChild(W(a.substring(Z,N.index)));Z=document.createElement("span");Z.appendChild(W(N[0]));Z.classList.add("mention");w.appendChild(Z);
Z=N.index+N[0].length}w.appendChild(W(a.substring(Z)));return w},
createDocumentFragment:function(a){var W=document.createDocumentFragment();if(a.simpleText)return W.appendChild(this.createDocumentFragmentFromString(a.simpleText)),W;if(!a.runs)return W;for(var w=0;w<a.runs.length;w++){var Z=a.runs[w];if(Z.emoji)W.appendChild(_.eD.createEmoji(Z.emoji));else if(Z.text)if(Z.navigationEndpoint){var N=document.createElement("a");N.classList.add("yt-simple-endpoint");yQD(N,Z.navigationEndpoint);_.M(N).appendChild(this.createDocumentFragmentFromString(Z.text));W.appendChild(N)}else W.appendChild(this.createDocumentFragmentFromString(Z.text))}return W},
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(W){return(W=W instanceof Element?W:null)?W.tagName&&(W.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||W.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.r("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(a)},
colorFromDecimal:function(a){return vEx(a)},
markAsDeleted:function(a,W){this.set("data.deletedStateMessage",a);this.set("data.showOriginalContentMessage",W)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(a){if(this.data.contextMenuEndpoint){var W=_.K().resolve(_.U6),w=this.data.contextMenuEndpoint,Z;(Z=_.Ju.instance)&&_.Fq(Z,w)?(W=VER(W,w),Z=_.jw(Z,{},W)):Z=_.z6R(W,w);Z.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);a&&a.stopPropagation()}},
handleGetContextMenuResponse_:function(a){var W=_.Ju.instance;W&&_.Fq(W,{liveChatEndpoint:{}})||(a=a.response);a.liveChatItemContextMenuSupportedRenderers&&a.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(a.liveChatItemContextMenuSupportedRenderers.menuRenderer);a.actions&&_.aV(this.hostElement,"yt-live-chat-actions",[a.actions])},
handleGetContextMenuError:function(a){if(a instanceof Error||a instanceof Object||a instanceof String)var W=a;_.eJ(new _.Uw("Error encountered calling GetLiveChatItemContextMenu",W))},
showContextMenu_:function(a){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:a}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.E$(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.E$(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.n0.YtLiveChatItemBehavior=[H2T,_.e7.YtComponentBehavior,_.Ww.YtOpenPopupBehavior];_.jD=function(){};var yHT;var EeL;var a4_;var WeE;var L0=function(){var a=_.u.apply(this,arguments)||this;a.active=!1;a.identity=_.ue;return a};
_.c(L0,_.u);L0.prototype.dataChanged=function(){this.active=!1};
L0.prototype.onClick=function(){_.E$(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
L0.prototype.dataChanged=L0.prototype.dataChanged;_.f([_.b(),_.z("design:type",Object)],L0.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],L0.prototype,"active",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L0.prototype,"dataChanged",null);L0=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],L0);
_.D(L0,"yt-live-chat-text-input-field-suggestion",function(){if(WeE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;a4_===void 0&&(a4_=document.createElement("template"));var Z=a4_;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);WeE=a}a=WeE;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});_.Jp=function(a,W,w){return CustomEvent.call(this,a,{detail:{value:W,path:w}})||this};
_.c(_.Jp,CustomEvent);_.Fj=function(){var a=_.u.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};
_.c(_.Fj,_.u);_.t=_.Fj.prototype;_.t.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.t.addParticipant=function(a){var W=_.KUC(this.participants,a,function(Z,N){Z=Z[Object.keys(Z)[0]];N=N[Object.keys(N)[0]];Z=String(_.sd(Z.authorName)).toLowerCase();N=String(_.sd(N.authorName)).toLowerCase();return Z<N?-1:Z==N?0:1}.bind(this));
if(W>=0){var w=this.participants[W];w[Object.keys(w)[0]].timestampUsec&&this.splice("participants",W,1,a)}else this.splice("participants",-W-1,0,a);a=a[Object.keys(a)[0]];W=_.sd(a.authorName).toLocaleLowerCase();w=W.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(w)||(this.allParticipantsCharMap_[w]={});this.allParticipantsCharMap_[w][W]=a};
_.t.getAuthorsFromPrefix=function(a){return this.allParticipantsCharMap_.hasOwnProperty(a)?this.allParticipantsCharMap_[a]:null};
_.t.computeViewerRegex_=function(a){if(!a)return null;a=a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.r("enable_web_yt_handles")||_.r("enable_live_chat_yt_handles")?new RegExp("([#]"+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"):new RegExp("([@#]"+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")};
_.t.checkForStaleParticipants_=function(){var a=this;this.trimOldParticipants_();this.asyncHandle_&&xr7(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.cA(function(){a.checkForStaleParticipants_()},3E4))};
_.t.onChatMessage_=function(a){var W=this,w=Date.now()*1E3;a.forEach(function(Z){if(Z=_.A(Z,eT$)){Z=Z.item;var N=Object.keys(Z)[0];W.SUPPORTED_ITEM_TYPES_.indexOf(N)!=-1&&Z[N].timestampUsec>=w-W.PARTICIPANT_TIME_USEC_&&W.addParticipant(Z)}},this);
this.checkForStaleParticipants_()};
_.t.trimOldParticipants_=function(){for(var a=Date.now()*1E3,W=this.participants.length-1;W>=0;W--){var w=this.participants[W];w=w[Object.keys(w)[0]];w.timestampUsec&&w.timestampUsec<a-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",W,1)}};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],_.Fj.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],_.Fj.prototype,"viewerName",void 0);_.f([_.b({computed:"computeViewerRegex_(viewerName)"}),_.z("design:type",Object)],_.Fj.prototype,"viewerRegex",void 0);_.f([_.b({value:function(){return[]},
notify:!0}),_.z("design:type",Array)],_.Fj.prototype,"participants",void 0);_.Fj=_.f([_.TD({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Fj);var wYl=/.*([:@#].*?)$/,ML=/\u00a0/g,ZX$=String.fromCharCode(160),NeR={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"},R7=function(){var a=_.u.apply(this,arguments)||this;a.disabled=!1;a.liveChatRichMessageInput=null;a.messageInput=null;a.isValidWithNoInputText=!1;a.suggestions=[];a.emojiManager=_.eD;a.inputMethodEditorActive=
!1;a.suggestionIndex=-1;a.JSC$11872_lastSuggestionRange=null;return a};
_.c(R7,_.u);_.t=R7.prototype;_.t.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.t.attached=function(){_.IY&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.t.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.t.dataChanged=function(){if(!this.ignoreColorMapping){var a=!1,W={},w;for(w in NeR)this.data&&this.data.hasOwnProperty(w)&&(W[NeR[w]]=this.colorFromDecimal(this.data[w]),a=!0);a&&_.Hu(this.hostElement,W)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.t.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.t.colorFromDecimal=function(a){a=Math.floor(Number(a));return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
_.t.preventDrag=function(a){a.dataTransfer&&(a.dataTransfer.dropEffect="none");a.preventDefault()};
_.t.preventResize=function(a){a.returnValue=!1};
_.t.onInputChange=function(){var a=this.characterCount,W=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&W&&W.remove();if(!W&&this.characterCount>this.maxCharacterLimit){var w=window.getSelection();if(w){var Z=w.getRangeAt(0);w.removeAllRanges();w.addRange(Z)}}if(w=this.getCurrentRange())Z=this.calculateTextBeforeRange(w),this.completeEmojisInRange(w,Z,!0)||this.updateSuggestions(w,Z);Z=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(Z);
_.E$(this.hostElement,"yt-live-chat-message-input-change",Z);W&&this.characterCount===0&&W.remove();w&&w.commonAncestorContainer.parentElement.id==="input"&&w.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>a):w&&!w.collapsed&&w.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()};
_.t.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.t.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var a=this.getCurrentRange();a&&a.commonAncestorContainer.parentElement.id==="input"&&a.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.t.mergeOverflowText=function(a){if(a){var W=document.createRange();W.selectNodeContents(a);W=W.extractContents();this.input.insertBefore(W,a)}};
_.t.checkRangeAtEndOfInput=function(){var a=this.getCurrentRange();if(a){var W=_.M(this.hostElement).querySelector("#overflow-text"),w=document.createRange();W&&W.previousSibling?W.previousSibling instanceof HTMLImageElement?w.selectNode(W.previousSibling):w.selectNodeContents(W.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?w.selectNode(this.input.lastChild):w.selectNodeContents(this.input.lastChild));w.collapse(!1);return w.isPointInRange(a.startContainer,
a.startOffset)}return!1};
_.t.handleOverflowText=function(a){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var W=_.M(this.hostElement).querySelector("#overflow-text"),w=this.getCurrentRange();this.input.normalize();a=this.checkRangeAtEndOfInput()&&a;this.mergeOverflowText(W);for(var Z,N=0,B=0,I,X=this.input.childNodes,v=0;v<X.length;v++){var U=X[v];U instanceof Text?(B+=U.textContent.length,B>this.maxCharacterLimit&&(Z=U,N=this.maxCharacterLimit+U.textContent.length-B)):U instanceof HTMLImageElement&&
(Z=void 0,B=U.dataset.emojiId&&((Z=this.data)==null?0:Z.emojiCharacterCount)?B+this.data.emojiCharacterCount:B+U.alt.length,Z=this.input,N=v);if(B>this.maxCharacterLimit&&Z){I=document.createRange();I.collapse(!1);W?(B=this.input.lastChild.previousSibling,B instanceof Text?I.setEnd(this.input.lastChild.previousSibling,B.textContent.length):B instanceof HTMLImageElement&&I.setEnd(this.input,this.input.childNodes.length-1)):I.selectNodeContents(this.input);I.setStart(Z,N);break}}I&&(Z=!1,w&&(a=I.isPointInRange(w.startContainer,
w.startOffset-1)),W||(W=document.createElement("span"),W.id="overflow-text",W.textContent="",W.setAttribute("contenteditable","true"),_.M(_.M(this.hostElement).querySelector("#input")).appendChild(W),Z=!0),W&&(w=I.extractContents(),W.insertBefore(w,W.firstChild),a&&W.firstChild&&(w=document.createRange(),Z?w.setStartAfter(W.lastChild):w.setStartAfter(W.firstChild),w.collapse(!0),W=window.getSelection(),W.removeAllRanges(),W.addRange(w))))}};
_.t.checkForDuplicateSpans=function(){for(var a=0;a<this.input.childNodes.length;a++){var W=this.input.childNodes[a];if(W.nodeName==="SPAN"){var w=document.createRange();w.selectNodeContents(W);w=w.extractContents();this.input.insertBefore(w,W);W.remove()}}this.handleOverflowText(!0)};
_.t.getCurrentRange=function(){var a=window.getSelection();return a&&a.rangeCount?a.getRangeAt(0).cloneRange():null};
_.t.getInputRange=function(){var a=this.getCurrentRange();if(a){for(var W=a.commonAncestorContainer,w=!1,Z=_.M(this.hostElement).querySelector("#input");W;){if(W===Z){w=!0;break}W=W.parentNode}w||(a=null)}a||(a=this.getRangeAtEnd());return a};
_.t.getRangeAtEnd=function(){var a=document.createRange(),W=_.M(this.hostElement).querySelector("#input").lastChild;!W||W.nodeName!=="#text"&&W.nodeName!=="SPAN"?(a.selectNodeContents(_.M(this.hostElement).querySelector("#input")),a.collapse(!1)):W.nodeName==="#text"?a.setStart(W,W.textContent.length):a.setStart(W,W.childNodes.length);return a};
_.t.getSuggestions=function(a){var W=[],w=a.substring(0,3),Z=dA$(_.eD,w,!0);if(Z)for(var N in Z)if(N.toLocaleLowerCase().indexOf(a)===0){var B=Z[N];if(B&&B.emojiId){if(B=foL(_.eD,B.emojiId)){var I=void 0,X=void 0,v=void 0,U=void 0,O=((I=B.image)==null?0:(X=I.accessibility)==null?0:(v=X.accessibilityData)==null?0:v.label)||B.isCustomEmoji?(U=B.shortcuts)==null?void 0:U[0]:B.emojiId;W.push({suggestion:{emoji:!0,image:B.image,alt:O,text:N,textToInsertWhenSelected:B.isCustomEmoji?N:O}})}if(W.length>=
64)break}}if(!this.participantsManager)return null;Z=_.r("enable_web_yt_handles")||_.r("enable_live_chat_yt_handles");if(w.indexOf("@")===0||w.indexOf("#")===0)if(N=w.charAt(0),a=a.substring(1),w=Z&&w.indexOf("@")===0?w.substring(0,2):w.substring(1),w=this.participantsManager.getAuthorsFromPrefix(w))for(var S in w)if(S.indexOf(a)===0||Z&&S.indexOf(N+a)===0)if(B=w[S],I=_.sd(B.authorName),W.push({suggestion:{author:!0,authorType:N,image:B.authorPhoto,alt:I,text:I}}),W.length>=64)break;return W?W.sort(function(T,
p){return p.suggestion.text<T.suggestion.text?-1:p.suggestion.text===T.suggestion.text?0:1}):null};
_.t.insertSuggestion=function(a){var W=_.r("enable_web_yt_handles")||_.r("enable_live_chat_yt_handles")?a.text+ZX$:a.authorType+a.text+ZX$;a.emoji?this.insertTextAtRange(this.JSC$11872_lastSuggestionRange,a.textToInsertWhenSelected||""):a.author&&this.insertTextAtRange(this.JSC$11872_lastSuggestionRange,W)};
_.t.updateSuggestionsAtCaret=function(){var a=this.getCurrentRange();a&&this.updateSuggestions(a,this.calculateTextBeforeRange(a))};
_.t.offsetStartOfRangeBy=function(a,W){for(;W>0;)if(a.startOffset-W>=0){a.setStart(a.startContainer,a.startOffset-W);break}else{W=a.startContainer instanceof HTMLImageElement?W-a.startContainer.alt.length:W-a.startOffset;var w=a.startContainer.previousSibling;if(!w){a.setStart(a.startContainer,0);break}if(_.r("live_chat_require_space_for_autocomplete_emoji")){var Z=void 0,N=void 0;a.setStart(w,((Z=w)==null?void 0:(N=Z.textContent)==null?void 0:N.length)||0)}else a.setStart(w,w.childNodes.length||
0)}};
_.t.updateSuggestions=function(a,W){var w=this;this.JSC$11872_lastSuggestionRange&&(this.JSC$11872_lastSuggestionRange.detach(),this.JSC$11872_lastSuggestionRange=null);if((W=wYl.exec(W))&&W.length&&(W=W[W.length-1].toLocaleLowerCase(),W.length>2&&(this.offsetStartOfRangeBy(a,W.length),this.JSC$11872_lastSuggestionRange=a,(a=this.getSuggestions(W))&&a.length))){this.suggestions=a;_.DW(this,function(){_.M(w.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};
_.t.completeEmojisInRange=function(a,W,w){var Z=W.replace(/[\s\xa0]+$/,"");W=W.length-Z.length;Z=Z.split(" ");Z=Z[Z.length-1].trim().toLocaleLowerCase();var N=Z.lastIndexOf(":");if(w&&!W&&N!==Z.length-1)return!1;N!==-1&&(w=Z.lastIndexOf(":",N-1),w!==-1&&(Z=Z.substring(w)));if((w=_.Oa(_.eD,Z))&&w.emojiId){w=foL(_.eD,w.emojiId)||null;this.offsetStartOfRangeBy(a,Z.length+W);var B,I,X,v;Z=(((B=w)==null?0:B.isCustomEmoji)?(I=w)==null?void 0:(X=I.shortcuts)==null?void 0:X[0]:(v=w)==null?void 0:v.emojiId)||
"";W&&(Z+=ZX$);this.insertTextAtRange(a,Z);this.dropdown.opened=!1;return!0}return!1};
_.t.onSuggestion=function(a){this.insertSuggestion(a.detail);this.dropdown.opened=!1};
_.t.onKeyPress=function(a){a.keyCode===13&&(a.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.E$(this.hostElement,"yt-live-chat-send-message"))};
_.t.completeEmojis=function(){var a=document.createRange(),W=_.M(this.hostElement).querySelector("#input").lastChild;W?a.setStart(W,W.childNodes.length):(a.selectNodeContents(_.M(this.hostElement).querySelector("#input")),a.collapse(!1));this.completeEmojisInRange(a,this.calculateTextBeforeRange(a),_.r("live_chat_require_space_for_autocomplete_emoji"))};
_.t.maybePreventTextFormatting=function(a){!_.gk||!a.ctrlKey&&!a.metaKey||a.keyCode!==66&&a.keyCode!==73||(a.stopImmediatePropagation(),a.preventDefault())};
_.t.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()}};
_.t.onKeyUp=function(a){switch(a.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.lB)this.onInputChange()};
_.t.changeSuggestionIndex=function(a){if(this.dropdown.opened){var W=_.M(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<W.children.length&&(W.children[this.suggestionIndex].active=!1);var w=this.suggestions.length;this.suggestionIndex=(a+w)%w;a=W.children[this.suggestionIndex];a.active=!0;W.scrollTop=a.offsetTop}};
_.t.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)};
_.t.onFocus=function(){this._setFocused(!0)};
_.t.onBlur=function(){this._setFocused(!1)};
_.t.insertText=function(a){this.insertTextAtRange(this.getInputRange(),a)};
_.t.insertTextAtRange=function(a,W){if(a&&(a.collapsed||a.deleteContents(),W=_.eD.createDocumentFragment(W,!0,!1))){for(var w=_.l((W==null?void 0:W.childNodes)||[]),Z=w.next();!Z.done;Z=w.next()){Z=Z.value;var N=void 0,B=void 0,I=void 0,X=void 0,v=void 0;(I=(N=window)==null?void 0:(B=N.ShadyCSS)==null?void 0:B.ScopingShim)==null||(v=(X=I).scopeNode)==null||v.call(X,Z,this.hostElement.localName)}w=W.lastChild;a.insertNode(W);this.focused||this.input.focus();if(this.focused){a=a.cloneRange();a.selectNodeContents(w);
a.collapse(!1);if(W=window.getSelection())W.removeAllRanges(),W.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);_.E$(this.hostElement,"yt-live-chat-message-input-change",a)}};
_.t.setLiveChatRichMessageInput=function(a){_.M(_.M(this.hostElement).querySelector("#input")).textContent="";if(a&&a.textSegments){for(var W=0;W<a.textSegments.length;W++){var w=a.textSegments[W];w.text?_.M(_.M(this.hostElement).querySelector("#input")).appendChild(_.eD.createDocumentFragment(w.text,!0,!1)):w.emojiId&&(w=_.iN(_.eD,w.emojiId))&&_.M(_.M(this.hostElement).querySelector("#input")).appendChild(_.eD.createEmoji(w,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.t.setText=function(a){this.setLiveChatRichMessageInput(a?{textSegments:[{text:a}]}:null)};
_.t.calculateTextBeforeRange=function(a){var W="",w=a.startContainer;if(w&&w instanceof Text){var Z;W=((Z=w.textContent)==null?void 0:Z.substring(0,a.startOffset))||"";w=w.previousSibling}for(;w&&w instanceof Text;)W=w.textContent+W,w=w.previousSibling;return W.replace(ML," ")};
_.t.calculateLiveChatRichMessageInput=function(){for(var a=[],W="",w=_.M(_.M(this.hostElement).querySelector("#input")).childNodes,Z=0;Z<w.length;Z++){var N=w[Z];N instanceof Text?W+=N.textContent:N instanceof HTMLImageElement&&(N.dataset.emojiId?(W&&(a.push({text:W.replace(ML," ")}),W=""),a.push({emojiId:N.dataset.emojiId})):W+=N.alt)}W&&a.push({text:W.replace(ML," ")});if(w=_.M(this.hostElement).querySelector("#overflow-text")){W="";w=w.childNodes;for(Z=0;Z<w.length;Z++)N=w[Z],N instanceof Text?
W+=N.textContent:N instanceof HTMLImageElement&&(N.dataset.emojiId?(W&&(a.push({text:W.replace(ML," ")}),W=""),a.push({emojiId:N.dataset.emojiId})):W+=N.alt);W&&a.push({text:W.replace(ML," ")})}return{textSegments:a}};
_.t.computeCharacterCount=function(a){if(!a||!a.textSegments)return 0;for(var W=0,w=0;w<a.textSegments.length;w++){var Z=a.textSegments[w];if(Z.text)W+=Z.text.length;else if(Z.emojiId){var N=void 0;if((N=this.data)==null?0:N.emojiCharacterCount)W+=this.data.emojiCharacterCount;else{var B=N=void 0,I=void 0;W+=((B=_.iN(_.eD,(N=Z)==null?void 0:N.emojiId))==null?void 0:(I=B.shortcuts)==null?void 0:I[0].length)||0}}}return W};
_.t.characterCountChanged=function(){_.E$(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.t.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Jp("focused-changed",this.focused))};
_.t.focus=function(){this.setFocus(!1)};
_.t.focusAtEnd=function(){this.setFocus(!0)};
_.t.setFocus=function(a){a=a?this.getRangeAtEnd():this.getInputRange();_.M(this.hostElement).querySelector("#input").focus();var W=window.getSelection();W&&(W.removeAllRanges(),W.addRange(a))};
_.t.insertEmoji=function(a){var W,w=((a==null?0:a.isCustomEmoji)?(W=a.shortcuts)==null?void 0:W[0]:a==null?void 0:a.emojiId)||"";this.insertText(w)};
_.t.computeText=function(a){if(!a||!a.textSegments)return"";for(var W="",w=0;w<a.textSegments.length;w++){var Z=a.textSegments[w];if(Z.text)W+=Z.text;else if(Z.emojiId){var N=void 0,B=void 0,I=void 0;W+=((B=_.iN(_.eD,(N=Z)==null?void 0:N.emojiId))==null?void 0:(I=B.shortcuts)==null?void 0:I[0])||""}}return W};
_.t.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.dU.Object.defineProperties(R7.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}}});
R7.prototype.focusedChanged=R7.prototype.focusedChanged;R7.prototype.characterCountChanged=R7.prototype.characterCountChanged;R7.prototype.onSuggestion=R7.prototype.onSuggestion;R7.prototype.onMessageSet=R7.prototype.onMessageSet;R7.prototype.dataChanged=R7.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],R7.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],R7.prototype,"disabled",void 0);_.f([_.Q("disabled"),_.z("design:type",Number),_.z("design:paramtypes",[])],R7.prototype,"inputTabIndex",null);_.f([_.Q("data.maxCharacterLimit"),_.b({readOnly:!0,notify:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],R7.prototype,"maxCharacterLimit",null);
_.f([_.Q("liveChatRichMessageInput"),_.b({readOnly:!0,notify:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],R7.prototype,"characterCount",null);_.f([_.Q("maxCharacterLimit, characterCount"),_.b({readOnly:!0,notify:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],R7.prototype,"remainingCharacterCount",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],R7.prototype,"isChatMessageInput",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],R7.prototype,"inputExpanded",void 0);_.f([_.b({readOnly:!0,notify:!0}),_.z("design:type",Object)],R7.prototype,"liveChatRichMessageInput",void 0);_.f([_.b(),_.z("design:type",Object)],R7.prototype,"messageInput",void 0);_.f([_.b(),_.z("design:type",Boolean)],R7.prototype,"ignoreColorMapping",void 0);_.f([_.Q("characterCount"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],R7.prototype,"hasText",null);
_.f([_.b(),_.z("design:type",Object)],R7.prototype,"isValidWithNoInputText",void 0);_.f([_.Q("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.b(),_.z("design:type",Boolean),_.z("design:paramtypes",[])],R7.prototype,"isInputValid",null);_.f([_.b({readOnly:!0,value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],R7.prototype,"focused",void 0);_.f([_.b(),_.z("design:type",Array)],R7.prototype,"suggestions",void 0);
_.f([_.b(),_.z("design:type",_.hp)],R7.prototype,"emojiManager",void 0);_.f([_.b(),_.z("design:type",_.Fj)],R7.prototype,"participantsManager",void 0);_.f([_.b(),_.z("design:type",Boolean)],R7.prototype,"noUnderline",void 0);_.f([_.b(),_.z("design:type",Object)],R7.prototype,"inputMethodEditorActive",void 0);_.f([_.w$("#dropdown"),_.z("design:type",Object)],R7.prototype,"dropdown",void 0);_.f([_.w$("#input"),_.z("design:type",HTMLElement)],R7.prototype,"input",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R7.prototype,"dataChanged",null);_.f([_.a5("messageInput"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R7.prototype,"onMessageSet",null);_.f([_.E6("yt-live-chat-select-suggestion"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],R7.prototype,"onSuggestion",null);
_.f([_.a5("characterCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R7.prototype,"characterCountChanged",null);_.f([_.a5("focused"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R7.prototype,"focusedChanged",null);R7=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],R7);
_.tjV=_.D(R7,"yt-live-chat-text-input-field-renderer",function(){if(EeL===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;yHT===void 0&&(yHT=document.createElement("template"));var Z=yHT;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);EeL=a}a=EeL;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var qL=function(){var a=_.u.apply(this,arguments)||this;a.buttonOverrides={style:"overlay",type:"filled"};a.allowAnimations=!1;a.modern=_.r("web_button_rework_with_live");a.noPadding=!1;return a};
_.c(qL,_.u);_.t=qL.prototype;_.t.shouldSupportInlineActionButtons=function(){return!0};
_.t.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"}}}}};
_.t.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.t.attached=function(){this.allowAnimations=!1};
_.t.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)};_.Hu(this.hostElement,a);this.allowAnimations=!0}};
_.t.messageChanged=function(){var a,W=(a=this.data)==null?void 0:a.message;a=_.M(_.M(this.hostElement).querySelector("#message"));a.textContent="";W&&a.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.t.computeShowOnlyHeader=function(a,W){return!a||a.pdgLikeButton||a.replyButton||a.buyFlowButton?!1:this.isEmpty(a,W)&&!a.footer};
_.t.computeShowFooterDivider=function(a,W,w){return a?!!a.footer&&!this.isEmpty(a,W)&&!w:!1};
_.t.computeIsUserEditable=function(a){return!!a.inputField};
_.t.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"};
_.t.computeNoveltyImage=function(a){if(a.headerOverlayImage&&a.headerOverlayImage.thumbnails.length){var W=a.headerOverlayImage.thumbnails[0],w,Z;if((w=a.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Z=w.loggingDirectives)==null?0:Z.trackingParams){var N,B;Vj7((N=a.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(B=N.loggingDirectives)==null?void 0:B.trackingParams)}return W.width||0}return 0};
_.t.computeAuthorPhotoSize=function(a){return(a==null?0:a.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.t.inputFocus=function(){var a=_.M(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");a&&a.focus()};
_.t.inputInsertEmoji=function(a){var W=_.M(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");W&&W.insertEmoji(a)};
_.t.inputMessage=function(){var a=_.M(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),W;return a&&((W=this.data)==null?0:W.inputField)?(a.completeEmojis(),_.nA(a.liveChatRichMessageInput)):null};
_.t.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.t.isEmpty=function(a,W){return a?a.empty||!(a.message||a.inputField||W):!0};
_.t.onLowerBuyButtonClick=function(){var a,W=_.A((a=this.data)==null?void 0:a.buyButton,_.J4);W&&W.trackingParams&&!oEm(W.command)&&(a=_.PX(W.trackingParams))&&(W=_.nS())&&_.b0(W,a)};
_.t.shouldSupportWholeItemClick=function(){return!0};
_.dU.Object.defineProperties(qL.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
qL.prototype.isDeletedChanged=qL.prototype.isDeletedChanged;qL.prototype.messageChanged=qL.prototype.messageChanged;qL.prototype.dataChanged=qL.prototype.dataChanged;_.f([_.R(s2R.YtPdgLiveChatItemBehavior),_.z("design:type",Object)],qL.prototype,"ytPdgLiveChatItemBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ii),_.z("design:type",Object)],qL.prototype,"ytLiveChatReduxBehavior",void 0);
_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],qL.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],qL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],qL.prototype,"data",void 0);_.f([_.b({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:d2x}),_.z("design:type",Object)],qL.prototype,"engagementState",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.z("design:type",Boolean)],qL.prototype,"isUserEditable",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.z("design:type",Boolean)],qL.prototype,"hasHeartButton",void 0);_.f([_.b({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.z("design:type",Boolean)],qL.prototype,"showOnlyHeader",void 0);
_.f([_.b({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.z("design:type",Boolean)],qL.prototype,"showFooterDivider",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Object)],qL.prototype,"allowAnimations",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],qL.prototype,"dashboardMoneyFeed",void 0);_.f([_.b({computed:"computeNoveltyImage(data)"}),_.z("design:type",Number)],qL.prototype,"noveltyWidth",void 0);
_.f([_.b({computed:"computeAuthorPhotoSize(data)"}),_.z("design:type",Number)],qL.prototype,"authorPhotoSize",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qL.prototype,"modern",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qL.prototype,"noPadding",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qL.prototype,"dataChanged",null);
_.f([_.a5("data.message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qL.prototype,"messageChanged",null);_.f([_.Q("data","dashboardMoneyFeed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qL.prototype,"hideLowerBumper",null);_.f([_.a5("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qL.prototype,"isDeletedChanged",null);
qL=_.f([_.C({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],qL);
_.D(qL,"yt-live-chat-paid-message-renderer",function(){if(vey===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;X4l===void 0&&(X4l=document.createElement("template"));var Z=X4l;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);vey=a}a=vey;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var $2L;var BeJ;var Qj=function(){var a=_.Nt.apply(this,arguments)||this;a._noAccessors=!0;return a};
_.c(Qj,_.Nt);Qj.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.LF("openPopupConfig")};
_.f([_.R(_.Ww.YtOpenPopupBehavior),_.z("design:type",Object)],Qj.prototype,"ytOpenPopupBehavior",void 0);Qj=_.f([_.BA()],Qj);_.xZ=[_.Ww.YtOpenPopupBehavior,Qj.prototype];var l4_;var qX=[_.I1,OI_,_.nz,_.Pu,_.u6,_.cdA,_.gi,_.F6$,_.F2,GFC];_.r("web_watch_get_updated_metadata_response_processing")&&qX.push(_.wEH);_.r("web_continuation_response_processing")&&qX.push(_.i5);var m4v=new _.yq("RESPONSE_RECEIVED_COMMANDS"),b$C=new _.yq("RESPONSE_RECEIVED_COMMANDS");var J0C="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),LPv=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],jMx=["GET_UNSEEN_NOTIFICATION_COUNT"];var bN=function(){var a=_.Nt.apply(this,arguments)||this;a._noAccessors=!0;a.serviceEndpointHandlers=[];return a};
_.c(bN,_.Nt);bN.prototype.created=function(){var a=this;this.endpointHandlerActionMap={"yt-service-request":function(W,w,Z,N){var B;return nGU(a.hostElement,W,w,Z,N,a.serviceEndpointHandlers,(B=a.onEntitiesUpdated)==null?void 0:B.bind(a))}}};
bN.prototype.attached=function(){_.ua(_.sn.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
bN.prototype.detached=function(){_.CH(_.sn.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
bN=_.f([_.BA()],bN);_.I4J=[bN.prototype];var PtJ,XY$=function(){return PtJ!==void 0?PtJ:PtJ=document.createElement("template")};
document.head.appendChild(XY$().content);var vhh;var ghl=document.head,ohh=ghl.appendChild,klh;if(vhh===void 0){var U2y=document.createElement("template");_.n(U2y,"\x3c!--css-build:shady--\x3e");U2y.content.insertBefore(XY$().content.cloneNode(!0),U2y.content.firstChild);vhh=U2y}klh=vhh;ohh.call(ghl,klh.content);var OXR,Sp_=function(){return OXR!==void 0?OXR:OXR=document.createElement("template")};
document.head.appendChild(Sp_().content);var YpR;var Teh=document.head,Kee=Teh.appendChild,pYl;if(YpR===void 0){var rJh=document.createElement("template");_.n(rJh,"\x3c!--css-build:shady--\x3e");rJh.content.insertBefore(Sp_().content.cloneNode(!0),rJh.content.firstChild);YpR=rJh}pYl=YpR;Kee.call(Teh,pYl.content);var AJL;_.pA("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.pA("sharingRendererButtons","buttonRenderer","ytd-button-renderer");AJL=_.r("web_button_rework")&&_.JS("BUTTON_REWORK")||_.r("web_button_rework_with_live");_.sq=function(){var a=_.u.apply(this,arguments)||this;a.isPressed=!1;a.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return a};
_.c(_.sq,_.u);_.t=_.sq.prototype;_.t.created=function(){this.showTooltips=!0};
_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.onHintIdChanged=function(){var a=this,W,w,Z=(W=this.ytButtonBehavior.data)==null?void 0:(w=W.hint)==null?void 0:w.hintRenderer;if(Z&&Z.hintId){W=_.W_(this.hostElement,"yt-get-opened-popups-action");W=(W&&W.length===1?W[0]:[]).length>0;var N=null;Z.hintId!=="sponsor-pre-purchase"||W?Z.hintId.startsWith("sponsor-post-purchase")&&!W?N=BMl("membership-manage"):Z.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!W&&(N=BMl("membership-freebie-join")):N=BMl("membership-join");N&&_.hF.addLowPriorityJob(function(){for(var B=
_.l(N),I=B.next();!I.done;I=B.next())a.ytComponentBehavior.resolveCommand(I.value)})}};
_.t.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.t.onYtNavigate=function(a){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);W&&(a.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(W))};
_.t.onYtServiceRequestSent=function(a,W){this.handleServiceRequestActions(W);_.E$(this.hostElement,"yt-service-request-sent-button-renderer")};
_.t.onServiceRequestCompleted=function(a,W){this.handleServiceRequestActions(W);_.E$(this.hostElement,"yt-service-request-completed-button-renderer")};
_.t.updateButton=function(a){var W;if(a=(W=_.A(a,E2V))==null?void 0:W.updatedButton)this.ytButtonBehavior.data=_.A(a,_.J4)};
_.t.handleUpdateButtonAction=function(a){var W=this.ytButtonBehavior.data;W.targetId&&a.updateButtonAction.targetId&&W.targetId===a.updateButtonAction.targetId&&this.updateButton(a)};
_.t.handleServiceRequestActions=function(a){if(a=a.actions)for(var W=0;W<a.length;W++)this.updateButton(a[W])};
_.dU.Object.defineProperties(_.sq,{template:{configurable:!0,enumerable:!0,get:function(){if(l4_===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);l4_=a}a=l4_;return a}}});
_.sq.prototype.onServiceRequestCompleted=_.sq.prototype.onServiceRequestCompleted;_.sq.prototype.onYtServiceRequestSent=_.sq.prototype.onYtServiceRequestSent;_.sq.prototype.onYtNavigate=_.sq.prototype.onYtNavigate;_.sq.prototype.onPressedStateChanged=_.sq.prototype.onPressedStateChanged;_.sq.prototype.onHintIdChanged=_.sq.prototype.onHintIdChanged;_.f([_.b(),_.z("design:type",Object)],_.sq.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],_.sq.prototype,"isPressed",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],_.sq.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.J3L.YtButtonBehavior),_.z("design:type",Object)],_.sq.prototype,"ytButtonBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],_.sq.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],_.sq.prototype,"ytComponentBehavior",void 0);
_.f([_.R($Z.YtRenderButtonBehavior),_.z("design:type",Object)],_.sq.prototype,"ytRenderButtonBehavior",void 0);_.f([_.a5("data.hint.hintRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],_.sq.prototype,"onHintIdChanged",null);_.f([_.a5("isPressed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],_.sq.prototype,"onPressedStateChanged",null);
_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],_.sq.prototype,"onYtNavigate",null);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],_.sq.prototype,"onYtServiceRequestSent",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],_.sq.prototype,"onServiceRequestCompleted",null);_.sq=_.f([_.C({is:"ytd-button-renderer",disableElementRegistration:AJL})],_.sq);var uN=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.c(uN,_.u);_.t=uN.prototype;_.t.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"}}}}};
_.t.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.t.dataChanged=function(){if(this.data&&this.data.sticker){var a=_.G$(this.data.sticker.thumbnails,this.stickerWidth);a||_.dc7(a).thenCatch(function(){_.jJ(new _.Uw("Failed to load Super Sticker with url",a))})}};
_.t.computeAuthorPhotoSize=function(a){return(a==null?0:a.isV2Style)?32:40};
_.t.computeIsV2Style=function(a){return(a==null?0:a.isV2Style)?!0:!1};
_.t.onStickerLoaded=function(a){var W,w,Z;(W=_.QV(a))==null||(w=W.parentNode)==null||(Z=w.classList)==null||Z.add("sticker-loaded")};
_.t.computeNoveltyImageWidth=function(a){var W,w;if(a==null?0:(W=a.headerOverlayImage)==null?0:(w=W.thumbnails)==null?0:w.length){W=a.headerOverlayImage.thumbnails[0];var Z,N;if((Z=a.pdgPurchasedNoveltyLoggingDirectives)==null?0:(N=Z.loggingDirectives)==null?0:N.trackingParams){var B,I;Vj7((B=a.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(I=B.loggingDirectives)==null?void 0:I.trackingParams)}return W.width||0}return 0};
_.t.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.t.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)},
_.Hu(this.hostElement,a))};
_.t.onBuyButtonClick=function(){var a,W=_.A((a=this.data)==null?void 0:a.buyButton,_.J4);W&&!oEm(W.command)&&this.ytRendererBehavior.logExplicitClick(W)};
_.t.shouldSupportWholeItemClick=function(){return!0};
_.dU.Object.defineProperties(uN.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}}});
uN.prototype.updateStickerStyles=uN.prototype.updateStickerStyles;uN.prototype.isDeletedChanged=uN.prototype.isDeletedChanged;uN.prototype.onStickerLoaded=uN.prototype.onStickerLoaded;uN.prototype.dataChanged=uN.prototype.dataChanged;_.f([_.R(s2R.YtPdgLiveChatItemBehavior),_.z("design:type",Object)],uN.prototype,"ytPdgLiveChatItemBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],uN.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],uN.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],uN.prototype,"data",void 0);
_.f([_.b({computed:"computeAuthorPhotoSize(data)"}),_.z("design:type",Number)],uN.prototype,"authorPhotoSize",void 0);_.f([_.b(),_.z("design:type",Boolean)],uN.prototype,"isDeleted",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],uN.prototype,"dashboardMoneyFeed",void 0);_.f([_.b({computed:"computeNoveltyImageWidth(data)"}),_.z("design:type",Number)],uN.prototype,"noveltyWidth",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uN.prototype,"modern",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.z("design:type",Boolean)],uN.prototype,"isV2Style",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uN.prototype,"dataChanged",null);_.f([_.E6("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],uN.prototype,"onStickerLoaded",null);
_.f([_.Q("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],uN.prototype,"stickerWidth",null);_.f([_.Q("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],uN.prototype,"stickerHeight",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uN.prototype,"hasHeartButton",null);_.f([_.Q("data","dashboardMoneyFeed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uN.prototype,"hideLowerBumper",null);
_.f([_.a5("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uN.prototype,"isDeletedChanged",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uN.prototype,"updateStickerStyles",null);uN=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],uN);
_.D(uN,"yt-live-chat-paid-sticker-renderer",function(){if(BeJ===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;$2L===void 0&&($2L=document.createElement("template"));var Z=$2L;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);BeJ=a}a=BeJ;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var hP_;var iXJ;var cJl,ePy=function(){return cJl!==void 0?cJl:cJl=document.createElement("template")};
document.head.appendChild(ePy().content);var nhV,jHL=function(){return nhV!==void 0?nhV:nhV=document.createElement("template")};
document.head.appendChild(jHL().content);var LeV;var JJE,FeA=function(){return JJE!==void 0?JJE:JJE=document.createElement("template")};
document.head.appendChild(FeA().content);var Mjl;var RPL=document.head,qpe=RPL.appendChild,QH$;if(Mjl===void 0){var x2R=document.createElement("template");_.n(x2R,"\x3c!--css-build:shady--\x3e");x2R.content.insertBefore(FeA().content.cloneNode(!0),x2R.content.firstChild);Mjl=x2R}QH$=Mjl;qpe.call(RPL,QH$.content);var bX6=document.head,sH$=bX6.appendChild,unV;if(LeV===void 0){var C0=document.createElement("template");_.n(C0,"\x3c!--css-build:shady--\x3e");C0.content.insertBefore(jHL().content.cloneNode(!0),C0.content.firstChild);C0.content.insertBefore(ePy().content.cloneNode(!0),C0.content.firstChild);LeV=C0}unV=LeV;sH$.call(bX6,unV.content);var Gu=function(){var a=_.Nt.apply(this,arguments)||this;a.focusedIndex=0;a.verticalOffset=0;a.verticalAlign="top";a.dynamicAlign=!0;return a};
_.c(Gu,_.Nt);Gu.prototype.emojiUrl=function(a){a=_.iN(this.emojiManager,a);if(!a)return"";var W;a=(W=a.image)==null?void 0:W.thumbnails;return _.G$(a,24)||""};
var Ct_=function(a){var W;a.emojiVariants&&(W=a.data)!=null&&W.target&&_.DW(a,function(){a.set("verticalOffset",-1*a.hostElement.clientHeight);var w=_.M(a.hostElement).querySelector("img");w&&w.focus()})};
_.t=Gu.prototype;_.t.onKeyboardEnter=function(){};
_.t.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.t.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.t.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()}};
_.t.onYtEmojiSelect=function(a){var W=this,w,Z,N,B,I,X,v,U;return _.P(function(O){if(O.nextAddress==1)return Z=(w=W.data)==null?void 0:w.emoji,I=((N=Z)==null?void 0:N.stickyPrefId)||((B=Z)==null?void 0:B.emojiId),v=(X=a.detail)==null?void 0:X.emojiId,I&&v&&I!==v?_.g(O,(U=W.emojiManager)==null?void 0:mAJ(U,Z,v),2):O.return();_.aV(W.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[Z,v]);_.Xd(O)})};
_.t.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=_.M(this.hostElement).querySelector("#variants"))&&a.children[this.focusedIndex].focus())};
_.dU.Object.defineProperties(Gu.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}}});
Gu.prototype.onYtEmojiSelect=Gu.prototype.onYtEmojiSelect;Gu.prototype.onKeyDown=Gu.prototype.onKeyDown;Gu.prototype.onEmojiVariantsChanged=Gu.prototype.onEmojiVariantsChanged;Gu.prototype.onVerticalOffsetOrPositionTargetChanged=Gu.prototype.onVerticalOffsetOrPositionTargetChanged;_.f([_.R(_.GN),_.z("design:type",Object)],Gu.prototype,"ironOverlayBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Gu.prototype,"data",void 0);_.f([_.b(),_.z("design:type",_.hp)],Gu.prototype,"emojiManager",void 0);
_.f([_.b(),_.z("design:type",Object)],Gu.prototype,"emojiVariants",void 0);_.f([_.b(),_.z("design:type",Object)],Gu.prototype,"focusedIndex",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Gu.prototype,"positionTarget",null);_.f([_.b({reflectToAttribute:!0}),_.Q("verticalOffset","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Gu.prototype,"isPositioned",null);_.f([_.b(),_.z("design:type",Object)],Gu.prototype,"verticalOffset",void 0);
_.f([_.b(),_.z("design:type",Object)],Gu.prototype,"verticalAlign",void 0);_.f([_.b(),_.z("design:type",Object)],Gu.prototype,"dynamicAlign",void 0);_.f([_.a5("verticalOffset","positionTarget"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Gu.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.f([_.a5("emojiVariants"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Gu.prototype,"onEmojiVariantsChanged",null);
_.f([_.E6("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],Gu.prototype,"onKeyDown",null);_.f([_.E6("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype",Promise)],Gu.prototype,"onYtEmojiSelect",null);Gu=_.f([_.BA()],Gu);var Gl6=[Gu.prototype];var D2l;var f4R;var d2$=/medium-light|medium-dark|light|medium|dark/,m2y=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Vj6=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Ds=function(){var a=_.u.apply(this,arguments)||this;a.userSelection={left:null,right:null};a.scrollAction="lock";a.isEmojiDraftInProgress=!1;return a};
_.c(Ds,_.u);_.t=Ds.prototype;_.t.onClick=function(a){a=_.QV(a);a instanceof HTMLImageElement&&this.selectOrUpdateEmoji(a)};
_.t.selectOrUpdateEmoji=function(a){var W=a.getAttribute("selection");W&&(W==="default"?_.E$(this.hostElement,"yt-emoji-select",_.iN(this.emojiManager,a.id)):W==="left"?this.userSelection=Object.assign({},this.userSelection,{left:a.src}):W==="right"?this.userSelection=Object.assign({},this.userSelection,{right:a.src}):W==="user"&&this.userSelection.left&&this.userSelection.right&&_.E$(this.hostElement,"yt-emoji-select",_.iN(this.emojiManager,a.id)))};
_.t.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.t.onMultiSelectorThumbnailRowChanged=function(){var a,W,w;((a=this.data)==null?0:(W=a.emoji)==null?0:(w=W.multiSelectorThumbnailRow)==null?0:w.length)&&this.openSelector()};
_.t.getThumbnailFromEmojiRow=function(a){var W,w;return(a==null?void 0:(W=a.thumbnails)==null?void 0:(w=W[0])==null?void 0:w.url)||""};
_.t.getEmojiAltTextForPartialSelector=function(a){var W;return((W=this.getThumbnailFromEmojiRow(a).match(m2y))==null?void 0:W[0])||""};
_.t.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.t.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.t.getRowSelection=function(a){return["left","right"][a]};
_.t.getIdFromComposedEmoji=function(a){return(a==null?void 0:a.emojiId)||""};
_.t.getEmojiFromPartialSelections=function(a,W){if(!a&&!W)return null;var w,Z,N=(w=this.data)==null?void 0:(Z=w.emoji)==null?void 0:Z.variantIds;if(!N||!N.length)return null;var B;a=(B=a.match(d2$))==null?void 0:B[0];var I;W=(I=W.match(d2$))==null?void 0:I[0];if(!a||!W)return null;var X=Vj6.get(a);I=Vj6.get(W);if(X===I){I=Array.from(Vj6.values()).filter(function(U){return U!==X}).join("|");
var v=new RegExp("^((?!("+I+")).)*"+X+"$")}else v=new RegExp(X+".*"+I);return(N=N.find(function(U){return v.test(U)}))&&_.iN(this.emojiManager,N)||null};
_.t.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var a,W=this.ytEmojiSelectorBehavior.emojiUrl(((a=this.data.emoji)==null?void 0:a.emojiId)||"");_.M(this.hostElement).querySelector('[selection="user"]').src.includes(W)||(this.isEmojiDraftInProgress=!0)}};
_.t.onDomChange=function(){Ct_(this.ytEmojiSelectorBehavior)};
_.t.getFocusableElements=function(){return _.M(this.hostElement).querySelectorAll("img").filter(function(a){return a.getAttribute("role")==="option"})};
_.t.changeFocus=function(a){var W=this.getFocusableElements();W!=null&&W.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+a+W.length)%W.length,this.ytEmojiSelectorBehavior.focusedIndex<W.length&&(a=W[this.ytEmojiSelectorBehavior.focusedIndex])&&a.focus())};
_.t.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))};
_.dU.Object.defineProperties(Ds.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var a=this,W,w,Z;return this.emojiManager&&((W=this.data)==null?0:(w=W.emoji)==null?0:(Z=w.variantIds)==null?0:Z.length)?this.data.emoji.variantIds.map(function(N){return!!N&&_.iN(a.emojiManager,N)}).filter(function(N){return!!N}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var a,W=(a=this.userSelection)==null?void 0:a.left,w;a=(w=this.userSelection)==null?void 0:w.right;return W&&a?this.getEmojiFromPartialSelections(W,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 W;a=(W=this.userSelection)==null?void 0:W.left;var w;W=(w=this.userSelection)==null?void 0:w.right;if(!a&&!W){var Z;return this.ytEmojiSelectorBehavior.emojiUrl(((Z=this.data.emoji)==null?void 0:Z.emojiId)||"")}return a&&!W?a:!a&&W?W:""}}});
Ds.prototype.onMultiSelectorThumbnailRowChanged=Ds.prototype.onMultiSelectorThumbnailRowChanged;Ds.prototype.onClick=Ds.prototype.onClick;_.f([_.R(_.GN),_.z("design:type",Object)],Ds.prototype,"ironOverlayBehavior",void 0);_.f([_.R(Gl6),_.z("design:type",Object)],Ds.prototype,"ytEmojiSelectorBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ds.prototype,"data",void 0);_.f([_.b(),_.z("design:type",_.hp)],Ds.prototype,"emojiManager",void 0);
_.f([_.b(),_.z("design:type",Object)],Ds.prototype,"userSelection",void 0);_.f([_.b(),_.z("design:type",Object)],Ds.prototype,"scrollAction",void 0);_.f([_.b(),_.z("design:type",Object)],Ds.prototype,"isEmojiDraftInProgress",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ds.prototype,"emojiVariants",null);_.f([_.Q("data","userSelection"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ds.prototype,"composedEmojiSelection",null);
_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[MouseEvent]),_.z("design:returntype")],Ds.prototype,"onClick",null);_.f([_.a5("data.emoji.multiSelectorThumbnailRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ds.prototype,"onMultiSelectorThumbnailRowChanged",null);_.f([_.Q("data","userSelection","composedEmojiSelection"),_.z("design:type",String),_.z("design:paramtypes",[])],Ds.prototype,"draftEmojiUrl",null);
Ds=_.f([_.TD({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Ds);
_.D(Ds,"yt-emoji-multi-person-selector",function(){if(f4R===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;D2l===void 0&&(D2l=document.createElement("template"));var Z=D2l;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);f4R=a}a=f4R;return a},{mode:2});var zPV;var HXR;var f0=function(){var a=_.u.apply(this,arguments)||this;a.tooltip_=null;return a};
_.c(f0,_.u);_.t=f0.prototype;_.t.dataChanged_=function(){var a;if((a=this.data)==null?0:a.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.M(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.zX)(this.tooltip_).textContent=this.data.tooltip};
_.t.computeTargetId=function(){var a;return((a=this.data)==null?void 0:a.targetId)||""};
_.t.computeId_=function(a){return a};
_.t.computeIcon_=function(a){return _.EN(a)};
_.t.onTap_=function(){this.active=!this.active;_.E$(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.t.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("active-changed",this.active))};
_.dU.Object.defineProperties(f0.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var a,W;if((a=this.data)==null?0:(W=a.icon)==null?0:W.iconType)return this.data.icon.iconType==="SUPER_STICKER";var w,Z;return((w=this.data)==null?void 0:(Z=w.icon)==null?void 0:Z.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
f0.prototype.activeChangedForBinding=f0.prototype.activeChangedForBinding;f0.prototype.dataChanged_=f0.prototype.dataChanged_;_.f([_.R(_.c7.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],f0.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],f0.prototype,"data",void 0);_.f([_.b({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.z("design:type",String)],f0.prototype,"id",void 0);
_.f([_.b({computed:"computeTargetId(data.targetId)"}),_.z("design:type",String)],f0.prototype,"targetId",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],f0.prototype,"active",void 0);_.f([_.b({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.z("design:type",String)],f0.prototype,"icon",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],f0.prototype,"dataChanged_",null);
_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],f0.prototype,"iconFilled",null);_.f([_.a5("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],f0.prototype,"activeChangedForBinding",null);f0=_.f([_.TD({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],f0);
_.D(f0,"yt-emoji-picker-category-button-renderer",function(){if(HXR===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;zPV===void 0&&(zPV=document.createElement("template"));var Z=zPV;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);HXR=a}a=HXR;return a},{mode:2});var yJJ;var EhH;var dn=function(){var a=_.u.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$11937_ignoreNextFocus_=!1;a.longPressTimeoutId=-1;return a};
_.c(dn,_.u);_.t=dn.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.t.emojiChanged_=function(){this.changeFocus_(0,!1);for(var a=_.$J(),W=0;W<this.emoji.length;W++){var w={veType:88013,elementIndex:W},Z=this.emoji[W];Z.isCustomEmoji&&(Z=document.querySelector(("#"+Z.emojiId).replace("/","\\/")))&&(w=_.tQ(a,w))&&(Z.visualElement=w)}};
_.t.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.t.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.t.emojiSkinToneChanged_=function(a){this.skinTone=a};
_.t.dataChanged=function(){this.data&&this.data.emojiData&&GfV(this.emojiManager,this.data.emojiData)};
_.t.emojiUrl=function(a){a=this.getEmoji(a);if(!a)return"";var W;a=(W=a.image)==null?void 0:W.thumbnails;return _.G$(a,24)||""};
_.t.emojiAlt=function(a){var W=this.get("image.accessibility.accessibilityData.label",a);return W?W:a.isCustomEmoji?a.shortcuts[0]:a.emojiId};
_.t.emojiAriaLabel=function(a){return a.shortcuts?a.shortcuts[0]:""};
_.t.emojiAriaSelected=function(a,W,w){return a&&w==W?"true":"false"};
_.t.getEmoji=function(a){if(this.emojiManager)return this.shouldUseStickyPreferences?foL(this.emojiManager,a):cw(this.emojiManager,a)};
_.t.computeId_=function(a){return a.categoryId||""};
_.t.computeEmoji=function(a){var W=this;return this.emojiManager?a.emojiIds?a.emojiIds.map(function(w){return w?_.iN(W.emojiManager,w):null}).filter(mcE):a.emojiData?a.emojiData.map(function(w){var Z=!!w.emojiId&&_.iN(W.emojiManager,w.emojiId);
return Z?Object.assign({},Z,w):null}).filter(mcE):[]:[]};
_.t.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.t.computeAriaLabel_=function(a){return _.sd(a)};
_.t.computeAriaActivedescendant_=function(a,W){return a&&a[W]?a[W].emojiId||"":""};
_.t.handleLongPressEmojiWithVariants=function(a,W){this.changeFocusToEmoji(a.emojiId,!1);this.openVariantSelector(a,W)};
_.t.onMouseDown=function(a){var W=this;this.hostElement!==document.activeElement&&(this.JSC$11937_ignoreNextFocus_=!0);if(a.button===0){var w=_.QV(a);if(w instanceof HTMLImageElement){var Z=_.M(this.hostElement).querySelector("#repeat").itemForElement(w);this.emojiContainsVariants(Z)&&(this.longPressTimeoutId=setTimeout(function(){W.handleLongPressEmojiWithVariants(Z,w)},500))}}};
_.t.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.t.onFocus=function(){this.JSC$11937_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11937_ignoreNextFocus_=!1};
_.t.onBlur_=function(){this.showFocus=!1};
_.t.emojiContainsVariants=function(a){return!!(a&&a.variantIds&&a.variantIds.length)};
_.t.onClick=function(a){clearTimeout(this.longPressTimeoutId);a=_.QV(a);if(a instanceof HTMLImageElement){var W=a.id;this.changeFocusToEmoji(W,!1);var w=this.getEmoji(W),Z;if(Z=this.shouldUseStickyPreferences&&this.emojiContainsVariants(w)){var N;Z=!((N=this.emojiManager.emojiMap[W])!=null&&N.stickyPrefId)}Z?(N=_.M(this.hostElement).querySelector("#repeat").itemForElement(a),this.openVariantSelector(N,a)):_.E$(this.hostElement,"yt-emoji-select",w)}};
_.t.isActiveEmojiWithVariants=function(a,W){return a&&W?W.stickyPrefId?a===W.stickyPrefId:a===W.emojiId:!1};
_.t.onCloseEmojiVariantSelector=function(a){this.activeEmojiWithVariantsId===a&&(this.activeEmojiWithVariantsId="")};
_.t.onMouseOver_=function(a){a=_.QV(a);a instanceof HTMLImageElement&&_.E$(this.hostElement,"yt-emoji-hover",_.iN(this.emojiManager,a.id))};
_.t.changeFocus_=function(a,W){this.focusedIndex=(this.focusedIndex+a+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(a=this.emoji[this.focusedIndex],W&&(this.showFocus=!0,_.M(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.E$(this.hostElement,"yt-emoji-hover",a)))};
_.t.changeFocusToEmoji=function(a,W){if(a){var w=this.emoji.findIndex(function(Z){return Z.emojiId===a});
w!==-1&&this.changeFocus_(w-this.focusedIndex,W)}};
_.t.onKeyDown_=function(a){switch(a.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var W=this.emoji[this.focusedIndex];if(W&&W.emojiId){if(this.emojiContainsVariants(W)){var w=_.M(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(W,w)}else _.E$(this.hostElement,"yt-emoji-select",cw(this.emojiManager,W.emojiId)),this.hostElement.focus();a.preventDefault()}}break;case 40:this.changeFocus_(1,!0);a.preventDefault();break;case 38:this.changeFocus_(-1,!0),a.preventDefault()}};
_.t.onEmojiStickyPreferenceChanged=function(a,W){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&a.emojiId&&a.variantIds&&a.variantIds.includes(W)&&this.activeEmojiWithVariantsId!==W&&this.setStickyEmojiPreference(a.emojiId,W)};
_.t.openVariantSelector=function(a,W){this.activeEmojiWithVariantsId=a.stickyPrefId||a.emojiId||"";_.E$(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:a,target:W})};
_.t.setStickyEmojiPreference=function(a,W){if(this.data){var w=this.emoji.findIndex(function(N){return N.emojiId===a});
if(w!==-1){var Z=this.emoji[w];Z.stickyPrefId=W;this.set("emoji."+w,Object.assign({},Z));this.activeEmojiWithVariantsId=W}}};
dn.prototype.onKeyDown_=dn.prototype.onKeyDown_;dn.prototype.onMouseOver_=dn.prototype.onMouseOver_;dn.prototype.onClick=dn.prototype.onClick;dn.prototype.onBlur_=dn.prototype.onBlur_;dn.prototype.onFocus=dn.prototype.onFocus;dn.prototype.onMouseUp=dn.prototype.onMouseUp;dn.prototype.onMouseDown=dn.prototype.onMouseDown;dn.prototype.dataChanged=dn.prototype.dataChanged;dn.prototype.disableIncrementalLoadingChanged_=dn.prototype.disableIncrementalLoadingChanged_;dn.prototype.emojiManagerChanged_=dn.prototype.emojiManagerChanged_;
dn.prototype.emojiChanged_=dn.prototype.emojiChanged_;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],dn.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],dn.prototype,"data",void 0);_.f([_.b({computed:"computeId_(data)"}),_.z("design:type",String)],dn.prototype,"id",void 0);_.f([_.b({computed:"computeEmoji(data)"}),_.z("design:type",Array)],dn.prototype,"emoji",void 0);_.f([_.b(),_.z("design:type",Number)],dn.prototype,"skinTone",void 0);
_.f([_.b(),_.z("design:type",_.hp)],dn.prototype,"emojiManager",void 0);_.f([_.b(),_.z("design:type",Boolean)],dn.prototype,"disableIncrementalLoading",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],dn.prototype,"focusedIndex",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],dn.prototype,"showFocus",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.z("design:type",Object)],dn.prototype,"ariaLabel",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.z("design:type",Object)],dn.prototype,"ariaActivedescendant",void 0);_.f([_.b({value:60}),_.z("design:type",Number)],dn.prototype,"domRepeatTargetFramerate",void 0);_.f([_.b({value:1}),_.z("design:type",Number)],dn.prototype,"domRepeatInitialCount",void 0);_.f([_.b({value:""}),_.z("design:type",String)],dn.prototype,"activeEmojiWithVariantsId",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],dn.prototype,"shouldUseStickyPreferences",void 0);_.f([_.a5("emoji"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dn.prototype,"emojiChanged_",null);_.f([_.a5("emojiManager"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dn.prototype,"emojiManagerChanged_",null);
_.f([_.a5("disableIncrementalLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dn.prototype,"disableIncrementalLoadingChanged_",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dn.prototype,"dataChanged",null);_.f([_.E6("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],dn.prototype,"onMouseDown",null);
_.f([_.E6("mouseup"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dn.prototype,"onMouseUp",null);_.f([_.E6("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dn.prototype,"onFocus",null);_.f([_.E6("blur"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dn.prototype,"onBlur_",null);
_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],dn.prototype,"onClick",null);_.f([_.E6("mouseover"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],dn.prototype,"onMouseOver_",null);_.f([_.E6("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],dn.prototype,"onKeyDown_",null);
dn=_.f([_.TD({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],dn);
_.D(dn,"yt-emoji-picker-category-renderer",function(){if(EhH===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;yJJ===void 0&&(yJJ=document.createElement("template"));var Z=yJJ;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);EhH=a}a=EhH;return a},{mode:2});var aSH;var WPe;var wOl;var Z$L;var mz=function(){var a=_.u.apply(this,arguments)||this;a.ariaLabel=null;a.ariaActivedescendant=null;a.getFormattedStringRawText=_.sd;a.JSC$11943_ignoreNextFocus_=!1;return a};
_.c(mz,_.u);_.t=mz.prototype;_.t.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")};
_.t.emojiUrl=function(a){var W,w;a=(W=cw(this.emojiManager,a,!0))==null?void 0:(w=W.image)==null?void 0:w.thumbnails;return _.G$(a,24)||""};
_.t.emojiAlt=function(a){var W=this.get("image.accessibility.accessibilityData.label",a);return W?W:a.isCustomEmoji?a.shortcuts[0]:a.emojiId};
_.t.emojiId=function(a){return"emoji"+a};
_.t.computeId_=function(a){return a.categoryId||""};
_.t.computeAriaActivedescendant_=function(a){return this.emoji&&a<this.emoji.length?this.emojiId(a):""};
_.t.emojiChanged_=function(){this.changeFocus_(0,!1);for(var a=_.$J(),W=0;W<this.emoji.length;W++){var w={veType:88013,elementIndex:W},Z=this.emoji[W];Z.isCustomEmoji&&(Z=document.querySelector(("#"+Z.emojiId).replace("/","\\/")))&&(w=_.tQ(a,w))&&(Z.visualElement=w)}};
_.t.computeEmoji_=function(a){var W=this;return this.emojiManager?a.emojiIds.map(function(w){return _.iN(W.emojiManager,w,!0)}).filter(VtH):[]};
_.t.titleOffsetChanged_=function(){var a=this.hostElement.getBoundingClientRect(),W=_.M(this.hostElement).querySelector("#title").getBoundingClientRect();a=Math.max(0,Math.min(this.titleOffset,a.height-W.height));_.M(this.hostElement).querySelector("#title").style.top=a+"px"};
_.t.onEmojiMouseOver_=function(a){_.E$(this.hostElement,"yt-emoji-hover",a.model.item)};
_.t.onEmojiTap_=function(a){this.data.command&&(a=Z$m(_.K().resolve(_.Vv(xj)),this.data.command,a),_.E$(this.hostElement,"yt-navigate",a))};
_.t.emojiAriaLabel=function(a){return a.shortcuts[0]};
_.t.emojiAriaSelected=function(a,W,w){return a&&w==W?"true":"false"};
_.t.changeFocus_=function(a,W){var w=this.emoji.length;this.focusedIndex=(this.focusedIndex+a+w)%w;a=this.emoji[this.focusedIndex];if(W){var Z;(Z=_.M(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||Z.scrollIntoView(!1);_.E$(this.hostElement,"yt-emoji-hover",a)}};
_.t.onMouseDown_=function(){this.JSC$11943_ignoreNextFocus_=!0};
_.t.onFocus_=function(){this.JSC$11943_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11943_ignoreNextFocus_=!1};
_.t.onBlur_=function(){this.showFocus=!1};
_.t.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()}};
mz.prototype.onKeyDown_=mz.prototype.onKeyDown_;mz.prototype.onBlur_=mz.prototype.onBlur_;mz.prototype.onFocus_=mz.prototype.onFocus_;mz.prototype.onMouseDown_=mz.prototype.onMouseDown_;mz.prototype.onEmojiTap_=mz.prototype.onEmojiTap_;mz.prototype.titleOffsetChanged_=mz.prototype.titleOffsetChanged_;mz.prototype.emojiChanged_=mz.prototype.emojiChanged_;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],mz.prototype,"ytComponentBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],mz.prototype,"data",void 0);_.f([_.b({computed:"computeId_(data)"}),_.z("design:type",String)],mz.prototype,"id",void 0);_.f([_.b({computed:"computeEmoji_(data)"}),_.z("design:type",Array)],mz.prototype,"emoji",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],mz.prototype,"titleOffset",void 0);_.f([_.b({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.z("design:type",Object)],mz.prototype,"ariaLabel",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.z("design:type",Object)],mz.prototype,"ariaActivedescendant",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],mz.prototype,"showFocus",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],mz.prototype,"focusedIndex",void 0);_.f([_.b(),_.z("design:type",_.hp)],mz.prototype,"emojiManager",void 0);
_.f([_.a5("emoji"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mz.prototype,"emojiChanged_",null);_.f([_.a5("titleOffset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mz.prototype,"titleOffsetChanged_",null);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],mz.prototype,"onEmojiTap_",null);
_.f([_.E6("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mz.prototype,"onMouseDown_",null);_.f([_.E6("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mz.prototype,"onFocus_",null);_.f([_.E6("blur"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mz.prototype,"onBlur_",null);
_.f([_.E6("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],mz.prototype,"onKeyDown_",null);mz=_.f([_.TD({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],mz);
_.D(mz,"yt-emoji-picker-upsell-category-renderer",function(){if(Z$L===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;wOl===void 0&&(wOl=document.createElement("template"));var Z=wOl;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Z$L=a}a=Z$L;return a},{mode:2});var N6R;var ttR;var Vj=function(){var a=_.u.apply(this,arguments)||this;a.scrollAction="lock";a.verticalAlign="top";return a};
_.c(Vj,_.u);_.t=Vj.prototype;_.t.onClick=function(a){a=_.QV(a);a instanceof HTMLImageElement&&_.E$(this.hostElement,"yt-emoji-select",_.iN(this.emojiManager,a.id))};
_.t.openSelector=function(){this.ironOverlayBehavior.open()};
_.t.onDomChange=function(){Ct_(this.ytEmojiSelectorBehavior)};
_.t.computeIsFamilySelector=function(a){var W;return(a==null?void 0:(W=a.emoji)==null?void 0:W.emojiId)==="\ud83d\udc6a"};
_.t.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var a=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];a&&a.emojiId&&(_.E$(this.hostElement,"yt-emoji-select",_.iN(this.emojiManager,a.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.dU.Object.defineProperties(Vj.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var a=this,W,w,Z;return this.emojiManager&&((W=this.data)==null?0:(w=W.emoji)==null?0:(Z=w.variantIds)==null?0:Z.length)?this.data.emoji.variantIds.map(function(N){return!!N&&_.iN(a.emojiManager,N)}).filter(function(N){return!!N}):[]}}});
Vj.prototype.onClick=Vj.prototype.onClick;_.f([_.R(_.GN),_.z("design:type",Object)],Vj.prototype,"ironOverlayBehavior",void 0);_.f([_.R(Gl6),_.z("design:type",Object)],Vj.prototype,"ytEmojiSelectorBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Vj.prototype,"data",void 0);_.f([_.b(),_.z("design:type",_.hp)],Vj.prototype,"emojiManager",void 0);_.f([_.b(),_.z("design:type",Object)],Vj.prototype,"scrollAction",void 0);_.f([_.b(),_.z("design:type",Object)],Vj.prototype,"verticalAlign",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.z("design:type",Boolean)],Vj.prototype,"isFamilySelector",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Vj.prototype,"emojiVariants",null);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[MouseEvent]),_.z("design:returntype")],Vj.prototype,"onClick",null);Vj=_.f([_.TD({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Vj);
_.D(Vj,"yt-emoji-variant-selector",function(){if(ttR===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;N6R===void 0&&(N6R=document.createElement("template"));var Z=N6R;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);ttR=a}a=ttR;return a},{mode:2});var $cA=/:/g,B6$=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],zu=function(){var a=_.u.apply(this,arguments)||this;a.emojiVariantSelector=null;a.emojiMultiPersonSelector=null;a.identity=_.ue;a.lastAnimationTime_=0;a.animationStart_=null;a.animationEnd_=null;return a};
_.c(zu,_.u);_.t=zu.prototype;
_.t.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}}};
_.t.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.eD)};
_.t.attached=function(){_.lB&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&DAE(this.emojiManager)};
_.t.dataChanged=function(){var a;if((a=this.data)==null?0:a.categories){a=this.emojiManager;var W=this.getCustomEmojiIds();a.pickerCustomEmojiIds=[].concat(_.K8(xAL),_.K8(W))}};
_.t.getCustomEmojiIds=function(){var a,W=(a=this.data.categories)==null?void 0:a.find(function(B){var I;return((I=B.emojiPickerCategoryRenderer)==null?void 0:I.categoryId)&&B6$.includes(B.emojiPickerCategoryRenderer.categoryId)}),w;
a=(w=this.data.categories)==null?void 0:w.find(function(B){return B.emojiPickerUpsellCategoryRenderer});
var Z,N;return[W==null?void 0:(Z=W.emojiPickerCategoryRenderer)==null?void 0:Z.emojiIds,a==null?void 0:(N=a.emojiPickerUpsellCategoryRenderer)==null?void 0:N.emojiIds].flat().filter(function(B){return!!B})};
_.t.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.t.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.t.updateCategoriesAndPlaceholderInternal=function(a,W){var w=this;a&&W&&(this.categories=a.categories||[],this.categoryButtons=a.categoryButtons||[],this.resetPlaceholder(),this.search="",_.cA(function(){w.updateButtons_()}))};
_.t.computeId_=function(a){return a.id||""};
_.t.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(a){return a.emojiPickerCategoryRenderer&&a.emojiPickerCategoryRenderer.emojiData}):!1};
_.t.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.t.onShowEmojiVariantSelector=function(a){var W=a.detail.emojiData;W.variantIds&&W.variantIds.length&&(W.multiSelectorThumbnailRow&&W.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:W,target:a.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:W,target:a.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.t.onIronOverlayClosed=function(a){var W=foL(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");W&&a.composedPath&&(a.composedPath().includes(_.M(this.hostElement).querySelector("#emoji-variant-selector"))||a.composedPath().includes(_.M(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.aV(this.hostElement,"yt-close-emoji-variant-selector",[W.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.t.onEmojiVariantSelectorMouseup=function(a){var W=a.target.firstChild;this.variantSelectorOpened&&W&&_.cA(function(){W.noCancelOnOutsideClick=!1},100)};
_.t.onEmojiVariantSelectorMousedown=function(a){a=a.target.firstChild;this.variantSelectorOpened&&a&&(a.noCancelOnOutsideClick=!1)};
_.t.onSelectCategory_=function(a){var W=this.search!="";this.search="";for(var w=_.M(this.hostElement).querySelector("#categories").children,Z=0;Z<w.length;Z++){var N=w[Z];if(N.id==a.detail.categoryId){W?(_.M(this.hostElement).querySelector("#categories").scrollTop=N.offsetTop,this.updateButtons_()):(this.animationStart_=_.M(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=N.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.t.onEmojiHover_=function(a){this.placeholder=a.detail.shortcuts?a.detail.shortcuts[0]:""};
_.t.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.t.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.t.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.t.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.t.computeSearchCategory_=function(a){a=a.replace($cA,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();a=a.split(" ");for(var W=[],w=this.emojiManager.emojis,Z=0;Z<w.length;Z++){var N=w[Z];if(N.searchTerms)for(var B=0;B<N.searchTerms.length;B++){for(var I=N.searchTerms[B].toLocaleLowerCase(),X=!1,v=0;v<a.length;v++)if(I.indexOf(a[v])!=-1){X=!0;break}if(X&&(!N.isCustomEmoji||!N.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(N.emojiId))){W.push(N.emojiId);
break}}}return{categoryId:-1,emojiIds:W}};
_.t.computeSearchEmptyMessage_=function(a,W){return a&&W&&W.emojiIds&&W.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.t.computeSearching_=function(a){return this.emojiManager&&a.replace($cA,"").length>1};
_.t.computeSkinToneHidden=function(){var a;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((a=this.data)==null||!a.hideSkinTonePicker)};
_.t.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.t.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.t.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.t.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.t.selectSkinTone_=function(a){a=Number(a.target.getAttribute("tone"));this.set("emojiManager.skinTone",a);_.aV(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[a]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.t.skinToneChanged_=function(){_.M(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var a=_.M(this.hostElement).querySelector("#dropdown-content").children,W=0;W<a.length;W++)W===this.skinTone?a[W].setAttribute("selected",""):a[W].removeAttribute("selected")};
_.t.animateScroll_=function(a){this.lastAnimationTime_||(this.lastAnimationTime_=a);a-=this.lastAnimationTime_;a<200?(_.M(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*a/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.M(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.t.searchChanged_=function(){this.updateButtons_()};
_.t.updateButtons_=function(){var a=null;if(!this.search)for(var W=_.M(this.hostElement).querySelector("#categories").scrollTop,w=_.M(this.hostElement).querySelector("#categories").children,Z=0;Z<w.length;Z++){var N=w[Z];N.offsetTop<=W&&(a=N.id)}W=_.M(this.hostElement).querySelector("#category-buttons").children;for(w=0;w<W.length;w++)Z=W[w],Z.active=Z.id===a};
zu.prototype.searchChanged_=zu.prototype.searchChanged_;zu.prototype.skinToneChanged_=zu.prototype.skinToneChanged_;zu.prototype.onEmojiHover_=zu.prototype.onEmojiHover_;zu.prototype.onSelectCategory_=zu.prototype.onSelectCategory_;zu.prototype.onShowEmojiVariantSelector=zu.prototype.onShowEmojiVariantSelector;zu.prototype.updateCategoriesAndPlaceholder_=zu.prototype.updateCategoriesAndPlaceholder_;zu.prototype.dataChanged=zu.prototype.dataChanged;
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],zu.prototype,"data",void 0);_.f([_.b({value:function(){return[]}}),
_.z("design:type",Array)],zu.prototype,"categories",void 0);_.f([_.b({value:function(){return[]}}),
_.z("design:type",Array)],zu.prototype,"categoryButtons",void 0);_.f([_.b({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.z("design:type",Boolean)],zu.prototype,"disableScroll",void 0);_.f([_.b({computed:"computeId_(data)",reflectToAttribute:!0}),_.z("design:type",String)],zu.prototype,"id",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],zu.prototype,"selected",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],zu.prototype,"disableIncrementalLoading",void 0);_.f([_.b(),_.z("design:type",String)],zu.prototype,"placeholder",void 0);_.f([_.b({value:""}),_.z("design:type",String)],zu.prototype,"search",void 0);_.f([_.b({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.z("design:type",Boolean)],zu.prototype,"searching",void 0);_.f([_.b({computed:"computeSearchCategory_(search)"}),_.z("design:type",Object)],zu.prototype,"searchCategory",void 0);
_.f([_.b({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.z("design:type",Object)],zu.prototype,"searchEmptyMessage",void 0);_.f([_.b({computed:"identity(emojiManager.skinTone)"}),_.z("design:type",Number)],zu.prototype,"skinTone",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],zu.prototype,"skinToneOpened",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],zu.prototype,"variantSelectorOpened",void 0);
_.f([_.b({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.z("design:type",Boolean)],zu.prototype,"skinToneHidden",void 0);_.f([_.b(),_.z("design:type",_.hp)],zu.prototype,"emojiManager",void 0);_.f([_.b(),_.z("design:type",Object)],zu.prototype,"emojiVariantSelector",void 0);_.f([_.b(),_.z("design:type",Object)],zu.prototype,"emojiMultiPersonSelector",void 0);
_.f([_.b({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.z("design:type",Boolean)],zu.prototype,"shouldUseStickyPreferences",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zu.prototype,"dataChanged",null);_.f([_.a5("data","selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zu.prototype,"updateCategoriesAndPlaceholder_",null);
_.f([_.E6("yt-show-emoji-variant-selector"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],zu.prototype,"onShowEmojiVariantSelector",null);_.f([_.E6("yt-emoji-picker-select-category"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],zu.prototype,"onSelectCategory_",null);_.f([_.E6("yt-emoji-hover"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],zu.prototype,"onEmojiHover_",null);
_.f([_.a5("skinTone"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zu.prototype,"skinToneChanged_",null);_.f([_.a5("search"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zu.prototype,"searchChanged_",null);zu=_.f([_.TD({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],zu);
_.D(zu,"yt-emoji-picker-renderer",function(){if(WPe===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;aSH===void 0&&(aSH=document.createElement("template"));var Z=aSH;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);WPe=a}a=WPe;return a},{mode:2});var Hw=function(){var a=_.u.apply(this,arguments)||this;a.emojiManager=_.eD;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.selectedIndex=1;a.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return a};
_.c(Hw,_.u);_.t=Hw.prototype;_.t.handleEmojiCustomizationVisible=function(a){this.emojiPickerRenderer.selected=a;this.selectedIndex=1;a?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.t.emojiCustomizationSetChanged=function(){var a;(a=this.data)!=null&&a.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.gT(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.t.updateSaveButtonState=function(a){var W;(W=this.data)!=null&&W.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.oL("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:a}))};
_.t.emojiUrl=function(a){a=_.iN(this.emojiManager,a);if(!a)return"";var W;a=(W=a.image)==null?void 0:W.thumbnails;return _.G$(a,24)||""};
_.t.emojiAlt=function(a){var W=_.iN(this.emojiManager,a);if(!W)return a;var w,Z,N,B=(W==null?void 0:(w=W.image)==null?void 0:(Z=w.accessibility)==null?void 0:(N=Z.accessibilityData)==null?void 0:N.label)||"";return B?B:W.isCustomEmoji?W.shortcuts[0]:W.emojiId||a};
_.t.emojiAriaLabel=function(a){var W,w;return((W=_.iN(this.emojiManager,a))==null?void 0:(w=W.shortcuts)==null?void 0:w[0])||a};
_.t.onEmojiClick=function(a){a.model.index!==0&&(this.selectedIndex=a.model.index)};
_.t.onEmojiSelect=function(a){a=a.detail;var W,w;((W=this.data)==null?0:W.emojiCustomizationSetEntityKey)&&((w=this.emojiCustomizationSet)==null?0:w.emojiId)&&a.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,a.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.oL("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,a.emojiId,this.selectedIndex)}))};
_.t.canEditEmoji=function(a,W,w){a=a.indexOf(W);return a===w||a===0||w===0?!1:!0};
_.t.getUpdatedEmojiIdList=function(a,W,w){var Z=a.indexOf(W);a=[].concat(_.K8(a));Z>=0&&(a[Z]=a[w]);a[w]=W;return a};
_.dU.Object.defineProperties(Hw,{template:{configurable:!0,enumerable:!0,get:function(){if(iXJ===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;hP_===void 0&&(hP_=document.createElement("template"));var Z=hP_;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);iXJ=a}a=iXJ;return a}}});
Hw.prototype.onEmojiSelect=Hw.prototype.onEmojiSelect;_.f([_.R(_.ii),_.z("design:type",Object)],Hw.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Hw.prototype,"ytActionHandlerBehavior",void 0);_.f([_.w$("yt-emoji-picker-renderer"),_.z("design:type",Object)],Hw.prototype,"emojiPickerRenderer",void 0);
_.f([_.b({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(a,W){return _.tG(a.entities,"emojiCustomizationSetEntity",W)},
observer:"emojiCustomizationSetChanged"}),_.z("design:type",Object)],Hw.prototype,"emojiCustomizationSet",void 0);_.f([_.b(),_.z("design:type",Object)],Hw.prototype,"originalEmojiSet",void 0);_.f([_.b(),_.z("design:type",_.hp)],Hw.prototype,"emojiManager",void 0);_.f([_.b(),_.z("design:type",Object)],Hw.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hw.prototype,"isDarkTheme",void 0);_.f([_.b(),_.z("design:type",Object)],Hw.prototype,"selectedIndex",void 0);
_.f([_.E6("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Hw.prototype,"onEmojiSelect",null);Hw=_.f([_.TD({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],Hw);var lSL;var ISR;var PSR;var XOh;var yj=function(){var a=_.u.apply(this,arguments)||this;a.authorBadges=[];return a};
_.c(yj,_.u);_.t=yj.prototype;_.t.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.t.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]]"}}}}}};
_.t.dataChanged=function(){var a=eAv(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",a)};
_.t.updateMessage=function(){var a=this.data.message,W=_.M(_.M(this.hostElement).querySelector("#message"));W.textContent="";a&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a))};
_.t.shouldSupportWholeItemClick=function(){return!0};
_.t.onShowOriginalClick=function(a){a.preventDefault();this.showOriginal=!0};
_.t.computeShowBar=function(a,W,w){return a&&W||w};
_.t.computeAuthorBadges=function(a){return a.authorBadges||[]};
_.t.computeAuthorIsOwner=function(a){return!!nwE(a.authorBadges,"owner")};
_.t.computeAuthorNameColor=function(a){var W;if(_.r("live_chat_author_name_color_usernames")&&(a==null?0:(W=a.authorName)==null?0:W.simpleText))return _.RAU(_.qrS(a.authorName.simpleText));if(_.r("live_chat_seed_color_usernames")&&(a==null?0:a.authorSeedColorArgb))return _.RAU(_.HA(a.authorSeedColorArgb));if(_.r("live_chat_colored_usernames"))return"#cc0000";var w;return _.r("live_chat_simple_color_usernames")&&(a==null?0:(w=a.authorName)==null?0:w.simpleText)&&(a==null?0:a.authorUsernameColorLight)&&
(a==null?0:a.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.HA(a.authorUsernameColorDark):_.HA(a.authorUsernameColorLight):""};
yj.prototype.updateMessage=yj.prototype.updateMessage;yj.prototype.dataChanged=yj.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],yj.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],yj.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],yj.prototype,"data",void 0);
_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],yj.prototype,"showOriginal",void 0);_.f([_.b({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.z("design:type",Boolean)],yj.prototype,"isDimmed",void 0);_.f([_.b({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.z("design:type",Boolean)],yj.prototype,"showBar",void 0);
_.f([_.b({computed:"computeAuthorBadges(data)"}),_.z("design:type",Array)],yj.prototype,"authorBadges",void 0);_.f([_.b({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],yj.prototype,"authorIsOwner",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],yj.prototype,"inCollapsedBanner",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],yj.prototype,"inBanner",void 0);
_.f([_.b({value:_.r("live_chat_hide_avatars"),reflectToAttribute:!0}),_.z("design:type",Boolean)],yj.prototype,"avatarHidden",void 0);_.f([_.b({computed:"computeAuthorNameColor(data)"}),_.z("design:type",String)],yj.prototype,"authorNameColor",void 0);_.f([_.b(),_.z("design:type",_.Fj)],yj.prototype,"participantsManager",void 0);_.f([_.b({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.z("design:type",Object)],yj.prototype,"filledButtonOverrides",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yj.prototype,"dataChanged",null);_.f([_.a5("data.message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yj.prototype,"updateMessage",null);yj=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],yj);
_.D(yj,"yt-live-chat-text-message-renderer",function(){if(XOh===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;PSR===void 0&&(PSR=document.createElement("template"));var Z=PSR;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);XOh=a}a=XOh;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Eq=function(){var a=_.u.apply(this,arguments)||this;a.tonalButtonOverrides={type:"tonal",style:"overlay"};return a};
_.c(Eq,_.u);
Eq.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]]"}}}}}};
Eq.prototype.shouldSupportInlineActionButtons=function(){return!0};
Eq.prototype.shouldSupportWholeItemClick=function(){return!0};
_.dU.Object.defineProperties(Eq.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],Eq.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Eq.prototype,"data",void 0);_.f([_.b(),_.z("design:type",_.Fj)],Eq.prototype,"participantsManager",void 0);
_.f([_.b(),_.z("design:type",Object)],Eq.prototype,"tonalButtonOverrides",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data.infoDialogButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],Eq.prototype,"hasInfoDialogButton",null);Eq=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Eq);
_.D(Eq,"yt-live-chat-auto-mod-message-renderer",function(){if(ISR===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;lSL===void 0&&(lSL=document.createElement("template"));var Z=lSL;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);ISR=a}a=ISR;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var vGV;var gGT;var oGR;var a3=function(){return _.u.apply(this,arguments)||this};
_.c(a3,_.u);_.f([_.b(),_.z("design:type",Object)],a3.prototype,"data",void 0);a3=_.f([_.C({is:"ytd-factoid-renderer",disableElementRegistration:!0})],a3);
_.D(a3,"ytd-factoid-renderer",function(){if(oGR!==void 0)return oGR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return oGR=a},{mode:1});var Wp=function(){return _.u.apply(this,arguments)||this};
_.c(Wp,_.u);Wp.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.f([_.b(),_.z("design:type",Object)],Wp.prototype,"data",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);Wp=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Wp);
_.D(Wp,"yt-live-chat-channel-activity-reputation-renderer",function(){if(gGT===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;vGV===void 0&&(vGV=document.createElement("template"));var Z=vGV;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);gGT=a}a=gGT;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var kFR;var UcL;var w0=function(){return _.u.apply(this,arguments)||this};
_.c(w0,_.u);w0.prototype.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Boolean)],w0.prototype,"menuFocused",void 0);_.f([_.b(),_.z("design:type",Object)],w0.prototype,"data",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],w0.prototype,"ytLiveChatItemBehavior",void 0);w0=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],w0);
_.D(w0,"yt-live-chat-donation-announcement-renderer",function(){if(UcL===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;kFR===void 0&&(kFR=document.createElement("template"));var Z=kFR;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);UcL=a}a=UcL;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var O$y;var S4e,Y4e=function(){if(S4e!==void 0)return S4e;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;O$y===void 0&&(O$y=document.createElement("template"));var Z=O$y;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return S4e=a};var ZH=function(){return _.u.apply(this,arguments)||this};
_.c(ZH,_.u);_.dU.Object.defineProperties(ZH,{template:{configurable:!0,enumerable:!0,get:function(){return Y4e()}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ZH.prototype,"data",void 0);ZH=_.f([_.TD({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],ZH);_.D(ZH,"yt-live-chat-empty-feed-view-model",function(){return Y4e()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var T6E;var KPR;var Nv=function(){return _.u.apply(this,arguments)||this};
_.c(Nv,_.u);Nv.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"}}}}}};
_.dU.Object.defineProperties(Nv.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var a,W;return{runs:[{text:(a=this.data)==null?void 0:(W=a.channelName)==null?void 0:W.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var a=[],W;if((W=this.data)==null||!W.channelBadges)return a;var w;W=_.l((w=this.data)==null?void 0:w.channelBadges);for(w=W.next();!w.done;w=W.next()){w=_.A(w.value,b9R);var Z=void 0,N=void 0;if((Z=w)==null?0:(N=Z.badgeImage)==null?0:N.sources)Z=void 0,N={liveChatAuthorBadgeRenderer:{tooltip:w.tooltip,accessibility:{accessibilityData:{label:(Z=_.A(w.rendererContext,_.DB))==null?void 0:Z.label}}}},w.badgeImage.sources[0].clientResource?N.liveChatAuthorBadgeRenderer.icon=
{iconType:w.badgeImage.sources[0].clientResource.imageName}:N.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:w.badgeImage.sources},a.push(N)}return a}}});
_.f([_.b(),_.z("design:type",Object)],Nv.prototype,"data",void 0);_.f([_.Q("data.channelName"),_.z("design:type",Object),_.z("design:paramtypes",[])],Nv.prototype,"channelName",null);_.f([_.Q("data.channelBadges"),_.z("design:type",Array),_.z("design:paramtypes",[])],Nv.prototype,"channelBadges",null);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);
Nv=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Nv);
_.D(Nv,"yt-live-chat-identity-view-model",function(){if(KPR===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;T6E===void 0&&(T6E=document.createElement("template"));var Z=T6E;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);KPR=a}a=KPR;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var pOy;var r0R;var A0_;var hdE;var te=function(){var a=_.u.apply(this,arguments)||this;a.hidden=!1;a.supportsInlineActionButtons=!0;return a};
_.c(te,_.u);te.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","")};
te.prototype.dataChanged=function(a){var W=(0,_.zX)(_.M(this.hostElement).querySelector("#detail-text"));W.textContent="";(a==null?0:a.detailText)&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a.detailText))};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],te.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],te.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b({observer:"dataChanged"}),_.z("design:type",Object)],te.prototype,"data",void 0);
_.f([_.b({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.z("design:type",Object)],te.prototype,"hidden",void 0);te=_.f([_.C({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],te);
_.D(te,"yt-live-chat-legacy-paid-message-renderer",function(){if(hdE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;A0_===void 0&&(A0_=document.createElement("template"));var Z=A0_;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);hdE=a}a=hdE;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var i$J;var c0h;var edJ={},$4=function(){return _.Nt.apply(this,arguments)||this};
_.c($4,_.Nt);$4.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
$4.prototype.onLiveChatMembershipItemBehaviorClick=$4.prototype.onLiveChatMembershipItemBehaviorClick;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$4.prototype,"data",void 0);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],$4.prototype,"onLiveChatMembershipItemBehaviorClick",null);$4=_.f([_.BA()],$4);
edJ.YtLiveChatMembershipItemBehavior=[$4.prototype,_.E.YtRendererBehavior];var Bp=function(){var a=_.u.apply(this,arguments)||this;a.supportsInlineActionButtons=!0;a.hasPrimaryHeaderText=!1;a.showOnlyHeader=!1;a.authorBadges=[];a.modern=_.r("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.c(Bp,_.u);_.t=Bp.prototype;_.t.shouldSupportInlineActionButtons=function(){return!0};
_.t.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.t.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.t.messageChanged=function(){var a=this.data.message,W=(0,_.zX)(_.M(this.hostElement).querySelector("#message"));W.textContent="";a&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a))};
_.t.computeHasPrimaryHeaderText=function(a){return!(!a||!a.headerPrimaryText)};
_.t.computeShowOnlyHeader=function(a,W){return this.isMessageEmpty(a,W)};
_.t.computeAuthorBadges=function(a){return a.authorBadges||[]};
_.t.isMessageEmpty=function(a,W){return!a||a.empty?!0:!a.message&&!a.inputField&&!W};
_.t.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.t.getInputElement=function(){return _.M(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.t.inputFocus=function(){var a=this.getInputElement();a&&a.focus()};
_.t.inputInsertEmoji=function(a){var W=this.getInputElement();W&&W.insertEmoji(a)};
_.t.inputMessage=function(){var a=this.getInputElement();return a&&this.data.inputField?(a.completeEmojis(),_.nA(a.liveChatRichMessageInput)):null};
_.t.onFooterButtonClick=function(){this.data.footerButton&&_.E$(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.t.shouldSupportWholeItemClick=function(){return!0};
Bp.prototype.isDeletedChanged=Bp.prototype.isDeletedChanged;Bp.prototype.messageChanged=Bp.prototype.messageChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],Bp.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.R(edJ.YtLiveChatMembershipItemBehavior),_.z("design:type",Object)],Bp.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Bp.prototype,"data",void 0);_.f([_.b({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.z("design:type",Object)],Bp.prototype,"hasPrimaryHeaderText",void 0);_.f([_.b({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.z("design:type",Object)],Bp.prototype,"showOnlyHeader",void 0);
_.f([_.b({computed:"computeAuthorBadges(data)"}),_.z("design:type",Array)],Bp.prototype,"authorBadges",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Bp.prototype,"modern",void 0);_.f([_.a5("data.message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bp.prototype,"messageChanged",null);_.f([_.a5("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bp.prototype,"isDeletedChanged",null);
Bp=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Bp);
_.D(Bp,"yt-live-chat-membership-item-renderer",function(){if(c0h===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;i$J===void 0&&(i$J=document.createElement("template"));var Z=i$J;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);c0h=a}a=c0h;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var nGJ;var jM$;var lj=function(){return _.u.apply(this,arguments)||this};
_.c(lj,_.u);lj.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],lj.prototype,"data",void 0);lj=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],lj);
_.D(lj,"yt-live-chat-mode-change-message-renderer",function(){if(jM$===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;nGJ===void 0&&(nGJ=document.createElement("template"));var Z=nGJ;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);jM$=a}a=jM$;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var LPl;var J0e;var I3=function(){return _.u.apply(this,arguments)||this};
_.c(I3,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],I3.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],I3.prototype,"data",void 0);I3=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],I3);
_.D(I3,"yt-live-chat-moderation-message-renderer",function(){if(J0e===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;LPl===void 0&&(LPl=document.createElement("template"));var Z=LPl;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);J0e=a}a=J0e;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var FPl;var MtE;var Pp=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("web_button_rework");return a};
_.c(Pp,_.u);Pp.prototype.onClick=function(){var a;if((a=this.data)!=null&&a.onClickCommand){var W;_.WX.instance.resolveCommand((W=this.data)==null?void 0:W.onClickCommand)}};
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Pp.prototype,"modern",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ii),_.z("design:type",Object)],Pp.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],Pp.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Pp.prototype,"data",void 0);Pp=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Pp);
_.D(Pp,"yt-live-chat-offer-click-count-message-renderer",function(){if(MtE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;FPl===void 0&&(FPl=document.createElement("template"));var Z=FPl;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);MtE=a}a=MtE;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Rdh;var XG=function(){return _.u.apply(this,arguments)||this};
_.c(XG,_.u);_.f([_.b(),_.z("design:type",Object)],XG.prototype,"data",void 0);XG=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],XG);
_.D(XG,"yt-live-chat-placeholder-item-renderer",function(){if(Rdh===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);Rdh=a}a=Rdh;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var q4T;var QMV;var xch=new Qb(7),vp=function(){var a=_.u.apply(this,arguments)||this;a.data={};return a};
_.c(vp,_.u);vp.prototype.dataChanged=function(){var a;((a=this.data)==null?0:a.class)&&_.mh(this.hostElement,this.data.class,!0);var W;((W=this.oldData)==null?0:W.class)&&_.mh(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
vp.prototype.computeTimestampString=function(a){return xch.format(new Date(a/1E3))};
vp.prototype.dataChanged=vp.prototype.dataChanged;_.f([_.b(),_.z("design:type",Object)],vp.prototype,"data",void 0);_.f([_.b({computed:"computeTimestampString(data.timestampUsec)"}),_.z("design:type",String)],vp.prototype,"timestampString",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vp.prototype,"dataChanged",null);vp=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],vp);
_.D(vp,"yt-live-chat-server-error-message",function(){if(QMV===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;q4T===void 0&&(q4T=document.createElement("template"));var Z=q4T;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);QMV=a}a=QMV;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var b$e;var sMR;var g0=function(){var a=_.u.apply(this,arguments)||this;a.defaultToFilledIcon=!1;return a};
_.c(g0,_.u);g0.prototype.computeHasPrimaryColorIcon=function(a){return a==="SPARK"||a==="SPONSORSHIP_STAR"};
g0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],g0.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],g0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],g0.prototype,"defaultToFilledIcon",void 0);_.f([_.b(),_.z("design:type",Object)],g0.prototype,"data",void 0);
_.f([_.b({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.z("design:type",Boolean)],g0.prototype,"hasPrimaryColorIcon",void 0);g0=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],g0);
_.D(g0,"yt-live-chat-viewer-engagement-message-renderer",function(){if(sMR===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;b$e===void 0&&(b$e=document.createElement("template"));var Z=b$e;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);sMR=a}a=sMR;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var u9V;var o3=function(){var a=_.u.apply(this,arguments)||this;a.modernUpdate=!1;a.buttonStyle="overlay";a.buttonType="filled";return a};
_.c(o3,_.u);o3.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
o3.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],o3.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o3.prototype,"modernUpdate",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],o3.prototype,"buttonStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],o3.prototype,"buttonType",void 0);
o3=_.f([_.C({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],o3);
_.D(o3,"ytd-ad-hover-text-button-renderer",function(){if(u9V!==void 0)return u9V;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return u9V=a},{mode:1});var CS_;var k4=function(){var a=_.u.apply(this,arguments)||this;a.buttonOverrides={size:"XS"};a.modern=_.r("web_button_rework");return a};
_.c(k4,_.u);k4.prototype.onHelpTap=function(a){this.data&&this.data.informationDialog&&(_.E$(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),a.preventDefault(),a.stopPropagation())};
_.f([_.b(),_.z("design:type",Object)],k4.prototype,"buttonOverrides",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],k4.prototype,"modern",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],k4.prototype,"data",void 0);k4=_.f([_.C({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],k4);
_.D(k4,"ytd-live-chat-purchased-product-message-renderer",function(){if(CS_!==void 0)return CS_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return CS_=a},{mode:1});var GFe;var DcE;var UD=function(){var a=_.u.apply(this,arguments)||this;a.isContainerDeleted=!1;return a};
_.c(UD,_.u);UD.prototype.onContextMenuClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
UD.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))};
UD.prototype.isContainerDeletedChanged=UD.prototype.isContainerDeletedChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],UD.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],UD.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],UD.prototype,"isContainerDeleted",void 0);
_.f([_.b(),_.z("design:type",String)],UD.prototype,"deletedStateMessage",void 0);_.f([_.a5("isContainerDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UD.prototype,"isContainerDeletedChanged",null);UD=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],UD);
_.D(UD,"ytd-sponsorships-live-chat-header-renderer",function(){if(DcE!==void 0)return DcE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return DcE=a},{mode:1});var OD=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.c(OD,_.u);OD.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]]"}}}}}};
OD.prototype.onCtaButtonClick=function(){var a,W=_.A((a=this.data)==null?void 0:a.optInPrompt,_.J4);if(a=this.maybeGetButtonCommand(W)){var w;(w=_.$J())==null||w.clickCommand(a)}};
OD.prototype.maybeGetButtonCommand=function(a){return!a||!a.command||_.A(a.command,gV$)===void 0&&_.A(a.command,vVR)===void 0?null:a.command};
OD.prototype.shouldHideOptinPrompt=function(a,W){return!a||W};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],OD.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],OD.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],OD.prototype,"modern",void 0);OD=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],OD);
_.D(OD,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(GFe!==void 0)return GFe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return GFe=a},{mode:1});var fSE;var SN=function(){return _.u.apply(this,arguments)||this};
_.c(SN,_.u);SN.prototype.onContextMenuClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
SN.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))};
SN.prototype.isDeletedChanged=SN.prototype.isDeletedChanged;_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],SN.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],SN.prototype,"data",void 0);_.f([_.a5("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SN.prototype,"isDeletedChanged",null);SN=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],SN);
_.D(SN,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(fSE!==void 0)return fSE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return fSE=a},{mode:1});var Y4=function(){var a=_.u.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};
_.c(Y4,_.u);_.t=Y4.prototype;
_.t.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"}}}};
_.t.handleLiveChatAction=function(a){_.A(a,jZ_)?this.handleMarkChatItemAsDeletedAction(_.A(a,jZ_)):_.A(a,n$H)&&this.handleRemoveChatItemAction(_.A(a,n$H))};
_.t.handleLiveChatActions=function(a){a.forEach(this.handleLiveChatAction,this)};
_.t.handleMarkChatItemAsDeletedAction=function(a){var W=this,w;((w=this.data)==null?0:w.items)&&this.data.items.forEach(function(Z,N){var B=Object.keys(Z)[0];Object.values(Z)[0].id===a.targetItemId&&W.markAsDeleted("data.items",N,B,a.deletedStateMessage,a.showOriginalContentMessage)})};
_.t.handleRemoveChatItemAction=function(a){var W=this,w;((w=this.data)==null?0:w.items)&&this.data.items.forEach(function(Z,N){Object.values(Z)[0].id===a.targetItemId&&W.splice("data.items",N,1)})};
_.t.markAsDeleted=function(a,W,w,Z,N){a=[a,W,w].join(".");this.set(a+".deletedStateMessage",Z);this.set(a+".showOriginalContentMessage",N)};
_.f([_.b(),_.z("design:type",Object)],Y4.prototype,"data",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Y4.prototype,"ytActionHandlerBehavior",void 0);Y4=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Y4);
_.D(Y4,"yt-live-chat-item-display-list-renderer",function(){if(r0R===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;pOy===void 0&&(pOy=document.createElement("template"));var Z=pOy;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);r0R=a}a=r0R;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var dc6;var mcT,Vty=function(){if(mcT!==void 0)return mcT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;dc6===void 0&&(dc6=document.createElement("template"));var Z=dc6;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return mcT=a};var Td=function(){var a=_.u.apply(this,arguments)||this;a.isHeader=!1;return a};
_.c(Td,_.u);Td.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.dU.Object.defineProperties(Td,{template:{configurable:!0,enumerable:!0,get:function(){return Vty()}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Td.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Td.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Td.prototype,"isHeader",void 0);Td=_.f([_.TD({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Td);_.D(Td,"yt-live-chat-item-display-renderer",function(){return Vty()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var zdV,H$$,wgH,Wul;
zdV={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}};H$$={home:"eohps",search:"eosps",watch:"eowps"};_.y0$=["watch","search","home"];
_.Kg=function(){this.JSC$12054_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12054_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.LF("PRECONSTRUCTION_DELAY",0);this.signals_=_.F4();this.targetPage_=""};
_.Kg.prototype.init=function(a,W){a=a===void 0?"":a;W=W===void 0?null:W;if(this.JSC$12054_isInitialized_)this.abort();else if(this.JSC$12054_isInitialized_=!0,a&&_.EGe(this,a),W){var w=_.MJ(this.signals_,"pcl")?0:10,Z=function(){for(var N=0,B;B=_.y0$[N++];)B!=a&&B!=W&&this.pendingPages_.push(B);_.aOE(this)}.bind(this);
this.signals_.parkOrScheduleJob(Z,w,"pcl")}};
_.Kg.prototype.abort=function(){this.fragmentJobId_&&(_.hF.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Wul(this)};
_.EGe=function(a,W){a.JSC$12054_isInitialized_&&!a.targetPage_&&(a.targetPage_=W,wgH(a,W),a.isInitialPass_=!1,wgH(a,W),a.signals_.processSignal(H$$[a.targetPage_]),Wul(a),_.aOE(a))};
_.aOE=function(a){a.pendingPages_.length&&!a.pagePreparerJobId_&&(a.pagePreparerJobId_=_.TP(_.hF,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.EGe(this,this.pendingPages_.shift())}.bind(a),a.DEFAULT_DELAY_))};
wgH=function(a,W){if(W=zdV[W])for(var w in W){var Z=!1,N=w;w.charAt(0)=="~"&&(Z=!0,N=w.substring(1));var B=W[w];B=typeof B=="object"?B:{count:B};W[w]=B;B.componentName=N;B.count>0&&(a.isInitialPass_?Z||a.isSeenDuringInitialPass_[N]||(a.JSC$12054_queue_.push({componentName:N,count:1,signals:B.signals}),a.isSeenDuringInitialPass_[N]=!0,B.count--):a.JSC$12054_queue_.push(B))}};
Wul=function(a){a.JSC$12054_queue_.length=0;a.targetPage_="";a.isInitialPass_=!0;a.signals_.processSignal("eop")};
_.Kg.getInstance=function(){return _.lV(_.Kg)};var Z1_=function(){this.signals=_.F4();this.init()};
Z1_.prototype.startPreconstruction=function(){_.Kg.getInstance().init(_.JS("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Z1_.prototype.init=function(){NYR(this);window.Polymer&&z2H&&ULI();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var a=_.NH.ytcsi;if(a&&a.gt&&(a=a.gt())&&a.tick&&(a.tick.aft>0||a.tick.pbs>0)&&(_.JS("IS_HOMEPAGE_COLD")||_.JS("IS_RESULTS_PAGE_COLD")||_.JS("IS_WATCH_PAGE_COLD"))){tlE(this);break a}KOv(Pwe,this.onNotifications,this)}};
var NYR=function(a){var W=function(){a.signals.processSignal("dl")};
document.readyState==="complete"?(_.qx(Error("sh"),"WARNING"),W()):_.aCF(window,"load",W)};
Z1_.prototype.onNotifications=function(a){a.timer||(_.JS("IS_HOMEPAGE_COLD")||_.JS("IS_RESULTS_PAGE_COLD")||_.JS("IS_WATCH_PAGE_COLD"))&&tlE(this)};
var tlE=function(a){a.signals.parkOrScheduleJob(function(){a.signals.processSignal("eocs")},10,"eor")};
new Z1_;var pg,r0=function(){return _.Nt.apply(this,arguments)||this};
_.c(r0,_.Nt);_.t=r0.prototype;_.t.enableActiveViewMeasurement=function(a){if(this.isActiveViewEnabled(a)){var W=this.getUrlPrefixesFromCommand(a.viewableCommands);a=this.getUrlPrefixesFromCommand(a.endOfSessionCommands);if(!pg){var w=_.yv("active_view_tos_timeout_ms");pg=w>0?new R1v(this.getVersion(),w):new R1v(this.getVersion())}QFS(pg,this.hostElement);xbF(pg,this.hostElement,W,a)}};
_.t.stopActiveViewMeasurement=function(){pg&&QFS(pg,this.hostElement)};
_.t.isActiveViewEnabled=function(a){return!!a&&(this.hasAtLeastOneUrl(a.viewableCommands)||this.hasAtLeastOneUrl(a.endOfSessionCommands))};
_.t.hasAtLeastOneUrl=function(a){return!!a&&a.length>0&&a[0].loggingUrls!=null&&a[0].loggingUrls.length>0};
_.t.getVersion=function(){var a=_.LF("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(a==null?void 0:a.length)===2?a[1]:null};
_.t.getUrlPrefixesFromCommand=function(a){if(!a)return[];var W=[];a=_.l(a);for(var w=a.next();!w.done;w=a.next())if(w=w.value,w.loggingUrls){w=_.l(w.loggingUrls);for(var Z=w.next();!Z.done;Z=w.next())Z=Z.value,Z.baseUrl&&W.push(Z.baseUrl)}return W};
r0=_.f([_.BA()],r0);var Ae=[r0.prototype];var he=function(){return _.Nt.apply(this,arguments)||this};
_.c(he,_.Nt);_.dU.Object.defineProperties(he.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_entity_store_from_dependency_injection")?_.FM():_.Cx()}}});
he=_.f([_.BA()],he);_.ij=[UA.prototype,he.prototype];var $fL=["ytd-rich-shelf-renderer"],cp=function(){var a=_.Nt.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};
_.c(cp,_.Nt);_.t=cp.prototype;_.t.dismissibleItemIsDismissedChanged_=function(a){_.r("kevlar_fluid_dismiss")&&(a?_.E$(this.hostElement,"yt-dismissible-item-dismissed"):_.E$(this.hostElement,"yt-dismissible-item-undismissed"))};
_.t.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.t.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 _.PZ(function(W,w){a.followUpDialogPromiseResolve=W;a.followUpDialogPromiseReject=w});
_.E$(this.hostElement,"yt-enable-lockup-interaction")};
_.t.dismissibleItemOnYtServiceRequestSent_=function(a,W){W.actions&&this.dismissibleItemProcessActions(W.actions,a)};
_.t.dismissibleItemOnRequestSent=function(a){if(_.r("web_button_rework"))for(var W=_.l(a.detail),w=W.next();!w.done;w=W.next()){var Z=void 0;(w=(Z=_.A(w.value,_.l0))==null?void 0:Z.actions)&&this.dismissibleItemProcessActions(w,a)}};
_.t.dismissibleItemOnCommandSent=function(a,W){W&&this.dismissibleItemProcessActions(W,a)};
_.t.setAndGetDismissedContentId=function(a){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+a};
_.t.replayDismissAction=function(a){this.dismissibleItemProcessActions([a])};
_.t.dismissibleItemProcessActions=function(a,W){for(var w=0;w<a.length;w++){var Z=a[w],N=void 0;((N=_.A(Z,_.$7))==null?0:N.commands)&&this.dismissibleItemProcessActions(_.A(Z,_.$7).commands,W);if(_.A(Z,_.Yc)){if(N=_.A(Z,_.Yc),!N.replaceParentSection||$fL.includes(this.hostElement.nodeName.toLowerCase()))_.r("web_see_fewer_shorts_reactive_dismissal")&&N.groupDismissal&&zd9(this,N.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(N),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.oL("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:Z})),Z=void 0,(Z=W)==null||Z.stopPropagation()}else if(_.A(Z,bo$))this.dismissibleItemHandleHideEnclosingAction_(),Z=void 0,(Z=W)==null||Z.stopPropagation();else if(_.A(Z,y96))_.r("web_see_fewer_shorts_reactive_dismissal")&&(Z=_.A(Z,y96),N=void 0,((N=Z)==null?0:N.targetGroupId)&&zd9(this,{targetGroupId:Z.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.oL("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),Z=void 0,(Z=W)==null||Z.stopPropagation();else if(_.A(Z,_.l0))(Z=_.A(Z,_.l0).actions)&&_.N1(this.hostElement,Z,this.hostElement),Z=void 0,(Z=W)==null||Z.stopPropagation();else{var B=N=void 0;((N=_.A(Z,_.Qz))==null?void 0:N.signal)!=="TELL_US_WHY"||((B=_.A(Z,_.Qz))==null?0:B.targetId)&&_.r("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),Z=void 0,(Z=W)==null||Z.stopPropagation())}}};
_.t.dismissibleItemOnYtServiceRequestCompleted_=function(a,W){var w=this.get("feedbackResponses.0.followUpDialog",W.data);w?this.followUpDialogPromiseResolve(w):W.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(W.actions,a)};
_.t.dismissibleItemHandleReplaceEnclosingAction_=function(a){this.dismissedRenderer=a.item;this.isDismissed=!0;var W=null;(W=_.M(this.hostElement).querySelector("#dismissed"))&&_.DW(this,function(){_.CJ(W)});
_.E$(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.t.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.t.dismissibleItemHandleUndoFeedbackAction_=function(){_.E$(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.t.dismissibleItemHandleTellUsWhySignalAction_=function(){var a=this;this.followUpDialogPromise.then(function(W){a.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:W}})})};
cp.prototype.dismissibleItemOnYtServiceRequestCompleted_=cp.prototype.dismissibleItemOnYtServiceRequestCompleted_;cp.prototype.dismissibleItemOnCommandSent=cp.prototype.dismissibleItemOnCommandSent;cp.prototype.dismissibleItemOnRequestSent=cp.prototype.dismissibleItemOnRequestSent;cp.prototype.dismissibleItemOnYtServiceRequestSent_=cp.prototype.dismissibleItemOnYtServiceRequestSent_;cp.prototype.dismissibleItemDataChanged_=cp.prototype.dismissibleItemDataChanged_;
cp.prototype.dismissibleItemIsDismissedChanged_=cp.prototype.dismissibleItemIsDismissedChanged_;_.f([_.R(_.xZ),_.z("design:type",Object)],cp.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],cp.prototype,"ytdReduxBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],cp.prototype,"isDismissed",void 0);_.f([_.b(),_.z("design:type",Object)],cp.prototype,"dismissedRenderer",void 0);
_.f([_.a5("isDismissed"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean]),_.z("design:returntype")],cp.prototype,"dismissibleItemIsDismissedChanged_",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cp.prototype,"dismissibleItemDataChanged_",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],cp.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.f([_.E6("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],cp.prototype,"dismissibleItemOnRequestSent",null);
_.f([_.E6("yt-dismissible-item-action"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Array]),_.z("design:returntype")],cp.prototype,"dismissibleItemOnCommandSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],cp.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);cp=_.f([_.BA()],cp);_.eN=[_.xZ,_.ij,cp.prototype];var jN=function(){var a=_.Nt.apply(this,arguments)||this;a.disableGridStateAware=!1;a.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};a.currentGridClass="";return a};
_.c(jN,_.Nt);jN.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.DW(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var a=this.gridStateAwareGetElement();_.mh(a,"grid",!0)}};
jN.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
jN.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.M(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
jN.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var a="grid-disabled";else{a=_.XdR.getInstance();var W=this.get("pageSubtype");a=W&&lvR.includes(W)?"grid-disabled":a.currentSnapState_?a.currentSnapState_.className:null}(W=this.gridStateAwareGetElement())&&a!==this.currentGridClass&&(a&&_.mh(W,a,!0),this.currentGridClass&&_.mh(W,this.currentGridClass,!1),this.currentGridClass=a)};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],jN.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",String)],jN.prototype,"gridStateAwareSizingElementSelector",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jN.prototype,"disableGridStateAware",void 0);jN=_.f([_.BA()],jN);_.Lg=[jN.prototype,_.d4.YtActionHandlerBehavior];_.Je=new _.yq("GUIDE_TOKEN");var Mv;_.FG={};Mv=function(){var a=_.Nt.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};
_.c(Mv,_.Nt);_.t=Mv.prototype;_.t.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.t.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var a=_.K().resolve(_.Vv(_.Je));a&&(this.guidePersistentAndVisible=a.getGuidePersistentAndVisible(),this.activeEndpoint=a.getActiveEndpoint(),this.guideOpened=a.getGuideOpened(),this.miniGuideVisible=a.getMiniGuideVisible())};
_.t.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.t.handleGuideStateAction=function(a){this.guidePersistentAndVisible=a};
_.t.handleMiniGuideStateAction=function(a){this.miniGuideVisible=a};
_.t.handleGuideOpenedAction=function(a){this.guideOpened=a};
_.t.handleActiveEndpointAction=function(a){this.activeEndpoint=a};
Mv.prototype.onActiveEndpointChange=Mv.prototype.onActiveEndpointChange;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Mv.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Mv.prototype,"guidePersistentAndVisible",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Mv.prototype,"miniGuideVisible",void 0);_.f([_.b(),_.z("design:type",Object)],Mv.prototype,"activeEndpoint",void 0);
_.f([_.a5("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mv.prototype,"onActiveEndpointChange",null);_.f([_.b(),_.z("design:type",Boolean)],Mv.prototype,"guideOpened",void 0);Mv=_.f([_.BA()],Mv);_.FG.YtdGuideStateAwareBehavior=[];_.FG.YtdGuideStateAwareBehavior.push(Mv.prototype,_.d4.YtActionHandlerBehavior);var BYy=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],R3=function(){var a=_.Nt.apply(this,arguments)||this;a.hoverJobId=0;a.JSC$12085_touched=!1;return a};
_.c(R3,_.Nt);_.t=R3.prototype;_.t.created=function(){this.useExpandableTooltip=!BYy.includes(this.is)};
_.t.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.t.detached=function(){this.useExpandableTooltip=!1};
_.t.lockupOnDown=function(a){this.interactionElement&&!_.b5(_.qj(a),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.t.lockupOnUp=function(a){this.interactionElement&&!_.b5(_.qj(a),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.t.onTouchStart=function(){this.JSC$12085_touched=!0};
_.t.lockupOnMouseEnter=function(){var a=this,W=_.yv("kevlar_lockup_hover_delay",-1);this.JSC$12085_touched&&W>=0?(_.hF.cancelJob(this.hoverJobId),this.hoverJobId=_.hF.addJob(function(){a.lockupIsHovered=!0},8,W),this.JSC$12085_touched=!1):this.lockupIsHovered=!0};
_.t.lockupOnMouseLeave=function(){this.hoverJobId&&(_.hF.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.t.lockupOnPopupClosed=function(a,W){var w;((w=W.popupRenderer)==null?void 0:w.is)==="ytd-menu-popup-renderer"&&(a=W.popupRenderer.veData,W=_.nS(),a&&W&&_.x7(W,[a]))};
_.t.lockupOnLockupRequested=function(a){var W=a.detail.videoIds[0],w;a.detail&&W===((w=this.data)==null?void 0:w.videoId)&&(a.detail.returnValue=[this.data])};
_.t.lockupOnYtServiceRequestSent=function(a,W){if(a=W.actions)for(var w=0;w<a.length;w++){var Z=a[w];if(Z.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&W.ajaxPromise){var N=void 0,B=(N=_.A(W.endpoint,_.nz))==null?void 0:N.playlistId;N=void 0;Z=(N=Z.removedVideoId)!=null?N:"";FRy(_.qJ(),Z,B)}else Z.action==="ACTION_REMOVE_VIDEO"&&W.ajaxPromise&&(B=void 0,Z=(B=Z.setVideoId)!=null?B:"",_.Md_(_.qJ(),Z))}};
_.t.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.t.lockupOnLockupEnabled=function(){if(!this.$){var a=_.K().resolve(_.Gw).getCurrentPage(),W=this.getParentRenderer?this.getParentRenderer():void 0;_.jJ(new _.Uw("component not ready",this.is,this.isAttached,a==null?void 0:a.is,W==null?void 0:W.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
R3.prototype.lockupOnLockupEnabled=R3.prototype.lockupOnLockupEnabled;R3.prototype.lockupOnLockupDisabled=R3.prototype.lockupOnLockupDisabled;R3.prototype.lockupOnYtServiceRequestSent=R3.prototype.lockupOnYtServiceRequestSent;R3.prototype.lockupOnLockupRequested=R3.prototype.lockupOnLockupRequested;R3.prototype.lockupOnPopupClosed=R3.prototype.lockupOnPopupClosed;R3.prototype.lockupOnMouseLeave=R3.prototype.lockupOnMouseLeave;R3.prototype.lockupOnMouseEnter=R3.prototype.lockupOnMouseEnter;
R3.prototype.onTouchStart=R3.prototype.onTouchStart;R3.prototype.lockupOnUp=R3.prototype.lockupOnUp;R3.prototype.lockupOnDown=R3.prototype.lockupOnDown;_.f([_.b(),_.z("design:type",Object)],R3.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],R3.prototype,"lockupIsHovered",void 0);_.f([_.b(),_.z("design:type",Boolean)],R3.prototype,"lockupTouchTriggered",void 0);_.f([_.b(),_.z("design:type",Boolean)],R3.prototype,"useExpandableTooltip",void 0);
_.f([_.w$("#interaction"),_.z("design:type",Object)],R3.prototype,"interactionElement",void 0);_.f([_.E6("down"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],R3.prototype,"lockupOnDown",null);_.f([_.E6("up"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],R3.prototype,"lockupOnUp",null);
_.f([_.E6("touchstart"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R3.prototype,"onTouchStart",null);_.f([_.E6("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R3.prototype,"lockupOnMouseEnter",null);_.f([_.E6("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R3.prototype,"lockupOnMouseLeave",null);
_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],R3.prototype,"lockupOnPopupClosed",null);_.f([_.E6("yt-lockup-requested"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],R3.prototype,"lockupOnLockupRequested",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],R3.prototype,"lockupOnYtServiceRequestSent",null);_.f([_.E6("yt-disable-lockup-interaction"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R3.prototype,"lockupOnLockupDisabled",null);
_.f([_.E6("yt-enable-lockup-interaction"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R3.prototype,"lockupOnLockupEnabled",null);R3=_.f([_.BA()],R3);_.qv=[R3.prototype];_.lOH={YtdReduxBehavior:[]};_.lOH.YtdReduxBehavior.push.apply(_.lOH.YtdReduxBehavior,_.ij);var Qs=function(){var a=_.Nt.apply(this,arguments)||this;a._noAccessors=!0;a.disableNowPlaying=!1;a.disableTooltips=!1;a.useHoveredProperty=!1;a.hovered=!1;a.isThumbnailHovered_=!1;a.addBackground=_.r("kevlar_thumbnail_bg");a.nowPlaying=!1;a.disableRounding=!1;a.size="small";return a};
_.c(Qs,_.Nt);_.t=Qs.prototype;_.t.computeThumbnailOverlaySidePanelWidth_=function(a,W){return a-W};
_.t.computeSize=function(a,W){if(!this.disableRounding){if(!a&&!W)return"small";a=Math.max(a||0,W||0);return a>=256?"large":a>=96?"medium":"small"}};
_.t.computeFinalHoveredState_=function(a,W,w){return this.nowPlaying?!1:_.r("kevlar_thumbnail_fluid")&&a?W:w};
_.t.computeHoverOverlays_=function(a,W){return a&&W?W:void 0};
_.t.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.t.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.t.checkMiniplayer_=function(){var a;if(((a=this.data)==null?0:a.playlistSetVideoId)&&_.r("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{a=_.vE();var W=a.currentEndpoint;!this.disableNowPlaying&&W&&_.A(W,_.u6)&&this.data?(W=_.A(W,_.u6),this.nowPlaying=this.data.playlistId?W.playlistId===this.data.playlistId:W.videoId===this.data.videoId,this.isVideoPlaying=a==null?void 0:a.isVideoPlaying):this.nowPlaying=!1}};
Qs.prototype.checkMiniplayer_=Qs.prototype.checkMiniplayer_;Qs.prototype.onMouseLeave_=Qs.prototype.onMouseLeave_;Qs.prototype.onMouseEnter_=Qs.prototype.onMouseEnter_;Qs.prototype.computeHoverOverlays_=Qs.prototype.computeHoverOverlays_;Qs.prototype.computeFinalHoveredState_=Qs.prototype.computeFinalHoveredState_;Qs.prototype.computeSize=Qs.prototype.computeSize;Qs.prototype.computeThumbnailOverlaySidePanelWidth_=Qs.prototype.computeThumbnailOverlaySidePanelWidth_;
_.f([_.R(_.ij),_.z("design:type",Object)],Qs.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Qs.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Number)],Qs.prototype,"height",void 0);_.f([_.b(),_.z("design:type",Boolean)],Qs.prototype,"bottomSidePanel",void 0);_.f([_.b(),_.z("design:type",Number)],Qs.prototype,"width",void 0);_.f([_.b(),_.z("design:type",Object)],Qs.prototype,"disableNowPlaying",void 0);
_.f([_.b({selector:_.hG}),_.z("design:type",Boolean)],Qs.prototype,"miniplayerIsActive",void 0);_.f([_.b(),_.z("design:type",Object)],Qs.prototype,"disableTooltips",void 0);_.f([_.b(),_.z("design:type",Object)],Qs.prototype,"useHoveredProperty",void 0);_.f([_.b(),_.z("design:type",Object)],Qs.prototype,"hovered",void 0);_.f([_.b(),_.z("design:type",Object)],Qs.prototype,"isThumbnailHovered_",void 0);
_.f([_.b({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.z("design:type",Boolean)],Qs.prototype,"finalHoveredState_",void 0);_.f([_.b({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.z("design:type",Number)],Qs.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qs.prototype,"addBackground",void 0);
_.f([_.b({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.z("design:type",Object)],Qs.prototype,"hoverOverlays_",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qs.prototype,"nowPlaying",void 0);_.f([_.b(),_.z("design:type",Boolean)],Qs.prototype,"isVideoPlaying",void 0);_.f([_.b(),_.z("design:type",Object)],Qs.prototype,"disableRounding",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.z("design:type",Object)],Qs.prototype,"size",void 0);_.f([_.E6("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qs.prototype,"onMouseEnter_",null);_.f([_.E6("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qs.prototype,"onMouseLeave_",null);
_.f([_.a5("data","disableNowPlaying","miniplayerIsActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qs.prototype,"checkMiniplayer_",null);Qs=_.f([_.BA()],Qs);var IOR=[Qs.prototype];_.x4={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(a,W){return a+":"+_.lA(W)},
getPlayerListener_:function(a,W,w){a=this.getPlayerListenerKey_(a,W);W=this.playerListeners_.get(a);w&&this.playerListeners_.delete(a);return W},
savePlayerListener_:function(a,W){var w=W.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(a,W),w);return w},
listenToPlayerEvent:function(a,W,w){w=this.savePlayerListener_(W,w);a.addEventListener(W,w)},
listenToPlayerEvents:function(a,W){W.forEach(function(w,Z){this.listenToPlayerEvent(a,Z,w)}.bind(this))},
unlistenFromPlayerEvent:function(a,W,w){w=this.getPlayerListener_(W,w,!0);a.removeEventListener(W,w)},
unlistenFromPlayerEvents:function(a,W){W.forEach(function(w,Z){this.unlistenFromPlayerEvent(a,Z,w)}.bind(this))}}};
_.bj=function(){};_.P7R=new _.yq("PLAYER_API_TOKEN");var Wuv=!1,tlD,Z1F=!1,BYH;var V6=function(a,W,w,Z,N){_.OW.call(this);var B=this;this.playerId=W;this.webPlayerContextConfig=Z;this.j6j=N;this.nPc=!1;this.api={};this.dDN=this.a5y=null;this.imy=new _.I0;this.pW={};this.kXP=this.hTy=this.elementId=this.tCK=this.config=null;this.jmM=!1;this.x8=this.yW5=null;this.uNN={};this.hRb=["onReady"];this.lastError=null;this.okr=NaN;this.bKP={};this.iU8=0;this.yh=this.targetElement=a;_.$3(this,this.imy);Xg$(this);w?this.iU8=setTimeout(function(){B.loadNewVideoConfig(w)},0):Z&&(v5y(this),
g5$(this))};
_.c(V6,_.OW);V6.prototype.getId=function(){return this.playerId};
V6.prototype.loadNewVideoConfig=function(a){if(!this.isDisposed()){this.iU8&&(clearTimeout(this.iU8),this.iU8=0);var W=a||{};W instanceof GRe||(W=new GRe(W));this.config=W;this.setConfig(a);g5$(this);this.isReady()&&o5R(this)}};
var v5y=function(a){var W;a.webPlayerContextConfig?W=a.webPlayerContextConfig.rootElementId:W=a.config.attrs.id;a.elementId=W||a.elementId;a.elementId==="video-player"&&(a.elementId=a.playerId,a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId=a.playerId:a.config.attrs.id=a.playerId);var w;((w=a.yh)==null?void 0:w.id)===a.elementId&&(a.elementId+="-player",a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId=a.elementId:a.config.attrs.id=a.elementId)};
V6.prototype.setConfig=function(a){this.tCK=a;this.config=krl(a);v5y(this);if(!this.hTy){var W;this.hTy=Ufl(this,((W=this.config.args)==null?void 0:W.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var w;if((w=this.config)==null?0:w.attrs)a=this.config.attrs,(W=a.width)&&this.yh&&(this.yh.style.width=qS(Number(W)||W,!0)),(a=a.height)&&this.yh&&(this.yh.style.height=qS(Number(a)||a,!0))};
var o5R=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 W;a.api.loadVideoByPlayerVars((W=a.config.args)!=null?W:null)}else a.api.cueVideoByPlayerVars(a.config.args)},S2h=function(a){var W=!0,w=a.getPlayerElement();
w&&a.config&&(W=w.dataset.version===O1L(a));return W&&!!_.RT("yt.player.Application.create")},g5$=function(a){if(!a.isDisposed()&&!a.jmM){var W=S2h(a);
if(W&&(a.getPlayerElement()?"html5":null)==="html5")a.kXP="html5",a.isReady()||Y2J(a);else if(TYL(a),a.kXP="html5",W&&a.x8&&a.targetElement)a.targetElement.appendChild(a.x8),Y2J(a);else{a.config&&(a.config.loaded=!0);var w=!1;a.yW5=function(){w=!0;var Z=Ku_(a,"player_bootstrap_method")?_.RT("yt.player.Application.createAlternate")||_.RT("yt.player.Application.create"):_.RT("yt.player.Application.create");var N=a.config?krl(a.config):void 0;Z&&Z(a.targetElement,N,a.webPlayerContextConfig,a.j6j);Y2J(a)};
a.jmM=!0;W?a.yW5():(_.MM(O1L(a),a.yW5),(W=pge(a))&&jZF(W||""),rP$(a)&&!w&&_.Dp("yt.player.Application.create",null))}}};
V6.prototype.getPlayerElement=function(){var a=_.md(document,this.elementId);!a&&this.yh&&this.yh.querySelector&&(a=this.yh.querySelector("#"+this.elementId));return a};
var Y2J=function(a){if(!a.isDisposed()){var W=a.getPlayerElement(),w=!1;W&&W.getApiInterface&&W.getApiInterface()&&(w=!0);if(w){a.jmM=!1;if(!Ku_(a,"html5_remove_not_servable_check_killswitch")){var Z;if((W==null?0:W.isNotServable)&&a.config&&(W==null?0:W.isNotServable((Z=a.config.args)==null?void 0:Z.video_id)))return}APR(a)}else a.okr=setTimeout(function(){Y2J(a)},50)}},APR=function(a){Xg$(a);
a.nPc=!0;var W=a.getPlayerElement();if(W){a.a5y=hLl(a,W,"addEventListener");a.dDN=hLl(a,W,"removeEventListener");var w=W.getApiInterface();w=w.concat(W.getInternalApiInterface());for(var Z=a.api,N=0;N<w.length;N++){var B=w[N];Z[B]||(Z[B]=hLl(a,W,B))}}for(var I in a.pW)a.pW.hasOwnProperty(I)&&a.a5y&&a.a5y(I,a.pW[I]);o5R(a);a.hTy&&a.hTy(a.api);a.imy.publish("onReady",a.api)},hLl=function(a,W,w){var Z=W[w];
return function(){var N=_.TH.apply(0,arguments);try{return a.lastError=null,Z.apply(W,N)}catch(B){if(w!=="sendAbandonmentPing")throw B.params=w,a.lastError=B,N=new _.Uw("PlayerProxy error in method call",{error:B,method:w,playerId:a.playerId}),N.level="WARNING",N;}}},Xg$=function(a){a.nPc=!1;
if(a.dDN)for(var W in a.pW)a.pW.hasOwnProperty(W)&&a.dDN(W,a.pW[W]);for(var w in a.bKP)a.bKP.hasOwnProperty(w)&&clearTimeout(Number(w));a.bKP={};a.a5y=null;a.dDN=null;W=a.api;for(var Z in W)W.hasOwnProperty(Z)&&(W[Z]=null);W.addEventListener=function(N,B){a.addEventListener(N,B)};
W.removeEventListener=function(N,B){a.removeEventListener(N,B)};
W.destroy=function(){a.dispose()};
W.getLastError=function(){return a.getLastError()};
W.getPlayerType=function(){return a.getPlayerType()};
W.getCurrentVideoConfig=function(){return a.tCK};
W.loadNewVideoConfig=function(N){a.loadNewVideoConfig(N)};
W.isReady=function(){return a.isReady()}};
V6.prototype.isReady=function(){return this.nPc};
V6.prototype.addEventListener=function(a,W){var w=this;this.isDisposed();var Z=Ufl(this,W);Z&&(_.f7(this.hRb,a)||this.pW[a]||(W=i1L(this,a),this.a5y&&this.a5y(a,W)),this.imy.subscribe(a,Z),a==="onReady"&&this.isReady()&&setTimeout(function(){Z(w.api)},0))};
V6.prototype.removeEventListener=function(a,W){this.isDisposed()||(W=Ufl(this,W))&&this.imy.unsubscribe(a,W)};
var Ufl=function(a,W){var w=W;if(typeof W==="string"){if(a.uNN[W])return a.uNN[W];w=function(){var Z=_.TH.apply(0,arguments),N=_.RT(W);if(N)try{N.apply(_.NH,Z)}catch(B){throw Z=new _.Uw("PlayerProxy error when executing callback",{error:B}),Z.level="ERROR",Z;}};
a.uNN[W]=w}return w?w:null},i1L=function(a,W){var w=function(Z){var N=function(){a.isDisposed();
if(!a.isDisposed())try{a.imy.publish(W,Z!=null?Z:void 0)}catch(X){var I=new _.Uw("PlayerProxy error when creating global callback",{error:X.message,event:W,playerId:a.playerId,data:Z,originalStack:X.stack,componentStack:X.componentStack});I.level="WARNING";throw I;}};
if(Ku_(a,"web_player_publish_events_immediately"))N();else{var B=setTimeout(function(){N();_.T5.remove(a.bKP,String(B))},0);
_.T5.add(a.bKP,String(B),!0)}};
return a.pW[W]=w};
V6.prototype.getPlayerType=function(){return this.kXP||(this.getPlayerElement()?"html5":null)};
V6.prototype.getLastError=function(){return this.lastError};
var TYL=function(a){a.cancel();Xg$(a);a.kXP=null;a.config&&(a.config.loaded=!1);var W=a.getPlayerElement();W&&(S2h(a)||!rP$(a)?a.x8=W:(W&&W.destroy&&W.destroy(),a.x8=null));a.targetElement&&_.nI(a.targetElement)};
V6.prototype.cancel=function(){this.yW5&&_.tSI(O1L(this),this.yW5);clearTimeout(this.okr);this.jmM=!1};
V6.prototype.disposeInternal=function(){TYL(this);if(this.x8&&this.config&&this.x8.destroy)try{this.x8.destroy()}catch(W){var a=new _.Uw("PlayerProxy error during disposal",{error:W});a.level="ERROR";throw a;}this.uNN=null;for(a in this.pW)this.pW.hasOwnProperty(a)&&delete this.pW[a];this.tCK=this.config=this.api=null;delete this.targetElement;delete this.yh;_.OW.prototype.disposeInternal.call(this)};
var rP$=function(a){var W,w;a=(W=a.config)==null?void 0:(w=W.args)==null?void 0:w.fflags;return!!a&&a.indexOf("player_destroy_old_version=true")!==-1},O1L=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:(a=a.config.assets)?a.js:""},pge=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.cssUrl:(a=a.config.assets)?a.css:""},Ku_=function(a,W){if(a.webPlayerContextConfig)var w=a.webPlayerContextConfig.serializedExperimentFlags;
else{var Z;if((Z=a.config)==null?0:Z.args)w=a.config.args.fflags}return(w||"").split("&").includes(W+"=true")},krl=function(a){for(var W={},w=_.l(Object.keys(a)),Z=w.next();!Z.done;Z=w.next()){Z=Z.value;
var N=a[Z];W[Z]=typeof N==="object"?_.T5.clone(N):N}return W};var v5H={},Xgx="player_uid_"+(Math.random()*1E9>>>0);var sD=function(a,W,w,Z,N,B){W=W===void 0?document.createElement("div"):W;this.webPlayerContextConfig=a;this.container=W;this.commandResolver=w;this.apiResolver=krv();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.wi;Z||B?cPh(this):eL$(this);this.pendingPlayerResponse=Z;this.pendingWatchNextResponse=N;this.pendingPlayerVars=B;n5_(this)};
sD.prototype.loadVideoWithPlayerResponse=function(a,W,w){this.loadVideo(a,W,w)};
sD.prototype.loadVideoWithPlayerVars=function(a){return this.loadVideo(void 0,void 0,a)};
sD.prototype.destroy=function(a){if(a=_.md(document,a))a=Xgx+"_"+_.lA(a),(a=v5H[a])&&a.dispose()};
var LuE=function(a,W){var w;_.P(function(Z){if(Z.nextAddress==1)return a.pendingWatchNextResponse=W,a.synchronousApi?(w=a.synchronousApi,Z.jumpTo(2)):_.g(Z,a.api,3);Z.nextAddress!=2&&(w=Z.yieldResult);jBL(a,w);a.pendingWatchNextResponse&&(w.updateVideoData({raw_watch_next_response:a.pendingWatchNextResponse}),a.pendingWatchNextResponse=void 0);_.Xd(Z)})},jBL=function(a,W){var w;
if(!(W==null?0:(w=W.isReady)==null?0:w.call(W))){var Z;a=new _.Uw("playerApi is falsey",{synchronousApi:a.synchronousApi,apiResolved:a.apiResolver.resolved,playerApiUndefined:W===void 0,playerApiNull:W===null,playerApiReady:(W==null?void 0:(Z=W.isReady)==null?void 0:Z.call(W))===!0,playerApiMethods:W?Object.keys(W):[]});_.eJ(a)}},JPH=function(a,W){if(typeof a[W]==="function")return a[W]()},FuH=function(a){var W=window,w,Z=(w=W.ytplayer)==null?void 0:w.bootstrapPlayerContainer;
if((w=Z==null?void 0:Z.firstElementChild)&&_.sl(w,"html5-video-player")){var N,B,I=(N=W.ytplayer)==null?void 0:(B=N.bootstrapWebPlayerContextConfig)==null?void 0:B.contextId;N=a.webPlayerContextConfig.contextId;if(I&&I===N){Z!==a.container&&(Z=!1,JPH(w,"getPlayerState")===2&&(Z=!0),a.container.appendChild(w),Z||JPH(w,"playVideo"));var X;if((X=W.ytplayer)==null?0:X.bootstrapPlayerResponse)a.bootstrapPlayerResponse=W.ytplayer.bootstrapPlayerResponse}}},n5_=function(a){var W,w,Z,N,B;
_.P(function(I){if(I.nextAddress==1)return a.pageReadyOrDataAvailable?I.jumpTo(2):_.g(I,a.pageReadyOrDataAvailableResolver.promise,2);if(I.nextAddress!=4)return!_.r("kevlar_player_unified_player_loading")||wge()&&NYI()?I.jumpTo(4):_.g(I,IOS(),4);FuH(a);if(a.pendingPlayerResponse||a.pendingPlayerVars)W=P7S(a.pendingPlayerResponse,a.pendingWatchNextResponse,a.pendingPlayerVars),a.pendingPlayerResponse&&a.pendingPlayerResponse===a.bootstrapPlayerResponse&&(W.loaded=!0),a.bootstrapPlayerResponse=void 0;
w=o5S(a.container,W,a.webPlayerContextConfig);((Z=W)==null?0:Z.loaded)&&a.pendingWatchNextResponse?(LuE(a,a.pendingWatchNextResponse),a.pendingPlayerResponse=void 0,a.pendingPlayerVars=void 0):Ml$(a);N=function(X){w.removeEventListener("onReady",N);a.synchronousApi=X;a.apiResolver.resolve(X)};
w.addEventListener("onReady",N);a.commandResolver!==void 0&&(B=a.commandResolver,w.addEventListener("innertubeCommand",function(X){B(X)}));
_.Xd(I)})};
sD.prototype.loadVideo=function(a,W,w){var Z=this,N,B,I,X,v,U,O,S,T;return _.P(function(p){if(p.nextAddress==1)return Z.pendingPlayerResponse=a,Z.pendingWatchNextResponse=W,Z.pendingPlayerVars=w,cPh(Z),Z.synchronousApi?(N=Z.synchronousApi,p.jumpTo(2)):_.g(p,Z.api,3);p.nextAddress!=2&&(N=p.yieldResult);jBL(Z,N);I=new Promise(function(h){B=h});
X=function(){var h=N.getPlayerResponse();h&&(N.removeEventListener("onVideoDataChange",X),B(h))};
N.addEventListener("onVideoDataChange",X);if(Z.pendingPlayerResponse||Z.pendingPlayerVars)Z.pendingPlayerResponse&&Z.pendingPlayerResponse===Z.bootstrapPlayerResponse?(B(Z.pendingPlayerResponse),Z.pendingWatchNextResponse&&LuE(Z,Z.pendingWatchNextResponse)):(v=P7S(Z.pendingPlayerResponse,Z.pendingWatchNextResponse,Z.pendingPlayerVars),(T=(U=Z.pendingPlayerResponse)==null?void 0:(O=U.playerConfig)==null?void 0:(S=O.playbackStartConfig)==null?void 0:S.startPaused)?N.cueVideoByPlayerVars(v.args):N.loadVideoByPlayerVars(v.args)),
Ml$(Z),Z.bootstrapPlayerResponse=void 0;return p.return(I)})};
var eL$=function(a){if(document.readyState==="complete"||document.readyState==="interactive")cPh(a);else{var W=function(){document.removeEventListener("DOMContentLoaded",W);cPh(a)};
document.addEventListener("DOMContentLoaded",W)}},cPh=function(a){a.pageReadyOrDataAvailable=!0;
a.pageReadyOrDataAvailableResolver.resolve()},Ml$=function(a){a.pendingPlayerResponse=void 0;
a.pendingWatchNextResponse=void 0;a.pendingPlayerVars=void 0};
_.dU.Object.defineProperties(sD.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var uj=function(a){ji.call(this,a===void 0?"document_active":a);var W=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(w){W.transition("document_disposed",{event:w})});
window.addEventListener("beforeunload",function(w){W.transition("document_disposed_preventable",{event:w})});
window.addEventListener("unload",function(w){W.transition("document_disposed",{event:w});W.hasRun=new Map})};
_.c(uj,ji);
uj.prototype.runPreventableDispose=function(a,W){if(!this.hasRun.get("document_disposed_preventable")){a(W==null?void 0:W.event);var w,Z;if((W==null?0:(w=W.event)==null?0:w.defaultPrevented)||(W==null?0:(Z=W.event)==null?0:Z.returnValue)){W.event.returnValue||(W.event.returnValue=!0);W.event.defaultPrevented||W.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")};
uj.prototype.runDispose=function(a,W){this.hasRun.get("document_disposed")?this.transition("document_active"):(a(W==null?void 0:W.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
uj.prototype.runFlush=function(a,W){a(W==null?void 0:W.event);this.transition("document_active")};
uj.prototype.runActive=function(){};var Cg=function(a){ji.call(this,a===void 0?"document_visibility_unknown":a);var W=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(w){document.visibilityState==="visible"?W.transition("document_visible",{event:w}):W.transition("document_hidden",
{event:w})});
_.r("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(w){W.transition("document_backgrounded",{event:w})}),window.addEventListener("focus",function(w){W.transition("document_foregrounded",{event:w})}))};
_.c(Cg,ji);Cg.prototype.runVisible=function(a,W){a(W==null?void 0:W.event);_.r("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Cg.prototype.runHidden=function(a,W){a(W==null?void 0:W.event);_.r("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Cg.prototype.runBackgrounded=function(a,W){a(W==null?void 0:W.event)};
Cg.prototype.runForegrounded=function(a,W){a(W==null?void 0:W.event)};var Gd=function(){this.teardownLifecycle=new uj;this.visibilityLifecycle=new Cg};
Gd.prototype.install=function(){var a=_.TH.apply(0,arguments),W=this;a.forEach(function(w){W.teardownLifecycle.install(w)});
a.forEach(function(w){W.visibilityLifecycle.install(w)})};var DH=function(){Gd.call(this);var a={};this.install((a.document_disposed={callback:this.abortSlisAndFlush},a));_.r("combine_ve_grafts")&&(a={},this.install((a.document_disposed={callback:this.flushInteractionLoggingAttachVes},a)));a={};this.install((a.flush_logs={callback:this.logFinalPayload},a));_.r("web_log_cfg_cee_ks")||_.TP(_.hF,RL6)};
_.c(DH,Gd);var Ufv=function(){DH.loggingInstance||(DH.loggingInstance=new DH);return DH.loggingInstance};
DH.prototype.logFinalPayload=function(){if(_.r("web_fp_via_jspb")){var a=new AfJ,W=_.nS();W&&_.Xu(a,1,W);W=_.r("jspb_sparse_encoded_pivot")?new Yj([{}]):new Yj;_.N_(W,380,h3_,a);H9C("finalPayload",W);_.r("web_fp_via_jspb_and_json")&&_.ia("finalPayload",{csn:_.nS()})}else _.ia("finalPayload",{csn:_.nS()})};
DH.prototype.abortSlisAndFlush=function(){cbl(xc);bH!=null&&bH.flush()};
DH.prototype.flushInteractionLoggingAttachVes=function(){mv_(_.$J())};
var RL6=function(){var a=_.LF("CLIENT_EXPERIMENT_EVENTS");if(a){var W=xHe();a=_.l(a);for(var w=a.next();!w.done;w=a.next())w=w.value,W(w)&&_.ia("genericClientExperimentEvent",{eventType:w});delete _.nF.CLIENT_EXPERIMENT_EVENTS}};var q2e={};
q2e.YtPlayerBehavior=[_.x4.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 _.wi;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;O1m(function(){a.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.nM(this,"pan-down"),_.r("kevlar_pinch_fullscreen")&&_.tb().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.r("kevlar_pinch_fullscreen")&&_.tb().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(a,W,w){var Z=this;zw(this.useUnifiedPlayer_());if(this.mainAppPlayer_)zw(!1,"MainAppPlayer already created.");else{var N=_.r("kevlar_player_container_query_killswitch")?this.$.container:_.M(this.hostElement).querySelector("#container");this.mainAppPlayer_=new sD(this.getWebPlayerContextConfig_(),N,function(B){return _.wJ(B,Z.hostElement)},a,W,w);
this.mainAppPlayer_.api.then(function(B){Z.player_=B;Z.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&dQl.resolve(B)})}},
loadVideoWithPlayerResponse:function(a,W){var w=this;if(this.useUnifiedPlayer_()){var Z=this.watchNextData,N,B=(N=a.videoDetails)==null?void 0:N.videoId,I,X,v;(N=(I=this.watchNextData)==null?void 0:(X=I.currentVideoEndpoint)==null?void 0:(v=X.watchEndpoint)==null?void 0:v.videoId)&&B!=N&&(Z=void 0,_.r("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(a,Z,W):this.createMainAppPlayer_(a,Z,W);this.mainAppPlayer_.api.then(function(){_.E$(w.hostElement,
"yt-player-updated")})}else this.update(y0x(a,W))},
loadVideoWithPlayerVars:function(a){var W=this;this.useUnifiedPlayer_()?(_.r("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(){_.E$(W.hostElement,"yt-player-updated")})):this.update({args:a})},
update:function(a){var W=this;if(this.useUnifiedPlayer_())zw(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(a);var w=o$9(a.args);w&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==w&&Object.assign(a.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(a).then(function(Z){_.E$(W.hostElement,"yt-player-updated",_.r("kevlar_player_updated_obsolete_player_killswitch")?
Z:void 0)})}_.nH(new _.Uw("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,W.getPlayerPromise(),2);w=Z.yieldResult;if(!w)throw Error("uh");a&&W.updatePlayerPlaylist_(a);_.Xd(Z)})},
acquireApi_:function(a){var W=this;if(this.useUnifiedPlayer_())zw(!1,"Invalid method call in kevlar_unified_player.");else return _.hF.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(zw(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(w){W.shouldAutoplay_(a)?w.loadVideoByPlayerVars(a.args):w.cueVideoByPlayerVars(a.args)})):this.initPlayerPromise_=this.initPlayerContainer_(a),this.initPlayerPromise_},
initPlayerContainer_:function(a){var W=this;if(this.useUnifiedPlayer_())zw(!1,"Invalid method call in kevlar_unified_player.");else return zw(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.jJ(Error("vh")),zw(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.r("kevlar_player_container_query_killswitch")?this.$.container:_.M(this.hostElement).querySelector("#container"),IOS().then(function(){var w=W.initPlayer_(a);W.playerResolver_.resolve(w);
return w})},
onPlayerReady_:function(a,W){this.useUnifiedPlayer_()?zw(!1,"Invalid method call in kevlar_unified_player."):(a.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&dQl.resolve(a),W(a))},
maybeCallApiMethodOnElement_:function(a,W){if(typeof a[W]==="function")return a[W]()},
maybeAdoptBootstrapPlayer_:function(){var a=window,W,w=(W=a.ytplayer)==null?void 0:W.bootstrapPlayerContainer;if((W=w==null?void 0:w.firstElementChild)&&W.classList.contains("html5-video-player")){var Z,N,B=(Z=a.ytplayer)==null?void 0:(N=Z.bootstrapWebPlayerContextConfig)==null?void 0:N.contextId;Z=this.getWebPlayerContextConfig_().contextId;if(B&&B===Z){w!==this.playerContainer_&&(w=!1,this.maybeCallApiMethodOnElement_(W,"getPlayerState")===2&&(w=!0),this.playerContainer_.appendChild(W),w||this.maybeCallApiMethodOnElement_(W,
"playVideo"));var I;if((I=a.ytplayer)==null?0:I.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=a.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(a){var W=this;if(this.useUnifiedPlayer_())zw(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(w){W.maybeAdoptBootstrapPlayer_();var Z=a?EGC(a):void 0;Z&&Z==W.bootstrapPlayerResponse_&&(a.loaded=!0);Z=W.playerContainer_;var N=W.getWebPlayerContextConfig_();Z=o5S(Z,a,N);W.player_=Z;W.onPlayerReadyEvent_=W.onPlayerReady_.bind(W,W.player_,w);W.player_.addEventListener("onReady",W.onPlayerReadyEvent_);W.player_.addEventListener("innertubeCommand",
W.onPlayerInnerTubeCommand_.bind(W))})},
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=_.K().resolve(_.Gw).getCurrentPage();a&&a.getScrollTop()<=0?_.nM(this,"pan-down"):_.nM(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 W=this,w,Z,N;return _.P(function(B){if(B.nextAddress==1)return w=_.K().resolve(_.Vv(_.LB)),Z=!!(w&&w.playlistComponent&&w.playlistComponent.loopOn),_.g(B,W.getPlayerPromise(),2);var I=N=B.yieldResult,X=I.updatePlaylist,v=[];if(_.r("kevlar_player_playlist_use_local_index")){var U,O;var S=(O=(U=a.localCurrentIndex)!=null?U:a.currentIndex)!=null?O:0}else{var T;S=(T=a.currentIndex)!=null?T:0}if(a.contents)for(U=0;U<a.contents.length;U++)if((O=a.contents[U])&&O.playlistPanelVideoRenderer)if(B49(O)){O=
O.playlistPanelVideoRenderer;T="";O.shortBylineText&&(T=_.sd(O.shortBylineText));var p="";O.title?p=_.sd(O.title):O.unplayableText&&(p=_.sd(O.unplayableText));v.push({author:T,title:p,encrypted_id:O.videoId})}else U<S&&--S;X.call(I,{index:S,list:a.playlistId?a.playlistId:"",loop:Z,playlist_title:a.title,playlist_length:v.length,video:v,fetch:0,external_list:"1",title:a.title?a.title:"",playlist_author:a.ownerName?_.sd(a.ownerName):void 0});_.Xd(B)})},
focusOnPlayer:function(){_.DW(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var a=this.playerContainer_.querySelector(".html5-video-player");a&&(_.fg(_.K().resolve(_.Y_)),a.focus())}})},
preparePlayer:function(){var a=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(W){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")W();else{var w=function(){document.removeEventListener("DOMContentLoaded",w);W()};
document.addEventListener("DOMContentLoaded",w)}})).then(function(){return IOS()}).then(function(){a.initPlayerPromise_||a.preparePlayerJobId_||(a.preparePlayerJobId_=_.TP(_.hF,function(){a.initPlayerPromise_||(a.initPlayerPromise_=a.initPlayerContainer_())}))}):_.nH(new _.Uw("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(a){this.useUnifiedPlayer_()?zw(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(a)||(a.args.autoplay="0")},
shouldAutoplay_:function(a){if(this.useUnifiedPlayer_())zw(!1,"Invalid method call in kevlar_unified_player.");else{var W=this.get("args.el",a);return W&&W!="detailpage"&&this.isMiniplayerActive_()||W&&(W=="sponsorshipsoffer"||W=="handlesclaiming")&&this.get("args.autoplay",a)=="0"?!1:(a=EGC(a))&&this.get("playerConfig.playbackStartConfig.startPaused",a)?!1:!0}},
isMiniplayerActive_:function(){return _.K().resolve(_.bV).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var a=this.getPlayer();if(a){var W=a.getPlayerState();_.r("kevlar_player_check_ad_state_on_stop")&&(W=a.getPlayerState(a.getPresentingPlayerType()));W!=5&&a.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(a,W,w){w=w===void 0?!1:w;var Z=this,N,B,I,X;return _.P(function(v){if(v.nextAddress==1)return W||(W=Z.hostElement),N=Z.useUnifiedPlayer_()?!!Z.mainAppPlayer_:!!Z.initPlayerPromise_,N?_.g(v,Z.getPlayerPromise(),2):(w?a.insertBefore(W,a.firstChild):a.appendChild(W),v.return());B=v.yieldResult;I=B.getPlayerState(B.getPresentingPlayerType());X=!1;if(I==-1||I==1||I==3)X=!0;w?a.insertBefore(W,a.firstChild):a.appendChild(W);X&&B.playVideo();B.setSize(NaN,NaN);_.Xd(v)})},
watchNextDataChanged_:function(a){var W=this;a&&(this.useUnifiedPlayer_()&&_.r("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&LuE(this.mainAppPlayer_,a):this.getPlayerPromise().then(function(w){w.updateVideoData(W.computeWatchNextPlayerVars_(a))}))},
computeWatchNextPlayerVars_:function(a){if(this.useUnifiedPlayer_()&&_.r("kevlar_unified_player_update_watch_next_killswitch"))zw(!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=_.LF("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(a=Object.assign({},a),a.rootElementId=this.playerId);a.serializedExperimentIds&&a.serializedExperimentFlags||_.jJ(Error("wh"));return a},
hasWebPlayerContextConfig_:function(){return!!_.LF("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(a){this.useUnifiedPlayer_()?zw(!1,"Invalid method call in kevlar_unified_player."):_.wJ(a,this.hostElement)},
useUnifiedPlayer_:function(){var a=_.r("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.r("kevlar_unified_player")||a}}];var QBT={};QBT.YtPlaylistPanelBehavior=[_.E.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 W=a.playlistButtons.menuRenderer.topLevelButtons,w=W.length,Z=0;Z<w;Z++)if(W[Z].toggleButtonRenderer){var N=W[Z].toggleButtonRenderer;N.defaultIcon.iconType=="LOOP"&&this.loopOn?N.isToggled=this.loopOn:N.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(N.isToggled=this.shuffleOn)}return a.playlistButtons}}];var xfJ=function(a){WG.call(this,a,132);this.isDocument=a===document.documentElement};
_.c(xfJ,WG);xfJ.prototype.calculateScrollDelta=function(a,W,w){var Z=0;a<W?Z=a<W-100?-48:-8:a>W+w&&(Z=a>W+w+100?48:8);return Z};
xfJ.prototype.JSC$9207_onMouseMove=function(a){this.isDocument||(a.clientX=a.event_.pageX,a.clientY=a.event_.pageY);WG.prototype.JSC$9207_onMouseMove.call(this,a)};var d0=function(){var a=_.Nt.apply(this,arguments)||this;a._noAccessors=!0;a.scrollElement=document.documentElement;a.JSC$12144_dragListGroup=null;a.dragScrollSupport=null;a.onDraggerCreated=function(W){var w=W.JSC$9203_dragger;w.scrollTarget_=a.scrollElement;W=W.draggerEl;w&&W.menuOpened&&w.setEnabled(!1)};
a.onDragStart=function(W){var w=W.draggerEl;W=W.currDragItem;var Z=Object.assign({},W==null?void 0:W.data);Z.trackingParams=void 0;w.data=Z;w.style.position="absolute";w.style.width=(W==null?void 0:W.clientWidth)+"px";w.style.zIndex="2030";w.onDrag&&w.onDrag();_.r("web_owner_document_fallback_killswitch")?(W=document.querySelector("ytd-app"))&&_.M(W).appendChild(w):(W=_.hv(w),(Z=W.querySelector("ytd-app"))?_.M(Z).appendChild(w):W.body.appendChild(w));a.dragScrollSupport=new xfJ(a.scrollElement);a.dragScrollSupport.horizontalScrolling_=
!1;w=a.dragScrollSupport;w.constrainScroll_=!!w.margin_&&!1};
a.onDrop=function(W){a.handleDrop(W);a.dragScrollSupport&&(_.d3(a.dragScrollSupport),a.dragScrollSupport=null)};
a.onReorderableScroll=function(){if(a.JSC$12144_dragListGroup){var W=a.JSC$12144_dragListGroup;S6V(W,W.currDragItem_)}};
return a};
_.c(d0,_.Nt);d0.prototype.detached=function(){_.b1h(this)};
_.b1h=function(a){a.JSC$12144_dragListGroup&&(_.YO(a.JSC$12144_dragListGroup,I3T,a.onDragStart),_.YO(a.JSC$12144_dragListGroup,go$,a.onDragStart),a.JSC$12144_dragListGroup.dispose(),a.JSC$12144_dragListGroup=null);a.dragScrollSupport&&(_.d3(a.dragScrollSupport),a.dragScrollSupport=null);a.scrollElement.removeEventListener("scroll",a.onReorderableScroll)};
_.sBA=function(a,W,w,Z){Z=Z===void 0?"":Z;_.b1h(a);w&&(a.scrollElement=w);a.JSC$12144_dragListGroup=new qD;a.JSC$12144_dragListGroup.hysteresisDistance_=2;kXl(a.JSC$12144_dragListGroup,W);a.JSC$12144_dragListGroup.draggerElClasses_=kI("dragging").split(" ");Z&&UjR(a.JSC$12144_dragListGroup,function(N){var B=N||document,I=null;B.getElementsByClassName?I=B.getElementsByClassName(Z)[0]:I=BfR("*",Z,N);return I||N});
_.vX(a.JSC$12144_dragListGroup,BiT,a.onDraggerCreated);_.vX(a.JSC$12144_dragListGroup,I3T,a.onDragStart);_.vX(a.JSC$12144_dragListGroup,go$,a.onDrop);a.JSC$12144_dragListGroup.init();a.scrollElement.addEventListener("scroll",a.onReorderableScroll,{passive:!0})};
d0.prototype.handleDrop=function(){};
_.dU.Object.defineProperties(d0.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.f([_.b({value:100}),_.z("design:type",Number)],d0.prototype,"scrollMargin",void 0);d0=_.f([_.BA()],d0);_.u56=[d0.prototype];_.m7={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(a,W,w){var Z=this.getClickTarget_(W);if(Z&&this.isClickAllowed_(Z)){W.preventDefault();a=(0,_.T5.unsafeClone)(a);var N=this.getContainerBoundingRect();W=this.getRelativeClickXy_(W,N);this.expandEndpointUrlMacros_(a,{NX:W[0],NY:W[1],NB:Z.code});w&&this.truncateWebCommendMetadataUrl_(a);_.E$(this.hostElement,"yt-navigate",{endpoint:a})}},
getClickTarget_:function(a){if(!this.clickTargetMap)return null;a=_.qj(a)||[];a=_.l(a);for(var W=a.next();!W.done;W=a.next()){W=W.value;if(W===_.M(this.hostElement).querySelector("#menu"))break;if(W=this.clickTargetMap.get(W.id))return W}return null},
getRelativeClickXy_:function(a,W){var w=a.detail.x,Z=a.detail.y;_.r("use_on_click_for_desktop_display_ad")&&a.clientX!=null&&a.clientY!=null&&(w=a.clientX,Z=a.clientY);a=Math.round(w-W.left);W=Math.round(Z-W.top);return a<0||W<0?[null,null]:[a,W]},
getContainerBoundingRect:function(){return _.M(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(a,W){for(var w=_.l(a.loggingUrls||[]),Z=w.next();!Z.done;Z=w.next())Z=Z.value,Z.baseUrl&&(Z.baseUrl=KY(Z.baseUrl,W));a.urlEndpoint&&a.urlEndpoint.url&&(a.urlEndpoint.url=KY(a.urlEndpoint.url,W));a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url&&(a.commandMetadata.webCommandMetadata.url=KY(a.commandMetadata.webCommandMetadata.url,W))},
truncateWebCommendMetadataUrl_:function(a){if(a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url){var W=a.commandMetadata.webCommandMetadata.url,w=W.indexOf("&pp=");if(w>0){var Z=W.indexOf("&",w+1);a.commandMetadata.webCommandMetadata.url=Z>w&&Z<W.length?W.slice(0,w)+W.slice(Z):W.slice(0,w)}}},
configureClickTargets:function(a,W,w){this.containerId=a;this.clickTargetMap=new Map;a=_.l(W);for(W=a.next();!W.done;W=a.next())if(W=W.value,W.location){var Z=w.get(W.location);Z&&(_.mh(_.M(this.hostElement).querySelector("#"+Z),"yt-simple-endpoint",this.isClickAllowed_(W)),this.clickTargetMap.set(Z,W))}},
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"}}};_.Vs={};
_.Vs.YtLazyListBehavior=[_.ui.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&&(HRT(a,4),a.processSignal())},
deepLazyListObserver_:function(a){var W=this;if(a){var w=a.value||[];if(this.itemsPath==a.path){var Z=this.nonDeferredItemCount;a=0;Z>-1&&w.length>Z&&(a=_.LF("REMAINING_DOVA_DEFERRED_CHUNKS",-1));a>0?(Z>0&&(Z=w.slice(0,Z),this.setInitialItemsOnDataChanged(Z)),(Z=this.renderElementsOutsideVisibleArea_)?Z.cancel():(Z=this.renderElementsOutsideVisibleArea_=new _.GR(2,"eocs"),_.aCF(window,"scroll",function(){return W.renderDeferredElements()})),_.Dh(Z,function(){W.setInitialItemsOnDataChanged(w)}),_.jm("REMAINING_DOVA_DEFERRED_CHUNKS",
a-1)):this.setInitialItemsOnDataChanged(w)}else if(this.itemsPath+".splices"==a.path)this.onItemsUpdated_(w);
else Z="shownItems"+a.path.substr(this.itemsPath.length),this.useSignals&&Z==="shownItems.length"||this.notifyPath(Z,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 W=0,w=a.length;W<w;W++){var Z=a[W];if(Z.index<this.shownCount&&(Z.removed&&this.splice("shownItems",Z.index,Z.removed.length),Z.addedCount)){var N=Z.object.slice(Z.index,Z.index+Z.addedCount);Z=["shownItems",Z.index,0];Z.push.apply(Z,N);this.splice.apply(this,Z)}}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&&(_.JS("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.DW(this,this.tryRenderChunk_)))},
fillRange_:function(a,W){this.canShowMore&&this.items_&&(a=this.items_.slice(a,W),a.unshift("shownItems"),this.push.apply(this,a),this.shownCount=W,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var a=this;this.canShowMore&&_.eK(this,"renderChunk",function(){a.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.JS("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.OB(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?(_.CQC(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):a&&this.partiallyRenderedItems_.has(this.items_)&&(_.r("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var ys;_.zd={};
ys=function(){var a=_.Nt.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$12155_onWheelScroll=function(W){if(a.isSearch&&
!a.disableWheelScroll&&_.r("desktop_enable_dmpanel_wheel_scroll")){var w=W.shiftKey?Math.abs(W.deltaY)>Math.abs(W.deltaX)?W.deltaY:W.deltaX:W.deltaX;w!==0&&(W.preventDefault(),a.ytLazyListBehavior.fillRemainingListItems(),a.offset+=w,Hp(a),a.reposition_())}};
a.onPointerDown=function(W){C7H(a)&&(a.dragMouseStart=W.clientX,a.dragOffsetStart=a.offset,a.dragging=!0)};
a.onPointerMove=function(W){C7H(a)&&a.dragging&&(a.ytLazyListBehavior.fillRemainingListItems(),a.offset=a.dragOffsetStart-(W.clientX-a.dragMouseStart),Hp(a),a.reposition_())};
a.onPointerUp=function(){C7H(a)&&(a.dragging=!1)};
return a};
_.c(ys,_.Nt);var GrE=function(a){var W=_.M(a.hostElement).querySelector("#items").children;if(!W)return 0;var w=0;a=_.l(a.fullyVisibleItemsIndices);for(var Z=a.next();!Z.done;Z=a.next())w+=W[Z.value].clientWidth;return w},C7H=function(a){return a.isSearch&&_.r("desktop_enable_dmpanel_click_drag_scroll")};
ys.prototype.created=function(){this.cachedViewportWidth=_.LF("initialInnerWidth")||window.innerWidth;this.JSC$12155_cachedViewportHeight=_.LF("initialInnerHeight")||window.innerHeight;_.LF("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.jm("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
ys.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.r("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();DfJ(this)};
ys.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.r("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var a;(a=this.itemsVisibilityObserver)==null||a.disconnect();this.itemsVisibilityObserver=null;var W;(W=this.itemsObserver)==null||W.disconnect()};
var DfJ=function(a){var W=_.M(a.hostElement).querySelector("#scroll-container");if(W){if(!a.itemsVisibilityObserver){var w=window.getComputedStyle(W).marginRight;a.itemsVisibilityObserver=new IntersectionObserver(function(Z){fOR(a,Z)},{root:W,
rootMargin:w,threshold:.98})}if(W=_.M(a.hostElement).querySelector("#items"))a.itemsObserver=new zOR(W,function(Z){dfR(a,Z)})}},dfR=function(a,W){mfJ(a)&&(Array.from(W.addedNodes).filter(function(w){return w.nodeType===Node.ELEMENT_NODE}).forEach(function(w){a.itemsVisibilityObserver&&a.itemsVisibilityObserver.observe(w)}),Array.from(W.removedNodes).filter(function(w){return w.nodeType===Node.ELEMENT_NODE}).forEach(function(w){a.itemsVisibilityObserver&&a.itemsVisibilityObserver.unobserve(w)}))},
fOR=function(a,W){var w=new Set(a.fullyVisibleItemsIndices);
W=_.l(W);for(var Z=W.next();!Z.done;Z=W.next()){Z=Z.value;var N=Z.target.parentElement;N?(N=Array.from(N.children).indexOf(Z.target),Z.isIntersecting?w.add(N):w.has(N)&&w.delete(N)):_.jJ(new _.Uw("Parent element not found",Z.target.nodeName))}a.fullyVisibleItemsIndices=Array.from(w).sort(function(B,I){return B-I});
w.size===0?_.jJ(new _.Uw("No visible entries in horizontal list")):(a.startIndex=a.fullyVisibleItemsIndices[0],a.endIndex=a.fullyVisibleItemsIndices[a.fullyVisibleItemsIndices.length-1])},mfJ=function(a){a.data?a=(a=a.data)&&a.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===a.itemSizeConstraint:!1:a=!1;
return a};
_.t=ys.prototype;_.t.addScrollEventListeners=function(){var a=_.M(this.hostElement).querySelector("#scroll-container");a.style.touchAction="pan-y";a.addEventListener("wheel",this.JSC$12155_onWheelScroll);a.addEventListener("pointerdown",this.onPointerDown);a.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.t.removeScrollEventListeners=function(){var a=_.M(this.hostElement).querySelector("#scroll-container");a.removeEventListener("wheel",this.JSC$12155_onWheelScroll);a.removeEventListener("pointerdown",this.onPointerDown);a.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.t.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.DW(this,this.setStartIndex,[this.initialStartIndex])};
_.t.reposition_=function(){var a=_.LF("HTML_DIR")=="rtl"?"":"-",W=_.M(this.hostElement).querySelector("#items");W&&(W.style.transform="translateX("+a+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.t.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.DW(this,this.setButtonsState_))};
_.t.setButtonsState_=function(){this.setButtonsStateRequested=!1;var a=_.M(this.hostElement).querySelector("#items").firstElementChild;if(a){this.minComponentWidth||(this.minComponentWidth=VlV(this,a));a=_.M(this.hostElement).querySelector("#scroll-container").clientWidth;var W=_.M(this.hostElement).querySelector("#items").clientWidth,w=this.get(this.ytLazyListBehavior.itemsPath,this);if(w){var Z=Math.round(a/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+Z,w.length)-1)}this.ytLazyListBehavior.canShowMore?W+this.minComponentWidth>=this.offset+a&&(this.atEnd=!1):this.atEnd=this.offset+a>=W-20?!0:!1;this.atStart=this.offset<=20}};
_.t.setStartIndex=function(a){if(!this.minComponentWidth){var W=_.M(this.hostElement).querySelector("#items").firstElementChild;if(!W)return;this.minComponentWidth=VlV(this,W)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*a;Hp(this);this.reposition_()};
_.t.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Pn();var a=_.M(this.hostElement).querySelector("#scroll-container").clientWidth;_.r("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=VlV(this,_.M(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&&zLl(this);this.offset+=mfJ(this)?
GrE(this):a*this.minComponentWidth;Hp(this);this.reposition_();this.scrollCount++};
_.t.prevClick_=function(){var a=_.M(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=mfJ(this)?GrE(this):this.minComponentWidth*this.scrollCount-1):this.offset-=mfJ(this)?GrE(this):a*this.minComponentWidth;this.centerListItems&&zLl(this);Hp(this);this.reposition_()};
_.t.onIronResize_=function(){this.resizeSupportEnabled&&_.DW(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.t.onItemsTransitionEnd_=function(a){_.QV(a)===_.M(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.t.onChildElementFocus_=function(a){a=a.target.closest("#items > *");var W=_.M(this.hostElement).querySelector("#scroll-container");if(W.contains(a)){if(_.r("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+W.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Pn(),this.offset=a.offsetLeft+a.clientWidth-W.clientWidth;else return;else{var w=_.M(this.hostElement).querySelector("#items"),
Z=_.LF("HTML_DIR")==="rtl",N=Z?w.clientWidth-a.offsetLeft:a.offsetLeft;w=Z?w.clientWidth-(a.offsetLeft+a.clientWidth):a.offsetLeft+a.clientWidth;var B=Z?N>this.offset+W.clientWidth:N<this.offset,I=Z?w<this.offset:w>this.offset+W.clientWidth,X=Z?B:I;if(Z?I:B)W=Z?w:N,this.offset=Math.abs(W)<a.clientWidth?0:W;else if(X)this.ytLazyListBehavior.fillRemainingListItems(),_.Pn(),this.offset=(Z?N:w)-W.clientWidth;else return}Hp(this);this.reposition_()}};
_.t.observeShownItems_=function(){this.reset()};
_.t.checkComponentWidthResize=function(){var a=_.M(this.hostElement).querySelector("#items").firstElementChild;a&&(a=VlV(this,a),this.centerListItems||a!==this.minComponentWidth)&&(this.minComponentWidth=a,this.offset=a*this.scrollCount,this.centerListItems&&zLl(this),Hp(this),this.reposition_())};
var VlV=function(a,W){var w=window.getComputedStyle(W).marginRight;w=Math.floor(Number(w.replace("px","")));var Z=window.getComputedStyle(W).marginLeft;Z=Math.floor(Number(Z.replace("px","")));a.centerListItems&&!a.marginWidthRight&&(a.marginWidthRight=w,a.marginWidthLeft=Z);return a.resizeSupportEnabled?W.getBoundingClientRect().width+w:W.offsetWidth+w},Hp=function(a){var W=_.M(a.hostElement).querySelector("#scroll-container").clientWidth,w=_.M(a.hostElement).querySelector("#items").clientWidth;
a.offset<0?a.offset=0:a.offset+W>=w&&(a.offset=w-W)},zLl=function(a){a.offset-=(_.M(a.hostElement).querySelector("#scroll-container").clientWidth+a.marginWidthRight-a.minComponentWidth)/2-a.marginWidthLeft};
_.dU.Object.defineProperties(ys.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var a=_.LF("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(a==-1)a=this.JSC$12155_cachedViewportHeight,a=a>1320?5:a>1020?4:a>730?3:a>430?2:1;else if(a==0)return 0;_.jm("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",a-1);a=_.LF("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;_.jm("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
a);return a},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.r("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
ys.prototype.observeShownItems_=ys.prototype.observeShownItems_;ys.prototype.onChildElementFocus_=ys.prototype.onChildElementFocus_;ys.prototype.onItemsTransitionEnd_=ys.prototype.onItemsTransitionEnd_;ys.prototype.onIronResize_=ys.prototype.onIronResize_;ys.prototype.prevClick_=ys.prototype.prevClick_;ys.prototype.nextClick_=ys.prototype.nextClick_;ys.prototype.setButtonsState_=ys.prototype.setButtonsState_;ys.prototype.requestButtonsStateUpdate_=ys.prototype.requestButtonsStateUpdate_;
ys.prototype.reposition_=ys.prototype.reposition_;ys.prototype.reset=ys.prototype.reset;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.Vs.YtLazyListBehavior),_.z("design:type",Object)],ys.prototype,"ytLazyListBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ys.prototype,"atStart",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ys.prototype,"atEnd",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"startIndex",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"endIndex",void 0);_.f([_.b({value:6}),_.z("design:type",Number)],ys.prototype,"initialCount",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"scrollCount",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"initialStartIndex",void 0);
_.f([_.b(),_.z("design:type",Object)],ys.prototype,"disableScrollEventListener",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"supportComponentResize",void 0);_.f([_.b({value:function(){var a=this;return function(){return a.prevClick_()}}}),
_.z("design:type",Function)],ys.prototype,"boundPrevClick",void 0);_.f([_.b({value:function(){var a=this;return function(){return a.nextClick_()}}}),
_.z("design:type",Function)],ys.prototype,"boundNextClick",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"useFloorScrolling",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"isSearch",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"dragging",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"dragMouseStart",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"dragOffsetStart",void 0);
_.f([_.b(),_.z("design:type",Object)],ys.prototype,"disableWheelScroll",void 0);_.f([_.b(),_.z("design:type",Object)],ys.prototype,"centerListItems",void 0);_.f([_.E6("iron-resize"),_.a5("guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ys.prototype,"onIronResize_",null);_.f([_.E6("transitionend"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ys.prototype,"onItemsTransitionEnd_",null);
_.f([_.E6("focusin"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ys.prototype,"onChildElementFocus_",null);_.f([_.a5("shownItems"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ys.prototype,"observeShownItems_",null);ys=_.f([_.BA()],ys);_.zd.YtdHorizontalListBehavior=[];_.zd.YtdHorizontalListBehavior.push(_.eG,_.E.YtRendererBehavior,_.Vs.YtLazyListBehavior,_.FG.YtdGuideStateAwareBehavior,ys.prototype);var Y2U=["APP_STATE","PI"];var H1e=_.ma(["about:blank"]),yP_={pushState:window.history.pushState,replaceState:window.history.replaceState};var ED=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)};
ED.prototype.init=function(){this.initialized=!0};
ED.prototype.pushState=function(a,W){this.initialized||this.init();this.internalPushState&&this.internalPushState(a,"",W)};
ED.prototype.replaceState=function(a,W){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(a,"",W)};
ED.prototype.getState=function(){return this.history&&this.history.state};var E5V=function(a){var W=function(){var w=a.apply(this,arguments)||this;w.boundHistoryPushState=!1;w.boundHistoryReplaceState=!1;w.debugInfo={};return w};
_.c(W,a);W.prototype.init=function(){var w=_.PM("IFRAME");_.nv(w,_.ya(H1e));w.sandbox="allow-same-origin";w.style.display="none";this.iframe=w;document.body.appendChild(w);this.bindHistoryStateFunctions();a.prototype.init.call(this)};
W.prototype.bindHistoryStateFunctions=function(){var w=this,Z=[],N;this.iframe&&((N=this.iframe.contentWindow)==null?0:N.history)&&(N=this.iframe.contentWindow.history)&&(Z.push(N),Object.getPrototypeOf(N)&&Z.push(Object.getPrototypeOf(N)));window.history&&Z.push(window.history);N=window.history;Object.getPrototypeOf(N)&&Z.push(Object.getPrototypeOf(N));Z.push(yP_);N=function(I){for(var X=null,v=0;v<Z.length;v++){var U=Z[v][I];if(typeof U==="function"){X=U.bind(window.history);w.debugInfo[I]=v;break}}return X};
if(!this.boundHistoryReplaceState){var B=N("replaceState");B&&(this.internalReplaceState=B,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(N=N("pushState"))&&(this.internalPushState=N,this.boundHistoryPushState=!0)};
return W}(ED),ae$=function(){return E5V.call(this,window.history)||this};
_.c(ae$,E5V);ae$.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var a4=function(a){this.browserHistory=a;this.initialized=!1};
a4.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
a4.prototype.pushState=function(a,W){this.initialized||this.init();this.browserHistory.pushState(a,W)};
a4.prototype.replaceState=function(a,W){this.initialized||this.init();this.browserHistory.replaceState(a,W)};
a4.prototype.handlePopstate=function(a){return a.state};_.WwE=function(a,W,w,Z,N){this.endpoint=a;this.forward=W;this.historyEntry=w;this.JSC$26402_savedComponentState=Z;this.legacyBorder=N===void 0?!1:N};var wjH=function(a,W){this.rootData=a;this.scrollTop=W};var iV=new _.yq("PAGE_REQUEST_TOKEN"),pdR=new _.yq("FETCH_PBJ_TOKEN");_.W3=new _.yq("EPHEMERAL_STORE_TOKEN");_.wy=function(a){this.data=Object.assign({},a);var W;(W=this.data.innertubeResponse)==null||delete W.frameworkUpdates};
_.wy.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.mG)()};
_.PN=function(a){return Object.assign({},a.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var ZeR=function(){this.maxSize=100;this.timeToDataCache=new Map};
ZeR.prototype.get=function(a){var W=this.timeToDataCache.get(a);W&&(this.timeToDataCache.delete(a),this.timeToDataCache.set(a,W));if(W&&W.rootData&&(_.r("web_use_response_store_for_history_cache")||_.r("mweb_use_new_history_manager"))){var w=_.K().resolve(_.W3),Z=Nr$(W),N=!!Z;if(Z){if(Z.content){var B=Zq(w,Z.content);N&&B?W.rootData.response=_.PN(B):N=!1}Z.player&&(B=Zq(w,Z.player),N&&B?W.rootData.playerResponse=_.PN(B):N=!1);Z.reelSequence&&(w=Zq(w,Z.reelSequence),N&&w?W.rootData.reelWatchSequenceResponse=
_.PN(w):N=!1)}N||(this.timeToDataCache.delete(a),W=void 0)}return W};
ZeR.prototype.set=function(a,W){if(W.rootData&&(_.r("web_use_response_store_for_history_cache")||_.r("mweb_use_new_history_manager"))){var w=Nr$(W),Z=Object.assign({},W.rootData);w&&(w.content&&W.rootData.response&&(tuE(this,w.content,W.rootData.response),Z.response=null),w.player&&W.rootData.playerResponse&&(tuE(this,w.player,W.rootData.playerResponse),Z.playerResponse=null),w.reelSequence&&W.rootData.reelWatchSequenceResponse&&(tuE(this,w.reelSequence,W.rootData.reelWatchSequenceResponse),Z.reelWatchSequenceResponse=
null));W=new wjH(Z,W.scrollTop)}this.timeToDataCache.has(a)?this.timeToDataCache.delete(a):this.timeToDataCache.size>=this.maxSize&&(w=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(w.value));this.maxSize!==0&&this.timeToDataCache.set(a,W)};
ZeR.prototype.clear=function(){this.timeToDataCache.clear()};
var Nr$=function(a){var W=_.K().resolve(_.Vv(iV)),w;if((w=a.rootData)==null?0:w.endpoint)return W==null?void 0:uOI(W,a.rootData.endpoint);var Z;_.jJ(new _.Uw("History snapshot response data does not contain endpoint",(Z=a.rootData)==null?void 0:Z.url));return null},tuE=function(a,W,w){if(a.maxSize>0){var Z;
(a=(Z=w.responseContext)==null?void 0:Z.maxAgeSeconds)&&Number(a)>0&&(Z=_.K().resolve(_.W3),w=Eb(w,a),Z.put(W,new _.wy(w)))}};var $8A=function(a,W,w){this.endpoint=W;this.JSC$26407_savedComponentState=w===void 0?null:w;this.entryTime=a};var hLv=1;var NQ=function(a){var W=function(){var w=a.apply(this,[].concat(_.K8(_.TH.apply(0,arguments))))||this;w.historyEntryTime=0;w.historySnapshotCache=w.createHistoryCache();return w};
_.c(W,a);W.prototype.createHistoryCache=function(){return new ZeR};
W.prototype.saveAndReplace=function(w,Z,N){var B=window.location.href;var I=I===void 0?{}:I;var X=(X=this.browserHistory.getState())&&X.entryTime?X.entryTime:i1m();w=this.createNewHistoryEntry(w,I,X);this.saveSnapshot(X,Z,N);this.replaceState(w,B||window.location.href)};
W.prototype.saveAndPush=function(w,Z,N,B,I){I=I===void 0?{}:I;this.saveSnapshot(this.historyEntryTime,N,B);N=this.historySnapshotCache;B=this.historyEntryTime;var X=N.timeToDataCache.keys();X=_.l(X);for(var v=X.next();!v.done;v=X.next())v=v.value,v>B&&N.timeToDataCache.delete(v);Z=this.createNewHistoryEntry(Z,I);this.pushState(Z,w)};
W.prototype.saveSnapshot=function(w,Z,N){this.historySnapshotCache.set(w,new wjH(Z,N))};
W.prototype.createNewHistoryEntry=function(w,Z,N){N=N===void 0?i1m():N;return new $8A(N,w,Z)};
W.prototype.handlePopstate=function(w){var Z=a.prototype.handlePopstate.call(this,w),N=null,B=null,I=!1,X=null;Z&&Z.entryTime&&(X=this.historySnapshotCache.get(Z.entryTime)||null,I=Z.entryTime>this.historyEntryTime,this.historyEntryTime=Z.entryTime,N=Z.endpoint,B=Z.JSC$26407_savedComponentState);this.handleHistoryCacheLoad(new _.WwE(N,I,X,B),w);return Z};
W.prototype.pushState=function(w,Z){Number(w==null?void 0:w.entryTime)>=0&&(this.historyEntryTime=w.entryTime);a.prototype.pushState.call(this,w,Z)};
W.prototype.replaceState=function(w,Z){Number(w==null?void 0:w.entryTime)>=0&&(this.historyEntryTime=w.entryTime);a.prototype.replaceState.call(this,w,Z)};
W.prototype.handleHistoryCacheLoad=function(){};
return W}(a4),Br$=function(){var a=NQ.call(this,new ae$)||this;
a.dispatchElement=null;a.entryIndex=0;return a};
_.c(Br$,NQ);_.t=Br$.prototype;_.t.init=function(a){a=a===void 0?!0:a;NQ.prototype.init.call(this);this.initialized||(a||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.t.handlePopstate=function(a){var W=null;a.state||(W="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return NQ.prototype.handlePopstate.call(this,a);var w=new CustomEvent("yt-history-pop",{cancelable:!0});_.aV(this.dispatchElement,"yt-history-pop",[w,{errorMsg:W}]);_.W_(this.dispatchElement,"yt-close-all-popups-action");if(!w.defaultPrevented){w=_.K().resolve(_.Gw);W=w.getCurrentData();var Z=w.getCurrentPage();w=0;Z?(Z=_.aV(this.dispatchElement,"yt-get-page-offset",
[Z]),Z.length>0&&(w=Z[0])):_.jJ(new _.Uw("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:W?W.page:"undefined"}));W&&(W.csn=_.nS());this.saveSnapshot(this.historyEntryTime,W,w)}return NQ.prototype.handlePopstate.call(this,a)};
_.t.handleHistoryCacheLoad=function(a,W){a.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.l(_.W_(this.dispatchElement,"yt-history-will-navigate",[W])).next().value||_.aV(this.dispatchElement,"yt-history-load",[W,a]))};
_.t.pushState=function(a,W){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var w=new _.Uw("history.pushState is not a function",this.getDebugString());_.eJ(w)}NQ.prototype.pushState.call(this,a,W)};
_.t.replaceState=function(a,W){if(!this.browserHistory.boundHistoryReplaceState){var w=new _.Uw("history.replaceState is not a function",this.getDebugString());_.eJ(w)}NQ.prototype.replaceState.call(this,a,W)};
_.t.saveAndPush=function(a,W,w,Z,N){N=N===void 0?{}:N;w&&(w.csn=_.nS());NQ.prototype.saveAndPush.call(this,a,W,w,Z,N)};
_.t.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(",")};
_.t8=function(a,W){a.init(!0);var w=a.browserHistory.getState();a.replaceState(w,y6(W))};
Br$.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.$t=new _.yq("DESKTOP_HISTORY_MANAGER_TOKEN");var leJ=[10,20,30,40,50,60],B3=function(){this.currentPartitionIndex=0},IeR=function(a){qA6({mainAppWeb:_.J7(),
survivalSli:{partitionMinute:a,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},PIe=function(a){qA6({mainAppWeb:_.J7(),
survivalSli:{partitionMinute:a,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},XjA=function(a){return a.currentPartitionIndex>=0&&a.currentPartitionIndex<leJ.length?leJ[a.currentPartitionIndex]:-1},vY_=function(a){return a.currentPartitionIndex>0&&a.currentPartitionIndex-1<leJ.length?leJ[a.currentPartitionIndex-1]:-1};
B3.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var a=vY_(this);a>0&&PIe(a);a=XjA(this);a>0&&IeR(a);gYl(this)}};
var gYl=function(a){var W=XjA(a);if(W>0){var w=vY_(a);w<0&&(w=0);a.intervalId=_.hF.addJob(function(){var Z=vY_(a);Z>0&&PIe(Z);Z=XjA(a);Z>0&&IeR(Z);gYl(a)},3,(W-w)*6E4);
a.currentPartitionIndex+=1}else a.currentPartitionIndex=-1};var oYH=function(){this.skipNextNavigation=!1},k3T=function(a,W,w){if(!W)return!1;
if(a.skipNextNavigation)return a.skipNextNavigation=!1;if(_.A(w,_.ba))return!1;var Z,N,B;if((Z=_.A(w,_.I1))==null?0:(N=Z.browseEndpointContextSupportedConfigs)==null?0:(B=N.browseEndpointContextMainConfig)==null?0:B.skipConfirmation)return!1;var I;return((I=_.A(W.commandMetadata,_.mm))==null?void 0:I.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
oYH.prototype.showConfirmationDialog=function(a,W){this.navigateParams=W;this.customConfirmationCommand?_.K().resolve(_.zU).resolveCommand(this.customConfirmationCommand):(W={openPopupAction:{popup:{confirmDialogRenderer:{title:_.b8(_.P_("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.b8(_.P_("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.b8(_.P_("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.b8(_.P_("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.sn.getInstance().triggerAction("yt-open-popup-action",W,a))};
oYH.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 U8l=function(){},SZR=function(a,W,w,Z,N,B,I){w=w===void 0?{}:w;
I=I===void 0?{}:I;var X=_.W7.instance,v,U=(v=_.A(W,_.ba))==null?void 0:v.url;return U?SOI(X,U,w,window.location.href,function(O,S){Oey(a,O,S,!1,!0,w,B,Z)},function(){return!1}):C4(X,W,w,window.location.href,XK(W),function(O,S){Oey(a,O,S,!1,!0,w,B,Z)},N,I)},Oey=function(a,W,w,Z,N,B,I,X){if(!a.JSC$12213_chunkHandler)if(w.page==="watch"||w.page==="learning_journey_watch")if(N||Z){if(_.r("kevlar_continue_playback_without_player_response")){var v;
var U=(v=_.A(X,_.u6))==null?void 0:v.videoId}a.JSC$12213_chunkHandler=new NMV(_.fA,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Z,previousVideoId:U},tempData:B},I)}else a.JSC$12213_chunkHandler=new ElL(_.fA);else w.page==="shorts"&&N&&!Z?a.JSC$12213_chunkHandler=new ZfR(_.fA,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:B},I):a.JSC$12213_chunkHandler=new avl(I);a.JSC$12213_chunkHandler.processChunk({endpoint:W,data:w});return a.JSC$12213_chunkHandler.kG.promise},
YZE=function(a,W,w,Z,N){(w=_.qPy(w))&&Oey(a,W,w,!1,!0,Z,void 0,N)};var TrR=function(){this.pendingNavigationPromise=null};
_.t=TrR.prototype;_.t.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.t.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.t.addEventListener=function(){throw Error("xh");};
_.t.dispatchEvent=function(){throw Error("xh");};
_.t.removeEventListener=function(){throw Error("xh");};var KwR=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],lr=function(){_.Ti.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];pjl(this)};
_.c(lr,_.Ti);lr.prototype.verifyUser=function(){var a=pjl(this),W=a.logout;if(!a.sessionChange)return!0;this.dispatchEvent("ytsessionchange");W&&this.dispatchEvent("ytuserinvalid");return!1};
var pjl=function(a){var W=KwR.map(function(N){var B;return(B=_.XQ.get(N))!=null?B:""}),w=W.some(function(N,B){return a.sessionCookies&&a.sessionCookies[B]!==""&&N===""}),Z=W.some(function(N,B){return a.sessionCookies&&a.sessionCookies[B]!==N});
a.sessionCookies=W;return{logout:w,sessionChange:Z}};
lr.prototype.clearTimeout=function(){this.scheduledJobId&&(_.hF.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var LuD=new _.yq("POSTMESSAGE_TUNNEL_TOKEN");var eLx=["/parent_tools","/file_download","/artist_roster"],Mlx=[sC$,uxe,CeV,DH6,G8$,b7y,fDR,dH_];var rT_=new _.yq("APP_ROOT");var I4=new _.yq("NAVIGATION_CONFIRMATION_SERVICE");var ATl="/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(" "),hQA=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
P3=function(a,W){this.pendingNavigationPromise=null;this.JSC$12231_clientRoot=a;this.historyManager=W;this.logger=null;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 U8l;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};_.ua(_.sn.getInstance(),a,this.JSC$12231_clientRoot)},jRl,Lwl,JTA,FwV,nYe;
_.c(P3,TrR);P3.prototype.reload=function(){_.ih(window.location.href)};
var bfA=function(a){a.currentEndpoint&&_.A(a.currentEndpoint,_.gi)?a.reload():a.currentEndpoint&&a.navigate(a.currentEndpoint,!0,void 0,{disableCache:!0})};
P3.prototype.navigate=function(a,W,w,Z,N,B,I,X){W=W===void 0?!1:W;w=w===void 0?{}:w;Z=Z===void 0?{}:Z;var v=_.K().resolve(I4),U;if(!I&&k3T(v,(U=this.currentEndpoint)!=null?U:void 0,a))return v.showConfirmationDialog(this.JSC$12231_clientRoot.parentElement,{endpoint:a,reload:W,params:w,tempData:Z,requestType:N,createScreenConfig:B}),!1;var O=_.F4();_.MJ(O,"eocs")||O.parkOrScheduleJob(function(){O.processSignal("eocs")},10,"eor");
I=XK(a);v=Z.autonav==="1";U=_.nS();lr.instance||(lr.instance=new lr);var S=lr.instance.verifyUser(),T;if(_.r("enable_dark_theme_only_on_shorts")){var p=document.documentElement.hasAttribute("dark"),h=_.eM(!0)==="USER_INTERFACE_THEME_DARK";if(I==="shorts"){if(!p)if(_.r("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var L;_.ih((L=_.A(a==null?void 0:a.commandMetadata,_.mm))==null?void 0:L.url,void 0,void 0,window.top)}}else{var F;_.ih(_.uG((F=_.A(a==null?
void 0:a.commandMetadata,_.mm))==null?void 0:F.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.r("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!p){var x;_.ih(_.uG((x=_.A(a==null?void 0:a.commandMetadata,_.mm))==null?void 0:x.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(h!==p){var G;_.ih(_.uG((G=_.A(a==null?void 0:a.commandMetadata,_.mm))==null?void 0:G.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(I==="watch"){if(iey(_.K().resolve(_.bV),
a)&&(S||_.r("fix_miniplayer_navigation_killswitch")))return!1;_.r("block_all_player_prefetch_requests")||(T=QDJ(_.lV(_.w4),a,v))}else{var V,d=(V=_.A(this.currentEndpoint,_.u6))==null?void 0:V.videoId;d&&_.KB.getInstance().then(function(C7){C7&&C7.set("yt-miniplayer-shown-video-id",d)})}T&&(w.frags=T.missingFragments_.join(","));
L=null;var ZD;F=(ZD=_.A(a==null?void 0:a.commandMetadata,_.mm))==null?void 0:ZD.ignoreNavigation;if(!F)if(_.r("kevlar_command_url")){var aC;L=(aC=_.A(a==null?void 0:a.commandMetadata,_.mm))==null?void 0:aC.url}else L=_.sdm(a,w);if(L&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&L==this.lastNavigationUrl)return _.pD({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.U9(Ft(),"CANCELLED")}L&&(this.lastNavigationUrl=L);gZE();_.jm("IS_HOMEPAGE_COLD",
!1);_.jm("IS_RESULTS_PAGE_COLD",!1);_.jm("IS_WATCH_PAGE_COLD",!1);a.loggingUrls&&a.loggingUrls.forEach(function(C7){C7.baseUrl&&_.qE(C7.baseUrl)});
_.xfU(a,B?B.layer:0)&&_.r("kevlar_flush_logs_on_away_navigation")&&_.cZ();if(RL7(a))return!1;pk$(I,N);if(!L)return F||_.jJ(new _.Uw("Can't construct url for endpoint",a)),_.U9(Ft(),"FAILURE"),!1;_.cP8();ZD=a&&_.A(a,_.I1)&&_.A(a,_.I1).browseId.startsWith("UC");w=(aC=_.r("enable_dark_theme_only_on_shorts")&&I==="shorts"?!1:_.nC()&&document.documentElement.hasAttribute("dark")!==_.cu())?{themeRefresh:1}:{};aC&&!_.gz()&&_.eM()==="USER_INTERFACE_THEME_DARK"&&(w.theme="dark");ZD=aC||cTR(L)&&!ZD&&!_.r("kevlar_disable_url_allowlist");
S||(ZD=!0);if(ZD||_.LF("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var Bv;var Am=(Bv=window.top)==null?void 0:Bv.location.href}catch(C7){var e9;Am=(e9=C7)==null?void 0:e9.message}_.jJ(new _.Uw("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Am}))}a=_.r("kevlar_redirect_on_window_killswitch")?window.top:window;h7(L);_.ih(_.uG(L,w),void 0,void 0,a);_.U9(Ft(),"ABORTED");return!1}_.r("kevlar_early_popup_close")&&_.aV(this.JSC$12231_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12213_chunkHandler=void 0;var cv;Am=XK((cv=this.currentEndpoint)!=null?cv:void 0);(cv=I==="shorts"&&Am==="shorts")||_.oKH();_.Mx(w1U)("nr",void 0);v&&_.pD({webInfo:{navigationReason:"an"}});a.clickTrackingParams&&(Z.itct=a.clickTrackingParams,Z.csn=U);OgI(Z);Z.endpoint=JSON.stringify(a);_.r("enable_unknown_lact_fix_on_html5")&&(_.K().resolve(_.Y_),Z.lact=_.HI());_.T5.isEmpty(Z)||_.fS(L,Z);!_.r("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(B=Object.assign({},{layer:0},B,{parentLayer:3}));this.pendingNavigationPromise=B=SZR(this.pageFetcher,a,Z,this.currentEndpoint,this.JSC$12231_isNetworkPromiseStale.bind(this),B,X);B=B.then(this.handleNavigateSuccess.bind(this,B,a,T,Z),this.handleNavigateFail.bind(this,B,a));_.vE().navigationFinishPromise=B;W={endpoint:a,pageType:I,url:y6(L),reload:!!W,noProgressBar:_.r("web_disable_page_navigation_progress")||cv};N&&(W.type=N);this.fireEvent("yt-navigate-start",W);T&&
YZE(this.pageFetcher,a,T,Z,this.currentEndpoint);return!0};
P3.prototype.JSC$12231_isNetworkPromiseStale=function(a){return a!=this.pendingNavigationPromise};
var eQ_=function(a,W,w,Z,N){var B=XK(W);W={endpoint:W,pageType:B};N&&(W.errorMessage=N);_.jJ(w);W.navigationDoneMs=_.Ak("nd");W.navigationErrorReason=Z;a.fireEvent("yt-navigate-error",W)};
P3.prototype.handleNavigateFail=function(a,W,w){var Z=void 0;w instanceof _.V0&&(Z=w,xwI(w));if(this.JSC$12231_isNetworkPromiseStale(a))return _.od(Z);_.U9(Ft(),"FAILURE");eQ_(this,W,w,"101");return _.od(w)};
P3.prototype.handleNavigateSuccess=function(a,W,w,Z,N){if(this.JSC$12231_isNetworkPromiseStale(a))return _.tk();this.pendingNavigationPromise=null;if(!N)return W=new _.Uw("Missing data in response for navigation endpoint",W),_.od(W);if(N.reload)return window.location.reload(!0),_.tk();w&&(a={},_.T5.extend(a,_.qPy(w),N),N=a);var B,I;w=(B=N)==null?void 0:(I=B.timing)==null?void 0:I.responseStart;w!=null&&_.Ak("srt",w);_.Ak("pdc");var X,v;B=(X=N)==null?void 0:(v=X.timing)==null?void 0:v.info;B!=null&&
(X=_.Mx(_.$KI)(B),_.pD(X));_.U9(Ft(),"SUCCESS");nYe(this,W,N,1,Z);return _.tk()};
var cTR=function(a){var W=a;_.r("kevlar_no_redirect_to_classic_2_ks")||(W=(new _.CS(a)).getPath());if(W==="/"||W==="/red")return!1;var w=!0;ATl.forEach(function(Z){a.indexOf(Z)===0&&(w=!1)});
hQA.forEach(function(Z){var N=Z.url;_.r(Z.expFlag)&&a.indexOf(N)===0&&(w=!1)});
return w};
P3.prototype.publishPageData=function(a){this.fireEvent("yt-page-data-fetched",{pageData:a})};
jRl=function(a,W,w,Z,N,B){var I=null;W.page!=="watch"||Z?W.filler||_.aV(a.JSC$12231_clientRoot,"yt-stop-old-player",[W]):I=Oey(a.pageFetcher,N,W,w,!1,B,void 0,a.currentEndpoint);if(I)return I.then(a.publishPageData.bind(a,W));a.publishPageData(W);return _.tk()};
Lwl=function(a,W,w){var Z=null;if(!w)return Z=new _.Uw("Empty data",a.debugString,W);var N=w.response;if(!N)return Z;var B={endpointType:XK(W)||"unknown"};N.responseContext?(N=N.responseContext.errors)&&(Z=new _.Uw("Errors in response context",a.debugString,W,N,B)):Z=N.error||N.errorMetadata?new _.Uw("Errors in response",a.debugString,W,N.error,N.errorMetadata,B):new _.Uw("responseContext missing",a.debugString,W,Object.keys(N).sort().join(","),B);var I,X,v,U;if(a=w==null?void 0:(I=w.response)==null?
void 0:(X=I.responseContext)==null?void 0:(v=X.webResponseContextExtensionData)==null?void 0:(U=v.webResponseContextDebugData)==null?void 0:U.debugErrorMessages)for(I=0;I<a.length;I++);return Z};
JTA=function(a){var W,w,Z,N;return a==null?void 0:(W=a.response)==null?void 0:(w=W.responseContext)==null?void 0:(Z=w.errors)==null?void 0:(N=Z.error)==null?void 0:N["0"]};
FwV=function(a,W){var w;if(w=W.url&&!W.url.startsWith("/clip"))w=W.url,w=!_.r("webfe_parse_debug_param_in_resolveurl_service")&&a.searchDebugUrlMatcher.test(w)||CFv(w)?!0:!1;if(w)CFv(W.url)&&_.st(window.location.href).themeRefresh?(W=_.dQ(W.url,"themeRefresh"),_.t8(a.historyManager,W)):W.url&&!rPx(W.url)&&_.t8(a.historyManager,W.url);else if(W.endpoint){var Z,N,B;(w=(Z=W.endpoint)==null?void 0:(N=Z.commandMetadata)==null?void 0:(B=N.webCommandMetadata)==null?void 0:B.url)&&!rPx(w)&&_.t8(a.historyManager,
w);w&&W.url&&w!=W.url&&!W.url.match("playnext=1")&&new _.Uw("Response url mismatch in response data",a.debugString,w,W.url)}};
_.Mue=function(a,W,w,Z,N,B,I,X){B=B===void 0?!1:B;var v=_.K().resolve(I4),U;if(!X&&k3T(v,(U=a.currentEndpoint)!=null?U:void 0,W))return v.showConfirmationDialog(a.JSC$12231_clientRoot.parentElement,{endpoint:W,data:w,navigationType:Z,tempData:N,isMiniplayer:B,isForwardHistoryNavigation:I==null?void 0:I.forward}),_.tk();a.pageFetcher.JSC$12213_chunkHandler=void 0;return nYe(a,W,w,Z,N,B)};
nYe=function(a,W,w,Z,N,B){B=B===void 0?!1:B;a.isMiniplayerExpansion=B;var I=Z===2;a.currentEndpoint=W;a.numNavigations++;a.numNavigations&&(N0U.navigationCount=a.numNavigations);_.jm("NUM_NAV",a.numNavigations);var X=Lwl(a,W,w);if(X)return eQ_(a,W,X,"102",JTA(w)),_.od(X);var v,U,O,S;X=w.rootVe||(w==null?void 0:(v=w.response)==null?void 0:(U=v.responseContext)==null?void 0:(O=U.webResponseContextExtensionData)==null?void 0:(S=O.ytConfigData)==null?void 0:S.rootVisualElementType);!I&&w&&FwV(a,w);var T,
p;v=w==null?void 0:(T=w.response)==null?void 0:(p=T.responseContext)==null?void 0:p.maxAgeSeconds;if(!I&&!isNaN(v)){var h;_.r("kevlar_use_response_ttl_to_invalidate_cache")?h=(0,_.mG)()+1E3*v:_.r("kevlar_always_invalidate_cache")&&(h=0);isNaN(h)||(w.expirationTime=h)}_.r("html5_enable_ssap_entity_id")&&I&&w.playerResponse&&(w.playerResponse.cacheMetadata={isCacheHit:!0});_.lV(_.w4).prefetchCache_.clear();I||w.page!=="watch"||w.type!=="reduced"&&Z!==1?Z=jRl(a,w,I,!!B,W,N):(a.publishPageData(w),Z=_.tk());
N=Z.then(function(){var L=XK(W);L={endpoint:W,pageType:L,fromHistory:I,response:w};L.navigationDoneMs=_.Ak("nd");a.fireEvent("yt-navigate-finish",L)});
w.csn&&X&&w.clientSideGrafts&&Z.then(a.attachClientSideGrafts.bind(a,w,_.eH()));return N};
_.t=P3.prototype;_.t.attachClientSideGrafts=function(a,W){a.clientSideGrafts&&W&&a.clientSideGrafts.forEach(function(w){if(W&&w){var Z=_.PX(w);_.r("combine_ve_grafts")?_.$J().graftServerVe(w,W):_.M1(a.csn,W,Z)}})};
_.t.handleSignalActionHistoryBack=function(){window.history.back()};
_.t.handleSignalActionCloseWindow=function(){window.close()};
_.t.handleSignalActionReloadPage=function(){this.reload()};
_.t.handleSignalActionSoftReloadPage=function(){bfA(this)};
_.t.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.t.fireEvent=function(a,W){a=new CustomEvent(a,{bubbles:!0,cancelable:!1,composed:!0,detail:W});this.dispatchEvent(a)};
_.t.addEventListener=function(a,W){this.JSC$12231_clientRoot.addEventListener(a,W)};
_.t.dispatchEvent=function(a){return this.JSC$12231_clientRoot.dispatchEvent(a)};
_.t.removeEventListener=function(a,W){this.JSC$12231_clientRoot.removeEventListener(a,W)};
P3[Hy]=[rT_,_.$t];_.eME=new YZ("browse","h8y2qb");_.nP9=new YZ("search","JzFVk");_.jhe=new YZ("shorts","xwEKAe");_.LrD=new YZ("watchFixie","nmfa2d");_.JUe=new YZ("watchFlexy","CF909");_.Fre=new YZ("watchGrid","Tm0L3c");_.MAe=new YZ("watchLearningJourney","L3n37");var RQV;var XC=function(){return _.u.apply(this,arguments)||this};
_.c(XC,_.u);_.dU.Object.defineProperties(XC,{template:{configurable:!0,enumerable:!0,get:function(){if(RQV===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);RQV=a}a=RQV;return a}}});
_.f([_.R(q2e.YtPlayerBehavior),_.z("design:type",Object)],XC.prototype,"ytPlayerBehavior",void 0);XC=_.f([_.C({is:"ytd-player"})],XC);var qZ6;var QRH;var x8_;var v3=function(){var a=_.u.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};
_.c(v3,_.u);v3.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]]"}}}}}};
v3.prototype.handleAccountLinkingStateChangedCommand=function(a){if(a=_.A(a,NI_)){var W,w=(W=this.data)==null?void 0:W.providerKey;W=a.providerKey;w&&W&&w.id===W.id&&w.subject===W.subject&&(a=a.linked,a!==void 0&&(this.set("data.linked",a),this.notifyPath("data.linked"),_.r("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(a)))}};
v3.prototype.setPlayerAccountLinkState=function(a){var W=new UU8;kt9(W,Oc8(new S7F,a));var w=_.fA();w&&w.getPlayerPromise().then(function(Z){Z.setAccountLinkState(_.EI(W.JSC$9981_serializeBinary(),4));Z.updateAccountLinkingConfig(a)})};
v3.prototype.handleShowAccountLinkDialog=function(){var a=this.get("button.buttonRenderer.command");a&&_.B_([a],this.hostElement)};
_.dU.Object.defineProperties(v3.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}}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],v3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.f([_.R([_.d4.YtActionHandlerBehavior]),_.z("design:type",Object)],v3.prototype,"actionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],v3.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],v3.prototype,"overrides",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],v3.prototype,"forceModernIconButton",void 0);_.f([_.b({value:"bottom"}),_.z("design:type",String)],v3.prototype,"buttonTooltipPosition",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],v3.prototype,"forceIconButton",void 0);_.f([_.b(),_.z("design:type",Boolean)],v3.prototype,"disableTextTransform",void 0);
_.f([_.Q("data","data.linked","data.isWarning"),_.z("design:type",Object),_.z("design:paramtypes",[])],v3.prototype,"button",null);v3=_.f([_.C({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],v3);
_.D(v3,"ytd-account-link-button-renderer",function(){if(x8_!==void 0)return x8_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return x8_=a},{mode:1});var beT;var sRV=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],gy=function(){return _.u.apply(this,arguments)||this};
_.c(gy,_.u);gy.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
gy.prototype.updateButtonActiveState=function(){var a=this,W=!!sRV.find(function(w){return a.currentState===w});
this.button&&(this.button.isPressed=W)};
_.dU.Object.defineProperties(gy.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.playlistLoopStateEntity)==null?void 0:a.state)||((W=this.data)==null?void 0:W.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var a=void 0,W;if(this.currentState&&((W=this.data)==null?0:W.states)){W=_.l(this.data.states);for(var w=W.next();!w.done;w=W.next()){w=_.A(w.value,_.rdT);var Z=void 0;if(((Z=w)==null?void 0:Z.state)===this.currentState){a=w;break}}}return a}}});
gy.prototype.updateButtonActiveState=gy.prototype.updateButtonActiveState;_.f([_.R(_.ij),_.z("design:type",Object)],gy.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.DfU}),_.z("design:type",Object)],gy.prototype,"playlistLoopStateEntity",void 0);_.f([_.b(),_.z("design:type",Object)],gy.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],gy.prototype,"forceIconOnly",void 0);_.f([_.w$("ytd-button-renderer"),_.z("design:type",_.sq)],gy.prototype,"button",void 0);
_.f([_.Q("data","playlistLoopStateEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],gy.prototype,"currentState",null);_.f([_.a5("currentButtonStateRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gy.prototype,"updateButtonActiveState",null);_.f([_.Q("currentState"),_.z("design:type",Object),_.z("design:paramtypes",[])],gy.prototype,"currentButtonStateRenderer",null);
gy=_.f([_.C({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],gy);
_.D(gy,"ytd-playlist-loop-button-renderer",function(){if(beT!==void 0)return beT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return beT=a},
{mode:1});var usJ;var CIl=_.P_("DOWNLOAD",{},"Download"),G3e=_.P_("DOWNLOADING",{},"Downloading"),D8R=_.P_("DOWNLOADED",{},"Downloaded"),feh=_.P_("RETRY",{},"Retry"),o4=function(){var a=_.u.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};
_.c(o4,_.u);_.t=o4.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.dataChanged=function(){var a;(a=this.data)!=null&&a.text||(a=_.cJ(_.Cx().getState(),this.videoId),this.updateButtonState(a))};
_.t.computeVideoId=function(a){return a};
_.t.showHideButton=function(){this.updateButtonVisibility()};
_.t.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};
_.t.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.t.updateButtonState=function(a){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==G3e||!_.os(a))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(a){case "TRANSFER_STATE_UNKNOWN":a=CIl;var W="OFFLINE_DOWNLOAD";var w="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":a=feh;W="OFFLINE_DOWNLOAD";w="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":a=D8R;W="OFFLINE_PIN";w="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":a=
G3e;W="OFFLINE_DOWNLOADING_ZERO";w="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":a=feh;W="OFFLINE_DOWNLOAD";w="ACTION_RETRY";break;default:a=CIl,W="OFFLINE_DOWNLOAD",w="ACTION_ADD"}this.isVideoDeletedByUser&&(a=CIl,W="OFFLINE_DOWNLOAD",w="ACTION_ADD");var Z=Object.assign({},this.data);Z.text=_.b8(a);Z.tooltip=a;Z.icon={iconType:W};Z.size="SIZE_DEFAULT";Z.style="STYLE_DEFAULT";_.A(Z.command,_.Be)&&(_.A(Z.command,_.Be).action=w);this.set("data",Z)}};
_.t.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 W;a!==((W=this.data.icon)==null?void 0:W.iconType)&&(W=Object.assign({},this.data),W.text=_.b8(G3e),W.tooltip=G3e,W.icon={iconType:a},_.A(W.command,_.Be)&&(_.A(W.command,_.Be).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",W))}};
o4.prototype.updateProgress=o4.prototype.updateProgress;o4.prototype.onTransferStateChanged=o4.prototype.onTransferStateChanged;o4.prototype.showHideButton=o4.prototype.showHideButton;o4.prototype.dataChanged=o4.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],o4.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],o4.prototype,"forceIconButton",void 0);
_.f([_.b(),_.z("design:type",Object)],o4.prototype,"forceIconOnly",void 0);_.f([_.b(),_.z("design:type",Object)],o4.prototype,"overrides",void 0);_.f([_.b(),_.z("design:type",Object)],o4.prototype,"buttonTooltipPosition",void 0);_.f([_.b(),_.z("design:type",Object)],o4.prototype,"styleActionButton",void 0);_.f([_.b(),_.z("design:type",Object)],o4.prototype,"disableTextTransform",void 0);
_.f([_.b({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.z("design:type",String)],o4.prototype,"videoId",void 0);_.f([_.b(),_.z("design:type",Object)],o4.prototype,"data",void 0);_.f([_.b({selector:nx,selectorArgs:["videoId"]}),_.z("design:type",Object)],o4.prototype,"downloadProgress",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o4.prototype,"isDownloadComplete",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o4.prototype,"isHidden",void 0);_.f([_.b({selector:_.cJ,selectorArgs:["videoId"]}),_.z("design:type",String)],o4.prototype,"transferState",void 0);_.f([_.b({selector:_.VTC,selectorArgs:["videoId"]}),_.z("design:type",Object)],o4.prototype,"isVideoDeletedByUser",void 0);_.f([_.b({selector:Gzx,selectorArgs:["videoId"]}),_.z("design:type",Object)],o4.prototype,"offlineabilityState",void 0);
_.f([_.b({value:!0}),_.z("design:type",Boolean)],o4.prototype,"showTooltips",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],o4.prototype,"sendCommandWhenDisabled",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],o4.prototype,"disabled",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o4.prototype,"dataChanged",null);
_.f([_.lO("offlineabilityState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o4.prototype,"showHideButton",null);_.f([_.lO("transferState","isVideoDeletedByUser"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o4.prototype,"onTransferStateChanged",null);_.f([_.lO("downloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o4.prototype,"updateProgress",null);
o4=_.f([_.C({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],o4);
_.D(o4,"ytd-download-button-renderer",function(){if(usJ!==void 0)return usJ;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return usJ=a},{mode:2});var d8L;var m86,Vuh=function(){if(m86!==void 0)return m86;var a=document.createElement("template");_.n(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 m86=a};var zQJ=_.r("web_button_rework")&&_.JS("BUTTON_REWORK")||_.r("web_button_rework_with_live"),HeV=_.yv("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,kt=function(){var a=_.u.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$12269_browserSupportsAnimation=_.r("web_supports_animations_api");a.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};a.onTap=function(){var W;if((W=a.data)==null||!W.defaultNavigationEndpoint){var w;W=!((w=a.data)==null?0:w.isToggled);var Z;if((Z=a.data)==null||!Z.preventAutoToggle){a.shouldAnimate=!1;a.disableTextUpdateJobId&&_.hF.cancelJob(a.disableTextUpdateJobId);a.disableTextUpdateJobId=_.hF.addLowPriorityJob(function(){a.disableTextUpdateJobId=void 0},HeV);
var N;a.set("data.isToggled",!((N=a.data)==null?0:N.isToggled));w=a.getInnertubeIcon();Z={toggled:W,actions:{}};w&&(Z.actions[w.toLowerCase()]=W);_.E$(a.hostElement,"yt-toggle-button",Z)}}};
return a};
_.c(kt,_.u);_.t=kt.prototype;_.t.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.hF.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.toggle=function(a){var W;this.set("data.isToggled",a!==void 0?a:!((W=this.data)==null?0:W.isToggled))};
_.t.handleUpdateToggleButtonStateCommand=function(a){if(this.data){a=_.A(a,oOA);var W,w,Z,N=(W=this.data)==null?void 0:(w=W.toggleButtonSupportedData)==null?void 0:(Z=w.toggleButtonIdData)==null?void 0:Z.id;N&&a&&N===(a==null?void 0:a.buttonId)&&this.set("data.isToggled",a.toggled)}};
_.t.handleUpdateToggleButtonTextAction=function(a){if(this.data){a=_.A(a,GZA);var W,w,Z,N=(W=this.data)==null?void 0:(w=W.toggleButtonSupportedData)==null?void 0:(Z=w.toggleButtonIdData)==null?void 0:Z.id;N&&a&&N===(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)}};
_.t.getInnertubeIcon=function(){var a=this.data;if(a){var W,w,Z=((W=a.defaultIcon)==null?0:W.iconType)?(w=a.defaultIcon)==null?void 0:w.iconType:null,N,B;W=((N=a.toggledIcon)==null?0:N.iconType)?(B=a.toggledIcon)==null?void 0:B.iconType:Z;return a.isToggled?W:Z}};
_.t.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.dU.Object.defineProperties(kt.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$12269_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var W=a.renderer;var w=a.element;var Z=a.toggled;var N=a.onTapCallback;var B=a.commandClientArgs;var I=a.overrides;var X=a.forceIcon;var v=a.forceModernIconButton;var U=a.forceDisabled;var O=a.useAnimatedText;var S=a.animatedTextProps;a=Vl9(W,Z);X=!W.defaultIcon||!X&&W.defaultText?W.defaultIcon?"leading":void 0:v?"icon-only":"icon-only-40";X==="icon-only-40"&&(a.type="text");var T;v=Object;var p=v.assign,h;a:switch((h=
W.style)==null?void 0:h.styleType){case "STYLE_COMPACT_GRAY":h={size:"S"};break a;default:h={size:"M"}}var L=!!Z;var F=(F=Z&&W.toggledText||W.defaultText)?_.YJ(F):void 0;O?(O=_.sd(Z&&W.toggledText||W.defaultText))&&S&&!isNaN(Number(S.numberValue))?(S.numberText=O,Z&&(S.numberValue+=1),O=S):O=void 0:O=void 0;var x,G,V,d;var ZD=(S=((G=Z?W.toggledAccessibilityData||((ZD=W.toggledText)==null?void 0:ZD.accessibility):W.accessibilityData||((x=W.defaultText)==null?void 0:x.accessibility))==null?void 0:(V=
G.accessibilityData)==null?void 0:V.label)||((d=W.accessibility)==null?void 0:d.label))?S:_.sd(Z&&W.toggledText||W.defaultText);U=U===void 0?W.isDisabled:U;w=mfU(W,Z,N,w,B);Z=dfI(W,Z);Z!=null&&Z.length?(Z=_.hQ({innertubeCommand:uVE(Z),forceNewState:!0}),Z=ix(Z)?Z:void 0):Z=void 0;W=p.call(v,{},a,h,{iconPosition:X},I,{focused:!1,toggled:L,toggleable:!0,formattedButtonText:F,animatedTextProps:O,accessibilityLabel:ZD,disabled:U,onTap:w,aTagConfig:Z},vG9((T=W.colorData)==null?void 0:T.basicColorPaletteData));
W.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(W.type="filled");return W}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var a=this.getInnertubeIcon();if(a)return _.EN(a)}}});
kt.prototype.resetAnimation=kt.prototype.resetAnimation;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],kt.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],kt.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kt.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],kt.prototype,"isPressed",void 0);_.f([_.b(),_.z("design:type",Object)],kt.prototype,"forceIconButton",void 0);_.f([_.b(),_.z("design:type",Object)],kt.prototype,"forceIconOnly",void 0);_.f([_.b(),_.z("design:type",Object)],kt.prototype,"forceModernIconButton",void 0);_.f([_.b(),_.z("design:type",Object)],kt.prototype,"alignByText",void 0);_.f([_.b(),_.z("design:type",Object)],kt.prototype,"overrides",void 0);
_.f([_.b(),_.z("design:type",Boolean)],kt.prototype,"disabled",void 0);_.f([_.b(),_.z("design:type",Object)],kt.prototype,"isShorts",void 0);_.f([_.b(),_.z("design:type",Object)],kt.prototype,"buttonTooltipPosition",void 0);_.f([_.b(),_.z("design:type",Object)],kt.prototype,"animatedText",void 0);_.f([_.b(),_.z("design:type",String)],kt.prototype,"textNumberValue",void 0);_.f([_.b({computed:"computeTooltip(data, data.isToggled)"}),_.z("design:type",Object)],kt.prototype,"tooltip",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kt.prototype,"resetAnimation",null);_.f([_.Q("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.z("design:type",Object),_.z("design:paramtypes",[])],kt.prototype,"computedButtonShape",null);_.f([_.Q("data.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],kt.prototype,"computedIcon",null);
kt=_.f([_.C({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],kt);zQJ&&_.D(kt,"ytd-toggle-button-renderer",Vuh,{mode:_.Vn("kevlar_poly_si_batch_j081")?1:2});var tuD=[],$8e=!1;_.En(IeS);var yTR=_.xQ(function(a){function W(U){var O;return _.P(function(S){if(S.nextAddress==1)return(O=!yPF(U,X())||!X().enabled)?S.jumpTo(2):_.g(S,ZeS(),3);S.nextAddress!=2&&(O=S.yieldResult);if(O)return S.return();w();setTimeout(function(){I(!1)},1500);
_.Xd(S)})}
function w(){setTimeout(function(){I(!0);var U;(U=Z.lottieEl)==null||U.goToAndPlay(0)},150)}
var Z=_.Ns(),N=_.l(_.$1(!1,void 0,"xffAp")),B=N.next().value,I=N.next().value,X=_.qt(a.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.AS(function(){var U,O;((U=a.settings)==null?void 0:(O=U.call(a))==null?void 0:O.uniqueId)==="this is not intended behavior"&&_.jJ(new _.Uw("Smartimation Settings is undefined"))});
_.Ka(function(){X().experimentEnabled&&(X().enabled?E59(W):(I(!1),aex(W)),_.Ao(function(){aex(W)}))});
_.Ka(function(){X().timings.join("");X().experimentEnabled&&(WwD(X()),_.Ao(function(){wje(X())}))});
var v=_.XT(function(){return zLv(Z,X())},void 0,"d96jJc");
N={};return _.k("yt-smartimation",{class:_.W$(a.className,"smartimation",(N["smartimation--experiment-enabled"]=function(){return X().experimentEnabled},N["smartimation--active-border"]=B,N["smartimation--enable-masking"]=PIC(),N))},_.k(_.Y,{cond:function(){return X().experimentEnabled},
then:function(){return _.k("div",{class:"smartimation__border"},_.k(_.w2,{className:"smartimation__border-gradient",data:v,animationName:function(){return v().animationConfig.name}}))}}),_.k("div",{class:"smartimation__content"},a.children))},"x"),VzU=_.r("web_enable_sink_smartimations")?yTR:IeS,EYE=_.r("web_enable_sink_smartimations")?yTR:_.NX(IeS);
yTR.idomCompat=!0;_.r("web_enable_sink_smartimations")?_.Ct(EYE,"yt-smartimation",{props:{className:_.qR,settings:_.qR}}):_.HX(VzU,"yt-smartimation",{propNames:["className","settings"]});var UY=function(){var a=_.u.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};
_.c(UY,_.u);UY.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
UY.prototype.onDataChanged=function(){var a,W;this.shouldEnableSmartimation=(((a=this.data)==null?void 0:(W=a.timedAnimationData)==null?void 0:W.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
UY.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var a=_.A(this.data.likeButton,_.F8),W=_.A(this.data.dislikeButton,_.F8);return!!((a==null?0:a.isToggled)||(W==null?0:W.isToggled))};
UY.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]]"}}}}}};
_.dU.Object.defineProperties(UY.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var a,W,w=((a=this.data)==null?void 0:(W=a.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"like-dislike",timings:w,enabled:this.shouldEnableSmartimation,experimentEnabled:w.length>0}}}});
UY.prototype.onDataChanged=UY.prototype.onDataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],UY.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],UY.prototype,"likeButtonOverride",void 0);_.f([_.b(),_.z("design:type",Object)],UY.prototype,"dislikeButtonOverride",void 0);
_.f([_.Q("shouldEnableSmartimation"),_.z("design:type",Object),_.z("design:paramtypes",[])],UY.prototype,"smartimationSettings",null);_.f([_.a5("data"),_.E6("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UY.prototype,"onDataChanged",null);UY=_.f([_.C({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],UY);
_.D(UY,"ytd-segmented-like-dislike-button-renderer",function(){if(d8L!==void 0)return d8L;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return d8L=a},{mode:1});var ax_;var WDe;(WDe=document.body)==null||WDe.setAttribute("rounded-container","");var wCL={};wCL.YtToggleButtonBehavior=[_.d4.YtActionHandlerBehavior,$Z.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 W={toggled:this.data.isToggled,actions:{}};W.actions[this.buttonIcon]=this.data.isToggled;_.E$(this.hostElement,"yt-toggle-button",W)}W=this.data.defaultServiceEndpoint||null;var w=this.data.toggledServiceEndpoint||null;if(W&&w||W&&this.data.preventAutoToggle)a=a?w:W,W=this.disableCommandHandlerOverride,_.r("killswitch_toggle_button_behavior_resolve_command")||W?_.Z9(this.hostElement,
[a]):_.wJ(a,this.hostElement),_.E$(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:a})}},
stateChanged_:function(){var a=this.data;if(a){var W=a.isToggled;this._setEndpoint(this.computeEndpoint_(a));this._setServiceEndpoint(this.computeServiceEndpoint_(a));this._setButtonIcon(this.computeButtonIcon_(a,W));this._setButtonText(this.computeButtonText_(a,W));this._setButtonAccessibility(this.computeAccessibility_(a,W));this._setButtonTooltip(this.computeTooltip_(a,W));this._setButtonClass(this.computeButtonClass_(a,W));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=W):this.elements_.button.setAttribute("aria-pressed",W));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=W)}},
shouldSetIconActiveState_:function(){return _.r("kevlar_system_icons")},
toggle:function(a){this.set("data.isToggled",a!==void 0?a:!this.data.isToggled);_.r("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(a){if(a){var W,w;return!!((W=this.data)==null?0:(w=W.toggledServiceEndpoint)==null?0:w.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(a){return a&&a.defaultNavigationEndpoint||null},
computeButtonIcon_:function(a,W){var w=a&&a.defaultIcon?_.EN(a.defaultIcon.iconType):null;a=a&&a.toggledIcon?_.EN(a.toggledIcon.iconType):w;return W?a:w},
handleUpdateToggleButtonStateCommand_:function(a){a=a.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==a.buttonId&&this.toggle(a.toggled)},
computeButtonText_:function(a,W){return a?W&&a.toggledText||a.defaultText||null:null},
computeAccessibility_:function(a,W){return a?(W?this.get("toggledAccessibilityData.accessibilityData",a):this.get("accessibilityData.accessibilityData",a))||a.accessibility||null:null},
computeTooltip_:function(a,W){return a?W&&a.toggledTooltip||a.defaultTooltip||null:null},
computeButtonClass_:function(a,W){if(!a)return"";var w="",Z=a.toggledStyle||a.style;if(W=W?Z:a.style){W.styleType&&(W=W.styleType);try{w+=W.toLowerCase().replace(/_/g,"-")+" "}catch(N){_.LH(N,W,typeof W),_.jJ(N)}}if(a=a.size){a.sizeType&&(a=a.sizeType);try{w+=a.toLowerCase().replace(/_/g,"-")+" "}catch(N){_.LH(N,a,typeof a),_.jJ(N)}}return w.trim()},
computeIconPositionType_:function(a){return a&&a.iconPosition||null},
computeServiceEndpoint_:function(a){var W=a&&a.serviceEndpoint,w=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:w&&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"))}}];_.pA("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var ZZT=_.r("web_button_rework")&&_.JS("BUTTON_REWORK")||_.r("web_button_rework_with_live"),OY=function(){var a=_.u.apply(this,arguments)||this;a.systemIcons=_.r("kevlar_system_icons");a.roundedContainer=!0;return a};
_.c(OY,_.u);OY.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
OY.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var a=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var W={toggled:!!this.data.isToggled,actions:{}};W.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var w,Z;W.actions.playlistId=(w=this.data.defaultServiceEndpoint)==null?void 0:(Z=w.playlistEditEndpoint)==null?void 0:Z.playlistId;_.E$(this.hostElement,"yt-toggle-button",W)}(a=a?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(a)}};
OY.prototype.onYtNavigate=function(a){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);W&&(a.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(W))};
_.dU.Object.defineProperties(OY,{template:{configurable:!0,enumerable:!0,get:function(){if(ax_===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);ax_=a}a=ax_;return a}}});
OY.prototype.onYtNavigate=OY.prototype.onYtNavigate;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],OY.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],OY.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(wCL.YtToggleButtonBehavior),_.z("design:type",Object)],OY.prototype,"ytToggleButtonBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],OY.prototype,"data",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],OY.prototype,"showTooltips",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],OY.prototype,"systemIcons",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],OY.prototype,"roundedContainer",void 0);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],OY.prototype,"onYtNavigate",null);
OY=_.f([_.C({is:"ytd-toggle-button-renderer",disableElementRegistration:ZZT})],OY);var NHe;_.SO=new _.yq("PANEL_CONTROLLER_TOKEN");_.Yt=new _.yq("SHEET_CONTROLLER_TOKEN");_.TA=new _.yq("DIALOG_CONTROLLER_TOKEN");NHe=new _.yq("DIALOG_CONTAINER_TOKEN");var YZD=_.P_("DOWNLOAD",{},"Download"),TrS=_.P_("DOWNLOADING",{},"Downloading"),KwS=_.P_("DOWNLOADED",{},"Downloaded"),pjv=_.P_("RETRY",{},"Retry");var tz6=_.xQ(function(a){var W=jRv,w=function(){return""},Z=ieH(a.data),N=cTI(a.data),B=eQF(a.data),I=nYC(a.data);
W=function(){var X=a.data(),v=OeH(X,Z(),N(),B(),I()),U=!!X.videoId,O=v.text;return{title:U?O:void 0,tooltip:U?void 0:O,accessibilityText:O,onTap:v.onTap,iconName:v.iconType,style:X.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:v.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:X.buttonSize}};
w={};w=_.W$("ytDownloadButtonViewModelHost",(w.ytDownloadButtonViewModelIsHidden=function(){var X=a.data(),v=I();return X.playlistId||v()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||v()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},w));
return _.k("download-button-view-model",{class:w},_.k(_.F7,{data:W}))},"y");
tz6.idomCompat=!0;_.En(Fw9);_.En(Lwv);var BH$=_.xQ(function(a){var W=a.backgroundLottieRef;var w=a.foregroundLottieRef;var Z=a.children;var N=a.wrapperClass;var B=a.disableAnimation;a=function(){return(_.r("web_animated_actions")||_.r("web_animated_actions_v2"))&&!(B==null?0:B())};
return _.k("yt-animated-action",{class:_.W$("animated-action__container",N)},_.k("div",{class:"animated-action__content-with-background"},_.k(_.Y,{cond:a,then:function(){return _.k($WE,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:W==null?void 0:W(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(MuC()?"dark":"light")+"_v5.json"}}}})}}),Z),_.k(_.Y,{cond:a,
then:function(){return _.k($WE,{lottiePlayerProps:function(){return{animationRef:w==null?void 0:w(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(MuC()?"dark":"light")+"_v4.json"}}}})}}))},"z");
BH$.idomCompat=!0;var XCU=_.r("web_enable_sink_animated_actions")?BH$:Fw9,lx_=_.r("web_enable_sink_animated_actions")?BH$:_.NX(Fw9),$WE=_.xQ(function(a){var W=a.wrapperClass;var w=a.lottieClass;var Z=a.lottiePlayerProps;return _.k("div",{class:_.W$("animated-action__lottie",W),"aria-hidden":"true"},_.k(_.w2,{className:w,data:Z,animationName:function(){return Z().animationConfig.name}}))},"A");var RQ9={isOpen:!1};var QRe={isAllowed:!1};var beE={errorMessage:"",title:"",privacy:"",isDisabled:!0};var usU={isOpen:!1};var G3C={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var IxR={response:void 0};var fe8=function(a,W){a=a===void 0?IxR:a;switch(W.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},a,{response:W.payload});default:return a}};var PZ$={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var d8m=function(a,W){a=a===void 0?PZ$:a;switch(W.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},a,{nextDisabled:W.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},a,{nextCommand:W.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},a,{footerSubmissionData:W.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},a,{isImpersonationValid:W.payload});default:return a}};var XCJ={reportFormData:void 0,reportDetailsFormData:void 0};var m87=function(a,W){a=a===void 0?XCJ:a;switch(W.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},a,{reportFormData:W.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},a,{reportDetailsFormData:W.payload});default:return a}};var vLJ=void 0;_.r("mweb_enable_redux_store_on_demand")||(vLJ=new u8(Vu8()));var PZx=_.xQ(function(a){a=_.Qn(a,{themeOverride:void 0,animationRef:{}});var W=a.animatedIconType,w=a.active,Z=a.themeOverride,N=a.animationRef;a=a.staticIconFn;var B=_.l(_.$1(void 0,void 0,"P5a72b")),I=B.next().value,X=B.next().value,v=function(){a:{var F=W();var x=Z==null?void 0:Z();var G;x=(x==null?void 0:x.useDarkTheme)||((G=_.K().resolve(_.Vv(_.Lt)))==null?void 0:G());switch(F){case "LIKE":b:{vLJ||(vLJ=new u8(Vu8()));if((F=VEI(vLJ.getState()))&&F.animationStyle)switch(F.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":F=
He9({name:x?"valentines25_heart_dark":"valentines25_heart_light",path:x?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":F=He9({name:x?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:x?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":F=
He9({name:x?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:x?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}F=void 0}if(F){x=F;break a}x="animated_like_icon_"+(x?"dark_v4":"light_v4");x={lottiePlayerProps:{animationConfig:{name:x,path:zQU("animated_like_icon",x),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":x={lottiePlayerProps:{animationConfig:{name:x?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(x?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}x=void 0}return x},U=function(){var F,x;
return(x=(F=v())==null?void 0:F.lottiePlayerProps.animationConfig.name)!=null?x:""},O=function(){if(v()){var F=v().lottiePlayerProps.animationConfig.path;
return at.get(F)||I()}};
B=_.l(_.$1(!1,void 0,"h6xR3c"));var S=B.next().value;B=B.next().value;var T=EYD(B),p=function(){var F=v(),x,G,V;return(V=F==null?void 0:(x=F.lottiePlayerProps.animationConfig)==null?void 0:(G=x.rendererSettings)==null?void 0:G.className)!=null?V:""},h=void 0,L=void 0;
_.Ka(function(){var F=v(),x=U(),G=O(),V=S(),d=w();if(F&&(L!==x&&(L=x,h=d,x=N(),T.animationConfig=F.lottiePlayerProps.animationConfig,T.animationRef=x,G&&(T.animationConfig.animationData=G,T.animationConfig.path=void 0),x=F.lottiePlayerProps.animationConfig.path,!at.get(x)&&F.lazyLoad&&x&&yTI(x,X)),!(V||F.lazyLoad&&!G))){if(G=!N().lottieEl)d?(V=F.totalFrames,T.animationConfig.initialSegment=[V-1,V]):T.animationConfig.initialSegment=void 0;if(h!==d&&!G)if(G=N(),d){var ZD;(ZD=G.lottieEl)==null||ZD.playSegments([0,
F.totalFrames],!0)}else{var aC;(aC=G.lottieEl)==null||aC.playSegments([0,1],!0)}h=d}});
return _.k("animated-icon",{class:"ytAnimatedIconHost"},_.k(_.Y,{cond:function(){var F,x;return!((F=v())==null||!F.lottiePlayerProps.animationConfig.path||((x=v())==null?0:x.lazyLoad)&&!O()||S())},
then:function(){return _.k(_.w2,{data:T,animationName:U,className:p,animationRef:N})},
else:a}))},"B");_.En(vLU);var gLl,k7T;gLl=_.xQ(function(a){var W=_.D8(),w=_.D8(),Z=_.D8(),N=_.Ns(),B=_.Ns(),I=_.Ns(),X=_.X7(_.We,function(){return a.data().stateEntityStoreKey}),v=_.X7(b18,function(){var Ny,Bl;
return(Bl=(Ny=a.data().notificationStateEntityStoreKeys)==null?void 0:Ny.subsNotificationStateKey)!=null?Bl:""}),U=function(){return!a.data().enableSubscribeButtonPostClickAnimation},O=_.l(_.$1(0,void 0,"j8TVGc")),S=O.next().value,T=O.next().value;
O=_.l(_.$1(0,void 0,"LYLUoe"));var p=O.next().value,h=O.next().value;O=_.l(_.$1(!1,void 0,"CXkJEf"));var L=O.next().value,F=O.next().value;O=_.l(_.$1(!1,void 0,"OWieEd"));var x=O.next().value,G=O.next().value;O=_.l(_.$1(!1,void 0,"bHcaje"));var V=O.next().value,d=O.next().value,ZD;O=_.l(_.$1(!1,void 0,"Cjx6se"));var aC=O.next().value,Bv=O.next().value,Am=function(){G(!0);_.OB(_.hF,function(){G(!1)},1500)};
_.Ka(function(){var Ny=x();to(function(){Ny&&!U()&&X()&&SGD(N,B,I)})});
_.Ka(function(){var Ny=X();to(function(){if(!U()&&Ny){var Bl;((Bl=a.animateWidth)==null?0:Bl.call(a))&&OZF(W.value,!!Ny.subscribed,S(),p());var JL,Pl;((JL=ZD)==null?0:JL.subscribed)||!Ny.subscribed||Ny.key!==((Pl=ZD)==null?void 0:Pl.key)||Am();ZD=Ny}})});
O=_.XT(function(){var Ny,Bl,JL,Pl=a.data(),W9=!((Ny=X())==null||!Ny.subscribed);Ny=!((Bl=a.isOverlay)==null||!Bl.call(a));Bl=L()?W.value:void 0;var rC=(JL=v())==null?void 0:JL.state;JL=aC();UWx(Pl,rC);return ve({model:Pl,subscribed:W9,isOverlay:Ny,element:Bl,notificationState:rC,disableTextEllipsis:!0,focused:JL})},void 0,"g67gvb");
var e9=function(){var Ny;if(!U()&&((Ny=a.animateWidth)==null?0:Ny.call(a))&&(w==null?0:w.value)&&(Z==null?0:Z.value)&&!V()){Ny=X();var Bl=_.l((Ny==null?0:Ny.subscribed)?[w,Z]:[Z,w]),JL=Bl.next().value;Bl=Bl.next().value;JL=Math.ceil(JL.value.getBoundingClientRect().width);Bl=Math.ceil(Bl.value.getBoundingClientRect().width);T(JL);h(Bl);OZF(W.value,!(Ny==null||!Ny.subscribed),JL,Bl);d(!0)}},cv=_.$_(function(Ny){e9();
var Bl=X();Bl&&(Ny.detail.endpoint.subscribeEndpoint||Ny.detail.endpoint.unsubscribeEndpoint)&&oLC(W.value,!Bl.subscribed,Bl)}),C7=function(){var Ny=_.K().resolve(_.Vv(_.S4));
Ny&&Bv(Ny.isKeyBoardInUse())},RC=function(){Bv(!1)};
_.GP("yt-player-subscribe",function(Ny){var Bl=X();Bl&&Ny===a.data().channelId&&oLC(W.value,!0,Bl)});
_.GP("yt-player-unsubscribe",function(Ny){var Bl=X();Bl&&Ny===a.data().channelId&&oLC(W.value,!1,Bl)});
_.GP("yt-update-subscribe-button-action",function(Ny){Ny=_.A(Ny,IxI);var Bl=X();Bl&&Ny&&Ny.channelId===a.data().channelId&&oLC(W.value,!!Ny.subscribed,Bl)});
_.AS(function(){W.value&&(W.value.addEventListener("focusin",C7),W.value.addEventListener("focusout",RC));var Ny=_.TP(_.hF,function(){e9()});
F(!0);_.Ao(function(){_.hF.cancelJob(Ny);W.value&&(W.value.removeEventListener("focusin",C7),W.value.removeEventListener("focusout",RC))})});
var G8=function(){var Ny,Bl,JL;if(JL=!((Ny=X())==null||!Ny.subscribed))Ny=!!a.data().disableNotificationBell,JL=(Bl=v())==null?void 0:Bl.state,JL=!Ny&&!!JL;return JL},QF=function(){var Ny;
return!((Ny=X())==null?0:Ny.subscribed)},vl=function(){var Ny,Bl;
if(Bl=QF()){Bl=!!a.data().disableNotificationBell;var JL=(Ny=v())==null?void 0:Ny.state;Bl=!Bl&&!!JL}return Bl},Hl={},SV={};
return _.k("yt-subscribe-button-view-model",{class:_.W$(a.className,"yt-subscribe-button-view-model-wiz",(Hl["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Ny,Bl;return!((Ny=X())==null||!Ny.subscribed)&&((Bl=a.animateWidth)==null?void 0:Bl.call(a))&&x()},Hl["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Ny;
return!((Ny=X())==null?0:Ny.subscribed)&&a.data().hideWhenUnsubscribed},Hl)),
el:W,"on:yt-service-request-sent":cv},_.k(lx_,{backgroundLottieRef:N,foregroundLottieRef:B,wrapperClass:_.W$("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(SV["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Ny;return((Ny=a.animateWidth)==null?void 0:Ny.call(a))&&x()},SV["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Ny;
return!((Ny=a.animateWidth)==null?0:Ny.call(a))},SV)),
disableAnimation:U},_.k("div",{el:w,class:"yt-subscribe-button-view-model-wiz__container"},_.k(EB,{data:O,icon:function(){return _.k(_.Y,{cond:G8,then:function(){var Ny=function(){var Bl;return gLv((Bl=v())==null?void 0:Bl.state)};
return _.k(_.Y,{cond:function(){return U()||Ny()!=="NOTIFICATIONS_NONE"},
then:function(){return _.k(_.P$,{icon:Ny})},
else:function(){return _.k(PZx,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:I})}})}})},
secondaryIconName:function(){return G8()?"EXPAND":void 0}}))),_.k("div",{el:Z,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.k(_.Y,{cond:function(){var Ny;return((Ny=a.animateWidth)==null?void 0:Ny.call(a))&&!U()&&!V()},
then:function(){return _.k(EB,{data:_.XT(function(){var Ny;return ve({model:a.data(),subscribed:QF(),isOverlay:!((Ny=a.isOverlay)==null||!Ny.call(a)),element:W.value,disableTextEllipsis:!0})},void 0,"smNF2c"),
iconName:function(){var Ny;return vl()?gLv((Ny=v())==null?void 0:Ny.state):void 0},
secondaryIconName:function(){return vl()?"EXPAND":void 0}})}})))},"C");
_.oLe=_.r("web_enable_sink_yt_subscribe_button_view_model")?gLl:vLU;k7T=_.r("web_enable_sink_yt_subscribe_button_view_model")?gLl:_.NX(vLU);gLl.idomCompat=!0;var YGI=new _.yq("RENDERER_STAMPER_OPTIONS_TOKEN");var pj;_.Kj=new VKT;pj=new Map;var RUm="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),QWe=["notificationTextRenderer","notificationMultiActionRenderer"],qG9="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
Mzm=c$7(function(a){return _.ik(a==null?void 0:a.targetId)}).useUpdatableData;var FD8=0;_.Ax.debugName="EjJbCe";var UW$=_.xQ(function(a){var W=a.data;var w=_.X7(_.We,function(){return W().subscriptionStateEntityKey});
return _.k(_.Y,{cond:function(){var Z=W(),N=w();return!Z.hideWhenUnsubscribed||(N==null?0:N.subscribed)?_.A(W().button,_.hx):void 0},
then:function(Z){return _.k("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.k(_.F7,{data:Z,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var sW8=_.T9({buttonViewModel:_.F7,subscribeButtonViewModel:_.oLe,downloadButtonViewModel:tz6,toggleButtonViewModel:_.ce,subscribePlusButtonViewModel:UW$});_.En(CZx);var OZ_=_.xQ(function(a){return _.k(_.Ax,{data:function(){return a.actionRow().actions}},{buttonViewModel:function(W){var w=W.data;
return _.k(KG,{isRow:a.isRow,isIconOnlyButton:function(){return G79(w())},
useIntrinsicWidth:a.useIntrinsicWidth},_.k(_.F7,{data:w}))},
subscribeButtonViewModel:function(W){return _.k(KG,{isRow:a.isRow},_.k(k7T,{data:W.data,isOverlay:!1,animateWidth:function(){return!a.isRow()}}))},
downloadButtonViewModel:function(W){var w=W.data;return _.k(KG,{isRow:a.isRow,isIconOnlyButton:function(){return!!w().playlistId}},_.k(tz6,{data:w}))},
toggleButtonViewModel:function(W){var w=W.data;return _.k(KG,{isRow:a.isRow,isIconOnlyButton:function(){var Z=w();return G79(_.A(Z.isToggled?Z.toggledButtonViewModel:Z.defaultButtonViewModel,_.hx))}},_.k(_.ce,{data:w}))},
subscribePlusButtonViewModel:function(W){return _.k(KG,{isRow:a.isRow},_.k(UW$,{data:W.data}))}})},"E"),KG=_.xQ(function(a){var W={};
return _.k("div",{class:_.W$("yt-flexible-actions-view-model-wiz__action",(W["yt-flexible-actions-view-model-wiz__action--row-action"]=a.isRow,W["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=a.useIntrinsicWidth,W["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,W["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=a.isIconOnlyButton,W))},a.children)},"F"),SGE=_.xQ(function(a){var W=function(){var Z;
return((Z=a.layout)==null?void 0:Z.call(a))===1},w={};
return _.k("yt-flexible-actions-view-model",{class:_.W$("yt-flexible-actions-view-model-wiz",a.className,(w["yt-flexible-actions-view-model-wiz--inline"]=function(){return!W()},w["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return a.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},w))},_.k(_.k6,{each:function(){return a.data().actionsRows||[]}},function(Z){return _.k(_.Y,{cond:W,
then:function(){return _.k("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.k(OZ_,{actionRow:Z,isRow:W,useIntrinsicWidth:function(){return!!a.data().respectActionIntrinsicWidth}}))},
else:function(){return _.k(OZ_,{actionRow:Z,isRow:W})}})}))},"G"),YGR=_.r("web_enable_sink_yt_flexible_actions_view_model")?SGE:CZx,pG=_.r("web_enable_sink_yt_flexible_actions_view_model")?SGE:_.NX(CZx);
SGE.idomCompat=!0;_.Ct(pG,"yt-flexible-actions-view-model",{props:{data:_.qR,layout:_.qR,justifyContentOverride:_.qR,className:_.qR}});_.En(DW8);var THE,HZx;THE=_.xQ(function(a){var W=_.X7(hu,function(){var N;return(N=a.data().dislikeEntityKey)!=null?N:""}),w=_.XT(function(){var N=W();
return N?N.likeStatus==="DISLIKE":_.A(a.data().toggleButtonViewModel,_.iK).isToggled},void 0,"D8oIFb"),Z=_.XT(function(){return Object.assign({},_.A(a.data().toggleButtonViewModel,_.iK),{isToggled:w()})},void 0,"shaCXe");
return _.k("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.k(_.ce,{data:Z,buttonShapeOverrides:a.buttonShapeOverrideables,onToggle:function(N){var B=W();B&&N!==(B.likeStatus==="DISLIKE")&&B.key&&_.R5(_.e4("likeStatusEntity",B.key,{likeStatus:N?"DISLIKE":"INDIFFERENT",hadUserInteraction:N}))}}))},"H");
HZx=_.r("web_enable_sink_dislike_button_view_model")?THE:DW8;_.ry=_.r("web_enable_sink_dislike_button_view_model")?THE:_.NX(DW8);THE.idomCompat=!0;_.En(dWe);var KDE,zUx;KDE=_.xQ(function(a){var W=_.r("web_supports_animations_api"),w=bx(function(T){var p=U(),h,L=(p==null?void 0:(h=p.likeCountIfIndifferent)==null?void 0:h.content)!==T.numberText;if(X()||!L)return T;var F,x;return{numberText:(p==null?void 0:(F=p.likeCountIfIndifferent)==null?void 0:F.content)||"",numberValue:Number((x=p==null?void 0:p.likeCountIfIndifferentNumber)!=null?x:0),heightPx:36,shouldAnimate:!!p}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),Z=bx(function(T){var p=U(),h,L=(p==null?void 0:(h=p.likeCountIfIndifferent)==null?void 0:h.content)!==T.numberText;if(X()||!L)return T;var F,x;return{numberText:(p==null?void 0:(F=p.likeCountIfLiked)==null?void 0:F.content)||"",numberValue:Number((x=p==null?void 0:p.likeCountIfLikedNumber)!=null?x:0),heightPx:36,shouldAnimate:!!p}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),N=_.l(_.$1(void 0,void 0,"T6jMHc")),B=N.next().value,I=N.next().value,X=B,v=_.X7(hu,function(){var T,p;return(p=(T=a.data())==null?void 0:T.likeStatusEntityKey)!=null?p:""}),U=_.X7(S4C,function(){var T,p;
return((T=a.likeCountEntity)==null?void 0:(p=T.call(a))==null?void 0:p.key)||""}),O=_.XT(function(){var T;
return((T=v())==null?void 0:T.likeStatus)==="LIKE"},void 0,"WxQBcd"),S=function(){var T;
return W&&!((T=a.likeCountEntity)==null||!T.call(a))};
return _.k("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.k(_.ce,{data:function(){var T=Object,p=T.assign,h;var L=_.A((h=a.data())==null?void 0:h.toggleButtonViewModel,_.iK);return p.call(T,{},L||{},{isToggled:O()})},
buttonShapeOverrides:a.buttonShapeOverrideables,animatedTextPropsDefault:function(){return S()?w():void 0},
animatedTextPropsToggled:function(){return S()?Z():void 0},
onToggle:function(T){mWF(T,v(),X(),I)},
style:function(){var T;return((T=a.disableIconAnimation)==null?0:T.call(a))?void 0:{animateIcon:"true"}}}))},"I");
zUx=_.r("web_enable_sink_like_button_view_model")?KDE:dWe;_.A8=_.r("web_enable_sink_like_button_view_model")?KDE:_.NX(dWe);_.En(y$F);var pCh=_.xQ(function(a){var W=function(){return _.A(a.data().likeButtonViewModel,nj)},w=function(){var N;
return((N=W())==null?void 0:N.likeStatusEntityKey)||""},Z=_.XT(function(){var N,B;
var I=(B=_.X7(hu,w)())!=null?B:(N=W())==null?void 0:N.likeStatusEntity;N=a.data();var X;N=(N==null?void 0:(X=N.timedAnimationData)==null?void 0:X.animationTiming)||[];return{uniqueId:"like-dislike",timings:N,enabled:(I==null?void 0:I.likeStatus)==="INDIFFERENT"&&N.length>0,experimentEnabled:N.length>0}},void 0,"e1fsz");
return _.k("segmented-like-dislike-button-view-model",{class:_.W$("ytSegmentedLikeDislikeButtonViewModelHost",a.className),"button-renderer":!0},_.k(EYE,{settings:Z},_.k("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.k(_.Y,{cond:W,then:function(N){return _.k(_.A8,{data:N,likeCountEntity:function(){return a.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.k(_.Y,{cond:function(){return _.A(a.data().dislikeButtonViewModel,j4)},
then:function(N){return _.k(_.ry,{data:N,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"J"),r$A=_.r("web_enable_sink_segmented_like_dislike_button_view_model")?pCh:y$F;
pCh.idomCompat=!0;_.r("web_enable_sink_segmented_like_dislike_button_view_model")?_.Ct(r$A,"segmented-like-dislike-button-view-model",{props:{data:_.qR,className:_.qR}}):_.HX(r$A,"segmented-like-dislike-button-view-model",{propNames:["data"]});var NVD=0;_.Ct(Y7H,"account-link-button-view-model",{props:{data:_.qR,className:_.ux,setMinWidth:_.ux,forceIconOnly:_.ux}});_.pA("menuRenderer","menuRenderer","ytd-menu-renderer");
var A$y={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"}},
hUy=_.r("web_fix_missing_action_buttons")?100:200,h8=function(){var a=_.u.apply(this,arguments)||this;a.safeArea=!_.r("kevlar_flex_menu_safe_area_killswitch");a.tonalOverride=!1;a.threeDotSize="M";a.isOverlay=!1;a.useOverlayDark=!1;a.topLevelIconsOnly=!1;a.JSC$12420_lastWidth=0;a.maybeUpdateFlexibleMenu=function(){_.r("web_fix_missing_action_buttons")?requestAnimationFrame(a.maybeUpdateFlexibleMenuImpl):a.maybeUpdateFlexibleMenuImpl()};
a.maybeUpdateFlexibleMenuImpl=function(){var W;if((W=a.data)!=null&&W.flexibleItems){a.maybeFlushDebouncer();W=a.hostElement.clientWidth;var w=W>a.JSC$12420_lastWidth,Z,N=((Z=a.topLevelButtonsContainer)==null?void 0:Z.scrollHeight)||0,B;Z=((B=a.flexibleItemButtonsContainer)==null?void 0:B.scrollHeight)||0;B=a.hostElement.scrollHeight>Math.max(N,Z)+8;w?(a.resetFlexibleItems(),a.JSC$12420_lastWidth=a.hostElement.clientWidth,a.maybeUpdateFlexibleMenu()):B&&(a.shrinkFlexibleMenu(),a.JSC$12420_lastWidth=
W)}};
a.computeThreeDotButtonShape=function(){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)_.K().resolve(_.zU).resolveCommand(a.data.fetchMenuCommand,{form:{element:a.hostElement}});else if(a.data.isDisabled&&a.data.disabledCommand)_.wJ(a.data.disabledCommand,a.hostElement);else{var W=a.createMenuRendererVe(),w={items:a.items};a.data.menuPopupAccessibility&&(w.menuPopupAccessibility=a.data.menuPopupAccessibility);a.data.footer&&(w.footer=a.data.footer);W={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:w},veData:W}};_.K().resolve(_.Yt).openSheet({openPopupActionCommand:W},
a.hostElement)}};
return a};
_.c(h8,_.u);_.t=h8.prototype;_.t.updateButtonOverrides=function(){if(!_.r("menu_renderer_label_update_upkillswitch")){var a=_.M(this.hostElement).querySelector("yt-button-view-model");a&&(a.buttonOverrides=this.buttonOverrides)}};
_.t.computeHasItems=function(){var a;return((a=this.topLevelButtonData)==null?void 0:a.length)||this.hasFlexibleItems};
_.t.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.t.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Hu(this.hostElement,{"--ytd-menu-renderer-button-color":_.KC(this.data.iconColor)}))};
_.t.onStamperFinished=function(){this.JSC$12420_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.t.setupFlexibleMenu=function(){var a=this,W;(W=this.data)!=null&&W.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.yP(this.maybeUpdateFlexibleMenu,hUy,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))};
_.t.maybeFlushDebouncer=function(){if(_.r("web_replace_formatted_with_attributed_string")){var a;(a=this.topLevelButtons)==null||a.forEach(function(w){var Z;(w=(Z=w.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0])&&Gx7(w)});
var W;(W=this.flexibleItemButtons)==null||W.forEach(function(w){var Z;(w=(Z=w.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0])&&Gx7(w)})}};
_.t.resetFlexibleItems=function(){var a;if((a=this.data)!=null&&a.flexibleItems){_.r("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var W;this.flexAsTopLevelButtons=(W=this.data.flexibleItems)==null?void 0:W.map(function(w){return _.A(w,_.pT$).topLevelButton});
_.r("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.t.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.t.shrinkFlexibleMenu=function(){var a;(a=this.flexAsTopLevelButtons)!=null&&a.length&&(this.flexAsTopLevelButtons=[].concat(_.K8(this.flexAsTopLevelButtons.slice(0,-1))))};
_.t.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:A$y,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:A$y,events:!0}}};
_.t.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.t.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.t.detached=function(){this.icon="yt-icons:more_vert"};
_.t.computeTopLevelButtonData=function(a){if(!a)return[];var W;a=(W=a==null?void 0:a.topLevelButtons)!=null?W:[];return _.T5.unsafeClone([].concat(_.K8(a)))};
_.t.computeItems=function(a,W){if(!a)return[];var w=[];if(W){var Z=(a.flexibleItems||[]).map(function(I){return _.A(I,_.pT$)});
Z=_.l(Z);for(var N=Z.next();!N.done;N=Z.next())N=N.value,W.includes(N.topLevelButton)||(N=N.menuItem)&&w.push(N)}var B;a=(B=a==null?void 0:a.items)!=null?B:[];return[].concat(_.K8(w),_.K8(a))};
_.t.computeMenuActive=function(a,W){return a||W};
_.t.onPopupOpened=function(){this.overlayOpen=!0;_.E$(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.t.onPopupClosed=function(){this.overlayOpen=!1;_.E$(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.t.onPopupCanceled=function(){this.overlayOpen=!1;_.E$(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.t.computeAccessibilityLabel=function(a){return this.get("accessibility.accessibilityData.label",a)};
_.t.isHidden=function(a,W){return this.tonalOverride||!a?!0:a.fetchMenuCommand||a.isDisabled&&a.disabledCommand?!1:!(W==null?0:W.length)};
_.t.isModernOverflowHidden=function(a,W){return this.tonalOverride&&a?a.fetchMenuCommand?!1:!(W==null?0:W.length):!0};
_.t.createMenuRendererVe=function(){var a=this.data.trackingParams,W=_.nS(),w=_.eH();return a&&W&&w?(a=_.PX(a),w=_.Ob(7591),_.r("combine_ve_grafts")?_.tc(_.$J(),w,a):_.M1(W,a,w),w):null};
_.dU.Object.defineProperties(h8.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"}}}});
h8.prototype.onPopupCanceled=h8.prototype.onPopupCanceled;h8.prototype.onPopupClosed=h8.prototype.onPopupClosed;h8.prototype.onPopupOpened=h8.prototype.onPopupOpened;h8.prototype.tonalOverrideChanged=h8.prototype.tonalOverrideChanged;h8.prototype.resetFlexibleItems=h8.prototype.resetFlexibleItems;h8.prototype.setupFlexibleMenu=h8.prototype.setupFlexibleMenu;h8.prototype.iconButtonColorChanged=h8.prototype.iconButtonColorChanged;h8.prototype.updateButtonOverrides=h8.prototype.updateButtonOverrides;
_.f([_.R(_.xZ),_.z("design:type",Object)],h8.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.w$("#button-shape"),_.z("design:type",yx)],h8.prototype,"buttonShape",void 0);_.f([_.w$("#button"),_.z("design:type",Object)],h8.prototype,"button",void 0);
_.f([_.b(),_.z("design:type",Object)],h8.prototype,"data",void 0);_.f([_.b({computed:"computeTopLevelButtonData(data)"}),_.z("design:type",Array)],h8.prototype,"topLevelButtonData",void 0);_.f([_.b(),_.z("design:type",Array)],h8.prototype,"flexAsTopLevelButtons",void 0);_.f([_.b({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.z("design:type",Array)],h8.prototype,"items",void 0);_.f([_.b({value:"yt-icons:more_vert"}),_.z("design:type",String)],h8.prototype,"icon",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],h8.prototype,"safeArea",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.z("design:type",Boolean)],h8.prototype,"menuActive",void 0);_.f([_.b(),_.z("design:type",Boolean)],h8.prototype,"menuFocused",void 0);_.f([_.b({value:"bottom"}),_.z("design:type",String)],h8.prototype,"buttonTooltipPosition",void 0);_.f([_.b(),_.z("design:type",Boolean)],h8.prototype,"overlayOpen",void 0);
_.f([_.b({value:!0}),_.z("design:type",Boolean)],h8.prototype,"forceIconButton",void 0);_.f([_.b(),_.z("design:type",Boolean)],h8.prototype,"styleActionButton",void 0);_.f([_.b(),_.z("design:type",Boolean)],h8.prototype,"disableTextTransformOnButtons",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],h8.prototype,"tonalOverride",void 0);_.f([_.b(),_.z("design:type",Object)],h8.prototype,"threeDotSize",void 0);
_.f([_.b(),_.z("design:type",Object)],h8.prototype,"threeDotButtonOverride",void 0);_.f([_.b(),_.z("design:type",Object)],h8.prototype,"isOverlay",void 0);_.f([_.b(),_.z("design:type",Object)],h8.prototype,"useOverlayDark",void 0);_.f([_.b({computed:"computeButtonOverride(tonalOverride)"}),_.z("design:type",Object)],h8.prototype,"buttonOverride",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],h8.prototype,"hasCustomIconColor",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("flexAsTopLevelButtons"),_.z("design:type",Object),_.z("design:paramtypes",[])],h8.prototype,"hasFlexibleItems",null);_.f([_.b({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.z("design:type",Boolean)],h8.prototype,"hasItems",void 0);_.f([_.b(),_.z("design:type",Object)],h8.prototype,"topLevelIconsOnly",void 0);
_.f([_.a5("topLevelIconsOnly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h8.prototype,"updateButtonOverrides",null);_.f([_.Q("topLevelIconsOnly"),_.z("design:type",Object),_.z("design:paramtypes",[])],h8.prototype,"buttonOverrides",null);_.f([_.w$("#top-level-buttons-computed"),_.z("design:type",HTMLElement)],h8.prototype,"topLevelButtonsContainer",void 0);_.f([_.ZC(".top-level-buttons > *"),_.z("design:type",Array)],h8.prototype,"topLevelButtons",void 0);
_.f([_.w$("#flexible-item-buttons"),_.z("design:type",HTMLElement)],h8.prototype,"flexibleItemButtonsContainer",void 0);_.f([_.ZC("#flexible-item-buttons > *"),_.z("design:type",Array)],h8.prototype,"flexibleItemButtons",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h8.prototype,"iconButtonColorChanged",null);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h8.prototype,"setupFlexibleMenu",null);_.f([_.lO("topLevelIconsOnly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h8.prototype,"resetFlexibleItems",null);_.f([_.a5("tonalOverride"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h8.prototype,"tonalOverrideChanged",null);
_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h8.prototype,"onPopupOpened",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h8.prototype,"onPopupClosed",null);_.f([_.E6("yt-popup-canceled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h8.prototype,"onPopupCanceled",null);
_.D(h8,"ytd-menu-renderer",function(){if(QRH===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);QRH=a}a=QRH;return a},{mode:_.Vn("kevlar_poly_si_batch_j030")?1:2});var iZA;var c$6;_.z9=_.xQ(function(a){var W=a.data;var w=function(){if(W().icon)a:{var Z={iconName:W().icon};for(var N=_.K().resolve(_.ad),B=_.l([12,24]),I=B.next();!I.done;I=B.next()){var X=I.value;I=Object.assign({},Z,{iconStyle:"youtube_fill",iconSize:X});X=Object.assign({},Z,{iconStyle:"youtube_outline",iconSize:X});if(N.resolveIcon(I)){Z=I;break a}if(N.resolveIcon(X)){Z=X;break a}}Z=void 0}else Z=void 0;return Z};
a={};return _.k("badge-shape",{class:_.W$("badge-shape-wiz",function(){return p8S(W().type)},(a["badge-shape-wiz--overlay"]=function(){return W().isOverlay},a["badge-shape-wiz--ads-include-dot"]=function(){return W().adsIncludeDot},a["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(W().type){case 16:case 17:case 18:var Z=!0;
break a;default:Z=!1}return Z},a["badge-shape-wiz--status-badge"]=function(){a:switch(W().type){case 11:case 12:case 13:case 14:case 15:var Z=!0;
break a;default:Z=!1}return Z},a["badge-shape-wiz--no-text"]=function(){return!W().text},a["badge-shape-wiz--modern"]=function(){return W().modern},a)),
style:_.It({"background-color":function(){var Z;return(Z=W().customColors)==null?void 0:Z.backgroundColor}}),
role:function(){return W().accessibilityText?"img":void 0},
"aria-label":function(){return W().accessibilityText}},_.k(_.Y,{cond:function(){return W().animation},
then:function(Z){return _.k(_.w2,{className:"badge-shape-wiz__icon",data:Z,animationName:function(){return Z().animationConfig.name||""}})}}),_.k(_.Y,{cond:function(){var Z;
return w()&&!((Z=W())==null?0:Z.animation)},
then:function(){return _.k("div",{class:"badge-shape-wiz__icon"},_.k(I4U,{data:function(){return w()}}))}}),_.k("div",{class:"badge-shape-wiz__text"},function(){var Z;
return(Z=W())==null?void 0:Z.text}))},"K");
_.z9.idomCompat=!0;_.Ct(_.z9,"badge-shape",{props:{data:_.qR}});var ir=function(){var a=_.u.apply(this,arguments)||this;a.systemIcons=_.r("kevlar_system_icons");a.animated=_.r("animated_live_badge_icon");a.useBadgeShape=_.r("web_badge_shape_defrag");return a};
_.c(ir,_.u);_.t=ir.prototype;_.t.addTooltips=function(){for(var a=_.M(this.hostElement).querySelectorAll(".badge"),W=0,w;w=a[W++];){var Z=this.repeatElement.itemForElement(w);w=_.M(w);w.lastChild&&w.lastChild.is==="tp-yt-paper-tooltip"&&w.removeChild(w.lastChild);if(Z=Z.metadataBadgeRenderer&&Z.metadataBadgeRenderer.tooltip){var N=_.CN("tp-yt-paper-tooltip");(0,_.zX)(N).textContent=Z;N.setAttribute("position","top");w.appendChild(N)}}};
_.t.badgesChanged=function(){var a=this;_.F4().parkOrScheduleJob(function(){a.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.t.standaloneRoundedBadgeChanged=function(){var a=this.useRoundedBadge?this.useRoundedBadge:void 0;a&&(this.useRoundedBadge=a)};
_.t.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.t.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.t.computeStyle=function(a){_.r("enable_html5_teal_ad_badge")&&a==="BADGE_STYLE_TYPE_AD"&&(a="badge-style-type-ad-alternate");_.r("kevlar_ytb_live_badges")&&a==="BADGE_STYLE_TYPE_LIVE_NOW"&&(a="badge-style-type-live-now-alternate");return a?a.toLowerCase().replace(/_/g,"-"):""};
_.t.computeRole=function(a){return this.computeAriaLabel(a)?"img":"status"};
_.t.computeAriaLabel=function(a){var W;return(a==null?void 0:(W=a.accessibilityData)==null?void 0:W.label)||(a==null?void 0:a.label)};
_.t.computeBadgeShape=function(a){var W;if(a){var w,Z=TVx(a.style),N=KyE(a.style),B=a.label,I=((w=a.accessibilityData)==null?void 0:w.label)||a.label;a=(W=a.icon)==null?void 0:W.iconType;W={type:Z,brNzRatingBadgeType:N,text:B,accessibilityText:I,icon:a!=="PREMIUM"?a:void 0}}else W={};return W};
_.t.updateComputedBadges=function(a,W,w){var Z=this;(W=W?[W]:w?[w]:void 0)?this.computedBadges=W:this.computedBadges=a==null?void 0:a.filter(function(N){var B;if((B=N.metadataBadgeRenderer)==null?0:B.groups){B=!1;N=_.l(N.metadataBadgeRenderer.groups);for(var I=N.next();!I.done;I=N.next()){I=I.value;var X=void 0;B=B||((X=Z.hiddenBadgeGroups)==null?void 0:X.includes(I))}return!B}return!0})};
_.t.useFilledIcons=function(a){return _.r("kevlar_system_icons")&&(a==="AUDIO_BADGE"||a==="CHECK_CIRCLE_THICK"||a==="OFFICIAL_ARTIST_BADGE"||a==="SPONSORSHIP_STAR"||a==="PERSON_RADAR_FILLED"||a==="PERSON_RADAR")};
_.t.computeIcon=function(a){var W,w;a=a==null?void 0:(W=a.metadataBadgeRenderer)==null?void 0:(w=W.icon)==null?void 0:w.iconType;if(a!=="PREMIUM"&&a)return _.EN(a)};
_.t.computeStandaloneBadge=function(a){var W;a=a==null?void 0:(W=a.icon)==null?void 0:W.iconType;return a==="PREMIUM_STANDALONE"||a==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
ir.prototype.hiddenBadgeGroupsChanged=ir.prototype.hiddenBadgeGroupsChanged;ir.prototype.standaloneBadgeChanged=ir.prototype.standaloneBadgeChanged;ir.prototype.standaloneRoundedBadgeChanged=ir.prototype.standaloneRoundedBadgeChanged;ir.prototype.badgesChanged=ir.prototype.badgesChanged;_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ir.prototype,"hidden",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ir.prototype,"componentBehavior",void 0);
_.f([_.b(),_.z("design:type",Array)],ir.prototype,"badges",void 0);_.f([_.b(),_.z("design:type",Object)],ir.prototype,"topStandaloneBadge",void 0);_.f([_.b(),_.z("design:type",Object)],ir.prototype,"bottomStandaloneBadge",void 0);_.f([_.b(),_.z("design:type",Object)],ir.prototype,"computedBadges",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ir.prototype,"mediumFontAdBadge",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ir.prototype,"useRoundedBadge",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ir.prototype,"largeFontAdBadge",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ir.prototype,"overlayAd",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ir.prototype,"overlayPremium",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ir.prototype,"noDotAdBadge",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ir.prototype,"collectionTruncate",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ir.prototype,"isThumbnailBadge",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ir.prototype,"wrapBadges",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ir.prototype,"systemIcons",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ir.prototype,"animated",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ir.prototype,"useBadgeShape",void 0);_.f([_.b({value:[]}),_.z("design:type",Array)],ir.prototype,"hiddenBadgeGroups",void 0);_.f([_.w$("#repeat"),_.z("design:type",UN)],ir.prototype,"repeatElement",void 0);_.f([_.lO("badges"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ir.prototype,"badgesChanged",null);
_.f([_.lO("useRoundedBadge"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ir.prototype,"standaloneRoundedBadgeChanged",null);_.f([_.lO("topStandaloneBadge","bottomStandaloneBadge"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ir.prototype,"standaloneBadgeChanged",null);_.f([_.lO("hiddenBadgeGroups"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ir.prototype,"hiddenBadgeGroupsChanged",null);
ir=_.f([_.C({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],ir);
var eUV=_.mV()(ir,"ytd-badge-supported-renderer",function(){if(c$6===void 0){var a=document.createElement("template");_.n(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"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></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(_.y().content.cloneNode(!0),
a.content.firstChild);c$6=a}a=c$6;return a},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Vn("kevlar_poly_si_batch_j053")?1:2});var c3=function(){var a=_.u.apply(this,arguments)||this;a.iconType="STAR";a.standardizeIconSize=_.r("kevlar_system_icons");a.mediaHoverOverlayInitialVisibility=_.r("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};
_.c(c3,_.u);_.t=c3.prototype;
_.t.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"}}}};
_.t.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",c3.JSC$12432_DEFAULT_CLICK_LOCATION_BEHAVIOR,c3.JSC$12432_CLICK_LOCATION_ID_MAP))};
_.t.onTap=function(a){if(!_.r("use_on_click_for_desktop_display_ad"))this.onTapOrClick(a)};
_.t.onClick=function(a){if(_.r("use_on_click_for_desktop_display_ad"))this.onTapOrClick(a)};
_.t.onTapOrClick=function(a){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,a,!1)};
_.t.updateMediaBackgroundImage=function(){var a=this.get("data.image.thumbnail.thumbnails");a&&(a=_.G$(a,0))&&_.Hu(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+a+")"})};
_.t.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 W=this.data.impressionEndpoints[a];W.clickTrackingParams&&delete W.clickTrackingParams;_.K().resolve(_.zU).resolveCommand(W,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var w;((w=this.data)==null?0:w.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.t.handleMuteAd=function(){};
_.t.attached=function(){var a=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.dU.Object.defineProperties(c3.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.titleText)return"";var W;return _.P_("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((W=this.data)==null?void 0:W.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"}}});
c3.prototype.onClick=c3.prototype.onClick;c3.prototype.onTap=c3.prototype.onTap;c3.prototype.dataChanged=c3.prototype.dataChanged;
c3.JSC$12432_CLICK_LOCATION_ID_MAP=_.r("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"]]);
c3.JSC$12432_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.r("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"}];_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],c3.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.eN),_.z("design:type",Object)],c3.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],c3.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.m7.YtSparklesClickLocationBehavior),_.z("design:type",Object)],c3.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.R(Ae),_.z("design:type",Object)],c3.prototype,"ytdActiveViewBehavior",void 0);_.f([_.R([_.d4.YtActionHandlerBehavior]),_.z("design:type",Object)],c3.prototype,"actionHandlerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],c3.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],c3.prototype,"clickCommand",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],c3.prototype,"miniMode",void 0);_.f([_.b(),_.z("design:type",String)],c3.prototype,"iconType",void 0);_.f([_.Q("data.titleText"),_.z("design:type",String),_.z("design:paramtypes",[])],c3.prototype,"titleAriaLabel",null);
_.f([_.Q("data.rating"),_.z("design:type",Object),_.z("design:paramtypes",[])],c3.prototype,"getRating",null);_.f([_.Q("data.price"),_.z("design:type",Object),_.z("design:paramtypes",[])],c3.prototype,"getPrice",null);_.f([_.Q("data.thirdLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],c3.prototype,"getThirdLine",null);_.f([_.Q("data.fourthLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],c3.prototype,"getFourthLine",null);
_.f([_.Q("data.fifthLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],c3.prototype,"getFifthLine",null);_.f([_.Q("getRating"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c3.prototype,"computeRatingHidden",null);_.f([_.Q("getPrice"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c3.prototype,"computePriceHidden",null);_.f([_.Q("getThirdLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c3.prototype,"computeThirdLineHidden",null);
_.f([_.Q("getFourthLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c3.prototype,"computeFourthLineHidden",null);_.f([_.Q("getFifthLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c3.prototype,"computeFifthLineHidden",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.energyIcon"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c3.prototype,"hasEnergyIcon",null);
_.f([_.Q("computePriceHidden","computeRatingHidden"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c3.prototype,"computeSecondaryTextHidden",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],c3.prototype,"standardizeIconSize",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],c3.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],c3.prototype,"noBottomMargin",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.layout"),_.z("design:type",String),_.z("design:paramtypes",[])],c3.prototype,"layout",null);_.f([_.Q("data.layout"),_.z("design:type",Object),_.z("design:paramtypes",[])],c3.prototype,"mediaThumbnailWidth",null);_.f([_.Q("layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c3.prototype,"useRoundedBadge",null);_.f([_.b(),_.z("design:type",String)],c3.prototype,"thumbnailObjectFit",void 0);
_.f([_.b(),_.z("design:type",Object)],c3.prototype,"thumbnailFitHeight",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],c3.prototype,"dataChanged",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],c3.prototype,"onTap",null);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],c3.prototype,"onClick",null);
c3=_.f([_.C({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],c3);
_.D(c3,"ytd-display-ad-renderer",function(){if(iZA!==void 0)return iZA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return iZA=a},{mode:1});var nLL;var jWJ;var LDl;var rWU=new Map;var J$V=!1;var eO=function(){var a=_.u.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};
_.c(eO,_.u);_.t=eO.prototype;_.t.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.t.attached=function(){var a=this;this.observer=new MutationObserver(function(W,w){a.handleResized();w.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.t.detached=function(){this.observer&&this.observer.disconnect()};
_.t.logTooltipEvent=function(){_.r("kevlar_wiz_tooltip_event_killswitch")||J$V||(_.AWx("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),J$V=!0)};
_.t.handleWindowResized=function(){this.handleResized()};
_.t.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")))};
_.t.onHeightChanged=function(){if(this.verified){var a=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.LF("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=a:this.textContainerEl.style.marginRight=a}};
_.t.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.LF("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.t.handleResized=function(){var a=this;this.verified&&_.hF.addLowPriorityJob(function(){a.fitBackgroundToText();var W=getComputedStyle(a.hostElement).lineHeight;W&&(W=W.match(/\d+/))&&W.length&&(a.lineHeight=Number(W[0]));a.height=a.lineHeight&&!a.wrapText?a.lineHeight:a.textEl.offsetHeight})};
_.t.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var a=document.createRange(),W=_.M(this.textEl).children;W.length>0?a.selectNodeContents(W[0]):a.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(a.getBoundingClientRect().width)+"px"}};
_.t.computeChannelBadgeStyle=function(a){var W;if((a==null?0:(W=a.runs)==null?0:W.length)&&a.runs[0].textColor)return"--ytd-badge-icon-color:"+_.KC(a.runs[0].textColor)+";"};
_.dU.Object.defineProperties(eO.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"?_.b8(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 _.sd(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
eO.prototype.onLineHeightChanged=eO.prototype.onLineHeightChanged;eO.prototype.onHeightChanged=eO.prototype.onHeightChanged;eO.prototype.onChannelNameChanged=eO.prototype.onChannelNameChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],eO.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],eO.prototype,"badges",void 0);_.f([_.b(),_.z("design:type",Object)],eO.prototype,"channelName",void 0);
_.f([_.b(),_.z("design:type",Object)],eO.prototype,"noEndpoints",void 0);_.f([_.b(),_.z("design:type",Object)],eO.prototype,"wrapText",void 0);_.f([_.b(),_.z("design:type",Object)],eO.prototype,"forceVerified",void 0);_.f([_.b(),_.z("design:type",Object)],eO.prototype,"tooltipPosition",void 0);_.f([_.b(),_.z("design:type",String)],eO.prototype,"tooltip",void 0);_.f([_.b(),_.z("design:type",Boolean)],eO.prototype,"hasChannelArt",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],eO.prototype,"compactStyle",void 0);_.f([_.w$("#text-container"),_.z("design:type",HTMLElement)],eO.prototype,"textContainerEl",void 0);_.f([_.w$("#text"),_.z("design:type",Object)],eO.prototype,"textEl",void 0);_.f([_.w$("#verified-tooltip"),_.z("design:type",HTMLElement)],eO.prototype,"verifiedTooltip",void 0);_.f([_.b(),_.z("design:type",Object)],eO.prototype,"height",void 0);
_.f([_.b(),_.z("design:type",Object)],eO.prototype,"lineHeight",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("badges","forceVerified"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],eO.prototype,"verified",null);_.f([_.Q("badges","verified"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],eO.prototype,"hideBadges",null);_.f([_.Q("channelName"),_.z("design:type",Object),_.z("design:paramtypes",[])],eO.prototype,"formattedName",null);
_.f([_.Q("badges","verified","formattedName"),_.z("design:type",String),_.z("design:paramtypes",[])],eO.prototype,"tooltipText",null);_.f([_.Q("hasChannelArt"),_.z("design:type",String),_.z("design:paramtypes",[])],eO.prototype,"tooltipOffset",null);_.f([_.a5("channelName"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eO.prototype,"onChannelNameChanged",null);
_.f([_.a5("height"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eO.prototype,"onHeightChanged",null);_.f([_.a5("lineHeight","height"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eO.prototype,"onLineHeightChanged",null);eO=_.f([_.C({is:"ytd-channel-name",disableElementRegistration:!0})],eO);
_.D(eO,"ytd-channel-name",function(){if(LDl!==void 0)return LDl;var a=document.createElement("template");_.n(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 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(_.y().content.cloneNode(!0),
a.content.firstChild);return LDl=a},{mode:_.Vn("kevlar_poly_si_batch_j036")?1:2});var nG=function(){var a=_.u.apply(this,arguments)||this;a.standardizeIconSize=_.r("kevlar_system_icons");a.enableModernCommentBadges=_.r("enable_modern_comment_badges");return a};
_.c(nG,_.u);nG.prototype.basicPaletteChanged=function(){var a;(a=this.data.color)!=null&&a.basicColorPaletteData&&_.Tw(this.hostElement,this.data.color.basicColorPaletteData)};
nG.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var a,W=this.get("basicColorPaletteData.backgroundColor",(a=this.data)==null?void 0:a.color),w;a=this.get("basicColorPaletteData.foregroundTitleColor",(w=this.data)==null?void 0:w.color);w={};W?(W=_.KC(W),w["--ytd-author-comment-badge-background-color"]=W):(w["--ytd-author-comment-badge-icon-background-color"]="transparent",w["--ytd-author-comment-badge-background-color"]="transparent");a?(W=_.KC(a),w["--ytd-author-comment-badge-name-color"]=
W,w["--ytd-author-comment-badge-icon-color"]=W):w["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(w).length>0&&_.Hu(this.hostElement,w)}};
nG.prototype.useFilledIcons=function(a){return _.r("kevlar_system_icons")&&(a==="CHECK_CIRCLE_THICK"||a==="OFFICIAL_ARTIST_BADGE")};
_.dU.Object.defineProperties(nG.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
nG.prototype.colorChanged=nG.prototype.colorChanged;nG.prototype.basicPaletteChanged=nG.prototype.basicPaletteChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],nG.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],nG.prototype,"standardizeIconSize",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nG.prototype,"enableModernCommentBadges",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.authorUnifiedVerified"),_.z("design:type",Object),_.z("design:paramtypes",[])],nG.prototype,"verified",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],nG.prototype,"creator",null);_.f([_.a5("data.color.basicColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nG.prototype,"basicPaletteChanged",null);
_.f([_.a5("data.color"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nG.prototype,"colorChanged",null);nG=_.f([_.C({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],nG);
_.D(nG,"ytd-author-comment-badge-renderer",function(){if(jWJ!==void 0)return jWJ;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return jWJ=a},{mode:1});var FDh;var jO=function(){return _.u.apply(this,arguments)||this};
_.c(jO,_.u);jO.prototype.computeThumbnailWidth=function(a){if(a==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],jO.prototype,"data",void 0);_.f([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],jO.prototype,"icon",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],jO.prototype,"surface",void 0);
_.f([_.b({reflectToAttribute:!0,value:_.r("enable_shrink_image_size_on_web_posts_singleton")}),_.z("design:type",Boolean)],jO.prototype,"searchSxsUx",void 0);jO=_.f([_.C({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],jO);
_.D(jO,"ytd-backstage-image-renderer",function(){if(FDh!==void 0)return FDh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return FDh=a},{mode:1});var MzL;var LG=function(){var a=_.u.apply(this,arguments)||this;a.isLoading=!1;a.selectedItemIndex=-1;return a};
_.c(LG,_.u);_.t=LG.prototype;_.t.computeIsChannelOwner=function(a){if(!a)return!0;a=a[0];return!(a&&(a.signinEndpoint||a.selectServiceEndpoint))};
_.t.computeIsImagePoll=function(a){return(a==null?void 0:a.type)==="POLL_TYPE_IMAGE"};
_.t.computeIsTotalVotesDisabled=function(a){return!(a==null?0:a.totalVotes)};
_.t.thumbnailSrc=function(a){var W,w,Z,N;return(a==null?0:(W=a.thumbnails)==null?0:(w=W[0])==null?0:w.url)?_.SB((Z=a.thumbnails)==null?void 0:(N=Z[0])==null?void 0:N.url):void 0};
_.t.progressWidth=function(a){return"width:"+(a?a*100:0)+"%;"};
_.t.textAreaWidth=function(a){return this.isImagePoll?null:"width:"+(a?a*100:0)+"%;"};
_.t.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.t.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var a=this.data.choices,W=0;W<a.length;W++)if(a[W].selected){this.selectedItemIndex=W;break}};
_.t.onPopupClosed=function(a,W){a=Number(this.pollVotes.selected);W.confirmed&&(this.selectChoice(a,!1),_.aV(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.t.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.t.onYtCommentPollRevert=function(a,W){W&&(this.selectChoice(W.selectedChoiceIndex,!0),this.set("data.totalVotes",W.totalVotes))};
_.t.onYtServiceRequestSent=function(a,W){if(W.actions)for(a=0;a<W.actions.length;a++){var w=W.actions[a];_.A(w,r7)&&this.set("data.totalVotes",_.A(w,r7).totalVotes)}};
_.t.onYtServiceRequestCompleted=function(a){var W=this.get("detail.data.actionResults.0.feedback",a);a=this.get("detail.data.actionResults.0.status",a);if(W==="FEEDBACK_DESELECT"||W==="FEEDBACK_SELECT")this.isLoading=!1,a==="STATUS_FAILED"?_.E$(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.t.getEndpoint=function(a,W){return W===a?this.data.choices[W].deselectServiceEndpoint||null:this.data.choices[a].selectServiceEndpoint||null};
_.t.selectChoice=function(a,W){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var w=0;w<this.data.choices.length;w++){var Z;if(a===this.selectedItemIndex){var N=!1;var B=Z=null}else Z=(N=w===a)?this.data.choices[w].voteRatioIfSelected:this.data.choices[w].voteRatioIfNotSelected,B=N?this.data.choices[w].votePercentageIfSelected:this.data.choices[w].votePercentageIfNotSelected;this.set("data.choices."+w+".voteRatio",Z);
this.set("data.choices."+w+".votePercentage",B);this.set("data.choices."+w+".selected",N)}W||(this.isLoading=!0,(W=this.getEndpoint(a,this.selectedItemIndex))&&_.K().resolve(_.zU).resolveCommand(W,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===a?-1:a};
_.dU.Object.defineProperties(LG.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
LG.prototype.onYtServiceRequestCompleted=LG.prototype.onYtServiceRequestCompleted;LG.prototype.onYtServiceRequestSent=LG.prototype.onYtServiceRequestSent;LG.prototype.onYtCommentPollRevert=LG.prototype.onYtCommentPollRevert;LG.prototype.onPopupClosed=LG.prototype.onPopupClosed;LG.prototype.dataChanged=LG.prototype.dataChanged;_.f([_.R(_.dl),_.z("design:type",Object)],LG.prototype,"paperItemBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],LG.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],LG.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],LG.prototype,"isLoading",void 0);_.f([_.b({computed:"computeIsChannelOwner(data.choices)"}),_.z("design:type",Boolean)],LG.prototype,"isChannelOwner",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.z("design:type",Boolean)],LG.prototype,"isImagePoll",void 0);_.f([_.b({computed:"computeIsTotalVotesDisabled(data)"}),_.z("design:type",Boolean)],LG.prototype,"isTotalVotesDisabled",void 0);_.f([_.b(),_.z("design:type",Object)],LG.prototype,"previousPollInfo",void 0);_.f([_.b(),_.z("design:type",Object)],LG.prototype,"selectedItemIndex",void 0);_.f([_.w$("#poll-votes"),_.z("design:type",Object)],LG.prototype,"pollVotes",void 0);
_.f([_.Q("isChannelOwner"),_.z("design:type",Object),_.z("design:paramtypes",[])],LG.prototype,"endpointStyle",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LG.prototype,"dataChanged",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],LG.prototype,"onPopupClosed",null);
_.f([_.E6("yt-comment-poll-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],LG.prototype,"onYtCommentPollRevert",null);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],LG.prototype,"onYtServiceRequestSent",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],LG.prototype,"onYtServiceRequestCompleted",null);LG=_.f([_.C({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],LG);
_.D(LG,"ytd-backstage-poll-renderer",function(){if(MzL!==void 0)return MzL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return MzL=a},{mode:2});var RUL;var qGV={autoplay:!1,loop:!1},QWH={simpleText:""},J8=function(){var a=_.u.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"},qGV,{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"},qGV,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});a.correctnessAnimationProps=[];a.correctnessAnimationRefs=[];return a};
_.c(J8,_.u);_.t=J8.prototype;_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.t.computeIsChannelOwner=function(a){if(!a)return!0;a=a[0];return!(a&&(a.signinEndpoint||a.selectServiceEndpoint))};
_.t.computeIsTotalVotesDisabled=function(a){return!(a==null?0:a.totalVotes)};
_.t.computeIsImageQuiz=function(a){return(a==null?void 0:a.type)==="POLL_TYPE_IMAGE"};
_.t.onExplanationChanged=function(){this.expander.reset()};
_.t.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var a=this.data.choices;if(a){this.maybeInitializeQuizLotties(a);for(var W=0;W<a.length;W++)if(a[W].isSelected||this.isChannelOwner&&a[W].isCorrect){this.selectedItemIndex=W;return}this.selectedItemIndex=-1}}};
_.t.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var a=this.selectedItemIndex,W=Number(this.quizVotes.selected);this.selectChoice(W);this.sendVoteAction(W,a);this.quizVotes.selected=-1;var w;a=!((w=this.data)==null?0:w.enableAnimation);this.maybePlayAnswerAnimations(a)}};
_.t.onYtCommentPollRevert=function(a,W){W&&(this.selectChoice(W.selectedChoiceIndex),this.set("data.totalVotes",W.totalVotes))};
_.t.onYtServiceRequestSent=function(a,W){if(W.actions)for(a=_.l(W.actions),W=a.next();!W.done;W=a.next())(W=_.A(W.value,r7))&&this.set("data.totalVotes",W.totalVotes)};
_.t.onYtServiceRequestCompleted=function(a){var W=this.get("detail.data.actionResults.0.feedback",a);a=this.get("detail.data.actionResults.0.status",a);if(W==="FEEDBACK_DESELECT"||W==="FEEDBACK_SELECT")this.isLoading=!1,a==="STATUS_FAILED"?_.E$(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.t.getAnimationPropsForChoiceIndex=function(a,W){return W[a]};
_.t.maybePlayAnswerAnimations=function(a){a=a===void 0?!1:a;var W;if((W=this.data)!=null&&W.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){W=_.l(this.correctnessAnimationRefs);for(var w=W.next();!w.done;w=W.next()){var Z=void 0,N=void 0;(Z=w.value)==null||(N=Z.lottieEl)==null||N.stop()}if(!(this.selectedItemIndex<0)){W=0;a&&(W=this.isCorrect?37:25);var B,I;(B=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(I=B.lottieEl)==null||I.goToAndPlay(a?W:0,!0);if(!(this.isCorrect||
(B=this.data.choices.findIndex(function(O){return O.isCorrect}),B<0))){var X,v;
(v=(X=this.correctnessAnimationRefs[B])==null?void 0:X.lottieEl)==null||v.goToAndPlay(37,!0);var U;X=(U=this.fadeContainers)==null?void 0:U.item(B);!a&&X&&this.fadeIn(X)}}}};
_.t.thumbnailSrc=function(a){var W,w,Z,N;return(a==null?0:(W=a.thumbnails)==null?0:(w=W[0])==null?0:w.url)?_.SB((Z=a.thumbnails)==null?void 0:(N=Z[0])==null?void 0:N.url):void 0};
_.t.a11yVotedText=function(a,W){var w,Z,N=((w=this.data)==null?void 0:(Z=w.correctVotedText)==null?void 0:Z.simpleText)||"",B,I;w=((B=this.data)==null?void 0:(I=B.votedText)==null?void 0:I.simpleText)||"";if(!W)return"";var X,v;if((X=this.data)==null?0:(v=X.choices)==null?0:v[a].isCorrect)return N;var U,O;return((U=this.data)==null?0:(O=U.choices)==null?0:O[a].isSelected)?w:""};
_.t.getEndpoint=function(a,W){return W===a?this.data.choices[a].deselectServiceEndpoint||null:this.data.choices[a].selectServiceEndpoint||null};
_.t.sendVoteAction=function(a,W){if(a=this.getEndpoint(a,W))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(a)};
_.t.selectChoice=function(a){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var W=0;W<this.data.choices.length;W++)this.set("data.choices."+W+".isSelected",a===this.selectedItemIndex?!1:W===a);this.selectedItemIndex=this.selectedItemIndex===a?-1:a};
_.t.maybeInitializeQuizLotties=function(a){var W=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(w){return{animationConfig:w.isCorrect?W.baseCorrectLottiePlayerAnimationConfig:W.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){W.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(w){return w.animationRef||{}})};
_.t.fadeIn=function(a){a.classList.add("fade-in");_.mY(_.hF,function(){a.classList.remove("fade-in")},900)};
_.dU.Object.defineProperties(J8.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.sd(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,W;return((a=this.data)==null?void 0:(W=a.choices)==null?void 0:W.some(function(w){return w.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?QWH:this.data.choices[this.selectedItemIndex].explanation||QWH}},
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}}});
J8.prototype.onYtServiceRequestCompleted=J8.prototype.onYtServiceRequestCompleted;J8.prototype.onYtServiceRequestSent=J8.prototype.onYtServiceRequestSent;J8.prototype.onYtCommentPollRevert=J8.prototype.onYtCommentPollRevert;J8.prototype.dataChanged=J8.prototype.dataChanged;J8.prototype.onExplanationChanged=J8.prototype.onExplanationChanged;_.f([_.R(_.dl),_.z("design:type",Object)],J8.prototype,"paperItemBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],J8.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.ui.YtTaskEmitterBehavior),_.z("design:type",Object)],J8.prototype,"ytTaskEmitterBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],J8.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],J8.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],J8.prototype,"isLoading",void 0);_.f([_.b(),_.z("design:type",Object)],J8.prototype,"usesPanelLockup",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.z("design:type",Boolean)],J8.prototype,"isChannelOwner",void 0);_.f([_.b({computed:"computeIsTotalVotesDisabled(data)"}),_.z("design:type",Boolean)],J8.prototype,"isTotalVotesDisabled",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.z("design:type",Boolean)],J8.prototype,"isImageQuiz",void 0);_.f([_.b(),_.z("design:type",Object)],J8.prototype,"previousQuizInfo",void 0);_.f([_.b(),_.z("design:type",Object)],J8.prototype,"selectedItemIndex",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data","usesPanelLockup"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],J8.prototype,"shouldUseModernUi",null);
_.f([_.ZC(".fade-container"),_.z("design:type",Object)],J8.prototype,"fadeContainers",void 0);_.f([_.b(),_.z("design:type",Array)],J8.prototype,"correctnessAnimationProps",void 0);_.f([_.Q("explanation","showCorrectAnswer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],J8.prototype,"showExplanation",null);_.f([_.Q("isChannelOwner","isAttempted"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],J8.prototype,"showCorrectAnswer",null);
_.f([_.Q("isChannelOwner","isAttempted","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],J8.prototype,"isQuizAnsweringDisabled",null);_.f([_.Q("isQuizAnsweringDisabled"),_.z("design:type",Object),_.z("design:paramtypes",[])],J8.prototype,"endpointStyle",null);_.f([_.Q("data","selectedItemIndex"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],J8.prototype,"isAttempted",null);
_.f([_.Q("data","selectedItemIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],J8.prototype,"explanation",null);_.f([_.Q("data","selectedItemIndex"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],J8.prototype,"isCorrect",null);_.f([_.w$("ytd-expander"),_.z("design:type",Object)],J8.prototype,"expander",void 0);_.f([_.w$("#quiz-votes"),_.z("design:type",Object)],J8.prototype,"quizVotes",void 0);
_.f([_.a5("explanation"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],J8.prototype,"onExplanationChanged",null);_.f([_.a5("data","isChannelOwner"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],J8.prototype,"dataChanged",null);_.f([_.E6("yt-comment-quiz-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],J8.prototype,"onYtCommentPollRevert",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],J8.prototype,"onYtServiceRequestSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],J8.prototype,"onYtServiceRequestCompleted",null);J8=_.f([_.C({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],J8);
_.D(J8,"ytd-backstage-quiz-renderer",function(){if(RUL!==void 0)return RUL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return RUL=a},{mode:1});var xWy;var FC=function(){return _.u.apply(this,arguments)||this};
_.c(FC,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],FC.prototype,"data",void 0);FC=_.f([_.C({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],FC);
_.D(FC,"ytd-post-uploaded-video-renderer",function(){if(xWy!==void 0)return xWy;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return xWy=a},{mode:1});var bZR;var MQ=function(){return _.u.apply(this,arguments)||this};
_.c(MQ,_.u);MQ.prototype.useFilledIcons=function(a){return a==="SPONSORSHIP_STAR"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],MQ.prototype,"data",void 0);MQ=_.f([_.C({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],MQ);
_.D(MQ,"ytd-sponsors-only-badge-renderer",function(){if(bZR!==void 0)return bZR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return bZR=a},{mode:1});var sWh;var R4=function(){return _.u.apply(this,arguments)||this};
_.c(R4,_.u);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],R4.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],R4.prototype,"data",void 0);R4=_.f([_.C({is:"ytd-child-video-renderer",disableElementRegistration:!0})],R4);
_.D(R4,"ytd-child-video-renderer",function(){if(sWh!==void 0)return sWh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return sWh=a},{mode:1});var u1T;var CZ$;var qQ=function(){var a=_.u.apply(this,arguments)||this;a.size=0;a.enableWebModernCollectionsV2=_.r("web_modern_collections_v2");a.fallbackImageSize={height:void 0,width:9999};a.webModernCollections=!1;return a};
_.c(qQ,_.u);_.t=qQ.prototype;_.t.computeBlurredImageSize=function(a){return a?{height:a*2,width:a*2}:this.fallbackImageSize};
_.t.computeImageSize=function(a){return a?{height:a,width:a}:this.fallbackImageSize};
_.t.computeObjectFit=function(a){return a?"FILL":"CONTAIN"};
_.t.computePreserve=function(a){return a?!0:!1};
_.t.setBackground=function(){var a,W;_.r("web_modern_collections_v2")&&((a=this.data)==null?0:(W=a.thumbnail)==null?0:W.sampledThumbnailColor)&&(a=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+a.red+","+a.green+","+a.blue+",1)")};
qQ.prototype.setBackground=qQ.prototype.setBackground;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],qQ.prototype,"watchFeedThumbnail",void 0);_.f([_.b(),_.z("design:type",Object)],qQ.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],qQ.prototype,"size",void 0);
_.f([_.b({computed:"computeBlurredImageSize(size)"}),_.z("design:type",Object)],qQ.prototype,"blurredImageSize",void 0);_.f([_.b({computed:"computeImageSize(size)"}),_.z("design:type",Object)],qQ.prototype,"imageSize",void 0);_.f([_.b({computed:"computePreserve(size)"}),_.z("design:type",String)],qQ.prototype,"preserve",void 0);_.f([_.b({computed:"computeObjectFit(size)"}),_.z("design:type",String)],qQ.prototype,"objectFit",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],qQ.prototype,"enableWebModernCollectionsV2",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qQ.prototype,"webModernCollections",void 0);_.f([_.a5("data.thumbnail.sampledThumbnailColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qQ.prototype,"setBackground",null);qQ=_.f([_.C({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],qQ);
_.D(qQ,"ytd-playlist-custom-thumbnail-renderer",function(){if(CZ$!==void 0)return CZ$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return CZ$=a},{mode:1});var G7V;var Q5=function(){return _.u.apply(this,arguments)||this};
_.c(Q5,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Q5.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Number)],Q5.prototype,"width",void 0);Q5=_.f([_.C({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Q5);
_.D(Q5,"ytd-playlist-video-thumbnail-renderer",function(){if(G7V!==void 0)return G7V;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return G7V=a},{mode:1});var DWh;var xt=function(){return _.u.apply(this,arguments)||this};
_.c(xt,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xt.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Number)],xt.prototype,"width",void 0);xt=_.f([_.C({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],xt);
_.D(xt,"ytd-show-custom-thumbnail-renderer",function(){if(DWh!==void 0)return DWh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return DWh=a},{mode:1});var fx$;var br=function(){return _.u.apply(this,arguments)||this};
_.c(br,_.u);br.prototype.useFilledIcons=function(a){return a==="MUSIC"||a==="COURSE"};
br.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=ri(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)"}};
_.dU.Object.defineProperties(br.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)}}});
br.prototype.overlayColorChanged=br.prototype.overlayColorChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],br.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],br.prototype,"overlayColor",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data.icon","data.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],br.prototype,"overlayStyle",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.icon","data.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],br.prototype,"overlayTextStyle",null);_.f([_.a5("overlayColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],br.prototype,"overlayColorChanged",null);br=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],br);
_.D(br,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(fx$!==void 0)return fx$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return fx$=a},{mode:1});var dWH;var sY=function(){var a=_.u.apply(this,arguments)||this;a.active=!1;return a};
_.c(sY,_.u);sY.prototype.computeIsSpinnerHidden=function(a){return(a==null?void 0:a.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
sY.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"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sY.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],sY.prototype,"active",void 0);sY=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],sY);
_.D(sY,"ytd-thumbnail-overlay-downloading-renderer",function(){if(dWH!==void 0)return dWH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return dWH=a},{mode:1});var mW_;var ur=function(){return _.u.apply(this,arguments)||this};
_.c(ur,_.u);_.dU.Object.defineProperties(ur.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ur.prototype,"data",void 0);_.f([_.Q("data.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],ur.prototype,"text",null);ur=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],ur);
_.D(ur,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(mW_!==void 0)return mW_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return mW_=a},{mode:1});var VzJ,zU$=function(){if(VzJ!==void 0)return VzJ;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return VzJ=a};var CG=function(){return _.u.apply(this,arguments)||this};
_.c(CG,_.u);_.dU.Object.defineProperties(CG,{template:{configurable:!0,enumerable:!0,get:function(){return zU$()}}});
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],CG.prototype,"animateEqualizer",void 0);CG=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],CG);_.mV()(CG,"ytd-thumbnail-overlay-equalizer",function(){return zU$()},{allowedProps:["animateEqualizer"],
mode:1});var HZ$;var GA=function(){var a=_.u.apply(this,arguments)||this;a.nowPlayingBadge=_.r("web_now_playing_badge");a.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return a};
_.c(GA,_.u);GA.prototype.activeChanged=function(){var a=this;_.r("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.DW(this,function(){_.E$(a.hostElement,"yt-playlist-lockup-now-playing-active",a)})};
GA.prototype.onMiniplayerPlayStateChanged=function(a){var W,w=(W=_.A(_.vE().currentEndpoint,_.u6))==null?void 0:W.videoId;this.isVideoPlaying=a&&(_.r("web_limit_now_playing_animation_killswitch")||this.videoId===w)};
GA.prototype.activeChanged=GA.prototype.activeChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],GA.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],GA.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],GA.prototype,"isVideoPlaying",void 0);_.f([_.b(),_.z("design:type",String)],GA.prototype,"videoId",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],GA.prototype,"equalizerOnly",void 0);_.f([_.b(),_.z("design:type",Boolean)],GA.prototype,"isActive",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],GA.prototype,"nowPlayingBadge",void 0);_.f([_.a5("isActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GA.prototype,"activeChanged",null);
GA=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],GA);
_.D(GA,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(HZ$!==void 0)return HZ$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return HZ$=a},{mode:1});var y$_;var Dq=function(){return _.u.apply(this,arguments)||this};
_.c(Dq,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Dq.prototype,"data",void 0);Dq=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Dq);
_.D(Dq,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(y$_!==void 0)return y$_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return y$_=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var EL$;var fG=function(){return _.u.apply(this,arguments)||this};
_.c(fG,_.u);fG.prototype.onDurationChanged=function(){var a,W;_.M(this.hostElement).querySelector("#progress").style.width=((W=(a=this.data)==null?void 0:a.percentDurationWatched)!=null?W:0)+"%"};
fG.prototype.onDurationChanged=fG.prototype.onDurationChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],fG.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],fG.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],fG.prototype,"isLive",void 0);_.f([_.a5("data.percentDurationWatched"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fG.prototype,"onDurationChanged",null);
fG=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],fG);
_.D(fG,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(EL$!==void 0)return EL$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return EL$=a},{mode:1});var any;var dy=function(){var a=_.u.apply(this,arguments)||this;a.bottomPanel=!1;a.richGridOverlay=!1;a.watchFeedOverlay=!1;a.isCompact=!1;return a};
_.c(dy,_.u);dy.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.dU.Object.defineProperties(dy.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.data)==null?void 0:(W=a.icon)==null?void 0:W.iconType)==="PLAY_ALL"&&_.r("kevlar_system_icons")}}});
dy.prototype.widthChanged=dy.prototype.widthChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],dy.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Number)],dy.prototype,"width",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dy.prototype,"bottomPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dy.prototype,"richGridOverlay",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dy.prototype,"watchFeedOverlay",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dy.prototype,"isCompact",void 0);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],dy.prototype,"isIconFilled",null);_.f([_.a5("width","watchFeedOverlay"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dy.prototype,"widthChanged",null);
dy=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],dy);
_.D(dy,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(any!==void 0)return any;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return any=a},{mode:1});var Wy_;var w8e=["CLIP","SHORTS"],mx=function(){var a=_.u.apply(this,arguments)||this;a.animated=_.r("animated_live_badge_icon");a.hasIcon=!1;a.updateTimerIntervalId=0;a.timeSinceLive=0;return a};
_.c(mx,_.u);_.t=mx.prototype;_.t.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.t.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.t.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.t.hasIconOrText=function(){var a,W;return!!(((a=this.data)==null?0:a.icon)||((W=this.data)==null?0:W.text))};
_.t.initializeLiveBadgeTimer=function(){var a=this,W,w=(W=this.liveBadgeData)==null?void 0:W.startTimestampSec;if(w&&this.canShowLiveBadgeTimer()){var Z;W=Number((Z=this.liveBadgeData)==null?void 0:Z.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(w);this.updateTimerIntervalId=_.Zp(function(){a.canShowLiveBadgeTimer()?a.timeSinceLive++:(a.timeSinceLive=0,window.clearInterval(a.updateTimerIntervalId))},W)}else this.timeSinceLive=0};
_.t.canShowLiveBadgeTimer=function(){var a=Date.now(),W,w;return a<(Number((W=this.liveBadgeData)==null?void 0:W.endTimestampSec)-1)*1E3&&a>Number((w=this.liveBadgeData)==null?void 0:w.startTimestampSec)*1E3};
_.dU.Object.defineProperties(mx.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data;var W=this.timeSinceLive;var w,Z,N,B;a:{var I=a.style;if(I===void 0)I=16;else switch(I){case "LIVE":I=17;break a;default:I=16}}W={type:I,text:W?aJS({seconds:W}):_.sd(a.text),accessibilityText:(w=a.text)==null?void 0:(Z=w.accessibility)==null?void 0:(N=Z.accessibilityData)==null?void 0:N.label,icon:(B=a.icon)==null?void 0:B.iconType}}else W={};return W}},
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 w8e.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
mx.prototype.initializeLiveBadgeTimer=mx.prototype.initializeLiveBadgeTimer;mx.prototype.dataChanged=mx.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],mx.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],mx.prototype,"data",void 0);_.f([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],mx.prototype,"icon",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],mx.prototype,"animated",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.z("design:type",Boolean)],mx.prototype,"hideTimeStatus",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mx.prototype,"hasIcon",void 0);_.f([_.b(),_.z("design:type",Object)],mx.prototype,"timeSinceLive",void 0);_.f([_.Q("data","timeSinceLive"),_.z("design:type",Object),_.z("design:paramtypes",[])],mx.prototype,"badgeShapeData",null);
_.f([_.Q("data","overlayType"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mx.prototype,"hideBadgeShape",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mx.prototype,"dataChanged",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.style"),_.z("design:type",Object),_.z("design:paramtypes",[])],mx.prototype,"overlayStyle",null);
_.f([_.Q("data.liveBadgeData"),_.z("design:type",Object),_.z("design:paramtypes",[])],mx.prototype,"liveBadgeData",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.type"),_.z("design:type",Object),_.z("design:paramtypes",[])],mx.prototype,"overlayType",null);_.f([_.Q("overlayType","overlayStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mx.prototype,"useFilledIcon",null);
_.f([_.lO("liveBadgeData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mx.prototype,"initializeLiveBadgeTimer",null);mx=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],mx);
_.D(mx,"ytd-thumbnail-overlay-time-status-renderer",function(){if(Wy_!==void 0)return Wy_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Wy_=a},{mode:_.Vn("kevlar_poly_si_batch_j035")?1:2});var ZcT;var V5=function(){return _.u.apply(this,arguments)||this};
_.c(V5,_.u);V5.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"}}}}};
V5.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(a){if(this.hasPlaybackProgressBar)return{percentDurationWatched:a.percentDurationWatched}};
V5.prototype.computeHasPlaybackProgressBar=function(a){return!!a.percentDurationWatched&&a.percentDurationWatched>0};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],V5.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],V5.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.z("design:type",Boolean)],V5.prototype,"hasPlaybackProgressBar",void 0);
V5=_.f([_.C({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],V5);
_.D(V5,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(ZcT!==void 0)return ZcT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ZcT=a},{mode:1});var NVE;_.En(cWF);var tol=_.xQ(function(a){var W=a.data;var w=a.children;var Z=function(){return!!W().doubleStack};
return _.k("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!W().experimentEnabled}},_.k(_.Y,{cond:W,
then:function(){return _.k("div",null,_.k(_.Y,{cond:Z,then:function(){var N={};return _.k("div",{class:_.W$("collections-stack-wiz__collection-stack2",function(){return W().customClassName2ndStack},(N["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return W().enableResponsiveMode},N)),
style:_.It({"background-color":function(){return hbF(W())}})})}}),_.k("div",{class:_.W$("collections-stack-wiz__collection-stack1",function(){return W().customClassName1stStack},function(){return icE(W().thumbnailSize?W().thumbnailSize:"medium")}),
style:_.It({"background-color":function(){return hbF(W())}})}),w)}}))},"L");_.Ct(tol,"yt-collections-stack",{props:{data:_.qR}});var zA=function(){var a=_.u.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=_.r("web_modern_collections_v2");return a};
_.c(zA,_.u);_.t=zA.prototype;
_.t.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]]"}}}}}};
_.t.getThumbnailDetails=function(a){if(a!=null&&a.thumbnailRenderer){var W=a.thumbnailRenderer,w;if((w=W.playlistVideoThumbnailRenderer)==null?0:w.thumbnail)return W.playlistVideoThumbnailRenderer.thumbnail;var Z;if((Z=W.playlistCustomThumbnailRenderer)==null?0:Z.thumbnail)return W.playlistCustomThumbnailRenderer.thumbnail;a=a.thumbnailRenderer;var N;if((N=a.showCustomThumbnailRenderer)==null?0:N.thumbnail)return a.showCustomThumbnailRenderer.thumbnail}};
_.t.computeOverlayColor=function(a){var W,w;if((W=this.getThumbnailDetails(a))==null?0:(w=W.darkColorPalette)==null?0:w.section2Color)return this.getThumbnailDetails(a).darkColorPalette.section2Color;var Z;return(Z=this.getThumbnailDetails(a))==null?void 0:Z.sampledThumbnailColor};
_.t.computeWebModernCollections=function(a){if(a==null||!a.thumbnailOverlays)return!1;a=_.l(a.thumbnailOverlays);for(var W=a.next();!W.done;W=a.next()){var w=void 0;if((w=W.value)==null?0:w.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.t.computeNavigationEndpoint=function(a){return NqC(a==null?void 0:a.navigationEndpoint)};
_.dU.Object.defineProperties(zA.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}}}});
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],zA.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(IOR),_.z("design:type",Object)],zA.prototype,"ytdThumbnailBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],zA.prototype,"componentBehavior",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],zA.prototype,"watchFeedThumbnail",void 0);_.f([_.b(),_.z("design:type",Number)],zA.prototype,"customThumbnailSize",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],zA.prototype,"hideAria",void 0);_.f([_.b(),_.z("design:type",Object)],zA.prototype,"data",void 0);_.f([_.b({computed:"computeOverlayColor(data)"}),_.z("design:type",Object)],zA.prototype,"overlayColor",void 0);
_.f([_.b({computed:"computeWebModernCollections(data)"}),_.z("design:type",Object)],zA.prototype,"webModernCollections",void 0);_.f([_.b({computed:"computeNavigationEndpoint(data)"}),_.z("design:type",Object)],zA.prototype,"computedNavigationEndpoint",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],zA.prototype,"isSearch",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],zA.prototype,"isDoubleStack",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],zA.prototype,"thumbnailSize",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],zA.prototype,"enableWebModernCollectionsV2",void 0);_.f([_.Q("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.z("design:type",Object),_.z("design:paramtypes",[])],zA.prototype,"collectionStack",null);zA=_.f([_.C({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],zA);
_.D(zA,"ytd-playlist-thumbnail",function(){if(NVE!==void 0)return NVE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return NVE=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var $UH;var H3=function(){var a=_.u.apply(this,arguments)||this;a.noEndpoints=!1;a.amsterdamPostMvp=_.r("web_amsterdam_post_mvp_playlists");a.badges=[];a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.c(H3,_.u);_.t=H3.prototype;_.t.getMetadata=function(a){if(!a)return[];var W=[],w=a.shortViewCountText||a.viewCountText;w&&W.push(_.sd(w));a.publishedTimeText&&W.push(_.sd(a.publishedTimeText));a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&W.push(_.Ms(_.sd(a.upcomingEventData.upcomingEventText),Number(a.upcomingEventData.startTime)));return W};
_.t.observeDataForBylineSeparator=function(){this.data&&_.mh(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.t.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.KC(this.metadataColor)};
_.t.getSimpleString=function(a){return _.sd(a)};
_.t.isBylineHidden=function(a){return this.noByline||!((a==null?0:a.longBylineText)||(a==null?0:a.shortBylineText))};
_.t.isMetadataHidden=function(a){var W;return((W=this.getMetadata(a))==null?void 0:W.length)===0};
_.t.isBylineMetadataSeparatorHidden=function(a){return this.isMetadataHidden(a)||!this.shouldShowVideoInfo};
_.t.isLongByline=function(a,W){return W&&!(a==null||!a.longBylineText)};
_.dU.Object.defineProperties(H3.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 _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
H3.prototype.metadataColorChanged=H3.prototype.metadataColorChanged;H3.prototype.observeDataForBylineSeparator=H3.prototype.observeDataForBylineSeparator;_.f([_.R(_.ij),_.z("design:type",Object)],H3.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],H3.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],H3.prototype,"noEndpoints",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],H3.prototype,"isSlimShort",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],H3.prototype,"radioMeta",void 0);_.f([_.b({selector:_.RL}),_.z("design:type",Object)],H3.prototype,"isGridViewEnabled",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],H3.prototype,"richMeta",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],H3.prototype,"amsterdamPostMvp",void 0);_.f([_.b(),_.z("design:type",Boolean)],H3.prototype,"noByline",void 0);
_.f([_.b({computed:"isLongByline(data, radioMeta)"}),_.z("design:type",Boolean)],H3.prototype,"longByline",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],H3.prototype,"truncateMetadataLine",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],H3.prototype,"miniMode",void 0);_.f([_.b(),_.z("design:type",Number)],H3.prototype,"metadataColor",void 0);_.f([_.b(),_.z("design:type",Array)],H3.prototype,"badges",void 0);
_.f([_.b({selector:_.cJ,selectorArgs:["data.videoId"]}),_.z("design:type",String)],H3.prototype,"transferState",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],H3.prototype,"isDownloading",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],H3.prototype,"typographyBump",void 0);_.f([_.w$("#metadata-line"),_.z("design:type",HTMLElement)],H3.prototype,"metadataLine",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],H3.prototype,"observeDataForBylineSeparator",null);_.f([_.a5("metadataColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],H3.prototype,"metadataColorChanged",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],H3.prototype,"shouldShowVideoInfo",null);
_.f([_.Q("badges"),_.z("design:type",String),_.z("design:paramtypes",[])],H3.prototype,"inlineBadgeClass",null);_.f([_.Q("longByline"),_.z("design:type",String),_.z("design:paramtypes",[])],H3.prototype,"longBylineClass",null);_.f([_.Q("data","longByline"),_.z("design:type",Object),_.z("design:paramtypes",[])],H3.prototype,"bylineText",null);_.f([_.Q("isGridViewEnabled","data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],H3.prototype,"watchFeedBigThumbs",null);
H3=_.f([_.C({is:"ytd-video-meta-block",disableElementRegistration:!0})],H3);
_.D(H3,"ytd-video-meta-block",function(){if($UH!==void 0)return $UH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return $UH=a},{mode:_.Vn("kevlar_poly_si_batch_j080")?1:2});_.pA("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var y5=function(){var a=_.u.apply(this,arguments)||this;a.displayItemCount=2;a.isBackstagePlaylist=!1;a.isPostCompactPlaylist=!1;a.shouldShowChannelThumbnail=!1;a.useModernCollectionsV2=_.r("web_modern_collections_v2");return a};
_.c(y5,_.u);_.t=y5.prototype;_.t.computeFirstVideos=function(a,W){return a===void 0||W===void 0?[]:a.slice(0,W)};
_.t.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)}};
_.t.computeThumbnailHeight=function(a,W,w,Z,N){return Z?N==="BIG"?280:N==="MASSIVE"?337:234:w?240:W?72:a?118:138};
_.t.computeThumbnailWidth=function(a,W,w,Z,N){return Z?N==="MEDIUM"?450:N==="BIG"?500:N==="MASSIVE"?600:420:w?360:W?128:a?210:246};
_.t.computeUseBiggerThumbs=function(a){return a&&_.r("enable_desktop_search_bigger_thumbs")};
_.t.computeShouldShowChannelThumbnail=function(a,W){return a&&!(W==null||!W.channelThumbnail)};
_.dU.Object.defineProperties(y5.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
y5.prototype.dataChanged=y5.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],y5.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],y5.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],y5.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],y5.prototype,"displayItemCount",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],y5.prototype,"isBackstagePlaylist",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],y5.prototype,"isPostCompactPlaylist",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],y5.prototype,"isSearch",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.z("design:type",Boolean)],y5.prototype,"useBiggerThumbs",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.Et("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],y5.prototype,"biggerThumbsStyle",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],y5.prototype,"isDownloads",void 0);_.f([_.b({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.z("design:type",Object)],y5.prototype,"shouldShowChannelThumbnail",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],y5.prototype,"useModernCollectionsV2",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],y5.prototype,"dataChanged",null);_.f([_.Q("isSearch"),_.z("design:type",String),_.z("design:paramtypes",[])],y5.prototype,"stackThumbnailSize",null);y5=_.f([_.C({is:"ytd-playlist-renderer",disableElementRegistration:!0})],y5);
_.D(y5,"ytd-playlist-renderer",function(){if(u1T===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);u1T=a}a=u1T;return a},{mode:1});var BVV;var ln6;var EY=function(){var a=_.u.apply(this,arguments)||this;a.collections=!!_.r("web_modern_collections_v2");a.startX=0;return a};
_.c(EY,_.u);EY.prototype.onEndpointMouseDown=function(a){this.startX=a.clientX};
EY.prototype.onEndpointClick=function(a){this.startX!==a.clientX&&(a.preventDefault(),a.stopPropagation())};
EY.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"};
EY.prototype.computeCardStyle=function(a){return a?a.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.dU.Object.defineProperties(EY.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var a,W;return this.collections&&((a=this.data)==null?void 0:(W=a.searchRefinementCardRendererStyle)==null?void 0:W.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}}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],EY.prototype,"data",void 0);_.f([_.b({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.z("design:type",Number)],EY.prototype,"objectFit",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.z("design:type",String)],EY.prototype,"cardStyle",void 0);
_.f([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],EY.prototype,"roundContainer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],EY.prototype,"collections",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],EY.prototype,"isAlbumCard",null);_.f([_.Q("data","collections","isAlbumCard"),_.z("design:type",Object),_.z("design:paramtypes",[])],EY.prototype,"collectionStack",null);
EY=_.f([_.C({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],EY);
_.D(EY,"ytd-search-refinement-card-renderer",function(){if(ln6!==void 0)return ln6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ln6=a},{mode:1});var Ine;var ay=function(){var a=_.u.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.c(ay,_.u);_.f([_.b(),_.z("design:type",Object)],ay.prototype,"data",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ay.prototype,"componentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],ay.prototype,"ytdReduxBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ay.prototype,"isRichGrid",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],ay.prototype,"miniMode",void 0);
ay=_.f([_.C({is:"ytd-game-details-renderer",disableElementRegistration:!0})],ay);
_.D(ay,"ytd-game-details-renderer",function(){if(Ine!==void 0)return Ine;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Ine=a},{mode:1});var P4H;var X8R;var WR=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return a};
_.c(WR,_.u);_.t=WR.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.currentStateData=function(a){var W=a||this.data;return W&&W.states&&W.currentStateId!=null?W.states.find(function(w){return w.stateId===W.currentStateId})||null:null};
_.t.currentStateRendererData=function(a){return(a=this.currentStateData(a))&&a.state&&a.state.buttonRenderer?a.state.buttonRenderer:null};
_.t.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())};
_.t.computeButtonIcon=function(a){a=this.currentStateRendererData(a);var W;return(a==null?0:(W=a.icon)==null?0:W.iconType)?a.icon.iconType.toLowerCase():null};
_.t.computeAccessibility=function(a){return(a=this.currentStateRendererData(a))&&a.accessibilityData?a.accessibilityData.accessibilityData||null:null};
_.t.computeButtonClass=function(a){var W=this.currentStateRendererData(a);if(!W)return"";a="";var w=W.style;w&&(a+=w.toLowerCase().replace(/_/g,"-")+" ");(W=W.size)&&(a+=W.toLowerCase().replace(/_/g,"-")+" ");return a.trim()};
_.t.computeServiceEndpoint=function(a){if(!a)return null;var W=a&&a.serviceEndpoint,w=this.get("command.commandMetadata.webCommandMetadata.sendPost",a);return W?W:w&&a.command?a.command:null};
_.t.computeBellMenuItemParams=function(a){var W;a=(W=_.A(a==null?void 0:a.command,_.$7))==null?void 0:W.commands;if(!a||a.length===0)return null;W=_.A(a[0],_.A4);var w,Z;return(W==null?0:(w=W.popup)==null?0:(Z=w.menuPopupRenderer)==null?0:Z.items)?W.popup.menuPopupRenderer.items.map(function(N){return N.menuServiceItemRenderer.trackingParams}):null};
_.t.handleBellMenuOpenSelectedAction=function(a){var W=a.trackingParams,w=this.computeBellMenuItemParams(this.data);this.data&&W&&w&&w.includes(W)&&this.ytRenderButtonBehavior._setButtonIcon(a.icon.iconType.toLowerCase())};
_.t.onYtServiceRequestCompleted=function(a,W){(a=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",W))&&this.set("data",a)};
_.t.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.t.resetState=function(){this.set("data.currentStateId",3)};
_.t.onYtButtonTapHandler=function(){if(this.data){var a=this.currentStateRendererData(this.data);a&&this.ytRendererBehavior.logExplicitClick(a)}};
WR.prototype.onYtServiceRequestError=WR.prototype.onYtServiceRequestError;WR.prototype.onYtServiceRequestCompleted=WR.prototype.onYtServiceRequestCompleted;WR.prototype.stateChanged=WR.prototype.stateChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],WR.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R($Z.YtRenderButtonBehavior),_.z("design:type",Object)],WR.prototype,"ytRenderButtonBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],WR.prototype,"data",void 0);_.f([_.lO("data","data.currentStateId"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WR.prototype,"stateChanged",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],WR.prototype,"onYtServiceRequestCompleted",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],WR.prototype,"onYtServiceRequestError",null);WR=_.f([_.C({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],WR);
_.D(WR,"ytd-subscription-notification-toggle-button-renderer",function(){if(X8R!==void 0)return X8R;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return X8R=a},{mode:1});var vA_;var w8=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};a.tapHandler=function(){if(a.data){var W=a.currentStateRendererData();W&&a.ytRendererBehavior.logExplicitClick(W)}};
return a};
_.c(w8,_.u);_.t=w8.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.currentStateData=function(){var a=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(W){return W.stateId===a.data.currentStateId})||null:null};
_.t.currentStateRendererData=function(){var a=this.currentStateData();return a&&a.state&&a.state.buttonRenderer?a.state.buttonRenderer:null};
_.t.computeAccessibilityLabel=function(){var a,W,w;return(a=this.currentStateRendererData())==null?void 0:(W=a.accessibilityData)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label};
_.t.computeBellMenuItemParams=function(){var a,W,w=(W=_.A((a=this.data)==null?void 0:a.command,_.$7))==null?void 0:W.commands;if(!w||w.length===0)return null;a=_.A(w[0],_.A4);var Z,N;return(a==null?0:(Z=a.popup)==null?0:(N=Z.menuPopupRenderer)==null?0:N.items)?a.popup.menuPopupRenderer.items.map(function(B){return B.menuServiceItemRenderer.trackingParams}):null};
_.t.handleBellMenuOpenSelectedAction=function(a){var W=a.trackingParams,w=this.computeBellMenuItemParams();if(this.data&&W&&w&&w.includes(W)&&(a==null||!a.isDisabled)){var Z;((Z=_.A(a.serviceEndpoint,_.l0))==null?void 0:Z.signal)!=="CLIENT_SIGNAL"&&(this.icon=a.icon.iconType)}};
_.t.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.t.onYtServiceRequestCompleted=function(a,W){if(a=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",W))this.icon=void 0,this.set("data",a)};
_.t.onYtServiceRequestError=function(){this.icon=void 0};
_.dU.Object.defineProperties(w8.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data,W=this.textLabel,w=this.hostElement,Z=this.computeAccessibilityLabel(),N=this.tapHandler,B=this.isOverlay?"overlay":"mono",I=(a==null?0:a.disableButton)?"disabled":"active";W=W?_.YJ(W):void 0;return{style:B,type:"tonal",state:I,size:"M",focused:!1,formattedButtonText:W,iconPosition:"leading-trailing",onTap:jfS(a,N,w),accessibilityLabel:Z}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var a=this.currentStateRendererData(),W,w,Z=(w=this.icon)!=null?w:a==null?void 0:(W=a.icon)==null?void 0:W.iconType;if(Z)return _.EN(Z)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var a,W,w=(a=this.data)==null?void 0:(W=a.secondaryIcon)==null?void 0:W.iconType;if(w)return _.EN(w)}}});
w8.prototype.onYtServiceRequestError=w8.prototype.onYtServiceRequestError;w8.prototype.onYtServiceRequestCompleted=w8.prototype.onYtServiceRequestCompleted;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],w8.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],w8.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],w8.prototype,"textLabel",void 0);
_.f([_.b(),_.z("design:type",String)],w8.prototype,"icon",void 0);_.f([_.b(),_.z("design:type",Boolean)],w8.prototype,"isOverlay",void 0);_.f([_.Q("data.*","textLabel"),_.z("design:type",Object),_.z("design:paramtypes",[])],w8.prototype,"computedButtonShape",null);_.f([_.Q("data.*","icon"),_.z("design:type",Object),_.z("design:paramtypes",[])],w8.prototype,"computedIcon",null);_.f([_.Q("data.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],w8.prototype,"computedSecondaryIcon",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],w8.prototype,"onYtServiceRequestCompleted",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],w8.prototype,"onYtServiceRequestError",null);w8=_.f([_.C({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],w8);
_.D(w8,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(vA_!==void 0)return vA_;var a=document.createElement("template");_.n(a,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return vA_=a},{mode:_.Vn("kevlar_poly_si_batch_j081")?1:2});var gAy;_.r("web_enable_sink_animated_actions")?_.Ct(lx_,"yt-animated-action",{props:{backgroundLottieRef:_.qR,foregroundLottieRef:_.qR,wrapperClass:_.qR,disableAnimation:_.qR},unsafeExternallySettableAttributes:new Set(["key"])}):_.HX(XCU,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var ZU=function(){var a=_.u.apply(this,arguments)||this;a.animatedActionEnabled=_.r("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};
_.c(ZU,_.u);_.t=ZU.prototype;_.t.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.t.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]]"}}}}}};
_.t.attached=function(){this.keyboardFocused=!1};
_.t.onYtServiceRequestSent=function(a,W){(this.get("endpoint.subscribeEndpoint",W)||this.get("endpoint.unsubscribeEndpoint",W))&&this.updateSubscriptionState(!this.subscribed)};
_.t.onYtServiceRequestCompleted=function(a,W){(a=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",W.data))&&this.bellButton&&(this.bellButton.data=a)};
_.t.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Hu(this.hostElement)};
_.t.onPlayerSubscribe=function(a){this.isCompactRed()||a!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.t.onPlayerUnsubscribe=function(a){this.isCompactRed()||a!==this.data.channelId||this.updateSubscriptionState(!1)};
_.t.handleUpdateSubscribeButtonAction=function(a){a=_.A(a,IxI);var W;a&&a.channelId===((W=this.data)==null?void 0:W.channelId)&&this.updateSubscriptionState(!!a.subscribed)};
_.t.computeButtonStyle=function(a){return this.get("style.styleType",a)||null};
_.t.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.t.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.t.updateSubscriptionState=function(a){if(a!==this.subscribed){this.set("data.subscribed",a);var W,w=(W=this.data)==null?void 0:W.subscribedEntityKey;w&&this.ytdReduxBehavior.dispatch(_.oL("subscriptionStateEntity",w,{key:w,subscribed:a}));this.isCompactRed()||_.E$(this.hostElement,"yt-subscription-changed",a);a||(_.aV(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!a),a&&this.hasBellButton&&this.startAnimation())}};
_.t.startAnimation=function(){var a=this;if(!this.isAnimating){var W=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var w;(w=this.backgroundLottieRef.lottieEl)==null||w.goToAndPlay(0);var Z;(Z=this.foregroundLottieRef.lottieEl)==null||Z.goToAndPlay(0);_.hF.addJob(function(){a.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.hF.addJob(function(){a.updateContainerToFitContent(!!a.subscribed,!0)},2,1500);
_.hF.addJob(function(){a.isAnimating=!1},2,W)}};
_.t.maybeAnimateBellIcon=function(){var a=_.di(this.hostElement).querySelector("yt-animated-icon");if(a){var W;(W=a.animationRef.lottieEl)==null||W.goToAndPlay(0)}};
_.t.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.t.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.t.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var a;this.unsubscribedWidth=(a=this.subscribeButtonShape)==null?void 0:a.getBoundingClientRect().width}var W;this.subscribedWidth=(W=this.bellButton)==null?void 0:W.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.t.updateContainerToFitContent=function(a,W){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(a?(a=this.subscribedWidth,W=this.isAnimating&&!W,this.subscribedIconOnlyWidth===void 0||W||(a=this.subscribedIconOnlyWidth),this.hostElement.style.width=a+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.t.clearContainerSize=function(){this.hostElement.style.width=""};
_.t.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.t.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 W;a.subscribedIconOnlyWidth=(W=a.bellButton)==null?void 0:W.getBoundingClientRect().width;requestAnimationFrame(function(){if(a.bellButton){var w;a.bellButton.textLabel=
(w=a.data)==null?void 0:w.subscribedButtonText}})})))};
_.dU.Object.defineProperties(ZU.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 W;return this.forceIconOnly?void 0:(W=this.data)==null?void 0:W.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var a,W,w=((a=this.data)==null?void 0:(W=a.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"subscribe",timings:w,enabled:w.length>0&&!this.subscribed,experimentEnabled:w.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 W=a.renderer;var w=a.element;var Z=a.subscribed;var N=a.commandController;var B=a.isOverlay;a=a.config;var I=Moe(W,Z);B&&(I.style="overlay");B=Object;var X=B.assign,v;a:switch((v=W.style)==null?void 0:v.styleType){case "COMPACT_GRAY":case "COMPACT_RED":v={size:"S"};break a;default:v={size:"M"}}var U=Fyx(W,Z);var O=
(O=Z?W.subscribedButtonText:W.unsubscribedButtonText)?_.YJ(O):void 0;return X.call(B,{},I,v,{focused:!1,toggled:Z,accessibilityLabel:U,formattedButtonText:O,onTap:JWH(W,a,Z,w,N)})}}}});
ZU.prototype.onMouseDown=ZU.prototype.onMouseDown;ZU.prototype.onDataChanged=ZU.prototype.onDataChanged;ZU.prototype.observedSubscribed=ZU.prototype.observedSubscribed;ZU.prototype.onYtServiceRequestCompleted=ZU.prototype.onYtServiceRequestCompleted;ZU.prototype.onYtServiceRequestSent=ZU.prototype.onYtServiceRequestSent;ZU.prototype.maybeUpdateBellButtonText=ZU.prototype.maybeUpdateBellButtonText;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ZU.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],ZU.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],ZU.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ZU.prototype,"data",void 0);
_.f([_.b({selectorArgs:["data.subscribedEntityKey"],selector:_.We}),_.z("design:type",Object)],ZU.prototype,"subscriptionStateEntity",void 0);_.f([_.b({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.z("design:type",Boolean)],ZU.prototype,"subscribed",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ZU.prototype,"branded",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZU.prototype,"animatedActionEnabled",void 0);
_.f([_.b(),_.z("design:type",Object)],ZU.prototype,"foregroundLottieRef",void 0);_.f([_.b(),_.z("design:type",Object)],ZU.prototype,"backgroundLottieRef",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ZU.prototype,"overlayButton",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.z("design:type",Object)],ZU.prototype,"buttonStyle",void 0);_.f([_.b(),_.z("design:type",Object)],ZU.prototype,"forceIconOnly",void 0);
_.f([_.b(),_.z("design:type",Object)],ZU.prototype,"showTextWhileAnimating",void 0);_.f([_.b({value:function(){return!!_.K().resolve(_.Vv(_.S4))&&_.r("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.z("design:type",Boolean)],ZU.prototype,"useKeyboardFocused",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZU.prototype,"keyboardFocused",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZU.prototype,"isAnimating",void 0);_.f([_.Q("data.notificationPreferenceButton.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZU.prototype,"hasBellButton",null);
_.f([_.a5("subscribedButtonText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZU.prototype,"maybeUpdateBellButtonText",null);_.f([_.Q("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZU.prototype,"subscribedButtonText",null);_.f([_.Q("data.timedAnimationData.animationTiming","subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZU.prototype,"smartimationSettings",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZU.prototype,"subscribeButtonHidden",null);_.f([_.b({reflectToAttribute:!0}),_.Q("subscribed","hasBellButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZU.prototype,"subscribeButtonInvisible",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZU.prototype,"unsubscribeButtonHidden",null);_.f([_.w$("ytd-subscription-notification-toggle-button-renderer-next"),_.z("design:type",Object)],ZU.prototype,"bellButton",void 0);_.f([_.w$("#subscribe-button-shape"),_.z("design:type",HTMLElement)],ZU.prototype,"subscribeButtonShape",void 0);
_.f([_.Q("overlayButton","subscribed","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZU.prototype,"buttonShape",null);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],ZU.prototype,"onYtServiceRequestSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],ZU.prototype,"onYtServiceRequestCompleted",null);
_.f([_.a5("subscribed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZU.prototype,"observedSubscribed",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZU.prototype,"onDataChanged",null);_.f([_.E6("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ZU.prototype,"onMouseDown",null);
ZU=_.f([_.C({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],ZU);
_.D(ZU,"ytd-subscribe-button-renderer",function(){if(gAy!==void 0)return gAy;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return gAy=a},{mode:1});var Nl=function(){var a=_.u.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.c(Nl,_.u);Nl.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Nl.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Nl.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Nl.prototype,"isRichGrid",void 0);Nl=_.f([_.C({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Nl);
_.D(Nl,"ytd-game-card-renderer",function(){if(P4H!==void 0)return P4H;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return P4H=a},{mode:1});var tV={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.r("defer_menus")&&!WMl?0:void 0,waitForSignal:"eocs"};var oA6;var ktV;var $l=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return a};
_.c($l,_.u);_.t=$l.prototype;_.t.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.t.onSeriesReminderStateEntityChange=function(){var a,W,w;((a=this.eventReminderStateEntity)==null?0:a.key)&&((W=this.seriesReminderStateEntity)==null?void 0:W.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((w=this.eventReminderStateEntity)==null?void 0:w.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.oL("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.t.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.t.onYtServiceRequestError=function(){var a;this.updateReminderStateEntitiesFromButtonState((a=this.data)==null?void 0:a.currentState)};
_.t.handleUpdateUpcomingEventReminderButtonStateCommand=function(a){if(a=_.A(a,kZ_)){var W,w=(W=this.data)==null?void 0:W.targetId;w&&a.targetId===w&&_.cA(this.updateReminderStateEntitiesFromButtonState.bind(this,a.state))}};
_.t.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 W;if(((W=this.eventReminderStateEntity)==null?void 0:W.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var w,Z;if(((w=this.seriesReminderStateEntity)==null?void 0:w.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((Z=this.eventReminderStateEntity)==
null?void 0:Z.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var N;return(N=this.data)==null?void 0:N.currentState};
_.t.updateReminderStateEntitiesFromButtonState=function(a){if(a){switch(a){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":a="UPCOMING_EVENT_REMINDER_STATE_NONE";var W="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":a="UPCOMING_EVENT_REMINDER_STATE_SINGLE";W="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":a="UPCOMING_EVENT_REMINDER_STATE_NONE";W="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var w;
((w=this.eventReminderStateEntity)==null?0:w.key)&&this.ytdReduxBehavior.dispatch(_.oL("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:a})));var Z;((Z=this.seriesReminderStateEntity)==null?0:Z.key)&&this.ytdReduxBehavior.dispatch(_.oL("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:W})))}};
_.dU.Object.defineProperties($l.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var a=this.getButtonStateFromReminderState(),W,w;if(a&&((W=this.data)==null?0:(w=W.states)==null?0:w.length))for(W=_.l(this.data.states),w=W.next();!w.done;w=W.next()){w=w.value;var Z=void 0;if(((Z=_.A(w,UJy))==null?void 0:Z.state)===a)return _.A(w,UJy)}}}});
$l.prototype.onYtServiceRequestError=$l.prototype.onYtServiceRequestError;$l.prototype.onYtServiceRequestCompleted=$l.prototype.onYtServiceRequestCompleted;$l.prototype.onSeriesReminderStateEntityChange=$l.prototype.onSeriesReminderStateEntityChange;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],$l.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],$l.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],$l.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$l.prototype,"data",void 0);_.f([_.b({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:sBe}),_.z("design:type",Object)],$l.prototype,"eventReminderStateEntity",void 0);
_.f([_.b({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(a,W){return _.tG(a.entities,"sportsSeriesReminderStateEntity",W)}}),
_.z("design:type",Object)],$l.prototype,"seriesReminderStateEntity",void 0);_.f([_.Q("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],$l.prototype,"currentButtonStateRenderer",null);_.f([_.a5("seriesReminderStateEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$l.prototype,"onSeriesReminderStateEntityChange",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$l.prototype,"onYtServiceRequestCompleted",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$l.prototype,"onYtServiceRequestError",null);$l=_.f([_.C({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],$l);
_.D($l,"ytd-upcoming-event-reminder-button-renderer",function(){if(ktV!==void 0)return ktV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
return ktV=a},{mode:1});var UUh;var BR=function(){return _.u.apply(this,arguments)||this};
_.c(BR,_.u);BR.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.dU.Object.defineProperties(BR.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(_.r("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],BR.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],BR.prototype,"shelfDismissal",void 0);_.f([_.Q("data.responseText"),_.z("design:type",Object),_.z("design:paramtypes",[])],BR.prototype,"text",null);
_.f([_.Q("data.responseText"),_.z("design:type",Object),_.z("design:paramtypes",[])],BR.prototype,"textAriaLabel",null);BR=_.f([_.C({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],BR);
_.D(BR,"ytd-notification-multi-action-renderer",function(){if(UUh!==void 0)return UUh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return UUh=a},{mode:1});var Och;var lC=function(){return _.u.apply(this,arguments)||this};
_.c(lC,_.u);lC.prototype.ready=function(){var a=this;_.M(this.hostElement).querySelector("#undo").addEventListener("tap",function(){a.onUndoTap()})};
lC.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.K().resolve(_.zU).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],lC.prototype,"data",void 0);lC=_.f([_.C({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],lC);
_.D(lC,"ytd-notification-text-renderer",function(){if(Och!==void 0)return Och;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Och=a},{mode:1});var S7_;var Iy=function(){var a=_.u.apply(this,arguments)||this;a.mouseOverDelayJobId=0;a.fadeInImageDelayJobId=0;a.startTimeMs=-1;a.loadingStartTimeMs=-1;a.loadingEndTimeMs=-1;a.hasVideoPreview=!1;return a};
_.c(Iy,_.u);_.t=Iy.prototype;_.t.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.t.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.t.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.t.showThumbnail=function(){var a=this;this.csn=_.nS();_.hk("fmth");_.hF.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.mY(_.hF,function(){a.loadingStartTimeMs=(0,_.mG)();var W=_.M(a.hostElement).querySelector("#thumbnail");W.complete?a.displayMouseOverImage():W.addEventListener("load",_.yV(a,a.displayMouseOverImage))},150):_.mh(_.M(this.hostElement).querySelector("#play"),"show",!0)};
_.t.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.t.onTap=function(){this.removeVideoPreview()};
_.t.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var a=this.videoId,W=this.csn,w=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,Z=this.startTimeMs,N=this.hasVideoPreview,B=_.PX(this.trackingParams),I={isMovingThumbnail:N};N&&Z>0&&(w>0&&(I.movingThumbnailLoadingDurationMs=Math.round(w)),I.durationHoveredMs=Math.round((0,_.mG)()-Z));a&&(I.videoId=a);_.s_(W,B,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:I});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.t.removeVideoPreview=function(){_.hF.cancelJob(this.mouseOverDelayJobId);_.hF.cancelJob(this.fadeInImageDelayJobId);var a=_.M(this.hostElement).querySelector("#thumbnail");_.mh(a,"fade-in",!1);a.removeEventListener("load",_.yV(this,this.displayMouseOverImage));a=_.M(this.hostElement).querySelector("#play");_.mh(a,"fade-in",!1);_.mh(a,"show",!1)};
_.t.displayMouseOverImage=function(){var a=_.M(this.hostElement).querySelector("#thumbnail"),W=_.M(this.hostElement).querySelector("#play");this.isImageAvailable(a)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.mG)(),this.startTimeMs=(0,_.mG)(),this.fadeInImageDelayJobId=_.mY(_.hF,function(){_.mh(a,"fade-in",!0)},50)):_.mh(W,"fade-in",!0)};
_.t.computeThumbnail=function(a,W){var w;a&&a.movingThumbnailDetails&&a.movingThumbnailDetails.thumbnails&&W?w=_.G$(a.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):w=W?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(w)return _.SB(w)};
_.t.isImageAvailable=function(a){return!(!a.src||a.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||a.naturalWidth===120)};
Iy.prototype.onTap=Iy.prototype.onTap;Iy.prototype.dataChanged=Iy.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Iy.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Iy.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Iy.prototype,"csn",void 0);_.f([_.b(),_.z("design:type",Object)],Iy.prototype,"trackingParams",void 0);
_.f([_.b(),_.z("design:type",String)],Iy.prototype,"videoId",void 0);_.f([_.b(),_.z("design:type",Boolean)],Iy.prototype,"isAttachedAndDataSet",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Iy.prototype,"dataChanged",null);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Iy.prototype,"onTap",null);Iy=_.f([_.C({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Iy);
_.D(Iy,"ytd-moving-thumbnail-renderer",function(){if(S7_!==void 0)return S7_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return S7_=a},{mode:1});var Y7y;_.oI=function(a){this.hostElement=a;this.eventSink=null;this.eventList=[]};
_.oI.prototype.shouldForward=function(){var a,W;return(W=(a=this.eventSink)==null?void 0:a.isConnected)!=null?W:document.body.contains(this.eventSink)};
_.oI.prototype.start=function(a,W){this.eventSink&&this.stop();for(var w=0;w<a.length;w++)this.hostElement.addEventListener(a[w],_.yV(this,this.forwardEvent));var Z;this.eventSink=(Z=W.hostElement)!=null?Z:W;this.eventList=a};
_.oI.prototype.stop=function(){for(var a=0;a<this.eventList.length;a++)this.hostElement.removeEventListener(this.eventList[a],_.yV(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.oI.prototype.forwardEvent=function(a,W){this.shouldForward()&&(a.stopPropagation(),this.eventSink instanceof Element?_.E$(this.eventSink,a.type,W):_.jJ(new _.Uw("eventSink is not an element")))};_.PR={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.oI(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(a,W){this.forwarder_.start(a,W)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var X0=function(){return _.u.apply(this,arguments)||this};
_.c(X0,_.u);_.t=X0.prototype;_.t.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=_.LF("HTML_DIR")==="rtl"?"right":"left"};
_.t.dataChanged=function(){this.popupOpen=!1};
_.t.computeAriaLabel=function(a){return _.A(a,LKV).label};
_.t.onTap=function(a){a.stopPropagation();a.preventDefault();this.data.command&&_.K().resolve(_.zU).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.t.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.t.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
X0.prototype.onPopupClosed=X0.prototype.onPopupClosed;X0.prototype.onPopupOpened=X0.prototype.onPopupOpened;X0.prototype.onTap=X0.prototype.onTap;X0.prototype.dataChanged=X0.prototype.dataChanged;_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],X0.prototype,"eventForwardingBehavior",void 0);_.f([_.R(_.Ll),_.z("design:type",Object)],X0.prototype,"ironButtonState",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],X0.prototype,"componentBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],X0.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:-1}),_.z("design:type",Number)],X0.prototype,"tabindex",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.z("design:type",Object)],X0.prototype,"ariaLabel",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],X0.prototype,"disableTooltips",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],X0.prototype,"popupOpen",void 0);
_.f([_.b(),_.z("design:type",Element)],X0.prototype,"eventSink",void 0);_.f([_.w$("#tooltip"),_.z("design:type",Object)],X0.prototype,"tooltip",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X0.prototype,"dataChanged",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],X0.prototype,"onTap",null);
_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X0.prototype,"onPopupOpened",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X0.prototype,"onPopupClosed",null);X0=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],X0);
_.D(X0,"ytd-thumbnail-overlay-button-renderer",function(){if(Y7y!==void 0)return Y7y;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Y7y=a},{mode:1});var TV$;var vR=function(){return _.u.apply(this,arguments)||this};
_.c(vR,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vR.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],vR.prototype,"disableAnimation",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],vR.prototype,"rounded",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],vR.prototype,"transparentBackground",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],vR.prototype,"noPadding",void 0);vR=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],vR);
_.D(vR,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(TV$!==void 0)return TV$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return TV$=a},{mode:1});var KyT;var g8=function(){return _.u.apply(this,arguments)||this};
_.c(g8,_.u);g8.prototype.computeIconPosition=function(a){return this.get("iconPosition",a)||null};
g8.prototype.computeIconStyle=function(a){return this.get("iconStyle",a)||null};
g8.prototype.computeIsIconStyleFilled=function(a){if(!a)return!1;var W;return a.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((W=a.icon)==null?void 0:W.iconType)==="ERROR_BLACK"};
_.f([_.b(),_.z("design:type",Object)],g8.prototype,"data",void 0);_.f([_.b({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.z("design:type",Object)],g8.prototype,"iconPosition",void 0);_.f([_.b({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.z("design:type",Object)],g8.prototype,"iconStyle",void 0);_.f([_.b({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],g8.prototype,"iconStyleFilled",void 0);
g8=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],g8);
_.D(g8,"ytd-thumbnail-overlay-icon-renderer",function(){if(KyT!==void 0)return KyT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return KyT=a},{mode:1});var p8R;var oy=function(){return _.u.apply(this,arguments)||this};
_.c(oy,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],oy.prototype,"data",void 0);oy=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],oy);
_.D(oy,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(p8R!==void 0)return p8R;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return p8R=a},{mode:1});var rWJ;var kl=function(){var a=_.u.apply(this,arguments)||this;a.isPreviewLoading=!1;return a};
_.c(kl,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kl.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kl.prototype,"isPreviewLoading",void 0);kl=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],kl);
_.D(kl,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(rWJ!==void 0)return rWJ;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return rWJ=a},{mode:1});var AW$;var Uu=function(){return _.u.apply(this,arguments)||this};
_.c(Uu,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Uu.prototype,"data",void 0);Uu=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Uu);
_.D(Uu,"ytd-thumbnail-overlay-pinking-renderer",function(){if(AW$!==void 0)return AW$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return AW$=a},{mode:1});var hb_;var Ou=function(){var a=_.u.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};
_.c(Ou,_.u);_.t=Ou.prototype;_.t.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");_.M(this.hostElement).querySelector("#tooltip").position=_.LF("HTML_DIR")==="rtl"?"right":"left"};
_.t.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.hF.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.hF.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.hF.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.t.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.hF.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.hF.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.hF.cancelJob(this.expandAnimationDelayJobId)};
_.t.computeIcon=function(a,W,w){return(a=w?W:a)&&a.iconType?_.EN(a.iconType):void 0};
_.t.computeAriaLabel=function(a,W,w){return _.A(w?W:a,LKV).label};
_.t.computeTooltip=function(a,W,w){return w?W:a};
_.t.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.t.computeIconOnHover=function(a,W){if((a==null?0:a.iconType)&&!W)return _.EN(a.iconType)};
_.t.onTap=function(a){var W=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=_.mY(_.hF,function(){W.hovered=!1;W.data&&!W.data.toggledServiceEndpoint&&(W.expandAnimationDelayJobId=_.mY(_.hF,function(){W.set("data.isToggled",
!1)},200))},2E3))};
_.t.onMouseenter=function(){var a=this;this.mouseoverDelayJobId=_.mY(_.hF,function(){a.hovered=!0},300)};
_.t.onMouseleave=function(){_.hF.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.t.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.t.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.t.onServiceRequestCompleted=function(a,W){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(W)||this.set("data.isToggled",!this.data.isToggled)};
_.t.serviceRequestWasSuccessful=function(a){return _.A(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.nz)?a.data.status==="STATUS_SUCCEEDED":!0};
Ou.prototype.onServiceRequestCompleted=Ou.prototype.onServiceRequestCompleted;Ou.prototype.onPopupClosed=Ou.prototype.onPopupClosed;Ou.prototype.onPopupOpened=Ou.prototype.onPopupOpened;Ou.prototype.onMouseleave=Ou.prototype.onMouseleave;Ou.prototype.dataChanged=Ou.prototype.dataChanged;_.f([_.R(_.Ll),_.z("design:type",Object)],Ou.prototype,"ironButtonState",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Ou.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],Ou.prototype,"ytEventForwardingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ou.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.z("design:type",Object)],Ou.prototype,"ariaLabel",void 0);_.f([_.b(),_.z("design:type",Object)],Ou.prototype,"disableTooltips",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ou.prototype,"popupOpen",void 0);_.f([_.b(),_.z("design:type",Object)],Ou.prototype,"isLoading",void 0);_.f([_.b(),_.z("design:type",Element)],Ou.prototype,"eventSink",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ou.prototype,"useExpandableTooltip",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.z("design:type",Object)],Ou.prototype,"toggled",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ou.prototype,"hovered",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.z("design:type",Object)],Ou.prototype,"iconOnHover",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ou.prototype,"dataChanged",null);
_.f([_.E6("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ou.prototype,"onMouseleave",null);_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ou.prototype,"onPopupOpened",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ou.prototype,"onPopupClosed",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],Ou.prototype,"onServiceRequestCompleted",null);Ou=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Ou);
_.D(Ou,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(hb_!==void 0)return hb_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return hb_=a},{mode:_.Vn("kevlar_poly_si_batch_j053")?1:2});var icT;var cW_=_.xQ(function(a){var W=a.data;var w=function(){return W().enableSegmentView};
return _.k("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.k(_.Y,{cond:w,then:function(){return _.k("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.k("div",{class:_.ZK("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+W().startPercent+"%"}}),_.k("div",{class:_.ZK("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+W().segmentDurationPercent+"%"}},_.k("div",{class:_.ZK("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.k("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.k("div",null," ",function(){return W().segmentLabel})),_.k("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.k("div",{class:_.ZK("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.k(_.Y,{cond:function(){return!w()&&W().startPercent},
then:function(){var Z={};return _.k("div",{class:_.ZK("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Z.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.r("web_enable_modern_progress_bar_overlay"),Z))},_.k("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+W().startPercent+"%"}}))}}))},"M");
cW_.idomCompat=!0;var ebT=_.xQ(function(a){var W=_.Ns(),w=_.Au(function(N){var B,I,X;a:{var v=(B=a.data())==null?void 0:B.animationActivationTargetId;B=((I=a.data())==null?void 0:I.animationActivationEntityKey)||"";I=(X=a.data())==null?void 0:X.animationActivationEntitySelectorType;if(B&&v)switch(I){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":N=_.tG(N.entities,"playerStateEntity",B);X=_.K().resolve(_.Vv(_.bV));v=!!(N&&N.videoId===v&&(X==null?0:X.isMiniplayerActive()));v={activated:v,playAnimation:v&&
N.playerState==="PLAYER_STATE_PLAYING"};break a}v=void 0}return v});
_.Ka(function(){var N;if((N=w())==null?0:N.activated){var B;if((B=w())==null?0:B.playAnimation){var I;(I=W.lottieEl)==null||I.goToAndPlay(0)}else{var X;(X=W.lottieEl)==null||X.goToAndStop(0)}}});
var Z=function(){var N,B=!((N=w())==null||!N.activated);if(a.data()){N=a.data();var I=void 0;N.icon&&(I=_.L9e(N.icon),I=x38(I));var X=void 0,v;if((v=N.backgroundColor)==null?0:v.lightTheme){var U;X={backgroundColor:ri((U=N.backgroundColor)==null?void 0:U.lightTheme,"0.8")}}if(N.text||I||B){if(B&&N.lottieData&&W){U=N.lottieData;var O,S,T;v={animationConfig:{name:U.url,path:U.url,autoplay:(O=U.settings)==null?void 0:O.autoplay,loop:(T=(S=U.settings)==null?void 0:S.loop)!=null?T:!0},animationRef:W}}else v=
void 0;if(B)O=16;else b:switch(N.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":O=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":O=18;break b;default:O=16}B={type:O,text:B&&N.animatedText?N.animatedText:N.text,icon:I,customColors:X,animation:v}}else B=void 0}else B=void 0;return B};
return _.k("yt-thumbnail-badge-view-model",{class:_.W$("yt-thumbnail-badge-view-model-wiz",a.class)},_.k(_.Y,{cond:Z,then:function(){return _.k(_.z9,{data:function(){return Z()}})}}))},"N");var nAA=_.xQ(function(a){var W={};return _.k("yt-thumbnail-bottom-overlay-view-model",{class:_.W$("ytThumbnailBottomOverlayViewModelHost",(W.ytThumbnailBottomOverlayViewModelHostBackground=function(){return a.data().enableGradientBackground},W))},_.k("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.k(_.Ax,{data:function(){return a.data().progressBar}},{thumbnailOverlayProgressBarViewModel:cW_}),_.k(_.Ax,{data:function(){return a.data().badge}},{thumbnailBadgeViewModel:function(w){return _.k(ebT,
{data:w.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.k(_.Ax,{data:function(){return a.data().badges}},{thumbnailBadgeViewModel:function(w){return _.k(ebT,{data:w.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"O");
nAA.idomCompat=!0;_.Ct(nAA,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.ux}});var DUm={calledOnce:!1,state:"visible"},fnF={calledOnce:!1,state:"hidden"};_.En(mUS);var jfR=_.xQ(function(a){var W=a.data;var w=a.className;a=a.alwaysShow;var Z=_.D8();_.Cj(Z,function(){return W().rendererContext});
var N=_.q78(),B={};return _.k("thumbnail-hover-overlay-view-model",{el:Z,class:_.W$("ytThumbnailHoverOverlayViewModelHost",w,(B.ytThumbnailHoverOverlayViewModelHostForceHover=a,B)),"aria-label":function(){var I;return(I=_.A(W().rendererContext,_.DB))==null?void 0:I.label},
role:function(){return _.bK(W().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.bK(W().rendererContext)!==void 0?0:void 0},
"on:keypress":N},_.k("div",{class:_.W$("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(W().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var I="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:I="ytThumbnailHoverOverlayViewModelStyleCover"}return I})},_.k(_.Y,{cond:function(){return W().icon},
then:function(I){return _.k(_.qw,{data:I,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.k(_.Y,{cond:function(){return W().text},
then:function(I){return _.k(_.k_,{text:I,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"P"),LyL=_.r("web_enable_sink_lockups_batch")?jfR:mUS,JWy=_.r("web_enable_sink_lockups_batch")?jfR:_.NX(mUS);
jfR.idomCompat=!0;var Fy$=_.xQ(function(a){var W=a.data;return _.k(_.Ax,{data:function(){return W==null?void 0:W().overlays}},{thumbnailHoverOverlayViewModel:JWy})},"Q");
Fy$.idomCompat=!0;var MoH={};var RbA=_.xQ(function(a){var W=a.data;var w=a.image;var Z=a.state;var N=a.iconType;var B=a.overlays;var I=a.isOverlay;var X=_.fH();a=_.l(_.$1(!0,void 0,"AA4e7b"));var v=a.next().value,U=a.next().value,O=function(){return!!W().onTap},S=_.qt(N,"LIVE");
_.Ka(function(){var p=W();requestAnimationFrame(function(){if(X.value===null)var h=!0;else{var L=X.value;h=p.badgeText;var F=VoU(p.size);h in MoH?L=MoH[h]:(L=L.clientWidth,MoH[h]=L);(h=L>F)?X.value.style.display="none":X.value.style.visibility="visible"}U(h)})});
var T=function(){var p={};return p["yt-spec-avatar-shape__image"]=!0,p["yt-spec-avatar-shape__image--ads-app"]=W().type===1,p};
return _.k("yt-avatar-shape",null,_.k("div",{el:_.xJ(Hc7(O,{keydown:function(p){if(p.key==="Enter"){var h;(h=p.currentTarget)==null||h.click()}},
click:function(p){var h,L;return void((L=(h=W()).onTap)==null?void 0:L.call(h,p))}})),
class:function(){var p={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},h=W();p=(p[h.clusterLayoutConfig?awU(h.clusterLayoutConfig):WN9(h.size)]=!0,p["yt-spec-avatar-shape__button--tappable"]=O(),p);(h=W().avatarButtonCustomClassName)&&(p[h]=!0);return _.ZK(p)},
"aria-label":function(){return O()?W().accessibilityText:""},
role:function(){return O()?"button":void 0},
tabindex:function(){return O()?0:void 0}},_.k("div",{class:function(){var p,h=W(),L=Z==null?void 0:Z(),F=I==null?void 0:I(),x=!((p=h.decorations)==null||!p.includes(2)||h.size!=="medium"&&h.size!=="large"),G=h.size==="tiny"||h.size==="extra-small",V,d,ZD,aC,Bv={};
p=(Bv["yt-spec-avatar-shape--live-ring"]=!!(((V=h.decorations)==null?0:V.includes(0))&&Zbx(h.size)),Bv["yt-spec-avatar-shape--stories-watched"]=x&&!(L==null||!L.storiesWatched),Bv["yt-spec-avatar-shape--stories-unwatched"]=x&&!(L==null?0:L.storiesWatched),Bv["yt-spec-avatar-shape--background-border"]=NNS(h.decorations)&&!G,Bv["yt-spec-avatar-shape--background-border-thin"]=NNS(h.decorations)&&G,Bv["yt-spec-avatar-shape__on-select-border"]=!((d=h.decorations)==null||!d.includes(4)),Bv["yt-spec-avatar-shape__white-border"]=
!((ZD=h.decorations)==null||!ZD.includes(5)),Bv["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((aC=h.decorations)==null?0:aC.includes(5))&&G),Bv["yt-spec-avatar-shape--is-overlay"]=!!F,Bv);return _.ZK(p)}},_.k("div",{class:function(){var p={};
var h=W();p=(p[h.clusterLayoutConfig?yWe(h.clusterLayoutConfig):EAC(h.size)]=!0,p["yt-spec-avatar-shape--no-margin"]=NNS(W().decorations),p);return _.ZK(p)}},_.k(_.qw,{data:w,
alt:function(){return!O()&&W().accessibilityText?W().accessibilityText:""},
targetWidth:function(){return wcC(W().size)},
targetHeight:function(){return wcC(W().size)},
className:function(){return _.ZK(T())}}),_.k(_.Y,{cond:function(){var p;
return((p=W().decorations)==null?void 0:p.includes(0))&&Zbx(W().size)},
then:function(){return _.k("div",{class:function(){var p={};p=(p["yt-spec-avatar-shape__live-badge"]=!0,p["yt-spec-avatar-shape__live-badge--badge-small"]=W().size==="small",p["yt-spec-avatar-shape__live-badge--badge-medium"]=W().size==="medium"||W().size==="48",p["yt-spec-avatar-shape__live-badge--badge-large"]=W().size==="large",p["yt-spec-avatar-shape__live-badge--badge-extra-large"]=W().size==="extra-large"||W().size==="extra-extra-large"||W().size==="giant",p);return _.ZK(p)}},_.k(_.Y,{cond:function(){return W().badgeText},
then:function(p){return _.k("div",{class:"yt-spec-avatar-shape__badge-text",el:X},p)}}),_.k(_.Y,{cond:v,
then:function(){return _.k("div",{class:"yt-spec-avatar-shape__badge-icon"},_.k(_.P$,{icon:S,size:function(){a:switch(W().size){case "extra-large":var p=16;break a;default:p=13}return p}}))}}))}}),_.k(_.Y,{cond:function(){var p,h;
return((p=W().decorations)==null?void 0:p.includes(1))||((h=W().decorations)==null?void 0:h.includes(0))&&!Zbx(W().size)},
then:function(){return _.k("div",{class:function(){var p=W(),h,L,F={};var x=(F["yt-spec-avatar-shape__live-dot"]=!((h=p.decorations)==null||!h.includes(0)||Zbx(p.size)),F["yt-spec-avatar-shape__new-content"]=!((L=p.decorations)==null||!L.includes(1)),F);return _.ZK(x)}})}}),_.k(_.Y,{cond:function(){return!!B},
then:function(){return _.k("div",{class:function(){var p={};p=Object.assign((p["yt-spec-avatar-shape__image-overlays"]=!0,p),T());return _.ZK(p)}},B==null?void 0:B())}})))))},"R");
RbA.idomCompat={callbacks:{overlays:!0}};_.c6=_.xQ(function(a){function W(){w().endpoint&&_.cX(w().endpoint)}
var w=a.data;var Z=a.decorations;var N=a.avatarButtonCustomClassName;var B=a.isOverlay;var I=a.clusterLayoutConfig;return _.k("avatar-view-model",null,_.k(_.Y,{cond:function(){return w().image},
then:function(X){return _.k(RbA,{data:function(){return $zI({data:w(),onTap:w().endpoint?W:void 0,decorations:Z==null?void 0:Z(),badgeText:void 0,accessibilityText:w().accessibilityText,avatarButtonCustomClassName:N==null?void 0:N(),clusterLayoutConfig:I==null?void 0:I()})},
image:X,iconType:"RADAR_LIVE",overlays:function(){return _.k(Fy$,{data:w})},
isOverlay:B})}}))},"S");
_.c6.idomCompat=!0;_.Sd=_.xQ(function(a){var W=a.data;a=a.className;var w=_.fH(),Z=function(){return _.A(W().avatar,_.fj)},N=_.XT(function(){var B,I=W(),X=Z(),v=_.bK(W().rendererContext),U=(B=w.value)!=null?B:void 0,O;
if(X){U={data:I,avatar:X,onTap:v,element:U};B=U.data;I=U.avatar;X=U.onTap;v=U.element;U=U.commandController;X=X?Pve(X,v,U):void 0;v=[];B.liveData&&v.push(0);var S;U=(S=B.liveData)==null?void 0:S.liveBadgeText;S=(O=_.A(B.rendererContext,_.DB))==null?void 0:O.label;O=$zI({data:I,onTap:X,decorations:v,badgeText:U,accessibilityText:S?S:B.a11yLabel})}else O={size:"medium"};return O},void 0,"H8tk9d");
return _.k("yt-decorated-avatar-view-model",{class:_.W$("yt-decorated-avatar-view-model-wiz",a),el:w},_.k(_.Y,{cond:function(){var B;return(B=Z())==null?void 0:B.image},
then:function(B){return _.k(RbA,{data:N,image:B,iconType:"RADAR_LIVE",overlays:function(){return _.k(Fy$,{data:Z})}})}}))},"T");
_.Sd.idomCompat=!0;_.Yl=_.xQ(function(a){var W=function(){var X;return Object.assign({},a.data(),(X=a.overrides)==null?void 0:X.call(a))},w=_.D8(),Z=function(){return w&&_.sB(W().rendererContext)};
_.Cj(w,function(){return W().rendererContext});
var N=function(){var X=W().avatars,v,U;return(U=(v=(X==null?0:X[0])?_.A(X[0],_.fj):void 0)==null?void 0:v.avatarImageSize)!=null?U:"AVATAR_SIZE_UNKNOWN"},B=function(){return Iwe(W())},I={};
return _.k("yt-avatar-stack-view-model",{el:w,class:_.W$("yt-avatar-stack-view-model-wiz",a.className,(I["yt-avatar-stack-view-model-wiz--tappable"]=Z,I["yt-avatar-stack-view-model-wiz--is-overlay"]=a.isOverlay,I["yt-avatar-stack-view-model-wiz--medium-text"]=a.useMediumText,I)),tabindex:function(){return Z()?0:void 0},
role:function(){return Z()?"link":void 0},
"aria-label":function(){var X,v;return(v=(X=_.A(W().rendererContext,_.DB))==null?void 0:X.label)!=null?v:""}},_.k(_.Y,{cond:function(){var X;
return W().avatars&&!((X=a.hideAvatar)==null?0:X.call(a))},
then:function(){return _.k("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.k(_.Y,{cond:function(){return W().decoratedText},
then:function(X){var v={};return _.k("div",{class:_.W$("yt-avatar-stack-view-model-wiz__text-container",(v["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return N()==="AVATAR_SIZE_XXS"||N()==="AVATAR_SIZE_XS"},v["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var U;
return((U=a.isOverlay)==null?void 0:U.call(a))&&(N()==="AVATAR_SIZE_XXS"||N()==="AVATAR_SIZE_XS")},v)),
style:_.It({width:function(){return B().avatarSizeInPx+"px"},
height:function(){return B().avatarSizeInPx+"px"}})},_.k(_.k_,{text:X,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.k("div",{style:function(){return _.It(B().avatarStackStyle)()},
class:function(){return B().avatarStackClass}},_.k(_.Ax,{data:function(){return B().avatars.reverse()}},{avatarViewModel:function(X,v){return _.k("div",{style:function(){var U,O;
return _.It((O=(U=B()).avatarStyle)==null?void 0:O.call(U,v()))()},
class:function(){return B().avatarClass}},_.k(_.c6,{data:X.data,
decorations:function(){var U;if((U=a.decorations)==null?0:U.call(a))U=a.decorations();else{U=W();var O=0;U.avatars&&(O+=U.avatars.length);U.decoratedText&&(O+=1);U=O>1?[3]:[]}return U},
avatarButtonCustomClassName:function(){return B().avatarButtonCustomClassName},
isOverlay:a.isOverlay,clusterLayoutConfig:function(){var U,O;return(O=(U=B()).clusterLayoutConfig)==null?void 0:O.call(U,v())}}))},
decoratedAvatarViewModel:function(X,v){return _.k("div",{style:function(){var U,O;return _.It((O=(U=B()).avatarStyle)==null?void 0:O.call(U,v()))()},
class:function(){return B().avatarClass}},_.k(_.Sd,{data:X.data}))}})))}}),_.k(_.Y,{cond:function(){return W().text},
then:function(X){return _.k(_.k_,{text:X,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"U");
_.Yl.idomCompat=!0;_.Ct(_.xQ(function(a){var W=a.data;var w=a.thumbnailSize;return _.k("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.k("div",{class:_.W$("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Xce(w==null?void 0:w())})},_.k(_.Ax,{data:function(){return W().avatarStack}},{avatarStackViewModel:function(Z){return _.k(_.Yl,{data:Z.data,
decorations:[5]})}})))},"V"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.qR,
thumbnailSize:_.qR}});_.En(vFe);var q7h=_.xQ(function(a){a=_.Qn(a,{hidden:!1});var W=a.data;return _.k("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:a.hidden},_.k(_.k_,{text:function(){return W().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.k(_.Y,{cond:function(){return W().subtitle},
then:function(){return _.k(_.k_,{text:function(){return W().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"W"),QfE=_.r("web_enable_sink_lockups_batch")?q7h:vFe,xU_=_.r("web_enable_sink_lockups_batch")?q7h:_.NX(vFe);
q7h.idomCompat=!0;_.r("web_enable_sink_lockups_batch")?_.Ct(xU_,"yt-thumbnail-overlay-title-view-model",{props:{data:_.qR,hidden:_.qR}}):_.HX(QfE,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var bcJ=_.xQ(function(a){a=_.Qn(a,{isClip:!1});var W=a.data,w=a.thumbnailSize,Z={};return _.k("yt-thumbnail-overlay-badge-view-model",{class:_.W$("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(W().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var N="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:N="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return N},function(){return gFD(w==null?void 0:w())},(Z["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
a.isClip,Z))},_.k(_.Ax,{data:function(){return W().thumbnailBadges}},{thumbnailBadgeViewModel:function(N){return _.k(ebT,{data:N.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"X");
bcJ.idomCompat=!0;_.Ct(bcJ,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.qR,thumbnailSize:_.qR,isClip:_.qR}});_.En(oFv);_.HX(oFv,"yt-page-indicator-view-model",{propNames:["data"]});var Tn=function(){var a=_.u.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};
_.c(Tn,_.u);_.t=Tn.prototype;
_.t.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:_.r("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"}}};
_.t.onImageLoaded=function(){this.loaded=!0};
_.t.onImageUnloaded=function(){this.loaded=!1};
_.t.computeRichThumbnail=function(a,W,w,Z){if(a&&W&&!Z&&!_.r("disable_moving_thumbs_handling")&&!w)return W};
_.t.computeImageWidth=function(a,W){return W||9999};
_.t.computeIsOriginalAspectRatio=function(a){return a};
_.t.computeIsLive=function(a){if(a==null?0:a.badges)for(var W=0;W<a.badges.length;W++){var w=a.badges[W];if(w.metadataBadgeRenderer&&w.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(a==null?0:a.thumbnailOverlays)for(W=0;W<a.thumbnailOverlays.length;W++)if(w=a.thumbnailOverlays[W],w.thumbnailOverlayTimeStatusRenderer&&w.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.t.computeObjectFit=function(a,W){return W||(a?"CONTAIN":"")};
_.t.computeNavigationEndpoint=function(a,W,w){return a?W:w};
_.t.computeHasClip=function(a){a=_.l(a||[]);for(var W=a.next();!W.done;W=a.next())if(W.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.t.computeOverlayColor=function(a){var W;return(a==null?0:(W=a.darkColorPalette)==null?0:W.section2Color)?a.darkColorPalette.section2Color:a==null?void 0:a.sampledThumbnailColor};
_.dU.Object.defineProperties(Tn.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return CA(this.width)}}});
Tn.prototype.onImageUnloaded=Tn.prototype.onImageUnloaded;Tn.prototype.onImageLoaded=Tn.prototype.onImageLoaded;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Tn.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(IOR),_.z("design:type",Object)],Tn.prototype,"ytdThumbnailBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Tn.prototype,"componentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Tn.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Tn.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Tn.prototype,"circular",void 0);
_.f([_.b({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.z("design:type",Object)],Tn.prototype,"richThumbnail",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.z("design:type",Boolean)],Tn.prototype,"hasClip",void 0);_.f([_.b(),_.z("design:type",Object)],Tn.prototype,"eventSink",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Tn.prototype,"queued",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],Tn.prototype,"richGridThumbnail",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Tn.prototype,"useExpandableTooltip",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Tn.prototype,"useUntranslatedNavigationEndpoint",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Tn.prototype,"disableInteraction",void 0);
_.f([_.b({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.z("design:type",Object)],Tn.prototype,"computedNavigationEndpoint",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Tn.prototype,"nowPlayingEqualizerOnly",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Tn.prototype,"hidePlaybackStatus",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Tn.prototype,"objectFit",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Tn.prototype,"noRoundedCorners",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Tn.prototype,"watchFeedThumbnail",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Tn.prototype,"isPreviewLoading",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.z("design:type",Object)],Tn.prototype,"isOriginalAspectRatio",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.z("design:type",Object)],Tn.prototype,"computedObjectFit",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.z("design:type",Boolean)],Tn.prototype,"isLiveVideo",void 0);
_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Tn.prototype,"loaded",void 0);_.f([_.b({computed:"computeOverlayColor(data.thumbnail)"}),_.z("design:type",Object)],Tn.prototype,"overlayColor",void 0);_.f([_.b({selector:_.LFH}),_.z("design:type",Boolean)],Tn.prototype,"inlinePreviewIsEnabled",void 0);_.f([_.b(),_.z("design:type",Number)],Tn.prototype,"width",void 0);
_.f([_.Q("inlinePreviewIsEnabled"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Tn.prototype,"isPreviewDisabled",null);_.f([_.Q("width"),_.z("design:type",String),_.z("design:paramtypes",[])],Tn.prototype,"thumbnailSize",null);_.f([_.E6("image-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Tn.prototype,"onImageLoaded",null);
_.f([_.E6("image-unloaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Tn.prototype,"onImageUnloaded",null);Tn=_.f([_.C({disableElementRegistration:!0,is:"ytd-thumbnail"})],Tn);
var sfR=_.mV()(Tn,"ytd-thumbnail",function(){if(icT===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);icT=a}a=icT;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 SQe=function(a){var W=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12700_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12700_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(w){ugH(W,w)};
this.onLockupMouseLeaveFn=function(w){w=w.relatedTarget;var Z,N;((Z=document.getElementsByTagName("ytd-video-preview"))==null?0:(N=Z.item(0))==null?0:N.contains(w))||(W.terminateVideoPreview(),Kd(W))};
this.onThumbnailMouseDownFn=function(){W.terminateVideoPreview();Kd(W)};
this.onTouchStart=function(){W.JSC$12700_touched=!0};
this.mediaRenderer=a.mediaRenderer;this.thumbnailElement=a.thumbnailElement;this.lockupElement=a.lockupElement;this.videoPreviewOptsInput=a.videoPreviewOpts;C4R(this);pd(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)):
_.jJ(Error("Bh")):_.jJ(Error("Ch")):Gty(this)},ty=function(a){Gty(a);
var W;(W=a.lockupElement)==null||W.removeEventListener("mouseenter",a.onMouseMoveFn);var w;(w=a.lockupElement)==null||w.removeEventListener("mouseleave",a.onLockupMouseLeaveFn);var Z;(Z=a.lockupElement)==null||Z.removeEventListener("touchstart",a.onTouchStart);var N;(N=a.thumbnailElement)==null||N.removeEventListener("mousedown",a.onThumbnailMouseDownFn);Kd(a)},C4R=function(a){a.inlinePreviewIsEnabledForUser=_.Cx().getState().ui.inlinePreviewIsEnabled;
a.unsubscribeFromInlinePreviewIsEnabled=_.oX(_.Cx(),_.LFH,function(W){(a.inlinePreviewIsEnabledForUser=W)||Kd(a)});
a.JSC$12700_unsubscribeFromInlinePreviewIsActive=_.oX(_.Cx(),_.ji9,function(W){(a.inlinePreviewIsActive=W)||Kd(a)})},Gty=function(a){a.unsubscribeFromInlinePreviewIsEnabled();
a.unsubscribeFromInlinePreviewIsEnabled=function(){};
a.JSC$12700_unsubscribeFromInlinePreviewIsActive();a.JSC$12700_unsubscribeFromInlinePreviewIsActive=function(){}},ugH=function(a,W){W.buttons>0||(W=_.yv("kevlar_lockup_hover_delay",-1),a.JSC$12700_touched&&W>=0?(_.hF.cancelJob(a.videoPreviewJobId),a.videoPreviewJobId=_.mY(_.hF,function(){DUL(a)},W),a.JSC$12700_touched=!1):DUL(a))},fn_=function(a){a.videoPreviewJobId=_.mY(_.hF,function(){var W,w,Z,N;
return _.P(function(B){if(B.nextAddress==1){if(!pd(a))return B.return();W=a.getVideoPreviewOpts();if(!W)return B.return();W.isAutoplay=!0;return(Z=(w=_.W_(a.mediaRenderer.hostElement,"yt-open-video-preview-action",[W]))&&w[0])?_.g(B,w[0],3):B.jumpTo(2)}B.nextAddress!=2&&(Z=B.yieldResult===1);Z&&Uze((N=a.mediaRenderer)==null?void 0:N.data);_.Xd(B)})})},DUL=function(a){!a.previewTriggered&&pd(a)&&(a.inlinePreviewIsActive&&a.terminateVideoPreview(),a.previewTriggered=!0,a.mediaRenderer.isInlinePreviewTriggered=
!0,_.hF.cancelJob(a.videoPreviewJobId),a.videoPreviewJobId=_.mY(_.hF,function(){var W,w,Z,N;
return _.P(function(B){if(B.nextAddress==1){if(!pd(a))return B.return();W=a.getVideoPreviewOpts();return W?(Z=(w=_.W_(a.mediaRenderer.hostElement,"yt-open-video-preview-action",[W]))&&w[0])?_.g(B,w[0],3):B.jumpTo(2):B.return()}B.nextAddress!=2&&(Z=B.yieldResult===1);Z&&Uze((N=a.mediaRenderer)==null?void 0:N.data);_.Xd(B)})}))};
SQe.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var a,W;if((W=(a=this.videoPreviewOptsInput)==null?void 0:a.videoPreviewData)!=null)a=W;else if(a=this.mediaRenderer.data)if(kYF(a))a={inlinePlaybackEndpoint:_.rJ(a.inlinePlayerData.onVisible),navigationEndpoint:_.rJ(a.onTap),thumbnail:"image"in a?a.image:a.thumbnail,thumbnailOverlays:void 0,accessibilityText:ObD(a)};else if("multipleInlinePlaybackEndpoint"in a){var w=_.A(_.A(a.multipleInlinePlaybackEndpoint,Jdh),Fs$);if(w!=
null&&w.playerDescriptors){W=[];w=_.l(w.playerDescriptors);for(var Z=w.next();!Z.done;Z=w.next())Z=Z.value,W.push({inlinePlaybackEndpoint:Z.inlinePlaybackEndpoint,navigationEndpoint:Z.navigationEndpoint,thumbnail:Z.thumbnail,thumbnailOverlays:Z.thumbnailOverlays,accessibilityText:ObD(a)});a=W}else a=void 0}else a={inlinePlaybackEndpoint:a.inlinePlaybackEndpoint,navigationEndpoint:a.navigationEndpoint,thumbnail:a.thumbnail,thumbnailOverlays:a.thumbnailOverlays,accessibilityText:ObD(a)};else a=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:a,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var pd=function(a){var W;if(W=a.inlinePreviewIsEnabledForUser)W=(a=a.mediaRenderer.data)?"inlinePlaybackEndpoint"in a&&a.inlinePlaybackEndpoint||kYF(a)&&a.inlinePlayerData||"multipleInlinePlaybackEndpoint"in a&&a.multipleInlinePlaybackEndpoint?!0:!1:!1;return W};
SQe.prototype.terminateVideoPreview=function(){_.aV(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Kd=function(a){_.hF.cancelJob(a.videoPreviewJobId);a.inlinePreviewIsActive=!1;a.previewTriggered=!1;a.mediaRenderer.isInlinePreviewTriggered=!1};var dUT=_.ma(["#"]),r8=function(){var a=_.u.apply(this,arguments)||this;a.isDisabled=!1;return a};
_.c(r8,_.u);_.t=r8.prototype;_.t.configureRendererStamper=function(){return{"data.menu":tV,"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"}}}};
_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.getMetadata=function(a){var W=[];if(a.metadataText&&Object.keys(a.metadataText).length>0){var w=this.ytRendererBehavior.getSimpleString(a.metadataText);a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&(w=_.Ms(w,Number(a.upcomingEventData.startTime)));W.push(w)}else a.shortViewCountText&&W.push(this.ytRendererBehavior.getSimpleString(a.shortViewCountText)),a.publishedTimeText&&W.push(this.ytRendererBehavior.getSimpleString(a.publishedTimeText)),a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&
(w=this.ytRendererBehavior.getSimpleString(a.upcomingEventData.upcomingEventText),W.push(_.Ms(w,Number(a.upcomingEventData.startTime))));return W};
_.t.calculateBylineText=function(a){return a.shortBylineText?a.shortBylineText:a.bylineText?a.bylineText:null};
_.t.calculateIsDisabled=function(a){return!!a.isDisabled};
_.t.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a)||_.Kv(dUT)};
_.t.onDetailsTap=function(a){var W=this.data&&this.data.navigationEndpoint;W&&!_.b5(_.qj(a)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.r("kevlar_grid_video_renderer_killswitch")?_.E$(this.hostElement,"yt-navigate",{endpoint:W}):this.ytComponentBehavior.resolveCommand(W))};
_.t.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12705_inlinePreviewHoverListener=dP({mediaRenderer:this,lockupElement:_.M(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.M(this.hostElement).querySelector("ytd-thumbnail")})};
_.t.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$12705_inlinePreviewHoverListener)==null||ty(a)};
_.t.computeThumbnailWidth=function(a,W){return W&&W>0?W:a?360:210};
_.t.computeShowChannelThumbnail=function(a,W){var w;return W&&!!(a==null?0:(w=a.channelThumbnailSupportedRenderers)==null?0:w.channelThumbnailWithLinkRenderer)};
_.dU.Object.defineProperties(r8.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$12705_inlinePreviewHoverListener)==null?0:pd(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
r8.prototype.dataChanged=r8.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],r8.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],r8.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.R(_.qv),_.z("design:type",Object)],r8.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],r8.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],r8.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],r8.prototype,"noEndpoints",void 0);_.f([_.b({computed:"calculateBylineText(data)"}),_.z("design:type",Object)],r8.prototype,"bylineText",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],r8.prototype,"isSearch",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],r8.prototype,"isDownloading",void 0);_.f([_.b({reflectToAttribute:!0,value:0}),_.z("design:type",Number)],r8.prototype,"width",void 0);_.f([_.b({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.z("design:type",Object)],r8.prototype,"isDisabled",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r8.prototype,"dataChanged",null);_.f([_.Q("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],r8.prototype,"isHovered",null);r8=_.f([_.C({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],r8);
_.D(r8,"ytd-grid-video-renderer",function(){if(oA6!==void 0)return oA6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return oA6=a},{mode:_.Vn("kevlar_poly_si_batch_j047")?1:2});var mUR;var AV=function(){var a=_.u.apply(this,arguments)||this;a.roundedContainer=!0;a.skipRoundingTop=!1;a.disableTopPadding=!1;a.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return a};
_.c(AV,_.u);AV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
AV.prototype.onClick=function(a){var W,w=(W=this.data)==null?void 0:W.sourceEndpoint;!_.b5(_.qj(a),this.hostElement,["A".toString()])&&w&&_.E$(this.hostElement,"yt-navigate",{endpoint:w})};
_.dU.Object.defineProperties(AV.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,W;return(W=(a=this.data)==null?void 0:a.paragraphMaxLines)!=null?W:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],AV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],AV.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],AV.prototype,"showVerticalDividers",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],AV.prototype,"roundedContainer",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],AV.prototype,"skipRoundingTop",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],AV.prototype,"disableTopPadding",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],AV.prototype,"amsterdamEnabled",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],AV.prototype,"showMetadataAtTop",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],AV.prototype,"showMetadataBelowTitle",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.menu"),_.z("design:type",Object),_.z("design:paramtypes",[])],AV.prototype,"hasMenu",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.truncateParagraphs"),_.z("design:type",Object),_.z("design:paramtypes",[])],AV.prototype,"truncateParagraphs",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.paragraphMaxLines"),_.z("design:type",Number),_.z("design:paramtypes",[])],AV.prototype,"paragraphMaxLines",null);_.f([_.b({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.background"),_.z("design:type",Object),_.z("design:paramtypes",[])],AV.prototype,"background",null);AV=_.f([_.C({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],AV);
_.D(AV,"ytd-info-panel-content-renderer",function(){if(mUR!==void 0)return mUR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return mUR=a},{mode:_.Vn("kevlar_poly_si_batch_j076")?1:2});var VoJ;var zbT;var Hc6;var yWH;var hV=function(){return _.u.apply(this,arguments)||this};
_.c(hV,_.u);hV.prototype.computeStyle=function(a){return a};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],hV.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],hV.prototype,"style_",void 0);hV=_.f([_.TD({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],hV);
_.D(hV,"yt-channel-thumbnail-with-link-renderer",function(){if(yWH===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;Hc6===void 0&&(Hc6=document.createElement("template"));var Z=Hc6;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);yWH=a}a=yWH;return a},{mode:2});var iC=function(){var a=_.u.apply(this,arguments)||this;a.modernTypography=_.r("web_modern_typography");return a};
_.c(iC,_.u);iC.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"}}}};
iC.prototype.computeTitleStyle=function(a){return a||null};
iC.prototype.computeAvatarStyle=function(a){return a||null};
iC.prototype.computeShowNavigationButton=function(a,W){return!(a==null||!a.navigationButton||W)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],iC.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.z("design:type",String)],iC.prototype,"titleStyle",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.z("design:type",String)],iC.prototype,"avatarStyle",void 0);_.f([_.b(),_.z("design:type",Boolean)],iC.prototype,"hideNavigationButton",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],iC.prototype,"isModernSd",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],iC.prototype,"modernTypography",void 0);
iC=_.f([_.C({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],iC);
_.D(iC,"ytd-rich-list-header-renderer",function(){if(zbT!==void 0)return zbT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return zbT=a},{mode:_.Vn("kevlar_poly_si_batch_j058")?1:2});var cR=function(){return _.u.apply(this,arguments)||this};
_.c(cR,_.u);cR.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]]"}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],cR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],cR.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],cR.prototype,"isSearch",void 0);cR=_.f([_.C({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],cR);
_.D(cR,"ytd-preview-card-renderer",function(){if(VoJ!==void 0)return VoJ;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return VoJ=a},{mode:1});var EAe;var ed=function(){return _.u.apply(this,arguments)||this};
_.c(ed,_.u);ed.prototype.configureRendererStamper=function(){return{"data.menu":tV}};
ed.prototype.dataChanged=function(){var a=this.get("colorExtractionPalette.section1Color",this.data);a=_.KC(a);_.Hu(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":a})};
ed.prototype.computeCardStyle=function(a){return this.get("style.value",a)||null};
ed.prototype.dataChanged=ed.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ed.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],ed.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ed.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.z("design:type",String)],ed.prototype,"cardStyle",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ed.prototype,"dataChanged",null);ed=_.f([_.C({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],ed);
_.D(ed,"ytd-compact-channel-recommendation-card-renderer",function(){if(EAe!==void 0)return EAe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return EAe=a},{mode:1});var awJ;var WNV;var nd=function(){var a=_.u.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};
_.c(nd,_.u);_.t=nd.prototype;_.t.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.t.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.t.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var a=_.M(this.hostElement),W=a.childNodes,w=document.createDocumentFragment(),Z=a.childNodes.length-1;Z>=0;Z--)_.M(w).appendChild(W[Z]);_.r("enable_shadydom_free_scoped_node_methods")?_.di(this.hostElement).appendChild(w):a.appendChild(w)}};
_.t.ready=function(){var a=this;_.cA(function(){a.initChildrenObserver()},1)};
_.t.detached=function(){this.detachObserver()};
_.t.toggle=function(a,W){this.canToggle&&(this.isToggled=W,_.E$(this.hostElement,"yt-refit"),a&&a.stopPropagation())};
_.t.reset=function(){this.childrenChanged()};
_.t.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.t.computeIsMoreVisible=function(a,W){return a&&!W};
_.t.computeShouldUseNumberOfLines=function(a){try{return!!a&&window.CSS.supports("-webkit-line-clamp","1")}catch(W){}return!1};
_.t.computeIsLessVisible=function(a,W){return a&&W};
_.t.observeCollapsedHeightAndMaxLines=function(){var a=this.collapsedHeight,W=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Hu(this.hostElement,{"--ytd-expander-max-lines":""+W,"--ytd-expander-collapsed-height":""}):_.Hu(this.hostElement,{"--ytd-expander-collapsed-height":a+"px","--ytd-expander-max-lines":""})};
_.t.handleMoreTap=function(a){this.disableToggle||(_.E$(this.hostElement,"yt-expander-more-tapped"),this.toggle(a,!0))};
_.t.handleLessTap=function(a){_.E$(this.hostElement,"yt-expander-less-tapped");this.toggle(a,!1)};
_.t.initChildrenObserver=function(){var a=this;this.observer=new MutationObserver(function(){a.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.t.childrenChanged=function(){var a=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){dJ(function(){a.canToggleJobId=0;a.calculateCanCollapse()})}))};
_.t.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};
_.t.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.t.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("collapsed-changed",this.collapsed))};
_.t.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("is-toggled-changed",this.isToggled))};
_.t.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("can-toggle-changed",this.canToggle))};
_.dU.Object.defineProperties(nd.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
nd.prototype.canToggleChangedForBinding=nd.prototype.canToggleChangedForBinding;nd.prototype.isToggledChangedForBinding=nd.prototype.isToggledChangedForBinding;nd.prototype.collapsedChangedForBinding=nd.prototype.collapsedChangedForBinding;nd.prototype.observeCollapsedHeightAndMaxLines=nd.prototype.observeCollapsedHeightAndMaxLines;nd.prototype.onIronResize=nd.prototype.onIronResize;nd.prototype.reversedChanged=nd.prototype.reversedChanged;nd.prototype.toggledChanged=nd.prototype.toggledChanged;
nd.prototype.alwaysToggleableChanged=nd.prototype.alwaysToggleableChanged;_.f([_.R(_.eG),_.z("design:type",Object)],nd.prototype,"ironResizableBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nd.prototype,"alignAuto",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nd.prototype,"collapsed",void 0);_.f([_.b(),_.z("design:type",Object)],nd.prototype,"isToggled",void 0);_.f([_.b(),_.z("design:type",Object)],nd.prototype,"alwaysCollapsed",void 0);
_.f([_.b(),_.z("design:type",Object)],nd.prototype,"canToggle",void 0);_.f([_.b(),_.z("design:type",Object)],nd.prototype,"collapsedHeight",void 0);_.f([_.b(),_.z("design:type",Object)],nd.prototype,"disableToggle",void 0);_.f([_.b(),_.z("design:type",Object)],nd.prototype,"alwaysToggleable",void 0);_.f([_.b(),_.z("design:type",Object)],nd.prototype,"reversed",void 0);_.f([_.b(),_.z("design:type",Number)],nd.prototype,"maxNumberOfLines",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.z("design:type",Object)],nd.prototype,"shouldUseNumberOfLines",void 0);_.f([_.b(),_.z("design:type",Object)],nd.prototype,"recomputeOnResize",void 0);_.f([_.w$("#content"),_.z("design:type",HTMLDivElement)],nd.prototype,"content",void 0);_.f([_.lO("alwaysToggleable"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nd.prototype,"alwaysToggleableChanged",null);
_.f([_.lO("isToggled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nd.prototype,"toggledChanged",null);_.f([_.Q("canToggleJobId"),_.z("design:type",Object),_.z("design:paramtypes",[])],nd.prototype,"isResetting",null);_.f([_.a5("reversed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nd.prototype,"reversedChanged",null);
_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nd.prototype,"onIronResize",null);_.f([_.a5("maxNumberOfLines","collapsedHeight"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nd.prototype,"observeCollapsedHeightAndMaxLines",null);_.f([_.a5("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nd.prototype,"collapsedChangedForBinding",null);
_.f([_.a5("isToggled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nd.prototype,"isToggledChangedForBinding",null);_.f([_.a5("canToggle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nd.prototype,"canToggleChangedForBinding",null);nd=_.f([_.C({disableElementRegistration:!0,is:"ytd-expander"})],nd);
_.D(nd,"ytd-expander",function(){if(WNV!==void 0)return WNV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return WNV=a},{mode:1});var jd=function(){return _.u.apply(this,arguments)||this};
_.c(jd,_.u);jd.prototype.computeIsCarousel=function(a){return!!a.isCarousel};
jd.prototype.observeLightsourcePalette=function(){var a,W=(a=this.data)==null?void 0:a.vibrantsourceColorPaletteData;W&&_.Tw(this.hostElement,W)};
jd.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
jd.prototype.observeLightsourcePalette=jd.prototype.observeLightsourcePalette;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],jd.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],jd.prototype,"data",void 0);_.f([_.b({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],jd.prototype,"isCarousel",void 0);
_.f([_.a5("data.vibrantsourceColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jd.prototype,"observeLightsourcePalette",null);jd=_.f([_.C({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],jd);
_.D(jd,"ytd-media-upsell-renderer",function(){if(awJ!==void 0)return awJ;var a=document.createElement("template");_.n(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="arrow_drop_down" 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="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);return awJ=a},{mode:2});var wce;var Ld=function(){var a=_.u.apply(this,arguments)||this;a.JSC$12733_playerEvents=new Map;a.listeningToPlayer=!1;a.startX=0;a.active=!1;a.shouldShowButtons=_.r("web_buttons_hidden_killswitch");a.isHighlighted=!1;a.useHighlightStyling=_.r("web_enable_deeper_metadata_highlight_styling");a.modern=_.r("kevlar_modern_sd");a.enableProblemWalkthrough=_.r("problem_walkthrough_sd");return a};
_.c(Ld,_.u);_.t=Ld.prototype;
_.t.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}}}}}};
_.t.created=function(){this.JSC$12733_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.t.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.yV(this,this.onRepeatButtonToggle));_.r("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.yV(this,this.onActiveUpdate))};
_.t.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.yV(this,this.onRepeatButtonToggle));_.r("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.yV(this,this.onActiveUpdate))};
_.t.onDataChanged=function(){this.removePlayerListeners()};
_.t.onColorPaletteChange=function(){var a={},W;if(_.eM()==="USER_INTERFACE_THEME_DARK"&&((W=this.data)==null?0:W.darkColorPalette)){var w=this.data.darkColorPalette;a["--ytd-macro-markers-list-item-background-color"]=_.pC(this.get("section2Color",w))}else{var Z;_.eM()==="USER_INTERFACE_THEME_LIGHT"&&((Z=this.data)==null?0:Z.lightColorPalette)&&(w=this.data.lightColorPalette,a["--ytd-macro-markers-list-item-background-color"]=_.pC(this.get("section3Color",w)))}w?(a["--ytd-macro-markers-list-item-title-color"]=
_.pC(this.get("primaryTitleColor",w)),a["--ytd-macro-markers-list-item-secondary-color"]=_.pC(this.get("secondaryTitleColor",w)),a["--ytd-macro-markers-list-item-timestamp-background-color"]=_.pC(this.get("section1Color",w)),this.customButtonProperties={customColors:{color:_.pC(this.get("primaryTitleColor",w))}},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);_.Hu(this.hostElement,a)};
_.t.onEndpointMouseDown=function(a){this.startX=a.clientX};
_.t.onEndpointClick=function(a){var W=this,w,Z,N;return _.P(function(B){if(B.nextAddress==1){if(W.startX!==a.clientX)return a.preventDefault(),B.return();W.data&&W.ytRendererBehavior.logExplicitClick(W.data);if(!W.seekWithAnimationOnClick)return B.jumpTo(0);if(a.button!==0||a.shiftKey||a.altKey||a.metaKey||a.ctrlKey||_.b5(_.qj(a),W.hostElement,["BUTTON".toString()]))return B.return();a.stopPropagation();a.preventDefault();return W.data?_.g(B,_.d2().getPlayerPromise(),3):B.return()}w=B.yieldResult;
N=(Z=_.A(W.data.onTap,_.u6))==null?void 0:Z.startTimeSeconds;N!==void 0&&w.seekToTimeWithAnimation(N*1E3,_.sd(W.data.title));_.Xd(B)})};
_.t.computeLayout=function(a){return a};
_.t.computeIsHighlighted=function(a){return!!a};
_.t.computeCarouselType=function(a){return a};
_.t.hideModernCarousel=function(a){return this.modern&&this.hideThumbnail(a)};
_.t.hideThumbnail=function(a){return this.enableProblemWalkthrough&&a!==null&&a==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.t.onRepeatButtonToggle=function(a){var W=this;a.detail.toggled&&_.d2().getPlayerPromise().then(function(w){W.ytPlayerListenerBehavior.listenToPlayerEvents(w,W.JSC$12733_playerEvents);W.listeningToPlayer=!0})};
_.t.onLoopRangeChange=function(a){var W=_.M(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(W){var w=W.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",W.polymerController.data);if(w){var Z=Number(w.endTimeMs);if(Number(w.startTimeMs)!==(a==null?void 0:a.startTimeMs)||Z!==(a==null?void 0:a.endTimeMs))W.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.t.removePlayerListeners=function(){var a=this;this.listeningToPlayer&&_.d2().getPlayerPromise().then(function(W){a.ytPlayerListenerBehavior.unlistenFromPlayerEvents(W,a.JSC$12733_playerEvents);a.listeningToPlayer=!1})};
_.t.onActiveUpdate=function(a){this.active=a.detail.active};
Ld.prototype.onColorPaletteChange=Ld.prototype.onColorPaletteChange;Ld.prototype.onDataChanged=Ld.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],Ld.prototype,"ytPlayerListenerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Ld.prototype,"data",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Ld.prototype,"useCustomColors",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ld.prototype,"active",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ld.prototype,"shouldShowButtons",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.z("design:type",String)],Ld.prototype,"layout",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.z("design:type",Object)],Ld.prototype,"isHighlighted",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ld.prototype,"useHighlightStyling",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ld.prototype,"modern",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ld.prototype,"enableProblemWalkthrough",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.z("design:type",String)],Ld.prototype,"carouselType",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ld.prototype,"useColorSampling",void 0);_.f([_.b(),_.z("design:type",Boolean)],Ld.prototype,"seekWithAnimationOnClick",void 0);_.f([_.b(),_.z("design:type",Object)],Ld.prototype,"customButtonProperties",void 0);
_.f([_.w$("#repeat-button"),_.z("design:type",HTMLElement)],Ld.prototype,"repeatButton",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ld.prototype,"onDataChanged",null);_.f([_.a5("data.lightColorPalette","data.darkColorPalette"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ld.prototype,"onColorPaletteChange",null);
Ld=_.f([_.C({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Ld);
_.D(Ld,"ytd-macro-markers-list-item-renderer",function(){if(wce!==void 0)return wce;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return wce=a},{mode:1});var Zb$;var NNR;var JV=function(){var a=_.u.apply(this,arguments)||this;a.modernTypography=_.r("web_modern_typography");return a};
_.c(JV,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],JV.prototype,"modernTypography",void 0);_.f([_.b(),_.z("design:type",Object)],JV.prototype,"data",void 0);JV=_.f([_.C({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],JV);
_.D(JV,"ytd-title-and-button-list-header-renderer",function(){if(NNR!==void 0)return NNR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return NNR=a},{mode:1});var tZH;var $zR=new _.yq("BUTTON_RENDERER_WIZ_TOKEN"),BNh=new _.yq("BUTTON_RENDERER_TOKEN");_.F0=_.xQ(function(a){var W=_.K().resolve(_.Vv($zR));if(W)return _.k(W,Object.assign({},a));var w=_.K().resolve(BNh);return w?_.k(enm,null,function(){return _.k(dt,null,function(){var Z,N,B,I,X,v,U,O,S,T,p,h;return void w(a.data(),{onButtonClickCallback:a.onButtonClickCallback,shouldShowIcons:(Z=a.shouldShowIcons)==null?void 0:Z.call(a),icon:(N=a.icon)==null?void 0:N.call(a),processAllEndpoints:(B=a.processAllEndpoints)==null?void 0:B.call(a),preventDefault:(I=a.preventDefault)==null?void 0:I.call(a),
stopPropagation:(X=a.stopPropagation)==null?void 0:X.call(a),disableButtonRendererClickHandling:(v=a.disableButtonRendererClickHandling)==null?void 0:v.call(a),className:(U=a.className)==null?void 0:U.call(a),buttonOverrides:(O=a.buttonOverrides)==null?void 0:O.call(a),forceModernIconButton:(S=a.forceModernIconButton)==null?void 0:S.call(a),isSubscribe:(T=a.isSubscribe)==null?void 0:T.call(a),alignByText:(p=a.alignByText)==null?void 0:p.call(a),forceDisabled:(h=a.forceDisabled)==null?void 0:h.call(a)})})}):
_.k(_.Ha,null)},"Y");
_.F0.idomCompat=!0;var lwl=_.xQ(function(a){var W=a.data,w=_.qt(a.useSquareAspectRatio,!1);return _.k("dismissed-mini-game-card-view-model",null,_.k(_.Y,{cond:function(){var Z,N;return(Z=W().responseText)==null?void 0:(N=Z.runs)==null?void 0:N.length},
then:function(){var Z={};return _.k("div",{class:_.W$("yt-mini-game-card-view-model__dismissed-card",(Z["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!w()},Z["yt-mini-game-card-view-model--dismissed-square-card"]=w,Z))},_.k("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.k(_.Y,{cond:function(){return W().responseText.runs[0].text},
then:function(N){return _.k("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:N},N)}}),_.k(_.Ax,{data:function(){return W().buttons}},{buttonRenderer:_.F0,
buttonViewModel:_.F7})))}}))},"Z");var oFl=_.xQ(function(a){a=_.Qn(a,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var W=a.data,w=a.useFullWidth,Z=a.isDesktopWeb,N=a.addSearchResultTopMargin,B=function(){return W().layout},I=function(){return W().title},X=function(){return W().genre},v=function(){return W().channelName},U=function(){return W().image},O=function(){return W().colorPalette},S=function(){return W().actionButton},T=function(){return W().overflowButton},p=function(){return W().avatar},
h=function(){var G={};
G=_.W$("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(G["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return Z()},G));
return _.k("div",{class:G},_.k(IwA,{imageData:U,colorPalette:O}),_.k(PvH,{onTap:function(){return W().onTap},
imageData:U,accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.k(_.Y,{cond:function(){return!Z()},
then:function(){return _.k(_.Ha,null,_.k(XcH,{layout:B,colorPalette:O,isDesktopWeb:Z,overflowButton:T,avatar:p,onTap:function(){return W().onTap},
genre:X,title:I,channelName:v,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}),_.k(Ml,{actionButton:S}))}}))},L=function(){var G={};
G=_.W$((G["yt-mini-game-card-view-model--search-result-desktop"]=function(){return Z()},G["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!Z()},G["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return N()},G));
return _.k("div",{class:G},h(),_.k(vFH,{description:function(){return W().description},
isDesktopWeb:Z,title:I,genre:X,onTap:function(){return W().onTap},
actionButton:S,overflowButton:T,avatar:p,channelName:v}))},F=function(){var G=function(){var d;
return(d=W().entityRedesignExperiments)==null?void 0:d.changePlayablesLayoutWithCta},V={};
V=_.W$("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(V["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return G()},V["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return Z()},V["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return Z()&&W().width===135},V["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return Z()},V["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!G()&&Z()&&W().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},V["yt-mini-game-card-view-model--big-metadata-font"]=function(){return W().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},V["yt-mini-game-card-view-model--use-full-width"]=function(){return w()},V["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!S()},V));
return _.k("div",{class:V},_.k(_.Y,{cond:function(){return G()},
then:function(){return _.k(_.Ha,null,_.k(gFE,{entityRedesignExperiments:function(){return W().entityRedesignExperiments},
colorPalette:O,isDesktopWeb:Z,onTap:function(){return W().onTap},
accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
actionButton:S,imageData:U}),_.k(XcH,{layout:B,colorPalette:O,isDesktopWeb:Z,overflowButton:T,avatar:p,onTap:function(){return W().onTap},
genre:X,title:I,channelName:v,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}),_.k(_.Y,{cond:function(){return!!G()===!1&&S()},
then:function(){return _.k(Ml,{actionButton:S})}}))},
else:function(){return _.k(_.Ha,null,_.k(IwA,{imageData:U,colorPalette:O}),_.k(PvH,{onTap:function(){return W().onTap},
imageData:U,accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.k(XcH,{layout:B,colorPalette:O,isDesktopWeb:Z,overflowButton:T,avatar:p,onTap:function(){return W().onTap},
genre:X,title:I,channelName:v,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}),_.k(Ml,{actionButton:S}))}}))},x=function(){var G={};
G=_.W$("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(G["yt-mini-game-card-view-model--square-card-desktop"]=function(){return Z()},G["yt-mini-game-card-view-model--use-full-width"]=function(){return w()},G));
return _.k("div",{class:G},_.k(PvH,{onTap:function(){return W().onTap},
imageData:U,accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.k(XcH,{layout:B,colorPalette:O,isDesktopWeb:Z,overflowButton:T,avatar:p,onTap:function(){return W().onTap},
genre:X,title:I,channelName:v,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}))};
return _.k("mini-game-card-view-model",{class:a.className},_.k(_.Y6,null,_.k(_.Ut,{when:function(){return B()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return F()}),_.k(_.Ut,{when:function(){return B()==="MINI_APP_LAYOUT_SQUARE"}},function(){return x()}),_.k(_.Ut,{when:function(){return B()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return L()})))},"$");
oFl.idomCompat=!0;var Ml=_.xQ(function(a){var W=_.qt(a.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.k(_.Ax,{data:a.actionButton},{buttonViewModel:function(w){return _.k("div",{class:W},_.k(_.F7,{data:w.data}))}})},"aa"),PvH=_.xQ(function(a){var W=a.onTap;
var w=a.imageData;var Z=a.accessibilityText;var N=a.overlayBadgeText;var B=a.iconName;var I=a.unplayableInlinePlaybackIconName;a=a.isDesktopWeb;return _.k(_.ot,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:W},_.k(_.qw,{data:w,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(Z==null?void 0:Z())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.k(kY_,{overlayBadgeText:N,iconName:B,unplayableInlinePlaybackIconName:I,isDesktopWeb:a}))},"ba"),kY_=_.xQ(function(a){var W=a.overlayBadgeText;
var w=a.iconName;var Z=a.unplayableInlinePlaybackIconName;var N=a.isDesktopWeb;return _.k("div",{class:"yt-mini-game-card-view-model__badge-container"},_.k(_.Y,{cond:w,then:function(B){return _.k("div",{class:"yt-mini-game-card-view-model__badge"},_.k("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.k(_.P$,{icon:B,className:"yt-mini-game-card-view-model__icon"}),_.k("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},W)))}}),_.k(_.Y,{cond:function(){return!w()&&
W()},
then:function(){return _.k("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},W)}}),_.k(_.Y,{cond:function(){return Z()&&N()},
then:function(){return _.k("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.k(_.P$,{icon:Z,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ca"),IwA=_.xQ(function(a){var W=a.colorPalette;
var w=a.imageData;var Z=function(){return W().vibrantColorPalette?W().vibrantColorPalette.section2Color:W().sectionTwoColor};
return _.k(_.Ha,null,_.k("div",{class:"yt-mini-game-card-view-model__background-base",style:_.It({"background-color":function(){return ri(Z(),"1")}})}),_.k("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.It({"background-image":function(){return"url("+w().sources[0].url+")"}})}),_.k("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.It({background:function(){return"linear-gradient(180deg,\n    "+ri(Z(),".8")+" 0%,\n    "+ri(Z(),".4")+" 25%,\n    "+ri(W().vibrantColorPalette?W().vibrantColorPalette.section4Color:W().sectionFourColor,".8")+" 100%)"}})}))},"da"),XcH=_.xQ(function(a){var W=a.layout;
var w=a.colorPalette;var Z=a.overflowButton;var N=a.avatar;var B=a.onTap;var I=a.title;var X=a.channelName;var v=a.entityRedesignExperiments;var U=a.genre;var O=function(){var T;return W()!=="MINI_APP_LAYOUT_SQUARE"&&((T=w())==null?0:T.textPrimaryColor)?"color: "+ri(w().textPrimaryColor,".7"):""},S=function(){var T;
return v==null?void 0:(T=v())==null?void 0:T.changePlayablesLayoutWithCta};
return _.k("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.k(_.Y,{cond:N,then:function(){return _.k("div",{class:"yt-mini-game-card-view-model__avatar"},_.k(_.Ax,{data:N},{avatarViewModel:_.c6}))}}),_.k(_.ot,{command:B,
className:"yt-mini-game-card-view-model__metadata-details"},_.k("h3",{class:"yt-mini-game-card-view-model__title",title:I},I),_.k(_.Y,{cond:N,then:function(){return _.k("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.k("span",{class:"yt-mini-game-card-view-model__genre",title:X,style:O},X),_.k("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:O},U))},
else:function(){return _.k(_.Y,{cond:S,then:function(){return _.k("span",{class:"yt-mini-game-card-view-model__genre",title:U},U)},
else:function(){return _.k("span",{class:"yt-mini-game-card-view-model__genre",title:U,style:O},U)}})}})),_.k("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.k(_.Ax,{data:Z},{buttonViewModel:function(T){var p=T.data;
return _.k(_.F7,{data:function(){return Object.assign({},p(),{customFontColor:S()?void 0:p().customFontColor})}})}})))},"ea"),gFE=_.xQ(function(a){var W=a.entityRedesignExperiments;
var w=a.colorPalette;var Z=a.isDesktopWeb;var N=a.onTap;var B=a.accessibilityText;var I=a.overlayBadgeText;var X=a.iconName;var v=a.unplayableInlinePlaybackIconName;var U=a.actionButton;a=a.imageData;var O=function(){var S;return W==null?void 0:(S=W())==null?void 0:S.changePlayablesLayoutWithCta};
return _.k("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.k(IwA,{imageData:a,colorPalette:w}),_.k(PvH,{onTap:N,imageData:a,accessibilityText:B,overlayBadgeText:I,iconName:X,unplayableInlinePlaybackIconName:v,isDesktopWeb:Z}),_.k(_.Y,{cond:function(){return(O==null?void 0:O())&&(U==null?void 0:U())},
then:function(){return _.k(Ml,{actionButton:U})}}))},"fa"),vFH=_.xQ(function(a){var W=a.description;
var w=a.isDesktopWeb;var Z=a.title;var N=a.genre;var B=a.onTap;var I=a.actionButton;var X=a.overflowButton;var v=a.avatar;a=a.channelName;var U={};U=_.W$("yt-mini-game-card-view-model--search-result-metadata-wrapper",(U["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=w,U["yt-mini-game-card-view-model--show-unplayable-on-hover"]=w,U["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!w()},U));
var O={};O=_.W$("yt-mini-game-card-view-model__search-result-info-row",(O["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!w()},O));
return _.k("div",{class:U},_.k("div",{class:O},_.k(_.ot,{command:B,className:"yt-mini-game-card-view-model__metadata-details"},_.k("h3",{class:"yt-mini-game-card-view-model__title",title:Z},Z),_.k("span",{class:"yt-mini-game-card-view-model__genre",title:N},N)),_.k(Ml,{actionButton:I,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.k("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.k(_.Ax,{data:X},{buttonViewModel:_.F7}))),_.k("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.k("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.k("div",{class:"yt-mini-game-card-view-model__avatar"},_.k(_.Ax,{data:v},{avatarViewModel:function(S){var T=S.data;return _.k(_.c6,{data:function(){return Object.assign({},T(),{avatarImageSize:w()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.k(_.ot,{command:B,
className:"yt-mini-game-card-view-model__description"},_.k("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},a)),_.k(_.ot,{command:B,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.k("div",null)))),_.k(_.Y,{cond:w,then:function(){return _.k(_.ot,{command:B,className:"yt-mini-game-card-view-model__description"},W)}}))},"ga");_.Ct(oFl,"mini-game-card-view-model",{props:{data:_.qR,className:_.qR,useFullWidth:_.qR,isDesktopWeb:_.qR,addSearchResultTopMargin:_.qR}});_.Ct(lwl,"dismissed-mini-game-card-view-model",{props:{data:_.qR,useSquareAspectRatio:_.qR}});var Ry=function(){var a=_.u.apply(this,arguments)||this;a.isSearch=!1;a.isRichGrid=!1;return a};
_.c(Ry,_.u);_.t=Ry.prototype;_.t.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.t.dismissibleItemOnYtServiceRequestSent=function(a,W){W.actions&&this.dismissibleItemProcessActions(a,W.actions)};
_.t.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.t.dataChanged=function(){this.dismissibleItemReset()};
_.t.dismissibleItemProcessActions=function(a,W){for(var w=0;w<W.length;w++){var Z=W[w];_.A(Z,_.Yc)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.A(Z,_.Yc)),a.stopPropagation())}};
_.t.dismissibleItemHandleReplaceEnclosingAction=function(a){this.dismissedRenderer=a.item;this.isDismissed=!0};
_.t.experimentalPropertiesChanged=function(){_.r("kevlar_mini_game_card_c3po_to_wiz")||this.ytIdomTemplatingBehavior.debounceRender()};
_.t.renderIdom=function(){if(!_.r("kevlar_mini_game_card_c3po_to_wiz")&&this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var a=!!this.useSquareAspectRatio;Mw(lwl)({data:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:a===void 0?!1:a})}else Mw(oFl)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0})};
_.dU.Object.defineProperties(Ry.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(){if(!_.r("kevlar_mini_game_card_c3po_to_wiz"))return!1;var a;return!!this.data&&!((a=this.dismissedRenderer)==null?0:a.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){if(!_.r("kevlar_mini_game_card_c3po_to_wiz"))return!1;var a;return!((a=this.dismissedRenderer)==null||!a.notificationMultiActionRenderer)}}});
Ry.prototype.experimentalPropertiesChanged=Ry.prototype.experimentalPropertiesChanged;Ry.prototype.dataChanged=Ry.prototype.dataChanged;Ry.prototype.dismissibleItemOnRequestSent=Ry.prototype.dismissibleItemOnRequestSent;Ry.prototype.dismissibleItemOnYtServiceRequestSent=Ry.prototype.dismissibleItemOnYtServiceRequestSent;_.f([_.R(_.r("kevlar_mini_game_card_c3po_to_wiz")?{}:fI6),_.z("design:type",Object)],Ry.prototype,"ytIdomTemplatingBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Ry.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ry.prototype,"isSearch",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ry.prototype,"isDismissed",void 0);_.f([_.b(),_.z("design:type",Object)],Ry.prototype,"dismissedRenderer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ry.prototype,"isRichGrid",void 0);
_.f([_.Q("data.layout"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ry.prototype,"useSquareAspectRatio",null);_.f([_.Q("data","dismissedRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ry.prototype,"showCard",null);_.f([_.Q("data","dismissedRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ry.prototype,"showDismissed",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],Ry.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.f([_.E6("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ry.prototype,"dismissibleItemOnRequestSent",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ry.prototype,"dataChanged",null);_.f([_.a5("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ry.prototype,"experimentalPropertiesChanged",null);Ry=_.f([_.TD({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Ry);
_.D(Ry,"ytd-mini-game-card-view-model",function(){if(tZH!==void 0)return tZH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return tZH=a},{mode:_.Vn("kevlar_poly_si_batch_j081")?1:2});var UzA;var ObE;var ql=function(){return _.mo.apply(this,arguments)||this};
_.c(ql,_.mo);ql.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
ql.prototype.getContinuationUrl=function(a){var W={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(W.itct=this.data.clickTrackingParams);return _.CF(a,W)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ql.prototype,"data",void 0);ql=_.f([_.TD({is:"yt-reload-continuation",noInjection:!0})],ql);var SQH;var YQ_;var QO=function(){var a=_.u.apply(this,arguments)||this;a.notificationData={};return a};
_.c(QO,_.u);_.t=QO.prototype;_.t.isMenuExpanded=function(a){return a&&a.length<=1?"undefined":"false"};
_.t.dataChanged_=function(){this.selected=void 0;var a=this.computeSelectedIndex_(this.data);a>=0&&(this.selected=a);a=this.data&&this.data.length>1;_.mh(this.hostElement,"has-items",a);_.M(this.hostElement).querySelector("#label").tabIndex=a?0:-1};
_.t.onDropdownOpen=function(){var a=_.nS();if(this.parentTrackingParams&&this.data){var W=_.PX(this.parentTrackingParams);this.data.forEach(function(w){a&&W&&w.trackingParams&&(w=_.PX(w.trackingParams),_.M1(a,W,w),_.Qw(a,[w]))})}else this.parentTrackingParams||_.jJ(new _.Uw("No parent tracking params passed in for yt-dropdown-menu."))};
_.t.hasNotification=function(a){var W;if(a.targetId&&((W=this.notificationData)==null?0:W.targetId)){var w;return a.targetId===((w=this.notificationData)==null?void 0:w.targetId)}};
_.t.computeSelectedIndex_=function(a){if(a)for(var W=0,w=a.length;W<w;W++)if(a[W].selected)return W;return-1};
_.t.computeLabel_=function(a){return this.data&&a!=void 0?this.data[a].title:""};
_.t.computeShowIcon_=function(a,W){return!W&&!!a};
_.t.computeVerticalOffset_=function(a){return a?36:0};
_.t.computeEndpoint_=function(a){return a.endpoint||a.navigationEndpoint};
_.t.onLabelClick_=function(a){this.data&&this.data.length<=1?a.stopPropagation():this.menuExpanded="true"};
_.t.onIronActivate_=function(a){a=a.detail.item;var W=_.M(this.hostElement).querySelector("#repeat").itemForElement(a);if(W&&W.trackingParams){var w=_.nS(),Z=_.PX(W.trackingParams);w&&_.b0(w,Z)}if(W&&W.serviceEndpoint)_.r("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(W.serviceEndpoint):_.Z9(this.hostElement,[W.serviceEndpoint]),_.E$(this.hostElement,"yt-playlist-reloading");else a:{if((W=a.querySelector("yt-supported-renderers"))&&(W=
W.rendererElement)&&W.is=="yt-reload-continuation"){W.trigger();break a}(a=a.querySelector("yt-reload-continuation"))&&a.trigger()}};
_.t.onTap_=function(a){a.preventDefault()};
_.t.onItemTap_=function(a){this.ytEndpointBehavior.onEndpointTap_(a)};
_.t.onLinkFocus_=function(a){try{var W=a.target}catch(Z){}if(W){var w=W.querySelector("tp-yt-paper-item");w&&_.eK(this,"focus",function(){w.focus()})}};
_.t.onMenuClose_=function(){this.menuExpanded="false"};
_.t.isLabelIconActive_=function(a){return a==="true"};
_.t.computeHasSubtitle_=function(a){return!!a};
_.t.computeHrefForItem_=function(a){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(a))};
_.t.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
_.dU.Object.defineProperties(QO.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
QO.prototype.onMenuClose_=QO.prototype.onMenuClose_;QO.prototype.onTap_=QO.prototype.onTap_;QO.prototype.onIronActivate_=QO.prototype.onIronActivate_;QO.prototype.onDropdownOpen=QO.prototype.onDropdownOpen;QO.prototype.dataChanged_=QO.prototype.dataChanged_;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],QO.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.wn.YtEndpointBehavior),_.z("design:type",Object)],QO.prototype,"ytEndpointBehavior",void 0);
_.f([_.b(),_.z("design:type",Array)],QO.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],QO.prototype,"parentTrackingParams",void 0);_.f([_.b(),_.z("design:type",Object)],QO.prototype,"selected",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],QO.prototype,"useLabel",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],QO.prototype,"useComputedAriaLabel",void 0);_.f([_.b(),_.z("design:type",String)],QO.prototype,"icon",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],QO.prototype,"iconLabel",void 0);_.f([_.b(),_.z("design:type",String)],QO.prototype,"ariaLabel",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],QO.prototype,"disabled",void 0);_.f([_.b({computed:"isMenuExpanded(data)"}),_.z("design:type",String)],QO.prototype,"menuExpanded",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],QO.prototype,"closeOnActivate",void 0);
_.f([_.b({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.z("design:type",Boolean)],QO.prototype,"modernButtons",void 0);_.f([_.b(),_.z("design:type",Object)],QO.prototype,"notificationData",void 0);_.f([_.Q("ariaLabel, selected"),_.b(),_.z("design:type",String),_.z("design:paramtypes",[])],QO.prototype,"computedAriaLabel",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QO.prototype,"dataChanged_",null);
_.f([_.E6("paper-dropdown-open"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],QO.prototype,"onDropdownOpen",null);_.f([_.E6("iron-activate"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],QO.prototype,"onIronActivate_",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],QO.prototype,"onTap_",null);
_.f([_.E6("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],QO.prototype,"onMenuClose_",null);QO=_.f([_.TD({is:"yt-dropdown-menu",disableElementRegistration:!0})],QO);
_.D(QO,"yt-dropdown-menu",function(){if(YQ_===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;SQH===void 0&&(SQH=document.createElement("template"));var Z=SQH;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);YQ_=a}a=YQ_;return a},{mode:2});var xl=function(){var a=_.u.apply(this,arguments)||this;a.hasNotification=!1;return a};
_.c(xl,_.u);xl.prototype.computeId=function(a){return a};
xl.prototype.computeHorizontalAlign=function(a){return a?"right":"left"};
xl.prototype.computeAccessibilityLabel=function(a){var W,w;return((W=a.accessibility)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label)||null};
xl.prototype.notificationDataChanged=function(){var a;this.hasNotification=!!this.notificationData&&!((a=this.data)==null?0:a.icon)};
xl.prototype.notificationDataChanged=xl.prototype.notificationDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.c7.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],xl.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xl.prototype,"data",void 0);_.f([_.b({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",String)],xl.prototype,"id",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],xl.prototype,"isRightAligned",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],xl.prototype,"disabled",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],xl.prototype,"closeOnActivate",void 0);_.f([_.b(),_.z("design:type",Object)],xl.prototype,"notificationData",void 0);_.f([_.b(),_.z("design:type",Object)],xl.prototype,"hasNotification",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],xl.prototype,"useComputedAriaLabel",void 0);_.f([_.a5("notificationData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xl.prototype,"notificationDataChanged",null);xl=_.f([_.TD({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],xl);
_.D(xl,"yt-sort-filter-sub-menu-renderer",function(){if(ObE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;UzA===void 0&&(UzA=document.createElement("template"));var Z=UzA;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);ObE=a}a=ObE;return a},{mode:2});_.En(TNC);
var TNe=_.xQ(function(a){var W=a.children;var w=a.className;var Z=a.style;var N=a.role;var B=a.ariaSelected;var I=a.ariaLabel;var X=a.ariaHidden;var v=a.ariaLabelledby;var U=a.ariaDescribedby;var O=a.command;var S=a.elementsCommand;var T=a.forceNewState;var p=a.tabIdentifier;var h=a.target;var L=a.tabIndex;var F=a.stopPropagation;a=_.XT(function(){var x=_.hQ({innertubeCommand:O==null?void 0:O(),elementsCommand:S==null?void 0:S(),forceNewState:T==null?void 0:T(),stopPropagation:(F==null?void 0:F())!==
!1});x||(x={});x["aria-hidden$"]=X==null?void 0:X();var G;x.tabindex$=(G=L==null?void 0:L())!=null?G:x.tabindex$;var V;x["force-new-state$"]=(V=T==null?void 0:T())!=null?V:x["force-new-state$"];var d;x.role$=(d=N==null?void 0:N())!=null?d:x.role$;var ZD;x["aria-hidden$"]=(ZD=X==null?void 0:X())!=null?ZD:x["aria-hidden$"];var aC;x.target$=(aC=h==null?void 0:h())!=null?aC:x.target$;return x},void 0,"SU0Mnc");
return _.k(_.ot,{aTagConfig:a,className:w,style:Z,ariaLabel:I,ariaLabelledby:v,ariaDescribedby:U,ariaSelected:B,tabIdentifier:p},W)},"ha");var KN7=_.r("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",KN6=_.NX(pcE);_.En(pcE);_.Ct(KN6,"place-data-view-model",{props:{data:_.qR}});var pcT=new _.yq("INLINE_PLAYBACK_HOOK_TOKEN");var qQF=function(a){this.setActiveSlideIndex=a;this.jobIds=[];this.isSlideshowPlaying=!1},xzE=function(a){if(a.isSlideshowPlaying){a.isSlideshowPlaying=!1;
for(var W=a.jobIds,w=0,Z=W.length;w<Z;w++)_.hF.cancelJob(W[w]);a.jobIds.length=0}},Qqe=function(a,W){a.isSlideshowPlaying||(a.isSlideshowPlaying=!0,rj_(a),AjH(a,W,0))},rj_=function(a){_.mY(_.hF,function(){a.setActiveSlideIndex(0)},1)},AjH=function(a,W,w){a.jobIds.push(_.mY(_.hF,function(){var Z=w<W-1?w+1:0;
a.setActiveSlideIndex(Z);AjH(a,W,Z)},1800))};var nFU=new _.yq("IMAGE_ON_LOAD_HANDLER_TOKEN");var hF_=_.xQ(function(a){return _.k("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.k(_.Y,{cond:function(){var W;return(W=a.data())==null?void 0:W.thumbnail},
then:function(W){return _.k(_.qw,{data:W,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ia");_.bC=_.xQ(function(a){var W=a.data;var w=a.lockupExperiments;a={};return _.k("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.k("div",{class:_.W$("ytThumbnailOverlayButtonViewModelButton",(a.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var Z;return w&&((Z=w())==null?void 0:Z.useLegacySizedIconButton)},a))},_.k(_.Ax,{data:function(){return W().overlayButton}},{buttonViewModel:function(Z){return _.k(_.F7,{data:Z.data,
buttonOverrides:function(){var N;return w&&((N=w())==null?0:N.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ja");
_.bC.idomCompat=!0;var ibV=_.xQ(function(a){var W=_.$_(function(w){w.preventDefault();return!1});
return _.k("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":W},_.k(_.Ax,{data:function(){return a.data().buttons}},{toggleButtonViewModel:function(w){return _.k("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.k(_.ce,{data:w.data}))}}))},"ka");
ibV.idomCompat=!0;var cjA=_.xQ(function(a){var W=function(){var w;return((w=_.A(a.data().rendererContext,_.DB))==null?void 0:w.label)||""};
return _.k("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.k(_.Y,{cond:function(){return a.data().image},
then:function(){return _.k("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.k(_.qw,{data:function(){return a.data().image},
alt:W}))}}),_.k(_.Y,{cond:function(){return a.data().text},
then:function(){return _.k("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return a.data().text})}}))},"la");var LNC=_.T9({thumbnailOverlayTitleViewModel:QfE,thumbnailOverlayBadgeViewModel:bcJ,thumbnailBottomOverlayViewModel:nAA,thumbnailOverlayFullViewModel:cjA,thumbnailOverlayButtonViewModel:_.bC}),JjI=_.T9({thumbnailHoverOverlayViewModel:LyL,thumbnailHoverOverlayToggleActionsViewModel:ibV}),FNe=_.T9({animatedThumbnailOverlayViewModel:hF_});_.En(MZD);var eFV,nFJ;eFV=_.xQ(function(a){var W=[],w=function(){var T,p;return CA((T=a.width)==null?void 0:T.call(a),(p=a.height)==null?void 0:p.call(a))},Z=_.K().resolve(_.Vv(nFU)),N=_.D8(function(){W.push("elRef.value set");
var T;(T=a.playbackRef)==null||T.call(a,{thumbnailElRef:N,thumbnail:a.data().image,thumbnailOverlays:a.data().overlays,thumbnailSize:w()})});
_.AS(function(){W.push("onInit");_.Ao(function(){W.push("onCleanup")})});
var B=_.Au(Aje),I=function(){var T,p;return(p=(T=a.aspectRatio)==null?void 0:T.call(a))!=null?p:0},X=function(){return(a.data().image?_.j6e(a.data().image):I())<=1&&I()===0},v=function(){return X()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},U=function(){N.value||_.jJ(new _.Uw("Thumbnail elRef.value is null",W.join("\n")));
Z&&N.value&&Z(N.value)},O=function(){var T,p;
return((T=a.hovered)==null?void 0:T.call(a))&&w()!=="large"&&((p=a.data().overlays)==null?void 0:p.some(function(h){return _.A(h,jqv)}))},S={};
return _.k("yt-thumbnail-view-model",{class:_.W$("yt-thumbnail-view-model",a.className,function(){return RFe(I())},function(){var T,p;
a:{var h=w(),L=(T=a.disableRounding)==null?void 0:T.call(a);T=(p=a.isClip)==null?void 0:p.call(a);if(!L&&!T)switch(h){case "large":p="yt-thumbnail-view-model--large";break a;case "small":p="yt-thumbnail-view-model--small";break a;default:p="yt-thumbnail-view-model--medium";break a}p=void 0}return p},(S["yt-thumbnail-view-model--cinematic"]=X,S)),
style:_.It({"background-color":function(){var T,p=X()?(T=a.data().backgroundColor)==null?void 0:T.lightTheme:void 0;return p?ri(p,"1"):void 0}}),
el:N},_.k(_.Y,{cond:X,then:function(){return _.k("div",{class:"yt-thumbnail-view-model__blurred-image"},_.k(_.qw,{data:function(){return a.data().image},
alt:"",contentMode:v,targetWidth:a.width,onload:U}))}}),_.k("div",{class:"yt-thumbnail-view-model__image"},_.k(_.qw,{data:function(){return a.data().image},
alt:"",contentMode:v,targetWidth:a.width,onload:U}),null),_.k(_.Ax,{data:function(){return O()?void 0:a.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:xU_,thumbnailOverlayBadgeViewModel:function(T){return _.k(bcJ,{data:T.data,thumbnailSize:w,isClip:a.isClip})},
thumbnailBottomOverlayViewModel:nAA,thumbnailOverlayFullViewModel:cjA,thumbnailOverlayButtonViewModel:function(T){return _.k(_.bC,{data:T.data,lockupExperiments:a.lockupExperiments})}}),_.k(_.Ax,{data:function(){var T;
return((T=a.hovered)==null?0:T.call(a))?a.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(T){return _.k(JWy,{data:T.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:ibV}),_.k(_.Ax,{data:function(){var T;return((T=a.hovered)==null?0:T.call(a))&&B()?a.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:hF_}),_.k(_.Y,{cond:a.isClip,then:function(){return cje()}}))},"ma");
nFJ=_.r("web_enable_sink_lockups_batch")?eFV:MZD;_.su=_.r("web_enable_sink_lockups_batch")?eFV:_.NX(nFJ,{callbacks:{playbackRef:!0}});eFV.idomCompat={callbacks:{playbackRef:!0}};var bbv=_.T9({thumbnailViewModel:nFJ});_.En(sq9);var jql=_.xQ(function(a){var W=_.l(_.$1(-1,void 0,"GEkecf")),w=W.next().value,Z=W.next().value;_.AS(function(){var N=new qQF(Z);Qqe(N,a.data().thumbnails.length);_.Ao(function(){xzE(N)})});
return _.k("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.k(_.Ax,{data:function(){return a.data().thumbnails}},{thumbnailViewModel:function(N,B){return _.k("div",{class:function(){var I=!a.data().primaryThumbnail,X=B(),v=w(),U=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
I&&X===0&&U.push("yt-collection-thumbnail-slideshow--first-slide");X<=v&&U.push("yt-collection-thumbnail-slideshow--show-slide");return U.join(" ")}},_.k(_.su,{data:N.data,
disableRounding:a.disableRounding}))}}))},"na"),fwF=_.r("web_enable_sink_lockups_batch")?jql:sq9,LNe=_.r("web_enable_sink_lockups_batch")?jql:_.NX(sq9);
jql.idomCompat=!0;var uov=new _.yq("DWELL_DETECTOR_REGISTRY_TOKEN");var DzD=_.T9({thumbnailViewModel:nFJ});_.En(dzm);var FNA=_.xQ(function(a){var W=GYD(a.triggeringElement),w=function(){return!!a.data().primaryThumbnail};
return _.k("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.k(JjR,{stackEnabled:w,thumbnailSize:function(){var Z,N;return CA((Z=a.width)==null?void 0:Z.call(a),(N=a.height)==null?void 0:N.call(a))},
doubleStack:a.doubleStack,stackColor:function(){return a.data().stackColor}},_.k("div",null,_.k(_.Ax,{data:function(){return a.data().primaryThumbnail}},{thumbnailViewModel:function(Z){var N={};
return _.k(_.su,{data:Z.data,width:a.width,height:a.height,aspectRatio:a.aspectRatio,disableRounding:a.disableRounding,className:_.W$((N["yt-collection-thumbnail-view-model--has-stacks"]=w,N)),hovered:a.hovered,playbackRef:a.playbackRef})}}),_.k(_.Y,{cond:function(){var Z;
return W()&&((Z=a.data().thumbnails)==null?void 0:Z.length)},
then:function(){return _.k("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.k(LNe,{data:a.data,disableRounding:function(){return!w()}}))}}))))},"oa"),MZE=_.r("web_enable_sink_lockups_batch")?FNA:_.NX(dzm,{callbacks:{playbackRef:!0}});
FNA.idomCompat={callbacks:{playbackRef:!0}};
var JjR=_.xQ(function(a){var W=a.children;var w=a.stackEnabled;var Z=a.thumbnailSize;var N=a.doubleStack;var B=a.stackColor;var I,X=(I=_.K().resolve(_.Vv(_.Lt)))==null?void 0:I();return _.k(_.Y,{cond:w,then:function(){return _.k(tol,{data:function(){var v,U;return{experimentEnabled:!0,thumbnailSize:Z(),doubleStack:N==null?void 0:N(),color:X?B==null?void 0:(v=B())==null?void 0:v.darkTheme:B==null?void 0:(U=B())==null?void 0:U.lightTheme,enableResponsiveMode:!1}}},W)},
else:function(){return W}})},"pa");var RFH=new _.yq("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Cd;_.uC={calledOnce:!0,state:"visible"};Cd={calledOnce:!0,state:"hidden"};_.Gn=_.xQ(function(a){var W=a.data;var w=a.customCommandResolver;var Z=a.className;var N=a.delayedClassName;a=a.animationEntityKey;var B=_.D8(),I=_.qt(a,""),X=_.X7(dAx,I),v=function(){var aC,Bv;return(Bv=(aC=X())==null?void 0:aC.value)!=null?Bv:!1},U=function(){_.R5(_.oL("booleanEntity",I(),{key:I(),
value:!0}));x=void 0};
a=_.l(_.l5(v));var O=a.next().value,S=a.next().value;a=_.l(_.l5(v));var T=a.next().value,p=a.next().value;a=_.l(_.l5(function(){var aC;return v()?(aC=W().styleTransitionConfig)==null?void 0:aC.destinationStyle:void 0}));
var h=a.next().value,L=a.next().value,F=function(){var aC=Object.assign({},W(),h()&&{style:h()}),Bv,Am,e9=aC.label,cv=(Bv=aC.interaction)==null?void 0:(Am=Bv.accessibility)==null?void 0:Am.label;Bv=aC.iconImage?aC.label&&aC.label.content?aC.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:e9,accessibilityLabel:cv,style:HbU(aC.style),type:yjF(aC.style),state:"active",size:zFm(aC.size),iconPosition:Bv,disabled:!1,aTagConfig:VZm(aC,w)}},x;
_.yz(B,{visibilityCallback:function(aC){var Bv,Am=(Bv=W().interaction)==null?void 0:Bv.onFirstVisible;aC&&Am&&_.cX(Am)},
showOption:_.uC});var G=function(){return Xq(F(),!!W().iconImage)};
Z=_.W$(function(){return"ytwAdButtonViewModelHost"},function(){return W().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var aC=!!W().delayedAppearanceConfig,Bv=O();
return aC?Bv?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var aC=!!W().delayedAppearanceConfig,Bv=T();
return aC?Bv?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!W().delayedAppearanceConfig||O()?N==null?void 0:N():""},Z!=null?Z:"");
var V=function(){var aC,Bv=(aC=W().delayedAppearanceConfig)==null?void 0:aC.delayedInvisibleSeconds;Bv&&(x=_.OB(_.hF,function(){S(!0);d()},Bv*1E3))},d=function(){var aC,Bv=(aC=W().delayedAppearanceConfig)==null?void 0:aC.delayedVisibleSeconds;
Bv&&(x=_.OB(_.hF,function(){p(!0);ZD()},Bv*1E3))},ZD=function(){var aC,Bv=(aC=W().styleTransitionConfig)==null?void 0:aC.styleTransitionSeconds,Am,e9=(Am=W().styleTransitionConfig)==null?void 0:Am.destinationStyle;
Bv&&e9?x=_.OB(_.hF,function(){L(e9);U()},Bv*1E3):U()};
_.AS(function(){var aC;((aC=W().delayedAppearanceConfig)==null?0:aC.transitionDurationSeconds)&&B.value.style.setProperty("transition-duration",W().delayedAppearanceConfig.transitionDurationSeconds+"s");V()});
_.Ao(function(){x&&_.hF.cancelJob(x)});
return _.k("ad-button-view-model",{class:Z,el:B},_.k(_.Y,{cond:F,then:function(){return _.k(EB,{data:F,icon:function(){return _.k(_.Y,{cond:function(){return W().iconImage},
then:function(aC){return _.k(_.qw,{data:aC,alt:"",targetWidth:G,targetHeight:G,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"qa");var qQ_=_.xQ(function(a){var W=a.data;a=_.D8();_.yz(a,{visibilityCallback:function(w){var Z,N=(Z=W().interaction)==null?void 0:Z.onFirstVisible;w&&N&&_.cX(N)},
showOption:_.uC});return _.k("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:a},_.k("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.k(_.Ax,{data:function(){return W().secondaryAdButton}},{adButtonViewModel:function(w){return _.k(_.Gn,{data:w.data})}})),_.k("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.k(_.Ax,{data:function(){return W().primaryAdButton}},{adButtonViewModel:function(w){return _.k(_.Gn,{data:w.data})}})))},"ra");var QqH=_.xQ(function(a){var W=function(){var w;return((w=a.data())==null?void 0:w.answers)||[]};
return _.k("yt-survey-icons",{class:"ytSurveyIconsHost"},_.k("div",{class:"ytSurveyIconsHeader"},_.k("div",{class:"ytSurveyIconsTitle"},function(){var w;return(w=a.data())==null?void 0:w.text}),_.k("div",null,_.k(EB,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var w;(w=a.onDismiss)==null||w.call(a)}}},
iconName:"DISMISSAL"}))),_.k("div",null,_.k("div",{class:"ytSurveyIconsAnswers"},_.k(_.k6,{each:function(){return W()},
keyBy:"INDEX"},function(w,Z){return _.k("div",null,_.k(EB,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var N;(N=a.onSelect)==null||N.call(a,w(),Z)}}},
icon:function(){return _.k(_.P$,{icon:function(){var N,B;return(N=w())==null?void 0:(B=N.icon)==null?void 0:B.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.k("div",{class:"ytSurveyIconsAnswersText"},_.k("div",null,function(){return W().length?W()[0].text:""}),_.k("div",null,function(){return W().length?W()[W().length-1].text:""}))))},"sa");var xzT=_.xQ(function(a){var W=_.l(_.$1(!1,void 0,"s8HkOb")),w=W.next().value,Z=W.next().value,N=_.X7(vAF,function(){var X;return(X=a.data().keys)==null?void 0:X.surveyEntityKey}),B=_.X7(gAH,function(){var X;
return(X=a.data().keys)==null?void 0:X.surveyStateEntityKey});
_.GP("ytd-slimline-survey-show-action",function(){Z(!1)});
var I=function(){var X,v;var U=(X=B())==null?void 0:(v=X.questionStack)==null?void 0:v[0];if(U!==void 0){var O,S;return(O=N())==null?void 0:(S=O.questions)==null?void 0:S[U]}};
W={};return _.k("yt-slimline-survey-view-model",{class:_.W$("ytSlimlineSurveyViewModelHost",(W.ytSlimlineSurveyViewModelCollapsed=function(){return w()},W))},_.k("div",{class:"ytSlimlineSurveyViewModelContainer"},_.k(_.Y,{cond:function(){var X;
return((X=I())==null?void 0:X.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.k(QqH,{data:function(){return I()},
onSelect:function(X,v){var U,O;return _.P(function(S){Z(!0);if(O=(U=a.data())==null?void 0:U.onSelectRating)_.cX(O),_.R5(Et_(v));_.Xd(S)})},
onDismiss:function(){Z(!0)}})}})))},"ta");var bbl=_.xQ(function(a){return _.k("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.k(_.Ax,{data:function(){var W;return(W=a.data())==null?void 0:W.attachments}},{flexibleActionsViewModel:function(W){return _.k("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.k(SGE,{data:W.data,
layout:function(){var w;return((w=a.lockupStyle())==null?void 0:w.arrangement)===1?0:1},
justifyContentOverride:function(){var w;return((w=a.lockupStyle())==null?void 0:w.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(W){return _.k("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.k(xzT,{data:W.data}))},
expandableMetadataViewModel:function(W){W=W.data;var w;return _.k("div",{class:"ytLockupAttachmentsViewModelAttachment"},(w=_.K().resolve(_.Vv(RFH)))==null?void 0:w({data:W}))},
adButtonGroupViewModel:function(W){return _.k("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.k(qQ_,{data:W.data}))}}))},"ua");var NdU=_.yv("rich_grid_min_item_width",310),wsm=_.yv("rich_grid_max_item_width",500);var Upv=_.xQ(function(a){var W=a.data;return _.k("br-nz-badge-shape",{class:_.W$(function(){return vMU(W().brNzRatingBadgeType)}),
role:function(){return W().accessibilityText?"img":void 0},
"aria-label":function(){return W().accessibilityText}},function(){var w;
return(w=W())==null?void 0:w.text})},"va");_.En(OhE);var sqV,INU;sqV=_.xQ(function(a){var W=function(){var w=a.data(),Z,N;return w?kee(w,!((Z=a.workaroundShortsIsThumbnailBadge)==null||!Z.call(a)),(N=a.modern)==null?void 0:N.call(a)):void 0};
return _.k("yt-badge-view-model",{class:_.W$("yt-badge-view-model-wiz",a.class)},_.k(_.Y6,null,_.k(_.Ut,{when:function(){var w;return!((w=W())==null||!w.brNzRatingBadgeType)}},function(){return _.k(Upv,{data:function(){return W()}})}),_.k(_.Ut,{when:function(){return!!W()&&!W().brNzRatingBadgeType}},function(){return _.k(_.z9,{data:function(){return W()}})})))},"wa");
INU=_.r("web_enable_sink_yt_badge_view_model")?sqV:OhE;_.DU=_.r("web_enable_sink_yt_badge_view_model")?sqV:_.NX(OhE);sqV.idomCompat=!0;var YXe,SXS;YXe=16/9;SXS=2/3;_.fd=_.xQ(function(a){var W=a.data;var w=a.className;var Z=a.imageSizeConfig;var N=a.notifyOnLoaded;a=_.D8();var B=function(){return W().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},I=function(){var O;
return _.sB((O=W())==null?void 0:O.rendererContext)},X={};
X=(X["yt-content-preview-image-view-model-wiz"]=!0,X["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return B()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},X["yt-content-preview-image-view-model-wiz--tappable"]=function(){return I()},X);
var v=function(){var O,S;return(S=(O=_.A(W().rendererContext,_.DB))==null?void 0:O.label)!=null?S:""},U=function(){return Kcx(W())};
_.Cj(a,function(){var O;return(O=W())==null?void 0:O.rendererContext});
return _.k("yt-content-preview-image-view-model",{el:a,role:function(){return I()?"link":void 0},
tabindex:function(){return I()?0:void 0},
class:_.W$(w,X,function(){var O=B();var S=Z==null?void 0:Z();O=O==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||O==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||O==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||O==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(S==null?void 0:S.size)!=null&&S.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(S==null?void 0:S.size)!=null&&S.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 O}),
style:function(){return TdF(B(),W().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",Z==null?void 0:Z(),psE(U()),W().layoutWidth,W().layoutHeight)}},_.k(_.Y,{cond:U,
then:function(O){return _.k(_.qw,{data:O,alt:v,"data-disabled$":function(){return!v()},
notifyOnLoaded:N})}}),_.k(_.Ax,{data:function(){var O;
return(O=W())==null?void 0:O.overlays}},{thumbnailHoverOverlayViewModel:JWy,
thumbnailOverlayButtonViewModel:_.bC}))},"xa");
_.fd.idomCompat=!0;var d8=_.xQ(function(a){var W=a.data;var w=a.className;var Z=a.useSmallLayout;var N=a.useMediumText;a=_.D8();var B={};N=(B["yt-attribution-view-model-wiz"]=!0,B["yt-attribution-view-model-wiz--medium-text"]=N,B);_.Cj(a,function(){var I;return(I=W())==null?void 0:I.rendererContext});
return _.k("yt-attribution-view-model",{el:a,class:_.W$(w,N)},_.k(_.Y,{cond:function(){return _.sB(W().rendererContext)},
then:function(){return _.k("button",{class:"yt-attribution-view-model-wiz--tappable"},_.k(uol,{data:W,useSmallLayout:Z}))},
else:function(){return _.k(uol,{data:W,useSmallLayout:Z})}}))},"ya"),uol=_.xQ(function(a){var W=a.data;
var w=a.useSmallLayout;var Z=function(){return{size:(w==null?0:w())?16:24}};
return _.k(_.Ha,null,_.k(_.Ax,{data:function(){return W().contentPreviewImage}},{contentPreviewImageViewModel:function(N){return _.k(_.fd,{data:N.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:Z})}}),_.k(_.Ax,{data:function(){return W().badge}},{badgeViewModel:function(N){return _.k(_.DU,{data:N.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.k(_.Y,{cond:function(){return W().text},
then:function(){return _.k(_.k_,{text:function(){return W().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.k(_.Y,{cond:function(){return W().suffix},
then:function(){return _.k(_.k_,{text:function(){return W().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"za");
d8.idomCompat=!0;var nMS=_.T9({avatarStackViewModel:_.Yl,badgeViewModel:INU});_.En(JrS);var CvA,GYE,DzE,fw_,dzL,mzh,VZL;CvA=_.xQ(function(a){var W=a.delimiter;var w=a.max;var Z=a.index;var N=a.isStandalone;return _.k(_.Y,{cond:function(){return w()-1>Z()},
then:function(){var B={};return _.k("span",{class:_.W$("yt-content-metadata-view-model-wiz__delimiter",(B["yt-content-metadata-view-model-wiz__delimiter--standalone"]=N,B)),"aria-hidden":!0},W)}})},"Aa");
GYE=_.xQ(function(a){var W=a.metadataPart;var w=a.maxLines;return _.k(_.k_,{text:function(){return W().text},
linkInheritColor:!0,className:function(){return Fc8(w())},
userInput:!0})},"Ba");
DzE=_.xQ(function(a){var W=a.metadataPart;var w=a.maxLines;return _.k(_.Y,{cond:function(){return W().tooltip},
then:function(Z){return _.k("span",{title:Z,role:"tooltip"},_.k(GYE,{metadataPart:W,maxLines:w}))},
else:function(){return _.k(GYE,{metadataPart:W,maxLines:w})}})},"Ca");
fw_=_.xQ(function(a){var W=a.metadataPart;var w=a.isOverlay;var Z=a.useMediumText;var N=a.hideAvatar;var B=function(){return W().maxLines!==void 0?W().maxLines:1};
return _.k(_.Ha,null,_.k(_.Ax,{data:function(){return W().avatarStack}},{avatarStackViewModel:function(I){return _.k(_.Yl,{data:I.data,
isOverlay:w,useMediumText:Z,hideAvatar:N})},
badgeViewModel:_.DU}),_.k(_.Y,{cond:function(){return W().text},
then:function(){return _.k(DzE,{metadataPart:W,maxLines:B})}}))},"Da");
dzL=_.xQ(function(a){var W=a.metadataRow;var w=a.isInline;var Z=a.delimiter;var N=a.isOverlay;var B=a.useMediumText;var I=a.extensions;var X=function(){var U;return Ar8(I==null?void 0:(U=I())==null?void 0:U.lockupMetadata,W())},v=function(){return W().metadataParts||[]};
a={};return _.k("div",{class:_.W$("yt-content-metadata-view-model-wiz__metadata-row",(a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=w,a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var U;return h$U(I==null?void 0:(U=I())==null?void 0:U.lockupMetadata,W())},a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var U;
return!!(I==null?0:(U=I())==null?0:U.lockupMetadata)&&W().badges},a))},_.k(_.Ax,{data:function(){return W().badges}},{badgeViewModel:function(U){return _.k("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.k(_.DU,{data:U.data}))}}),_.k(_.k6,{each:v},function(U,O){return _.k(_.Ha,null,_.k(fw_,{metadataPart:U,
isOverlay:N,useMediumText:B,hideAvatar:X}),_.k(CvA,{delimiter:Z,max:function(){return v().length},
index:O,isStandalone:!1}))}),_.k(_.Y,{cond:function(){return W().isSpacerRow&&!w()},
then:function(){return _.k("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ea");
mzh=_.xQ(function(a){var W=_.Qn(a,{layout:0,isOverlay:!1});a=W.className;var w=W.data,Z=W.layout,N=W.isOverlay,B=W.useMediumText,I=W.extensions;W=_.D8();var X=function(){return Z()===0};
_.Cj(W,function(){return w().rendererContext});
var v=function(){return w().metadataRows||[]},U={};
return _.k("yt-content-metadata-view-model",{class:_.W$(a,"yt-content-metadata-view-model-wiz",(U["yt-content-metadata-view-model-wiz--inline"]=X,U["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.sB(w().rendererContext)},U["yt-content-metadata-view-model-wiz--medium-text"]=B,U)),
el:W},_.k(_.k6,{each:v},function(O,S){return _.k(_.Ha,null,_.k(dzL,{metadataRow:O,isInline:X,delimiter:function(){return w().delimiter},
isOverlay:N,useMediumText:B,extensions:I}),_.k(_.Y,{cond:function(){return X()&&!O.isSpacerRow},
then:function(){return _.k(CvA,{delimiter:function(){return w().delimiter},
max:function(){return v().length},
index:S,isStandalone:!0})}}))}))},"Fa");
VZL=_.r("web_enable_sink_yt_content_metadata_view_model")?mzh:JrS;_.zFL=_.r("web_enable_sink_yt_content_metadata_view_model")?mzh:_.NX(JrS);mzh.idomCompat=!0;var qXU=_.T9({avatarViewModel:_.c6,decoratedAvatarViewModel:_.Sd,avatarStackViewModel:_.Yl,contentMetadataViewModel:VZL,buttonViewModel:_.F7,attributionViewModel:d8});_.En(QSe);var HbJ=_.xQ(function(a){var W={};return _.k("yt-lockup-metadata-view-model",{class:_.W$("yt-lockup-metadata-view-model-wiz",function(){a:{var w=a.lockupStyle();if(w==null?0:w.isOverlay)w="yt-lockup-metadata-view-model-wiz--overlay";else switch(w==null?void 0:w.arrangement){case 1:w="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:w="yt-lockup-metadata-view-model-wiz--vertical"}}return w},function(){a:{var w=a.lockupStyle();
if(w==null?0:w.isTiny)w="yt-lockup-metadata-view-model-wiz--tiny";else switch(w==null?void 0:w.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":w="yt-lockup-metadata-view-model-wiz--compact";break a;default:w="yt-lockup-metadata-view-model-wiz--standard"}}return w},(W["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var w;
return(w=a.lockupStyle())==null?void 0:w.isOverlay},W["yt-lockup-metadata-view-model-wiz--card"]=function(){var w;
return(w=a.lockupStyle())==null?void 0:w.isCard},W["yt-lockup-metadata-view-model-wiz--centered"]=function(){var w;
return(w=a.lockupStyle())==null?void 0:w.isCentered},W["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var w;
return(w=a.lockupStyle())==null?void 0:w.typographyBump},W["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var w;
return(w=a.lockupStyle())==null?void 0:w.useLegacyTypography},W["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var w;
return(w=a.lockupStyle())==null?void 0:w.useRichGridLegacyTypography},W))},_.k(_.Ax,{data:function(){return a.data().image}},{avatarStackViewModel:function(w){return _.k("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.k(_.Yl,{data:w.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(w){return _.k("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.k(_.c6,{data:w.data}))},
decoratedAvatarViewModel:function(w){return _.k("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.k(_.Sd,{data:w.data}))}}),_.k("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.k("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var w;return(w=a.data().title)==null?void 0:w.content}},_.k(_.Y,{cond:function(){return a.data().title},
then:function(w){return _.k(_.ot,{command:a.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:a.lockupAccessibilityLabel},_.k(_.k_,{text:w}))}})),_.k("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.k(_.Ax,{data:function(){return a.data().metadata}},{contentMetadataViewModel:function(w){return _.k(_.zFL,{data:w.data,
layout:1,useMediumText:function(){var Z,N;return((Z=a.lockupStyle())==null?void 0:Z.typographyBump)||((N=a.lockupStyle())==null?void 0:N.useRichGridLegacyTypography)},
extensions:function(){var Z,N;return{lockupMetadata:{byline:{hideAvatar:((Z=a.lockupStyle())==null?void 0:Z.arrangement)===0,addPadding:((N=a.lockupStyle())==null?void 0:N.arrangement)===1}}}}})}})),_.k(_.Ax,{data:function(){return a.data().attribution}},{attributionViewModel:function(w){return _.k("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.k(d8,{data:w.data,
useSmallLayout:!0}))}})),_.k("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.k(_.Ax,{data:function(){return a.data().menuButton}},{buttonViewModel:function(w){return _.k(_.F7,{data:w.data,
buttonOverrides:function(){var Z;return((Z=a.lockupStyle())==null?0:Z.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ga"),yj_=_.r("web_enable_sink_lockups_batch")?HbJ:_.NX(QSe);
HbJ.idomCompat=!0;var EFh=_.xQ(function(a){var W=_.D8();_.pF(function(){requestAnimationFrame(function(){_.CJ(W.value)})});
var w={},Z={},N={};return _.k("notification-multi-action-renderer",{class:_.W$("ytNotificationMultiActionRendererHost",(w.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var B;return(B=a.useLegacyShelfStyle)==null?void 0:B.call(a)},w)),
el:W},_.k("span",{"aria-live":"polite",class:_.W$("ytNotificationMultiActionRendererTextContainer",(Z.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var B;return(B=a.useLegacyShelfStyle)==null?void 0:B.call(a)},Z))},_.k(_.k_,{text:function(){return a.data().responseText}})),_.k("div",{class:_.W$("ytNotificationMultiActionRendererButtonContainer",(N.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var B;
return(B=a.useLegacyShelfStyle)==null?void 0:B.call(a)},N))},_.k(_.Ax,{data:function(){var B;
return(B=a.data().buttons)==null?void 0:B.map(function(I){if(I=I.buttonRenderer){var X,v=Object,U=v.assign,O=(X=I.icon)==null?void 0:X.iconType;X=(X=I.command||I.serviceEndpoint||I.navigationEndpoint)?{innertubeCommand:X}:void 0;I={buttonViewModel:U.call(v,{},{iconName:O,onTap:X,trackingParams:I.trackingParams,titleFormatted:I.text?_.YJ(I.text):void 0},xpS(I))}}else I=void 0;return I}).filter(function(I){return!!I})}},{buttonViewModel:function(B,I){return _.k("div",null,_.k(_.F7,{data:B.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var X;return((X=a.useModernStyles)==null?0:X.call(a))?{type:I()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ha");var akT=_.xQ(function(a){var W=_.D8();_.pF(function(){requestAnimationFrame(function(){_.CJ(W.value)})});
return _.k("notification-text-renderer",{el:W,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.k(_.k_,{text:function(){return a.data().successResponseText}}))},"Ia");_.WcT=_.xQ(function(a){var W=_.X7(fOI,function(){var Z;return bhD((Z=a.contentId)==null?void 0:Z.call(a))}),w=function(){var Z;
return _.A((Z=W())==null?void 0:Z.command,_.Yc)};
return _.k(_.Y,{cond:function(){var Z;if(!(Z=w())){var N;Z=_.A((N=W())==null?void 0:N.command,bo$)}return Z},
then:function(){return _.k(_.Y,{cond:w,then:function(){var Z={};return _.k("div",{class:_.W$("ytDismissibleItemReplacedContent",function(){var N;return sSS((N=a.aspectRatio)==null?void 0:N.call(a))})},_.k("div",{class:_.W$((Z.ytDismissibleItemAspectRatioContainer=function(){var N;
return((N=a.aspectRatio)==null?void 0:N.call(a))!==void 0},Z))},_.k(_.Ax,{data:function(){var N;
return(N=w())==null?void 0:N.item}},{notificationMultiActionRenderer:function(N){return _.k(EFh,{data:N.data,
useModernStyles:a.useModernStyle,useLegacyShelfStyle:a.useLegacyShelfStyle})},
notificationTextRenderer:akT})))}})},
else:a.children})},"Ja");_.wsL=_.xQ(function(a){var W=a.data;var w=a.customCommandResolver;a=_.fH();var Z=function(){var B;return((B=W().interaction)==null?0:B.onTap)?function(I){var X;mz8(I,(X=W().interaction)==null?void 0:X.onTap,w)}:void 0},N=function(){var B,I=W(),X=Z(),v=(B=_.A(W().rendererContext,_.DB))==null?void 0:B.label;
a:switch(I.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":B=1;break a;default:B=0}return{size:GeI(I.size),type:B,onTap:X,accessibilityText:v}};
_.yz(a,{visibilityCallback:function(B){var I,X=(I=W().interaction)==null?void 0:I.onFirstVisible;B&&X&&_.cX(X)},
showOption:_.uC});return _.k("ad-avatar-view-model",{class:function(){var B;return((B=W().interaction)==null?0:B.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:a},_.k(_.Y,{cond:function(){return W().image},
then:function(B){return _.k(RbA,{data:N,image:B})}}))},"Ka");_.mR=_.xQ(function(a){a=_.Qn(a,{hasDot:!1});var W=Object.assign({},a),w=a.data,Z=a.hasDot;a=a.customCommandResolver;var N=(delete W.data,delete W.hasDot,delete W.customCommandResolver,W);W=function(){return w().style};
W!==void 0&&W!==null||_.qx(Error("Dh"));W=_.D8();_.m5(W,function(){return w().interaction},a);
return _.k("ad-badge-view-model",{class:_.W$(function(){var B;return((B=w().interaction)==null?0:B.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var B=N.adRenderingContextType();
w();return B==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:W},_.k(_.z9,{data:function(){var B;w();return{type:2,text:(B=w().label)==null?void 0:B.content,adsIncludeDot:Z(),isOverlay:w().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"La");var Zh6;_.VO=_.xQ(function(a){var W=a.data;var w=a.customCommandResolver;var Z=a.adRenderingContextType;a=_.D8();_.m5(a,function(){return W().interaction},w);
_.yz(a,{visibilityCallback:function(N){var B,I=(B=W().interaction)==null?void 0:B.onFirstVisible;N&&I&&_.cX(I)},
showOption:_.uC});return _.k("ad-details-line-view-model",{class:function(){var N;return((N=W().interaction)==null?0:N.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:a},_.k(_.Y,{cond:function(){return W().style},
then:function(N){return _.k(_.k6,{each:function(){var B;return((B=W())==null?void 0:B.attributes)||[]},
keyBy:"INDEX"},function(B){return _.k(Zh6,{attribute:B,style:N,adRenderingContextType:function(){return Z()}})})}}))},"Ma");
Zh6=_.xQ(function(a){var W=a.attribute;var w=a.style;var Z=a.adRenderingContextType;return _.k(_.Y,{cond:function(){return W().text},
then:function(N){return _.k(_.k_,{text:N,className:function(){var B=Z();w();return B==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Na");var NdJ=_.xQ(function(a){var W=a.data;var w=a.typographyBump;var Z=function(){return W().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
a={};return _.k(_.Ha,null,_.k("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.k(_.k_,{text:function(){return W().headline},
className:_.W$("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(a.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return Z==null?void 0:Z()},a.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(w==null?void 0:w())&&!(Z==null?0:Z())},a)),
linkInheritColor:!0}),_.k(_.Y,{cond:function(){return W().description},
then:function(N){var B={};return _.k(_.k_,{text:N,className:_.W$("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(B.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return Z==null?void 0:Z()},B.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(w==null?void 0:w())&&!(Z==null?0:Z())},B)),
linkInheritColor:!0})}}),_.k("div",{class:function(){return Z()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.k(_.Ax,{data:function(){return W().adBadge}},{adBadgeViewModel:function(N){return _.k(_.mR,{data:N.data,
hasDot:function(){return!!W().adDetailsLine},
adRenderingContextType:function(){return W().adRenderingContextType}})}}),_.k(_.Ax,{data:function(){return W().adDetailsLine}},{adDetailsLineViewModel:function(N){return _.k(_.VO,{data:N.data,
adRenderingContextType:function(){return W().adRenderingContextType}})}}))),_.k("div",{class:function(){return Z()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.k(_.Ax,{data:function(){return W().menu}},{buttonViewModel:function(N){return _.k(_.F7,{data:N.data,
buttonOverrides:function(){a:switch(W().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var B="S";break a;default:B="M"}return{size:B}}})}})))},"Oa"),t$h=_.xQ(function(a){var W=a.data;
var w=a.noBottomMargin;var Z=a.useVideoLockupTopPadding;var N=a.typographyBump;a={};a=_.W$("ytwFeedAdMetadataViewModelHostMetadata",(a.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return w==null?void 0:w()},a.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Z==null?void 0:Z()},a));
var B=function(){return W().adBadge};
B!==void 0&&B!==null||_.qx(Error("Eh"));B={};var I={};return _.k(_.Ha,null,_.k(_.Y,{cond:function(){return W().adAvatar},
then:function(){return _.k("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.k(_.Ax,{data:function(){return W().adAvatar}},{adAvatarViewModel:function(X){return _.k(_.wsL,{data:X.data})}}))}}),_.k("div",{class:a},_.k("div",{class:_.W$("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(B.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return N==null?void 0:N()},B.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(N==
null?void 0:N())&&_.r("web_enable_typography_bump_v2")},B))},_.k(_.k_,{text:function(){return W().headline},
linkInheritColor:!0})),_.k(_.Y,{cond:function(){return W().description},
then:function(X){return _.k(_.k_,{text:X,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.k("div",{class:function(){return W().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.r("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.k(_.Ax,{data:function(){return W().adBadge}},
{adBadgeViewModel:function(X){return _.k(_.mR,{data:X.data,
hasDot:function(){return!!W().adDetailsLine},
adRenderingContextType:function(){return W().adRenderingContextType}})}}),_.k(_.Ax,{data:function(){return W().adDetailsLine}},{adDetailsLineViewModel:function(X){return _.k(_.VO,{data:X.data,
adRenderingContextType:function(){return W().adRenderingContextType}})}})),_.k(_.Y,{cond:function(){return W().secondaryDescription},
then:function(X){return _.k(_.k_,{text:X,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.k("div",{class:_.W$("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(I.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Z==null?void 0:Z()},I))},_.k(_.Ax,{data:function(){return W().menu}},{buttonViewModel:_.F7})))},"Pa"),$pA=_.xQ(function(a){var W=a.data;
var w=a.noBottomMargin;var Z=a.listenToTapEvent;var N=a.setTouchEndHandler;var B=a.useVideoLockupTopPadding;var I=a.typographyBump;var X=_.D8();_.m5(X,function(){return W().interaction},void 0,function(){return Z==null?void 0:Z()});
a=_.l(_.$1(!1,void 0,"v9Bv8e"));var v=a.next().value,U=a.next().value;a=_.$_(function(){(N==null?0:N())&&!v()&&(X.value.click(),U(!0),setTimeout(function(){U(!1)},100));
return!1});
_.yz(X,{visibilityCallback:function(O){var S,T=(S=W().interaction)==null?void 0:S.onFirstVisible;O&&T&&_.cX(T)},
showOption:_.uC});return _.k("feed-ad-metadata-view-model",{class:function(){var O;return((O=W().interaction)==null?0:O.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:X,"on:touchend":a},_.k(_.Y6,null,_.k(_.Ut,{when:function(){return W().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.k(NdJ,{data:W,
typographyBump:I})}),_.k(_.Ut,{when:function(){return W().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.k(t$h,{data:W,
noBottomMargin:w,useVideoLockupTopPadding:B,typographyBump:I})})))},"Qa");var Bd6;_.zn=_.xQ(function(a){return _.k("yt-lockup-view-model",{class:_.W$(a.className)},_.k(_.WcT,{contentId:function(){return a.data().contentId},
useModernStyle:!0,aspectRatio:function(){var W,w;return((W=a.containerType)==null?void 0:W.call(a))!==3?PR8(a.data().contentType,(w=a.force16By9ThumbnailAspectRatio)==null?void 0:w.call(a)):void 0}},function(){return _.k(Bd6,Object.assign({},a))}))},"Ra");
Bd6=_.xQ(function(a){a=_.Qn(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 W=a.data,w=a.containerLayoutConfig,Z=a.containerType,N=a.sizing,B=a.protectBackground,I=a.typographyBump,X=a.force16By9ThumbnailAspectRatio,v=a.thumbnailFixedWidth,U=a.thumbnailTargetWidth,O=a.lockupExperiments,S=a.elementsPerRow;
a=_.D8();_.Cj(a,function(){var RC;return(RC=W())==null?void 0:RC.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var T=_.Au(hFF),p=_.K().resolve(_.Vv(pcT)),h=p?{}:void 0,L=function(){var RC,G8,QF;return(QF=(G8=_.A((RC=W())==null?void 0:RC.rendererContext,_.DB))==null?void 0:G8.label)!=null?QF:void 0},F=function(){var RC=w==null?void 0:w(),G8;
if(RC==null?0:RC.containerType){var QF=(G8=W())==null?void 0:G8.contentType;G8=O();var vl=I(),Hl=U(),SV=B();RC=Object.assign({},XsH(Bd7(RC),t$8(RC.responsiveSize),vl,QF,RC.force16By9ThumbnailAspectRatio,Hl,SV,G8),{thumbnailFixedWidth:RC.contentPreviewWidth})}else RC=XsH(Z(),N(),I(),(QF=W())==null?void 0:QF.contentType,X(),U(),B(),O());return RC};
p&&h&&p({enabled:function(){return T()},
itemPlaybackModel:function(){return W().itemPlayback},
thumbnailElRef:function(){return h.thumbnailElRef},
containerElRef:a,options:function(){var RC,G8=(RC=_.A(W().metadata,hlL))==null?void 0:RC.endorsement;RC=h.thumbnailOverlays||[];G8&&RC.push(G8);var QF,vl;return{thumbnail:h.thumbnail,thumbnailOverlays:RC,accessibilityText:L(),thumbnailSize:h.thumbnailSize,enableRounding:F().isCollection,containPlayerWithinThumbnail:F().isCollection,trackingParams:(QF=_.A(W().rendererContext,_.WfU))==null?void 0:(vl=QF.loggingDirectives)==null?void 0:vl.trackingParams}}});
var x=0;p=_.l(_.$1(!1,void 0,"HzAs3"));var G=p.next().value,V=p.next().value;p=_.l(_.$1(!1,void 0,"ujOXud"));var d=p.next().value,ZD=p.next().value;p=_.$_(function(){var RC=T()&&W().itemPlayback;d()?(_.hF.cancelJob(x),x=_.hF.addJob(function(){V(!RC)},8,32)):V(!RC);
return!0});
var aC=_.$_(function(){x&&(_.hF.cancelJob(x),x=0);V(!1)});
_.Ao(function(){x&&(_.hF.cancelJob(x),x=0)});
var Bv=CRm(function(){ZD(!0)}),Am=Bv.touchFeedbackEvents,e9=Bv.touchFeedbackOnPointerUp,cv=Bv.touchFeedbackOnPointerDown;
Bv=Bv.touchFeedbackOnPointerLeave;var C7={};return _.k("div",{el:a,class:_.W$("yt-lockup-view-model-wiz",function(){a:{var RC=F();if(RC.isOverlay)RC="yt-lockup-view-model-wiz--overlay";else switch(RC.arrangement){case 1:RC="yt-lockup-view-model-wiz--horizontal";break a;default:RC="yt-lockup-view-model-wiz--vertical"}}return RC},function(){a:{var RC=F();
if(RC.isOverlay)RC="yt-lockup-view-model-wiz--overlay";else{switch(RC.collectionStackNumber){case 1:RC="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:RC="yt-lockup-view-model-wiz--collection-stack-2";break a}RC=void 0}}return RC},(C7["yt-lockup-view-model-wiz--card"]=function(){return F().isCard},C7["yt-lockup-view-model-wiz--compact"]=function(){return F().isTiny||F().sizing!=="STANDARD"},C7["yt-lockup-view-model-wiz--protect-background"]=B,C7["yt-lockup-view-model-wiz--add-margins"]=
function(){return F().addMarginForFullbleed},C7["yt-lockup-view-model-wiz--centered"]=function(){return F().isCentered},C7["yt-lockup-view-model-wiz--fullbleed"]=function(){return F().fullbleed},C7["yt-lockup-view-model-wiz--single-column-grid"]=function(){return S()===1&&Z()===2},C7["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var RC;
return(RC=O())==null?void 0:RC.useRichGridLegacyMargin},C7)),
"on:mousedown":cv,"on:mouseleave":aC,"on:mouseup":e9,"on:mouseover":p,"on:touchstart":cv,"on:touchend":e9,"on:pointerleave":Bv},_.k(_.ot,{command:function(){var RC;return _.bK((RC=W())==null?void 0:RC.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return v()&&F().arrangement===1?"width: "+v():""}},_.k(_.Ax,{data:function(){var RC;
return(RC=W())==null?void 0:RC.contentImage}},{thumbnailViewModel:function(RC){return _.k(_.su,{data:RC.data,
aspectRatio:function(){return F().aspectRatio},
disableRounding:function(){return F().disableRounding},
width:U,hovered:G,isClip:function(){var G8;return((G8=W())==null?void 0:G8.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:rjF(h),lockupExperiments:function(){return O()}})},
collectionThumbnailViewModel:function(RC){return _.k(MZE,{data:RC.data,aspectRatio:function(){return F().aspectRatio},
disableRounding:function(){return F().disableRounding},
width:U,doubleStack:function(){return F().collectionStackNumber===2},
hovered:G,playbackRef:rjF(h)})},
decoratedAvatarViewModel:_.Sd})),_.k("div",{class:"yt-lockup-view-model-wiz__metadata"},_.k(_.Ax,{data:function(){var RC;return(RC=W())==null?void 0:RC.metadata}},{lockupMetadataViewModel:function(RC){return _.k(yj_,{data:RC.data,
lockupStyle:F,lockupCommand:function(){var G8;return _.bK((G8=W())==null?void 0:G8.rendererContext)},
lockupAccessibilityLabel:function(){return L()}})},
feedAdMetadataViewModel:function(RC){return _.k($pA,{data:RC.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:I})}}),_.k(_.Ax,{data:function(){var RC;
return(RC=W())==null?void 0:RC.attachmentSlot}},{lockupAttachmentsViewModel:function(RC){return _.k(bbl,{data:RC.data,
lockupStyle:F})}})),_.k(_.g2,{model:function(){a:{switch(F().collectionStackNumber){case 1:var RC=8;
break a;case 2:RC=12;break a}RC=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:RC}},
pointerDownEvent:Am.pointerDownEvent,pointerUpEvent:Am.pointerUpEvent,pointerLeaveEvent:Am.pointerLeaveEvent}))},"Sa");
_.zn.idomCompat=!0;_.Ct(_.zn,"yt-lockup-view-model",{props:{data:_.qR,containerLayoutConfig:_.qR,containerType:_.qR,sizing:_.qR,protectBackground:_.qR,typographyBump:_.qR,thumbnailFixedWidth:_.qR,thumbnailTargetWidth:_.qR,force16By9ThumbnailAspectRatio:_.qR,className:_.qR,lockupExperiments:_.qR,elementsPerRow:_.qR}});_.En(z$U);var lkR=_.NX(z$U,{callbacks:{onExpandClick:!0}});var wWF=_.T9({buttonViewModel:_.F7}),IkR=_.NX(azC);_.En(azC);_.En(yrx);_.En(EMe);_.Ct(IkR,"yt-video-attribute-view-model",{props:{data:_.qR,className:_.qR}});var HR=function(){var a=_.u.apply(this,arguments)||this;a.useHighlightStyling=_.r("web_enable_deeper_metadata_highlight_styling");a.isSearch=!1;a.JSC$12953_lastScrollContainerWidth=NaN;a.pageLoadingFromNavigation=!1;a.currentIndex=0;a.supportComponentResize=!1;return a};
_.c(HR,_.u);_.t=HR.prototype;
_.t.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}}}}}};
_.t.attached=function(){document.addEventListener("yt-page-type-changed",_.yV(this,this.onPageChange))};
_.t.detached=function(){document.removeEventListener("yt-page-type-changed",_.yV(this,this.onPageChange))};
_.t.getItemsPath=function(){return"data.cards"};
_.t.onIronResize=function(){this.updateListStyles()};
_.t.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=_.r("problem_walkthrough_sd")&&!!this.centerItems};
_.t.computeCardListStyle=function(a){return a||null};
_.t.computeEmpty=function(a){return!this.get("cards.length",a)};
_.t.computeThumbnailStyle=function(a){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",a)||null};
_.t.computeHasSubtitle=function(a){return!!this.get("header.richListHeaderRenderer.subtitle",a)};
_.t.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};
_.t.computeUseFloorScrolling=function(a){return a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.t.computeHasGameCard=function(a){return(a=this.get("cards",a))?a.some(function(W){return W.gameCardRenderer}):!1};
_.t.computeCenterHeaderTitle=function(a){return!(a==null||!a.centerHeaderTitle)};
_.t.computeHasPortraitMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.t.computeHasSquareMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.t.computeHasSkinnyWidthPortraitMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.width===135}):!1};
_.t.computeCenterItems=function(a){return!!a};
_.t.computeHasInfoPanel=function(a){var W;return a==null?void 0:(W=a.cards)==null?void 0:W.some(function(w){return w.infoPanelContentRenderer})};
_.t.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.t.getItemByIndex=function(a){var W=this.items.children;return W&&W.length>a?W[a]:void 0};
_.t.onPageChange=function(){var a=this;this.pageLoadingFromNavigation=!0;_.hF.addJob(function(){a.pageLoadingFromNavigation=!1;_.W_(a.hostElement,"yt-terminate-video-preview-action")},8)};
_.t.updateListStyles=function(){if(_.r("problem_walkthrough_sd")&&this.JSC$12953_scrollContainer!==void 0){var a=this.JSC$12953_scrollContainer.clientWidth;a!==this.JSC$12953_lastScrollContainerWidth&&(this.JSC$12953_lastScrollContainerWidth=a,_.Hu(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(a*.8,415)+"px"}),_.E$(this.hostElement,"iron-resize"))}};
_.dU.Object.defineProperties(HR.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.r("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return _.r("kevlar_modern_sd")&&!!((a=this.data)==null?0:(W=a.cards)==null?0:(w=W[0])==null?0:w.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return!!((a=this.data)==null?0:(W=a.cards)==null?0:(w=W[0])==null?0:w.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return _.r("enable_desktop_amsterdam_info_panels")&&!!((a=this.data)==null?0:(W=a.cards)==null?0:(w=W[0])==null?0:w.infoPanelContentRenderer)}}});
HR.prototype.dataChanged=HR.prototype.dataChanged;HR.prototype.onIronResize=HR.prototype.onIronResize;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.zd.YtdHorizontalListBehavior),_.z("design:type",Object)],HR.prototype,"ytdHorizontalListBehavior",void 0);
_.f([_.R(_.eN),_.z("design:type",Object)],HR.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],HR.prototype,"data",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],HR.prototype,"useCustomColors",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HR.prototype,"useHighlightStyling",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.z("design:type",Object)],HR.prototype,"cardListStyle",void 0);_.f([_.b({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.z("design:type",Boolean)],HR.prototype,"empty",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.z("design:type",Boolean)],HR.prototype,"hasSubtitle",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.z("design:type",Boolean)],HR.prototype,"thumbnailStyle",void 0);_.f([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.z("design:type",Boolean)],HR.prototype,"hasGameCard",void 0);_.f([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.z("design:type",Boolean)],HR.prototype,"centerHeaderTitle",void 0);
_.f([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.z("design:type",Boolean)],HR.prototype,"hasPortraitMiniApp",void 0);_.f([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.z("design:type",Boolean)],HR.prototype,"hasSquareMiniApp",void 0);_.f([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.z("design:type",Boolean)],HR.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.f([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.z("design:type",Boolean)],HR.prototype,"hasInfoPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HR.prototype,"isSearch",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],HR.prototype,"inlineStructuredDescription",void 0);_.f([_.w$("#scroll-container"),_.z("design:type",HTMLDivElement)],HR.prototype,"JSC$12953_scrollContainer",void 0);
_.f([_.b({computed:"computeInitialCountNumber(data.style.type)"}),_.z("design:type",Number)],HR.prototype,"initialCount",void 0);_.f([_.b({computed:"computeUseFloorScrolling(data.style.type)"}),_.z("design:type",Boolean)],HR.prototype,"useFloorScrolling",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.z("design:type",Boolean)],HR.prototype,"centerItems",void 0);_.f([_.b(),_.z("design:type",Object)],HR.prototype,"pageLoadingFromNavigation",void 0);
_.f([_.b(),_.z("design:type",Object)],HR.prototype,"currentIndex",void 0);_.f([_.b(),_.z("design:type",Number)],HR.prototype,"scrollCount",void 0);_.f([_.b(),_.z("design:type",Object)],HR.prototype,"supportComponentResize",void 0);_.f([_.w$("#items"),_.z("design:type",HTMLDivElement)],HR.prototype,"items",void 0);_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HR.prototype,"onIronResize",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HR.prototype,"dataChanged",null);_.f([_.b({reflectToAttribute:!0}),_.Q("inlineStructuredDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HR.prototype,"hideNavigationButton",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HR.prototype,"modernChapters",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HR.prototype,"hasVideoAttributeViewModels",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HR.prototype,"modernInfoPanels",null);HR=_.f([_.C({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],HR);
_.D(HR,"ytd-horizontal-card-list-renderer",function(){if(Zb$!==void 0)return Zb$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Zb$=a},{mode:_.Vn("kevlar_poly_si_batch_j072")?1:2});_.En(Nce);var PRh=_.xQ(function(a){var W=a.data;var w={};return _.k("video-summary-content-view-model",{class:_.W$("video-summary-content-view-model-wiz",a.className,(w["video-summary-content-view-model-wiz--is-search"]=a.isSearch,w))},_.k(_.k6,{each:function(){var Z=[],N=W().paragraphs;if(N==null||!N.length)return[];for(var B=0;B<N.length;B++){var I=_.A(N[B],Z5C),X=void 0;B>0&&(X=_.A(N[B-1],Z5C));X&&!!X.marker===!!I.marker?Z[Z.length-1].paragraphs.push(I):Z.push({isList:!!I.marker,paragraphs:[I]})}return Z},
keyBy:"INDEX"},function(Z){return _.k(_.Y,{cond:function(){return Z().isList},
then:function(){return _.k("ul",{class:"video-summary-content-view-model-wiz__list"},_.k(_.k6,{each:function(){return Z().paragraphs},
keyBy:"INDEX"},function(N){return _.k("li",{class:"video-summary-content-view-model-wiz__list-item"},_.k(_.k_,{text:function(){return N().text}}))}))},
else:function(){return _.k(_.k6,{each:function(){return Z().paragraphs},
keyBy:"INDEX"},function(N){return _.k("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.k(_.k_,{text:function(){return N().text}}))})}})}),_.k(_.Y,{cond:function(){return!!_.A(W().likeButtonViewModel,nj)&&!!_.A(W().dislikeButtonViewModel,j4)},
then:function(){return _.k("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.k("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.k(_.A8,{data:function(){return _.A(W().likeButtonViewModel,nj)},
disableIconAnimation:!0})),_.k(_.ry,{data:function(){return _.A(W().dislikeButtonViewModel,j4)}}))}}))},"Ta"),Xsy=_.r("web_enable_sink_video_summary_content_view_model")?PRh:Nce,vMJ=_.r("web_enable_sink_video_summary_content_view_model")?PRh:_.NX(Nce);
PRh.idomCompat=!0;_.r("web_enable_sink_video_summary_content_view_model")?_.Ct(Xsy,"video-summary-content-view-model",{props:{data:_.qR,isSearch:_.qR,className:_.qR}}):_.HX(Xsy,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var yO=function(){var a=_.u.apply(this,arguments)||this;var W,w;a.isExpanded=(w=(W=a.data)==null?void 0:W.isExpanded)!=null?w:!1;a.disableExpand=!1;a.showProminentLabel=!1;a.showRightSideLabel=!0;a.toggleExpandableContent=function(Z){a.disableExpand||(Z.stopPropagation(),_.sb(_.qj(Z),a.hostElement,["info","expanded-subtitle"])||(a.isExpanded=!a.isExpanded,a.ytRendererBehavior.logExplicitClick(a.data),a.JSC$12966_cardList&&!_.r("expandable_metadata_a11y_fix_ks")&&_.DW(a,function(){_.un(a.hostElement)})))};
a.useSquareThumbnail=!1;a.startX=0;return a};
_.c(yO,_.u);_.t=yO.prototype;_.t.computeUseSquareThumbnail=function(){var a;return(a=this.data)==null?void 0:a.useSquareThumbnail};
_.t.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"}}}}};
_.t.dataChanged=function(){if(this.data){var a,W;this.isExpanded=(W=(a=this.data)==null?void 0:a.isExpanded)!=null?W:!1;var w,Z,N,B;if(a=this.isDarkTheme()?(w=this.data)==null?void 0:(Z=w.colorData)==null?void 0:Z.darkColorPalette:(N=this.data)==null?void 0:(B=N.colorData)==null?void 0:B.lightColorPalette){var I,X;if((I=this.data)==null?0:(X=I.colorData)==null?0:X.vibrantColorPalette)a.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Tw(this.hostElement,a)}}};
_.t.isExpandedChanged=function(){this.isExpanded&&this.JSC$12966_cardList&&_.E$(this.JSC$12966_cardList,"iron-resize")};
_.t.computeIsExpanded=function(a){return!!a.isExpanded};
_.t.computeShowProminentLabel=function(a,W){var w;return!!(a==null?0:(w=a.header)==null?0:w.showLeadingCollapsedLabel)&&!W};
_.t.computeShowRightSideLabel=function(a,W){var w;return!(a==null?0:(w=a.header)==null?0:w.showLeadingCollapsedLabel)&&!W};
_.t.captureContentClick=function(a){if(!this.disableExpand)if(_.r("expandable_metadata_fix_killswitch")){var W=a.target;_.Lny(W,"ytd-macro-markers-list-item-renderer")||a.stopPropagation();(W==null?void 0:W.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.sb(_.qj(a),this.hostElement,["items"])||_.b5(_.qj(a),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.t.timestampClick=function(a){a.stopPropagation();var W,w;(a=(W=this.data)==null?void 0:(w=W.header)==null?void 0:w.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(a)};
_.t.onDown=function(a){a.stopPropagation();this.startX=a.detail?a.detail.x:0};
_.t.onUp=function(a){this.skipKeyInteraction(a)&&a.stopPropagation()};
_.t.skipKeyInteraction=function(a){var W=a.target;if((W==null?void 0:W.id)==="scroll-container"||(W==null?void 0:W.id)==="items"||a.detail&&a.detail.x!==this.startX)return!0;a=_.qj(a);a=_.l(a);for(W=a.next();!W.done;W=a.next()){W=W.value;if(W===this.hostElement)break;if(W.hasAttribute&&W.hasAttribute("skip-key-interaction"))return!0}return!1};
_.t.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.dU.Object.defineProperties(yO.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.A((a=this.data)==null?void 0:a.expandedContent,Miy)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.A((a=this.data)==null?void 0:a.expandedContent,_.iBJ)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var a,W;return!((a=this.data)==null||!a.useCustomColors)&&!((W=this.data)==null||!W.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,W;return!!((a=this.data)==null?0:(W=a.header)==null?0:W.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var a,W;return!!((a=this.data)==null?0:(W=a.header)==null?0:W.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,W;return!!((a=this.data)==null?0:(W=a.header)==null?0:W.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"}}});
yO.prototype.onUp=yO.prototype.onUp;yO.prototype.onDown=yO.prototype.onDown;yO.prototype.isExpandedChanged=yO.prototype.isExpandedChanged;yO.prototype.dataChanged=yO.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],yO.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],yO.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yO.prototype,"isExpanded",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yO.prototype,"disableExpand",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],yO.prototype,"isSearch",void 0);
_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],yO.prototype,"isWatch",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.z("design:type",Object)],yO.prototype,"showProminentLabel",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.z("design:type",Object)],yO.prototype,"showRightSideLabel",void 0);
_.f([_.b({value:!1,reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],yO.prototype,"hasVideoSummary",null);_.f([_.b({value:!1,reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],yO.prototype,"hasLockupViewModel",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data","isWatch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],yO.prototype,"useCustomColors",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],yO.prototype,"showInfoButton",null);_.f([_.Q("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],yO.prototype,"showTimestamp",null);_.f([_.Q("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],yO.prototype,"showExpandedSubtitle",null);
_.f([_.Q("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],yO.prototype,"showThumbnail",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],yO.prototype,"useVppShoppingDestinationStyle",null);_.f([_.b(),_.z("design:type",Object)],yO.prototype,"toggleExpandableContent",void 0);_.f([_.w$("ytd-horizontal-card-list-renderer"),_.z("design:type",Object)],yO.prototype,"JSC$12966_cardList",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.z("design:type",Object)],yO.prototype,"useSquareThumbnail",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yO.prototype,"dataChanged",null);_.f([_.a5("isExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yO.prototype,"isExpandedChanged",null);
_.f([_.E6("down"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],yO.prototype,"onDown",null);_.f([_.E6("up"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],yO.prototype,"onUp",null);yO=_.f([_.C({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],yO);
_.D(yO,"ytd-expandable-metadata-renderer",function(){if(BVV!==void 0)return BVV;var a=document.createElement("template");_.n(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" 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(_.y().content.cloneNode(!0),
a.content.firstChild);return BVV=a},{mode:1});var gMA,oM$=function(){if(gMA!==void 0)return gMA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return gMA=a};_.Ct(_.Yl,"yt-avatar-stack-view-model",{props:{className:_.qR,data:_.qR,overrides:_.qR,isOverlay:_.qR,useMediumText:_.qR,decorations:_.qR,hideAvatar:_.qR}});_.pA("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Eu=function(){var a=_.u.apply(this,arguments)||this;a.disableExpand=!1;a.shouldShowChannelInfo=!1;a.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return a};
_.c(Eu,_.u);_.t=Eu.prototype;_.t.computeUseSearchUi=function(){var a,W;return this.isSearch||((a=this.data)==null?void 0:(W=a.style)==null?void 0:W.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.t.computeUseThreeLineTitle=function(){var a;return((a=this.data)==null?void 0:a.maxTitleLines)===3};
_.t.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.r("polymer_video_renderer_defer_menu")&&!WMl?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"}}}};
_.t.attached=function(){_.mh(this.hostElement,"blue-links",_.r("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.VV(_.M(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var a=this.get("data.buttons.buttonRenderer.serviceEndpoint"),W;a&&((W=_.A(a.commandMetadata,_.h4))==null?0:W.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(a);this.updateInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12971_inlinePreviewHoverListener=dP({mediaRenderer:this,lockupElement:this.JSC$12971_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.t.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$12971_inlinePreviewHoverListener)==null||ty(a)};
_.t.onTextWrapperClick=function(a){var W,w,Z=this.hideTranslation?(W=this.data)==null?void 0:W.untranslatedNavigationEndpoint:(w=this.data)==null?void 0:w.navigationEndpoint;W=_.sb(_.qj(a),this.hostElement,["expandable-metadata"]);!Z||W&&!_.r("expandable_metadata_fix_killswitch")||_.b5(_.qj(a),this.hostElement,["A".toString(),"BUTTON".toString()])||_.E$(this.hostElement,"yt-navigate",{endpoint:Z})};
_.t.computeThumbnailWidth=function(a,W,w,Z,N){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:Z?N==="MASSIVE"?600:N==="BIG"?500:N==="MEDIUM"?450:420:w?360:W?128:a?210:246};
_.t.computeUseBiggerThumbs=function(a){return a&&_.r("enable_desktop_search_bigger_thumbs")};
_.t.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.t.computeVideoStyle=function(){if(_.r("enable_video_style")){var a,W;return(a=this.data)==null?void 0:(W=a.style)==null?void 0:W.value}};
_.t.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.t.handleHideItemSectionVideosByIdCommand=function(a){var W;a=(W=_.A(a,Zm$))==null?void 0:W.videoId;this.data&&this.data.videoId===a&&(this.isHidden=!0)};
_.t.getMetadataSnippetContainerClass=function(a){return a?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.t.computeTitleText=function(a,W,w){return a?w:W};
_.t.computeDescriptionSnippet=function(a,W,w){return a?w:W};
_.t.computeSnippetText=function(a,W,w){return a?w:W};
_.t.computeNavigationEndpoint=function(a,W){return a?W==null?void 0:W.untranslatedNavigationEndpoint:W==null?void 0:W.navigationEndpoint};
_.t.hideInlineTitleIcon=function(a,W){return a||!W};
_.dU.Object.defineProperties(Eu.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,W,w;return!!(this==null?0:(a=this.data)==null?0:(W=a.channelThumbnailSupportedRenderers)==null?0:(w=W.channelThumbnailWithLinkRenderer)==null?0:w.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.A((a=this.data)==null?void 0:a.avatar,ccl)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$12971_inlinePreviewHoverListener)==null?0:pd(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.dU.Object.defineProperties(Eu,{template:{configurable:!0,enumerable:!0,get:function(){return oM$()}}});
Eu.prototype.dataChanged=Eu.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Eu.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],Eu.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.R(_.qv),_.z("design:type",Object)],Eu.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Eu.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Eu.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Eu.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Eu.prototype,"isBackstageVideo",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Eu.prototype,"isPostCompactVideo",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Eu.prototype,"isHistory",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Eu.prototype,"isRichGridVideoPost",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Eu.prototype,"isHidden",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Eu.prototype,"isSearch",void 0);_.f([_.b({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.z("design:type",Boolean)],Eu.prototype,"useSearchUi",void 0);_.f([_.b({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.z("design:type",Boolean)],Eu.prototype,"useThreeLineTitle",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.z("design:type",Boolean)],Eu.prototype,"useBiggerThumbs",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.z("design:type",Object)],Eu.prototype,"videoStyle",void 0);_.f([_.b({computed:"computeDisableExpand(videoStyle)"}),_.z("design:type",Object)],Eu.prototype,"disableExpand",void 0);
_.f([_.b({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.z("design:type",Object)],Eu.prototype,"shouldShowChannelInfo",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.Et("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],Eu.prototype,"biggerThumbsStyle",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.z("design:type",String)],Eu.prototype,"inlineTitleIcon",void 0);_.f([_.b({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.z("design:type",Object)],Eu.prototype,"computedNavigationEndpoint",void 0);_.f([_.b({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(a,W){return _.tG(a.entities,"searchVideoResultEntity",W)}}),
_.z("design:type",Object)],Eu.prototype,"searchVideoResultEntity",void 0);_.f([_.w$("ytd-thumbnail"),_.z("design:type",HTMLElement)],Eu.prototype,"thumbnail",void 0);_.f([_.w$("#dismissible"),_.z("design:type",HTMLElement)],Eu.prototype,"JSC$12971_dismissibleMedia",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Eu.prototype,"dataChanged",null);
_.f([_.Q("searchVideoResultEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Eu.prototype,"hideTranslation",null);_.f([_.Q("searchVideoResultEntity"),_.z("design:type",Array),_.z("design:paramtypes",[])],Eu.prototype,"hiddenBadgeGroups",null);_.f([_.Q("data","useAvatar"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Eu.prototype,"shouldShowChannelThumbnail",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Eu.prototype,"useAvatar",null);
_.f([_.Q("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Eu.prototype,"isHovered",null);Eu=_.f([_.C({is:"ytd-video-renderer",disableElementRegistration:!0})],Eu);_.D(Eu,"ytd-video-renderer",function(){return oM$()},{mode:_.Vn("kevlar_poly_si_batch_j047")?1:2});var aD=function(){var a=_.u.apply(this,arguments)||this;a.editDialog=null;a.roundedContainer=!0;a.isLoading=!1;a.isRichGrid=!1;a.isRichGridRepost=!1;a.reduceSidePaddings=_.r("reduce_side_paddings_in_shelf");a.JSC$12978_spinnerEl=null;return a};
_.c(aD,_.u);_.t=aD.prototype;
_.t.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"}}}};
_.t.contentTextChanged=function(){this.expander.reset()};
_.t.dataChanged=function(){var a=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var W=0,w=this.data.actions&&this.data.actions.length;W<w;W++)this.openEditDialog(_.A(this.data.actions[W],iI6));if((W=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(W=this.get("buttonRenderer.hint.hintRenderer.hintId",W))&&W.startsWith("share-post-hint")){var Z=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(Z){_.zZ.getInstance();var N=HE(_.b8(_.P_("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.hF.addLowPriorityJob(function(){_.N1(a.hostElement,N,Z)})}}}};
_.t.updatePoll=function(a){a>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.t.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12978_spinnerEl||(this.JSC$12978_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.M(this.hostElement).appendChild(this.JSC$12978_spinnerEl));this.JSC$12978_spinnerEl&&(this.JSC$12978_spinnerEl.active=this.isLoading)};
_.t.onYtNavigate=function(a){var W=this.get("updateCommentDialogEndpoint",a.detail.endpoint);W&&(this.openEditDialog(W),a.stopPropagation())};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null};
_.t.onYtCommentPollRevert=function(a,W){W&&this.updatePoll(W.selectedChoiceIndex)};
_.t.onYtServiceRequestSent=function(a,W){var w;W.endpoint&&(_.A(W.endpoint,da6)||_.A(W.endpoint,fl_)&&((w=_.A(W.endpoint,fl_))==null||!w.clientActions))&&(this.isLoading=!0);if(W.actions)for(a=0;a<W.actions.length;a++)w=W.actions[a],_.A(w,r7)&&(w=this.get("updateBackstagePollAction.selectedChoiceIndex",w),w==void 0&&(w=-1),this.updatePoll(w))};
_.t.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.t.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.editDialogEl.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.t.computeIsPostHidden=function(a,W){return!!a||W};
_.t.computeSurfaceType=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.t.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"};
_.t.computeShowWithoutToolbar=function(a){return!a.actionButtons&&!a.actionMenu};
_.t.computePostAttachment=function(a){if(a.backstageAttachment){if(_.A(a.backstageAttachment,rME))return"poll";if(_.A(a.backstageAttachment,BlE))return"quiz";if(_.A(a.backstageAttachment,_.Ma))return"video";if(_.A(a.backstageAttachment,lj$))return"uploaded-videos";if(_.A(a.backstageAttachment,Wl6))return a.contentText?"image":"image-only";if(_.A(a.backstageAttachment,ZlL))return"playlist"}return"none"};
_.t.computePostTabIndex=function(a){return a?0:-1};
_.t.computeButtonTooltipPosition=function(a){return this.computeUsesCompactLockup(a)?"top":"bottom"};
_.t.computeHasText=function(a){return!(a==null||!a.contentText)};
_.t.onTap=function(a){var W,w;if(((W=this.data)==null?0:W.navigationEndpoint)&&((w=this.data)==null?void 0:w.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var Z;((Z=this.data)==null?0:Z.navigationEndpoint)&&!_.b5(_.qj(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.dU.Object.defineProperties(aD.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.b8("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||!_.A(this.data.backstageAttachment,rME))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.A(this.data.backstageAttachment,lj$))}}});
aD.prototype.onYtServiceRequestCompleted=aD.prototype.onYtServiceRequestCompleted;aD.prototype.onYtServiceRequestSent=aD.prototype.onYtServiceRequestSent;aD.prototype.onYtCommentPollRevert=aD.prototype.onYtCommentPollRevert;aD.prototype.onYtCommentboxDismiss=aD.prototype.onYtCommentboxDismiss;aD.prototype.onYtNavigate=aD.prototype.onYtNavigate;aD.prototype.isLoadingChanged=aD.prototype.isLoadingChanged;aD.prototype.dataChanged=aD.prototype.dataChanged;aD.prototype.contentTextChanged=aD.prototype.contentTextChanged;
_.f([_.R(_.eN),_.z("design:type",Object)],aD.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],aD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],aD.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],aD.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],aD.prototype,"editDialog",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],aD.prototype,"roundedContainer",void 0);_.f([_.b(),_.z("design:type",Object)],aD.prototype,"isLoading",void 0);_.f([_.b({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.z("design:type",String)],aD.prototype,"surface",void 0);
_.f([_.b({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.z("design:type",Boolean)],aD.prototype,"usesCompactLockup",void 0);_.f([_.b({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],aD.prototype,"showWithoutToolbar",void 0);_.f([_.b({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.z("design:type",String)],aD.prototype,"attachment",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],aD.prototype,"isRichGrid",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],aD.prototype,"isRichGridRepost",void 0);_.f([_.b({reflectToAttribute:!0,value:_.r("use_better_post_dismissals")}),_.z("design:type",Boolean)],aD.prototype,"useBetterPostDismissals",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],aD.prototype,"reduceSidePaddings",void 0);
_.f([_.b({computed:"computeHasText(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],aD.prototype,"hasText",void 0);_.f([_.w$("#expander"),_.z("design:type",Object)],aD.prototype,"expander",void 0);_.f([_.w$("#action-buttons"),_.z("design:type",Object)],aD.prototype,"actionButtons",void 0);_.f([_.w$("#edit-dialog"),_.z("design:type",HTMLElement)],aD.prototype,"editDialogEl",void 0);
_.f([_.a5("data.contentText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aD.prototype,"contentTextChanged",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aD.prototype,"dataChanged",null);_.f([_.a5("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aD.prototype,"isLoadingChanged",null);
_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],aD.prototype,"onYtNavigate",null);_.f([_.E6("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aD.prototype,"onYtCommentboxDismiss",null);_.f([_.E6("yt-comment-poll-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],aD.prototype,"onYtCommentPollRevert",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],aD.prototype,"onYtServiceRequestSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],aD.prototype,"onYtServiceRequestCompleted",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],aD.prototype,"voteCount",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],aD.prototype,"commentCount",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],aD.prototype,"hasPoll",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],aD.prototype,"hasUploadedVideo",null);aD=_.f([_.C({is:"ytd-post-renderer",disableElementRegistration:!0})],aD);
_.D(aD,"ytd-post-renderer",function(){if(nLL!==void 0)return nLL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return nLL=a},{mode:1});var keA;var Upl;var Wd=function(){return _.u.apply(this,arguments)||this};
_.c(Wd,_.u);Wd.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.zd.YtdHorizontalListBehavior),_.z("design:type",Object)],Wd.prototype,"ytdHorizontalListBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Wd.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Wd.prototype,"data",void 0);
_.f([_.b({value:"$.items.children"}),_.z("design:type",String)],Wd.prototype,"itemsPath",void 0);_.f([_.b({value:1}),_.z("design:type",Number)],Wd.prototype,"initialCount",void 0);_.f([_.b(),_.z("design:type",String)],Wd.prototype,"surface",void 0);Wd=_.f([_.C({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Wd);
_.D(Wd,"ytd-post-multi-image-renderer",function(){if(Upl!==void 0)return Upl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Upl=a},{mode:_.Vn("kevlar_poly_si_batch_j079")?1:2});var OhT={"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"}}},wM=function(){var a=_.u.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$12994_spinnerEl=null;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.c(wM,_.u);_.t=wM.prototype;_.t.configureRendererStamper=function(){return OhT};
_.t.computeIsPollHeaderEnabled=function(a){return(a==null?void 0:a.pollMetadataIcon)!=null};
_.t.getPublishTimeStampString=function(a,W){W=new Date((Number(W)-60*((new Date).getTimezoneOffset()-(new Date(Number(W)*1E3)).getTimezoneOffset()))*1E3);W=(new Qb(10)).format(W);if(a&&a.runs&&a.runs.length)for(var w=0;w<a.runs.length;w++)a.runs[w].text&&(a.runs[w].text=a.runs[w].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",W));return a};
_.t.created=function(){this.JSC$12994_spinnerEl=null};
_.t.contentTextChanged=function(){this.expander.reset()};
_.t.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var a;if((a=this.data)==null?0:a.actions){a=_.l(this.data.actions);for(var W=a.next();!W.done;W=a.next())this.openEditDialog(_.A(W.value,iI6))}};
_.t.handleSignalActionOpenPostCommentDialogAction=function(){_.M(this.hostElement).querySelector("#action-buttons").reply()};
_.t.updatePoll=function(a,W){W&&this.set("data.pollMetadataVoteCountText",W);this.hasInlineCommentSection&&(a=a>=0,W=_.M(this.hostElement).querySelector("#action-buttons"),a?W.reply():W.hideReplyDialog())};
_.t.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12994_spinnerEl||(this.JSC$12994_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.M(this.hostElement).appendChild(this.JSC$12994_spinnerEl));this.JSC$12994_spinnerEl&&(this.JSC$12994_spinnerEl.active=this.isLoading)};
_.t.onYtNavigate=function(a){var W=this.get("updateCommentDialogEndpoint",a.detail.endpoint);W&&(this.openEditDialog(W),a.stopPropagation())};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null};
_.t.onYtCommentPollRevert=function(a,W){W&&this.updatePoll(W.selectedChoiceIndex,W.totalVotes)};
_.t.onYtServiceRequestSent=function(a,W){a.stopPropagation();a=_.A(W.endpoint,fl_);if(_.A(W.endpoint,da6)||a&&!a.clientActions)this.isLoading=!0;if(W.actions)for(a=0;a<W.actions.length;a++){var w=W.actions[a],Z=_.A(w,r7);Z&&(w=this.get("updateBackstagePollAction.selectedChoiceIndex",w),w===void 0&&(w=-1),this.updatePoll(w,Z.totalVotes))}};
_.t.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.t.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.editDialogElement.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.t.computeIsBodyHidden=function(a,W){return!!a||W};
_.dU.Object.defineProperties(wM.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var a,W;if((a=this.data)==null?0:(W=a.pollMetadataIcon)==null?0:W.iconType)return _.EN(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.b8("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||!_.A(this.data.backstageAttachment,rME))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.A(this.data.backstageAttachment,BlE))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.A(this.data.backstageAttachment,lj$))}}});
wM.prototype.onYtServiceRequestCompleted=wM.prototype.onYtServiceRequestCompleted;wM.prototype.onYtServiceRequestSent=wM.prototype.onYtServiceRequestSent;wM.prototype.onYtCommentPollRevert=wM.prototype.onYtCommentPollRevert;wM.prototype.onYtCommentboxDismiss=wM.prototype.onYtCommentboxDismiss;wM.prototype.onYtNavigate=wM.prototype.onYtNavigate;wM.prototype.isLoadingChanged=wM.prototype.isLoadingChanged;wM.prototype.dataChanged=wM.prototype.dataChanged;wM.prototype.contentTextChanged=wM.prototype.contentTextChanged;
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],wM.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],wM.prototype,"rendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],wM.prototype,"rendererstamperBehavior",void 0);_.f([_.w$("#contentTextExpander"),_.z("design:type",Object)],wM.prototype,"expander",void 0);
_.f([_.w$("#edit-dialog"),_.z("design:type",Element)],wM.prototype,"editDialogElement",void 0);_.f([_.b(),_.z("design:type",Object)],wM.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],wM.prototype,"hasInlineCommentSection",void 0);_.f([_.b(),_.z("design:type",Object)],wM.prototype,"editDialog",void 0);_.f([_.b(),_.z("design:type",Object)],wM.prototype,"isLoading",void 0);
_.f([_.b({computed:"computeIsPollHeaderEnabled(data)"}),_.z("design:type",Boolean)],wM.prototype,"isPollHeaderEnabled",void 0);_.f([_.b(),_.z("design:type",Object)],wM.prototype,"shouldHideAuthor",void 0);_.f([_.b(),_.z("design:type",Object)],wM.prototype,"shouldShowVideoTime",void 0);_.f([_.b(),_.z("design:type",Object)],wM.prototype,"isInEngagementPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wM.prototype,"hideBorder",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wM.prototype,"usesFullLockup",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wM.prototype,"shouldShowMenuInCompactView",void 0);_.f([_.Q("isInEngagementPanel"),_.z("design:type",Number),_.z("design:paramtypes",[])],wM.prototype,"postTextMaxLines",null);_.f([_.Q("data.icon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],wM.prototype,"pollIcon",null);
_.f([_.a5("data.contentText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wM.prototype,"contentTextChanged",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wM.prototype,"dataChanged",null);_.f([_.a5("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wM.prototype,"isLoadingChanged",null);
_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wM.prototype,"onYtNavigate",null);_.f([_.E6("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wM.prototype,"onYtCommentboxDismiss",null);_.f([_.E6("yt-comment-poll-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],wM.prototype,"onYtCommentPollRevert",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],wM.prototype,"onYtServiceRequestSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wM.prototype,"onYtServiceRequestCompleted",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],wM.prototype,"voteCount",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],wM.prototype,"commentCount",null);_.f([_.Q("data.backstageAttachment"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],wM.prototype,"hasPoll",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],wM.prototype,"hasQuiz",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],wM.prototype,"hasUploadedVideo",null);
wM=_.f([_.C({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],wM);
_.D(wM,"ytd-backstage-post-renderer",function(){if(keA!==void 0)return keA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return keA=a},{mode:1});var SXR;var Zv=function(){var a=_.u.apply(this,arguments)||this;a.editDialog=null;a.showExpandButton=!1;a.isRichGrid=!1;a.usesFullLockup=!1;return a};
_.c(Zv,_.u);_.t=Zv.prototype;_.t.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"}}}};
_.t.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.t.computeShowExpandButton=function(a){return this.usesCompactLockup||a&&a.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.t.computeUsesCompactLockup=function(a){return!!a.condensedContent};
_.t.computeShowFullContentText=function(a){return!a};
_.t.onYtNavigate=function(a){a=this.get("updateCommentDialogEndpoint",a.detail.endpoint);this.openEditDialog(a)};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null};
_.t.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.repostEditDialogEl.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.t.onTap=function(a){if(this.data){var W=null;this.usesCompactLockup&&!_.b5(_.qj(a)||[],this.hostElement,["YT-IMG-SHADOW"])?W=this.get("navigationEndpoint",this.data):a.target===this.moreButtonEl&&(W=this.get("navigationEndpoint",a.target.data));W&&_.E$(this.hostElement,"yt-navigate",{endpoint:W})}};
Zv.prototype.onYtCommentboxDismiss=Zv.prototype.onYtCommentboxDismiss;Zv.prototype.onYtNavigate=Zv.prototype.onYtNavigate;Zv.prototype.dataChanged=Zv.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Zv.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],Zv.prototype,"editDialog",void 0);_.f([_.b({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Zv.prototype,"usesCompactLockup",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Zv.prototype,"showExpandButton",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Zv.prototype,"isRichGrid",void 0);
_.f([_.b({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Zv.prototype,"showFullContentText",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Zv.prototype,"usesFullLockup",void 0);_.f([_.w$("#more"),_.z("design:type",Object)],Zv.prototype,"moreButtonEl",void 0);_.f([_.w$("#repost-content-text"),_.z("design:type",HTMLElement)],Zv.prototype,"repostContentTextEl",void 0);
_.f([_.w$("#repost-edit-dialog"),_.z("design:type",HTMLElement)],Zv.prototype,"repostEditDialogEl",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zv.prototype,"dataChanged",null);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Zv.prototype,"onYtNavigate",null);
_.f([_.E6("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zv.prototype,"onYtCommentboxDismiss",null);Zv=_.f([_.C({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Zv);
_.D(Zv,"ytd-shared-post-renderer",function(){if(SXR!==void 0)return SXR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return SXR=a},{mode:1});var YXH;var Td_;var Nr=function(){return _.u.apply(this,arguments)||this};
_.c(Nr,_.u);Nr.prototype.attached=function(){var a=this;this.networkStatusManager||(this.networkStatusManager=new _.xm,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){a.onlineHandler()}))};
Nr.prototype.detached=function(){var a=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){a.onlineHandler()}),delete this.networkStatusManager)};
Nr.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Nr.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Nr.prototype,"data",void 0);Nr=_.f([_.C({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Nr);
_.D(Nr,"ytd-reload-page-button-renderer",function(){if(Td_!==void 0)return Td_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
return Td_=a},{mode:1});var Kc$={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"},tE=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.c(tE,_.u);_.t=tE.prototype;_.t.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.t.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.t.computeHasBodyText=function(a){return!!a.bodyText};
_.t.computeButtons=function(a){var W=[];a.ctaButton&&W.push(a.ctaButton);a.secondaryButton&&W.push(a.secondaryButton);return W};
_.t.computeRendererStyle=function(a){return a.style?a.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():a.icon?"":"no-icon"};
_.t.getIconName=function(a,W){W=W===void 0?!1:W;if(a===void 0)return"";a=this.get("icon.iconType",a);var w;_.r("enable_hlp_client_icon_pick")?w=this.getThemedIcon(a,W):w=a;(W=Kc$[w])||(W="yt-icons");return[W,w].join(":")};
_.t.getThemedIcon=function(a,W){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(a)?W?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(a)?W?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":a};
_.t.isThumbnail=function(a){return!!a.thumbnail};
_.t.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.t.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],tE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],tE.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],tE.prototype,"data",void 0);
_.f([_.b({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],tE.prototype,"rendererStyle",void 0);_.f([_.b({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.z("design:type",String)],tE.prototype,"iconName",void 0);_.f([_.b({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],tE.prototype,"thumbnail",void 0);_.f([_.b({computed:"computeButtons(data)"}),_.z("design:type",Array)],tE.prototype,"buttons",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],tE.prototype,"isDarkTheme",void 0);_.f([_.b({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],tE.prototype,"hasBodyText",void 0);tE=_.f([_.C({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],tE);
_.D(tE,"ytd-background-promo-renderer",function(){if(YXH!==void 0)return YXH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return YXH=a},{mode:1});var psT;var $v=function(){var a=_.u.apply(this,arguments)||this;a.collections=_.r("web_modern_collections_v2");return a};
_.c($v,_.u);_.dU.Object.defineProperties($v.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z,N,B;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(W=a.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(w=this.data)==null?void 0:(Z=w.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(N=this.data)==null?void 0:(B=N.thumbnail)==null?void 0:B.darkColorPalette,experimentEnabled:this.collections}}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$v.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],$v.prototype,"collections",void 0);_.f([_.Q("data","collections"),_.z("design:type",Object),_.z("design:paramtypes",[])],$v.prototype,"collectionStack",null);$v=_.f([_.C({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],$v);
_.D($v,"ytd-compact-station-renderer",function(){if(psT!==void 0)return psT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return psT=a},{mode:1});var rrl;var Bd=function(){var a=_.u.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.c(Bd,_.u);Bd.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]]"}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Bd.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Bd.prototype,"isRichGrid",void 0);Bd=_.f([_.C({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Bd);
_.D(Bd,"ytd-grid-channel-renderer",function(){if(rrl!==void 0)return rrl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return rrl=a},{mode:1});var Arh;var lQ=function(){return _.u.apply(this,arguments)||this};
_.c(lQ,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],lQ.prototype,"data",void 0);lQ=_.f([_.C({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],lQ);
_.D(lQ,"ytd-grid-movie-playlist-renderer",function(){if(Arh!==void 0)return Arh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Arh=a},{mode:1});var h$J;var ID=function(){var a=_.u.apply(this,arguments)||this;a.downloadProgress=0;a.transferState="TRANSFER_STATE_UNKNOWN";a.modernButtons=_.r("web_modern_buttons");a.useModernCollectionsV2=_.r("web_modern_collections_v2");return a};
_.c(ID,_.u);ID.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
ID.prototype.configureRendererStamper=function(){return{"data.menu":tV}};
ID.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
ID.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.r("woffle_playlist_renderer_killswitch")){var a,W=hlm(this.entityInfo,this.transferState,this.downloadProgress,(a=this.data)==null?void 0:a.playlistId,this.isOnline);a=W.viewPlaylistText;var w=W.badges;W=W.thumbnailOverlays;this.isDownloads=!!a||!!w;this.set("data.viewPlaylistText",a);w&&w.length>0&&this.set("data.badges",w);W&&W.length>0&&this.set("data.thumbnailOverlays",
W)}};
_.dU.Object.defineProperties(ID.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)}}});
ID.prototype.transferStateChanged=ID.prototype.transferStateChanged;ID.prototype.dataChanged=ID.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ID.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],ID.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],ID.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ID.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b({selector:_.siE,selectorArgs:["data.playlistId"]}),_.z("design:type",Object)],ID.prototype,"downloadProgress",void 0);_.f([_.b({selector:_.ey,selectorArgs:["data.playlistId"]}),_.z("design:type",Object)],ID.prototype,"transferState",void 0);_.f([_.b({selector:bz7,selectorArgs:["data.playlistId"]}),_.z("design:type",Object)],ID.prototype,"entityInfo",void 0);_.f([_.b({selector:FFH}),_.z("design:type",Boolean)],ID.prototype,"isOnline",void 0);
_.f([_.b(),_.z("design:type",Object)],ID.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],ID.prototype,"downloadRenderData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ID.prototype,"modernButtons",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],ID.prototype,"isDownloads",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ID.prototype,"useModernCollectionsV2",void 0);
_.f([_.Q("transferState"),_.b({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],ID.prototype,"downloadState",null);_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ID.prototype,"menuHidden",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ID.prototype,"dataChanged",null);
_.f([_.lO("transferState","downloadProgress","isOnline"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ID.prototype,"transferStateChanged",null);ID=_.f([_.C({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],ID);
_.D(ID,"ytd-grid-playlist-renderer",function(){if(h$J!==void 0)return h$J;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return h$J=a},{mode:1});var ihe;var Pd=function(){var a=_.u.apply(this,arguments)||this;a.collections=_.r("web_modern_collections_v2");return a};
_.c(Pd,_.u);Pd.prototype.configureRendererStamper=function(){return{"data.menu":tV,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.dU.Object.defineProperties(Pd.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z,N,B;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(W=a.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(w=this.data)==null?void 0:(Z=w.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(N=this.data)==null?void 0:(B=N.thumbnail)==null?void 0:B.darkColorPalette,experimentEnabled:this.collections}}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],Pd.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],Pd.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Pd.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Pd.prototype,"collections",void 0);_.f([_.Q("data","collections"),_.z("design:type",Object),_.z("design:paramtypes",[])],Pd.prototype,"collectionStack",null);Pd=_.f([_.C({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Pd);
_.D(Pd,"ytd-grid-radio-renderer",function(){if(ihe!==void 0)return ihe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ihe=a},{mode:1});var cr$;var XJ=function(){var a=_.u.apply(this,arguments)||this;a.useModernCollectionsV2=_.r("web_modern_collections_v2");return a};
_.c(XJ,_.u);XJ.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
XJ.prototype.computeNavigationEndpoint=function(a){return NqC(a==null?void 0:a.navigationEndpoint)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],XJ.prototype,"ytdLockupBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],XJ.prototype,"data",void 0);_.f([_.b({computed:"computeNavigationEndpoint(data)"}),_.z("design:type",Object)],XJ.prototype,"computedNavigationEndpoint",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],XJ.prototype,"useModernCollectionsV2",void 0);XJ=_.f([_.C({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],XJ);
_.D(XJ,"ytd-grid-show-renderer",function(){if(cr$!==void 0)return cr$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return cr$=a},{mode:1});var e$A;_.vd=function(a){this.playerClient=a};
_.nMR=function(a,W,w){w=w===void 0?{}:w;return a.playerClient.setOption("ad",W,w)};
_.vd.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.vd.prototype.executeCommand=function(a,W){this.getOptions().includes("executeCommand")?_.nMR(this,"executeCommand",{command:a,layoutId:W}):_.aa("Calling executeCommand when adModule is not loaded")};var gM=function(){return _.u.apply(this,arguments)||this};
_.c(gM,_.u);gM.prototype.getLayoutId=function(){var a=_.RT("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
gM.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var a=_.fA(),W=this.getLayoutId(),w=this.data.clickthroughEndpoint;a&&W&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(Z){(new _.vd(Z)).executeCommand(w,W)}):_.E$(this.hostElement,"yt-navigate",{endpoint:w})}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],gM.prototype,"data",void 0);gM=_.f([_.C({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],gM);
_.D(gM,"ytd-shopping-companion-item-renderer",function(){if(e$A!==void 0)return e$A;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return e$A=a},{mode:1});var jSl;var oD=function(){var a=_.u.apply(this,arguments)||this;a.isExpandableContent=!1;return a};
_.c(oD,_.u);_.dU.Object.defineProperties(oD.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,W,w;return((a=this.data)==null?void 0:a.price)||((W=this.data)==null?void 0:(w=W.dealsData)==null?void 0:w.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var a,W;if((a=this.data)!=null&&a.dealsData&&((W=this.data)==null||!W.priceReplacementText)){a=this.data.dealsData;var w,Z,N;return((w=a.salesData)==null?void 0:w.originalPrice)||((Z=a.priceDropData)==null?void 0:Z.referencePrice)||((N=a.promotionData)==null?void 0:N.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,W;return(a=this.data)==null?void 0:(W=a.dealsData)==null?void 0:W.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"}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],oD.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],oD.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],oD.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oD.prototype,"isExpandableContent",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"showCta",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"ctaText",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"hasPriceTopPosition",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"hasPriceBottomPosition",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"useNewStyle",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"showPriceReplacementText",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"priceValue",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"showDeal",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"showAffiliateDisclaimer",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"useSaleStyle",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"useFromBrandCtaStyle",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"useFromVendorCtaStyle",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oD.prototype,"useShoppingCollectionCtaStyle",null);oD=_.f([_.C({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],oD);
_.D(oD,"ytd-vertical-product-card-renderer",function(){if(jSl!==void 0)return jSl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return jSl=a},{mode:1});var Lc6;var kv=function(){return _.u.apply(this,arguments)||this};
_.c(kv,_.u);kv.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],kv.prototype,"ytdLockupBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kv.prototype,"data",void 0);kv=_.f([_.C({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],kv);
_.D(kv,"ytd-grid-movie-renderer",function(){if(Lc6!==void 0)return Lc6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Lc6=a},{mode:1});var JrR;var UP=function(){var a=_.u.apply(this,arguments)||this;a.rounded=!0;a.itemStyle="small-item";return a};
_.c(UP,_.u);UP.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var a,W,w,Z,N=(W=_.A((a=this.data)==null?void 0:a.buttonCommand,_.xTT))==null?void 0:(w=W.item)==null?void 0:(Z=w.notificationTextRenderer)==null?void 0:Z.successResponseText;N&&_.tCx(this.hostElement,N)}};
_.dU.Object.defineProperties(UP.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,W;return((a=this.data)==null?void 0:a.isProductPlaceholder)!==void 0&&((W=this.data)==null?void 0:W.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}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],UP.prototype,"rounded",void 0);_.f([_.b(),_.z("design:type",Object)],UP.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],UP.prototype,"itemStyle",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],UP.prototype,"hasPrice",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],UP.prototype,"hasPriceReplacementText",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],UP.prototype,"hasAdditionalFeesText",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],UP.prototype,"hasAffiliateDisclaimer",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],UP.prototype,"isProductPlaceholder",null);
_.f([_.b(),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],UP.prototype,"hideOpenInNewIcon",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],UP.prototype,"ariaLabel",null);UP=_.f([_.C({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],UP);
_.D(UP,"ytd-merch-shelf-item-renderer",function(){if(JrR!==void 0)return JrR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return JrR=a},{mode:1});var Fch=_.xQ(function(a){var W=_.D8();_.Cj(W,function(){return a.data().rendererContext});
return _.k("button-card-view-model",{el:W,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return a.data().title},
role:"button"},_.k(_.g2,{model:{}}),_.k("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.k("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.k(_.Y,{cond:function(){return a.data().image},
then:function(w){return _.k(_.qw,{data:w,alt:function(){var Z;return(Z=a.data().title)!=null?Z:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.k("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return a.data().title})))},"Ua");_.r("web_button_view_model_wcw_registration_killswitch")||_.Ct(Fch,"button-card-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){a=_.Qn(a,{className:void 0});var W=a.data;a=a.className;var w=_.XT(function(){return W().onTapCommand},void 0,"NprDr");
return _.k("ytd-shopping-item-card",{class:_.W$("ytdShoppingItemCardHost",a)},_.k(_.ot,{command:w,className:"ytdShoppingItemCardHostLink"},_.k("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.k(_.Ax,{data:function(){return W().thumbnailViewModel}},{thumbnailViewModel:function(Z){return _.k(_.su,{data:Z.data,
aspectRatio:3})}})),_.k("div",null,_.k("p",{class:"ytdShoppingItemCardHostItemTitle"},_.k(_.k_,{text:function(){return W().itemTitle}})),_.k("p",{class:"ytdShoppingItemCardHostPrice"},_.k(_.k_,{text:function(){return W().priceOrStatus}})))))},"Va"),"ytd-shopping-item-card",{props:{data:_.qR,
className:_.qR}});var M$l={isAdsVideo:!0},R$e={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},qXJ={showPlayerControls:!1,videoPreviewDurationMs:15E3},o0m={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.r("web_shorts_imp_fullwidth_killswitch")};var wX=null,$bv={};var Iz8="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(" "),OP={},PXS=(OP.FEwhat_to_watch="home",OP.FEhashtag="hashtag",OP.FEtrending="trending",OP.FEhistory="history",OP.SPunlimited="premium",OP.FEmemberships_and_purchases="paid_memberships",OP.SPredeem_code="redeem",OP.SPverify_location="locate",OP.SPminor_moment="minor_moment",
OP.FEmini_app_container="mini_app",OP.FEnews_destination="news",OP.SPopen_in_app="open_in_app",OP.FEexplore="explore",OP.FEsubscriptions="subscriptions",OP.FEsfv_audio_pivot="sfv_audio_pivot",OP.FEplaylist_aggregation="playlist_aggregation",OP);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");_.tk("init");var QSA=function(){},uPT=_.xQ(function(a){var W=a.data;
var w=a.inlineMetadata;var Z=a.aspectRatio;var N=a.scrimStyle;var B=a.className;var I=a.useDefaultStyle;var X=new QSA,v=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",U=_.XT(function(){return(I==null?0:I())?v==="SHORTS_LOCKUP_STYLE_SLIM":W().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),O=_.XT(function(){return _.ik(w)||U()||!1},void 0,"pcPnBf"),S=function(){return(N==null?void 0:N())!==void 0?N==null?void 0:N():1};
a=_.D8(function(V){X&&(X.hostElement=V,L())});
_.yz(a,{visibilityCallback:function(V){var d=W().onFirstVisible;V&&d&&_.cX(d)},
showOption:{calledOnce:!0,state:"visible"}});B=_.W$("shortsLockupViewModelHost",B);var T=_.D8(),p={};p=_.W$(function(){return U(),"shortsLockupViewModelHostThumbnailContainer"},(p.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.ik(Z)===1},p.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.ik(Z)===2},p.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!U()},p.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.r("web_shorts_2_by_3_lockups_study")&&!_.r("desktop_search_enable_two_by_three_shorts_aspect_ratio")},p));
var h,L=function(){if(X){var V;(V=h)==null||ty(V);var d;X.hostElement&&((d=X.data)==null?0:d.inlinePlayerData)&&(h=dP({mediaRenderer:X,lockupElement:X.hostElement,thumbnailElement:T.value,videoPreviewOpts:o0m}))}};
_.Ka(function(){X&&(X.data=W(),L())});
var F=_.XT(function(){return W().thumbnail},void 0,"FXJKOd"),x=_.XT(function(){return W().badge},void 0,"RHSDwe"),G=_.XT(function(){return W().onTap},void 0,"twXQme");
return _.k("ytm-shorts-lockup-view-model",{el:a,class:B},_.k(_.Ha,null,_.k(_.ot,{command:G,className:_.W$("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!O()},
tabIndex:function(){return O()?0:-1}},_.k("div",{el:T,
class:p},_.k(_.Y,{cond:F,then:function(){return _.k(_.qw,{data:function(){return F()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.k(_.Y,{cond:O,
then:function(){return _.k(xpR,{data:W,scrimStyle:S,useDefaultStyle:I})}}),_.k(_.Ax,{data:x},{badgeViewModel:function(V){return _.k(_.DU,{data:V.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.k(_.Y,{cond:function(){return O()&&W().menuOnTap},
then:function(){return _.k(bhE,{data:W,inlineMetadata:!0})}}),_.k(_.Y,{cond:function(){return!O()},
then:function(){return _.k(sSR,{data:W,useDefaultStyle:I})}})))},"Wa"),xpR=_.xQ(function(a){var W=a.data;
var w=a.scrimStyle;var Z=a.useDefaultStyle;var N=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",B=Z&&_.r("web_hide_primary_text_for_pivot_panel"),I=_.XT(function(){return(Z==null?0:Z())?N==="SHORTS_LOCKUP_STYLE_SLIM":W().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
a={};a=_.W$("shortsLockupViewModelHostInlineMetadata",(a.shortsLockupViewModelHostMetadataRounded=function(){return!I()},a.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(w==null?void 0:w())===3&&!_.r("enable_shorts_lockup_new_scrim")},a.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(w==null?void 0:w())===3&&_.r("enable_shorts_lockup_new_scrim")},a.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(w==null?void 0:w())===2||(w==null?void 0:
w())===4},a.shortsLockupViewModelHostShowOverPlayer=function(){return!0},a),"image-overlay-text");
var X={};return _.k("div",{class:a},_.k("h3",{class:_.W$("shortsLockupViewModelHostMetadataTitle",(X.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(w==null?void 0:w())===4},X)),
"aria-label":function(){return W().accessibilityText}},_.k(_.Y,{cond:function(){var v;
return!((v=W().overlayMetadata)==null||!v.primaryText)&&!B},
then:function(){return _.k(_.k_,{text:function(){var v;return(v=W().overlayMetadata)==null?void 0:v.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.k(_.Y,{cond:function(){var v;
return(v=W().overlayMetadata)==null?void 0:v.secondaryText},
then:function(){return _.k(CRL,{data:W,scrimStyle:w,className:void 0})}}))},"Xa"),sSR=_.xQ(function(a){var W=a.data;
var w=a.useDefaultStyle;var Z=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",N=_.XT(function(){return(w==null?0:w())?Z==="SHORTS_LOCKUP_STYLE_SLIM":W().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
a=_.W$(function(){return N()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var B,I=_.$_(function(){var v;(v=B)==null||v.click();return!1}),X={};
return _.k("div",{class:a,"on:click":I},_.k("h3",{class:_.W$("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(X.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var v,U;return!((v=W().overlayMetadata)==null?0:(U=v.primaryText)==null?0:U.content)},X)),
"aria-label":function(){return W().accessibilityText}},_.k(_.ot,{ref:function(v){return void(B=v)},
command:function(){return W().onTap},
className:_.W$("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var v,U;return(v=W().overlayMetadata)==null?void 0:(U=v.primaryText)==null?void 0:U.content}},_.k(_.Y,{cond:function(){return!!W().overlayMetadata},
then:function(){return _.k(_.k_,{text:function(){var v;return(v=W().overlayMetadata)==null?void 0:v.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.k(_.Y,{cond:function(){var v;
return(v=W().overlayMetadata)==null?void 0:v.secondaryText},
then:function(){return _.k(CRL,{data:W,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.k(_.Y,{cond:function(){return W().menuOnTap},
then:function(){return _.k(bhE,{data:W,inlineMetadata:!1})}}))},"Ya"),CRL=_.xQ(function(a){var W=a.data;
var w=a.scrimStyle;a=a.className;var Z={};return _.k("div",{class:_.W$((Z.shortsLockupViewModelHostMetadataSubhead=function(){return(w==null?void 0:w())!==4},Z.shortsLockupViewModelHostMetadataSubheadNew=_.r("enable_shorts_lockup_new_scrim"),Z.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(w==null?void 0:w())===4},Z),a),
"aria-hidden":"true"},_.k(_.k_,{text:function(){var N;return(N=W().overlayMetadata)==null?void 0:N.secondaryText},
noStyleRuns:!0}))},"Za"),bhE=_.xQ(function(a){var W=a.data;
var w=a.inlineMetadata;a={};a=_.W$((a.shortsLockupViewModelHostInlineMetadataMenu=function(){return w()},a.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!w()},a.shortsLockupViewModelHostShowOverPlayer=function(){return!0},a),"image-overlay-text");
return _.k("div",{class:a},_.k(EB,{data:function(){return{style:w()?"overlay":"mono",accessibilityLabel:W().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(Z){Z.preventDefault();Z.stopPropagation();var N=_.hQ({elementsCommand:W().menuOnTap,forceNewState:!0});if(N==null?0:N.onclick)N.onclick(Z)}}},
iconName:"MORE_VERT"}))},"$a");var UbU=_.T9({badgeViewModel:INU}),g0x=function(){},GeR=_.NX(YCS),Dph=_.xQ(function(a){var W=a.data;
var w=a.inlineMetadata;var Z=a.aspectRatio;var N=a.scrimStyle;var B=a.className;var I=a.useDefaultStyle;a=_.XT(function(){var v=W().entityId;return v?v.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var X=_.r("web_shorts_lockup_view_model_sink")?uPT:GeR;return _.k("ytm-shorts-lockup-view-model-v2",{class:_.W$("shortsLockupViewModelHost",B)},_.k(_.WcT,{contentId:a,aspectRatio:function(){return(Z==null?void 0:Z())===1?1:(Z==null?void 0:Z())===2?2:4}},function(){return _.k(X,{data:W,
inlineMetadata:w,aspectRatio:Z,scrimStyle:N,className:B,useDefaultStyle:I})}))},"ab");
_.En(YCS);_.En(koE);_.En(SC9);_.En(Tcm);_.En(O57);_.Ct(Dph,"ytm-shorts-lockup-view-model-v2",{props:{data:_.ux,inlineMetadata:_.ux,aspectRatio:_.ux,scrimStyle:_.ux,className:_.ux,useDefaultStyle:_.ux}});var fkR=16/9*210,S8=function(){var a=_.u.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};
_.c(S8,_.u);_.t=S8.prototype;
_.t.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]]"}}}}};
_.t.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.r("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.t.computeInitialCountNumber=function(a){if(!a)return 6;var W=a.items.some(function(B){return!!B.topicRecommendationsChipRenderer}),w=a.items.some(function(B){return!!B.displayAdRenderer}),Z=this.computeShouldListItemsHaveEqualHeight(a),N=a.items.some(function(B){return!!B.gridPlaylistRenderer});
a=a.items.some(function(B){return!!B.shoppingItemCardViewModel});
return W?9:w?8:N||Z?10:a?7:6};
_.t.computeContainsPost=function(a){return!!a&&!!a.items&&a.items.some(function(W){return!!W.postRenderer})};
_.t.computeContainsLockup=function(){if(_.r("web_horizontal_list_lockup_arrow_killswitch"))return!1;var a,W;return(a=this.data)==null?void 0:(W=a.items)==null?void 0:W.some(function(w){return!!w.lockupViewModel})};
_.t.maybeUpdateLockupAspectRatio=function(){var a,W;if(this.computeContainsLockup()&&((a=this.data)==null?0:(W=a.items)==null?0:W.length)){var w;a=PR8((w=this.data.items[0].lockupViewModel)==null?void 0:w.contentType,this.data.force16By9ThumbnailAspectRatio);w=H$x(a);w=this.computeLockupWidth()/w;_.Hu(this.hostElement,{"--yt-horizontal-list-content-height":w+"px"})}};
_.t.computeOverrideArrowPositionForProductCard=function(a){if(this.isExpandableContent)return!1;var W;return!!(a==null?0:(W=a.items)==null?0:W.some(function(w){return!!w.verticalProductCardRenderer}))};
_.t.computeOverrideArrowPositionForShoppingItemCard=function(a){var W;return!!(a==null?0:(W=a.items)==null?0:W.some(function(w){return!!w.shoppingItemCardViewModel}))};
_.t.computeOverrideArrowPositionForReelItemRenderer=function(a){return this.containsReelItemRenderer(a)};
_.t.computeHasBigThumbsReelItems=function(a,W){return a&&this.containsReelItemRenderer(W)};
_.t.computeShouldListItemsHaveEqualHeight=function(a){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(a==null?void 0:a.itemSizeConstraint)};
_.t.computeShouldListItemsHaveShortsHeight=function(a){return this.computeShouldListItemsHaveEqualHeight(a)&&!this.containsGridVideoRenderer(a)};
_.t.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.t.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.t.containsReelItemRenderer=function(a){var W;return!!(a==null?0:(W=a.items)==null?0:W.some(function(w){return!(!w.reelItemRenderer&&!w.shortsLockupViewModel)}))};
_.t.containsGridVideoRenderer=function(a){var W;return!!(a==null?0:(W=a.items)==null?0:W.some(function(w){return!!w.gridVideoRenderer||!!w.lockupViewModel}))};
_.t.computeContainsGridMovieRenderer=function(a){var W;return!!(a==null?0:(W=a.items)==null?0:W.some(function(w){return!!w.gridMovieRenderer}))};
_.t.computeOverrideArrowPositionToCenter=function(a){return this.computeIsSearchPostShelf(a)};
_.t.computeIsSearchPostShelf=function(a){var W;return!!(a==null?0:(W=a.items)==null?0:W.some(function(w){var Z,N;return((N=(Z=w.postRenderer)==null?void 0:Z.surface)!=null?N:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.t.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(a){var W;return!!(a==null?0:(W=a.items)==null?0:W.some(function(w){var Z,N,B;return((B=(Z=w.backgroundPromoRenderer)==null?void 0:(N=Z.style)==null?void 0:N.value)!=null?B:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.t.computeIsSearchVodShelf=function(a,W){return a&&this.containsGridVideoRenderer(W)};
_.t.computeDisableWheelScroll=function(a,W){return this.computeIsSearchVodShelf(a,W)};
_.t.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.t.computeShortsLockupAspectRatio=function(a){return a&&_.r("web_shorts_2_by_3_lockups_no_search")&&!_.r("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.t.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Hu(this.hostElement,{"--ytd-reel-item-thumbnail-height":fkR+"px"})};
S8.prototype.dataChanged=S8.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],S8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.zd.YtdHorizontalListBehavior),_.z("design:type",Object)],S8.prototype,"ytdHorizontalListBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],S8.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],S8.prototype,"isExpandableContent",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"hideShelfHeader",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"engagementPanel",void 0);_.f([_.b(),_.z("design:type",Array)],S8.prototype,"buttonClasses",void 0);_.f([_.b(),_.z("design:type",Object)],S8.prototype,"isSearch",void 0);
_.f([_.b(),_.z("design:type",Object)],S8.prototype,"disableScrollEventListener",void 0);_.f([_.b({computed:"computeInitialCountNumber(data)"}),_.z("design:type",Number)],S8.prototype,"initialCount",void 0);_.f([_.b({computed:"computeContainsPost(data)"}),_.z("design:type",Boolean)],S8.prototype,"supportComponentResize",void 0);_.f([_.b({computed:"computeContainsPost(data)"}),_.z("design:type",Boolean)],S8.prototype,"containsPost",void 0);
_.f([_.b({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"containsLockup",void 0);_.f([_.b({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],S8.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.f([_.b({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"overrideArrowPositionForProductCard",void 0);_.f([_.b({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.f([_.b({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"overrideArrowPositionForReelItems",void 0);_.f([_.b({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"overrideArrowPositionForGridMovie",void 0);
_.f([_.b({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"overrideArrowPositionToCenter",void 0);_.f([_.b({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"isSearchPostShelf",void 0);_.f([_.b({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.f([_.b({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.f([_.b({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"hasBigThumbsReelItems",void 0);
_.f([_.b({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"shouldUseMixedListHeight",void 0);_.f([_.b({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"shouldUseShortsListHeight",void 0);_.f([_.b({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"gridVideoWidth",void 0);
_.f([_.b({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"isSearchVodShelf",void 0);_.f([_.b({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.z("design:type",Object)],S8.prototype,"disableWheelScroll",void 0);_.f([_.b({computed:"computeSizing(isSearch)"}),_.z("design:type",Object)],S8.prototype,"sizing",void 0);
_.f([_.b({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.z("design:type",Object)],S8.prototype,"shortsLockupAspectRatio",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S8.prototype,"dataChanged",null);
_.D(S8,"yt-horizontal-list-renderer",function(){if(qZ6===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);qZ6=a}a=qZ6;return a},{mode:1});var dp_;var mp_=[10,12,14,16,18,20,24,28,32,36],V$_=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Yv=function(){var a=_.u.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};
_.c(Yv,_.u);_.t=Yv.prototype;
_.t.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();_.DW(this,function(){a.resize()});
if(!_.lB){var W,w,Z;(W=document)==null||(w=W.fonts)==null||(Z=w.ready)==null||Z.then(function(){a.resize()})}};
_.t.dataChanged=function(){this.resize()};
_.t.guideIsExpandedChanged=function(){this.resize()};
_.t.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(),W=this.getMinFont(),w=this.getMaxFont(),Z=this.useRoboto?mp_:V$_;for(Z=Z.filter(function(B){return B<=w&&B>=W});Z.length>1;){var N=Math.floor(Z.length/2);
this.updateFontSize(Z[N]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=a)Z=Z.slice(N,Z.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>a)Z=Z.slice(0,N);else break}this.updateFontSize(Z[Z.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(a)}};
_.t.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()))};
_.t.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)};
_.t.getMaxFont=function(){var a=this.useRoboto?mp_:V$_;a=a[a.length-1];return this.maxFontSize&&this.maxFontSize<=a?this.maxFontSize:a};
_.t.getMinFont=function(){var a=(this.useRoboto?mp_:V$_)[0];return this.minFontSize&&this.minFontSize>=a?this.minFontSize:a};
_.t.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.t.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.t.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.sd(this.text).split("\n").length-1:Infinity};
_.t.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()}};
Yv.prototype.guideIsExpandedChanged=Yv.prototype.guideIsExpandedChanged;Yv.prototype.dataChanged=Yv.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Yv.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Yv.prototype,"actionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Yv.prototype,"text",void 0);
_.f([_.b(),_.z("design:type",String)],Yv.prototype,"fontFamily",void 0);_.f([_.b(),_.z("design:type",Number)],Yv.prototype,"maxWidth",void 0);_.f([_.b(),_.z("design:type",Number)],Yv.prototype,"maxHeight",void 0);_.f([_.b(),_.z("design:type",Number)],Yv.prototype,"maxFontSize",void 0);_.f([_.b(),_.z("design:type",Number)],Yv.prototype,"minFontSize",void 0);_.f([_.b(),_.z("design:type",Number)],Yv.prototype,"maxLines",void 0);_.f([_.b(),_.z("design:type",Object)],Yv.prototype,"hideOverflow",void 0);
_.f([_.b({selector:_.c49}),_.z("design:type",Boolean)],Yv.prototype,"guideIsExpanded",void 0);_.f([_.w$("#container"),_.z("design:type",HTMLElement)],Yv.prototype,"containerNode",void 0);_.f([_.w$("#text"),_.z("design:type",HTMLElement)],Yv.prototype,"textNode",void 0);_.f([_.lO("text"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yv.prototype,"dataChanged",null);
_.f([_.lO("guideIsExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yv.prototype,"guideIsExpandedChanged",null);Yv=_.f([_.C({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Yv);
_.D(Yv,"yt-dynamic-sizing-formatted-string",function(){if(dp_!==void 0)return dp_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return dp_=a},{mode:1});var z$J;_.HhR=function(a){_.Wv.call(this,a)};
_.c(_.HhR,_.Wv);var yr$=function(a){_.Wv.call(this,a)};
_.c(yr$,_.HhR);var Tx=function(){return _.u.apply(this,arguments)||this};
_.c(Tx,_.u);Tx.prototype.onTapSuspendedChannel=function(){var a;if((a=this.data)!=null&&a.serviceEndpoint){var W,w;(a=(w=_.A((W=this.data)==null?void 0:W.serviceEndpoint,_.ba))==null?void 0:w.url)?_.ih(a,void 0,void 0,window.top):(W=new yr$("Did not handle suspended account tap. No appealUrl."),_.eJ(W))}else W=new yr$("Did not handle suspended account tap. No serviceEndpoint."),_.eJ(W)};
Tx.prototype.onTap=function(){var a=this,W=_.$J(),w,Z=(w=_.tQ(W,{veType:7116}))!=null?w:void 0;_.LA(W,{visualElement:Z});_.A7();this.saveRoleText();var N;if((N=this.data)==null?0:N.youtubeSuspended)this.onTapSuspendedChannel();else{var B=!1,I,X;(W=(X=_.A((I=this.data)==null?void 0:I.serviceEndpoint,_.EcH))==null?void 0:X.supportedTokens)&&W.forEach(function(v){if(v.accountSigninToken)if(B=!0,a.onAccountItemTap)a.onAccountItemTap(v.accountSigninToken.signinUrl);else _.ih(v.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!B){if(I=this.get("serviceEndpoint",this.data))B=!0,this.ytComponentBehavior.resolveCommand(I);B||_.nH(new yr$("Did not handle account switch tap. No token."))}}};
Tx.prototype.saveRoleText=function(){if(this.data){var a=this.data,W=a.channelDelegationRole;if(W){var w,Z=(w=_.A(a==null?void 0:a.serviceEndpoint,_.EcH))==null?void 0:w.supportedTokens;if(!Z){var N,B,I,X;Z=(N=_.A(a==null?void 0:a.serviceEndpoint,_.A4))==null?void 0:(B=N.popup)==null?void 0:(I=B.confirmDialogRenderer)==null?void 0:(X=I.confirmButton)==null?void 0:X.buttonRenderer;var v;Z=(v=_.A(Z==null?void 0:Z.command,_.$7))==null?void 0:v.commands;if(!Z)return;var U;Z=(U=_.A(Z[1],_.EcH))==null?
void 0:U.supportedTokens}if(Z){v=void 0;U=_.l(Z);for(Z=U.next();!Z.done;Z=U.next())if(Z=Z.value,Z.datasyncIdToken){v=Z.datasyncIdToken.datasyncIdToken;break}if(v){var O;a:{if(_.Pj9()&&(U=_.rsS(v+"::pom"))){U=new Ic(U);break a}U=void 0}(O=U)==null||O.set("role_text",W);if((reU?reU:window.location).href.indexOf("studio")!==-1&&(O=Xpx())){U=O.src?(new URL(O.src)).origin:"*";var S;(S=O.contentWindow)==null||S.postMessage({action:"save_pom_role",datasyncId:v,roleText:W},U)}}}}}};
_.dU.Object.defineProperties(Tx.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,W,w=(a=this.data)==null?void 0:(W=a.accountPhoto)==null?void 0:W.thumbnails;return w&&w.length>0&&(w[0].height===36||w[0].height===48)?w[0].height:40}}});
Tx.prototype.onTap=Tx.prototype.onTap;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Tx.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Tx.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!1}),_.z("design:type",Function)],Tx.prototype,"onAccountItemTap",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Tx.prototype,"enableRingForActiveAccount",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],Tx.prototype,"thumbnailSize",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Tx.prototype,"onTap",null);Tx=_.f([_.C({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Tx);
_.D(Tx,"ytd-account-item-renderer",function(){if(z$J!==void 0)return z$J;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return z$J=a},{mode:1});var EMH;var Kf=function(){return _.u.apply(this,arguments)||this};
_.c(Kf,_.u);Kf.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.K().resolve(_.zU).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Kf.prototype,"data",void 0);Kf=_.f([_.C({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Kf);
_.D(Kf,"ytd-identity-chip-renderer",function(){if(EMH!==void 0)return EMH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return EMH=a},{mode:1});var aze;var WtT;var wW_;var Z5e;var pf=function(){var a=_.u.apply(this,arguments)||this;a.richItemMinWidth=_.yv("wn_grid_min_item_width",310);a.isShorts=!1;a.isWatchNext=!1;a.isExploreHub=!1;return a};
_.c(pf,_.u);_.dU.Object.defineProperties(pf.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var a=[],W=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Hu(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var w;if(((w=this.data)==null?0:w.rows)&&W)for(W*=this.data.rows,w=0;w<W;w++)a.push({});return a}}});
_.f([_.R(_.ij),_.z("design:type",Object)],pf.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],pf.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.AG,value:3}),_.z("design:type",Number)],pf.prototype,"itemsPerRow",void 0);_.f([_.b({selector:_.izU,value:6}),_.z("design:type",Number)],pf.prototype,"slimItemsPerRow",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Number)],pf.prototype,"richItemMinWidth",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],pf.prototype,"miniMode",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pf.prototype,"isShorts",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pf.prototype,"isWatchNext",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pf.prototype,"isExploreHub",void 0);
_.f([_.Q("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.z("design:type",Array),_.z("design:paramtypes",[])],pf.prototype,"cardItems",null);pf=_.f([_.C({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],pf);
_.NcH=_.mV()(pf,"ytd-ghost-grid-renderer",function(){if(Z5e===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);Z5e=a}a=Z5e;return a},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Ct(_.xQ(function(a){var W=_.Qn(a,{numberOfComments:3}).numberOfComments,w=_.Qn(a,{isInitialLoad:!1}).isInitialLoad,Z=_.Qn(a,{engagementPanel:!1}).engagementPanel,N=function(){return Math.min(Number(W==null?void 0:W())||20,20)};
return _.k("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.k(_.Y,{cond:function(){return!(Z==null?0:Z())&&(w==null?void 0:w())},
then:function(){return _.k("div",{class:"ytGhostCommentsComments"},_.k("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.k("div",{class:_.W$("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.k("div",{class:_.W$("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.k("div",{class:"ytGhostCommentsGhostCard"},_.k("div",{class:"ytGhostCommentsAvatar"},_.k("div",{class:"ytGhostCommentsCircle"})),_.k("div",{class:"ytGhostCommentsComments"},_.k("div",{class:"ytGhostCommentsMeta"},
_.k("div",{class:_.W$("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.k("div",{class:_.W$("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.k("div",{class:"ytGhostCommentsComments"},_.k(_.k6,{each:function(){return Array((N==null?void 0:N())||3)}},function(){return _.k("div",{class:"ytGhostCommentsGhostCard"},_.k("div",{class:"ytGhostCommentsAvatar"},_.k("div",{class:"ytGhostCommentsCircle"})),_.k("div",{class:"ytGhostCommentsHost"},_.k("div",{class:"ytGhostCommentsMeta"},
_.k("div",{class:_.W$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.k("div",{class:_.W$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.k("div",{class:_.W$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.k("div",{class:"ytGhostCommentsGhostLikeDislike"},_.k("div",{class:_.W$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.k("div",{class:_.W$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"bb"),"yt-ghost-comments",{props:{numberOfComments:_.qR,
isInitialLoad:_.qR,engagementPanel:_.qR}});_.pA("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var rM=function(){var a=_.u.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=_.r("show_ghost_comments_shorts_watch")||_.r("show_ghost_comments_desktop_watch");a.originalShowButton=!1;a.endOfList=!1;return a};
_.c(rM,_.u);_.t=rM.prototype;_.t.resetIntersectionObserver=function(){var a;(a=this.observer)==null||a.disconnect();this.observer=void 0};
_.t.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var a,W;((a=this.data)==null?void 0:a.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((W=this.data)==null?0:W.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.t.initializeIntersectionObserver=function(){var a=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(W){W=_.l(W);for(var w=W.next();!w.done;w=W.next())w.value.isIntersecting&&(a.triggerContinuation(),a.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.t.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]]"}}}}}};
_.t.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var a;((a=this.data)==null?0:a.continuationEndpoint)&&(a=_.A(this.data.continuationEndpoint,_.i5))&&this.ytdReduxBehavior.dispatch(_.E_({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:a}}))};
_.t.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.t.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.t.onServiceRequestCompleted=function(a,W){if(!_.r("kevlar_hide_spinner_on_empty_continuation_killswitch")){var w;(w=W.actions)!=null&&w.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.t.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.t.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.t.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.t.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var a=3;if(this.engagementPanel){var W,w,Z;a=Math.floor(((((W=this.hostElement)==null?void 0:(w=W.parentElement)==null?void 0:(Z=w.parentElement)==null?void 0:Z.scrollHeight)||108)-108)/108);a=this.isInitialLoad?Math.max(a,3):3}W=[].concat(_.K8(this.hostElement.querySelectorAll("yt-ghost-comments")));W=_.l(W);for(w=W.next();!w.done;w=W.next())w=w.value,w.numberOfComments=a,w.isInitialLoad=this.isInitialLoad,w.engagementPanel=
this.engagementPanel}};
_.t.detached=function(){this.resetIntersectionObserver()};
_.dU.Object.defineProperties(rM.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.r("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.r("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
rM.prototype.numberOfGhostCommentsChanged=rM.prototype.numberOfGhostCommentsChanged;rM.prototype.continuationTriggerOffsetChanged=rM.prototype.continuationTriggerOffsetChanged;rM.prototype.showButtonChanged=rM.prototype.showButtonChanged;rM.prototype.onYtServiceRequestCompletedForButtonRenderer=rM.prototype.onYtServiceRequestCompletedForButtonRenderer;rM.prototype.onServiceRequestCompleted=rM.prototype.onServiceRequestCompleted;rM.prototype.onYtServiceRequestSentForButtonRenderer=rM.prototype.onYtServiceRequestSentForButtonRenderer;
rM.prototype.observeData=rM.prototype.observeData;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.LN.YtVisibilityBehavior),_.z("design:type",Object)],rM.prototype,"ytVisibilityBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],rM.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.ij),_.z("design:type",Object)],rM.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],rM.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],rM.prototype,"isOverridable",void 0);_.f([_.b(),_.z("design:type",Object)],rM.prototype,"spinnerActive",void 0);_.f([_.b(),_.z("design:type",Object)],rM.prototype,"showButton",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rM.prototype,"isCommentsSection",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rM.prototype,"engagementPanel",void 0);_.f([_.b(),_.z("design:type",Object)],rM.prototype,"isShortsGrid",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.ncF}),_.z("design:type",Object)],rM.prototype,"isShortsPage",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.i8}),_.z("design:type",Object)],rM.prototype,"isWatchPage",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rM.prototype,"ghostCardExperimentEnabled",void 0);
_.f([_.b(),_.z("design:type",Number)],rM.prototype,"continuationTriggerOffset",void 0);_.f([_.b(),_.z("design:type",Object)],rM.prototype,"endOfList",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],rM.prototype,"isInitialLoad",void 0);_.f([_.w$("ytd-button-renderer"),_.z("design:type",_.sq)],rM.prototype,"buttonRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],rM.prototype,"buttonOverrides",void 0);
_.f([_.b(),_.Q("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.z("design:type",Object),_.z("design:paramtypes",[])],rM.prototype,"isShortsCommentsSection",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rM.prototype,"observeData",null);
_.f([_.E6("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rM.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],rM.prototype,"onServiceRequestCompleted",null);
_.f([_.E6("yt-service-request-completed-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rM.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.f([_.lO("showButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rM.prototype,"showButtonChanged",null);
_.f([_.lO("continuationTriggerOffset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rM.prototype,"continuationTriggerOffsetChanged",null);_.f([_.a5("isInitialLoad","engagementPanel"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rM.prototype,"numberOfGhostCommentsChanged",null);rM=_.f([_.C({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],rM);
_.D(rM,"ytd-continuation-item-renderer",function(){if(wW_!==void 0)return wW_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return wW_=a},{mode:1});var tC$;var hE=function(){var a=_.u.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};
_.c(hE,_.u);hE.prototype.dataChanged=function(){var a;this.videoData=_.A((a=this.data)==null?void 0:a.renderer,euR);this.transferStateChanged()};
hE.prototype.downloadProgressChanged=function(){if(this.entityInfo){var a=Object.assign({},this.videoData),W=iBU(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),w=W.publishedTimeText,Z=W.badges;a.shortViewCountText=W.shortViewCountText;a.publishedTimeText=w;a.badges=Z;this.set("videoData",a)}};
hE.prototype.transferStateChanged=function(){if(this.entityInfo){var a=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",W=_.os(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!gK(this.entityInfo.policyEntity),w=Object.assign({},this.videoData),Z=iBU(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),N=Z.publishedTimeText,B=Z.badges;w.shortViewCountText=
Z.shortViewCountText;w.publishedTimeText=N;w.badges=B;w.isDisabled=W;w.isWatched=this.downloadedVideoPlaybackPosition>0;w.navigationEndpoint=W?void 0:wnI(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var I;a&&((I=this.videoData)==null?0:I.videoId)&&!_.r("dl_resume_click_killswitch")&&(w.isDisabled=!1,w.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});w.thumbnailOverlays=Acv(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",w)}};
hE.prototype.transferStateChanged=hE.prototype.transferStateChanged;hE.prototype.downloadProgressChanged=hE.prototype.downloadProgressChanged;hE.prototype.dataChanged=hE.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],hE.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],hE.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],hE.prototype,"videoData",void 0);_.f([_.b({selector:nx,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],hE.prototype,"downloadProgress",void 0);_.f([_.b(),_.z("design:type",Number)],hE.prototype,"relativeDateReference",void 0);_.f([_.b({selector:_.cJ,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],hE.prototype,"transferState",void 0);
_.f([_.b({selector:z_7,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],hE.prototype,"downloadState",void 0);_.f([_.b({selector:R_e,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],hE.prototype,"offlinePolicyAction",void 0);_.f([_.b({selector:qjx,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],hE.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.f([_.b({selector:jy,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],hE.prototype,"downloadedVideoPlaybackPosition",void 0);_.f([_.b({selector:xam,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],hE.prototype,"entityInfo",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],hE.prototype,"isDownloading",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hE.prototype,"dataChanged",null);
_.f([_.lO("downloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hE.prototype,"downloadProgressChanged",null);_.f([_.lO("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hE.prototype,"transferStateChanged",null);
hE=_.f([_.C({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],hE);
_.D(hE,"ytd-downloaded-video-grid-video-renderer",function(){if(tC$!==void 0)return tC$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return tC$=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var $bl;var iQ=function(){};
iQ.prototype.resolve=function(a,W){var w=this;return _.P(function(Z){return _.g(Z,w.resolveCommand(a,W),0)})};var BcE,cd;BcE=c$7(function(a){return a.targetId},{shouldPersist:!1});
cd=BcE.updateData;_.lzh=BcE.useUpdatableData;var Izh,PXR;Izh=c$7(function(a){return a.targetId});
PXR=Izh.updateData;_.XW_=Izh.useUpdatableData;var v0E=Kte.bind(null,cd),g0$=Kte.bind(null,PXR);(function(a,W,w){var Z=_.A(w==null?void 0:w.updatedRenderer,_.Nl$);return Z?a({targetId:W},function(){return Z}):!1}).bind(null,cd);var e8=function(){};
_.c(e8,iQ);e8.prototype.resolveCommand=function(a){var W;return _.P(function(w){W=_.A(a,_.u99);if(!W)return w.return();v0E(W.targetId,W);_.Xd(w)})};var nf=function(){var a=_.Nt.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};
_.c(nf,_.Nt);_.t=nf.prototype;_.t.configureContinuationPathMap=function(){return{}};
_.t.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.t.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.t.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.t.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.t.handleAppendContinuationItemsAction=function(a){var W=_.A(a,_.qMH);if(this.data&&this.data.targetId&&W&&this.continuationPathMap&&W.targetId===this.data.targetId){var w=Dw9(a);if((a=w&&this.continuationPathMap[w])&&w){w=this.get(a,this.data);var Z;a:{for(Z=0;Z<w.length;Z++){var N=w[Z],B=void 0,I=!!_.A((B=_.A(N,YlR))==null?void 0:B.content,_.AMA);if(_.A(N,_.BN)||I)break a}Z=w.length}a="data."+a;W.continuationItems?Z===w.length-1?(this.pop(a),this.push.apply(this,[a].concat(_.K8(W.continuationItems)))):
Z===w.length?this.push.apply(this,[a].concat(_.K8(W.continuationItems))):this.splice.apply(this,[a,Z,1].concat(_.K8(W.continuationItems))):this.splice(a,Z,1);(_.r("web_enable_voting_animation")||_.r("enable_music_web_cairo_voting_animation"))&&_.E$(this.hostElement,"yt-append-continuation-items-action-finished");_.E$(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.jJ(new _.Uw("append continuation path does not exist",w))}};
_.t.handleReloadContinuationItemsCommand=function(a){var W=_.A(a,_.u99);if(this.data&&W){if(_.r("web_explore_hub")||_.r("web_client_explore_hub")||_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover"))try{_.K().resolve(e8).resolveCommand(a)}catch(B){}if(this.data.targetId&&this.continuationPathMap&&W.targetId===this.data.targetId&&(!_.r("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||W.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var w,Z=(w=
W.slot)==null?void 0:w.replace("RELOAD_CONTINUATION_SLOT_","");w=(a=Dw9(a)+"-"+(Z==null?void 0:Z.toLowerCase()))&&this.continuationPathMap[a];if(!w||!a||!Z)_.jJ(new _.Uw("reload continuation path does not exist",a));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(W)){if(W.replaceWithFirstItem){var N;this.set("data."+w,((N=W.continuationItems)==null?0:N.length)?W.continuationItems[0]:{})}else this.set("data."+w,W.continuationItems?W.continuationItems:
[]);this.continuationIsReloading=!1;_.E$(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.t.handleShowReloadUiCommand=function(a){a=_.A(a,HIJ);var W;((W=this.data)==null?0:W.targetId)&&(a==null?0:a.targetId)&&a.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
nf.prototype.observeData=nf.prototype.observeData;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],nf.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],nf.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],nf.prototype,"data",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],nf.prototype,"continuationIsReloading",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nf.prototype,"observeData",null);nf=_.f([_.BA()],nf);_.j8=[_.e7.YtComponentBehavior,_.d4.YtActionHandlerBehavior,nf.prototype];_.Lf={};_.Lf.YtNextContinuationBehavior=[_.ui.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",_.yV(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.yV(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(a,W){a.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,W,{}):(a={locationRetrieved:function(w){this.makeNextContinuationRequest_(w,W,{})}.bind(this)},_.E$(this.hostElement,"yt-retrieve-location",a))},
makeNextContinuationRequest_:function(a,W,w){_.hk("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();a=W(a);var Z;this.canUseContextualNetworkManager_()&&(Z=this.getNetworkManager());Z||(Z=_.K().resolve(_.U6));W=_.Ju.instance;if(_.LF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&W){Z=_.GC([a.startsWith("/")?a.substr(1):a]);var N,B;w=_.jw(W,{},Z,w==null?void 0:(N=w.context)==null?void 0:(B=N.clickTracking)==null?void 0:B.clickTrackingParams).then(function(I){return{response:I}})}else w=
this.nextContinuation.usePost?Z.postData(a,w):Z.fetchData(a);
w.then(this.updateNextContinuationData_.bind(this,a));this.pendingContinuationRequest_=w;this.startListeningForNavigate_()},
updateNextContinuationData_:function(a,W){var w=this;_.hk("ncl");this.pendingContinuationRequest_=void 0;if(W){var Z={};this.nextContinuation&&(Z=this.nextContinuation);if(W.response&&W.response.continuationContents&&W.response.continuationContents[Z.continuationType]){a=W.response.continuationContents[Z.continuationType];var N=Z.header||"data.header",B=a[Z.responseHeaderKey||"header"];B&&this.set(N,B);N=Z.contentsArray||"data.contents";B=this.getContents_(a,Z.responseContentsKey||"contents")||[];
this.pathExists_(N)?(B.unshift(N),this.push.apply(this,B)):this.set(N,B);B&&(pWe(_.$J(),W.response,this.hostElement,function(I){_.aV(w.hostElement,"yt-store-grafted-ve-action",[I])}),_.E$(this.hostElement,"yt-next-continuation-data-updated",{continuationData:W,
page:this,contentsArray:N}));this.set(Z.continuationsArray||"data.continuations",a[Z.responseContinuationsKey||"continuations"]||[])}else W.reload?_.jJ(new _.Uw("Reloading from continuation is unsupported")):W.responseContext&&W.responseContext.errors||(delete W.xsrf_token,delete W.timing,delete W.endpoint,delete W.csn,W.responseContext&&delete W.responseContext.serviceTrackingParams,N={request:_.uG(a,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(W).sort()},W.response&&(N.responseContentKeys=
Object.keys(W.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(N.continuationType=this.nextContinuation.continuationType.substr(0,256)),W=new _.Uw("Malformed continuation",N),a.indexOf("/comment_service_ajax")==0?_.jJ(W):_.eJ(W)),this.set(Z.continuationsArray||"data.continuations",[])}else _.nH(new _.Uw("Missing continuation response",a))},
getContents_:function(a,W){W=W.split(".");return _.T5.getValueByKeys(a,W)},
pathExists_:function(a){var W=this;a=a.toString().split(".");for(var w=0;w<a.length;w++)if(W=W[a[w]],W===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var o0L;var koT;var JE=function(){var a=_.u.apply(this,arguments)||this;a.triggered_=!1;return a};
_.c(JE,_.u);_.t=JE.prototype;_.t.attached=function(){this.maybeTriggerAutoload()};
_.t.detached=function(){this.hasBeenTriggered_=!1};
_.t.onPrescanVisible=function(){this.onShow()};
_.t.onShow=function(){this.showButton||this.trigger()};
_.t.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.E$(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.t.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.t.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.t.computeLabel_=function(a,W){return a===void 0?null:a.label||!W?a.label:this.showMoreText_};
_.t.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.t.getContinuationUrl=function(a){var W={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(W.itct=this.data.clickTrackingParams);return _.CF(a,W)};
_.t.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
JE.prototype.showButtonChanged_=JE.prototype.showButtonChanged_;JE.prototype.observeData_=JE.prototype.observeData_;_.f([_.R(_.LN.YtVisibilityBehavior),_.z("design:type",Object)],JE.prototype,"ytVisibilityBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],JE.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],JE.prototype,"showButton",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],JE.prototype,"showIcon",void 0);_.f([_.b({computed:"computeLabel_(data, showButton)"}),_.z("design:type",Object)],JE.prototype,"label",void 0);_.f([_.b({value:_.b8(_.P_("SHOW_MORE",void 0,"Show More"))}),_.z("design:type",Object)],JE.prototype,"showMoreText_",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],JE.prototype,"spinnerActive_",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],JE.prototype,"hasBeenTriggered_",void 0);
_.f([_.b({value:void 0}),_.z("design:type",String)],JE.prototype,"observeVisibleOption",void 0);_.f([_.b({value:void 0}),_.z("design:type",String)],JE.prototype,"observeHiddenOption",void 0);_.f([_.b({value:"observe_once"}),_.z("design:type",Object)],JE.prototype,"observePrescanOption",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JE.prototype,"observeData_",null);
_.f([_.a5("showButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JE.prototype,"showButtonChanged_",null);JE=_.f([_.TD({is:"yt-next-continuation",disableElementRegistration:!0})],JE);
_.D(JE,"yt-next-continuation",function(){if(koT===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;o0L===void 0&&(o0L=document.createElement("template"));var Z=o0L;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);koT=a}a=koT;return a},{mode:2});var UbJ;var O56;var FJ=function(){return _.u.apply(this,arguments)||this};
_.c(FJ,_.u);FJ.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],FJ.prototype,"data",void 0);FJ=_.f([_.TD({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],FJ);
_.D(FJ,"yt-music-pass-small-feature-info-renderer",function(){if(O56===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;UbJ===void 0&&(UbJ=document.createElement("template"));var Z=UbJ;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);O56=a}a=O56;return a},{mode:2});_.pA("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Mr=function(){var a=_.u.apply(this,arguments)||this;a.isCollapsible=!1;a.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return a};
_.c(Mr,_.u);_.t=Mr.prototype;_.t.computeIsCollapsible=function(a){return!!(((a==null?0:a.showMoreText)||(a==null?0:a.visibleRowCount))&&(a==null?0:a.isCollapsible))};
_.t.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"}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.t.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.t.onIronResize=function(){var a=this;_.eK(this,"updateGridInitItems",function(){a.maybeUpdateInitialItemsDisplayed()})};
_.t.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)))}};
_.t.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.t.computeExpandVisible=function(a,W,w,Z){return a&&W&&w&&!!Z&&!!Z.showMoreText};
_.t.computeShowMoreButton=function(a){return{text:a,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.t.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.t.initCollapsed=function(){var a=this;this.ytLazyListBehavior.canShowMore=!1;var W;(this.collapsed=!((W=this.data)==null||!W.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.DW(this,function(){_.W_(a.hostElement,"yt-refit-popups-action")})};
_.t.fillRestIfNotCollapsible=function(){var a=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!a||this.ytLazyListBehavior.fillRemainingListItems()};
_.t.computeViewAllHidden=function(a,W){return a||!W.viewAllEndpoint};
Mr.prototype.fillRestIfNotCollapsible=Mr.prototype.fillRestIfNotCollapsible;Mr.prototype.initCollapsed=Mr.prototype.initCollapsed;Mr.prototype.onIronResize=Mr.prototype.onIronResize;Mr.prototype.persistentGuideChanged=Mr.prototype.persistentGuideChanged;_.f([_.R(_.eG),_.z("design:type",Object)],Mr.prototype,"ironResizableBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.Vs.YtLazyListBehavior),_.z("design:type",Object)],Mr.prototype,"ytLazyListBehavior",void 0);_.f([_.R(_.Lf.YtNextContinuationBehavior),_.z("design:type",Object)],Mr.prototype,"ytNextContinuationBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],Mr.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.R(_.j8),_.z("design:type",Object)],Mr.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Mr.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],Mr.prototype,"collapsed",void 0);_.f([_.b(),_.z("design:type",Number)],Mr.prototype,"initialCount",void 0);_.f([_.b({computed:"computeShowMoreButton(data.showMoreText)"}),_.z("design:type",Object)],Mr.prototype,"showMoreButton",void 0);
_.f([_.b({computed:"computeIsCollapsible(data)"}),_.z("design:type",Object)],Mr.prototype,"isCollapsible",void 0);_.f([_.w$("#items"),_.z("design:type",HTMLElement)],Mr.prototype,"items",void 0);_.f([_.lO("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mr.prototype,"persistentGuideChanged",null);_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mr.prototype,"onIronResize",null);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mr.prototype,"initCollapsed",null);_.f([_.lO("canShowMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mr.prototype,"fillRestIfNotCollapsible",null);Mr=_.f([_.C({is:"ytd-grid-renderer",disableElementRegistration:!0})],Mr);
_.D(Mr,"ytd-grid-renderer",function(){if($bl!==void 0)return $bl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return $bl=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var RD=function(){return _.u.apply(this,arguments)||this};
_.c(RD,_.u);
RD.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"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],RD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],RD.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],RD.prototype,"data",void 0);RD=_.f([_.C({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],RD);
_.D(RD,"ytd-carousel-ad-renderer",function(){if(WtT!==void 0)return WtT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return WtT=a},{mode:1});var SCV;var qr=function(){return _.u.apply(this,arguments)||this};
_.c(qr,_.u);_.t=qr.prototype;_.t.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"}}}};
_.t.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,qr.JSC$13176_CLICK_LOCATION_ID_MAP))};
_.t.onSitelinkTap=function(a){a.stopPropagation();var W,w,Z=a==null?void 0:(W=a.model)==null?void 0:(w=W.item)==null?void 0:w.onTap;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,a,!1)};
_.t.onTap=function(a){var W=this.data&&this.data.content&&this.data.content.navigationEndpoint;W&&this.ytSparklesClickLocationBehavior.handleClick(W,a,!1)};
_.t.sendImpression=function(){if(this.data&&this.data.content)for(var a=_.l(this.data.content.impressionEndpoints||[]),W=a.next();!W.done;W=a.next()){W=_.l(W.value.loggingUrls||[]);for(var w=W.next();!w.done;w=W.next())w=w.value,w.baseUrl&&Ql(w.baseUrl,w.attributionSrcMode)}};
qr.prototype.onTap=qr.prototype.onTap;qr.prototype.dataChanged=qr.prototype.dataChanged;qr.JSC$13176_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"]]);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.m7.YtSparklesClickLocationBehavior),_.z("design:type",Object)],qr.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],qr.prototype,"data",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qr.prototype,"dataChanged",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qr.prototype,"onTap",null);qr=_.f([_.C({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],qr);
_.D(qr,"ytd-promoted-sparkles-text-search-renderer",function(){if(SCV!==void 0)return SCV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return SCV=a},{mode:1});var YCR;var Q1=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a};
_.c(Q1,_.u);_.t=Q1.prototype;
_.t.configureRendererStamper=function(){return{"data.menu":{id:_.r("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]]"}}}}}};
_.t.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.t.computeHasAdBadge=function(a){return!(a==null||!a.adBadge)};
_.t.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Q1.JSC$13185_DEFAULT_AD_BADGE_RENDERER),_.mh(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Q1.JSC$13185_CLICK_LOCATION_ID_MAP))};
_.t.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var a;(((a=this.data)==null?void 0:a.impressionCommands)||[]).forEach(function(W){W=_.l(W.loggingUrls||[]);for(var w=W.next();!w.done;w=W.next())w=w.value,w.baseUrl&&Ql(w.baseUrl,w.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.t.onTap=function(a){var W,w=(W=this.data)==null?void 0:W.navigationEndpoint,Z;(W=(Z=this.data)==null?void 0:Z.thumbnailNavigationEndpoint)&&_.sb(_.qj(a),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(W,a,!1):w&&this.ytSparklesClickLocationBehavior.handleClick(w,a,!1)};
_.t.handleMuteAd=function(){this.collapsed=!0};
_.t.attached=function(){var a=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.dU.Object.defineProperties(Q1.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}}});
Q1.prototype.dataChanged=Q1.prototype.dataChanged;
Q1.JSC$13185_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"]]);
Q1.JSC$13185_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.P_("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.f([_.R(Ae),_.z("design:type",Object)],Q1.prototype,"ytdActiveViewBehavior",void 0);
_.f([_.R([_.d4.YtActionHandlerBehavior]),_.z("design:type",Object)],Q1.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.m7.YtSparklesClickLocationBehavior),_.z("design:type",Object)],Q1.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Q1.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Q1.prototype,"collapsed",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],Q1.prototype,"useBiggerThumbs",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.Et("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],Q1.prototype,"biggerThumbsStyle",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.z("design:type",Boolean)],Q1.prototype,"fixAlignmentSmallScreens",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs_square")}}),
_.z("design:type",Boolean)],Q1.prototype,"useBiggerThumbsSquare",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data.mediaHoverOverlay"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Q1.prototype,"hideHoverOverlay",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Q1.prototype,"webSearchLayout",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Q1.prototype,"webSearchLayoutLandscape",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Q1.prototype,"webSearchLayoutSquare",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Q1.prototype,"sparklesCtaNoBackground",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.actionButton"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Q1.prototype,"hideActionButton",null);_.f([_.b({computed:"computeButtonOverride(uiUpdate)"}),_.z("design:type",Object)],Q1.prototype,"buttonOverride",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.z("design:type",Boolean)],Q1.prototype,"hasNewAdBadge",void 0);_.f([_.Q("data.promotedSparklesWebStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Q1.prototype,"useRoundedBadge",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Q1.prototype,"dataChanged",null);Q1=_.f([_.C({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Q1);
_.D(Q1,"ytd-promoted-sparkles-web-renderer",function(){if(YCR!==void 0)return YCR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return YCR=a},{mode:1});var TcL;var xv=function(){return _.u.apply(this,arguments)||this};
_.c(xv,_.u);_.t=xv.prototype;_.t.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]]"}}}}}};
_.t.computeShowCta=function(a){return!(a==null||!a.ctaRenderer)};
_.t.onCtaClick=function(){var a,W,w,Z=(a=this.data)==null?void 0:(W=a.ctaRenderer)==null?void 0:(w=W.buttonRenderer)==null?void 0:w.command;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.t.onWatchButtonClick=function(){var a,W,w,Z=(a=this.data)==null?void 0:(W=a.watchButtonRenderer)==null?void 0:(w=W.buttonRenderer)==null?void 0:w.command;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.t.onTap=function(){};
_.t.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",xv.JSC$13188_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",xv.JSC$13188_DEFAULT_CLICK_LOCATION_BEHAVIOR,xv.JSC$13188_CLICK_LOCATION_ID_MAP),this.thumbnail)){var a=this.thumbnail.getElementsByTagName("a");a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href")}};
_.t.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var a=_.l(this.data.impressionUrls),W=a.next();!W.done;W=a.next())W=W.value,e5C(W,j1m(W));this.data.impressionsFired=!0}};
_.t.maybeComputeHref=function(){return null};
_.t.computeIsShortDR=function(a){return!(a==null||!a.watchButtonRenderer)&&!(a==null||!a.ctaRenderer)&&!!this.enableShortDR};
_.t.computeIsNewUiOrShortDr=function(a){return!!this.enableUiUpdate||this.computeIsShortDR(a)};
_.t.computeIsNewUiAndNotShortDr=function(a){return!!this.enableUiUpdate&&!this.computeIsShortDR(a)};
_.t.computeHideAvatar=function(a){return!((a==null?0:a.channelThumbnail)&&this.computeIsNewUiOrShortDr(a))};
_.t.onClick=function(a){var W,w=(W=this.data)==null?void 0:W.navigationEndpoint;if(this.enableShortDR&&w&&(_.A(w,_.u6)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(w,a,!!_.A(w,_.u6)),a.stopPropagation();else if(w&&_.A(w,_.u6))this.ytSparklesClickLocationBehavior.handleClick(w,a,!0),a.stopPropagation();else if(w){var Z,N;((Z=this.data)==null?0:Z.navigationEndpoint)&&((N=this.data)==null?0:N.adPlaybackContextParams)&&TIx(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(w)}};
_.t.computeButtonOverride=function(a){if(this.computeIsNewUiOrShortDr(a))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.t.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.t.onThumbnailContainerClick=function(a){this.onClick(a)};
_.t.computeThumbnailWidth=function(a,W){return a?W==="MASSIVE"?600:W==="BIG"?500:W==="MEDIUM"?450:420:360};
_.t.attached=function(){var a=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
xv.prototype.dataChanged=xv.prototype.dataChanged;xv.prototype.onTap=xv.prototype.onTap;xv.JSC$13188_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.P_("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};xv.JSC$13188_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
xv.JSC$13188_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"}];_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.f([_.R(Ae),_.z("design:type",Object)],xv.prototype,"ytdActiveViewBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.m7.YtSparklesClickLocationBehavior),_.z("design:type",Object)],xv.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xv.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],xv.prototype,"useBiggerThumbs",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("enable_video_display_compact_button_group_for_desktop_search")}}),
_.z("design:type",Boolean)],xv.prototype,"enableShortDR",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("enable_vac_ui_update_for_desktop_search")}}),
_.z("design:type",Boolean)],xv.prototype,"enableUiUpdate",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.Et("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],xv.prototype,"biggerThumbsStyle",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.z("design:type",Boolean)],xv.prototype,"showCta",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.z("design:type",Boolean)],xv.prototype,"isShortDr",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.z("design:type",Boolean)],xv.prototype,"isShortDrOrNewUi",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.z("design:type",Boolean)],xv.prototype,"isNewUiAndNotShortDr",void 0);_.f([_.b({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],xv.prototype,"buttonOverride",void 0);_.f([_.b({computed:"computeSecondaryButtonOverride(data)"}),_.z("design:type",Object)],xv.prototype,"secondaryButtonOverride",void 0);_.f([_.w$("ytd-thumbnail"),_.z("design:type",HTMLElement)],xv.prototype,"thumbnail",void 0);
_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xv.prototype,"onTap",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xv.prototype,"dataChanged",null);xv=_.f([_.C({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],xv);
_.D(xv,"ytd-promoted-video-renderer",function(){if(TcL!==void 0)return TcL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return TcL=a},{mode:1});var KtA;var bQ=function(){var a=_.u.apply(this,arguments)||this;a.useRoundedBadge=!0;a.sitelinkIds=[];return a};
_.c(bQ,_.u);_.t=bQ.prototype;
_.t.configureRendererStamper=function(){return{"data.menu":{id:_.r("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]]"}}}}}};
_.t.dataChanged=function(){var a;(a=this.data)!=null&&a.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,bQ.JSC$13195_CLICK_LOCATION_ID_MAP)};
_.t.onTap=function(a){var W,w=(W=this.data)==null?void 0:W.navigationCommand;w&&!_.sb(_.qj(a),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(w,a,!1)};
_.t.onSitelinkTap=function(a){var W,w,Z=a==null?void 0:(W=a.model)==null?void 0:(w=W.item)==null?void 0:w.onTap;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,a,!1)};
_.t.configureSitelinkClickTargets=function(){var a=this,W,w,Z=(W=this.data)==null?void 0:(w=W.clickLocationTargets)==null?void 0:w.find(function(N){return N.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
Z&&_.M(this.hostElement).querySelectorAll(".sitelink").forEach(function(N){_.mh(N,"yt-simple-endpoint",!0);a.sitelinkIds.push(N.id);var B,I;(B=a.ytSparklesClickLocationBehavior)==null||(I=B.clickTargetMap)==null||I.set(N.id,Z)})};
_.t.sendImpression=function(){var a,W,w=((a=this.data)==null?void 0:(W=a.impressionCommand)==null?void 0:W.loggingUrls)||[];a=_.l(w);for(W=a.next();!W.done;W=a.next())W=W.value,W.baseUrl&&Ql(W.baseUrl,W.attributionSrcMode)};
_.t.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.dU.Object.defineProperties(bQ.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
bQ.prototype.onTap=bQ.prototype.onTap;bQ.prototype.dataChanged=bQ.prototype.dataChanged;bQ.JSC$13195_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"]]);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.m7.YtSparklesClickLocationBehavior),_.z("design:type",Object)],bQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],bQ.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],bQ.prototype,"showFavicon",null);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],bQ.prototype,"useBiggerThumbs",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.Et("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],bQ.prototype,"biggerThumbsStyle",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.z("design:type",Boolean)],bQ.prototype,"enableThumbnailScalingFix",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bQ.prototype,"dataChanged",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],bQ.prototype,"onTap",null);bQ=_.f([_.C({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],bQ);
_.D(bQ,"ytd-text-image-no-button-layout-renderer",function(){if(KtA!==void 0)return KtA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return KtA=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var pWH;var sP=function(){var a=_.u.apply(this,arguments)||this;a.isInlinePlaybackState=!1;a.uiUpdate=_.r("web_modern_buttons");a.hideCta=_.r("hide_cta_for_home_web_video_ads");a.noBottomMargin=!1;a.animateInTimeStamp=_.yv("hide_cta_for_home_web_video_ads_animate_in_time");a.animateInCta=!1;a.isHovered=!1;a.player=null;a.JSC$13202_playerEvents=new Map;a.JSC$13202_preventProgressSaveTimer=null;a.delayedCtaJobId=null;return a};
_.c(sP,_.u);_.t=sP.prototype;_.t.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]]"}}}}}};
_.t.attached=function(){this.JSC$13202_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13202_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.r("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.t.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13202_playerEvents)};
_.t.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",sP.JSC$13201_DEFAULT_CLICK_LOCATION_BEHAVIOR,sP.JSC$13201_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.t.hoverChanged=function(){var a=this;this.delayedCtaJobId&&(_.hF.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.r("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.OB(_.hF,function(){a.buttonContainer.classList.add("show-delayed-buttons")},_.yv("delayed_cta_on_web_delay_milliseconds")))};
_.t.setPlayer=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return(W=_.W_(a.hostElement,"yt-get-inline-preview-player-action"))&&W[0]?_.g(w,W[0].getPlayerPromise(),3):w.jumpTo(0);a.player=w.yieldResult;a.ytPlayerListenerBehavior.listenToPlayerEvents(a.player,a.JSC$13202_playerEvents);_.Xd(w)})};
_.t.onPlaybackStart=function(){var a=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13202_preventProgressSaveTimer=_.mY(_.hF,function(){a.JSC$13202_preventProgressSaveTimer=null},1E4))};
_.t.onVideoProgress=function(a){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&a>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.t.resetPreventProgressSaveTimer=function(){_.hF.cancelJob(this.JSC$13202_preventProgressSaveTimer);this.JSC$13202_preventProgressSaveTimer=null};
_.t.getSimpleString=function(a){return _.sd(a)};
_.t.onClick=function(a){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var W,w=(W=this.data)==null?void 0:W.navigationEndpoint,Z;W=(Z=this.data)==null?void 0:Z.channelEndpoint;var N,B;(Z=(B=_.A((N=this.data)==null?void 0:N.adCtaButton,_.J4))==null?void 0:B.command)&&_.sb(_.qj(a),this.hostElement,["call-to-action"])?_.r("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(Z,a,!1):W&&_.sb(_.qj(a),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(W,a,!1):!_.sb(_.qj(a),this.hostElement,["secondary-button"])&&w&&(_.r("enable_short_dr_for_desktop_launchable")?(N=!!_.A(w,_.u6),this.isInlinePlaybackState&&N&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(w,a,N)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(w,a,!0)))}};
_.t.updateWatchEndpointStartTime=function(){var a,W;this.player&&((a=this.data)==null?0:a.inlinePlaybackEndpoint)&&((W=this.data)==null?0:W.navigationEndpoint)&&!this.JSC$13202_preventProgressSaveTimer&&(a=Math.floor(this.player.getCurrentTime()),_.A(this.data.navigationEndpoint,_.u6).startTimeSeconds=a,_.A(this.data.inlinePlaybackEndpoint,_.u6).startTimeSeconds=a)};
_.t.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.t.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.dU.Object.defineProperties(sP.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.r("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var a,W;return!((a=this.data)==null||!a.watchButton)&&!((W=this.data)==null||!W.adCtaButton)}}});
sP.prototype.hoverChanged=sP.prototype.hoverChanged;sP.prototype.dataChanged=sP.prototype.dataChanged;
sP.JSC$13201_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"]]);
sP.JSC$13201_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"}];
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],sP.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.m7.YtSparklesClickLocationBehavior),_.z("design:type",Object)],sP.prototype,"ytSparklesClickLocationBehavior",void 0);
_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],sP.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sP.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sP.prototype,"isInlinePlaybackState",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],sP.prototype,"miniMode",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sP.prototype,"uiUpdate",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sP.prototype,"hideCta",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sP.prototype,"noBottomMargin",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sP.prototype,"animateInCta",void 0);_.f([_.b({computed:"computeButtonOverride(uiUpdate)"}),_.z("design:type",Object)],sP.prototype,"buttonOverride",void 0);
_.f([_.b({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.z("design:type",Object)],sP.prototype,"secondaryButtonOverride",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sP.prototype,"isHovered",void 0);_.f([_.w$("#button-container"),_.z("design:type",HTMLElement)],sP.prototype,"buttonContainer",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],sP.prototype,"typographyBump",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("typographyBump"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sP.prototype,"typographyBumpV2",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sP.prototype,"dataChanged",null);_.f([_.a5("isHovered"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sP.prototype,"hoverChanged",null);
_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sP.prototype,"isButtonGroup",null);sP=_.f([_.C({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],sP);
_.D(sP,"ytd-ad-inline-playback-meta-block",function(){if(pWH!==void 0)return pWH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return pWH=a},{mode:_.Vn("kevlar_poly_si_batch_j065")?1:2});var rO$;var uQ=function(){var a=_.u.apply(this,arguments)||this;a.noBottomMargin=!1;a.isInlinePreviewTriggered=!1;a.JSC$13207_activeViewMeasurementDataResolver=_.Rt();return a};
_.c(uQ,_.u);_.t=uQ.prototype;_.t.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.attached=function(){var a=this;this.updateInlinePreviewHoverListeners();this.JSC$13207_activeViewMeasurementDataResolver.promise.then(function(W){a.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)});
_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.detached=function(){this.clearInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13207_inlinePreviewHoverListener=dP({mediaRenderer:this,lockupElement:this.JSC$13207_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:M$l})};
_.t.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13207_inlinePreviewHoverListener)==null||ty(a)};
_.t.onDataChanged=function(){var a;((a=this.data)==null?0:a.activeView)&&this.JSC$13207_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",uQ.JSC$13206_DEFAULT_CLICK_LOCATION_BEHAVIOR,uQ.JSC$13206_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"));var W,w;if(((W=this.data)==
null?0:W.hasAutoplay)||((w=this.data)==null?0:w.forceImpAutoplay)){var Z;(Z=this.JSC$13207_inlinePreviewHoverListener)==null||fn_(Z)}};
_.t.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.t.onThumbnailContainerClick=function(a){if(this.data&&this.data.navigationEndpoint){var W,w=(W=this.data)==null?void 0:W.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(w,a,!!_.A(w,_.u6));a.stopPropagation()}};
_.t.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.t.impressionLog=function(){var a=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var W,w,Z=(w=_.A((W=this.data)==null?void 0:W.onImpression,_.$7))==null?void 0:w.commands;Z&&(Z.forEach(function(N){N.clickTrackingParams&&delete N.clickTrackingParams;a.ytComponentBehavior.resolveCommand(N)}),this.data.impressionsFired=!0)}};
_.dU.Object.defineProperties(uQ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13207_inlinePreviewHoverListener)==null?0:pd(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
uQ.prototype.onTypographyBumpChanged=uQ.prototype.onTypographyBumpChanged;uQ.prototype.onDataChanged=uQ.prototype.onDataChanged;uQ.JSC$13206_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);uQ.JSC$13206_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"}];
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],uQ.prototype,"ytComponentBehavior",void 0);_.f([_.R(Ae),_.z("design:type",Object)],uQ.prototype,"ytdActiveViewBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],uQ.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.R(_.qv),_.z("design:type",Object)],uQ.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],uQ.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.m7.YtSparklesClickLocationBehavior),_.z("design:type",Object)],uQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],uQ.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],uQ.prototype,"noBottomMargin",void 0);
_.f([_.b(),_.z("design:type",Object)],uQ.prototype,"isInlinePreviewTriggered",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],uQ.prototype,"miniMode",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],uQ.prototype,"typographyBump",void 0);_.f([_.w$("ytd-thumbnail"),_.z("design:type",HTMLElement)],uQ.prototype,"thumbnail",void 0);_.f([_.w$("#dismissible"),_.z("design:type",HTMLElement)],uQ.prototype,"JSC$13207_dismissibleMedia",void 0);
_.f([_.w$("ytd-ad-inline-playback-meta-block"),_.z("design:type",HTMLElement)],uQ.prototype,"adInlinePlaybackMetaBlock",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uQ.prototype,"onDataChanged",null);_.f([_.lO("typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uQ.prototype,"onTypographyBumpChanged",null);
_.f([_.Q("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uQ.prototype,"isHovered",null);uQ=_.f([_.C({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],uQ);
_.D(uQ,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(rO$!==void 0)return rO$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return rO$=a},{mode:1});var AOH;var Cf=function(){var a=_.u.apply(this,arguments)||this;a.isInlinePreviewTriggered=!1;a.JSC$13210_activeViewMeasurementDataResolver=_.Rt();return a};
_.c(Cf,_.u);_.t=Cf.prototype;_.t.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.attached=function(){var a=this;this.updateInlinePreviewHoverListeners();this.JSC$13210_activeViewMeasurementDataResolver.promise.then(function(W){a.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)})};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13210_inlinePreviewHoverListener=dP({mediaRenderer:this,lockupElement:this.JSC$13210_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:M$l})};
_.t.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13210_inlinePreviewHoverListener)==null||ty(a)};
_.t.onDataChanged=function(){var a;((a=this.data)==null?0:a.activeView)&&this.JSC$13210_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Cf.JSC$13209_DEFAULT_CLICK_LOCATION_BEHAVIOR,Cf.JSC$13209_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"))};
_.t.onThumbnailContainerClick=function(a){if(this.data&&this.data.navigationEndpoint){var W,w=(W=this.data)==null?void 0:W.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(w,a,!0);a.stopPropagation()}};
_.t.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.t.impressionLog=function(){var a=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var W,w,Z=(w=_.A((W=this.data)==null?void 0:W.onImpression,_.$7))==null?void 0:w.commands;Z&&(Z.forEach(function(N){N.clickTrackingParams&&delete N.clickTrackingParams;_.K().resolve(_.zU).resolveCommand(N,{form:{element:a.hostElement}})}),this.data.impressionsFired=!0)}};
_.dU.Object.defineProperties(Cf.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13210_inlinePreviewHoverListener)==null?0:pd(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Cf.prototype.onDataChanged=Cf.prototype.onDataChanged;Cf.JSC$13209_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Cf.JSC$13209_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"}];_.f([_.R(Ae),_.z("design:type",Object)],Cf.prototype,"ytdActiveViewBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Cf.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],Cf.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],Cf.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Cf.prototype,"ytdReduxBehavior",void 0);
_.f([_.R(_.m7.YtSparklesClickLocationBehavior),_.z("design:type",Object)],Cf.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Cf.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Cf.prototype,"isInlinePreviewTriggered",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],Cf.prototype,"miniMode",void 0);_.f([_.w$("ytd-thumbnail"),_.z("design:type",HTMLElement)],Cf.prototype,"thumbnail",void 0);
_.f([_.w$("#dismissible"),_.z("design:type",HTMLElement)],Cf.prototype,"JSC$13210_dismissibleMedia",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cf.prototype,"onDataChanged",null);_.f([_.Q("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cf.prototype,"isHovered",null);Cf=_.f([_.C({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Cf);
_.D(Cf,"ytd-video-display-full-buttoned-renderer",function(){if(AOH!==void 0)return AOH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return AOH=a},{mode:1});var P6=function(a,W,w,Z){Z=Z===void 0?!1:Z;_.Wv.call(this,a);this.adsClientErrorMessage=w;this.aggressivelySample=Z;this.args=[];W&&this.args.push(W)};
_.c(P6,_.Wv);var lL=function(a,W,w,Z){Z=Z===void 0?!1:Z;_.Wv.call(this,a);this.adsClientErrorMessage=w;this.aggressivelySample=Z;this.args=[];W&&this.args.push(W)};
_.c(lL,_.Wv);var h1A=function(a){_.OW.call(this);var W=this;this.initializationFunction=a;this.instance=null;this.addOnDisposeCallback(function(){_.d3(W.instance);W.instance=null})};
_.c(h1A,_.OW);h1A.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.aa("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var jFe=function(){var a=new Map;[].forEach(function(W){a.set(W.JSC$26741_getType(),W)})};new Promise(function(){});var h1e=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"]]),rOx=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"}]]),i5$=function(a){this.experimentApiProvider=a;a=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=a<.1};var Gx=function(a,W,w,Z){_.OW.call(this);this.adsControlFlowEventListeners=W;this.adEventLogger=w;this.experimentApiProvider=Z;this.adsControlFlowManagerHelper=a(this,this,this,this,this);_.$3(this,this.adsControlFlowManagerHelper);a=_.l(W);for(W=a.next();!W.done;W=a.next())_.$3(this,W.value)};
_.c(Gx,_.OW);var cOR=function(a,W,w,Z){Dv(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",W,w,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z);a=_.l(a.adsControlFlowEventListeners);for(Z=a.next();!Z.done;Z=a.next())cOR(Z.value,W,w)};
_.t=Gx.prototype;_.t.onOpportunityProcessedExternallyManaged=function(a,W,w,Z){Dv(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",a,w,W,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z)};
_.t.onSlotReceivedExternallyManaged=function(a,W){ff(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",a,W)};
_.t.onSlotEntered=function(a){if(dM(this.adsControlFlowManagerHelper,a)!=null){ff(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.adsControlFlowManagerHelper.onSlotEntered(a);for(var W=_.l(this.adsControlFlowEventListeners),w=W.next();!w.done;w=W.next())w.value.onSlotEntered(a);if(dM(this.adsControlFlowManagerHelper,a)!=null&&dM(this.adsControlFlowManagerHelper,a).isOccupyingSlotType()&&mb(this.adsControlFlowManagerHelper,a)&&!e1e(this.adsControlFlowManagerHelper,a)){var Z;V1(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",a,(Z=mb(this.adsControlFlowManagerHelper,a))!=null?Z:void 0);a=dM(this.adsControlFlowManagerHelper,a);a.slotLifecycleStage!=="entered"&&zx(a.slot,a.slotLifecycleStage,"enterLayoutForSlot");a.slotLifecycleStage="rendering";a.registeredLayoutRenderingAdapter.startRendering(a.layout)}}};
_.t.onSlotExited=function(a){if(dM(this.adsControlFlowManagerHelper,a)!=null){ff(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.adsControlFlowManagerHelper.onSlotExited(a);for(var W=_.l(this.adsControlFlowEventListeners),w=W.next();!w.done;w=W.next())w.value.onSlotExited(a);dM(this.adsControlFlowManagerHelper,a)!=null&&dM(this.adsControlFlowManagerHelper,a).markedForUnscheduleAfterOutboundAdapterRequests&&n0A(this,a)}};
_.t.onLayoutReceivedExternallyManaged=function(a,W,w){a.managerLayer!=="core"&&V1(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",a,W,w)};
var jFH=function(a,W,w){if(dM(a.adsControlFlowManagerHelper,W)!=null){V1(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",W,w);a=_.l(a.adsControlFlowEventListeners);for(var Z=a.next();!Z.done;Z=a.next())jFH(Z.value,W,w)}};
Gx.prototype.onLayoutExited=function(a,W,w){if(dM(this.adsControlFlowManagerHelper,a)!=null){V1(this.adEventLogger,AOe(w),a,W);this.adsControlFlowManagerHelper.onLayoutExited(a,W);for(var Z=_.l(this.adsControlFlowEventListeners),N=Z.next();!N.done;N=Z.next())N.value.onLayoutExited(a,W,w);(w=mb(this.adsControlFlowManagerHelper,a))&&W.layoutId===w.layoutId&&LtR(this,a)}};
Gx.prototype.disposeInternal=function(){var a=JOR(this.adsControlFlowManagerHelper);a=_.l(a);for(var W=a.next();!W.done;W=a.next())n0A(this,W.value);_.OW.prototype.disposeInternal.call(this)};
var n0A=function(a,W){if(dM(a.adsControlFlowManagerHelper,W)!=null)if(dM(a.adsControlFlowManagerHelper,W).JSC$26772_isSlotExitRequested()||dM(a.adsControlFlowManagerHelper,W).JSC$26772_isLayoutExitRequested())dM(a.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(dM(a.adsControlFlowManagerHelper,W).isOccupyingSlotType())dM(a.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests=!0,LtR(a,W);else if(dM(a.adsControlFlowManagerHelper,W).JSC$26772_isSlotFillRequested())dM(a.adsControlFlowManagerHelper,
W).markedForUnscheduleAfterOutboundAdapterRequests=!0,dM(a.adsControlFlowManagerHelper,W)!=null&&(ff(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",W),W=dM(a.adsControlFlowManagerHelper,W),W.fulfillmentLifecycleStage="fill_cancel_requested",W.registeredFulfillmentAdapter.cancelSlotFilling());else{var w=mb(a.adsControlFlowManagerHelper,W),Z;a.experimentApiProvider.get();(Z=_.r("h5_enable_layout_unscheduling_events"))&&(w?Ft$(a,W,w):_.aa(Error("Hh"),W,w,void 0,!1));ff(a.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",W);var N=dM(a.adsControlFlowManagerHelper,W),B=W.slotEntryTrigger,I=N.registeredSlotEntryTriggerAdapters.get(B.triggerId);I&&(I.unregisterTrigger(B),N.registeredSlotEntryTriggerAdapters.delete(B.triggerId));B=_.l(W.slotFulfillmentTriggers);for(I=B.next();!I.done;I=B.next()){I=I.value;var X=N.registeredFulfillmentTriggerAdapters.get(I.triggerId);X&&(X.unregisterTrigger(I),N.registeredFulfillmentTriggerAdapters.delete(I.triggerId))}B=_.l(W.slotExpirationTriggers);
for(I=B.next();!I.done;I=B.next())if(I=I.value,X=N.registeredExpirationTriggerAdapters.get(I.triggerId))X.unregisterTrigger(I),N.registeredExpirationTriggerAdapters.delete(I.triggerId);N.hasLayout()&&(B=N.layout,Hd(N,B.layoutExitNormalTriggers),Hd(N,B.layoutExitSkipTriggers),Hd(N,B.layoutExitMuteTriggers),Hd(N,B.layoutExitUserInputSubmittedTriggers),Hd(N,B.layoutExitUserCancelledTriggers));N.registeredFulfillmentAdapter=void 0;N.registeredSlotAdapter!=null&&(N.registeredSlotAdapter.release(),N.registeredSlotAdapter=
void 0);N.registeredLayoutRenderingAdapter!=null&&(N.registeredLayoutRenderingAdapter.release(),N.registeredLayoutRenderingAdapter=void 0);N=a.adsControlFlowManagerHelper;dM(N,W)&&(N=MCh(N,W.slotType+"_"+W.slotPhysicalPosition))&&N.delete(W.slotId);ff(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",W);a=_.l(a.adsControlFlowEventListeners);for(N=a.next();!N.done;N=a.next())N=N.value,N.onSlotUnscheduled(W),w&&!Z&&Ft$(N,W,w)}},Ft$=function(a,W,w){V1(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
W,w);
V1(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",W,w);a=_.l(a.adsControlFlowEventListeners);for(var Z=a.next();!Z.done;Z=a.next())Z=Z.value,w&&Ft$(Z,W,w)},LtR=function(a,W){if(dM(a.adsControlFlowManagerHelper,W)!=null&&dM(a.adsControlFlowManagerHelper,W).isOccupyingSlotType()){var w=mb(a.adsControlFlowManagerHelper,W);
if(w&&e1e(a.adsControlFlowManagerHelper,W)){if(dM(a.adsControlFlowManagerHelper,W)!=null){var Z=a.adEventLogger,N;var B=((N=rOx.get("abandoned"))==null?void 0:N.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";V1(Z,B,W,w);a=dM(a.adsControlFlowManagerHelper,W);a.slotLifecycleStage!=="rendering"&&zx(a.slot,a.slotLifecycleStage,"exitLayout");a.slotLifecycleStage="rendering_stop_requested";a.registeredLayoutRenderingAdapter.stopRendering(w,"abandoned")}}else{ff(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
W);try{Z=dM(a.adsControlFlowManagerHelper,W);if(!Z)throw new lL("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");Z.slotLifecycleStage!=="enter_requested"&&Z.slotLifecycleStage!=="entered"&&Z.slotLifecycleStage!=="rendering"&&zx(Z.slot,Z.slotLifecycleStage,"exitSlot");Z.slotLifecycleStage="exit_requested";if(Z.registeredSlotAdapter===void 0)throw Z.slotLifecycleStage="scheduled",new lL("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
Z.registeredSlotAdapter.exit()}catch(I){I instanceof lL&&I.adsClientErrorMessage?(R1l(a.adEventLogger,I.adsClientErrorMessage,W),_.aa(I,W,void 0,void 0,I.aggressivelySample)):(R1l(a.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",W),_.aa(I,W))}}}};var y1=function(a,W,w,Z,N,B){_.OW.call(this);this.registry=a;this.experimentApiProvider=B;this.slotMap=new Map};
_.c(y1,_.OW);var MCh=function(a,W){return(a=a.slotMap.get(W))?a:new Map},dM=function(a,W){return MCh(a,W.slotType+"_"+W.slotPhysicalPosition).get(W.slotId)},JOR=function(a){var W=[];
a.slotMap.forEach(function(w){w=_.l(w.values());for(var Z=w.next();!Z.done;Z=w.next())W.push(Z.value.slot)});
return W};
y1.prototype.onSlotEntered=function(a){a=dM(this,a);a.slotLifecycleStage!=="enter_requested"&&zx(a.slot,a.slotLifecycleStage,"onSlotEntered");a.slotLifecycleStage="entered"};
var e1e=function(a,W){a=dM(a,W);return a.hasLayout()&&a.isRendering()},mb=function(a,W){(a=dM(a,W))?a.hasLayout()&&!a.layout&&_.aa("Unexpected empty layout",W):_.aa("Unexpected undefined slotState",W);
return(a==null?void 0:a.layout)||null};
y1.prototype.onSlotExited=function(a){a=dM(this,a);a.slotLifecycleStage!=="exit_requested"&&zx(a.slot,a.slotLifecycleStage,"onSlotExited");a.slotLifecycleStage="scheduled"};
y1.prototype.onLayoutExited=function(a,W){a=dM(this,a);a.isPrimaryLayout(W)&&(a.slotLifecycleStage!=="rendering_stop_requested"&&zx(a.slot,a.slotLifecycleStage,"onLayoutExited"),a.slotLifecycleStage="entered")};
var Hd=function(a,W){W=_.l(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;var Z=a.registeredLayoutExitTriggerAdapters.get(w.triggerId);Z&&(Z.unregisterTrigger(w),a.registeredLayoutExitTriggerAdapters.delete(w.triggerId))}},zx=function(a,W,w){_.aa("Slot stage was "+W+" when calling method "+w,a)};var QFR=function(a){_.OW.call(this);this.deps=a;this.JSC$13259_adsControlFlowManager=qCT(this)};
_.c(QFR,_.OW);var qCT=function(a){var W=new Gx(function(w,Z,N,B){return new y1(a.deps.registry,w,Z,N,B,a.deps.experimentApiProvider)},new Set(n0e(a.deps.registry).concat(a.deps.listeners)),a.deps.adEventLogger,a.deps.experimentApiProvider);
_.$3(a,W);return W};var xb_=function(a,W){_.OW.call(this);this.experimentApiProvider=a;this.eventLoggingSettingsProvider=W;this.eventCount=0};
_.c(xb_,_.OW);xb_.prototype.logEvent=function(a){Dv(this,a)};
var ff=function(a,W,w,Z){Dv(a,W,void 0,void 0,void 0,w,void 0,void 0,void 0,w.adSlotLoggingData,void 0,void 0,Z)},V1=function(a,W,w,Z,N){Dv(a,W,void 0,void 0,void 0,w,Z?Z:void 0,void 0,void 0,w.adSlotLoggingData,Z?Z.adLayoutLoggingData:void 0,void 0,N)},R1l=function(a,W,w){Dv(a,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,w,void 0,void 0,void 0,w.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:W})},Dv=function(a,W,w,Z,N,B,I,X,v,U,O,S,T){T=T===void 0?0:T;
b56(a.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+W,"slot:",B,"layout:",I,"ping:",X,"Opportunity:",{opportunityType:w,associatedSlotId:Z,slotsFromOpportunity:N,triggerBundle:v,adSlotLoggingData:U,adLayoutLoggingData:O});try{var p=function(){a.experimentApiProvider.get();if(W!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){W||_.aa("Empty PACF event type",B,I);var h=a.eventLoggingSettingsProvider.get();var L;(L=h.alwaysIncludeDebugData)||(h.experimentApiProvider.get(),L=
!1);h=L;L={eventType:W,eventOrder:++a.eventCount};var F={};B&&(F.slotData=cOS(h,B));if(I){var x={type:I.layoutType,controlFlowManagerLayer:h1e.get(I.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};h&&(x.debugData={layoutId:I.layoutId});F.layoutData=x}X&&(F.pingData={pingDispatchStatus:X.dispatchStatus,serializedAdPingMetadata:X.ping.serializedAdPingMetadata,pingIndex:X.index});v&&(F.triggerData=i5x(v.trigger,v.category));w&&(F.opportunityData=e1C(h,w,Z,N));L.adClientData=F;U&&(L.serializedSlotAdServingData=
U.serializedSlotAdServingDataEntry);O&&(L.serializedAdServingData=O.serializedAdServingDataEntry);S&&(L.errorInfo=S);_.ia("adsClientStateChange",{adsClientEvent:L})}};
T&&T>0?_.TP(_.n4(),function(){return p()},T):p()}catch(h){b56(a.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.TP(_.n4(),function(){_.aa(h instanceof Error?h:String(h),B,I,{pacf_message:"exception during pacf logging"})})}};var sFH=function(a,W){xb_.call(this,a,W)};
_.c(sFH,xb_);var uFR=function(){},b56=function(a,W){return _.r(W)};var GoH=function(){var a=new CX$;this.JSC$13278_adsControlFlowManager=(new QFR(a)).JSC$13259_adsControlFlowManager},CX$=function(){_.OW.call(this);
var a=this;this.experimentApiProvider=new h1A(function(){return new uFR});
var W=new h1A(function(){return new i5$(a.experimentApiProvider)});
this.adEventLogger=new sFH(this.experimentApiProvider,W);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.c(CX$,_.OW);var Db_=function(){},fze,EP=function(){fze||(fze=new Db_);
return fze},aj=function(a){if(!a.JSC$13289_externallyManagedSlotAdapterCallback){var W=(new GoH).JSC$13278_adsControlFlowManager;
a.JSC$13289_externallyManagedSlotAdapterCallback=W}return a.JSC$13289_externallyManagedSlotAdapterCallback},dbJ=function(a,W,w){var Z=W.opportunityType,N=Error("Ih");
if(Z!==void 0){var B=aj(a);cOR(B,Z,void 0,w)}else _.aa(N,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});B=[];if(W.adSlotAndLayoutMetadata!==void 0){W=_.l(W.adSlotAndLayoutMetadata);for(var I=W.next();!I.done;I=W.next()){var X=I.value;if(I=X.adSlotMetadata)if(B.push(I),a.onSlotReceivedExternallyManaged(I,w),X.adLayoutMetadata){X=_.l(X.adLayoutMetadata);for(var v=X.next();!v.done;v=X.next())a.onLayoutReceivedExternallyManaged(I,v.value,w)}else w>0&&_.aa("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else w>0&&_.aa("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else w>0&&_.aa("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(Z!==void 0)a.onOpportunityProcessedExternallyManaged(Z,B,void 0,w);else _.aa(N,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Db_.prototype.onSlotReceivedExternallyManaged=function(a,W){a=Ia(a);if(a instanceof lL)_.aa(a,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else aj(this).onSlotReceivedExternallyManaged(a,W)};
Db_.prototype.onLayoutReceivedExternallyManaged=function(a,W,w){a=Ia(a);W=LtS(W);if(a instanceof lL)_.aa(a,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(W instanceof P6)_.aa(W,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else aj(this).onLayoutReceivedExternallyManaged(a,W,w)};
Db_.prototype.onOpportunityProcessedExternallyManaged=function(a,W,w,Z){var N=[];W=_.l(W);for(var B=W.next();!B.done;B=W.next())B=Ia(B.value),B instanceof lL?_.aa(B,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):N.push(B);aj(this).onOpportunityProcessedExternallyManaged(a,N,w,Z)};
var mbH=function(a,W){W=Ia(W);if(W instanceof lL)_.aa(W,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var w=aj(a);ff(w.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",W);w=_.l(w.adsControlFlowEventListeners);for(var Z=w.next();!Z.done;Z=w.next())Z=dM(Z.value,W),Z.slotLifecycleStage!=="not_scheduled"&&zx(Z.slot,Z.slotLifecycleStage,"onSlotScheduled"),Z.slotLifecycleStage="scheduled";a=aj(a);ff(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",W);a=_.l(a.adsControlFlowEventListeners);
for(w=a.next();!w.done;w=a.next())w.value.onSlotEntered(W)}},VCR=function(a,W){W=Ia(W);
if(W instanceof lL)_.aa(W,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var w=aj(a);ff(w.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",W);w=_.l(w.adsControlFlowEventListeners);for(var Z=w.next();!Z.done;Z=w.next())Z.value.onSlotExited(W);a=aj(a);ff(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",W);a=_.l(a.adsControlFlowEventListeners);for(w=a.next();!w.done;w=a.next())w.value.onSlotUnscheduled(W)}},z16=function(a,W,w){W=Ia(W);
w=LtS(w);if(W instanceof lL)_.aa(W,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(w instanceof P6)_.aa(w,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var Z=aj(a);V1(Z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",W,w);Z=_.l(Z.adsControlFlowEventListeners);for(var N=Z.next();!N.done;N=Z.next())N.value.onLayoutScheduled(W,w);a=aj(a);V1(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",W,w);a=_.l(a.adsControlFlowEventListeners);
for(Z=a.next();!Z.done;Z=a.next())jFH(Z.value,W,w)}},Wk=function(a,W,w){W=Ia(W);
w=LtS(w);if(W instanceof lL)_.aa(W,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(w instanceof P6)_.aa(w,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var Z=aj(a);V1(Z.adEventLogger,AOe("normal"),W,w);Z=_.l(Z.adsControlFlowEventListeners);for(var N=Z.next();!N.done;N=Z.next())N.value.onLayoutExited(W,w,"normal");a=aj(a);a=_.l(a.adsControlFlowEventListeners);for(Z=a.next();!Z.done;Z=a.next())Ft$(Z.value,W,w)}};_.w_=_.xQ(function(a){var W=_.Qn(a,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});a=Object.assign({},W);var w=W.data;W=W.customCommandResolver;var Z=(delete a.data,delete a.customCommandResolver,a),N=_.D8();_.m5(N,function(){return w().interaction},W,function(){var X;
return(X=Z.listenToTapEvent)==null?void 0:X.call(Z)});
_.yz(N,{visibilityCallback:function(X){var v,U=(v=w().interaction)==null?void 0:v.onFirstVisible;X&&(U&&_.cX(U),Z.setOnErrorHandler()&&JOS(N))},
showOption:_.uC});a=_.l(_.$1(!1,void 0,"eiYvIe"));var B=a.next().value,I=a.next().value;a=_.$_(function(){var X;((X=Z.setTouchEndHandler)==null?0:X.call(Z))&&!B()&&(N.value.click(),I(!0),setTimeout(function(){I(!1)},100));
return!1});
return _.k("ad-image-view-model",{class:function(){var X,v=[((X=w().interaction)==null?0:X.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],U;((U=Z.isGridViewEnabled)==null?0:U.call(Z))&&v.push("ytwAdImageViewModelHostInGridView");return v.join(" ")},
el:N,"on:touchend":a},_.k("div",{class:"ytwAdImageViewModelHostImageContainer"},_.k(_.qw,{data:function(){var X;return{sources:w().imageSources,contentMode:(X=w().imageProperties)==null?void 0:X.contentMode}},
alt:function(){var X,v;return((X=w().interaction)==null?void 0:(v=X.accessibility)==null?void 0:v.label)||""},
targetHeight:Z.targetHeight,targetWidth:Z.targetWidth,preserveHeight:Z.preserveHeight,preserveWidth:Z.preserveWidth,useWidth:Z.useWidth,style:function(){var X,v;return"vertical-align: bottom;"+(((X=w().background)==null?0:X.color)?"background-color:"+_.KC((v=w().background)==null?void 0:v.color)+";":"")},
className:function(){return Z.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var X,v;return(v=(X=Z.setDraggable)==null?void 0:X.call(Z))!=null?v:void 0}})))},"cb");var H5A=_.xQ(function(a){var W=a.data,w=a.listenToTapEvent,Z=_.D8();_.r("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.m5(Z,function(){return W().interaction},void 0,function(){return w==null?void 0:w()});
_.yz(Z,{visibilityCallback:function(B){var I,X=(I=W().interaction)==null?void 0:I.onFirstVisible;B&&X&&_.cX(X)},
showOption:_.uC});a=_.$_(function(){if(_.r("enable_web_home_top_landscape_image_layout_legacy_click_command")){var B,I=(B=W().interaction)==null?void 0:B.onTap;I&&_.E$(Z.value,"yt-navigate",{endpoint:_.rJ(I)})}});
var N=function(){};
return _.k("ad-button-hover-overlay-view-model",{"on:click":a,class:function(){var B;return((B=W().interaction)==null?0:B.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:Z},function(){return _.r("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.k(_.Ax,{data:function(){return W().button}},{adButtonViewModel:function(B){return _.k(_.Gn,{data:B.data,
customCommandResolver:N})}}):_.k(_.Ax,{data:function(){return W().button}},{adButtonViewModel:_.Gn})}())},"db");var XN;_.Ct(_.xQ(function(a){var W=a.data;var w=_.D8();_.r("stop_av_measurement_on_detach")&&_.Ao(function(){gX(w)});
_.m5(w,function(){return W().interaction},void 0,function(){return!0});
_.yz(w,{visibilityCallback:function(I){if(I){var X;(I=(X=W().interaction)==null?void 0:X.onFirstVisible)&&_.cX(I);var v;if(X=(v=W().adLayoutData)==null?void 0:v.activeViewData)v6(w,X),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&gX(w)})}else _.r("stop_av_measurement_on_detach")&&gX(w)},
showOption:_.uC,hideOption:Cd});a=_.l(_.$1(!1,void 0,"yzu6qe"));var Z=a.next().value,N=a.next().value;a=_.$_(function(){N(!0)});
var B=_.$_(function(){N(!1)});
return _.k("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:w,"on:mouseenter":a,"on:mouseleave":B},_.k("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.It({"max-width":function(){return _.r("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.k("div",{class:function(){var I;
a:{var X;switch((I=_.A(W().thumbnailImage,Tz))==null?void 0:(X=I.imageProperties)==null?void 0:X.renderingAspect){case "RENDERING_ASPECT_SQUARE":I="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":I="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}I=void 0}return I}},_.k(_.Ax,{data:function(){return W().thumbnailImage}},{adImageViewModel:function(I){return _.k(_.w_,
{data:I.data,
listenToTapEvent:!0,setTouchEndHandler:_.r("enable_top_landscape_image_experiment_dom_id_web")})}})),_.k("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.k(_.Y,{cond:function(){var I,X,v;
return(I=_.A(W().thumbnailImage,Tz))==null?void 0:(X=I.imageProperties)==null?void 0:(v=X.overlayIcon)==null?void 0:v.iconImage},
then:function(I){return _.k(_.qw,{data:I,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.k("div",{class:function(){return Z()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.k(_.Ax,{data:function(){return W().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(I){return _.k(H5A,
{data:I.data,
listenToTapEvent:!0})}}))),_.k("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.k(_.Ax,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:function(I){return _.k($pA,{data:I.data,
listenToTapEvent:!0,setTouchEndHandler:_.r("enable_top_landscape_image_experiment_dom_id_web")})}})))},"eb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;var w=_.D8();_.r("stop_av_measurement_on_detach")&&_.Ao(function(){gX(w)});
var Z=_.Au(_.RL);_.m5(w,function(){return W().interaction});
_.yz(w,{visibilityCallback:function(U){if(U){var O;(U=(O=W().interaction)==null?void 0:O.onFirstVisible)&&_.cX(U);var S;if(O=(S=W().adLayoutData)==null?void 0:S.activeViewData)v6(w,O),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&gX(w)})}else _.r("stop_av_measurement_on_detach")&&gX(w)},
showOption:_.uC,hideOption:Cd});var N=_.$_(function(U){var O,S,T=(O=_.A(W().adImage,Tz))==null?void 0:(S=O.interaction)==null?void 0:S.onTap;T&&(_.r("enable_square_image_components_ui_web_with_custom_event")?_.E$(w.value,"yt-navigate",{endpoint:_.rJ(T)}):mz8(U,T))}),B=_.$_(function(){var U,O,S=(U=_.A(W().adButton,HoJ))==null?void 0:(O=U.interaction)==null?void 0:O.onTap;
S&&_.E$(w.value,"yt-navigate",{endpoint:_.rJ(S)})}),I=function(){};
a={};var X={},v={};return _.k("square-image-layout-view-model",{class:_.W$("ytwSquareImageLayoutViewModelHost",(a.ytwSquareImageLayoutViewModelHostColumn=Z,a)),el:w},_.k("div",{class:_.W$("ytwSquareImageLayoutViewModelHostImage",(X.ytwSquareImageLayoutViewModelHostColumnImage=Z,X))},function(){return _.r("enable_square_image_components_ui_web_with_native_img")?_.k("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var U,O,S;return((U=_.A(W().adImage,Tz))==null?void 0:(O=U.imageSources)==
null?void 0:(S=O[0])==null?void 0:S.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":N}):_.k(_.Ax,{data:function(){return W().adImage}},{adImageViewModel:function(U){return _.k(_.w_,{data:U.data,
isGridViewEnabled:Z,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.k("div",{class:_.W$("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(v.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=Z,v))},_.k(_.Ax,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:$pA}),function(){return _.r("enable_square_image_components_ui_web_with_float_button")?_.k("div",{"on:click":B},_.k(_.Ax,{data:function(){return W().adButton}},
{adButtonViewModel:function(U){var O={};
return _.k(_.Gn,{data:U.data,customCommandResolver:I,className:_.W$((O.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,O.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=Z,O))})}})):_.k(_.Ax,{data:function(){return W().adButton}},{adButtonViewModel:function(U){var O={};
return _.k(_.Gn,{data:U.data,className:_.W$((O.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,O.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=Z,O))})}})}()))},"fb"),"square-image-layout-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;var w=a.noBottomMargin;var Z=a.typographyBump;var N=_.D8();_.r("stop_av_measurement_on_detach")&&_.Ao(function(){gX(N)});
_.r("enable_web_home_top_landscape_image_layout_level_click")&&_.m5(N,function(){return W().interaction},void 0,function(){return!0});
a=function(){return W().interaction};
a!==void 0&&a!==null||_.qx(Error("Jh"));_.yz(N,{visibilityCallback:function(O){if(O){var S;(O=(S=W().interaction)==null?void 0:S.onFirstVisible)&&_.cX(O);var T;if(S=(T=W().adLayoutData)==null?void 0:T.activeViewData)v6(N,S),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&gX(N)})}else _.r("stop_av_measurement_on_detach")&&gX(N)},
showOption:_.uC,hideOption:Cd});var B=function(){var O,S,T;return(O=_.A(W().thumbnailImage,Tz))==null?void 0:(S=O.background)==null?void 0:(T=S.backgroundImageSource)==null?void 0:T.imageSources};
a=_.l(_.$1(!1,void 0,"GIwTMc"));var I=a.next().value,X=a.next().value;a=_.$_(function(){X(!0)});
var v=_.$_(function(){X(!1)}),U=function(){return I()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.k("top-landscape-image-layout-view-model",{class:function(){var O;return((O=W().interaction)==null?0:O.onTap)&&_.r("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:N,"on:mouseenter":a,"on:mouseleave":v},_.k("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.k(_.Y,{cond:function(){return B()&&B().length>0},
then:function(){return _.k("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.It({top:"0","background-image":function(){return"url("+String(B()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.k(_.Y,{cond:function(){return!!W().adButtonHoverOverlay},
then:function(){return _.k("div",{class:U},_.k(_.Ax,{data:function(){return W().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:H5A}))}}),_.k("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.k(_.Ax,{data:function(){return W().thumbnailImage}},{adImageViewModel:function(O){return _.k(_.w_,{data:O.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.r("enable_web_home_top_landscape_image_layout_level_click")})}})),_.k("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.k(_.qw,{data:{sources:[{clientResource:{imageName:_.r("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.k("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.k(_.Ax,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:function(O){return _.k($pA,{data:O.data,
noBottomMargin:function(){return w==null?void 0:w()},
listenToTapEvent:function(){return _.r("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return Z==null?void 0:Z()}})}})))},"gb"),"top-landscape-image-layout-view-model",{props:{data:_.qR,
noBottomMargin:_.qR,typographyBump:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;var w=a.typographyBump;var Z=_.D8();_.r("stop_av_measurement_on_detach")&&_.Ao(function(){gX(Z)});
_.yz(Z,{visibilityCallback:function(N){if(N){var B;(N=(B=W().interaction)==null?void 0:B.onFirstVisible)&&_.cX(N);var I;if(B=(I=W().adLayoutData)==null?void 0:I.activeViewData)v6(Z,B),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&gX(Z)})}else _.r("stop_av_measurement_on_detach")&&gX(Z)},
showOption:_.uC,hideOption:Cd});return _.k("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:Z},_.k("div",null,_.k(_.Ax,{data:function(){return W().videoLockup}},{lockupViewModel:function(N){return _.k(_.zn,{data:N.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:w})}})))},"hb"),"video-display-button-group-layout-view-model",{props:{data:_.qR,
noBottomMargin:_.qR,typographyBump:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;var w=a.typographyBump;var Z=_.D8();_.r("stop_av_measurement_on_detach")&&_.Ao(function(){gX(Z)});
_.yz(Z,{visibilityCallback:function(N){if(N){var B;(N=(B=W().interaction)==null?void 0:B.onFirstVisible)&&_.cX(N);var I;if(B=(I=W().adLayoutData)==null?void 0:I.activeViewData)v6(Z,B),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&gX(Z)})}else _.r("stop_av_measurement_on_detach")&&gX(Z)},
showOption:_.uC,hideOption:Cd});return _.k("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:Z},_.k("div",null,_.k(_.Ax,{data:function(){return W().videoLockup}},{lockupViewModel:function(N){return _.k(_.zn,{data:N.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:w})}})))},"ib"),"video-display-full-layout-view-model",{props:{data:_.qR,
noBottomMargin:_.qR,typographyBump:_.qR}});_.yOl=_.xQ(function(a){var W=a.data;a=_.D8();return _.k("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:a},_.k(_.Y,{cond:function(){return W().imageBadge},
then:function(w){return _.k(_.qw,{data:w,alt:""})}}))},"jb");var E0$=_.xQ(function(a){var W=a.data;var w=a.customCommandResolver;a=_.D8();_.m5(a,function(){return W().interaction},w);
_.yz(a,{visibilityCallback:function(Z){var N,B=(N=W().interaction)==null?void 0:N.onFirstVisible;Z&&B&&_.cX(B)},
showOption:_.uC});return _.k("carousel-ad-card-image-view-model",{class:function(){var Z;return((Z=W().interaction)==null?0:Z.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:a,"aria-label":function(){var Z,N;return(Z=W().interaction)==null?void 0:(N=Z.accessibility)==null?void 0:N.label}},_.k(_.Ax,{data:function(){return W().adImage}},{adImageViewModel:function(Z){return _.k(_.w_,{data:Z.data,
customCommandResolver:w})}}),_.k("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.k(_.Ax,{data:function(){return W().badge}},{adCardBadgeViewModel:_.yOl})),_.k(_.g2,{model:{color:4}}))},"kb");var ace=_.xQ(function(a){var W=_.l(_.$1(0,void 0,"o9Bzd")),w=W.next().value;W.next();var Z=W.next().value,N=_.l(_.$1(!1,void 0,"KLdzYe"));W=N.next().value;var B=N.next().value,I;_.Ao(function(){clearTimeout(I)});
N=_.$_(function(){var U;((U=a.animate)==null?0:U.call(a))?(B(!0),I=setTimeout(function(){B(!1);X()},200)):X();
return!1});
var X=function(){Z(function(U){return(U+a.numShownItems())%a.data().length})},v={};
return _.k("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.k("div",{class:_.W$("ytwHorizontalCarouselCarouselWrapper")},_.k("div",{class:_.W$("ytwHorizontalCarouselCarouselInnerWrapper",(v.ytwHorizontalCarouselAnimating=W,v))},_.k(_.k6,{each:a.data,keyBy:"INDEX"},function(U,O){return _.k("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.It({"flex-basis":function(){return"calc((100% - (8px * "+(a.numShownItems()-1)+")) / "+a.numShownItems()+")"},
order:function(){var S=O-w();S<0&&(S+=a.data().length);return S}})},a.children(U,O))}))),_.k("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":N},a.nextButton()))},"lb");var WAh=_.xQ(function(a){var W=a.data;var w=a.customCommandResolver;var Z=a.expansive;a=_.D8();_.yz(a,{visibilityCallback:function(N){var B,I=(B=W().interaction)==null?void 0:B.onFirstVisible;N&&I&&_.cX(I)},
showOption:_.uC});return _.k("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:a},_.k(ace,{data:function(){var N;return((N=W())==null?void 0:N.carouselAdCards)||[]},
nextButton:function(){return _.k(_.Ax,{data:function(){return W().nextButton}},{buttonViewModel:function(N){var B=N.data;
return _.k(_.F7,{data:function(){return(Z==null?0:Z())?Object.assign({},B(),{style:"mono"}):B()},
className:_.r("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(N){return _.k(_.Ax,{data:N},{carouselAdCardImageViewModel:function(B){return _.k(E0$,{data:B.data,customCommandResolver:w})}})}))},"mb");var wmT=_.xQ(function(a){var W=a.data;var w=a.customCommandResolver;var Z=a.className;var N=a.buttonClassName;var B=a.animationEntityKey;var I=a.expansive;return _.k("carousel-button-view-model",{class:_.W$("ytwCarouselButtonViewModelHost",Z)},_.k(_.Ax,{data:function(){return W().carousel}},{carouselAdCardCollectionViewModel:function(X){return _.k(WAh,{data:X.data,
customCommandResolver:w,expansive:I})}}),_.k(_.Ax,{data:function(){return W().button}},{adButtonViewModel:function(X){var v=X.data;
return _.k(_.Gn,{data:function(){return(I==null?0:I())?Object.assign({},v(),{style:"AD_BUTTON_STYLE_TONAL"}):v()},
className:N,customCommandResolver:w,animationEntityKey:B})}}))},"nb");_.ZLT=_.xQ(function(a){var W=a.data;a=a.className;var w=_.D8();_.AS(function(){var Z;((Z=W())==null?0:Z.backgroundColor)&&w.value.setAttribute("data-background-color",String(W().backgroundColor))});
return _.k("pivot-button-view-model",{el:w,class:_.W$("ytwPivotButtonViewModelHost",a)},_.k(_.ot,{command:function(){var Z=W();Z=Z.onClickCommand?_.rJ(Z.onClickCommand):Z.contentDescription?_.fx(Z.contentDescription):void 0;return Z},
ariaLabel:function(){return W().contentDescription}},_.k(_.Y,{cond:function(){return W().thumbnail},
then:function(Z){return _.k(_.qw,{data:Z,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.k(_.Y,{cond:function(){return W().icon},
then:function(Z){return _.k(_.P$,{icon:function(){return Z().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"ob");_.N1h=_.xQ(function(a){var W=a.data;var w=a.buttonShapeOverrideables;return _.k("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.k(_.Ax,{data:function(){return W().buttonViewModels}},{buttonViewModel:function(Z){return _.k(_.F7,{data:Z.data,
buttonOverrides:w})},
likeButtonViewModel:function(Z){return _.k(_.A8,{data:Z.data,buttonShapeOverrideables:w})},
dislikeButtonViewModel:function(Z){return _.k(_.ry,{data:Z.data,buttonShapeOverrideables:w})}}))},"pb");var tsH=_.xQ(function(a){var W=a.avatar;var w=a.headline;var Z=a.badge;var N=a.description;var B=a.expansive;a={};return _.k("yt-ad-metadata-shape",{class:_.W$("ytAdMetadataShapeHost",(a.ytAdMetadataShapeHostLarge=B,a))},_.k("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.k(_.Y,{cond:W,then:function(I){return _.k(_.wsL,{data:function(){return(B==null?0:B())?Object.assign({},I(),{size:"AD_AVATAR_SIZE_MPLUS"}):I()}})}}),_.k("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.k(_.k_,{text:w,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.k(_.Y,{cond:Z,then:function(I){return _.k(_.mR,{data:function(){return(B==null?0:B())?Object.assign({},I(),{style:"AD_BADGE_STYLE_STARK"}):I()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.k("h2",{class:"ytAdMetadataShapeHostDescription"},_.k(_.k_,{text:N,
linkInheritColor:!0})))},"qb");var $ge=_.xQ(function(a){var W=a.data;var w=a.onShow;var Z=a.expansive;a=_.D8();_.m5(a,function(){return W().interaction});
_.AS(function(){var B,I=(B=W().animatedRenderingConfig)==null?void 0:B.delayedSecondsToVisible;if(I){var X=setTimeout(w,I*1E3);_.Ao(function(){clearTimeout(X)})}});
var N={};return _.k("reels-ad-card-buttoned-view-model",{class:_.W$(function(){var B;return((B=W().interaction)==null?0:B.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(N.ytwReelsAdCardButtonedViewModelHostExpansive=Z,N)),
el:a},_.k(tsH,{avatar:function(){return _.A(W().avatar,VFJ)},
headline:function(){return W().headline},
badge:function(){return _.A(W().adBadge,zEh)},
description:function(){return W().description},
expansive:Z}),_.k(_.Ax,{data:function(){return W().ctaButton}},{adButtonViewModel:function(B){var I=B.data;
return _.k(_.Gn,{data:function(){return(Z==null?0:Z())?Object.assign({},I(),{style:"AD_BUTTON_STYLE_FILLED"}):I()}})}}))},"rb");var B1R=_.xQ(function(a){var W=a.data;a=a.expansive;var w=_.D8();_.r("web_ad_metadata_clickable")&&_.m5(w,function(){return W().interaction});
var Z={};Z=_.ZK("ytwReelsAdMetadataViewModelHost",(Z.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.r("web_ad_metadata_clickable"),Z));return _.k("reels-ad-metadata-view-model",{class:Z,el:w},_.k(tsH,{avatar:function(){return _.A(W().avatar,VFJ)},
headline:function(){return W().headline},
badge:function(){return _.A(W().adBadge,zEh)},
description:function(){return W().description},
expansive:a}))},"sb");var lcT={iconPosition:"icon-with-label",size:"L"},IcL=_.xQ(function(a){var W=a.data;a=a.overlayDensity;var w=_.D8(),Z=_.qt(a,0);_.Ka(function(){w.value.setAttribute("overlay-density",String(Z()))});
var N=function(){var S;return(S=W().reelsAdCardButtonedEntityKey)!=null?S:""},B=function(){return N()+"/ad_button"},I=_.X7(dAx,N),X=function(){var S,T;
return(T=(S=I())==null?void 0:S.value)!=null?T:!1},v=_.Au(b57),U=function(){return Object.assign({},lcT,(v()||Z()===2)&&{style:"overlay-dark"})};
a={};var O={};return _.k("reels-player-overlay-layout-view-model",{class:_.W$("ytwReelsPlayerOverlayLayoutViewModelHost",(a.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!W().extension},a.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},a)),
el:w},_.k("div",{class:_.W$("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(O.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},O))},_.k("div",{"aria-hidden":function(){return X()},
class:_.W$("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return X()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.It({"transition-duration":function(){return CXx(W())}})},_.k(_.Ax,{data:function(){return W().adMetadata}},{reelsAdMetadataViewModel:function(S){return _.k(B1R,{data:S.data,
expansive:function(){return Z()===1}})}}),_.k(_.Y,{cond:function(){return W().extension},
then:function(S){return _.k("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.k(_.Ax,{data:S},{adButtonViewModel:function(T){return _.k(_.Gn,{data:T.data,animationEntityKey:B,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(T){return _.k(wmT,{data:T.data,animationEntityKey:B,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return Z()===1}})}}))}})),_.k("div",{"aria-hidden":function(){return!X()},
class:_.W$("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return X()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.It({"transition-duration":function(){return CXx(W())}})},_.k(_.Ax,{data:function(){return W().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(S){return _.k($ge,{data:S.data,
onShow:function(){_.R5(_.oL("booleanEntity",N(),{key:N(),value:!0}))},
expansive:function(){return Z()===1}})}}))),_.k("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.k(_.Ax,{data:function(){return W().actions}},{reelActionBarViewModel:function(S){return _.k(_.N1h,{data:S.data,
buttonShapeOverrideables:U})}}),_.k(_.Ax,{data:function(){return W().menu}},{buttonViewModel:function(S){return _.k(_.F7,{data:S.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},U(),{type:"tonal"})}})}}),_.k(_.Ax,{data:function(){return W().pivotButton}},{pivotButtonViewModel:function(S){return _.k(_.ZLT,{data:S.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"tb");_.Ct(IcL,"reels-player-overlay-layout-view-model",{props:{data:_.qR,overlayDensity:_.qR}});var Zm=function(){var a=_.u.apply(this,arguments)||this;a.noBottomMargin=!1;a.overlayDensity=0;return a};
_.c(Zm,_.u);_.t=Zm.prototype;
_.t.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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.r("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]]"}}}}}};
_.t.ready=function(){var a=this;O1m(function(){a.isAttached&&$B(a.JSC$13332_storedAdSlotMetadata,a.JSC$13332_storedAdLayoutMetadata,a.adSlotMetadata,a.adLayoutMetadata)&&Wk(EP(),a.JSC$13332_storedAdSlotMetadata,a.JSC$13332_storedAdLayoutMetadata)})};
_.t.attached=function(){$B(this.JSC$13332_storedAdSlotMetadata,this.JSC$13332_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&z16(EP(),this.JSC$13332_storedAdSlotMetadata,this.JSC$13332_storedAdLayoutMetadata)};
_.t.detached=function(){$B(this.JSC$13332_storedAdSlotMetadata,this.JSC$13332_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Wk(EP(),this.JSC$13332_storedAdSlotMetadata,this.JSC$13332_storedAdLayoutMetadata)};
_.t.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.t.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13332_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13332_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13332_storedAdLayoutMetadata!==void 0&&this.JSC$13332_storedAdSlotMetadata!==void 0&&Wk(EP(),this.JSC$13332_storedAdSlotMetadata,this.JSC$13332_storedAdLayoutMetadata),z16(EP(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13332_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13332_storedAdSlotMetadata=this.adSlotMetadata)};
_.dU.Object.defineProperties(Zm.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.adLayoutMetadata}}});
Zm.prototype.onAdMetadataChanged=Zm.prototype.onAdMetadataChanged;Zm.prototype.onTypographyBumpChanged=Zm.prototype.onTypographyBumpChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Zm.prototype,"rendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Zm.prototype,"ytComponentBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Zm.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Zm.prototype,"noBottomMargin",void 0);_.f([_.b(),_.z("design:type",Object)],Zm.prototype,"overlayDensity",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Zm.prototype,"typographyBump",void 0);_.f([_.Q("data.adLayoutMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],Zm.prototype,"adLayoutMetadata",null);_.f([_.b(),_.z("design:type",Object)],Zm.prototype,"adSlotMetadata",void 0);
_.f([_.w$("ytd-video-display-full-buttoned-and-button-group-renderer"),_.z("design:type",HTMLElement)],Zm.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.f([_.a5("typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zm.prototype,"onTypographyBumpChanged",null);_.f([_.a5("adLayoutMetadata","adSlotMetadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zm.prototype,"onAdMetadataChanged",null);
Zm=_.f([_.C({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Zm);
_.D(Zm,"ytd-in-feed-ad-layout-renderer",function(){if(aze!==void 0)return aze;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return aze=a},
{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var P26;var Xm6;var N$=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return a};
_.c(N$,_.u);_.t=N$.prototype;_.t.computeHasLiveDescription=function(a){return!(a==null||!a.liveDescription)};
_.t.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.t.onYtToggleButton=function(a){var W,w=(W=this.data)==null?void 0:W.videoReminderEntityKey;w&&this.ytdReduxBehavior.dispatch(_.oL("upcomingEventReminderStateEntity",w,{key:w,state:a.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.t.attached=function(){this.updateChannelBanner()};
_.t.dataChanged=function(){this.updateChannelBanner()};
_.t.videoReminderStateChanged=function(){var a;this.videoReminderState&&_.A((a=this.data)==null?void 0:a.cta,_.F8)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.t.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var a=_.G$(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);a&&(a.startsWith("//")&&(a="https:"+a),this.hostElement.classList.add("channel-banner"),_.Hu(this.hostElement,{"--ytvmh-channel-banner":"url("+a+")"}))}else _.r("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.t.onPlayerReady=function(){this.onIronResize()};
_.t.maybeFlushDebouncer=function(){_.r("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(a){var W;a=(W=a.getElementsByTagName("yt-attributed-string"))==null?void 0:W[0];Gx7(a==null?void 0:a.polymerController)})};
_.t.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var a=_.M(this.hostElement).querySelector("#live-description"),W;a&&((W=this.data)==null?0:W.shortLiveDescription)&&a.clientWidth<a.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
N$.prototype.onIronResize=N$.prototype.onIronResize;N$.prototype.videoReminderStateChanged=N$.prototype.videoReminderStateChanged;N$.prototype.dataChanged=N$.prototype.dataChanged;N$.prototype.onYtToggleButton=N$.prototype.onYtToggleButton;_.f([_.R(_.eG),_.z("design:type",Object)],N$.prototype,"ironResizableBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],N$.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],N$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],N$.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],N$.prototype,"data",void 0);_.f([_.b({selectorArgs:["data.videoReminderEntityKey"],selector:sBe}),_.z("design:type",Object)],N$.prototype,"videoReminderState",void 0);
_.f([_.b({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.z("design:type",Boolean)],N$.prototype,"rounded",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.z("design:type",Boolean)],N$.prototype,"hasLiveDescription",void 0);_.f([_.b({reflectToAttribute:!0,value:_.r("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.z("design:type",Boolean)],N$.prototype,"resizableAdBannerSafariFix",void 0);
_.f([_.b({reflectToAttribute:!0,value:_.r("align_three_dot_menu_with_title_description")}),_.z("design:type",Boolean)],N$.prototype,"menuFix",void 0);_.f([_.ZC("yt-formatted-string"),_.z("design:type",Array)],N$.prototype,"formattedStrings",void 0);_.f([_.w$("#cta-button"),_.z("design:type",HTMLElement)],N$.prototype,"ctaButton",void 0);_.f([_.E6("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],N$.prototype,"onYtToggleButton",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N$.prototype,"dataChanged",null);_.f([_.a5("videoReminderState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N$.prototype,"videoReminderStateChanged",null);_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N$.prototype,"onIronResize",null);
N$=_.f([_.C({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],N$);
_.D(N$,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Xm6!==void 0)return Xm6;var a=document.createElement("template");_.n(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      <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(_.y().content.cloneNode(!0),
a.content.firstChild);return Xm6=a},{mode:1});var vuH;var tR=function(){var a=_.u.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};
_.c(tR,_.u);_.t=tR.prototype;_.t.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.t.onExpandedChanged=function(){this.expanded&&_.W_(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.t.onMouseOver=function(){this.maybeExpand()};
_.t.onTap=function(){this.maybeExpand()};
_.t.onExpandableTileExpanding=function(a){a!==this&&(this.expanded=!1)};
_.t.onExpandableTileLockAndCollapse=function(a){this.isLocked=!0;a!==this&&(this.expanded=!1)};
_.t.onExpandableTileUnlock=function(){this.isLocked=!1};
tR.prototype.onTap=tR.prototype.onTap;tR.prototype.onMouseOver=tR.prototype.onMouseOver;tR.prototype.onExpandedChanged=tR.prototype.onExpandedChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],tR.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],tR.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],tR.prototype,"expanded",void 0);_.f([_.lO("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tR.prototype,"onExpandedChanged",null);_.f([_.E6("mouseover"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tR.prototype,"onMouseOver",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tR.prototype,"onTap",null);
tR=_.f([_.C({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],tR);
_.D(tR,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(vuH!==void 0)return vuH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return vuH=a},{mode:1});var gue;var $x=function(){var a=_.u.apply(this,arguments)||this;a.buttonOverrides={style:"overlay"};a.useYtdPlayer=_.r("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$13344_playerManager=null;a.JSC$13344_mastheadCounter=new Egh;return a};
_.c($x,_.u);_.t=$x.prototype;_.t.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"}}}};
_.t.created=function(){this.JSC$13344_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13344_playerManager=new P7)};
_.t.ready=function(){var a=this;this.JSC$13344_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var W=_.M(this.hostElement).querySelector("#player");this.useYtdPlayer?W.style.display="none":(this.ytdPlayer.style.display="none",U$V(this.JSC$13344_playerManager,W,function(){a.onPlaybackEnded()}),_.M(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var w;
((w=a.data)==null?0:w.navigationEndpoint)&&_.E$(a.hostElement,"yt-navigate",{endpoint:a.data.navigationEndpoint})}))};
_.t.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13344_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.t.attached=function(){var a=this;_.cA(function(){a.maybePlayVideo()})};
_.t.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$13344_playerManager.playVideo(),this.getPlayerPromise().then(function(){a.JSC$13344_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.t.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13344_playerManager.stopVideo()};
_.t.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var a,W={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(W);this.setupYtdPlayer()}else SHy(this.JSC$13344_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(OPR(this.JSC$13344_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.t.getPlayerPromise=function(){return this.JSC$13344_playerManager.getPlayerPromise()};
_.t.onYtToggleButton=function(a){this.useYtdPlayer?this.toggleMute(a.detail.toggled):a.detail.toggled?this.JSC$13344_playerManager.mute():this.JSC$13344_playerManager.unMute()};
_.t.onYtNavigate=function(a){var W=hN7(a.detail.endpoint),w=ig7(this.data.clickthroughReportingData);W&&w&&(a.detail.endpoint.watchEndpoint?a.detail.tempData=w:_.fS(W,w,30))};
_.t.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.t.onExpandedChanged=function(){this.expanded?(_.W_(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.t.onMouseOver=function(){this.maybeExpand()};
_.t.onTap=function(){this.maybeExpand()};
_.t.onExpandableTileExpanding=function(a){a!==this&&(this.stopVideo(),this.expanded=!1)};
_.t.onExpandableTileLockAndCollapse=function(a){a!==this&&(this.isLocked=!0,this.expanded=!1)};
_.t.onExpandableTileUnlock=function(){this.isLocked=!1};
_.t.lockAndCollapseExpandableTiles=function(){_.aV(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.t.unlockExpandableTiles=function(){_.aV(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.t.setupYtdPlayer=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,a.ytdPlayer.getPlayerPromise(),2);W=w.yieldResult;W.addEventListener("onStateChange",function(Z){a.onPlayerStateChange(Z)});
W.addEventListener("onCueRangeExit",function(Z){a.onCueRangeExit(Z)});
_.Xd(w)})};
_.t.onPlayerStateChange=function(a){if(a===1&&(a=this.ytdPlayer.getPlayer())){var W=a.getCurrentTime(),w,Z,N=W+((Z=(w=this.data)==null?void 0:w.playbackDurationMs)!=null?Z:0)/1E3;a.addCueRange("playback",W,N);this.JSC$13344_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.t.onCueRangeExit=function(a){a==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.t.toggleMute=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,W.ytdPlayer.getPlayerPromise(),2);w=Z.yieldResult;a?w.mute():w.unMute();_.Xd(Z)})};
$x.prototype.onTap=$x.prototype.onTap;$x.prototype.onMouseOver=$x.prototype.onMouseOver;$x.prototype.onExpandedChanged=$x.prototype.onExpandedChanged;$x.prototype.onYtNavigate=$x.prototype.onYtNavigate;$x.prototype.onYtToggleButton=$x.prototype.onYtToggleButton;$x.prototype.dataChanged=$x.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],$x.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$x.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],$x.prototype,"expanded",void 0);_.f([_.b(),_.z("design:type",Object)],$x.prototype,"buttonOverrides",void 0);
_.f([_.b(),_.z("design:type",Object)],$x.prototype,"useYtdPlayer",void 0);_.f([_.w$("#ytd-player"),_.z("design:type",Object)],$x.prototype,"ytdPlayer",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$x.prototype,"dataChanged",null);_.f([_.E6("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],$x.prototype,"onYtToggleButton",null);
_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],$x.prototype,"onYtNavigate",null);_.f([_.lO("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$x.prototype,"onExpandedChanged",null);_.f([_.E6("mouseover"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$x.prototype,"onMouseOver",null);
_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$x.prototype,"onTap",null);$x=_.f([_.C({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],$x);
_.D($x,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(gue!==void 0)return gue;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return gue=a},{mode:1});var ouR;var Bk=function(){return _.u.apply(this,arguments)||this};
_.c(Bk,_.u);Bk.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Bk.prototype.onShow=function(){var a=_.M(this.hostElement).querySelector("#live-description"),W;a&&((W=this.data)==null?0:W.shortLiveDescription)&&a.clientWidth<a.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Bk.prototype.onYtToggleButton=function(a){var W,w=(W=this.data)==null?void 0:W.videoReminderEntityKey;w&&this.ytdReduxBehavior.dispatch(_.oL("upcomingEventReminderStateEntity",w,{key:w,state:a.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Bk.prototype.videoReminderStateChanged=function(){var a;this.videoReminderState&&_.A((a=this.data)==null?void 0:a.cta,_.F8)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Bk.prototype.videoReminderStateChanged=Bk.prototype.videoReminderStateChanged;Bk.prototype.onYtToggleButton=Bk.prototype.onYtToggleButton;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Bk.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Bk.prototype,"data",void 0);
_.f([_.b({selectorArgs:["data.videoReminderEntityKey"],selector:sBe}),_.z("design:type",Object)],Bk.prototype,"videoReminderState",void 0);_.f([_.E6("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Bk.prototype,"onYtToggleButton",null);_.f([_.a5("videoReminderState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bk.prototype,"videoReminderStateChanged",null);
Bk=_.f([_.C({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Bk);
_.D(Bk,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(ouR!==void 0)return ouR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ouR=a},{mode:_.Vn("kevlar_poly_si_batch_j065")?1:2});var kJy;var lu=function(){var a=_.u.apply(this,arguments)||this;a.useYtdPlayer=_.r("use_ytd_player_for_desktop_masthead");a.buttonOverrides={style:"overlay"};a.JSC$13352_playerManager=null;a.JSC$13352_mastheadCounter=new Egh;a.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return a};
_.c(lu,_.u);_.t=lu.prototype;_.t.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"}}}};
_.t.created=function(){this.JSC$13352_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13352_playerManager=new P7)};
_.t.ready=function(){var a=this;this.JSC$13352_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var W;(W=this.embeddedPlayer)==null||W.remove()}else{var w;(w=this.ytdPlayer)==null||w.remove();U$V(this.JSC$13352_playerManager,this.embeddedPlayer,function(){a.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){a.data&&a.data.navigationEndpoint&&_.E$(a.hostElement,"yt-navigate",{endpoint:a.data.navigationEndpoint})})}};
_.t.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13352_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.t.dataChanged=function(){var a=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var W=!this.data.disableAutoPlayback,w,Z={autoplay:W,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((w=this.data.playbackStartMs)!=null?w:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(W?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(Z);this.setupYtdPlayer()}else SHy(this.JSC$13352_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(OPR(this.JSC$13352_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13352_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.aV(a.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");a.JSC$13352_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.t.getPlayerPromise=function(){return this.JSC$13352_playerManager.getPlayerPromise()};
_.t.onYtToggleButton=function(a){this.useYtdPlayer?this.toggleMute(a.detail.toggled):a.detail.toggled?this.JSC$13352_playerManager.mute():this.JSC$13352_playerManager.unMute()};
_.t.onYtNavigate=function(a){var W=hN7(a.detail.endpoint),w=ig7(this.data.clickthroughReportingData);W&&w&&(a.detail.endpoint.watchEndpoint?a.detail.tempData=w:_.fS(W,w,30))};
_.t.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13352_playerManager.stopVideo()};
_.t.setupYtdPlayer=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,a.ytdPlayer.getPlayerPromise(),2);W=w.yieldResult;W.addEventListener("onStateChange",function(Z){a.onPlayerStateChange(Z)});
W.addEventListener("onCueRangeExit",function(Z){a.onCueRangeExit(Z)});
_.Xd(w)})};
_.t.onPlayerStateChange=function(a){if(a===1&&(a=this.ytdPlayer.getPlayer())){var W=a.getCurrentTime(),w,Z,N=W+((Z=(w=this.data)==null?void 0:w.playbackDurationMs)!=null?Z:0)/1E3;a.addCueRange("playback",W,N);_.aV(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13352_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.t.onCueRangeExit=function(a){a==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.t.toggleMute=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,W.ytdPlayer.getPlayerPromise(),2);w=Z.yieldResult;a?w.mute():w.unMute();_.Xd(Z)})};
_.dU.Object.defineProperties(lu.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a,W;if(!((a=this.data)==null?0:(W=a.accessibilityData)==null?0:W.label))return"Ad primary link";var w,Z;return _.P_("AD_TITLE",{title:(w=this.data)==null?void 0:(Z=w.accessibilityData)==null?void 0:Z.label})}}});
lu.prototype.onYtMastheadHidden=lu.prototype.onYtMastheadHidden;lu.prototype.onYtNavigate=lu.prototype.onYtNavigate;lu.prototype.onYtToggleButton=lu.prototype.onYtToggleButton;lu.prototype.dataChanged=lu.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],lu.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],lu.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],lu.prototype,"useYtdPlayer",void 0);_.f([_.w$("ytd-toggle-button-renderer"),_.z("design:type",Object)],lu.prototype,"muteButton",void 0);_.f([_.b(),_.z("design:type",Object)],lu.prototype,"buttonOverrides",void 0);
_.f([_.Q("data.accessibilityData.label"),_.z("design:type",String),_.z("design:paramtypes",[])],lu.prototype,"titleAriaLabel",null);_.f([_.w$("#replay-button"),_.z("design:type",Object)],lu.prototype,"replayButton",void 0);_.f([_.w$("#player-container"),_.z("design:type",Object)],lu.prototype,"playerContainer",void 0);_.f([_.w$("#player"),_.z("design:type",Object)],lu.prototype,"embeddedPlayer",void 0);_.f([_.w$("#ytd-player"),_.z("design:type",Object)],lu.prototype,"ytdPlayer",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lu.prototype,"dataChanged",null);_.f([_.E6("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],lu.prototype,"onYtToggleButton",null);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],lu.prototype,"onYtNavigate",null);
_.f([_.E6("yt-masthead-hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lu.prototype,"onYtMastheadHidden",null);lu=_.f([_.C({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],lu);
_.D(lu,"ytd-video-masthead-ad-primary-video-renderer",function(){if(kJy!==void 0)return kJy;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return kJy=a},{mode:2});var UgR;var Ij=function(){var a=_.u.apply(this,arguments)||this;a.collapsed=!1;a.impressionResolver=_.Rt();a.JSC$13356_activeViewMeasurementDataResolver=_.Rt();a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a};
_.c(Ij,_.u);_.t=Ij.prototype;_.t.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"}}}};
_.t.ready=function(){var a=this;_.M(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){a.expandAd()});
this.hostElement.addEventListener("yt-action",function(W){if(W.detail.actionName==="yt-service-request"){var w=W.detail.args[1];w.videoMastheadAdMuteCommand&&(a.collapseAd(w.videoMastheadAdMuteCommand.encryptedMastheadId),W.stopPropagation())}})};
_.t.attached=function(){var a=this;_.cA(function(){a.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(W){if(!a.collapsed){W=_.l(W);for(var w=W.next();!w.done;w=W.next())w=w.value,Ql(w.baseUrl,w.attributionSrcMode);a.data.impressionCommand=void 0}});
this.JSC$13356_activeViewMeasurementDataResolver.promise.then(function(W){a.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)});
_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.dataChanged=function(){var a;((a=this.data.impressionCommand)==null?0:a.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var W;((W=this.data)==null?0:W.activeView)&&this.JSC$13356_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))};
_.t.computeWidescreen=function(a){var W;return!!(a&&((W=_.A(a,G1J))==null?0:W.isWidescreen))};
_.t.computeExpandable=function(a){return!!(a&&a.length>0)};
_.t.onIronResize=function(){if(this.expandable){var a=_.M(this.hostElement).querySelector("#expandable-tile-container :first-child");a&&!a.expanded&&(a.expanded=!0)}};
_.t.handleMuteAd=function(){this.collapseAd(null)};
_.t.restoreCollapsedState=function(a){this.collapsed=_.gS().get("HIDDEN_MASTHEAD_ID")===a};
_.t.collapseAd=function(a){if(a){var W=_.gS();W.set("HIDDEN_MASTHEAD_ID",a);W.save()}(a=_.M(this.hostElement).querySelector("#video"))&&_.E$(a,"yt-masthead-hidden");this.collapsed=!0};
_.t.expandAd=function(){var a=_.gS();a.set("HIDDEN_MASTHEAD_ID",!1);a.save();location.reload()};
_.t.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Ij.prototype.onIronResize=Ij.prototype.onIronResize;Ij.prototype.dataChanged=Ij.prototype.dataChanged;_.f([_.R(_.eG),_.z("design:type",Object)],Ij.prototype,"ironResizableBehavior",void 0);_.f([_.R(Ae),_.z("design:type",Object)],Ij.prototype,"ytdActiveViewBehavior",void 0);_.f([_.R(_.Lg),_.z("design:type",Object)],Ij.prototype,"ytdGridStateAwareBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Ij.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ij.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ij.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.z("design:type",Boolean)],Ij.prototype,"widescreen",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.z("design:type",Boolean)],Ij.prototype,"expandable",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ij.prototype,"collapsed",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ij.prototype,"dataChanged",null);
_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ij.prototype,"onIronResize",null);Ij=_.f([_.C({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Ij);
_.D(Ij,"ytd-video-masthead-ad-v3-renderer",function(){if(UgR!==void 0)return UgR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return UgR=a},{mode:2});var Pk=function(){return _.u.apply(this,arguments)||this};
_.c(Pk,_.u);_.t=Pk.prototype;_.t.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.t.ready=function(){var a=this;O1m(function(){a.isAttached&&$B(a.JSC$13361_storedAdSlotMetadata,a.JSC$13361_storedAdLayoutMetadata,a.adSlotMetadata,a.adLayoutMetadata)&&Wk(EP(),a.JSC$13361_storedAdSlotMetadata,a.JSC$13361_storedAdLayoutMetadata)})};
_.t.attached=function(){$B(this.JSC$13361_storedAdSlotMetadata,this.JSC$13361_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&z16(EP(),this.JSC$13361_storedAdSlotMetadata,this.JSC$13361_storedAdLayoutMetadata)};
_.t.detached=function(){$B(this.JSC$13361_storedAdSlotMetadata,this.JSC$13361_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Wk(EP(),this.JSC$13361_storedAdSlotMetadata,this.JSC$13361_storedAdLayoutMetadata)};
_.t.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13361_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13361_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13361_storedAdLayoutMetadata!==void 0&&this.JSC$13361_storedAdSlotMetadata!==void 0&&Wk(EP(),this.JSC$13361_storedAdSlotMetadata,this.JSC$13361_storedAdLayoutMetadata),z16(EP(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13361_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13361_storedAdSlotMetadata=this.adSlotMetadata)};
_.dU.Object.defineProperties(Pk.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.adLayoutMetadata}}});
Pk.prototype.onAdMetadataChanged=Pk.prototype.onAdMetadataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Pk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Pk.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Pk.prototype,"data",void 0);_.f([_.Q("data.adLayoutMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],Pk.prototype,"adLayoutMetadata",null);
_.f([_.b(),_.z("design:type",Object)],Pk.prototype,"adSlotMetadata",void 0);_.f([_.a5("adLayoutMetadata","adSlotMetadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pk.prototype,"onAdMetadataChanged",null);Pk=_.f([_.C({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Pk);
_.D(Pk,"ytd-page-top-ad-layout-renderer",function(){if(P26!==void 0)return P26;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return P26=
a},{mode:_.Vn("kevlar_poly_si_batch_j070")?1:2});var OL6;var Xy=function(){var a=_.u.apply(this,arguments)||this;a.noBottomMargin=!1;a.overlayDensity=0;a.typographyBump=!1;return a};
_.c(Xy,_.u);_.t=Xy.prototype;
_.t.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]]"}}}}}};
_.t.ready=function(){var a=this;O1m(function(){a.isAttached&&a.adSlotMetadata&&VCR(EP(),a.adSlotMetadata)})};
_.t.attached=function(){if(this.adSlotMetadata){var a;if(this.adSlotMetadata===((a=this.data)==null?void 0:a.adSlotMetadata))mbH(EP(),this.adSlotMetadata);else{var W;_.jJ(Error("Kh`"+this.adSlotMetadata+"`"+((W=this.data)==null?void 0:W.adSlotMetadata)))}}};
_.t.detached=function(){this.adSlotMetadata&&VCR(EP(),this.adSlotMetadata)};
_.t.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.t.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&VCR(EP(),this.adSlotMetadata),mbH(EP(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.dU.Object.defineProperties(Xy.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var a,W,w=_.A((a=this.data)==null?void 0:(W=a.fulfillmentContent)==null?void 0:W.fulfilledLayout,_.fLH),Z;return(a=(Z=_.A(w==null?void 0:w.renderingContent,DTR))==null?void 0:Z.layout)?a.toLowerCase().replace(/_/g,"-"):""}}});
Xy.prototype.onAdSlotMetadataChanged=Xy.prototype.onAdSlotMetadataChanged;Xy.prototype.onTypographyBumpChanged=Xy.prototype.onTypographyBumpChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Xy.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Xy.prototype,"rendererBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Xy.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Xy.prototype,"noBottomMargin",void 0);_.f([_.b(),_.z("design:type",Object)],Xy.prototype,"overlayDensity",void 0);_.f([_.b(),_.z("design:type",Object)],Xy.prototype,"typographyBump",void 0);_.f([_.w$("ytd-in-feed-ad-layout-renderer"),_.z("design:type",HTMLElement)],Xy.prototype,"inFeedAdLayoutRenderer",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",String),_.z("design:paramtypes",[])],Xy.prototype,"layout",null);_.f([_.a5("typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xy.prototype,"onTypographyBumpChanged",null);_.f([_.a5("data.adSlotMetadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xy.prototype,"onAdSlotMetadataChanged",null);
Xy=_.f([_.C({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Xy);
_.D(Xy,"ytd-ad-slot-renderer",function(){if(OL6!==void 0)return OL6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return OL6=a},{mode:_.Vn("kevlar_poly_si_batch_j077")?
1:2});var SeE;var vk=function(){return _.u.apply(this,arguments)||this};
_.c(vk,_.u);_.t=vk.prototype;_.t.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"}}}};
_.t.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&TIx(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.t.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var a=_.l(this.data.impressionUrls),W=a.next();!W.done;W=a.next())W=W.value,e5C(W,j1m(W));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.t.attached=function(){var a=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.dU.Object.defineProperties(vk.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
vk.prototype.dataChanged=vk.prototype.dataChanged;vk.prototype.onTap=vk.prototype.onTap;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.f([_.R(Ae),_.z("design:type",Object)],vk.prototype,"ytdActiveViewBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],vk.prototype,"ytdReduxBehavior",void 0);
_.f([_.b({selector:_.RL}),_.z("design:type",Object)],vk.prototype,"isGridViewEnabled",void 0);_.f([_.Q("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],vk.prototype,"watchFeedBigThumbs",null);_.f([_.Q("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],vk.prototype,"thumbnailWidth",null);_.f([_.b(),_.z("design:type",Object)],vk.prototype,"data",void 0);
_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vk.prototype,"onTap",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vk.prototype,"dataChanged",null);vk=_.f([_.C({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],vk);
_.D(vk,"ytd-compact-promoted-video-renderer",function(){if(SeE!==void 0)return SeE;var a=document.createElement("template");_.n(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<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" 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-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" 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');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);return SeE=a},{mode:1});var YeL;_.pA("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var g_=function(){return _.u.apply(this,arguments)||this};
_.c(g_,_.u);g_.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],g_.prototype,"data",void 0);g_=_.f([_.C({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],g_);
_.D(g_,"ytd-search-pyv-renderer",function(){if(YeL!==void 0)return YeL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return YeL=a},{mode:1});var T1l;_.pA("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var oj=function(){var a=_.u.apply(this,arguments)||this;a.roundedContainer=!0;a.JSC$13377_handleOpenPostCommentDialogActionAfterStamp=!1;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.c(oj,_.u);_.t=oj.prototype;
_.t.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}}};
_.t.onStampFinished=function(){this.JSC$13377_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.t.handleSignalActionOpenPostCommentDialogAction=function(){var a=_.M(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");a?a.openDialog():this.JSC$13377_handleOpenPostCommentDialogActionAfterStamp=!0};
_.t.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.t.computeHideBorder=function(){return this.isInEngagementPanel};
_.t.computeIsCompact=function(){return this.isInEngagementPanel};
_.t.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"};
_.t.computeUsesFullLockup=function(){var a,W=(a=this.data)==null?void 0:a.post,w;a=(w=_.A(W,w0h))==null?void 0:w.surface;var Z;w=(Z=_.A(W,Nm6))==null?void 0:Z.originalPost;var N;if(Z=a||((N=_.A(w,w0h))==null?void 0:N.surface))return!this.computeUsesCompactLockup(Z)&&this.useUpdatedRepostUi;var B;return((B=_.A(W,Nm6))==null?void 0:B.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.dU.Object.defineProperties(oj.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var a,W;return((W=_.A((a=this.data)==null?void 0:a.post,w0h))==null?void 0:W.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.useUpdatedRepostUi}}});
oj.prototype.onYtCommentModerationPanelEmpty=oj.prototype.onYtCommentModerationPanelEmpty;oj.prototype.onStampFinished=oj.prototype.onStampFinished;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],oj.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],oj.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oj.prototype,"roundedContainer",void 0);_.f([_.b({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.z("design:type",Boolean)],oj.prototype,"hideBorder",void 0);_.f([_.b({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.z("design:type",Boolean)],oj.prototype,"isCompact",void 0);
_.f([_.b({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.z("design:type",Boolean)],oj.prototype,"usesFullLockup",void 0);_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oj.prototype,"onStampFinished",null);
_.f([_.E6("ytd-comment-moderation-panel-empty"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],oj.prototype,"onYtCommentModerationPanelEmpty",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oj.prototype,"isInEngagementPanel",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oj.prototype,"useUpdatedRepostUi",null);
oj=_.f([_.C({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],oj);
_.D(oj,"ytd-backstage-post-thread-renderer",function(){if(T1l!==void 0)return T1l;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return T1l=a},{mode:1});var KAy;var kx=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.c(kx,_.u);kx.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
kx.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var a=this.data.thumbnail.thumbnails;this.isDarkTheme&&(a=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(a=_.G$(a,24,void 0,"height"))?a:void 0}};
kx.prototype.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
kx.prototype.computeHasText=function(){var a;return!((a=this.data)==null||!a.text)};
_.dU.Object.defineProperties(kx.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.SB(this.bannerImageUrl))+'");'}}});
kx.prototype.computeHasText=kx.prototype.computeHasText;kx.prototype.computeBannerImageUrl=kx.prototype.computeBannerImageUrl;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],kx.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],kx.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],kx.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],kx.prototype,"isDarkTheme",void 0);_.f([_.b(),_.z("design:type",String)],kx.prototype,"bannerImageUrl",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.z("design:type",Boolean)],kx.prototype,"hasText",void 0);_.f([_.a5("data","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kx.prototype,"computeBannerImageUrl",null);
_.f([_.a5("data.text"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kx.prototype,"computeHasText",null);_.f([_.Q("bannerImageUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],kx.prototype,"bannerStyle",null);kx=_.f([_.C({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],kx);
_.D(kx,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(KAy!==void 0)return KAy;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return KAy=a},{mode:1});var pm$;var UH=function(){return _.u.apply(this,arguments)||this};
_.c(UH,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],UH.prototype,"data",void 0);UH=_.f([_.C({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],UH);
_.D(UH,"ytd-backstage-zero-state-renderer",function(){if(pm$!==void 0)return pm$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return pm$=a},{mode:1});var r5A;var OH=function(){return _.u.apply(this,arguments)||this};
_.c(OH,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],OH.prototype,"data",void 0);_.f([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],OH.prototype,"icon",void 0);OH=_.f([_.C({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],OH);
_.D(OH,"ytd-post-filter-zero-state-renderer",function(){if(r5A!==void 0)return r5A;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return r5A=a},{mode:1});var A5A;var hJ6={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Sv=function(){return _.u.apply(this,arguments)||this};
_.c(Sv,_.u);Sv.prototype.configureRendererStamper=function(){return hJ6};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Sv.prototype,"rendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Sv.prototype,"data",void 0);_.f([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],Sv.prototype,"icon",void 0);Sv=_.f([_.C({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Sv);
_.D(Sv,"ytd-post-scheduling-zero-state-renderer",function(){if(A5A!==void 0)return A5A;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return A5A=a},{mode:1});var iLA;var Yx=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return a};
_.c(Yx,_.u);Yx.prototype.onTabsActivate=function(a){this.data&&this.data.tabs&&_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[a.detail.selected].navigationEndpoint})};
Yx.prototype.shouldShowTotalCount=function(a){return a&&a.totalCount!==void 0};
Yx.prototype.handleUpdatePostsTotalCountAction=function(a){var W=this.get(["data.tabs",1,"totalCount"]),w=this.get("updatePostsTotalCountAction.updateType",a);a=this.get("updatePostsTotalCountAction.number",a);W!==void 0&&w!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&a&&(w==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(W)+a):w==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(W)-a))};
_.dU.Object.defineProperties(Yx.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var a=0,W=this.data.tabs.length;a<W;a++)if(this.data.tabs[a].selected)return a;return 0}}});
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Yx.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Yx.prototype,"rendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Yx.prototype,"data",void 0);_.f([_.Q("data.tabs"),_.z("design:type",Number),_.z("design:paramtypes",[])],Yx.prototype,"selected",null);Yx=_.f([_.C({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Yx);
_.D(Yx,"ytd-post-stream-filter-renderer",function(){if(iLA!==void 0)return iLA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return iLA=a},{mode:1});var c5l;var TW=function(){return _.u.apply(this,arguments)||this};
_.c(TW,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],TW.prototype,"kevlarBehaviors",void 0);_.f([_.b(),_.z("design:type",Object)],TW.prototype,"data",void 0);TW=_.f([_.C({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],TW);
_.D(TW,"ytd-channel-age-gate-renderer",function(){if(c5l!==void 0)return c5l;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return c5l=a},{mode:1});var eJ$;_.pA("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var KP=function(){var a=_.u.apply(this,arguments)||this;a.data=null;return a};
_.c(KP,_.u);KP.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.dU.Object.defineProperties(KP.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return((a=this.data)==null?0:(W=a.title)==null?0:(w=W.runs)==null?0:w.length)?147:160}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],KP.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],KP.prototype,"imageSizePx",null);KP=_.f([_.C({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],KP);
_.D(KP,"ytd-channel-owner-empty-state-renderer",function(){if(eJ$!==void 0)return eJ$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return eJ$=a},{mode:1});var nuE;var jpL;var pP=function(){var a=_.u.apply(this,arguments)||this;a.boundSubmitSearch=function(){a.submitSearch()};
a.boundClearSearch=function(){a.clearSearch()};
return a};
_.c(pP,_.u);_.t=pP.prototype;_.t.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]]"}}}}}};
_.t.toggleClearButton=function(){this.hideClearButton=mNE||!this.input.value};
_.t.submitOnEnterKeyUp=function(a){a.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.t.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.t.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.t.submit=function(){_.E$(this.hostElement,"search-query-changed",this.input.value)};
pP.prototype.toggleClearButton=pP.prototype.toggleClearButton;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],pP.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],pP.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],pP.prototype,"hideClearButton",void 0);_.f([_.b(),_.z("design:type",Object)],pP.prototype,"boundSubmitSearch",void 0);_.f([_.b(),_.z("design:type",Object)],pP.prototype,"boundClearSearch",void 0);_.f([_.w$("#input"),_.z("design:type",Object)],pP.prototype,"input",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pP.prototype,"toggleClearButton",null);
pP=_.f([_.C({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],pP);
_.D(pP,"ytd-channel-switcher-search-box-renderer",function(){if(jpL!==void 0)return jpL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return jpL=a},{mode:1});var LAl;var r_=function(){var a=_.u.apply(this,arguments)||this;a.boundSubmit=function(){a.submit()};
return a};
_.c(r_,_.u);_.t=r_.prototype;_.t.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"}}}}};
_.t.ready=function(){var a=this;this.form.addEventListener("submit",function(W){return a.onSubmit(W)})};
_.t.onSubmit=function(a){a.preventDefault();return!1};
_.t.toggleClearButton=function(){this.hideClearButton=mNE||!this.input.value};
_.t.submitOnEnterKeyUp=function(a){a.keyCode===13&&this.submit()};
_.t.submit=function(){var a=this.data.endpoint,W=(0,_.T5.unsafeClone)(a);_.A(W,_.I1)?_.A(W,_.I1).query=this.input.value:_.A(W,_.Pu)&&(_.A(W,_.Pu).query=this.input.value);var w=_.A(W.commandMetadata,_.mm);(w==null?0:w.url)?(w.url=_.Rg(w.url,"query",this.input.value),_.E$(this.hostElement,"yt-navigate",{endpoint:W})):_.A(W,QYH)?(_.A(W,QYH).channelSwitcherQuery=this.input.value,_.K().resolve(_.zU).resolveCommand(W,{form:{element:this.hostElement}})):(a=Error("Lh`"+JSON.stringify(a)),_.eJ(a))};
_.t.getUrl=function(a){return this.get("commandMetadata.webCommandMetadata.url",a)};
r_.prototype.toggleClearButton=r_.prototype.toggleClearButton;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],r_.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],r_.prototype,"hideClearButton",void 0);
_.f([_.b(),_.z("design:type",Object)],r_.prototype,"boundSubmit",void 0);_.f([_.w$("#form"),_.z("design:type",HTMLFormElement)],r_.prototype,"form",void 0);_.f([_.w$("#input"),_.z("design:type",Object)],r_.prototype,"input",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r_.prototype,"toggleClearButton",null);r_=_.f([_.C({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],r_);
_.D(r_,"ytd-search-box-renderer",function(){if(LAl!==void 0)return LAl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return LAl=a},{mode:2});var AR=function(){var a=_.u.apply(this,arguments)||this;a.showSearchBox=!0;return a};
_.c(AR,_.u);AR.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],AR.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],AR.prototype,"showSearchBox",void 0);AR=_.f([_.C({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],AR);
_.D(AR,"ytd-channel-switcher-header-renderer",function(){if(nuE!==void 0)return nuE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return nuE=a},{mode:1});var J5h;var FAR;var hR=function(){var a=_.u.apply(this,arguments)||this;a.isDisplayed=!0;return a};
_.c(hR,_.u);_.t=hR.prototype;_.t.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.dataChanged=function(){this.isDisplayed=!0};
_.t.computeType=function(a){return a||"UNKNOWN"};
_.t.onYtServiceRequestCompleted=function(a){a.stopPropagation();this.isDisplayed=!1};
_.t.onClose=function(){this.isDisplayed=!1};
hR.prototype.onYtServiceRequestCompleted=hR.prototype.onYtServiceRequestCompleted;hR.prototype.dataChanged=hR.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],hR.prototype,"data",void 0);
_.f([_.b({computed:"computeType(data.type)",reflectToAttribute:!0}),_.z("design:type",String)],hR.prototype,"type",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hR.prototype,"isDisplayed",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hR.prototype,"dataChanged",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hR.prototype,"onYtServiceRequestCompleted",null);hR=_.f([_.C({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],hR);
_.D(hR,"ytd-alert-with-button-renderer",function(){if(FAR!==void 0)return FAR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return FAR=a},{mode:1});var iu=function(){var a=_.u.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};
_.c(iu,_.u);_.t=iu.prototype;_.t.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.t.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.t.updateChannelSwitcherAction=function(a){var W;a=(W=_.A(a,SlH))==null?void 0:W.page;_.A(a,OkV)!==void 0&&(this.data=_.A(a,OkV))};
_.t.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]]"}}}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.t.searchQueryChanged=function(a,W){if(this.data&&this.data.contents&&this.data.contents.length){a=[];var w=[];this.hideCreateChannelButton=this.noResult=!1;for(var Z=document.querySelectorAll("ytd-account-item-renderer"),N=_.l(Z),B=N.next();!B.done;B=N.next())B=B.value,w.push(B),B.style.display="block";this.resetRightBorder(w);if(W){this.hideCreateChannelButton=!0;for(w=1;w<this.data.contents.length;w++)if(B=this.data.contents[w],_.A(B,MFA)){var I=void 0,X=void 0;N=(I=_.A(B,MFA))==null?void 0:(X=
I.accountName)==null?void 0:X.simpleText;X=I=void 0;B=(I=_.A(B,MFA))==null?void 0:(X=I.channelHandle)==null?void 0:X.simpleText;(I=Z[w-1])&&N&&_.oC(N,W)?a.push(I):_.r("enable_handle_search_on_channel_switcher")&&I&&B&&_.oC(B.toString(),W.toString())?a.push(I):I.style.display="none"}a.length===0&&(this.noResult=!0);this.resetRightBorder(a)}}};
_.t.resetRightBorder=function(a){for(var W=0;W<a.length;W++)a[W].style.borderRight=!this.hideCreateChannelButton&&(W+2)%3===0||this.hideCreateChannelButton&&(W+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.t.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.t.setShowSearchBox=function(a){if(a&&a.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var W=0;W<a.contents.length;W++)_.A(a.contents[W],_.BN)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.t.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.dU.Object.defineProperties(iu.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.contents)}}});
iu.prototype.onContinuationItemsUpdated=iu.prototype.onContinuationItemsUpdated;iu.prototype.searchQueryChanged=iu.prototype.searchQueryChanged;iu.prototype.onDataChanged=iu.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],iu.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.j8),_.z("design:type",Object)],iu.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],iu.prototype,"data",void 0);_.f([_.w$("ytd-channel-switcher-header-renderer"),_.z("design:type",Object)],iu.prototype,"channelSwitcherHeaderRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],iu.prototype,"noResult",void 0);
_.f([_.b(),_.z("design:type",Object)],iu.prototype,"enableAlertBanner",void 0);_.f([_.b(),_.z("design:type",Object)],iu.prototype,"dismissedAlertBanner",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],iu.prototype,"hideCreateChannelButton",void 0);_.f([_.Q("data.contents"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],iu.prototype,"isLoading",null);_.f([_.b(),_.z("design:type",Object)],iu.prototype,"boundDismissAlertBanner",void 0);
_.f([_.b({computed:"computeButtonOverride()"}),_.z("design:type",Object)],iu.prototype,"buttonOverride",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iu.prototype,"onDataChanged",null);_.f([_.E6("search-query-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,String]),_.z("design:returntype")],iu.prototype,"searchQueryChanged",null);
_.f([_.E6("yt-next-continuation-data-updated"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],iu.prototype,"onContinuationItemsUpdated",null);iu=_.f([_.C({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],iu);
_.D(iu,"ytd-channel-switcher-page-renderer",function(){if(J5h!==void 0)return J5h;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return J5h=a},{mode:1});var Mse;var RJe;var ck=function(){var a=_.u.apply(this,arguments)||this;a.images=[];a.selectedImageIndex=0;return a};
_.c(ck,_.u);_.t=ck.prototype;
_.t.ready=function(){_.vX(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.vX(this.JSC$13422_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.vX(this.JSC$13422_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.vX(this.JSC$13422_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.t.onThumbnailClick=function(a){if(a=a.event_.detail)this.selectedImageIndex=this.images.indexOf(a)};
_.t.updateImageThumbnails=function(a){a=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:a.event_.detail});this.images.splice(this.selectedImageIndex,1,a);this.images=[].concat(_.K8(this.images))};
_.t.cancelImageRepositions=function(){this.selectedImageIndex=0;_.E$(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.t.saveImageRepositions=function(){this.selectedImageIndex=0;_.E$(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.dU.Object.defineProperties(ck.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var a=this;return(this.images||[]).map(function(W,w){return{image:W,selected:w===a.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.f([_.w$("ytd-backstage-image-preview-renderer"),_.z("design:type",Object)],ck.prototype,"JSC$13422_imagePreviewContainer",void 0);_.f([_.w$(".thumbnail-images-container"),_.z("design:type",HTMLElement)],ck.prototype,"thumbnailImagesContainer",void 0);_.f([_.b(),_.z("design:type",Array)],ck.prototype,"images",void 0);
_.f([_.b(),_.z("design:type",Object)],ck.prototype,"repositionInstructions",void 0);_.f([_.b(),_.z("design:type",Object)],ck.prototype,"selectedImageIndex",void 0);_.f([_.Q("images","selectedImageIndex"),_.z("design:type",Array),_.z("design:paramtypes",[])],ck.prototype,"thumbnailRendererDatas",null);_.f([_.Q("images","selectedImageIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],ck.prototype,"selectedImageData",null);
ck=_.f([_.C({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],ck);
_.D(ck,"ytd-backstage-multi-image-reposition-renderer",function(){if(RJe!==void 0)return RJe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return RJe=a},{mode:1});var ev=function(a,W){_.Ti.call(this);this.uploadUrl=a;this.channelId=W;this.imagesUploadData=[]};
_.c(ev,_.Ti);ev.prototype.getAllUploadStatuses=function(){var a=this,W,w,Z;return _.P(function(N){if(N.nextAddress==1)return _.g(N,qey(a),2);W=N.yieldResult;w=W.get("succeed");Z=W.get("failed");return N.return(w.concat(Z))})};
var xgl=function(a){var W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,qey(a),2);W=Z.yieldResult;w=W.get("failed");w.length>0&&QpV(a,w);return Z.return(a.getAllUploadStatuses())})},qey=function(a){var W,w,Z,N,B,I,X;
return _.P(function(v){if(v.nextAddress==1)return W=new Map,_.g(v,Promise.allSettled(a.imagesUploadData.map(function(U){return U.uploadPromise})),2);
w=v.yieldResult;Z=[];N=_.l(w);for(B=N.next();!B.done;B=N.next())I=B.value,I.status==="fulfilled"&&Z.push(I.value);X=a.imagesUploadData.map(function(U){return U.image}).filter(function(U){return Z.every(function(O){return O.id!==U.id})});
W.set("succeed",Z);W.set("failed",X);return v.return(W)})},QpV=function(a,W){W=_.l(W);
for(var w=W.next();!w.done;w=W.next()){var Z=a;w=w.value;bLJ(Z,w.id)>=0&&Z.cancel(w.id);var N=new spV(w),B=_.pz$(Z.uploadUrl,{"X-YouTube-ChannelId":Z.channelId},w.imageBlob);N.transfer=B;N.uploadPromise=ule(B,w);Z.imagesUploadData.push(N);B.run()}};
ev.prototype.cancel=function(a){var W=bLJ(this,a);W!==-1&&((W=this.imagesUploadData[W].transfer)&&W.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(w){return w.image.id!==a}))};
var bLJ=function(a,W){return a.imagesUploadData.findIndex(function(w){return w.image.id===W})},ule=function(a,W){return new Promise(function(w,Z){a.listen("l",function(){var N=a.getResponseText();
N?(N=JSON.parse(N).encryptedBlobId,W.encryptedBlobId=N,w(W)):Z("upload failed")});
a.listen("n",function(){Z("upload failed")})})},spV=function(a){this.image=a};var Goe=function(a,W,w,Z,N){this.id=a;this.imageBlob=W;this.localImageSrc=w;this.naturalWidth=Z;this.naturalHeight=N;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 C2E=[".jpeg",".jpg",".png"],nP=function(){var a=_.u.apply(this,arguments)||this;a.showImagesPreview=!1;a.pollOptions=[];a.errorMessage="";a.optionPlaceholderText="";a.optionDefaultText="";a.JSC$13433_imageId=0;a.maxFileSizeMb=0;a.maxAspectRatio=0;a.invalidFileSizeError="";a.invalidAspectRatioError="";a.invalidFileTypeError="";a.imageSelector=new X8(null,"single_file",C2E);return a};
_.c(nP,_.u);_.t=nP.prototype;_.t.ready=function(){_.vX(this.imageSelector,"j",this.onImageSelect,!1,this);_.vX(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.vX(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.t.dataChanged=function(){var a,W,w=_.A((a=this.data)==null?void 0:(W=a.cellTemplate)==null?void 0:W.onEmptyCellTap,OU$);if(w&&w.uploadUrl&&w.channelId){var Z;this.maxFileSizeMb=((Z=w.imageValidationInfo)==null?void 0:Z.maxFileSizeMb)||0;var N;this.maxAspectRatio=((N=w.imageValidationInfo)==null?void 0:N.allowedMaxAspectRatio)||0;var B;this.invalidFileSizeError=this.getSimpleString((B=this.data)==null?void 0:B.invalidFileSizeError);var I;this.invalidAspectRatioError=this.getSimpleString((I=this.data)==
null?void 0:I.invalidAspectRatioError);var X;this.invalidFileTypeError=this.getSimpleString((X=this.data)==null?void 0:X.invalidFileTypeError);this.uploadManager=new ev(w.uploadUrl,w.channelId)}};
_.t.onEditorInfoChange=function(){this.optionPlaceholderText=_.sd(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.sd(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.t.observeAddImageError=function(){this.errorMessage!==""&&_.E$(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.t.onPollOptionsChange=function(){for(var a=!1,W=[],w=0;w<this.pollOptions.length;w++){var Z=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(w+1);this.pollOptions[w].placeholderText!==Z?(a=!0,W.push(Object.assign({},this.pollOptions[w],{placeholderText:Z}))):W.push(this.pollOptions[w])}a&&(this.pollOptions=W);this.isValid()?_.E$(this.hostElement,"yt-commentbox-post-enable"):_.E$(this.hostElement,"yt-commentbox-post-disable")};
_.t.createPollOptions=function(a){var W=[],w;a=(w=a==null?void 0:a.minPollOptions)!=null?w:0;for(w=0;w<a;w++)W.push(this.createPollOption());return W};
_.t.onImageSelect=function(a){var W=this,w,Z,N,B,I,X;return _.P(function(v){if(v.nextAddress==1){if(W.selectedImageIndex===void 0)return v.jumpTo(0);w=a.files[0];W.errorMessage="";Z=W.validateImage(w);if(Z!=="")return W.errorMessage=Z,v.return();N=new Cz(W.maxAspectRatio,!1,!0);return _.g(v,N.transform(w),3)}if(v.nextAddress!=4)return B=v.yieldResult,B.transformedData?B.invalidAspectRatio?(W.errorMessage=W.invalidAspectRatioError,v.return()):_.g(v,DbF(W.JSC$13433_imageId,a.files[0],B.transformedData),
4):(W.errorMessage=W.invalidFileTypeError,v.return());I=v.yieldResult;W.JSC$13433_imageId++;QpV(W.uploadManager,[I]);X=Object.assign({},W.pollOptions[W.selectedImageIndex],{image:I});W.pollOptions.splice(W.selectedImageIndex,1,X);W.refreshPollOptions();_.E$(W.hostElement,"yt-backstage-poll-image-select");_.Xd(v)})};
_.t.validateImage=function(a){return a.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.t.refreshPollOptions=function(){this.pollOptions=[].concat(_.K8(this.pollOptions))};
_.t.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.K8(this.pollOptions),[this.createPollOption()]))};
_.t.onRemovePollOption=function(a){var W=this.pollOptions[a.model.index];W&&W.image&&this.uploadManager.cancel(W.image.id);this.pollOptions.splice(a.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.E$(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.t.onTextInput=function(){this.refreshPollOptions()};
_.t.onImageButtonClick=function(a){this.selectedImageIndex=a.model.index;this.imageSelector.click()};
_.t.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.t.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.t.saveImageRepositions=function(a){a=a.event_.detail;for(var W=0,w=[],Z=_.l(this.pollOptions),N=Z.next();!N.done;N=Z.next())N=N.value,N.image!==void 0?(N=Object.assign({},N,{image:a[W]}),w.push(N),W++):w.push(N);this.showImagesPreview=!1;this.pollOptions=[].concat(_.K8(w))};
_.t.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,W=_.l(this.pollOptions),w=W.next();!w.done;w=W.next())if(w=w.value,w.optionText.trim()!==""||w.image!==void 0){if(!w.image||this.hasCustomOptionText&&w.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;a++}return a>=Number(this.editorInfo.minPollOptions)};
_.t.getAllUploadStatuses=function(){var a=this,W,w,Z,N;return _.P(function(B){if(B.nextAddress==1)return _.g(B,a.uploadManager.getAllUploadStatuses(),2);W=B.yieldResult;w=_.l(W);for(Z=w.next();!Z.done;Z=w.next())if(N=Z.value,N.encryptedBlobId===void 0)return B.return(xgl(a.uploadManager));return B.return(W)})};
_.t.getPostCreateOptions=function(){for(var a=[],W=_.l(this.pollOptions),w=W.next();!w.done;w=W.next())w=w.value,w.image!==void 0&&a.push({text:this.hasCustomOptionText?w.optionText:w.placeholderText,image:w.image});return a};
_.t.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.t.createButtonRenderer=function(a,W){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:a,accessibilityData:{accessibilityData:{label:this.getSimpleString(a)}},isDisabled:W}};
_.t.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.t.computeThumbnailRendererData=function(a){return a?{image:a,selected:!1}:void 0};
_.t.getSimpleString=function(a){return _.sd(a)};
_.t.updateOptionTextFromBinding=function(a){if(a.target){var W=Array.from(_.M(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(a.target);if(W>=0){var w;this.pollOptions[W].optionText=(w=a.detail.value)!=null?w:""}}};
_.dU.Object.defineProperties(nP.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var a,W;return this.pollOptions.length<((W=(a=this.editorInfo)==null?void 0:a.maxPollOptions)!=null?W: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,W=(a=this.data)==null?void 0:a.addOptionButtonText;return W?this.createButtonRenderer(W,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var a,W=(a=this.data)==null?void 0:a.repositionImagesButtonLabel;return W?this.createButtonRenderer(W,!this.hasImages):void 0}}});
nP.prototype.onPollOptionsChange=nP.prototype.onPollOptionsChange;nP.prototype.observeAddImageError=nP.prototype.observeAddImageError;nP.prototype.onEditorInfoChange=nP.prototype.onEditorInfoChange;nP.prototype.dataChanged=nP.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.w$("ytd-backstage-multi-image-reposition-renderer"),_.z("design:type",Object)],nP.prototype,"imageRepositionContainer",void 0);
_.f([_.b(),_.z("design:type",Object)],nP.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],nP.prototype,"editorInfo",void 0);_.f([_.b(),_.z("design:type",ev)],nP.prototype,"uploadManager",void 0);_.f([_.b(),_.z("design:type",Object)],nP.prototype,"showImagesPreview",void 0);_.f([_.b(),_.z("design:type",Array)],nP.prototype,"pollOptions",void 0);_.f([_.b(),_.z("design:type",Object)],nP.prototype,"errorMessage",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nP.prototype,"dataChanged",null);_.f([_.lO("editorInfo"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nP.prototype,"onEditorInfoChange",null);_.f([_.a5("errorMessage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nP.prototype,"observeAddImageError",null);
_.f([_.lO("pollOptions"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nP.prototype,"onPollOptionsChange",null);_.f([_.Q("pollOptions","editorInfo"),_.z("design:type",Object),_.z("design:paramtypes",[])],nP.prototype,"isAllowedToAddOption",null);_.f([_.Q("pollOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],nP.prototype,"hasImages",null);
_.f([_.Q("pollOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],nP.prototype,"imagesToReposition",null);_.f([_.Q("pollOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],nP.prototype,"hasCustomOptionText",null);_.f([_.Q("data","isAllowedToAddOption"),_.z("design:type",Object),_.z("design:paramtypes",[])],nP.prototype,"addOptionButton",null);_.f([_.Q("data","hasImages"),_.z("design:type",Object),_.z("design:paramtypes",[])],nP.prototype,"repositionImagesButton",null);
nP=_.f([_.C({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],nP);
_.D(nP,"ytd-backstage-image-poll-editor-renderer",function(){if(Mse!==void 0)return Mse;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Mse=a},{mode:2});var GJy={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 Dge;var jv=function(){var a=_.u.apply(this,arguments)||this;a.a11yConfig=GJy;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};
_.c(jv,_.u);_.t=jv.prototype;_.t.created=function(){_.xS.requestAvailability()};
_.t.ready=function(){};
_.t.onArrowKeysDown=function(a){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){a.detail.keyboardEvent.preventDefault();var W=0,w=0,Z="";switch(a.detail.keyboardEvent.key){case "ArrowUp":fzC(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Z=this.a11yConfig.reachBottomOfImage:W=this.imageHeight*.05*-1;break;case "ArrowDown":fzC(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Z=this.a11yConfig.reachTopOfImage:
W=this.imageHeight*.05;break;case "ArrowLeft":fzC(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Z=this.a11yConfig.reachRightOfImage:w=this.imageWidth*.05*-1;break;case "ArrowRight":fzC(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Z=this.a11yConfig.reachLeftOfImage:w=this.imageWidth*.05}Z&&_.P_(Z)&&_.E$(this.hostElement,"iron-announce",{text:_.P_(Z)});if(w||W)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+W)),a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),a=_.P_(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+w)),a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),a=_.P_(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})),a&&_.E$(this.hostElement,"iron-announce",{text:a})}};
_.t.getPreviewPosition=function(a,W,w,Z){return Math.round(100*(a+W*.5-w)/Z)};
_.t.calculateDisplayPosition=function(){var a=this.imageData.naturalWidth,W=this.imageData.naturalHeight;this.displayScale=Math.max(200/a,200/W);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var w=a*this.displayScale*this.imageData.previewCoordinates.left,Z=W*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=W>a?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-w;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=a>W?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-Z;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=a*this.displayScale;this.imageHeight=W*this.displayScale};
_.t.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.t.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.t.getSignedPosition=function(a,W,w){return W==="X"&&_.LF("HTML_DIR")==="rtl"?w==="-"?a+"px":a*-1+"px":w==="-"?a*-1+"px":a+"px"};
_.t.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 W=this.pickerOffsetX-a.clientX,w=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-
w)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-W))}};
_.t.pickerMoveStart=function(a){this.startPicker=!0;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY};
_.t.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var a=this.generateCropPreview();a&&_.E$(this.hostElement,"ytd-backstage-image-preview-coordinates-update",a)};
_.t.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.E$(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.t.deleteImage=function(){_.E$(this.hostElement,"ytd-backstage-image-preview-delete")};
_.t.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.t.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var a=this.generateCropPreview();a&&_.E$(this.hostElement,"ytd-backstage-image-preview-coordinates-save",a)};
_.t.getPreviewOffset=function(a,W,w){return W&&a?(w==="X"&&_.LF("HTML_DIR")==="rtl"?300/W*a:300/W*a*-1)+"px":"0px"};
_.t.getSimpleText=function(a){return a?_.sd(a):""};
_.t.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}};
_.dU.Object.defineProperties(jv.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 _.P_(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.P_(this.a11yConfig.verticalRepositionInstruction)}a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.P_(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.P_(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,W,w=(a=this.instruction)==null?void 0:(W=a.previewInstruction)==null?void 0:W.editButtonLabel;return w?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:w,accessibilityData:{accessibilityData:{label:this.getSimpleText(w)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z,N=this.editOnlyMode?(a=this.instruction)==null?void 0:(W=a.editInstruction)==null?void 0:W.saveImagesButtonLabel:(w=this.instruction)==null?void 0:(Z=w.editInstruction)==null?void 0:Z.saveButtonLabel;return N?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleText(N)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var a,W,w=(a=this.instruction)==null?void 0:(W=a.previewInstruction)==null?void 0:W.deleteButtonLabel;return w?{size:"SIZE_SMALL",text:w,accessibilityData:{accessibilityData:{label:this.getSimpleText(w)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var a,W,w=(a=this.instruction)==null?void 0:(W=a.editInstruction)==null?void 0:W.cancelButtonLabel;a=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return w?{style:a,size:"SIZE_SMALL",text:w,accessibilityData:{accessibilityData:{label:this.getSimpleText(w)}}}: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"}}});
jv.prototype.onEditOnlyModeUpdate=jv.prototype.onEditOnlyModeUpdate;jv.prototype.onImageChange=jv.prototype.onImageChange;_.f([_.b(),_.z("design:type",Goe)],jv.prototype,"imageData",void 0);_.f([_.b(),_.z("design:type",Object)],jv.prototype,"instruction",void 0);_.f([_.b(),_.z("design:type",Object)],jv.prototype,"a11yConfig",void 0);_.f([_.b(),_.z("design:type",Number)],jv.prototype,"imageWidth",void 0);_.f([_.b(),_.z("design:type",Number)],jv.prototype,"imageHeight",void 0);
_.f([_.b(),_.z("design:type",Number)],jv.prototype,"displayScale",void 0);_.f([_.b(),_.z("design:type",Object)],jv.prototype,"imageDisplayOffsetTop",void 0);_.f([_.b(),_.z("design:type",Object)],jv.prototype,"imageDisplayOffsetLeft",void 0);_.f([_.b(),_.z("design:type",Object)],jv.prototype,"pickerDisplayOffsetTop",void 0);_.f([_.b(),_.z("design:type",Object)],jv.prototype,"pickerDisplayOffsetLeft",void 0);_.f([_.b(),_.z("design:type",Object)],jv.prototype,"showPreviewContainer",void 0);
_.f([_.b(),_.z("design:type",Object)],jv.prototype,"startPicker",void 0);_.f([_.b(),_.z("design:type",Number)],jv.prototype,"pickerOffsetX",void 0);_.f([_.b(),_.z("design:type",Number)],jv.prototype,"pickerOffsetY",void 0);_.f([_.b(),_.z("design:type",Object)],jv.prototype,"repositionOptional",void 0);_.f([_.b(),_.z("design:type",Object)],jv.prototype,"editOnlyMode",void 0);_.f([_.w$("#picker-container"),_.z("design:type",HTMLElement)],jv.prototype,"JSC$13446_pickerContainer",void 0);
_.f([_.w$("#picker"),_.z("design:type",HTMLElement)],jv.prototype,"picker",void 0);_.f([_.w$("#preview-clipper"),_.z("design:type",HTMLElement)],jv.prototype,"previewClipper",void 0);_.f([_.w$("#image-in-picker-background"),_.z("design:type",HTMLImageElement)],jv.prototype,"JSC$13446_imageInBackground",void 0);_.f([_.w$("#image-in-picker"),_.z("design:type",HTMLImageElement)],jv.prototype,"JSC$13446_imageInPicker",void 0);
_.f([_.w$("#image-in-preview-clipper"),_.z("design:type",HTMLImageElement)],jv.prototype,"JSC$13446_imageInPreviewClipper",void 0);_.f([_.Q("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],jv.prototype,"altLabelForImage",null);_.f([_.Q("imageHeight","imageWidth"),_.z("design:type",Number),_.z("design:paramtypes",[])],jv.prototype,"pickerSize",null);
_.f([_.Q("imageHeight","imageWidth"),_.z("design:type",Object),_.z("design:paramtypes",[])],jv.prototype,"imageOrientationStyle",null);_.f([_.Q("instruction"),_.z("design:type",Object),_.z("design:paramtypes",[])],jv.prototype,"editButton",null);_.f([_.Q("instruction","editOnlyMode"),_.z("design:type",Object),_.z("design:paramtypes",[])],jv.prototype,"saveButton",null);_.f([_.Q("instruction"),_.z("design:type",Object),_.z("design:paramtypes",[])],jv.prototype,"deleteButton",null);
_.f([_.Q("instruction","editOnlyMode"),_.z("design:type",Object),_.z("design:paramtypes",[])],jv.prototype,"cancelButton",null);_.f([_.Q("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.z("design:type",Number),_.z("design:paramtypes",[])],jv.prototype,"cropOffsetTop",null);_.f([_.Q("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.z("design:type",Number),_.z("design:paramtypes",[])],jv.prototype,"cropOffsetLeft",null);
_.f([_.Q("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],jv.prototype,"pickerBackgroundStyle",null);_.f([_.Q("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],jv.prototype,"pickerDisplayStyle",null);_.f([_.Q("cropOffsetLeft","cropOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],jv.prototype,"imageInPickerStyle",null);
_.f([_.Q("cropOffsetLeft","cropOffsetTop","pickerSize"),_.z("design:type",String),_.z("design:paramtypes",[])],jv.prototype,"previewClipperStyle",null);_.f([_.lO("imageData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jv.prototype,"onImageChange",null);_.f([_.lO("editOnlyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jv.prototype,"onEditOnlyModeUpdate",null);
_.f([_.Q("showPreviewContainer"),_.z("design:type",String),_.z("design:paramtypes",[])],jv.prototype,"pickerModeStyle",null);jv=_.f([_.C({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],jv);
_.D(jv,"ytd-backstage-image-preview-renderer",function(){if(Dge!==void 0)return Dge;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Dge=a},{mode:1});var fc6;var dgR={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 mg$;var Vse;var LP=function(){var a=_.u.apply(this,arguments)||this;a.a11yConfig=dgR;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};
_.c(LP,_.u);_.t=LP.prototype;_.t.created=function(){_.xS.requestAvailability()};
_.t.ready=function(){};
_.t.onArrowKeysDown=function(a){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){a.detail.keyboardEvent.preventDefault();var W=0,w=0,Z="";switch(a.detail.keyboardEvent.key){case "ArrowUp":dbU(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Z=this.a11yConfig.reachBottomOfImage:W=this.imageHeight*.05*-1;break;case "ArrowDown":dbU(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Z=this.a11yConfig.reachTopOfImage:
W=this.imageHeight*.05;break;case "ArrowLeft":dbU(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Z=this.a11yConfig.reachRightOfImage:w=this.imageWidth*.05*-1;break;case "ArrowRight":dbU(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Z=this.a11yConfig.reachLeftOfImage:w=this.imageWidth*.05}Z&&_.P_(Z)&&_.E$(this.hostElement,"iron-announce",{text:_.P_(Z)});if(w||W)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+W)),a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),a=_.P_(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+w)),a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),a=_.P_(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})),a&&_.E$(this.hostElement,"iron-announce",{text:a})}};
_.t.getPreviewPosition=function(a,W,w,Z){return Math.round(100*(a+W*.5-w)/Z)};
_.t.displayImage=function(){var a=this.JSC$13457_pickerContainer.getBoundingClientRect().width,W=this.JSC$13457_pickerContainer.getBoundingClientRect().height,w=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),Z=this.JSC$13457_imageInBackground.naturalWidth,N=this.JSC$13457_imageInBackground.naturalHeight;this.displayScale=Math.max(w/Z,w/N);this.imageWidth=Z*this.displayScale;this.imageHeight=N*this.displayScale;this.pickerDisplayOffsetLeft=(a-w)/2;this.pickerDisplayOffsetTop=
(W-w)/2;this.imageDisplayOffsetLeft=N>Z?this.pickerDisplayOffsetLeft:(a-this.imageWidth)/2;this.imageDisplayOffsetTop=Z>N?this.pickerDisplayOffsetTop:(W-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.t.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13457_imageInBackground.src=this.imageData.toString(),this.JSC$13457_imageInPicker.src=this.imageData.toString(),this.JSC$13457_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.t.getSignedPosition=function(a,W,w){return W==="X"&&_.LF("HTML_DIR")==="rtl"?w==="-"?a+"px":a*-1+"px":w==="-"?a*-1+"px":a+"px"};
_.t.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 W=this.pickerOffsetX-a.clientX,w=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-
w)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-W))}};
_.t.pickerMoveStart=function(a){this.startPicker=!0;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY};
_.t.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.t.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.E$(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.t.getPreviewOffset=function(a,W,w,Z){return W&&a&&w?(Z==="X"&&_.LF("HTML_DIR")==="rtl"?w/W*a:w/W*a*-1)+"px":"0px"};
_.t.getSimpleText=function(a){return a?_.sd(a):""};
_.t.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var a=this.cropOffsetTop/this.imageHeight,W=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,w=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,Z=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.M(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.E$(this.hostElement,"yt-img-crop-coordinates-update",{top:a,right:W,bottom:w,left:Z})}};
_.dU.Object.defineProperties(LP.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 _.P_(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.P_(this.a11yConfig.verticalRepositionInstruction)}a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.P_(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.P_(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,W=(a=this.learnMore.runs[0])==null?void 0:a.navigationEndpoint,w;return((w=_.A(W,_.ba))==null?void 0:w.url)||void 0}}}});
LP.prototype.onImageDataChange=LP.prototype.onImageDataChange;_.f([_.b(),_.z("design:type",Object)],LP.prototype,"imageData",void 0);_.f([_.b(),_.z("design:type",Object)],LP.prototype,"instruction",void 0);_.f([_.b(),_.z("design:type",Object)],LP.prototype,"a11yConfig",void 0);_.f([_.b(),_.z("design:type",Number)],LP.prototype,"imageWidth",void 0);_.f([_.b(),_.z("design:type",Number)],LP.prototype,"imageHeight",void 0);_.f([_.b(),_.z("design:type",Number)],LP.prototype,"displayScale",void 0);
_.f([_.b(),_.z("design:type",Object)],LP.prototype,"imageDisplayOffsetTop",void 0);_.f([_.b(),_.z("design:type",Object)],LP.prototype,"imageDisplayOffsetLeft",void 0);_.f([_.b(),_.z("design:type",Object)],LP.prototype,"pickerDisplayOffsetTop",void 0);_.f([_.b(),_.z("design:type",Object)],LP.prototype,"pickerDisplayOffsetLeft",void 0);_.f([_.b(),_.z("design:type",Object)],LP.prototype,"cropCoordinatesSaved",void 0);_.f([_.b(),_.z("design:type",Object)],LP.prototype,"previewSize",void 0);
_.f([_.b(),_.z("design:type",Object)],LP.prototype,"startPicker",void 0);_.f([_.b(),_.z("design:type",Number)],LP.prototype,"pickerOffsetX",void 0);_.f([_.b(),_.z("design:type",Number)],LP.prototype,"pickerOffsetY",void 0);_.f([_.b(),_.z("design:type",Object)],LP.prototype,"repositionOptional",void 0);_.f([_.w$("#picker-container"),_.z("design:type",HTMLElement)],LP.prototype,"JSC$13457_pickerContainer",void 0);_.f([_.w$("#picker"),_.z("design:type",HTMLElement)],LP.prototype,"picker",void 0);
_.f([_.w$("#image-in-picker-background"),_.z("design:type",HTMLImageElement)],LP.prototype,"JSC$13457_imageInBackground",void 0);_.f([_.w$("#image-in-picker"),_.z("design:type",HTMLImageElement)],LP.prototype,"JSC$13457_imageInPicker",void 0);_.f([_.w$("#image-in-preview-clipper"),_.z("design:type",HTMLImageElement)],LP.prototype,"JSC$13457_imageInPreviewClipper",void 0);_.f([_.w$("#full-image-as-preview"),_.z("design:type",HTMLImageElement)],LP.prototype,"imageAsPreview",void 0);
_.f([_.Q("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],LP.prototype,"altLabelForImage",null);_.f([_.Q("imageHeight","imageWidth"),_.z("design:type",Number),_.z("design:paramtypes",[])],LP.prototype,"pickerSize",null);_.f([_.Q("imageHeight","imageWidth"),_.z("design:type",Object),_.z("design:paramtypes",[])],LP.prototype,"imageOrientationStyle",null);
_.f([_.Q("instruction.previewInstruction.editButtonLabel"),_.z("design:type",Object),_.z("design:paramtypes",[])],LP.prototype,"editButton",null);_.f([_.Q("instruction.editInstruction.saveButtonLabel"),_.z("design:type",Object),_.z("design:paramtypes",[])],LP.prototype,"saveButton",null);_.f([_.Q("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.z("design:type",Number),_.z("design:paramtypes",[])],LP.prototype,"cropOffsetTop",null);
_.f([_.Q("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.z("design:type",Number),_.z("design:paramtypes",[])],LP.prototype,"cropOffsetLeft",null);_.f([_.Q("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],LP.prototype,"pickerBackgroundStyle",null);_.f([_.Q("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],LP.prototype,"pickerDisplayStyle",null);
_.f([_.Q("cropOffsetLeft","cropOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],LP.prototype,"imageInPickerStyle",null);_.f([_.Q("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.z("design:type",String),_.z("design:paramtypes",[])],LP.prototype,"previewClipperStyle",null);_.f([_.a5("imageData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LP.prototype,"onImageDataChange",null);
_.f([_.Q("cropCoordinatesSaved"),_.z("design:type",String),_.z("design:paramtypes",[])],LP.prototype,"pickerModeStyle",null);_.f([_.Q("instruction.editInstruction.learnMore"),_.z("design:type",Object),_.z("design:paramtypes",[])],LP.prototype,"learnMore",null);_.f([_.Q("learnMore"),_.z("design:type",Object),_.z("design:paramtypes",[])],LP.prototype,"learnMoreUrl",null);LP=_.f([_.TD({is:"yt-img-crop-picker",disableElementRegistration:!0})],LP);
_.D(LP,"yt-img-crop-picker",function(){if(Vse===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;mg$===void 0&&(mg$=document.createElement("template"));var Z=mg$;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Vse=a}a=Vse;return a},{mode:2});var JR=function(){var a=_.u.apply(this,arguments)||this;a.errorMessage="";a.hasPreview=!1;a.isBackstagePost=!1;a.dismissButtonOverrides={size:"XS"};return a};
_.c(JR,_.u);_.t=JR.prototype;_.t.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"}}}};
_.t.detached=function(){this.removeOverlay()};
_.t.setPreview=function(a){_.M(this.hostElement).querySelector("#preview-picker").imageData=a;this.hasPreview=!0;_.E$(this.hostElement,"yt-backstage-image-select-preview")};
_.t.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var a=_.M(this.hostElement).querySelector("#dropzone");a.classList.remove("dragover");a.classList.remove("error");_.E$(this.hostElement,"yt-backstage-image-select-cancel")};
_.t.setupOverlay=function(){var a=this.imageUploadEndpoint;this.removeOverlay();if(a&&a.imageValidationInfo){var W=_.M(this.hostElement).querySelector("#dropzone"),w=_.M(this.hostElement).querySelector("#select");this.overlay=new Dl(a.uploadUrl,a.channelId,a.imageValidationInfo.maxFileSizeMb,a.imageValidationInfo.allowedMaxAspectRatio,W,w,!0);_.vX(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.vX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.vX(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.vX(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.vX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.t.removeOverlay=function(){this.overlay&&(_.YO(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.YO(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.YO(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.YO(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.YO(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.t.onDragOver=function(a){var W=_.M(this.hostElement).querySelector("#dropzone");_.mh(W,"dragover",a.value)};
_.t.onPreview=function(a){this.setPreview(a.value)};
_.t.onImageError=function(a){if(a.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var W;a=(W=this.data)==null?void 0:W.fileSizeError}else if(a.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var w;a=(w=this.data)==null?void 0:w.invalidError}else if(a.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var Z;a=(Z=this.data)==null?void 0:Z.invalidAspectRatioError}else return;this.errorMessage=_.sd(a);_.M(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.t.onImageAlert=function(a){this.onImageError(a)};
_.t.uploadPromise=function(){var a=this,W=this.overlay&&this.overlay.uploadPromise();if(W)return W.catch(function(){throw Error(a.data?_.sd(a.data.uploadFailureError):"");})};
_.dU.Object.defineProperties(JR.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,W;if((a=this.data)==null?0:(W=a.icon)==null?0:W.iconType)return _.EN(this.data.icon.iconType)}}});
JR.prototype.setupOverlay=JR.prototype.setupOverlay;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],JR.prototype,"rendererStamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],JR.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],JR.prototype,"imageUploadEndpoint",void 0);_.f([_.b(),_.z("design:type",Object)],JR.prototype,"errorMessage",void 0);
_.f([_.b(),_.z("design:type",Dl)],JR.prototype,"overlay",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],JR.prototype,"hasPreview",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],JR.prototype,"isBackstagePost",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],JR.prototype,"selectionCancel",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],JR.prototype,"previewCancel",null);
_.f([_.Q("data.icon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],JR.prototype,"icon",null);_.f([_.b(),_.z("design:type",Object)],JR.prototype,"dismissButtonOverrides",void 0);_.f([_.a5("imageUploadEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JR.prototype,"setupOverlay",null);JR=_.f([_.C({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],JR);
_.D(JR,"ytd-backstage-image-select-renderer",function(){if(fc6!==void 0)return fc6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return fc6=a},{mode:1});var zJh;var HLR;var Fy=function(){var a=_.u.apply(this,arguments)||this;a.selected=!1;return a};
_.c(Fy,_.u);_.t=Fy.prototype;_.t.computeSelected=function(a){return a==null?void 0:a.selected};
_.t.computeTransform=function(a,W,w){var Z,N,B=(N=(Z=this.imageContainer)==null?void 0:Z.getBoundingClientRect())!=null?N:{width:0,height:0};Z=Math.max(B.width/W,B.height/w);w=w*Z*a.top;return"translateX("+this.getSignedPosition(W*Z*a.left,"X","-")+") translateY("+this.getSignedPosition(w,"Y","-")+")"};
_.t.getSignedPosition=function(a,W,w){return W==="X"&&_.LF("HTML_DIR")==="rtl"?w==="-"?a+"px":a*-1+"px":w==="-"?a*-1+"px":a+"px"};
_.t.onClick=function(){var a;_.E$(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(a=this.data)==null?void 0:a.image)};
_.t.onKeyPress=function(a){if(a.keyCode===13)this.onClick()};
_.dU.Object.defineProperties(Fy.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.data)==null?void 0:(W=a.image)==null?void 0:W.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.image){var W;a=(W=this.data)==null?void 0:W.image;return a.previewCoordinates.top!==0||a.previewCoordinates.left!==0?(W=this.computeTransform(a.previewCoordinates,a.naturalWidth,a.naturalHeight),a.naturalHeight>=a.naturalWidth?"width:inherit;transform:"+W+";":"height:inherit;transform:"+W+";"):a.naturalHeight>=a.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Fy.prototype.onKeyPress=Fy.prototype.onKeyPress;_.f([_.w$(".image-container"),_.z("design:type",HTMLElement)],Fy.prototype,"imageContainer",void 0);_.f([_.b(),_.z("design:type",Object)],Fy.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.z("design:type",Object)],Fy.prototype,"selected",void 0);_.f([_.Q("data.image"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fy.prototype,"thumbnailUrl",null);
_.f([_.Q("data.image","data.image.previewCoordinates"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fy.prototype,"thumbnailStyle",null);_.f([_.E6("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Fy.prototype,"onKeyPress",null);Fy=_.f([_.C({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Fy);
_.D(Fy,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(HLR!==void 0)return HLR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return HLR=a},{mode:2});var M$=function(a,W,w){w=w===void 0?!1:w;_.Ti.call(this);var Z=this;this.dropZoneOverlay=new Po(a);this.selectOverlay=w?new X8(W,"multiple_file",["image/*"]):new X8(W,"single_file",["image/*"]);this.handler=new _.am(this);_.$3(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(W,"click",function(){Z.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.c(M$,_.Ti);M$.prototype.onChange=function(a){var W;(W=a.files)!=null&&W.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:a.files}))};var Rj=function(){var a=_.u.apply(this,arguments)||this;a.addImageErrorMessage="";a.errorMessage="";a.images=[];a.selectedImageIndex=0;a.modern=_.r("web_modern_buttons");a.maxNumImagesPerPost=_.yv("max_num_images_per_post_web_ui");a.JSC$13472_imageId=0;return a};
_.c(Rj,_.u);_.t=Rj.prototype;_.t.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.E$(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.t.observeDragToReorder=function(){var a=this;if(this.showImagesPreview){var W,w=ov6(_.zZ.getInstance(),(W=this.data)==null?void 0:W.dragToReorderTooltip);_.hF.addLowPriorityJob(function(){_.N1(a.hostElement,w,a.thumbnailDragDropArea)})}};
_.t.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}}};
_.t.computeThumbnail=function(a){return(a==null?void 0:a.localImageSrc)||void 0};
_.t.onRendererstamperFinished=function(){_.sBA(this.ytReorderableBehavior,_.M(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.M(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.t.handleDrop=function(a){var W=a.currDragItem;if(W!=null&&W.data){a=this.images[this.selectedImageIndex];var w=W.data.image,Z=this.images.indexOf(w)||0;W=_.DD(W.parentNode.children,W);this.images.splice(Z,1);this.images.splice(W,0,w);this.images=[].concat(_.K8(this.images));this.selectedImageIndex=this.images.indexOf(a)}};
_.t.setUpImagePicker=function(){var a=this.imageUploadEndpoint;a&&a.imageValidationInfo&&(this.uploadManager=new ev(a.uploadUrl,a.channelId),this.initialPicker||(this.initialPicker=new M$(this.dropzone,this.selectLink,!0),_.vX(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new M$(this.addImageButtonContainer,this.addImageSelectButton),_.vX(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.vX(this.JSC$13472_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.vX(this.JSC$13472_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.vX(_.M(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.t.detached=function(){this.initialPicker&&(_.YO(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.YO(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.t.onInitialSelectImages=function(a){var W=this;return _.P(function(w){return _.g(w,W.onSelectImages(a,!1),0)})};
_.t.onAddImage=function(a){var W=this;return _.P(function(w){return _.g(w,W.onSelectImages(a,!0),0)})};
_.t.onSelectImages=function(a,W){var w=this,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V,d,ZD,aC;return _.P(function(Bv){switch(Bv.nextAddress){case 1:W?w.addImageErrorMessage="":(w.images=[],w.errorMessage="");Z=a.detail;N=w.validateImages([].concat(_.K8(Z)));if(N!=="")return W?w.addImageErrorMessage=N:w.errorMessage=N,Bv.return();B=[].concat(_.K8(Z)).map(function(Am){return(new Cz(w.maxAspectRatio,!1,!0)).transform(Am)});
return _.g(Bv,Promise.allSettled(B),2);case 2:I=Bv.yieldResult,X=_.l(I.entries()),v=X.next();case 3:if(v.done){Bv.jumpTo(5);break}U=v.value;O=_.l(U);S=O.next().value;T=O.next().value;p=S;h=T;if(h.status!=="fulfilled"){x=F=L=void 0;W?w.addImageErrorMessage=_.sd((L=w.data)==null?void 0:L.invalidError):w.errorMessage=w.errorMessage===""?_.sd((F=w.data)==null?void 0:F.invalidError):_.sd((x=w.data)==null?void 0:x.multiFileError);Bv.jumpTo(4);break}G=h.value;G.cropped&&_.E$(w.hostElement,"yt-backstage-multi-image-cropped");
if(G.invalidAspectRatio){ZD=d=V=void 0;W?w.addImageErrorMessage=_.sd((V=w.data)==null?void 0:V.invalidAspectRatioError):w.errorMessage=w.errorMessage===""?_.sd((d=w.data)==null?void 0:d.invalidAspectRatioError):_.sd((ZD=w.data)==null?void 0:ZD.multiFileError);Bv.jumpTo(4);break}return _.g(Bv,DbF(w.JSC$13472_imageId,a.detail[p],G.transformedData),8);case 8:aC=Bv.yieldResult,w.images.push(aC),w.JSC$13472_imageId++;case 4:v=X.next();Bv.jumpTo(3);break;case 5:if(w.errorMessage!==""||w.addImageErrorMessage!==
"")return Bv.return();W?QpV(w.uploadManager,[w.images[w.images.length-1]]):QpV(w.uploadManager,w.images);w.images=[].concat(_.K8(w.images));w.selectedImageIndex=W?Math.max(w.images.length-1,0):0;_.E$(w.hostElement,"yt-backstage-multi-image-select");_.Xd(Bv)}})};
_.t.onThumbnailClick=function(a){if(a=a.event_.detail)this.selectedImageIndex=this.images.indexOf(a)};
_.t.validateImages=function(a){if(a.length>this.maxNumImagesPerPost){var W;return _.sd((W=this.data)==null?void 0:W.multiImageExceedMaxImageCountError)}var w=1048576*this.maxFileSizeMb;a=a.filter(function(B){return B.size>w}).length;
if(a===0)return"";var Z,N;a=a>1?(Z=this.data)==null?void 0:Z.multiFileError:(N=this.data)==null?void 0:N.fileSizeError;return _.sd(a)};
_.t.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.K8(this.images));this.selectedImageIndex=0};
_.t.repositionImage=function(a){this.images[this.selectedImageIndex].previewCoordinates=a.event_.detail;this.images=[].concat(_.K8(this.images))};
_.t.getAllUploadStatuses=function(){var a=this,W,w,Z,N;return _.P(function(B){if(B.nextAddress==1)return _.g(B,a.uploadManager.getAllUploadStatuses(),2);W=B.yieldResult;w=_.l(W);for(Z=w.next();!Z.done;Z=w.next())if(N=Z.value,N.encryptedBlobId===void 0)return B.return(xgl(a.uploadManager));return B.return(W)})};
_.t.hasImages=function(){return this.images.length>0};
_.t.cancel=function(){for(var a=this.uploadManager,W=_.l(a.imagesUploadData),w=W.next();!w.done;w=W.next())a.cancel(w.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.E$(this.hostElement,"yt-backstage-multi-image-cancel")};
_.dU.Object.defineProperties(Rj.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.imageUploadEndpoint)==null?void 0:(W=a.imageValidationInfo)==null?void 0:W.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.imageUploadEndpoint)==null?void 0:(W=a.imageValidationInfo)==null?void 0:W.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var a,W;if((a=this.data)==null?0:(W=a.icon)==null?0:W.iconType)return _.EN(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(W,w){return{renderer:{image:W,selected:w===a.selectedImageIndex}}})}}});
Rj.prototype.setUpImagePicker=Rj.prototype.setUpImagePicker;Rj.prototype.onRendererstamperFinished=Rj.prototype.onRendererstamperFinished;Rj.prototype.observeDragToReorder=Rj.prototype.observeDragToReorder;Rj.prototype.observeAddImageError=Rj.prototype.observeAddImageError;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Rj.prototype,"rendererStamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.u56),_.z("design:type",Object)],Rj.prototype,"ytReorderableBehavior",void 0);_.f([_.w$("#dropzone"),_.z("design:type",HTMLElement)],Rj.prototype,"dropzone",void 0);_.f([_.w$("#select-link"),_.z("design:type",HTMLElement)],Rj.prototype,"selectLink",void 0);_.f([_.w$("#thumbnail-drag-drop-area"),_.z("design:type",HTMLElement)],Rj.prototype,"thumbnailDragDropArea",void 0);_.f([_.w$("#add-image-button-container"),_.z("design:type",HTMLElement)],Rj.prototype,"addImageButtonContainer",void 0);
_.f([_.w$("#add-image-button"),_.z("design:type",HTMLElement)],Rj.prototype,"addImageSelectButton",void 0);_.f([_.w$("#image-preview-container"),_.z("design:type",Object)],Rj.prototype,"JSC$13472_imagePreviewContainer",void 0);_.f([_.b(),_.z("design:type",Object)],Rj.prototype,"addImageErrorMessage",void 0);_.f([_.b(),_.z("design:type",Object)],Rj.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Rj.prototype,"errorMessage",void 0);
_.f([_.b(),_.z("design:type",Object)],Rj.prototype,"imageUploadEndpoint",void 0);_.f([_.b(),_.z("design:type",Array)],Rj.prototype,"images",void 0);_.f([_.b(),_.z("design:type",M$)],Rj.prototype,"initialPicker",void 0);_.f([_.b(),_.z("design:type",M$)],Rj.prototype,"addImagePicker",void 0);_.f([_.b(),_.z("design:type",ev)],Rj.prototype,"uploadManager",void 0);_.f([_.b(),_.z("design:type",Object)],Rj.prototype,"selectedImageIndex",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Rj.prototype,"modern",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Rj.prototype,"maxNumImagesPerPost",void 0);_.f([_.Q("imageUploadEndpoint"),_.z("design:type",Number),_.z("design:paramtypes",[])],Rj.prototype,"maxAspectRatio",null);_.f([_.Q("imageUploadEndpoint"),_.z("design:type",Number),_.z("design:paramtypes",[])],Rj.prototype,"maxFileSizeMb",null);
_.f([_.Q("data.icon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],Rj.prototype,"dropIcon",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Rj.prototype,"selectionCancel",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Rj.prototype,"previewCancel",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Rj.prototype,"dataForAddImageButton",null);
_.f([_.Q("errorMessage"),_.z("design:type",String),_.z("design:paramtypes",[])],Rj.prototype,"dropzoneClass",null);_.f([_.Q("images"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Rj.prototype,"showImagesPreview",null);_.f([_.Q("images"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Rj.prototype,"containMaxImages",null);_.f([_.a5("addImageErrorMessage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rj.prototype,"observeAddImageError",null);
_.f([_.a5("showImagesPreview"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rj.prototype,"observeDragToReorder",null);_.f([_.Q("images","selectedImageIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],Rj.prototype,"selectedImageData",null);_.f([_.Q("images","selectedImageIndex"),_.z("design:type",Array),_.z("design:paramtypes",[])],Rj.prototype,"thumbnailRenderers",null);
_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rj.prototype,"onRendererstamperFinished",null);_.f([_.a5("imageUploadEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rj.prototype,"setUpImagePicker",null);Rj=_.f([_.C({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Rj);
_.D(Rj,"ytd-backstage-multi-image-select-renderer",function(){if(zJh!==void 0)return zJh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return zJh=a},{mode:1});var y56;var Eu6;var aNl;var q$=function(){var a=_.u.apply(this,arguments)||this;a.boundCaptureFocus=function(W){a.onCaptureFocus(W)};
return a};
_.c(q$,_.u);_.t=q$.prototype;_.t.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.t.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.t.onCaptureFocus=function(a){_.qj(a).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.t.getIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
_.t.onSelect=function(){var a;if((a=this.data)==null?0:a.onSelectCommand)if(_.r("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var W;((W=_.A(this.data.onSelectCommand.commandMetadata,_.mm))==null?0:W.url)?_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.K().resolve(_.zU).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.dU.Object.defineProperties(q$.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.sd(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}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],q$.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],q$.prototype,"data",void 0);_.f([_.w$("#item"),_.z("design:type",HTMLElement)],q$.prototype,"item",void 0);_.f([_.Q("data.label"),_.z("design:type",String),_.z("design:paramtypes",[])],q$.prototype,"label",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],q$.prototype,"value",null);q$=_.f([_.C({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],q$);
_.D(q$,"ytd-privacy-dropdown-item-renderer",function(){if(aNl!==void 0)return aNl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return aNl=a},{mode:1});var Qr=function(){var a=_.u.apply(this,arguments)||this;a.value="";a.label="";a.disabled=!1;return a};
_.c(Qr,_.u);_.t=Qr.prototype;_.t.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"}}}};
_.t.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.t.dataChanged=function(){this.reset()};
_.t.valueChanged=function(){var a;if(this.value&&(a=this.data)!=null&&a.entries){a=_.l(this.data.entries);for(var W=a.next();!W.done;W=a.next())if((W=this.getRendererForEntry(W.value))&&this.getItemRendererValue(W)===this.value){this.label=this.ytComponentBehavior.getSimpleString(W.label);break}}};
_.t.setInitialLabel=function(){if(this.data&&this.data.entries)for(var a=_.l(this.data.entries),W=a.next();!W.done;W=a.next())if(W=this.getRendererForEntry(W.value)){if(W.isSelected){this.label=this.ytComponentBehavior.getSimpleString(W.label);break}this.data.label&&(this.label=this.data.label)}};
_.t.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var a=_.l(this.data.entries),W=a.next();!W.done;W=a.next()){W=this.getRendererForEntry(W.value);var w=void 0;if((w=W)==null?0:w.isSelected)return this.getItemRendererValue(W)||-1}return-1};
_.t.getItemRendererValue=function(a){return"stringValue"in a||"int32Value"in a?a.stringValue||a.int32Value||null:null};
_.t.getRendererForEntry=function(a){return a.dropdownItemRenderer||a.privacyDropdownItemRenderer||a.navigationDropdownItemRenderer||null};
_.t.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("value-changed",this.value))};
_.t.updateValueFromBinding=function(a){this.value=a.detail.value};
Qr.prototype.valueChangedForBinding=Qr.prototype.valueChangedForBinding;Qr.prototype.valueChanged=Qr.prototype.valueChanged;Qr.prototype.dataChanged=Qr.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Qr.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Qr.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Qr.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Qr.prototype,"value",void 0);_.f([_.b(),_.z("design:type",Object)],Qr.prototype,"label",void 0);_.f([_.w$("#entries"),_.z("design:type",Object)],Qr.prototype,"entries",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qr.prototype,"disabled",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qr.prototype,"dataChanged",null);
_.f([_.lO("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qr.prototype,"valueChanged",null);_.f([_.a5("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qr.prototype,"valueChangedForBinding",null);Qr=_.f([_.C({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Qr);
_.D(Qr,"ytd-flat-dropdown-renderer",function(){if(Eu6!==void 0)return Eu6;var a=document.createElement("template");_.n(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="yt-icons:arrow_drop_down" 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(_.y().content.cloneNode(!0),
a.content.firstChild);return Eu6=a},{mode:1});var W2R;var xx=function(){var a=_.u.apply(this,arguments)||this;a.quizOptions=[];a.explanationPlaceholderText="";a.optionPlaceholderText="";a.correctAnswerIndex=-1;a.isMarkAnswerTooltipShown=!1;a.timer=0;return a};
_.c(xx,_.u);_.t=xx.prototype;_.t.dataChanged=function(){this.optionPlaceholderText=_.sd(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.sd(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.t.onMarkCorrectAnswer=function(a){var W,w=((W=this.quizOptions[this.correctAnswerIndex])==null?void 0:W.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:w,isCorrect:!0});this.correctAnswerIndex=a.model.index;this.quizOptions=[].concat(_.K8(this.quizOptions))};
_.t.updatePlaceholderTexts=function(){for(var a=!1,W=[],w=0;w<this.quizOptions.length;w++){var Z=this.optionPlaceholderText+" "+(w+1),N=void 0;((N=this.quizOptions[w])==null?void 0:N.placeholderText)!==Z?(a=!0,W.push(Object.assign({},this.quizOptions[w],{placeholderText:Z}))):W.push(this.quizOptions[w])}a&&(this.quizOptions=W);this.isValid()?_.E$(this.hostElement,"yt-commentbox-post-enable"):_.E$(this.hostElement,"yt-commentbox-post-disable")};
_.t.getSimpleString=function(a){return _.sd(a)};
_.t.createQuizOptions=function(a){var W=[],w;a=(w=a==null?void 0:a.minQuizOptions)!=null?w:0;for(w=0;w<a;w++)W.push(this.createQuizOption());return W};
_.t.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.K8(this.quizOptions),[this.createQuizOption()]))};
_.t.onInput=function(){this.quizOptions=[].concat(_.K8(this.quizOptions))};
_.t.onExplanationInput=function(){_.E$(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.t.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(_.K8(this.quizOptions));this.quizOptions.length===0&&_.E$(this.hostElement,"yt-quiz-attachment-dismiss")};
_.t.updateHintRenderer=function(){var a=this;clearTimeout(this.timer);this.timer=setTimeout(function(){a.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.t.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,W=0,w=_.l(this.quizOptions),Z=w.next();!Z.done;Z=w.next()){Z=Z.value;var N=void 0;if(((N=Z.optionText)==null?void 0:N.trim())!==""||Z.isCorrect){Z.isCorrect&&W++;N=void 0;if(this.hasCustomOptionText&&((N=Z.optionText)==null?void 0:N.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;a++}}return a>=
Number(this.editorInfo.minQuizOptions)&&W===1};
_.t.getPostCreateOptions=function(){for(var a=[],W=_.l(this.quizOptions),w=W.next();!w.done;w=W.next()){w=w.value;var Z=void 0;((Z=w.optionText)==null?void 0:Z.trim())!==""&&a.push({pollOption:{text:w.optionText,explanation:w.explanationText},isCorrect:w.isCorrect})}return a};
_.t.getExplanationText=function(){var a;return((a=this.quizOptions[this.correctAnswerIndex])==null?void 0:a.explanationText)||""};
_.t.maybeDisplayMarkAnswerEduToolTip=function(){var a,W,w,Z,N,B,I;this.shouldShowMarkAnswerTooltip()&&((a=this.editorInfo)==null?0:(W=a.markAnswerButton)==null?0:(w=W.buttonRenderer)==null?0:(Z=w.hint)==null?0:(N=Z.hintRenderer)==null?0:(B=N.content)==null?0:(I=B.bubbleHintRenderer)==null?0:I.text)&&(_.zZ.getInstance(),a=HE(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&&_.wJ(a[0],this.optionSelectors[0]))};
_.t.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var a=0,W=_.l(this.quizOptions),w=W.next();!w.done;w=W.next()){w=w.value;var Z=void 0;((Z=w.optionText)==null?void 0:Z.trim())!==""&&a++;if(w.isCorrect)return!1}return a<2?!1:!0};
_.t.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.t.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.t.updateOptionTextFromBinding=function(a){if(a.target){var W=Array.from(_.M(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(a.target);if(W>=0){var w;this.quizOptions[W].optionText=(w=a.detail.value)!=null?w:""}}};
_.dU.Object.defineProperties(xx.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var a,W,w=(a=this.editorInfo)==null?void 0:(W=a.addOptionButton)==null?void 0:W.buttonRenderer;w&&(w.style="STYLE_SUGGESTIVE",w.size="SIZE_SMALL",w.isDisabled=!this.isAllowedToAddOption);return(w==null?0:w.text)?w:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var a,W;return this.quizOptions.length<((W=(a=this.editorInfo)==null?void 0:a.maxQuizOptions)!=null?W:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(a){var W;return(W=a.optionText)==null?void 0:W.trim()})}}});
xx.prototype.updatePlaceholderTexts=xx.prototype.updatePlaceholderTexts;xx.prototype.dataChanged=xx.prototype.dataChanged;_.f([_.b(),_.z("design:type",Object)],xx.prototype,"editorInfo",void 0);_.f([_.b(),_.z("design:type",Array)],xx.prototype,"quizOptions",void 0);_.f([_.b(),_.z("design:type",Object)],xx.prototype,"explanationPlaceholderText",void 0);_.f([_.ZC(".option-selector-button"),_.z("design:type",Array)],xx.prototype,"optionSelectors",void 0);
_.f([_.lO("editorInfo"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xx.prototype,"dataChanged",null);_.f([_.Q("editorInfo","isAllowedToAddOption","quizOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],xx.prototype,"addAnswerButton",null);_.f([_.Q("editorInfo","quizOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],xx.prototype,"isAllowedToAddOption",null);
_.f([_.lO("quizOptions"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xx.prototype,"updatePlaceholderTexts",null);_.f([_.Q("quizOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],xx.prototype,"hasCustomOptionText",null);xx=_.f([_.C({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],xx);
_.D(xx,"ytd-backstage-quiz-editor-renderer",function(){if(W2R!==void 0)return W2R;var a=document.createElement("template");_.n(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-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" 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(_.y().content.cloneNode(!0),
a.content.firstChild);return W2R=a},{mode:2});var wVl;var ZyJ=(Ay.FIRSTDAYOFWEEK+1)%7;var Np_;var tcL=[],$eV=0,Bp6=0;$eV=0;Bp6=24;if(.25*(Bp6-$eV)<0)Np_=[];else{for(var lNA=$eV;lNA<Bp6;lNA+=.25)tcL.push(lNA);Np_=tcL}var INJ=Np_.map(function(a){a=a*60*60;return{secondsSinceMidnight:a,text:(new Qb(7)).format(new Date(0,0,0,0,0,a))}});var PUL;var bu=function(){var a=_.u.apply(this,arguments)||this;a.skipNextOpenDialog=!1;a.errorMessage="";return a};
_.c(bu,_.u);_.t=bu.prototype;_.t.attached=function(){var a=this,W=new MutationObserver(function(){a.JSC$13515_calendarMain.scrollHeight>0&&(W.disconnect(),a.calendarConfig&&a.calendarConfig.selectedDate&&a.scrollToDate())});
W.observe(this.JSC$13515_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){W.disconnect()},1E3)};
_.t.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.t.onDateTextChange=function(){if(this.calendarConfig){var a=this.validateDateText();a.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(a.details)):this.textbox.setAttribute("invalid","")}};
_.t.handleDayClick=function(a){a.model.day.date&&(this.commitDate(a.model.day.date),this.dialog.close())};
_.t.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var a=wmE(this.calendarConfig.selectedDate,this.renderData);a!==void 0&&this.JSC$13515_calendarMain.scrollToIndex(a)}};
_.t.scrollToNextMonth=function(){this.JSC$13515_calendarMain.scrollToIndex(this.JSC$13515_calendarMain.firstVisibleIndex+1)};
_.t.scrollToPrevMonth=function(){this.JSC$13515_calendarMain.firstVisibleIndex===0&&this.JSC$13515_calendarMain.scrollTo(0,0);this.JSC$13515_calendarMain.scrollToIndex(this.JSC$13515_calendarMain.firstVisibleIndex-1)};
_.t.onFormSubmit=function(a){a.preventDefault();this.calendarConfig&&(a=this.validateDateText(),a.isValid&&(this.commitDate(a.details),this.dialog.close()))};
_.t.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 W=0;W<this.dropdownButton.children.length;W++)this.dropdownButton.children[W]===a&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}a=this.textbox.value!==this.dateText;W=this.validateDateText();a&&W.isValid&&this.commitDate(W.details);this.dialog.close();this.textbox.value=
this.dateText};
_.t.commitDate=function(a){this.calendarConfig&&(this.set("calendarConfig.selectedDate",a),_.E$(this.hostElement,"ytd-calendar-date-selected",a))};
_.t.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var a=this.textbox.value;var W=new Date;a=(new KAH(2)).parse(a,W,{validate:!0})===a.length?acC(W):void 0;if(!a)return this.errorMessage=_.P_("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};W=this.calendarConfig.start;var w=this.calendarConfig.end;if(VCI(a,W))return this.errorMessage=_.P_("ENTER_DATE_OR_LATER",{allowed_date:E0x(W)}),{isValid:!1,details:void 0};if(VCI(w,a))return this.errorMessage=
_.P_("ENTER_DATE_OR_EARLIER",{allowed_date:E0x(w)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:a}};
_.dU.Object.defineProperties(bu.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?E0x(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var a=this.calendarConfig,W=[],w=0;w<7;w++)W.push(Ay.NARROWWEEKDAYS[(w+ZyJ)%7]);w=[];for(var Z=new Date(a.start.year,a.start.month);Z.getFullYear()<a.end.year||Z.getFullYear()===a.end.year&&Z.getMonth()<=a.end.month;){var N=w,B=N.push,I=Z.getFullYear(),X=Z.getMonth(),v=a,U=void 0,O=[],S=Object.freeze({extraCssClass:"invisible",debugClass:""}),T=new Date(I,X),p=acC(T);T=T.getDay();for(var h=acC(new Date);p.month===
X;){T!==ZyJ&&U||(U=Array.from({length:7}).fill(S),O.push(U));var L={date:{year:I,month:X,day:p.day},extraCssClass:"",debugClass:""};v.selectedDate&&L.date&&mbe(L.date,v.selectedDate)&&(L.extraCssClass+=" selected");if(VCI(p,v.start)||VCI(v.end,p))L.extraCssClass+=" disabled";mbe(p,h)&&(L.extraCssClass+=" today");L.extraCssClass=L.extraCssClass.trim();U[(T-ZyJ+7)%7]=L;p=H5e(p);T=(T+1)%7}B.call(N,{weeks:O,monthLabel:Ay.SHORTMONTHS[X]+" "+I,year:I,month:X,monthLabelExtraCssClass:O[0][2]===S?"shift-down-label":
""});Z.setMonth(Z.getMonth()+1)}return{months:w,daysOfWeekLabel:W}}}}});
bu.prototype.onEscOrClickingOutside=bu.prototype.onEscOrClickingOutside;bu.prototype.scrollToDate=bu.prototype.scrollToDate;_.f([_.b(),_.z("design:type",Object)],bu.prototype,"calendarConfig",void 0);_.f([_.b(),_.z("design:type",Object)],bu.prototype,"skipNextOpenDialog",void 0);_.f([_.b(),_.z("design:type",Object)],bu.prototype,"errorMessage",void 0);_.f([_.w$("#textbox"),_.z("design:type",HTMLInputElement)],bu.prototype,"textbox",void 0);
_.f([_.w$("#calendar-dialog"),_.z("design:type",Object)],bu.prototype,"dialog",void 0);_.f([_.w$("#calendar-main"),_.z("design:type",Object)],bu.prototype,"JSC$13515_calendarMain",void 0);_.f([_.w$("#date-picker"),_.z("design:type",HTMLElement)],bu.prototype,"dropdownButton",void 0);_.f([_.Q("calendarConfig.selectedDate"),_.z("design:type",String),_.z("design:paramtypes",[])],bu.prototype,"dateText",null);
_.f([_.Q("calendarConfig","calendarConfig.selectedDate"),_.z("design:type",Object),_.z("design:paramtypes",[])],bu.prototype,"renderData",null);_.f([_.a5("renderData","calendarConfig.selectedDate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bu.prototype,"scrollToDate",null);_.f([_.E6("iron-overlay-canceled"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],bu.prototype,"onEscOrClickingOutside",null);
bu=_.f([_.TD({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],bu);
_.D(bu,"ytd-calendar-date-picker",function(){if(PUL!==void 0)return PUL;var a=document.createElement("template");_.n(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="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);return PUL=a},{mode:2});var XVE=_.P_("UTC_OFFSET_FORMAT",{utc_offset:(new Qb("Z")).format(new Date)}),v9R=(new Date).getTimezoneOffset()*-60,g9L=new Date,o9_,kEL=Rs(g9L.getTimezoneOffset());o9_=noT(Lh6(kEL,g9L));var Ue_=_.P_("LOCAL_TIME_GMT_LABEL",{gmt_text:o9_.replace("+0","+").replace("-0","-").replace(":00","")}),sH=function(){var a=_.u.apply(this,arguments)||this;a.selectedTimeIndex=0;a.selectedTimezoneIndex=0;a.timeOfDayOptions=INJ;return a};
_.c(sH,_.u);_.t=sH.prototype;_.t.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var a=yOv();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=a,this.selectedTimeIndex=0;else{var W=WA8(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},a,{selectedDate:W.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(w){return w.secondsSinceMidnight===W.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.t.onDatePicked=function(a){this.selectedDate=a.detail};
_.t.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.E$(this.hostElement,"ytd-date-time-selection-cancelled")};
_.t.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var a=this.selectedDate;a=new Date(a.year,a.month,a.day);_.E$(this.hostElement,"ytd-date-time-selection-update",Math.floor(a.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+a.getTimezoneOffset()*60))}};
_.t.getTimezoneFormat=function(a){return a.localizedDisplayText?a.localizedDisplayText:_.P_("TIMEZONE_FORMAT",{utc_offset_text:""+a.localizedUtcOffset,city_name:""+a.localizedName})};
_.t.updateSelectedTimeIndexFromBinding=function(a){this.selectedTimeIndex=a.detail.value};
_.t.updateSelectedTimezoneIndexFromBinding=function(a){this.selectedTimezoneIndex=a.detail.value};
_.dU.Object.defineProperties(sH.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data.timezoneOptions;var W={name:"Etc/Unknown",localizedName:_.P_("LOCAL_TIME_LABEL"),localizedUtcOffset:XVE,utcOffsetSec:""+v9R,localizedDisplayText:Ue_};a?a.length&&a[0].name!==W.name&&(a[0].localizedDisplayText||(W.localizedDisplayText=""),a.unshift(W)):a=[W];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]}}});
sH.prototype.onDateTimeTimezoneChange=sH.prototype.onDateTimeTimezoneChange;sH.prototype.onDatePicked=sH.prototype.onDatePicked;sH.prototype.updateDefaultSelectedValue=sH.prototype.updateDefaultSelectedValue;_.f([_.b(),_.z("design:type",Object)],sH.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],sH.prototype,"calendarConfig",void 0);_.f([_.b(),_.z("design:type",Object)],sH.prototype,"selectedDate",void 0);_.f([_.b(),_.z("design:type",Object)],sH.prototype,"selectedTimeIndex",void 0);
_.f([_.b(),_.z("design:type",Object)],sH.prototype,"selectedTimezoneIndex",void 0);_.f([_.w$("#time-listbox"),_.z("design:type",Object)],sH.prototype,"timeListBox",void 0);_.f([_.w$("#timezone-listbox"),_.z("design:type",Object)],sH.prototype,"timezoneListBox",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],sH.prototype,"rendererStamperBehavior",void 0);_.f([_.Q("data.timezoneOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],sH.prototype,"timeZones",null);
_.f([_.lO("data","timeZones"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sH.prototype,"updateDefaultSelectedValue",null);_.f([_.Q("selectedTimezoneIndex","timeZones"),_.z("design:type",Object),_.z("design:paramtypes",[])],sH.prototype,"selectedTimezone",null);_.f([_.Q("selectedTimeIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],sH.prototype,"selectedTime",null);
_.f([_.E6("ytd-calendar-date-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],sH.prototype,"onDatePicked",null);_.f([_.a5("selectedTimezone","selectedTime","selectedDate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sH.prototype,"onDateTimeTimezoneChange",null);sH=_.f([_.C({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],sH);
_.D(sH,"ytd-date-time-picker-renderer",function(){if(wVl!==void 0)return wVl;var a=document.createElement("template");_.n(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="yt-icons:arrow_drop_down" 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="yt-icons:arrow_drop_down" 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(_.y().content.cloneNode(!0),a.content.firstChild);return wVl=a},{mode:1});var Oyl;var d_=function(){var a=_.u.apply(this,arguments)||this;a.boundOnTapDismissButton=function(){a.dismissTapHandler()};
a.dismissButtonOverrides={size:"XS"};return a};
_.c(d_,_.u);d_.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}}}}}};
d_.prototype.dismissTapHandler=function(){_.E$(this.hostElement,"yt-backstage-attachment-dismissed")};
d_.prototype.computeAttachmentType=function(a){return a?a.backstageImageRenderer?"image":a.videoRenderer?"video":"none":"none"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],d_.prototype,"attachmentPreview",void 0);_.f([_.b(),_.z("design:type",Object)],d_.prototype,"dismissButton",void 0);_.f([_.b(),_.z("design:type",Object)],d_.prototype,"boundOnTapDismissButton",void 0);
_.f([_.b(),_.z("design:type",Object)],d_.prototype,"dismissButtonOverrides",void 0);_.f([_.b({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.z("design:type",String)],d_.prototype,"attachmentType",void 0);d_=_.f([_.C({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],d_);
_.D(d_,"ytd-backstage-dismissable-attachment",function(){if(Oyl!==void 0)return Oyl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Oyl=a},{mode:1});var Sk6;var mM=function(){var a=_.u.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};
_.c(mM,_.u);_.t=mM.prototype;_.t.onServiceRequestCompleted=function(a){a.stopPropagation()};
_.t.handleAddVideoPreviewAction=function(a){a=this.get("addVideoPreviewAction",a);this.onGetVideoPreviewSuccess(a)};
_.t.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}}}}}};
_.t.onLaunchVideoPicker=function(a){var W=this,w=_.sd(this.get("addVideoLinkAction.title",a)),Z=this.get("addVideoLinkAction.onePickHostId",a);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",a);Z&&(this.picker||(w=_.eqE(_.nZx(Z).setTitle(w).addView(ASA()).addView(rS$()),function(N){W.onPickVideo(N)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",a)||w.addView("youtube"),this.picker=w.build()),this.picker.setVisible(!0))};
_.t.onPickVideo=function(a){if(a)if(a.action==="cancel")_.E$(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()}};
_.t.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.")};
_.t.onGetVideoPreviewSuccess=function(a){if(a&&a.videoPreview&&a.cancelButton)this.videoPreview=a.videoPreview,this.cancelButton=a.cancelButton,_.E$(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.t.onGetVideoPreviewError=function(){this.cancel()};
_.t.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.E$(this.hostElement,"yt-video-link-cancel")};
_.t.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
mM.prototype.onServiceRequestCompleted=mM.prototype.onServiceRequestCompleted;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],mM.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],mM.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],mM.prototype,"videoPreview",void 0);_.f([_.b(),_.z("design:type",Object)],mM.prototype,"cancelButton",void 0);_.f([_.b(),_.z("design:type",Object)],mM.prototype,"getVideoPreviewCommand",void 0);_.f([_.b(),_.z("design:type",Object)],mM.prototype,"dismissButtonOverrides",void 0);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],mM.prototype,"onServiceRequestCompleted",null);mM=_.f([_.C({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],mM);
_.D(mM,"ytd-backstage-video-link-attachment",function(){if(Sk6!==void 0)return Sk6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Sk6=a},{mode:1});var YkJ;var Tph;var K2V;var Vr=function(){return _.u.apply(this,arguments)||this};
_.c(Vr,_.u);Vr.prototype.dataChanged=function(){this.active=!1};
Vr.prototype.onTap=function(){_.E$(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Vr.prototype.identity=function(a){return a};
_.dU.Object.defineProperties(Vr.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z;if((a=this.data)==null?0:(W=a.image)==null?0:(w=W.thumbnails)==null?0:(Z=w[0])==null?0:Z.url)return a=this.data.image.thumbnails[0].url,a.startsWith("data:image/svg+xml")?vP(a):_.SB(a)}}});
Vr.prototype.dataChanged=Vr.prototype.dataChanged;_.f([_.b(),_.z("design:type",Object)],Vr.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Vr.prototype,"active",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vr.prototype,"dataChanged",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Vr.prototype,"imageSrc",null);
Vr=_.f([_.C({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Vr);
_.D(Vr,"ytd-emoji-suggestion",function(){if(K2V!==void 0)return K2V;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return K2V=a},{mode:1});var pVH=/.*([:@#].*?)$/,zW=function(){var a=_.u.apply(this,arguments)||this;a.suggestions=[];a.suggestionIndex=-1;a.JSC$13543_lastSuggestionRange=null;return a};
_.c(zW,_.u);_.t=zW.prototype;_.t.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.t.getSuggestions=function(a){var W=[],w=dA$(this.emojiManager,a.substr(0,3));if(w)for(var Z in w)if(Z.toLocaleLowerCase().indexOf(a)===0){var N=w[Z];if(N&&N.emojiId){N=cw(this.emojiManager,N.emojiId);var B=void 0,I=void 0,X=void 0,v=void 0,U=((B=N)==null?0:B.isCustomEmoji)?(I=N)==null?void 0:(X=I.shortcuts)==null?void 0:X[0]:(v=N)==null?void 0:v.emojiId;B=void 0;W.push({suggestion:{image:(B=N)==null?void 0:B.image,alt:U,text:Z}});if(W.length>=64)break}}return W?W.sort(function(O,S){return S.suggestion.text<
O.suggestion.text?-1:S.suggestion.text===O.suggestion.text?0:1}):null};
_.t.insertSuggestion=function(a){_.E$(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13543_lastSuggestionRange,text:a.alt});this.dropdown.opened=!1};
_.t.updateSuggestionsAtCaret=function(a){this.updateSuggestions(a,this.retrieveTextBeforeRange(a))};
_.t.offsetStartOfRangeBy=function(a,W){a.startOffset>=W&&a.setStart(a.startContainer,a.startOffset-W)};
_.t.updateSuggestions=function(a,W){var w=this;this.JSC$13543_lastSuggestionRange&&(this.JSC$13543_lastSuggestionRange.detach(),this.JSC$13543_lastSuggestionRange=null);if((W=pVH.exec(W))&&W.length&&(W=W[W.length-1].toLocaleLowerCase(),W.length>2||W===":_")&&(this.offsetStartOfRangeBy(a,W.length),this.JSC$13543_lastSuggestionRange=a,(a=this.getSuggestions(W))&&a.length)){this.suggestions=a;_.DW(this,function(){w.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};
_.t.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()}};
_.t.onKeyUp=function(a,W){switch(a.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(W);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(W)}};
_.t.onKeyPress=function(a){a.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),a.preventDefault())};
_.t.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)};
_.t.retrieveTextBeforeRange=function(a){var W=a.startContainer;return W&&W.nodeType===Node.TEXT_NODE?W.textContent.substr(0,a.startOffset):""};
zW.prototype.onKeyPress=zW.prototype.onKeyPress;zW.prototype.onKeyUp=zW.prototype.onKeyUp;zW.prototype.onKeyDown=zW.prototype.onKeyDown;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Array)],zW.prototype,"suggestions",void 0);_.f([_.b(),_.z("design:type",_.hp)],zW.prototype,"emojiManager",void 0);_.f([_.b(),_.z("design:type",Number)],zW.prototype,"verticalSuggestionsOffset",void 0);
_.f([_.w$("#dropdown"),_.z("design:type",Object)],zW.prototype,"dropdown",void 0);_.f([_.w$("#dropdown-content"),_.z("design:type",HTMLDivElement)],zW.prototype,"dropdownContent",void 0);_.f([_.E6("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],zW.prototype,"onKeyDown",null);_.f([_.E6("keyup"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent,Range]),_.z("design:returntype")],zW.prototype,"onKeyUp",null);
_.f([_.E6("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],zW.prototype,"onKeyPress",null);zW=_.f([_.C({disableElementRegistration:!0,is:"ytd-emoji-input"})],zW);
_.D(zW,"ytd-emoji-input",function(){if(Tph!==void 0)return Tph;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Tph=a},{mode:2});var raV;var Hk=function(){var a=_.u.apply(this,arguments)||this;a.hasMaxOptions=!1;return a};
_.c(Hk,_.u);_.t=Hk.prototype;_.t.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.t.setPrefilledChoices=function(a){var W=this;this.set("pollOptions",[]);var w;for(w=0;w<Math.min(a.length,this.data.maxPollOptions);w++)this.push("pollOptions",a[w].substring(0,this.data.maxPollOptionChars));for(;w<this.data.minPollOptions;w++)this.push("pollOptions","");this.hasMaxOptions=w>=this.data.maxPollOptions;_.DW(this,function(){for(var Z=W.pollOptions,N=_.M(W.hostElement).querySelectorAll(".poll-option-input"),B=0;B<N.length;B++)N[B].value=Z[B]})};
_.t.focusChanged=function(){_.Hu(this.hostElement)};
_.t.onInput=function(){var a=this;_.eK(this,"onInput",function(){a.isValid()?_.E$(a.hostElement,"yt-commentbox-post-enable"):_.E$(a.hostElement,"yt-commentbox-post-disable")},300)};
_.t.setPollOptions=function(){var a=[],W,w=((W=this.data)==null?0:W.minPollOptions)?this.data.minPollOptions:0;for(W=0;W<w;W++)a.push("");return a};
_.t.addPollOption=function(){var a=this;_.E$(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.hF.addLowPriorityJob(function(){var W;(W=_.M(a.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||W.focus()})};
_.t.onRemovePollOption=function(a){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.E$(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(),_.E$(this.hostElement,"yt-commentbox-post-enable"))))};
_.t.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.t.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var a=0,W=this.pollOptions.length;a<W;a++)if(this.pollOptions[a].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.t.getPollOptions=function(){return this.pollOptions};
_.t.setPollOptionsFromInputs=function(){for(var a=_.M(this.hostElement).querySelectorAll(".poll-option-input"),W=0;W<a.length;W++)this.pollOptions[W]=a[W].value.trim()};
_.t.clearPollOptions=function(){var a=_.M(this.hostElement).querySelectorAll(".poll-option-input");a=_.l(a);for(var W=a.next();!W.done;W=a.next())W.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.t.getSimpleString=function(a){return _.sd(a)};
_.t.updateValueFromBinding=function(a){if(a.target&&this.pollOptions){var W=Array.from(_.M(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(a.target);if(W>=0){var w;this.pollOptions[W]=(w=a.detail.value)!=null?w:"";this.notifyPath("pollOptions."+W)}}};
Hk.prototype.dataChanged=Hk.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Hk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Hk.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Array)],Hk.prototype,"pollOptions",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hk.prototype,"hasMaxOptions",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Hk.prototype,"enableCreationBox",void 0);
_.f([_.w$("#repeat"),_.z("design:type",UN)],Hk.prototype,"repeat",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hk.prototype,"dataChanged",null);Hk=_.f([_.C({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Hk);
_.D(Hk,"ytd-poll-attachment",function(){if(raV!==void 0)return raV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return raV=a},{mode:2});var AaR;var hkR;var iyy;var ca6;var yr=function(){return _.u.apply(this,arguments)||this};
_.c(yr,_.u);_.dU.Object.defineProperties(yr.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],yr.prototype,"rendererBehaviors",void 0);_.f([_.b(),_.z("design:type",Object)],yr.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],yr.prototype,"focused",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("focused"),_.z("design:type",Object),_.z("design:paramtypes",[])],yr.prototype,"ariaSelected",null);yr=_.f([_.TD({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],yr);
_.D(yr,"yt-user-mention-suggestion-renderer",function(){if(ca6===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;iyy===void 0&&(iyy=document.createElement("template"));var Z=iyy;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);ca6=a}a=ca6;return a},{mode:2});var ek6;var n9R;var EH=function(){var a=_.u.apply(this,arguments)||this;a.focusedSuggestionIndex=-1;return a};
_.c(EH,_.u);_.t=EH.prototype;_.t.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.t.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.t.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))};
_.t.advanceSuggestion=function(a){this.focusedSuggestionIndex===-1||a!==-1&&a!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+a),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.t.ensureSuggestionVisible=function(a){a=this.getSuggestionId(a);a=_.M(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))};
_.t.getSuggestionId=function(a){return"user-mention-suggestion-"+a};
_.t.onSuggestionTap=function(a){var W=_.A(a.model.item,XEh);this.ytRendererBehavior.logExplicitClick(W);_.E$(this.hostElement,"yt-user-mention-suggestion-selected",{data:W,index:a.model.index})};
_.t.onSuggestionMouseMove=function(a){a.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(a.model.index)};
_.t.isSuggestionFocused=function(a,W){return a===W};
_.t.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.t.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("focused-suggestion-id-changed",this.focusedSuggestionId))};
EH.prototype.focusedSuggestionIdChangedForBinding=EH.prototype.focusedSuggestionIdChangedForBinding;EH.prototype.onDomChange=EH.prototype.onDomChange;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],EH.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],EH.prototype,"focusedSuggestionIndex",void 0);_.f([_.b({readOnly:!0}),_.z("design:type",String)],EH.prototype,"focusedSuggestionId",void 0);
_.f([_.E6("dom-change"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],EH.prototype,"onDomChange",null);_.f([_.a5("focusedSuggestionId"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EH.prototype,"focusedSuggestionIdChangedForBinding",null);EH=_.f([_.TD({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],EH);
_.D(EH,"yt-user-mention-suggestions-dropdown",function(){if(n9R===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;ek6===void 0&&(ek6=document.createElement("template"));var Z=ek6;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);n9R=a}a=n9R;return a},{mode:2});var a2=function(){var a=_.u.apply(this,arguments)||this;a.suggestionsResponse=null;a.activeMention=null;a.selectionChangeListener=a.onSelectionChange.bind(a);a.handlesEnabled=_.r("enable_handles_in_mention_suggest_posts");a.handlesInMentionSuggestionsEnabled=_.r("handles_in_mention_suggest_posts");a.zeroPrefixMentionSuggestionEnabled=_.r("enable_zero_prefix_mention_suggestion_web");a.pendingQuery=null;a.flowNonce=null;return a};
_.c(a2,_.u);_.t=a2.prototype;_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.t.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.t.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.t.hasSuggestions=function(a){return!!(a&&a.suggestions&&a.suggestions.length>0)};
_.t.onInput=function(){var a=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var W=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),w=this.activeMention.JSC$9159_getText().slice(-1)===" ",Z=this.activeMention.JSC$9159_getText().slice(-2,-1)===" ",N="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9159_getText().slice(-2,-1))>=
0;N=this.zeroPrefixMentionSuggestionEnabled&&N;if(this.activeMention.isCollapsed()||(W||Z||N)&&w)this.cancelActiveMention();else{var B=this.activeMention.JSC$9159_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.eK(this,"requestSuggestions",function(){a.requestSuggestions(B)},100)}}}};
_.t.onServiceRequestSent=function(a){a.stopPropagation()};
_.t.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))};
_.t.onServiceRequestError=function(a){a.stopPropagation()};
_.t.onUserMentionSuggestionSelected=function(a){this.selectSuggestion(a.detail.data,a.detail.index)};
_.t.onSelectionChange=function(){if(this.activeMention){var a=_.YB(),W=this.activeMention.JSC$9159_containsRange(a);a=a&&this.containsHelper(this.dropdown,a.getContainer());W||a||this.cancelActiveMention()}};
_.t.containsHelper=function(a,W){var w;if(((w=window.ShadyDOM)==null?void 0:w.noPatch)===!0)return a.contains(W);for(;W;){if(W===a)return!0;W=W instanceof ShadowRoot?W.host:W.parentNode}return!1};
_.t.maybeStartSuggest=function(){var a=_.YB();if(a&&a.isCollapsed()){var W=a.JSC$9159_getStartNode(),w=a.JSC$9159_getStartOffset();if(W instanceof Text&&!(w<1)){var Z=W.textContent;!(Z=Z&&Z.charAt(w-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(Z)<0||(this.activeMention=_.MD(W,w-1,a.JSC$9159_getEndNode(),a.JSC$9159_getEndOffset()),this.flowNonce=hs(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.t.updateActiveMention=function(){if(this.activeMention){var a=_.YB();a&&a.isCollapsed()&&(this.activeMention=_.MD(this.activeMention.JSC$9159_getStartNode(),this.activeMention.JSC$9159_getStartOffset(),a.JSC$9159_getEndNode(),a.JSC$9159_getEndOffset()))}};
_.t.requestSuggestions=function(a){if(this.activeMention){var W={suggestions_query:a};this.pendingQuery=a;_.Z9(this.hostElement,[this.suggestionsEndpoint,W])}};
_.t.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()};
_.t.focusPreviousSuggestion=function(a){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),a.preventDefault())};
_.t.focusNextSuggestion=function(a){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),a.preventDefault())};
_.t.selectFocusedSuggestion=function(a){if(this.hasSuggestions(this.suggestionsResponse)){var W=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.A(W,XEh)&&(this.selectSuggestion(_.A(W,XEh),this.dropdown.focusedSuggestionIndex),a.preventDefault())}};
_.t.selectSuggestion=function(a,W){if(a){var w=this.activeMention;if(w){var Z=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&a.handle?_.FD(Z,"\u00a0\u2068@"+a.handle+"\u2069\u00a0"):this.handlesEnabled?_.FD(Z,"\u00a0"+a.displayName+"\u00a0"):_.FD(Z,"\u00a0@"+a.displayName+"\u00a0");hY(Z,"/channel/"+a.channelId);Z.classList.add("yt-formatted-string","yt-simple-endpoint");Z.setAttribute("spellcheck","false");w.isCollapsed()||w.JSC$9159_removeContents();w.insertNode(Z,!0);a=document.createTextNode(" ");
Z.parentNode.insertBefore(a,Z.nextSibling);window.getSelection().collapse(a,1);W={suggestionSelected:{suggestionIndex:W}};if(this.zeroPrefixMentionSuggestionEnabled){var N;W.suggestionSelected.isZeroPrefix=((N=this.suggestionsResponse)==null?void 0:N.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",W);this.cancelActiveMention();_.E$(this.hostElement,"yt-mention-inserted")}}};
_.t.getPositionTarget=function(a){return a&&a.getBrowserRangeObject()};
_.t.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.t.onFocusedSuggestionIdChanged=function(a){var W=_.xQS(this.hostElement)[0];W&&(a.detail.value?W.setAttribute("aria-activedescendant",a.detail.value):W.removeAttribute("aria-activedescendant"))};
_.t.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.t.logGELEvent=function(a,W){a={eventType:a,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};W&&(a=Object.assign(a,W));_.ia("userMentionAutoCompleteBoxEvent",a)};
a2.prototype.onDomChange=a2.prototype.onDomChange;a2.prototype.onUserMentionSuggestionSelected=a2.prototype.onUserMentionSuggestionSelected;a2.prototype.onServiceRequestError=a2.prototype.onServiceRequestError;a2.prototype.onServiceRequestCompleted=a2.prototype.onServiceRequestCompleted;a2.prototype.onServiceRequestSent=a2.prototype.onServiceRequestSent;a2.prototype.onInput=a2.prototype.onInput;_.f([_.R(_.YS),_.z("design:type",Object)],a2.prototype,"ironA11yKeysBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],a2.prototype,"suggestionsEndpoint",void 0);_.f([_.b(),_.z("design:type",Object)],a2.prototype,"suggestionsResponse",void 0);_.f([_.b(),_.z("design:type",Object)],a2.prototype,"activeMention",void 0);_.f([_.w$("#dropdown"),_.z("design:type",Object)],a2.prototype,"dropdown",void 0);_.f([_.w$("#iron-dropdown"),_.z("design:type",Object)],a2.prototype,"ironDropdown",void 0);
_.f([_.E6("input"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],a2.prototype,"onInput",null);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],a2.prototype,"onServiceRequestSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],a2.prototype,"onServiceRequestCompleted",null);
_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],a2.prototype,"onServiceRequestError",null);_.f([_.E6("yt-user-mention-suggestion-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],a2.prototype,"onUserMentionSuggestionSelected",null);
_.f([_.E6("dom-change"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],a2.prototype,"onDomChange",null);a2=_.f([_.TD({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],a2);
_.D(a2,"yt-user-mention-autosuggest-input",function(){if(hkR===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;AaR===void 0&&(AaR=document.createElement("template"));var Z=AaR;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);hkR=a}a=hkR;return a},{mode:2});var Wt=null;
_.kQ({is:"ytd-commentbox",_template:function(){if(YkJ!==void 0)return YkJ;var a=document.createElement("template");_.n(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="yt-icons:arrow_drop_down" 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(_.y().content.cloneNode(!0),
a.content.firstChild);return YkJ=a},
behaviors:[_.KRC.YtHostElementBehavior,_.YS,_.d4.YtActionHandlerBehavior,_.e7.YtComponentBehavior,_.fN.YtRendererstamperBehavior,_.lOH.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,W){return _.tG(a.entities,"aadcGuidelinesStateEntityPayload",W)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(a,W){return _.tG(a.entities,"commentboxStateEntity",W)},
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 _.eD}},
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:_.r("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.r("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",_.yV(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,W,w){this.isValidPrefilledImage_(a,W,w)&&(this.prefilledAttachment_="image",this.prefilledImageData_=W,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(a,W){this.isValidPrefilledVideo_(a,W)&&(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;_.Pn();this.focus()},
detached:function(){document.removeEventListener("tap",_.yV(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 W=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(W,a);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var a=_.YB();if(a){a=a.getBrowserRangeObject();for(var W=a.commonAncestorContainer;W;){if(W===this.getEditableTextArea_())return a;W=W.parentNode}}a=this.getEditableTextArea_();a=_.FS(a,a.childNodes.length);a.select();return a.getBrowserRangeObject()},
insertTextWithEmojis_:function(a,W,w){(W=this.emojiManager.createDocumentFragment(W,!0,!1,w===void 0?!0:w))&&W.childNodes.length!==0&&(a.collapsed||a.deleteContents(),w=W.lastChild,a.insertNode(W),_.HxT(w).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var a=_.YB();if(a){var W=a.JSC$9159_getStartNode(),w=a.JSC$9159_getEndNode();if(ZLE(W)&&ZLE(w)){var Z=a.JSC$9159_getStartOffset(),N;if(_.vz&&W.nodeType===Node.ELEMENT_NODE&&(N=_.laJ(W)))_.FS(N,0).select();else{N=Ua(W)?W:_.LY(W,Ua);var B=Ua(w)?w:_.LY(w,Ua);if(N||B)if(a.isCollapsed()){if(W.nodeType===Node.TEXT_NODE){a=!0;Z===W.length&&(a=!1);if(Wt==="end"||Wt==="right")a=!1;W=W.parentNode;a=[].concat(_.K8(W.parentNode.childNodes)).indexOf(W)+(a?0:1);_.FS(W.parentNode,a).select()}}else N?
N.previousSibling&&N.previousSibling.length>0?_.MD(w,a.JSC$9159_getEndOffset(),N.previousSibling,N.previousSibling.length-1).select():(W=document.createTextNode("\u200b"),N.parentNode.insertBefore(W,N),_.MD(w,a.JSC$9159_getEndOffset(),W,0).select()):B&&(B.nextSibling&&B.nextSibling.length>0?_.MD(W,a.JSC$9159_getStartOffset(),B.nextSibling,1).select():(w=document.createTextNode("\u200b"),B.parentNode.insertBefore(w,B.nextSibling),_.MD(W,a.JSC$9159_getStartOffset(),w,w.length).select()));Wt=null}}else Wt=
null}else Wt=null},
leftKeyPressed_:function(){Wt="left"},
rightKeyPressed_:function(){Wt="right"},
endKeyPressed_:function(){Wt="end"},
maybeDeleteChip_:function(){var a=Icm(!0);if(a){var W=_.YB(),w=W.JSC$9159_getStartNode();W=W.JSC$9159_getStartOffset();_.ef(w,W,a,a.childNodes.length).select()}},
maybeBackspaceChip_:function(){var a=Icm(!1);if(a){var W=_.YB(),w=W.JSC$9159_getStartNode();W=W.JSC$9159_getStartOffset();_.ef(w,W,a,0).select()}},
maybeBackspaceChipWordMode_:function(a){var W=_.YB();if(W.isCollapsed()){var w=W.JSC$9159_getStartNode();W=W.JSC$9159_getStartOffset();var Z=P27(w,W,!0);Z&&(_.ef(w,W,Z,0).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(a){var W=_.YB();if(W.isCollapsed()){var w=W.JSC$9159_getStartNode();W=W.JSC$9159_getStartOffset();var Z=P27(w,W,!1);Z&&(_.ef(w,W,Z,Z.childNodes.length).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
onTap_:function(a){if(!a.defaultPrevented&&(a.currentTarget.tagName==="YTD-COMMENTBOX"&&Ua(a.target)&&a.preventDefault(),this.isEmojiPickerDisplayed)){var W=this.$$("#emojis"),w=this.$$("#emoji-button"),Z=this.getEditableTextArea_();if((a=a.path?a.path:a.composedPath&&a.composedPath())&&!a.includes(W)&&!a.includes(Z)&&!a.includes(w))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(a,W,w){return a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&W!==void 0&&W.encryptedBlobId!==null&&W.sourceExternalVideoId!==null&&w!==void 0&&w.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(a,W){return a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!W&&!!W.videoRenderer&&!!W.videoRenderer.videoId},
isValidPrefilledAttachment_:function(a,W,w){return this.isValidPrefilledImage_(a,W,w)||this.isValidPrefilledVideo_(a,w)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.r("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 _.M(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.M(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,W){a=tse(a,this.emojiManager,W).cloneNode(!0);for(W=a.firstChild;W;)if(W.nodeType!==1)W=W.nextSibling;else switch(W.tagName){case "BR":var w=_.c0();_.UiR(w,W);W=w.nextSibling;break;case "DIV":(w=W.lastChild)&&W.nextSibling&&_.LI(_.c0(),w);W.previousSibling&&(W.previousSibling.nodeType===1||W.previousSibling.nodeType===3&&!W.previousSibling.textContent.endsWith("\n"))&&_.j5(_.c0(),W);w&&w.nodeName==="BR"&&_.Xh(w);w=W;W.hasChildNodes()?(W=W.firstChild,
_.OK6(w)):(W=W.nextSibling,_.Xh(w));break;default:W=W.nextSibling}return Xm7(a)},
onAddImageError_:function(a){a.stopPropagation();this.errorMessage_=_.b8(a.detail)},
setTextAreaValue_:function(a){a||(a="");var W=this.getEditableFormattedString_();W.text="";this.getEditableTextArea_().innerText="";typeof a==="string"&&(a={runs:[{text:a}]});W.text=a},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Wt=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var a=this.getEditableTextArea_();a&&(_.FS(a,a.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.LF("HTML_DIR")==="rtl"){var a=this.getEditableTextArea_(),W=this.getTextAreaValue()!==""?"auto":"rtl";a.setAttribute("dir",W)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var a;return Ks8((a=this.$["quiz-attachment"])==null?void 0:a.getExplanationText())||Ks8(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var a=null;if(this.isEmojiButtonDisplayed){var W=this.getInputRange_();W&&(a=this.emojiInput.retrieveTextBeforeRange(W))}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,W,w){W=W===void 0?!1:W;w=w===void 0?!0:w;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&a){var Z=this.getInputRange_().cloneRange();this.emojiManager&&Z&&(W&&this.emojiInput.offsetStartOfRangeBy(Z,a.length),this.insertTextWithEmojis_(Z,a,w),N18(this.getEditableTextArea_().lastChild)||(Z=this.getInputRange_().cloneRange()),Z&&(this.emojiInput.updateSuggestions(Z,a),this.updateSuggestionOffset_(Z)))}},
setSubmitButton_:function(){if(this.data){var a=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",W=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(a||W){var w=this.getTextAreaValue().trim();W=w===this.previousText_;w=!w||this.aboveCharLimit_;a&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(w=this.aboveCharLimit_);this.submitButtonDisabled=
W||w||!this.getTextLength();a&&_.r("enable_post_scheduling")&&(this.submitButtonDisabled=W&&!this.scheduledPublishTimeSec_||w)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.sd,computeCreationBoxClass_:function(a){return a?"focused":"not-focused"},
computeFooterMessageClass_:function(a,W){return W?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(a,W){return W?W:a},
computeFooterMessageHidden_:function(a,W){return!W&&!a},
computePlaceholderText_:function(a,W,w){return(w==="video"||w==="image")&&(a==null?0:a.prefilledPlaceholderText)?a==null?void 0:a.prefilledPlaceholderText:W==="poll"||W==="image-poll"?a==null?void 0:a.pollPostPlaceholderText:W==="quiz"?a==null?void 0:a.quizPostPlaceholderText:W==="image"?a==null?void 0:a.imagePostPlaceholderText:a==null?void 0:a.placeholderText},
computeHideAttachmentButtons_:function(a,W,w,Z){return a===void 0?!1:Z&&this.getSimpleString(Z)===this.getSimpleString(a.rateLimitErrorMessage)?!0:W!=="none"||w!=="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,W){return a&&!W?24:40},
computeImageUploadEndpoint_:function(a){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",a)},
computeRateLimitErrorCommands_:function(a){var W,w;return a==null?void 0:(W=a.advancedTierFeatures)==null?void 0:(w=W.rateLimit)==null?void 0:w.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(_.r("web_modern_buttons")){var a,W;return{segmentedPosition:this.dropdownSchedulePanel_||!((a=this.data)==null?0:(W=a.postOptionsMenu)==null?0:W.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.r("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(a,W){a=this.get("submitButton.buttonRenderer",a)||this.get("replyButton.buttonRenderer",a)||this.get("postButton.buttonRenderer",a);W&&(a=W);a&&(a=Object.assign({},a),a.serviceEndpoint=void 0,a.isDisabled=this.submitButtonDisabled);return a},
computeHasExternalLinksAccess_:function(a){if(_.r("enable_rfa_external_links")){var W,w,Z;return(Z=a==null?void 0:(W=a.advancedTierFeatures)==null?void 0:(w=W.externalLinks)==null?void 0:w.allowExternalLinks)!=null?Z:!0}return!0},
computeIsEmojiButtonDisplayed_:function(a){return a.emojiButton&&a.emojiPicker&&a.emojiPicker.emojiPickerRenderer&&a.emojiPicker.emojiPickerRenderer.categories?a.emojiPicker.emojiPickerRenderer.categories.find(function(W){return W.emojiPickerCategoryRenderer?W.emojiPickerCategoryRenderer.emojiIds&&W.emojiPickerCategoryRenderer.emojiIds.length>0:W.emojiPickerUpsellCategoryRenderer?W.emojiPickerUpsellCategoryRenderer.emojis&&W.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(a){return a.charLimit?a.charLimit:null},
computeDropdownSchedulingPanel_:function(a,W){if(a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&W)return W},
computeInlineSchedulingPanel_:function(a,W){if(a==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&W)return W},
computeHideAuthorThumbnail_:function(a,W){return a||this.computeUseIdentityChip_(W)},
computeHideIdentityChipRenderer_:function(a,W){return a||!this.computeUseIdentityChip_(W)},
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 W,w,Z,N;(a==null?0:(W=a.detail)==null?0:(w=W.endpoint)==null?0:w.ypcGetOffersEndpoint)||(a==null?0:(Z=a.detail)==null?0:(N=Z.endpoint)==null?0:N.ypcOffersEndpoint)?(a.stopPropagation(),_.Z9(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 W=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(){W.focus()})},
onYtServiceRequestSent_:function(a,W){if(W.actions)for(a=_.l(W.actions),W=a.next();!W.done;W=a.next())W.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(a){this.isLoading=!1;var W=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",a),w,Z,N,B=a==null?void 0:(w=a.detail)==null?void 0:(Z=w.data)==null?void 0:(N=Z.actionResult)==null?void 0:N.commentboxStateEntityKey;if(W)this.errorMessage_=W;else if(B){var I;this.dismissData_=a==null?void 0:(I=a.detail)==null?void 0:I.data;this.commentboxStateKey_=B}else{this.clear();var X;this.fire("yt-commentbox-dismiss",a==null?void 0:(X=a.detail)==
null?void 0:X.data)}},
onYtServiceRequestError_:function(a){a.stopPropagation();this.isLoading=!1;var W,w;if(((W=this.data)==null?void 0:W.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((w=this.data)==null?void 0:w.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(W=this.get("detail.error.args",a)||[],W.length>1&&W[1].message){this.handlePostsServiceRequestError_(W[1].message);return}(a=this.get("detail.error.message",a))?this.errorMessage_=this.data.errorMessage||_.b8(a):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(a){if(_.r("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var W=_.l(this.rateLimitErrorCommands),w=W.next();!w.done;w=W.next())if(w=w.value,w.errorLabel===a){_.wJ(w.command,this.hostElement);return}this.errorMessage_=_.b8(a)},
submitIfNotBackstagePost_:function(a){if(!this.isBackstagePost)this.onSubmit_(a)},
onSubmit_:function(a){var W=this,w,Z,N,B,I,X,v,U,O,S,T,p,h,L,F;return _.P(function(x){switch(x.nextAddress){case 1:a.stopPropagation();if(!W.serviceEndpoint||!W.isValidInput_())return x.return();if(W.shouldShowPostAadcNotice_())return W.showPostAadcNotice_(),x.return();if(W.shouldShowCommentAadcNotice_())return W.showCommentAadcNotice_(),x.return();if(!(W.$$("ytd-backstage-multi-image-select-renderer")&&W.hasImage_&&_.r("enable_multi_image_post_creation"))){x.jumpTo(2);break}w=W.$$("ytd-backstage-multi-image-select-renderer");
return _.g(x,w.getAllUploadStatuses(),3);case 3:Z=x.yieldResult;if(!Z)return x.return();N=_.l(Z);for(B=N.next();!B.done;B=N.next())if(I=B.value,I.encryptedBlobId===void 0)return W.isLoading=!1,v=X=void 0,W.errorMessage_=(v=(X=W.imageUploadEndpoint_)==null?void 0:X.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?v:null,x.return();return x.return(W.submitForm_(void 0,void 0,void 0,void 0,w.images,W.taggedVideoId_));case 2:if(!W.hasImagePoll_||!W.$["image-poll-attachment"]){x.jumpTo(4);
break}return _.g(x,W.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:U=x.yieldResult;if(!U)return x.return();O=_.l(U);for(S=O.next();!S.done;S=O.next())if(T=S.value,!T.encryptedBlobId)return W.isLoading=!1,p=void 0,W.errorMessage_=(p=W.data.errorMessage)!=null?p:null,x.return();case 4:L=(h=W.$$("ytd-backstage-image-select-renderer"))&&h.uploadPromise(),F=W.getSharedPostId_(),L?L.then(function(){W.submitForm_.apply(W,_.K8(_.TH.apply(0,arguments)))}).catch(function(G){W.isLoading=!1;
W.errorMessage_=_.b8(G.message)}):W.selectedVideoId_?W.submitForm_(void 0,W.selectedVideoId_):W.prefilledAttachment_==="image"?W.submitForm_(W.prefilledImageData_.encryptedBlobId,void 0,void 0,W.prefilledImageData_.sourceExternalVideoId,void 0,W.taggedVideoId_):W.prefilledAttachment_==="video"?W.submitForm_(void 0,W.data.backstageAttachment.videoRenderer.videoId):F?W.submitForm_(void 0,void 0,F):W.taggedVideoId_!==void 0?W.submitForm_(void 0,void 0,void 0,void 0,void 0,W.taggedVideoId_):W.submitForm_(),
_.Xd(x)}})},
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 W=this.$["video-link-attachment"];W&&W.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"&&_.r("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.r("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 W;if(this.addedAttachment==="quiz"&&((W=this.$["quiz-attachment"])==null||!W.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,W,w,Z,N,B){var I=this.getTextAreaValue().trim(),X={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&I===this.previousText_&&(I=void 0);I!==void 0&&(X.comment_text=I);this.isLoading=!0;B!=void 0&&(X.tagged_video_id=B);a?(X.image_blob_id=a,this.imagePreviewCoordinates_&&(X.image_preview_coordinates=this.imagePreviewCoordinates_)):W?X.attached_video_id=W:w?X.shared_post_id=w:N&&N.length>0&&(X.images_data=N.map(function(v){return{encryptedBlobId:v.encryptedBlobId,
previewCoordinates:v.previewCoordinates}}));
Z&&(X.source_video_id=Z);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(X.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(X.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(X.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.r("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(X.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.r("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(X.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Z9(this,[this.serviceEndpoint,X])},
onIsInputFocusChanged_:function(a,W){a?this.fire("yt-autonav-pause-focus"):W!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(a){var W=this.getEditableTextArea_();[].concat(_.K8(a.dataTransfer.items)).forEach(function(w){w.kind==="string"&&w.type.match("^text/plain")&&w.getAsString(function(Z){W.appendChild(document.createTextNode(Z))})});
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,W){return!W||a?"":"with-options"},
updateSuggestionOffset_:function(a){if(this.emojiInput&&_.M(this.emojiInput).querySelector("#dropdown")){var W=this.getEditableTextArea_().getBoundingClientRect().bottom,w=a.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(W-w)+5;W=this.getEditableTextArea_().getBoundingClientRect().left;a=a.getBoundingClientRect().left-W;_.M(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(_.r("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 W=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(W)||W!==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"];_.r("enable_quiz_creation")&&a.push("quiz-button");_.r("auto_convert_posts_video_tag")||a.push("video-link-button");return a},
getButtonRenderer:function(a,W){if(a)switch(W){case "video-link-button":var w;return((w=a.videoLinkButton)==null?void 0:w.buttonRenderer)||void 0;case "image-button":var Z;return((Z=a.imageButton)==null?void 0:Z.buttonRenderer)||void 0;case "poll-button":var N;return((N=a.pollButton)==null?void 0:N.buttonRenderer)||void 0;case "image-poll-button":var B;return((B=a.imagePollButton)==null?void 0:B.buttonRenderer)||void 0;case "quiz-button":var I;return((I=a.quizButton)==null?void 0:I.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,W;return!((a=this.data)==null||!a.openAadcDialog)&&!((W=this.aadcGuidelinesState_)==null||!W.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.LF("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 _.LJ("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(a){a.clickTrackingParams&&_.$J().clickCommand(a);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.aV(this,"yt-close-popup-action")},
onHideIdentityChip:function(a){var W;this.set("data.placeholderText",(W=a.hideIdentityChipAction)==null?void 0:W.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var wx=function(){var a=_.u.apply(this,arguments)||this;a.isOpen=!1;a.modern=_.r("web_modern_buttons");a.roundedContainer=!0;a.dropdownButtonOverride=_.r("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;a.inPopupContainer=!1;a.isCommentboxLoading=!1;var W=["image-button","image-poll-button","poll-button"];_.r("enable_quiz_creation")&&W.push("quiz-button");_.r("auto_convert_posts_video_tag")||W.push("video-link-button");a.attachmentButtonIds=W;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};
_.c(wx,_.u);_.t=wx.prototype;_.t.computeButtonOverride=function(){var a;return((a=this.data)==null?0:a.postOptionsMenu)&&_.r("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.t.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:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.r("auto_convert_posts_video_tag")||(a["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return a};
_.t.ready=function(){var a=this,W=_.M(this.hostElement).querySelector("#placeholder-area"),w=function(Z){a.onOpen(Z)};
W.addEventListener("tap",w);W.addEventListener("keypress",w)};
_.t.showButtonEduTooltip=function(){var a,W,w,Z,N,B,I;if(_.r("enable_quiz_creation")&&((a=this.data)==null?0:(W=a.quizButton)==null?0:(w=W.buttonRenderer)==null?0:(Z=w.hint)==null?0:(N=Z.hintRenderer)==null?0:(B=N.content)==null?0:(I=B.bubbleHintRenderer)==null?0:I.text)&&(_.zZ.getInstance(),a=HE(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 X;if((X=this.data)==null?0:X.imagePollButtonTooltip)if(_.zZ.getInstance(),X=HE(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(X==null?void 0:X.length)>0){this.ytComponentBehavior.resolveCommand(X[0],{form:{element:this.imagePollButton}});return}var v;_.r("enable_multi_image_post_creation")&&
((v=this.data)==null?0:v.multiImageButtonTooltip)&&(_.zZ.getInstance(),v=HE(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(v==null?void 0:v.length)>0&&this.ytComponentBehavior.resolveCommand(v[0],{form:{element:this.imageButton}}))};
_.t.onCreatePollAction=function(a){_.A(a,A9J)&&(this.JSC$13598_commentbox.addedAttachment="poll",this.openDialog())};
_.t.onAddVideoLinkAction=function(a){if(_.A(a,r9J))this.JSC$13598_commentbox.onAddVideoLink(a)};
_.t.onShowSchedulingPanelCommand=function(a){(a=_.A(a,ET_))&&this.openSchedulingPanel(a)};
_.t.onCreateImagePollCommand=function(a){_.A(a,tG6)&&(this.JSC$13598_commentbox.openImagePollComponent(),this.openDialog())};
_.t.onCreateQuizCommand=function(a){_.A(a,$7y)&&(this.JSC$13598_commentbox.openQuizComponent(),this.openDialog())};
_.t.openSchedulingPanel=function(a){_.r("enable_post_scheduling")&&(this.openDialog(),this.JSC$13598_commentbox.openSchedulingPanel(a))};
_.t.onCreateCommentAction=function(a){this.get("createCommentAction.contents",a)&&(this.JSC$13598_commentbox.clear(),this.closeDialog())};
_.t.onOpen=function(a){a instanceof KeyboardEvent&&a.type==="keypress"&&a.keyCode!==13&&a.keyCode!==32||(this.data.prepareAccountEndpoint?_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.t.onYtCommentboxDismiss=function(){this.closeDialog()};
_.t.onYtCommentboxLoadingStart=function(a){a.stopPropagation();this.isCommentboxLoading=!0};
_.t.onYtCommentboxLoadingEnd=function(a){a.stopPropagation();this.isCommentboxLoading=!1};
_.t.onYtVideoLinkButtonCancel=function(a){a.stopPropagation();this.onOpen(a)};
_.t.onYtVideoLinkSelected=function(a){a.stopPropagation();this.onOpen(a)};
_.t.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)};
_.t.onYtNavigate=function(a){this.get("detail.endpoint.backstageImageUploadEndpoint",a)&&(this.JSC$13598_commentbox.addedAttachment="image",this.JSC$13598_commentbox.submitButtonDisabled=!0,this.onOpen(a))};
_.t.onRequestSent=function(a){if(_.r("web_button_rework"))for(var W=_.l(a.detail),w=W.next();!w.done;w=W.next())_.A(w.value,OU$)&&(this.JSC$13598_commentbox.addedAttachment="image",this.JSC$13598_commentbox.submitButtonDisabled=!0,this.onOpen(a))};
_.t.openDialog=function(){this.JSC$13598_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13598_commentbox.focus()};
_.t.onPopupClosed=function(){_.zZ.getInstance()};
_.t.computeCreationDisabled=function(a){return!!a};
_.t.computeIsCreationDialog=function(a){return!!a&&a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.t.computeDisabledPostButton=function(a){if(!a)return null;a.isDisabled=!0;return a};
_.t.computeIsCreationDialogWithHeader=function(a){return!this.inPopupContainer&&!!a&&!!a.authorText&&a.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.t.computeIsHeaderHidden=function(a,W){return!a||W};
_.t.computeDropdownRendererClasses=function(a){return a?["text-secondary-style"]:[]};
_.t.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var a=_.M(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;a&&a.reset()};
wx.prototype.onPopupClosed=wx.prototype.onPopupClosed;wx.prototype.onRequestSent=wx.prototype.onRequestSent;wx.prototype.onYtNavigate=wx.prototype.onYtNavigate;wx.prototype.onIronSelect=wx.prototype.onIronSelect;wx.prototype.onYtVideoLinkSelected=wx.prototype.onYtVideoLinkSelected;wx.prototype.onYtVideoLinkButtonCancel=wx.prototype.onYtVideoLinkButtonCancel;wx.prototype.onYtCommentboxLoadingEnd=wx.prototype.onYtCommentboxLoadingEnd;wx.prototype.onYtCommentboxLoadingStart=wx.prototype.onYtCommentboxLoadingStart;
wx.prototype.onYtCommentboxDismiss=wx.prototype.onYtCommentboxDismiss;wx.prototype.showButtonEduTooltip=wx.prototype.showButtonEduTooltip;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],wx.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],wx.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],wx.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],wx.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wx.prototype,"isOpen",void 0);_.f([_.b({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],wx.prototype,"buttonOverride",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wx.prototype,"modern",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wx.prototype,"roundedContainer",void 0);_.f([_.b(),_.z("design:type",Object)],wx.prototype,"dropdownButtonOverride",void 0);_.f([_.b({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.z("design:type",Boolean)],wx.prototype,"creationDisabled",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],wx.prototype,"enableCreationBox",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.z("design:type",Boolean)],wx.prototype,"isCreationDialog",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wx.prototype,"inPopupContainer",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.z("design:type",Boolean)],wx.prototype,"isCreationDialogWithHeader",void 0);_.f([_.b(),_.z("design:type",Object)],wx.prototype,"accessRestriction",void 0);
_.f([_.b({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.z("design:type",Array)],wx.prototype,"dropdownRendererClasses",void 0);_.f([_.b(),_.z("design:type",Object)],wx.prototype,"isCommentboxLoading",void 0);_.f([_.b(),_.z("design:type",Array)],wx.prototype,"attachmentButtonIds",void 0);_.f([_.w$("#image-button"),_.z("design:type",HTMLElement)],wx.prototype,"imageButton",void 0);
_.f([_.w$("#image-poll-button"),_.z("design:type",HTMLElement)],wx.prototype,"imagePollButton",void 0);_.f([_.w$("#quiz-button"),_.z("design:type",HTMLElement)],wx.prototype,"quizButton",void 0);_.f([_.w$("#commentbox"),_.z("design:type",Object)],wx.prototype,"JSC$13598_commentbox",void 0);_.f([_.a5("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wx.prototype,"showButtonEduTooltip",null);
_.f([_.E6("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wx.prototype,"onYtCommentboxDismiss",null);_.f([_.E6("yt-commentbox-loading-start"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wx.prototype,"onYtCommentboxLoadingStart",null);
_.f([_.E6("yt-commentbox-loading-end"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wx.prototype,"onYtCommentboxLoadingEnd",null);_.f([_.E6("yt-video-link-button-cancel"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wx.prototype,"onYtVideoLinkButtonCancel",null);
_.f([_.E6("yt-video-link-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wx.prototype,"onYtVideoLinkSelected",null);_.f([_.E6("iron-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wx.prototype,"onIronSelect",null);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wx.prototype,"onYtNavigate",null);
_.f([_.E6("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wx.prototype,"onRequestSent",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wx.prototype,"onPopupClosed",null);wx=_.f([_.C({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],wx);
_.D(wx,"ytd-backstage-post-dialog-renderer",function(){if(y56!==void 0)return y56;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return y56=a},{mode:1});var j_V;var L2H;var ZI=function(){return _.u.apply(this,arguments)||this};
_.c(ZI,_.u);_.t=ZI.prototype;_.t.computeHeartButtonStyle=function(a){return(a==null?0:a.styleType)?a.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.t.onYtButtonTap=function(){if(this.data.isEnabled){var a=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(a=this.getEndpoint(a))&&_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}})}else(a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(a)};
_.t.toggle=function(a){this.set("data.isHearted",a!==void 0?a:!this.data.isHearted)};
_.t.getEndpoint=function(a){var W,w=(W=this.data)==null?void 0:W.heartEndpoint,Z;W=(Z=this.data)==null?void 0:Z.unheartEndpoint;if(w&&W)return a?W:w};
_.t.computeButtonAccessibility=function(a,W){var w,Z,N=a==null?void 0:(w=a.heartedAccessibility)==null?void 0:(Z=w.accessibilityData)==null?void 0:Z.label,B,I;a=a==null?void 0:(B=a.unheartedAccessibility)==null?void 0:(I=B.accessibilityData)==null?void 0:I.label;return W?N:a};
_.dU.Object.defineProperties(ZI.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 _.r("kevlar_system_icons")&&!((a=this.data)==null||!a.isHearted)}}});
ZI.prototype.onYtButtonTap=ZI.prototype.onYtButtonTap;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],ZI.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ZI.prototype,"data",void 0);_.f([_.Q("data.isHearted"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZI.prototype,"heartTooltip",null);
_.f([_.Q("data.isHearted"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZI.prototype,"iconFilled",null);_.f([_.b({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.z("design:type",String)],ZI.prototype,"buttonAccessibility",void 0);_.f([_.b({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],ZI.prototype,"heartButtonStyle",void 0);
_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZI.prototype,"onYtButtonTap",null);ZI=_.f([_.C({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],ZI);
_.D(ZI,"ytd-creator-heart-renderer",function(){if(L2H!==void 0)return L2H;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return L2H=a},{mode:1});var NC=function(){var a=_.u.apply(this,arguments)||this;a.hasCreatorReply=!1;a.buttonOverrides={size:"S",iconPosition:"icon-only"};a.replyButtonOverrides={size:"S",type:"text"};a.forceIconButton=!_.r("web_modern_buttons");a.modern=_.r("web_modern_buttons");a.buttonTooltipPosition="bottom";a.systemIcons=_.r("kevlar_system_icons");a.replyDialog=null;return a};
_.c(NC,_.u);_.t=NC.prototype;
_.t.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]]"}}}}}};
_.t.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.t.dataChange=function(){this.replyDialog&&_.M(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var a,W,w;this.isLiked=this.systemIcons&&!!((a=this.data)==null?0:(W=a.likeButton)==null?0:(w=W.toggleButtonRenderer)==null?0:w.isToggled)};
_.t.computeShowVoteCountBeginning=function(a,W){return a===void 0||W===void 0?!0:a.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.t.computeShowVoteCountEnd=function(a,W){return a===void 0||W===void 0?!0:a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.t.computeShowCommentCount=function(a,W){return a===void 0||W===void 0?!0:a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.t.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.t.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.t.showReplyDialog=function(a){a&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.M(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=a,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.t.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.t.onRequestSent=function(a){if(_.r("web_button_rework")){a=_.l(a.detail);for(var W=a.next();!W.done;W=a.next())(W=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",W.value))&&this.showReplyDialog(W)}};
_.t.onYtNavigate=function(a){var W,w;(a=(W=_.A(a.detail.endpoint,_.Y5l))==null?void 0:(w=W.dialog)==null?void 0:w.commentReplyDialogRenderer)&&this.showReplyDialog(a)};
_.t.onYtServiceRequestSent=function(a,W){a.stopPropagation();if(W.actions)for(a=0;a<W.actions.length;a++){var w=_.A(W.actions[a],c9H);w&&this.handleUpdateCommentVoteAction(w)}};
_.t.handleUpdateCommentVoteAction=function(a){this.voteCount=a.voteCount||_.b8("0");a.voteStatus==="LIKE"?this.JSC$13609_ytdDislikeToggleButtonRenderer.toggle(!1):a.voteStatus==="DISLIKE"?this.JSC$13609_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13609_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13609_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.t.computeReplyButtonHidden=function(a){return a};
_.t.computeReplyButtonBeginning=function(a){return(a==null?0:a.replyButton)&&a.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?a.replyButton:void 0};
_.t.computeReplyButtonEnd=function(a){return(a==null?0:a.replyButton)&&a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?a.replyButton:void 0};
_.t.computeActionButtonStyle=function(a){return(a==null?0:a.style)?a.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.t.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.t.onYtToggleButton=function(a){var W,w;this.isLiked=this.systemIcons&&!!((W=a.detail)==null?0:(w=W.actions)==null?0:w.like)};
NC.prototype.onYtToggleButton=NC.prototype.onYtToggleButton;NC.prototype.onButtonTooltipPositionChanged=NC.prototype.onButtonTooltipPositionChanged;NC.prototype.onYtServiceRequestSent=NC.prototype.onYtServiceRequestSent;NC.prototype.onYtNavigate=NC.prototype.onYtNavigate;NC.prototype.onRequestSent=NC.prototype.onRequestSent;NC.prototype.onYtCommentboxDismiss=NC.prototype.onYtCommentboxDismiss;NC.prototype.dataChange=NC.prototype.dataChange;
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],NC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],NC.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],NC.prototype,"voteCount",void 0);_.f([_.b(),_.z("design:type",Object)],NC.prototype,"commentCount",void 0);_.f([_.b(),_.z("design:type",Object)],NC.prototype,"replyThumbnail",void 0);
_.f([_.b(),_.z("design:type",Object)],NC.prototype,"hasCreatorReply",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],NC.prototype,"enableCreationBox",void 0);_.f([_.b({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],NC.prototype,"actionButtonsStyle",void 0);_.f([_.b({computed:"computeReplyButtonBeginning(data)"}),_.z("design:type",Object)],NC.prototype,"replyButtonBeginning",void 0);
_.f([_.b({computed:"computeReplyButtonEnd(data)"}),_.z("design:type",Object)],NC.prototype,"replyButtonEnd",void 0);_.f([_.b(),_.z("design:type",Object)],NC.prototype,"buttonOverrides",void 0);_.f([_.b(),_.z("design:type",Object)],NC.prototype,"replyButtonOverrides",void 0);_.f([_.b(),_.z("design:type",Object)],NC.prototype,"forceIconButton",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],NC.prototype,"useCommentIcon",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],NC.prototype,"modern",void 0);_.f([_.b(),_.z("design:type",Object)],NC.prototype,"buttonTooltipPosition",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],NC.prototype,"systemIcons",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],NC.prototype,"isLiked",void 0);_.f([_.w$("ytd-button-renderer"),_.z("design:type",Object)],NC.prototype,"ytdReplyButtonRenderer",void 0);
_.f([_.w$("#like-button"),_.z("design:type",Object)],NC.prototype,"JSC$13609_ytdLikeToggleButtonRenderer",void 0);_.f([_.w$("#dislike-button"),_.z("design:type",Object)],NC.prototype,"JSC$13609_ytdDislikeToggleButtonRenderer",void 0);_.f([_.w$("#reply-dialog"),_.z("design:type",HTMLElement)],NC.prototype,"replyDialogElement",void 0);_.f([_.w$("#reply-button"),_.z("design:type",HTMLElement)],NC.prototype,"replyButtonElement",void 0);
_.f([_.w$("#reply-button-end"),_.z("design:type",HTMLElement)],NC.prototype,"replyButtonEndElement",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NC.prototype,"dataChange",null);_.f([_.E6("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],NC.prototype,"onYtCommentboxDismiss",null);
_.f([_.E6("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],NC.prototype,"onRequestSent",null);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],NC.prototype,"onYtNavigate",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],NC.prototype,"onYtServiceRequestSent",null);_.f([_.a5("buttonTooltipPosition"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NC.prototype,"onButtonTooltipPositionChanged",null);
_.f([_.E6("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],NC.prototype,"onYtToggleButton",null);NC=_.f([_.C({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],NC);
_.D(NC,"ytd-comment-action-buttons-renderer",function(){if(j_V!==void 0)return j_V;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return j_V=a},{mode:1});var JaL;var t6=function(){return _.u.apply(this,arguments)||this};
_.c(t6,_.u);t6.prototype.focus=function(){_.M(this.hostElement).querySelector("#commentbox").focus()};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],t6.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],t6.prototype,"zeroStepChannelCreationRenderer",void 0);t6=_.f([_.C({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],t6);
_.D(t6,"ytd-comment-dialog-renderer",function(){if(JaL!==void 0)return JaL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return JaL=a},{mode:1});var F2l;var $w=function(){var a=_.u.apply(this,arguments)||this;a.buttonOverrides={size:"S",iconPosition:"icon-only"};a.replyButtonOverrides={size:"S",type:"text"};return a};
_.c($w,_.u);_.t=$w.prototype;_.t.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.t.detached=function(){this.replyBox&&this.replyBox.remove()};
_.t.showReplyDialog=function(a){if(a){var W=this.replyBox;W||(W=document.createElement("ytd-comment-reply-dialog-renderer"),W.id="replybox",_.M(this.replyDialogDiv).appendChild(W));W.data=a;this.replyDialogDiv.hidden=!1;W.openDialog()}};
_.t.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.t.onYtServiceRequestSent=function(a,W){a.stopPropagation();if(W.actions)for(var w=0;w<W.actions.length;w++){var Z=_.A(W.actions[w],c9H);Z?this.handleUpdateCommentVoteAction(Z):a.target===this.heartButton&&this.toggleHeartState()}};
_.t.handleUpdateCommentVoteAction=function(a){var W;(W=this.toolbarState)!=null&&W.key&&this.ytdReduxBehavior.dispatch(_.e4("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:a.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":a.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.t.toggleHeartState=function(){var a;(a=this.toolbarState)!=null&&a.key&&this.ytdReduxBehavior.dispatch(_.e4("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.dU.Object.defineProperties($w.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return(((a=this.toolbarState)==null?void 0:a.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(W=this.toolbarData)==null?void 0:W.likeCountLiked:(w=this.toolbarData)==null?void 0:w.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}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand)!==void 0&&!_.r("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,W=_.A((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand,_.pt),w,Z,N,B,I,X,v,U,O;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((w=this.toolbarSharedData)==null||!w.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((Z=this.toolbarState)==null?void 0:Z.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:W!=null?W:_.A((N=this.toolbarSurface)==null?void 0:N.likeCommand,_.pt),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.A((B=this.toolbarSurface)==null?void 0:B.unlikeCommand,_.pt),defaultCommand:this.isVisiblyDisabled?_.A((I=this.toolbarSurface)==null?void 0:I.commentDisabledActionCommand,_.pt):void 0,defaultTooltip:(X=this.toolbarData)==null?void 0:X.likeInactiveTooltip,toggledTooltip:(v=this.toolbarData)==null?void 0:v.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:(O=this.toolbarSharedData)==null?void 0:O.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,W=_.A((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand,_.pt),w,Z,N,B,I,X,v,U,O,S;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((w=this.toolbarSharedData)==null||!w.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((Z=this.toolbarState)==null?void 0:Z.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.A((N=this.toolbarSurface)==null?void 0:N.dislikeCommand,_.pt),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.A((B=this.toolbarSurface)==null?void 0:B.undislikeCommand,_.pt),defaultCommand:this.isVisiblyDisabled?_.A((I=this.toolbarSurface)==null?void 0:I.commentDisabledActionCommand,_.pt):void 0,defaultTooltip:(X=this.toolbarData)==null?void 0:X.dislikeInactiveTooltip,toggledTooltip:(v=this.toolbarData)==null?void 0:
v.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(U=this.toolbarSharedData)==null?void 0:U.dislikeReplyButtonA11y:(O=this.toolbarSharedData)==null?void 0:O.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(S=this.toolbarSharedData)==null?void 0:S.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var a,W,w;if(((a=this.toolbarState)==null?void 0:a.heartState)!==void 0&&((W=this.toolbarState)==null?void 0:W.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((w=this.toolbarState)==null?void 0:w.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var Z,N,B,I,X,v,U,O,S,T,p,h,L,F;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(Z=this.toolbarData)==null?void 0:Z.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((N=this.toolbarState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((B=this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((I=this.toolbarState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((X=this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.A((v=this.toolbarSurface)==null?void 0:v.heartCommand,
_.pt),unheartEndpoint:this.isVisiblyDisabled?void 0:_.A((U=this.toolbarSurface)==null?void 0:U.unheartCommand,_.pt),disabledEndpoint:this.isVisiblyDisabled?_.A((O=this.toolbarSurface)==null?void 0:O.commentDisabledActionCommand,_.pt):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(S=this.toolbarData)==null?void 0:S.heartActiveTooltip,unheartedTooltip:(T=this.toolbarData)==null?void 0:T.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((p=
this.toolbarState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(h=this.toolbarSharedData)==null?void 0:h.unheartButtonA11y:(L=this.toolbarSharedData)==null?void 0:L.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(F=this.toolbarSharedData)==null?void 0:F.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,W,w,Z;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(a=this.commentStrings)==null?void 0:a.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.A((W=this.toolbarSurface)==null?void 0:W.replyCommand,_.pt),command:this.isVisiblyDisabled?_.A((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,
_.pt):this.isSubscribersOnlyComments?_.A((Z=this.toolbarSurface)==null?void 0:Z.subscribersOnlySnackbarCommand,_.pt):void 0}}}});
$w.prototype.onYtServiceRequestSent=$w.prototype.onYtServiceRequestSent;$w.prototype.hideReplyDialogDiv=$w.prototype.hideReplyDialogDiv;_.f([_.b(),_.z("design:type",Object)],$w.prototype,"commentStrings",void 0);_.f([_.b(),_.z("design:type",Boolean)],$w.prototype,"isReply",void 0);_.f([_.b(),_.z("design:type",Object)],$w.prototype,"toolbarData",void 0);_.f([_.b(),_.z("design:type",Object)],$w.prototype,"toolbarSharedData",void 0);
_.f([_.b(),_.z("design:type",String)],$w.prototype,"toolbarStateKey",void 0);_.f([_.b(),_.z("design:type",String)],$w.prototype,"toolbarSurfaceKey",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],$w.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],$w.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.w$("#reply-dialog"),_.z("design:type",HTMLElement)],$w.prototype,"replyDialogDiv",void 0);_.f([_.w$("#replybox"),_.z("design:type",Object)],$w.prototype,"replyBox",void 0);_.f([_.w$("ytd-creator-heart-renderer"),_.z("design:type",Object)],$w.prototype,"heartButton",void 0);_.f([_.b({selector:function(a,W){return _.tG(a.entities,"engagementToolbarStateEntityPayload",W)},
selectorArgs:["toolbarStateKey"]}),_.z("design:type",Object)],$w.prototype,"toolbarState",void 0);_.f([_.b({selector:u57,selectorArgs:["toolbarSurfaceKey"]}),_.z("design:type",Object)],$w.prototype,"toolbarSurface",void 0);_.f([_.b(),_.z("design:type",Object)],$w.prototype,"buttonOverrides",void 0);_.f([_.E6("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$w.prototype,"hideReplyDialogDiv",null);
_.f([_.Q("toolbarData","toolbarState"),_.z("design:type",String),_.z("design:paramtypes",[])],$w.prototype,"likeCount",null);_.f([_.Q("likeCount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$w.prototype,"showLikeCount",null);_.f([_.Q("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$w.prototype,"isVisiblyDisabled",null);_.f([_.Q("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$w.prototype,"isSubscribersOnlyComments",null);
_.f([_.Q("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$w.prototype,"hasPrepareAccountCommand",null);_.f([_.Q("toolbarData","toolbarState","toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],$w.prototype,"likeToggleButtonRenderer",null);_.f([_.Q("isReply","toolbarData","toolbarState","toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],$w.prototype,"dislikeToggleButtonRenderer",null);
_.f([_.Q("toolbarData","toolbarState","toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],$w.prototype,"creatorHeartSupportedRenderer",null);_.f([_.Q("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$w.prototype,"hasReplyCommand",null);_.f([_.Q("toolbarSurface","commentStrings","isVisiblyDisabled"),_.z("design:type",Object),_.z("design:paramtypes",[])],$w.prototype,"replyButtonRenderer",null);
_.f([_.b(),_.z("design:type",Object)],$w.prototype,"replyButtonOverrides",void 0);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],$w.prototype,"onYtServiceRequestSent",null);$w=_.f([_.C({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],$w);
_.D($w,"ytd-comment-engagement-bar",function(){if(F2l!==void 0)return F2l;var a=document.createElement("template");_.n(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]]" 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(_.y().content.cloneNode(!0),
a.content.firstChild);return F2l=a},{mode:1});var Mce;var Bt=function(){return _.u.apply(this,arguments)||this};
_.c(Bt,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Bt.prototype,"data",void 0);Bt=_.f([_.C({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Bt);
_.D(Bt,"ytd-comment-inline-thumbnail-renderer",function(){if(Mce!==void 0)return Mce;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Mce=a},{mode:1});var Rkl;var l$=function(){return _.u.apply(this,arguments)||this};
_.c(l$,_.u);_.f([_.b(),_.z("design:type",Object)],l$.prototype,"data",void 0);l$=_.f([_.C({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],l$);
_.D(l$,"ytd-comment-pause-composer-renderer",function(){if(Rkl!==void 0)return Rkl;var a=document.createElement("template");_.n(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" 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(_.y().content.cloneNode(!0),
a.content.firstChild);return Rkl=a},{mode:1});var qkT;var Q_E;var I2=function(){var a=_.u.apply(this,arguments)||this;a.isOpen=!1;return a};
_.c(I2,_.u);_.t=I2.prototype;_.t.dataChanged=function(){this.isOpen=!1};
_.t.onTap=function(){this.data&&(this.data.navigationEndpoint?_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.t.focus=function(){this.JSC$13635_commentbox.focus()};
_.t.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.t.openDialog=function(){this.isOpen=!0;this.JSC$13635_commentbox.focus();this.JSC$13635_commentbox.maybeHeightChanged()};
I2.prototype.onYtCommentboxDismiss=I2.prototype.onYtCommentboxDismiss;I2.prototype.dataChanged=I2.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],I2.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],I2.prototype,"isOpen",void 0);_.f([_.w$("#commentbox"),_.z("design:type",Object)],I2.prototype,"JSC$13635_commentbox",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],I2.prototype,"dataChanged",null);_.f([_.E6("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],I2.prototype,"onYtCommentboxDismiss",null);I2=_.f([_.C({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],I2);
_.D(I2,"ytd-comment-reply-dialog-renderer",function(){if(Q_E!==void 0)return Q_E;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Q_E=a},{mode:1});var xeT;var Pt=function(){return _.u.apply(this,arguments)||this};
_.c(Pt,_.u);_.dU.Object.defineProperties(Pt.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var a,W,w=(a=this.data)==null?void 0:(W=a.icon)==null?void 0:W.iconType;return w?"yt-icons:"+w.toLowerCase():null}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Pt.prototype,"data",void 0);_.f([_.b(),_.Q("data.icon"),_.z("design:type",Object),_.z("design:paramtypes",[])],Pt.prototype,"icon",null);Pt=_.f([_.C({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Pt);
_.D(Pt,"ytd-pinned-comment-badge-renderer",function(){if(xeT!==void 0)return xeT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return xeT=a},{mode:1});var byl;var s_R={},uA6={input:!0,meta:!0,br:!0,link:!0,img:!0},XZ=null;s_R.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(){XZ==null&&(XZ=document.createElement("tp-yt-paper-tooltip"),XZ.offset=8,XZ.fitToVisibleBounds=!0)},
onMouseOver_:function(a){if(a=_.LY(a.target,function(N){return N==this||N.getAttribute&&N.getAttribute("shared-tooltip-text")}.bind(this),!0)){var W=a.getAttribute("shared-tooltip-text");
if(W){var w=this,Z=null;a!=this&&(a.tagName.toLowerCase()in uA6?w=a.parentElement:w=a,a.id&&(Z=a.id));this.polymerController.createTooltipIfRequired_();if(XZ.parentElement!=w||XZ.for!=Z)(0,_.zX)(XZ).textContent=W,_.M(w).appendChild(XZ),XZ.for=Z,XZ.animationDelay=this.polymerController.sharedTooltipAnimationDelay,XZ.position=this.polymerController.sharedTooltipPosition}}}};var vt=function(){return _.u.apply(this,arguments)||this};
_.c(vt,_.u);vt.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]]"}}}}}};
vt.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
vt.prototype.colorChanged=function(){var a,W,w,Z=(a=this.data)==null?void 0:(W=a.color)==null?void 0:(w=W.basicColorPaletteData)==null?void 0:w.foregroundBodyColor;Z&&(this.rgbBadgeColor=_.KC(Z));_.M(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
vt.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")};
vt.prototype.tooltipChanged=vt.prototype.tooltipChanged;vt.prototype.colorChanged=vt.prototype.colorChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(s_R.YtSharedTooltipBehavior),_.z("design:type",Object)],vt.prototype,"ytSharedTooltipBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vt.prototype,"data",void 0);
_.f([_.b({value:"#4285F4"}),_.z("design:type",String)],vt.prototype,"rgbBadgeColor",void 0);_.f([_.a5("data.color"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vt.prototype,"colorChanged",null);_.f([_.a5("data.tooltip"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vt.prototype,"tooltipChanged",null);vt=_.f([_.C({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],vt);
_.D(vt,"ytd-sponsor-comment-badge-renderer",function(){if(byl!==void 0)return byl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return byl=a},{mode:1});var CUR;var GER;var gx=function(){return _.u.apply(this,arguments)||this};
_.c(gx,_.u);gx.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"}};
gx.prototype.updateStateIdentifier=function(a){if(this.viewModel.triStateKey){var W=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.e4("triStateButtonStateEntityPayload",W,{key:W,stateIdentifier:a}))}};
gx.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")}};
_.dU.Object.defineProperties(gx.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)||""}}});
_.f([_.b(),_.z("design:type",Object)],gx.prototype,"viewModel",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],gx.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],gx.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gx.prototype,"ytRendererBehavior",void 0);_.f([_.b({selector:C7e,selectorArgs:["viewModel.triStateKey"]}),_.z("design:type",Object)],gx.prototype,"triStateButtonStateEntity",void 0);
_.f([_.b({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.z("design:type",String)],gx.prototype,"state",void 0);_.f([_.Q("viewModel","state"),_.z("design:type",Object),_.z("design:paramtypes",[])],gx.prototype,"data",null);_.f([_.Q("data"),_.z("design:type",String),_.z("design:paramtypes",[])],gx.prototype,"buttonText",null);gx=_.f([_.C({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],gx);
_.D(gx,"ytd-tri-state-button-view-model",function(){if(GER!==void 0)return GER;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return GER=a},{mode:1});var Deh;var fNR;var o2=function(){var a=_.u.apply(this,arguments)||this;a.defaultIconToFilled=!_.r("kevlar_fill_comment_chip_icon_killswitch");return a};
_.c(o2,_.u);o2.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
o2.prototype.dataChanged=function(){if(this.data){var a,W;((a=this.data.chipColorPalette)==null?0:a.backgroundColor)&&((W=this.data.chipColorPalette)==null?0:W.foregroundTitleColor)&&_.Hu(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.pC(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.pC(this.data.chipColorPalette.foregroundTitleColor)});var w;((w=this.data)==null?0:w.command)?(_.Hu(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Hu(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}};
o2.prototype.onTap=function(){var a;if(this.data&&(a=this.data)!=null&&a.command){var W;this.ytComponentBehavior.resolveCommand((W=this.data)==null?void 0:W.command)}};
o2.prototype.getIconSize=function(){return _.r("kevlar_fill_comment_chip_icon_killswitch")?24:12};
o2.prototype.onTap=o2.prototype.onTap;o2.prototype.dataChanged=o2.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],o2.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.YS),_.z("design:type",Object)],o2.prototype,"ironA11yKeysBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],o2.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],o2.prototype,"basePriceText",void 0);_.f([_.b(),_.z("design:type",Object)],o2.prototype,"chipIcon",void 0);_.f([_.b(),_.z("design:type",Object)],o2.prototype,"defaultIconToFilled",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o2.prototype,"dataChanged",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o2.prototype,"onTap",null);
o2=_.f([_.TD({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],o2);
_.D(o2,"yt-pdg-comment-chip-renderer",function(){if(fNR===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Deh===void 0&&(Deh=document.createElement("template"));var Z=Deh;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);fNR=a}a=fNR;return a},{mode:2});var kw=function(){var a=_.u.apply(this,arguments)||this;a.useSmallAvatars=_.r("small_avatars_for_comments");a.webWatchCompactComments=_.r("web_watch_compact_comments");a.editDialog=null;return a};
_.c(kw,_.u);_.t=kw.prototype;_.t.onShow=function(){_.hk("cmv",void 0,"wn_comments")};
_.t.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"}}}};
_.t.detached=function(){this.editDialog=null;this.expander.reset()};
_.t.updateBackgroundColor=function(){if(this.backgroundColor){var a={"--ytd-comment-paid-background-color":_.pC(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Hu(this.hostElement,a)}else _.Hu(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.t.resetExpander=function(){var a;(a=this.expander)==null||a.reset()};
_.t.openEditDialog=function(a){a.dialog&&(this.editDialog=a.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.t.onYtNavigate=function(a){var W=a.detail.endpoint;if(W=_.A(W,_.Tql)||_.A(W,_.Kjy))a.stopPropagation(),this.openEditDialog(W)};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null;_.Hu(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.t.onAuthorThumbnailClicked=function(){var a=this;_.r("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(W,w){a.onAuthorThumbnailEndpointSuccess(w)},
onServerError:function(W,w){_.jJ(new _.Uw("Failed to resolve the command",w))}}})};
_.t.onAuthorThumbnailEndpointSuccess=function(a){if((a=a==null?void 0:a.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(a,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();a=a==null?void 0:a.clickTrackingParams;var W=_.eH();a&&W&&_.$J().graftServerVe(a,W)}};
_.t.logScreenVe=function(){_.NJ(_.$J(),66557)};
_.t.onYtCommentboxResize=function(a){var W;(a==null?0:(W=a.detail)==null?0:W.height)&&_.Hu(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":a.detail.height+"px"})};
_.dU.Object.defineProperties(kw.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,W=(a=this.commentEntity)==null?void 0:a.author;return W&&(W.isCreator||W.isVerified||W.isArtist)?{renderer:{authorEndpoint:W.channelPageEndpoint?_.A(W.channelPageEndpoint,_.pt):_.A(W.channelCommand,_.pt),authorText:{runs:[{text:W.displayName}]},color:W.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:W.isArtist?{iconType:"AUDIO_BADGE"}:
W.isVerified?{iconType:W.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:W.isArtist||W.isVerified?W.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var a,W=(a=this.commentEntity)==null?void 0:a.author;return W!=null&&W.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:W.sponsorBadgeUrl}]},tooltip:W.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return _.A((a=this.commentSurfaceEntity)==null?void 0:a.pdgCommentChip,_.zX$)||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 _.A((a=this.commentSurfaceEntity)==null?void 0:a.voiceReplyContainerViewModel,M5y)||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,W;return(W=(a=this.commentSurfaceEntity)==null?void 0:a.commentBackgroundColor)!=null?W:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var a,W;return(((a=this.commentEntity)==null?void 0:(W=a.properties)==null?void 0:W.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var a,W;if(_.r("enable_profile_cards_on_comments")&&((a=this.commentEntity)==null?0:(W=a.author)==null?0:W.profileCardEndpoint)&&this.viewModel.allowProfileCard){var w,Z;return _.A((w=this.commentEntity)==null?void 0:(Z=w.author)==null?void 0:Z.profileCardEndpoint,_.pt)}var N,B;return _.A((N=this.commentEntity)==null?void 0:(B=N.avatar)==null?void 0:B.endpoint,_.pt)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var a,W;if(_.r("enable_profile_cards_on_comments")&&((a=this.commentEntity)==null?0:(W=a.author)==null?0:W.channelPageEndpoint)){var w,Z;return _.A((w=this.commentEntity)==null?void 0:(Z=w.author)==null?void 0:Z.channelPageEndpoint,_.pt)}var N,B;return _.A((N=this.commentEntity)==null?void 0:(B=N.avatar)==null?void 0:B.endpoint,_.pt)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z,N=(a=this.commentEntity)==null?void 0:(W=a.avatar)==null?void 0:(w=W.image)==null?void 0:(Z=w.sources)==null?void 0:Z[0];return N?{thumbnails:[{url:N.url,width:N.width,height:N.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.commentEntity)==null?0:(W=a.author)==null?0:W.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.commentEntity)==null?void 0:(W=a.author)==null?void 0:W.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.commentEntity)==null?void 0:(W=a.properties)==null?void 0:W.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var a;return _.A((a=this.commentSurfaceEntity)==null?void 0:a.publishedTimeCommand,_.pt)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var a,W;if(((a=this.commentEntity)==null?0:a.translatedContent)&&((W=this.translateButtonState)==null?void 0:W.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var w;if((w=this.voiceReplyContainerViewModel)==null?0:w.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var Z,N;return((Z=this.commentEntity)==null?void 0:(N=Z.properties)==null?void 0:N.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.commentSharedEntity)==null?void 0:(W=a.strings)==null?void 0:W.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.commentSharedEntity)==null?void 0:(W=a.strings)==null?void 0:W.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,W,w=(W=_.A((a=this.viewModel)==null?void 0:a.translateButton,FlA))!=null?W:{},Z,N,B,I,X,v,U,O,S,T,p;return Object.assign({},w,{untoggledStateData:Object.assign({},w.untoggledStateData,{buttonText:(Z=this.commentEntity)==null?void 0:(N=Z.translateData)==null?void 0:N.text}),togglingStateData:Object.assign({},w.togglingStateData,{buttonText:(B=this.commentSharedEntity)==null?
void 0:(I=B.strings)==null?void 0:I.translatingText}),toggledStateData:Object.assign({},w.toggledStateData,{buttonText:(X=this.commentSharedEntity)==null?void 0:(v=X.strings)==null?void 0:v.seeOriginalText}),transitionCommand:((U=this.commentEntity)==null?0:U.translatedContent)?void 0:_.A((O=this.commentEntity)==null?void 0:(S=O.translateData)==null?void 0:S.translateComment,_.pt),triStateKey:(T=this.commentEntity)==null?void 0:(p=T.properties)==null?void 0:p.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return((W=_.A(_.A((a=this.toolbarSurface)==null?void 0:a.menuCommand,_.pt),pnA))==null?void 0:(w=W.menu)==null?void 0:w.menuRenderer)||null}}});
kw.prototype.onYtCommentboxResize=kw.prototype.onYtCommentboxResize;kw.prototype.onYtCommentboxDismiss=kw.prototype.onYtCommentboxDismiss;kw.prototype.onYtNavigate=kw.prototype.onYtNavigate;kw.prototype.resetExpander=kw.prototype.resetExpander;kw.prototype.updateBackgroundColor=kw.prototype.updateBackgroundColor;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],kw.prototype,"ytdReduxBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],kw.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],kw.prototype,"ytRendererstamperBehavior",void 0);_.f([_.w$("#author-thumbnail > button"),_.z("design:type",HTMLElement)],kw.prototype,"authorThumbnailAnchor",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("viewModel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kw.prototype,"linked",null);
_.f([_.Q("viewModel","linked"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"linkedCommentBadge",null);_.f([_.b({reflectToAttribute:!0}),_.Q("viewModel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kw.prototype,"pinned",null);_.f([_.Q("viewModel","pinned"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"pinnedCommentBadge",null);
_.f([_.Q("commentEntity","commentSharedEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"authorCommentBadge",null);_.f([_.b({reflectToAttribute:!0}),_.Q("authorCommentBadge"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"hasAuthorBadge",null);_.f([_.Q("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"sponsorCommentBadge",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("sponsorCommentBadge"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"hasSponsorBadge",null);_.f([_.Q("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"pdgCommentChipRenderer",null);_.f([_.b({reflectToAttribute:!0}),_.Q("voiceReplyContainerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"hasVoiceReply",null);
_.f([_.Q("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"voiceReplyContainerViewModel",null);_.f([_.Q("voiceReplyContainerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"voiceReplyUnavailableText",null);_.f([_.b(),_.z("design:type",Object)],kw.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"viewModel",null);
_.f([_.b({selector:function(a,W){return _.tG(a.entities,"commentSharedEntityPayload",W)},
selectorArgs:["viewModel.sharedKey"]}),_.z("design:type",Object)],kw.prototype,"commentSharedEntity",void 0);_.f([_.b({selector:function(a,W){return _.tG(a.entities,"commentEntityPayload",W)},
selectorArgs:["viewModel.commentKey"]}),_.z("design:type",Object)],kw.prototype,"commentEntity",void 0);_.f([_.b({selector:function(a,W){return _.tG(a.entities,"commentSurfaceEntityPayload",W)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.z("design:type",Object)],kw.prototype,"commentSurfaceEntity",void 0);_.f([_.b({selector:u57,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.z("design:type",Object)],kw.prototype,"toolbarSurface",void 0);_.f([_.b({selector:C7e,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.z("design:type",Object)],kw.prototype,"translateButtonState",void 0);
_.f([_.Q("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"backgroundColor",null);_.f([_.b({reflectToAttribute:!0}),_.Q("viewModel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kw.prototype,"optimalReadingWidthComments",null);_.f([_.w$("ytd-expander"),_.z("design:type",Object)],kw.prototype,"expander",void 0);
_.f([_.a5("backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kw.prototype,"updateBackgroundColor",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kw.prototype,"useSmallAvatars",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kw.prototype,"webWatchCompactComments",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"isReply",null);
_.f([_.Q("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"authorThumbnailEndpoint",null);_.f([_.Q("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"authorNameEndpoint",null);_.f([_.Q("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"authorThumbnail",null);_.f([_.Q("commentEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],kw.prototype,"authorTextClass",null);
_.f([_.Q("commentEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],kw.prototype,"authorChannelName",null);_.f([_.Q("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"publishedTime",null);_.f([_.Q("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"publishedTimeCommand",null);
_.f([_.Q("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"contentText",null);_.f([_.a5("contentText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kw.prototype,"resetExpander",null);_.f([_.Q("commentEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kw.prototype,"shouldShowReadMoreInitially",null);
_.f([_.Q("commentSharedEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],kw.prototype,"expandText",null);_.f([_.Q("commentSharedEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],kw.prototype,"collapseText",null);_.f([_.Q("commentEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kw.prototype,"shouldShowTranslateButton",null);
_.f([_.Q("commentEntity","commentSharedEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"translateButton",null);_.f([_.Q("toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],kw.prototype,"overflowMenuRenderer",null);_.f([_.b(),_.z("design:type",Object)],kw.prototype,"editDialog",void 0);_.f([_.w$("ytd-comment-dialog-renderer"),_.z("design:type",Object)],kw.prototype,"editCommentDialogContainer",void 0);
_.f([_.w$("ytd-comment-reply-dialog-renderer"),_.z("design:type",Object)],kw.prototype,"editReplyDialogContainer",void 0);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],kw.prototype,"onYtNavigate",null);_.f([_.E6("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],kw.prototype,"onYtCommentboxDismiss",null);
_.f([_.E6("yt-commentbox-resize"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],kw.prototype,"onYtCommentboxResize",null);kw=_.f([_.C({disableElementRegistration:!0,is:"ytd-comment-view-model"})],kw);
_.D(kw,"ytd-comment-view-model",function(){if(CUR!==void 0)return CUR;var a=document.createElement("template");_.n(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">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);return CUR=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var Ur=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("web_modern_buttons");a.isWatchGrid=_.r("kevlar_watch_grid");a.buttonOverrides={style:"call-to-action"};a.JSC$13681_spinnerEl=null;return a};
_.c(Ur,_.u);_.t=Ur.prototype;_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.t.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]]"}}}}}};
_.t.attached=function(){this.isShowRepliesVisible=!0};
_.t.dataChanged=function(){var a=this.expanderContents;a&&(a.hidden=!0);this.isLoading=!1};
_.t.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.t.isLoadingChanged=function(){this.isLoading&&!this.JSC$13681_spinnerEl&&(this.JSC$13681_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.M(this.expanderContents).appendChild(this.JSC$13681_spinnerEl));this.JSC$13681_spinnerEl&&(this.JSC$13681_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var a;(a=this.contents)==null||a.classList.remove("reloading")}};
_.t.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var a=_.A(this.data.viewReplies,_.J4);a&&this.ytRendererBehavior.logExplicitClick(a)};
_.t.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var a=_.A(this.data.hideReplies,_.J4);a&&this.ytRendererBehavior.logExplicitClick(a)};
_.t.isShowMoreChanged=function(){var a=_.M(this.hostElement).querySelector("#expander-contents");a&&(a.hidden=this.isShowRepliesVisible)};
_.t.computeAlign=function(){if(this.modern){var a;return!((a=this.data)==null?0:a.viewRepliesCreatorThumbnail)}};
_.dU.Object.defineProperties(Ur.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var a,W=(a=this.data)==null?void 0:a.contents;return!!W&&W.length>0&&!!W[W.length-1].continuationItemRenderer}}});
Ur.prototype.isShowMoreChanged=Ur.prototype.isShowMoreChanged;Ur.prototype.isLoadingChanged=Ur.prototype.isLoadingChanged;Ur.prototype.triggerFirstContinuation=Ur.prototype.triggerFirstContinuation;Ur.prototype.dataChanged=Ur.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ur.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.j8),_.z("design:type",Object)],Ur.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ur.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ur.prototype,"modern",void 0);_.f([_.b(),_.z("design:type",Boolean)],Ur.prototype,"isLoading",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],Ur.prototype,"isShowRepliesVisible",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Ur.prototype,"useNewFormatting",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ur.prototype,"isWatchGrid",void 0);_.f([_.b(),_.z("design:type",Object)],Ur.prototype,"buttonOverrides",void 0);_.f([_.w$("#expander-contents"),_.z("design:type",HTMLElement)],Ur.prototype,"expanderContents",void 0);_.f([_.w$("ytd-continuation-item-renderer"),_.z("design:type",Object)],Ur.prototype,"continuationItemRenderer",void 0);_.f([_.w$("#contents"),_.z("design:type",HTMLElement)],Ur.prototype,"contents",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ur.prototype,"dataChanged",null);_.f([_.Q("data.contents"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ur.prototype,"hasContinuation",null);_.f([_.E6("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ur.prototype,"triggerFirstContinuation",null);
_.f([_.a5("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ur.prototype,"isLoadingChanged",null);_.f([_.a5("isShowRepliesVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ur.prototype,"isShowMoreChanged",null);Ur=_.f([_.C({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Ur);
_.D(Ur,"ytd-comment-replies-renderer",function(){if(qkT!==void 0)return qkT;var a=document.createElement("template");_.n(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="[[!hasContinuation]]" 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');
a.content.insertBefore(_.y().content.cloneNode(!0),a.content.firstChild);return qkT=a},{mode:1});var deA;var Or=function(){var a=_.u.apply(this,arguments)||this;a.isOpen=!1;a.commentDialog=null;a.useSmallAvatars=_.r("small_avatars_for_comments");a.useSmallAvatarsEngagementPanelOnly=_.r("small_avatars_for_comments_ep");a.placeholderFocusListener=null;a.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return a};
_.c(Or,_.u);_.t=Or.prototype;_.t.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]]"}}}}}};
_.t.ready=function(){var a=this,W=_.M(this.hostElement).querySelector("#placeholder-area"),w=_.M(this.hostElement).querySelector("#simplebox-placeholder"),Z=function(N){N.stopPropagation();N instanceof KeyboardEvent&&N.type==="keypress"&&N.keyCode!==13&&N.keyCode!==32||a.openDialog()};
this.placeholderFocusListener=Z;w.addEventListener("focus",this.placeholderFocusListener);W.addEventListener("tap",Z);W.addEventListener("keypress",Z)};
_.t.maybeRemoveFocusEventListener=function(){var a;(a=this.data)!=null&&a.prepareAccountEndpoint&&!_.r("web_comments_simplebox_modal_focus_on_tap_ks")&&(a=_.M(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(a.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.t.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.t.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.r("web_comment_simplebox_resolve_polymer_command_ks")?_.WX.instance.resolveCommand(this.data.prepareAccountEndpoint):_.wJ(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.M(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.t.onYtCommentboxDismiss=function(a){a.stopPropagation();this.isOpen=!1};
_.t.onCreateCommentAction=function(a){this.get("createCommentAction.contents",a)&&(this.isOpen=!1)};
_.t.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}};
_.t.onHideIdentityChip=function(a){_.A(a,hWh)&&this.set("data.placeholderText",_.A(a,hWh).placeholderText)};
Or.prototype.onYtCommentboxDismiss=Or.prototype.onYtCommentboxDismiss;Or.prototype.dataChanged=Or.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Or.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Or.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Or.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Or.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Or.prototype,"isOpen",void 0);_.f([_.b(),_.z("design:type",Object)],Or.prototype,"commentDialog",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Or.prototype,"engagementPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Or.prototype,"useSmallAvatars",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Or.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Or.prototype,"enableCreationBox",void 0);_.f([_.b(),_.z("design:type",Boolean)],Or.prototype,"showCreateDialog",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Or.prototype,"dataChanged",null);
_.f([_.E6("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Or.prototype,"onYtCommentboxDismiss",null);Or=_.f([_.C({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Or);
_.D(Or,"ytd-comment-simplebox-renderer",function(){if(deA!==void 0)return deA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return deA=a},{mode:1});var meV;_.pA("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var SY=function(){var a=_.u.apply(this,arguments)||this;a.addHoverEffect=_.r("swatcheroo_comments_hover_effect");return a};
_.c(SY,_.u);SY.prototype.onTap=function(a){if(this.addHoverEffect&&!this.engagementPanel&&!_.b5(_.qj(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||_.wJ({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
SY.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.dU.Object.defineProperties(SY.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.commentViewModel)return _.A(this.data.commentViewModel,J9h)}}});
SY.prototype.onTap=SY.prototype.onTap;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],SY.prototype,"addHoverEffect",void 0);_.f([_.b(),_.z("design:type",Object)],SY.prototype,"data",void 0);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],SY.prototype,"commentViewModel",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],SY.prototype,"engagementPanel",void 0);_.f([_.E6("tap"),_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],SY.prototype,"onTap",null);SY=_.f([_.C({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],SY);
_.D(SY,"ytd-comment-thread-renderer",function(){if(meV!==void 0)return meV;var a=document.createElement("template");_.n(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<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
a.content.insertBefore(_.y().content.cloneNode(!0),a.content.firstChild);return meV=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var VcE;var Yw=function(){var a=_.u.apply(this,arguments)||this;a.modernTypography=_.r("web_modern_typography");a.compactHeader=_.r("web_watch_compact_comments_header");a.hidePanelButton=!1;a.isPostSchedulingEnabled=_.r("enable_post_scheduling");a.hasFinishedStamping=!1;a.JSC$13699_handleOpenPostCommentDialogActionAfterStamp=!1;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.c(Yw,_.u);_.t=Yw.prototype;
_.t.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"}}}};
_.t.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.t.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13699_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.t.onYtServiceRequestSent=function(a,W){if(!_.r("kevlar_command_handler")&&W.actions)for(a=0;a<W.actions.length;a++){var w=W.actions[a];_.A(w,ET_)&&_.M(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.A(w,ET_))}};
_.t.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var a;if(this.getPrefilledBackstagePostDialog((a=this.data)==null?void 0:a.actions)){_.M(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var W=_.M(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;W&&_.DW(this,function(){W.focus();W.openDialog&&W.openDialog()})}}else this.hasActionsChange=!0};
_.t.computeIsBackstage=function(a){return a};
_.t.onYtCommentboxDismiss=function(){_.M(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.t.removePrefilledDialog=function(a){if(a==null?0:a.actions){for(var W=a.actions.length-1;W>=0;W--){var w=void 0;((w=_.A(a.actions[W],S5R))==null?0:w.dialog)&&delete a.actions[W]}this.set("data",void 0);this.set("data",a)}};
_.t.getPrefilledBackstagePostDialog=function(a){if(a)for(var W=0;W<a.length;W++){var w=a[W],Z=void 0;if((Z=_.A(w,S5R))==null?0:Z.dialog)return _.A(w,S5R).dialog}return null};
_.t.computeBackstagePostDialog=function(a){return a&&(this.getPrefilledBackstagePostDialog(a.actions)||a.createRenderer)};
_.t.dataChanged=function(){if(this.data){var a=this.data.customEmojis,W=this.data.unicodeEmojisUrl;_.eD.clear();W&&_.u6J(_.eD,W);a&&_.eD.load(a)}};
_.t.handleSignalActionOpenPostCommentDialogAction=function(){var a=_.M(this.hostElement).querySelector("ytd-comment-simplebox-renderer");a?a.openDialog():this.JSC$13699_handleOpenPostCommentDialogActionAfterStamp=!0};
_.dU.Object.defineProperties(Yw.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.r("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z,N,B,I;return!this.hidePanelButton&&_.r("kevlar_watch_comments_panel_button")&&((I=_.A((a=this.data)==null?void 0:(W=a.sortMenu)==null?void 0:(w=W.sortFilterSubMenuRenderer)==null?void 0:(Z=w.subMenuItems)==null?void 0:(N=Z[0])==null?void 0:(B=N.serviceEndpoint)==null?void 0:B.commandMetadata,_.mm))==null?void 0:I.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.P_("MINIPLAYER_EXPAND_LABEL"),text:_.b8(_.P_("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Yw.prototype.dataChanged=Yw.prototype.dataChanged;Yw.prototype.onYtCommentboxDismiss=Yw.prototype.onYtCommentboxDismiss;Yw.prototype.observePrefilledBackstagePostDialog=Yw.prototype.observePrefilledBackstagePostDialog;Yw.prototype.onYtServiceRequestSent=Yw.prototype.onYtServiceRequestSent;Yw.prototype.onStampFinished=Yw.prototype.onStampFinished;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Yw.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Yw.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Yw.prototype,"modernTypography",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Yw.prototype,"compactHeader",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Yw.prototype,"engagementPanel",void 0);_.f([_.b(),_.z("design:type",Object)],Yw.prototype,"hidePanelButton",void 0);_.f([_.b({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Yw.prototype,"isBackstage",void 0);_.f([_.b({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.z("design:type",Object)],Yw.prototype,"backstagePostDialog",void 0);
_.f([_.b(),_.z("design:type",Object)],Yw.prototype,"isPostSchedulingEnabled",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data","showCommentsPanelButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yw.prototype,"useSpaceBetween",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data","hidePanelButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yw.prototype,"showCommentsPanelButton",null);
_.f([_.Q("data","showCommentsPanelButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yw.prototype,"commentsPanelButtonData",null);_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yw.prototype,"onStampFinished",null);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],Yw.prototype,"onYtServiceRequestSent",null);
_.f([_.a5("data.actions"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yw.prototype,"observePrefilledBackstagePostDialog",null);_.f([_.E6("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Yw.prototype,"onYtCommentboxDismiss",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yw.prototype,"dataChanged",null);
Yw=_.f([_.C({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Yw);
_.D(Yw,"ytd-comments-header-renderer",function(){if(VcE!==void 0)return VcE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return VcE=a},{mode:1});var zkV;var Tg=function(){return _.u.apply(this,arguments)||this};
_.c(Tg,_.u);_.f([_.b(),_.z("design:type",Object)],Tg.prototype,"data",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);Tg=_.f([_.C({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Tg);
_.D(Tg,"ytd-destination-button-renderer",function(){if(zkV!==void 0)return zkV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return zkV=a},{mode:1});var HyV;var KT=function(){var a=_.u.apply(this,arguments)||this;a.isRichGrid=!1;a.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};a.modernTypography=_.r("web_modern_typography");return a};
_.c(KT,_.u);_.t=KT.prototype;_.t.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.t.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.t.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.t.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var a;if((a=this.data)==null||!a.isExpanded){a=this.hostElement.clientWidth;var W;if(a&&(W=this.data)!=null&&W.destinationButtons){W=Math.floor((a+4)/214);a=this.data.destinationButtons.length;var w=Math.ceil(a/W);this.fullyVisibleRows=a%W===1&&w===2?1:Math.min(w,2);this.isShowMoreVisible=this.fullyVisibleRows<w}}}};
_.t.updateRichGridDestinationButtonsVisibility=function(){var a,W;if(this.isRichGrid&&((a=this.data)==null||!a.isExpanded)&&(W=this.data)!=null&&W.destinationButtons){a=this.richGridItemsPerRow+1;W=this.data.destinationButtons.length;var w=Math.ceil(W/a);this.fullyVisibleRows=W%a===1&&w===2?1:Math.min(w,2);this.isShowMoreVisible=this.fullyVisibleRows<w}};
_.t.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
KT.prototype.updateRichGridDestinationButtonsVisibility=KT.prototype.updateRichGridDestinationButtonsVisibility;_.f([_.b(),_.z("design:type",Object)],KT.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Number)],KT.prototype,"fullyVisibleRows",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],KT.prototype,"isShowMoreVisible",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],KT.prototype,"isRichGrid",void 0);
_.f([_.b({selector:_.AG,value:0}),_.z("design:type",Number)],KT.prototype,"richGridItemsPerRow",void 0);_.f([_.b(),_.z("design:type",Object)],KT.prototype,"gridStateActionMap",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],KT.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],KT.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],KT.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],KT.prototype,"ytdReduxBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],KT.prototype,"modernTypography",void 0);_.f([_.a5("data","richGridItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KT.prototype,"updateRichGridDestinationButtonsVisibility",null);
KT=_.f([_.C({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],KT);
_.D(KT,"ytd-destination-shelf-renderer",function(){if(HyV!==void 0)return HyV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return HyV=a},{mode:1});var ya_;var pT=function(){return _.u.apply(this,arguments)||this};
_.c(pT,_.u);pT.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],pT.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],pT.prototype,"data",void 0);pT=_.f([_.C({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],pT);
_.D(pT,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(ya_!==void 0)return ya_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return ya_=a},{mode:1});var E9h;var rx=function(){var a=_.u.apply(this,arguments)||this;a.disableAnimation=!1;a.isSlimlineSurvey=!1;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;return a};
_.c(rx,_.u);rx.prototype.onTap=function(a){a.preventDefault();this.data&&_.E$(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.dU.Object.defineProperties(rx.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,W,w,Z,N;return((a=this.data)==null?0:a.checked)?(W=this.data)==null?void 0:(w=W.onStateIcon)==null?void 0:w.iconType:(Z=this.data)==null?void 0:(N=Z.defaultStateIcon)==null?void 0:N.iconType}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],rx.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],rx.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],rx.prototype,"disableAnimation",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rx.prototype,"isSlimlineSurvey",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rx.prototype,"isSlimlineSurveyFollowUp",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rx.prototype,"isShortsStyle",void 0);_.f([_.Q("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],rx.prototype,"isAnimatedIcon",null);
_.f([_.Q("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.z("design:type",Number),_.z("design:paramtypes",[])],rx.prototype,"iconSize",null);_.f([_.Q("isShortsStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],rx.prototype,"isDarkTheme",null);_.f([_.Q("data.checked"),_.z("design:type",Object),_.z("design:paramtypes",[])],rx.prototype,"icon",null);rx=_.f([_.C({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],rx);
_.D(rx,"ytd-rating-survey-option-renderer",function(){if(E9h!==void 0)return E9h;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return E9h=a},{mode:2});var aFh;var A6=function(){var a=_.u.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};
_.c(A6,_.u);_.t=A6.prototype;_.t.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.t.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.t.onOptionChange=function(a,W){var w=this;a=W.onStateIcon&&W.defaultStateIcon&&W.onStateIcon.iconType===W.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(I,X){I.responseText===W.responseText?w.isSlimlineSurvey?(w.selectedRatingIndex=X,w.ytdReduxBehavior.dispatch(Et_(X))):(w.setSurveyOptionValue(X,!0,"checked"),w.setSurveyOptionValue(X,!0,"selected")):(w.setSurveyOptionValue(X,!1,"checked"),w.setSurveyOptionValue(X,
!1,"selected"))});
else if(a)this.selectedNonStarOption=W,this.hideOptions=!0;else{var Z=this.ytRendererBehavior.getSimpleString(W.responseText),N=!0;this.getOptionRenderers().forEach(function(I,X){w.setSurveyOptionValue(X,N,"checked");w.setSurveyOptionValue(X,!1,"selected");w.ytRendererBehavior.getSimpleString(I.responseText)===Z&&(N=!1,w.setSurveyOptionValue(X,!0,"selected"))})}a=W.responseEndpoint;
var B;W.followUpCommand&&(B=_.A(W.followUpCommand,fQ$));this.isSlimlineSurvey?(this.resetComponent(),_.aV(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.aV(this.hostElement,"ytd-inline-survey-rating-select-action",[a,B])};
_.t.showSelectedOption=function(){var a=this;_.hF.addJob(function(){var W=a.getOptionRenderers()[a.slimlineSurveyRatingSelectedIndex];a.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),W)},8,100)};
_.t.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(a){var W;return(W=_.A(a,m5_))!=null?W:{}}):[]};
_.t.onUndoClick=function(){this.resetComponent();_.aV(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.t.setSurveyOptionValue=function(a,W,w){this.notifyPath("data.ratings."+a+".ratingSurveyOptionRenderer."+w);this.set("data.ratings."+a+".ratingSurveyOptionRenderer."+w,W)};
_.t.resetComponent=function(){var a=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var W=this.getOptionRenderers(),w,Z;this.firstResponseText=(Z=(w=W[0])==null?void 0:w.responseText)!=null?Z:null;var N,B;this.lastResponseText=(B=(N=W[W.length-1])==null?void 0:N.responseText)!=null?B:null;W.forEach(function(I,X){a.setSurveyOptionValue(X,!1,"checked");a.setSurveyOptionValue(X,!1,"selected")})};
_.dU.Object.defineProperties(A6.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
A6.prototype.onOptionChange=A6.prototype.onOptionChange;A6.prototype.dataChanged=A6.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],A6.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],A6.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],A6.prototype,"firstResponseText",void 0);_.f([_.b(),_.z("design:type",Object)],A6.prototype,"lastResponseText",void 0);_.f([_.b(),_.z("design:type",Object)],A6.prototype,"selectedNonStarOption",void 0);_.f([_.b(),_.z("design:type",Object)],A6.prototype,"hideOptions",void 0);_.f([_.b(),_.z("design:type",Object)],A6.prototype,"hideUndoButton",void 0);_.f([_.b(),_.z("design:type",Object)],A6.prototype,"disableAnimation",void 0);
_.f([_.b(),_.z("design:type",Object)],A6.prototype,"showResponseRangeText",void 0);_.f([_.b(),_.z("design:type",Object)],A6.prototype,"selectedRatingIndex",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],A6.prototype,"isSlimlineSurvey",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],A6.prototype,"isSlimlineSurveyFollowUp",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],A6.prototype,"isShortsStyle",void 0);_.f([_.b({selector:function(a){return a.ui.slimlineSurveyRatingSelectedIndex}}),
_.z("design:type",Object)],A6.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.f([_.Q("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],A6.prototype,"isSingleSelect",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],A6.prototype,"dataChanged",null);
_.f([_.E6("ytd-rating-survey-option-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],A6.prototype,"onOptionChange",null);A6=_.f([_.C({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],A6);
_.D(A6,"ytd-rating-survey-renderer",function(){if(aFh!==void 0)return aFh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return aFh=a},{mode:1});var WgR;var wFl;var ZQ6;var SeD=(Ay.FIRSTDAYOFWEEK+1)%7,NL6=function(a,W,w,Z){var N="";if(Z.selection&&ouI(Z.selection))Kw(a,Z.selection)&&(N+=" selected");else if(Z.selection&&kJH(Z.selection)){var B=Z.selection.selectionState||"START_DATE";Kw(a,Z.selection.start)&&(N+=" period-start ",B==="START_DATE"&&(N+="selected"));Kw(a,Z.selection.end)&&(N+=" period-end ",B==="END_DATE"&&(N+="selected"));pw(a,Z.selection.start)||pw(Z.selection.end,a)||(N+=" highlighted")}if(pw(W,Z.start)||pw(Z.end,W))N+=" disabled";Z.circleToday&&
Kw(W,w)&&(N+=" today");return N};var h6=function(){return _.u.apply(this,arguments)||this};
_.c(h6,_.u);_.t=h6.prototype;_.t.attached=function(){var a=this;_.DW(this,function(){a.JSC$13733_calendarMain.scrollHeight>0&&(a.calendarConfig.selection?a.scrollToDate(UgI(a.calendarConfig.selection)):a.scrollToDate(a.calendarConfig.end))})};
_.t.updateSelection=function(a){a=Yem(Object.assign({},this.calendarConfig,{selection:a}),NL6);this.splice.apply(this,["renderData.months",0,a.length].concat(_.K8(a)))};
_.t.scrollToDate=function(a){this.renderData&&(a=T1v(a,this.renderData),a!==void 0&&this.JSC$13733_calendarMain.scrollToIndex(a))};
_.t.scrollToNextMonth=function(){this.JSC$13733_calendarMain.scrollToIndex(this.JSC$13733_calendarMain.firstVisibleIndex+1)};
_.t.scrollToPrevMonth=function(){this.JSC$13733_calendarMain.firstVisibleIndex===0&&this.JSC$13733_calendarMain.scrollTo(0,0);this.JSC$13733_calendarMain.scrollToIndex(this.JSC$13733_calendarMain.firstVisibleIndex-1)};
_.t.handleDayClick=function(a){_.aV(this.hostElement,"ytd-calendar-date-clicked",[a.model.day.date])};
_.t.handleDayMouseDown=function(a){a.preventDefault();_.aV(this.hostElement,"ytd-calendar-date-mousedown",[a.model.day.date])};
_.t.handleDayMouseUp=function(a){_.aV(this.hostElement,"ytd-calendar-date-mouseup",[a.model.day.date])};
_.t.handleDayMouseEnter=function(a){a.preventDefault();_.aV(this.hostElement,"ytd-calendar-date-mouseenter",[a.model.day.date])};
_.t.handleDayMouseLeave=function(a){_.aV(this.hostElement,"ytd-calendar-date-mouseleave",[a.model.day.date])};
_.dU.Object.defineProperties(h6.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var a=this.calendarConfig,W=NL6;W=W===void 0?NL6:W;for(var w=[],Z=0;Z<7;Z++)w.push(Ay.NARROWWEEKDAYS[(Z+SeD)%7]);return{months:Yem(a,W),daysOfWeekLabel:w}}}});
_.f([_.b(),_.z("design:type",Object)],h6.prototype,"calendarConfig",void 0);_.f([_.w$("#calendar-main"),_.z("design:type",Object)],h6.prototype,"JSC$13733_calendarMain",void 0);_.f([_.Q("calendarConfig"),_.z("design:type",Object),_.z("design:paramtypes",[])],h6.prototype,"renderData",null);h6=_.f([_.C({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],h6);
_.D(h6,"ytd-scrollable-calendar",function(){if(ZQ6!==void 0)return ZQ6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ZQ6=a},{mode:2});var tI6;var $BL;var i$=function(){var a=_.u.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};
_.c(i$,_.u);_.t=i$.prototype;_.t.reset=function(a){this.value=a&&this.data?this.data.value=a:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.t.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.t.focusTextInput=function(){this.input.focus()};
_.t.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()};
_.t.valueChanged=function(){var a,W;if(((a=this.data)==null?0:a.value)||((W=this.data)==null?void 0:W.value)==="")this.value=this.data.value;else{var w;((w=this.data)==null?void 0:w.value)!==void 0||this.value||(this.value="")}};
_.t.computeLabel=function(a,W){return W?"":_.sd(a)};
_.t.computeAriaLabel=function(a,W){return W?_.sd(a):""};
_.t.computeErrorMessage=function(a,W,w,Z){!a&&W?a=w||this.strings.REQUIRED_LABEL:(a=_.sd(Z),a=_.gE(a,"&")?"document"in _.NH?aER(a):WJJ(a):a);return a};
_.t.computeType=function(a){return a==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.t.onTextValueChanged=function(a){this.value=a.detail.value;var W;(W=this.onValueChanged)==null||W.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.t.handleUpdateTextInputFormFieldRendererCommand=function(a){(a=_.A(a,gOe))&&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))};
_.t.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("value-changed",this.value))};
_.t.updateInvalidFromBinding=function(a){this.invalid=a.detail.value};
_.dU.Object.defineProperties(i$.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)}}});
i$.prototype.valueChangedForBinding=i$.prototype.valueChangedForBinding;i$.prototype.valueChanged=i$.prototype.valueChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],i$.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],i$.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],i$.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],i$.prototype,"value",void 0);_.f([_.b(),_.z("design:type",String)],i$.prototype,"pattern",void 0);_.f([_.b(),_.z("design:type",String)],i$.prototype,"errorMessage",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],i$.prototype,"componentStyle",void 0);_.f([_.b(),_.z("design:type",Object)],i$.prototype,"hideCharCounter",void 0);
_.f([_.b(),_.z("design:type",Object)],i$.prototype,"hideLabel",void 0);_.f([_.b(),_.z("design:type",Object)],i$.prototype,"noLabelFloat",void 0);_.f([_.b(),_.z("design:type",Function)],i$.prototype,"onValueChanged",void 0);_.f([_.b(),_.z("design:type",Boolean)],i$.prototype,"isMultilineOverride",void 0);_.f([_.b(),_.z("design:type",Object)],i$.prototype,"autoValidate",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"invalid",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"disabled",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],i$.prototype,"enableOverlayTheme",void 0);_.f([_.b({value:{REQUIRED_LABEL:_.P_("REQUIRED_LABEL",void 0,"Required")}}),_.z("design:type",Object)],i$.prototype,"strings",void 0);_.f([_.w$("#input"),_.z("design:type",Object)],i$.prototype,"input",void 0);
_.f([_.Q("data","isMultilineOverride"),_.z("design:type",Object),_.z("design:paramtypes",[])],i$.prototype,"isMultiline",null);_.f([_.lO("data.value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],i$.prototype,"valueChanged",null);_.f([_.a5("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],i$.prototype,"valueChangedForBinding",null);i$=_.f([_.TD({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],i$);
_.D(i$,"yt-text-input-form-field-renderer",function(){if($BL===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;tI6===void 0&&(tI6=document.createElement("template"));var Z=tI6;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);$BL=a}a=$BL;return a},{mode:2});var ct=function(){var a=_.u.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};
_.c(ct,_.u);_.t=ct.prototype;_.t.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"}}}}};
_.t.focus=function(){this.startDateInput.focus()};
_.t.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:rX(this.data.selection.start),end:rX(this.data.selection.end)})};
_.t.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.t.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.l9(this.selectionState)}};
_.t.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.t.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.t.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.t.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var a=this.calendar.calendarConfig,W=a.end;a=pmx({start:a.start,end:this.endDate||W},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()}};
_.t.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var a=this.calendar.calendarConfig,W=a.start;a=pmx({start:this.startDate||W,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()}};
_.t.handleCalendarDateClicked=function(a){var W=this.selection&&UgI(this.selection),w=this.selection&&OL7(this.selection);W&&!pw(a,W)&&this.selectionState==="END_DATE"?(this.selection={start:W,end:a},this.selectionState="START_DATE"):(w&&!pw(w,a)?this.selection={start:a,end:w}:this.selection=a,this.selectionState="END_DATE")};
_.t.handleCalendarDateMouseDown=function(a){this.selection&&!ouI(this.selection)&&(this.dragPivot=Kw(a,this.selection.start)?this.selection.end:Kw(a,this.selection.end)?this.selection.start:a)};
_.t.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.t.handleCalendarDateMouseEnter=function(a){this.dragPivot&&(this.selection={start:function(W,w){return pw(W,w)?W:w}(this.dragPivot,a),
end:function(W,w){return pw(W,w)?w:W}(this.dragPivot,a)},this.dragPivot||(this.selectionState="START_DATE"))};
_.t.handleCalendarDateMouseLeave=function(){};
_.t.handleCalendarSubmitDateRange=function(){this.selection&&!ouI(this.selection)&&_.aV(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.t.updateInvalidState=function(){var a=function(W,w){w?W.setAttribute("invalid",""):W.removeAttribute("invalid")};
a(this.startDateInput,this.isStartDateInvalid);a(this.endDateInput,this.isEndDateInvalid)};
_.t.updateDateStrings=function(){this.selection&&(ouI(this.selection)?guC(this.selection):(guC(this.selection.start),guC(this.selection.end)))};
_.t.updateCalendarSelection=function(a){this.calendar.updateSelection(Object.assign({},a,{selectionState:this.selectionState}))};
_.t.updateIsStartDateInvalidFromBinding=function(a){this.isStartDateInvalid=a.detail.value};
_.t.updateIsEndDateInvalidFromBinding=function(a){this.isEndDateInvalid=a.detail.value};
_.t.updateStartDateStringFromBinding=function(){};
_.t.updateEndDateStringFromBinding=function(){};
_.dU.Object.defineProperties(ct.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:rX(this.data.dateRangeStart),end:rX(this.data.dateRangeEnd),selection:{start:rX(this.data.selection.start),end:rX(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&&UgI(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&OL7(this.selection)}}});
ct.prototype.resetTextboxes=ct.prototype.resetTextboxes;ct.prototype.observeSelection=ct.prototype.observeSelection;ct.prototype.dataChanged=ct.prototype.dataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],ct.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.f([_.w$("#calendar"),_.z("design:type",Object)],ct.prototype,"calendar",void 0);
_.f([_.w$("#start-date"),_.z("design:type",Object)],ct.prototype,"startDateInput",void 0);_.f([_.w$("#end-date"),_.z("design:type",Object)],ct.prototype,"endDateInput",void 0);_.f([_.b(),_.z("design:type",Object)],ct.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],ct.prototype,"selection",void 0);_.f([_.b(),_.z("design:type",String)],ct.prototype,"selectionState",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ct.prototype,"calendarConfig",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ct.prototype,"errorMessage",null);_.f([_.Q("selection"),_.z("design:type",Object),_.z("design:paramtypes",[])],ct.prototype,"startDate",null);_.f([_.Q("selection"),_.z("design:type",Object),_.z("design:paramtypes",[])],ct.prototype,"endDate",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ct.prototype,"dataChanged",null);
_.f([_.a5("selection","selectionState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ct.prototype,"observeSelection",null);_.f([_.a5("selectionState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ct.prototype,"resetTextboxes",null);ct=_.f([_.C({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],ct);
_.D(ct,"ytd-date-period-picker-renderer",function(){if(wFl!==void 0)return wFl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return wFl=a},{mode:1});var eY=function(){var a=_.u.apply(this,arguments)||this;var W={};a.actionMap=(W["ytd-date-period-picker-apply"]="handleDateRangeUpdated",W);return a};
_.c(eY,_.u);eY.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
eY.prototype.handleDateRangeUpdated=function(){};
_.f([_.b(),_.z("design:type",Object)],eY.prototype,"data",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],eY.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],eY.prototype,"rendererstamperBehavior",void 0);eY=_.f([_.C({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],eY);
_.D(eY,"ytd-report-history-section-header-renderer",function(){if(WgR!==void 0)return WgR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return WgR=a},{mode:1});var BLl;var lF_;var IFR;var nT=function(){return _.u.apply(this,arguments)||this};
_.c(nT,_.u);_.dU.Object.defineProperties(nT.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.data)==null?0:(W=a.icon)==null?0:W.iconType)?_.EN(this.data.icon.iconType):""}}});
_.f([_.b(),_.z("design:type",Object)],nT.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",String),_.z("design:paramtypes",[])],nT.prototype,"icon",null);nT=_.f([_.C({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],nT);
_.D(nT,"ytd-report-history-table-text-cell-renderer",function(){if(IFR!==void 0)return IFR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return IFR=a},{mode:1});var jY=function(){return _.u.apply(this,arguments)||this};
_.c(jY,_.u);jY.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],jY.prototype,"data",void 0);jY=_.f([_.C({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],jY);
_.D(jY,"ytd-report-history-table-reason-cell-renderer",function(){if(lF_!==void 0)return lF_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return lF_=a},{mode:1});var LT=function(){return _.u.apply(this,arguments)||this};
_.c(LT,_.u);LT.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"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],LT.prototype,"rendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],LT.prototype,"data",void 0);LT=_.f([_.C({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],LT);
_.D(LT,"ytd-report-history-table-cell-renderer",function(){if(BLl!==void 0)return BLl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
return BLl=a},{mode:1});var PpE;var J6=function(){var a=_.u.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};
_.c(J6,_.u);J6.prototype.onDataChanged=function(){var a;if((a=this.data)==null?0:a.style)this.componentStyle=this.getStyleName(this.data.style)};
J6.prototype.getCellForColumn=function(a){return this.cells.find(function(W){var w;return((w=_.A(W==null?void 0:W.cell,Hke)||_.A(W==null?void 0:W.cell,zaL))==null?void 0:w.columnId)===a.type})};
J6.prototype.getClassForColumn=function(a){switch(a){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
J6.prototype.getStyleName=function(a){switch(a){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.dU.Object.defineProperties(J6.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.cells)||[]).map(function(W){return _.A(W,VXR)})}}});
J6.prototype.onDataChanged=J6.prototype.onDataChanged;_.f([_.b(),_.z("design:type",Object)],J6.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Array)],J6.prototype,"columnRenderData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],J6.prototype,"componentStyle",void 0);_.f([_.Q("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],J6.prototype,"cells",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],J6.prototype,"onDataChanged",null);J6=_.f([_.C({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],J6);
_.D(J6,"ytd-report-history-table-row-renderer",function(){if(PpE!==void 0)return PpE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return PpE=a},{mode:1});var XF6;var vCJ;var r5e={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},A5e={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var FZ=function(){return _.u.apply(this,arguments)||this};
_.c(FZ,_.u);FZ.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"}}}}}};
FZ.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.dU.Object.defineProperties(FZ.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.columns)?nuD(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return c5v(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var a=this.tableSpec,W=r5e;W=W===void 0?A5e:W;W=eJx(a.columnDimensions,a.columnsToShow||[],W);a=0;W=_.l(W);for(var w=W.next();!w.done;w=W.next())w=w.value,a+=w.minWidth+w.paddingLeft+w.paddingRight;return a}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.f([_.R(_.j8),_.z("design:type",Object)],FZ.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],FZ.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],FZ.prototype,"tableSpec",null);_.f([_.Q("tableSpec"),_.z("design:type",Array),_.z("design:paramtypes",[])],FZ.prototype,"columnRenderData",null);
_.f([_.Q("tableSpec"),_.z("design:type",Number),_.z("design:paramtypes",[])],FZ.prototype,"totalMinWidth",null);_.f([_.Q("totalMinWidth"),_.z("design:type",String),_.z("design:paramtypes",[])],FZ.prototype,"tableWidthStyle",null);FZ=_.f([_.C({is:"ytd-table-renderer",disableElementRegistration:!0})],FZ);
_.D(FZ,"ytd-table-renderer",function(){if(vCJ!==void 0)return vCJ;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return vCJ=a},{mode:1});var MC=function(){return _.u.apply(this,arguments)||this};
_.c(MC,_.u);MC.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}}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],MC.prototype,"data",void 0);MC=_.f([_.C({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],MC);
_.D(MC,"ytd-report-reason-history-modal-renderer",function(){if(XF6!==void 0)return XF6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return XF6=a},{mode:1});var gCL;var oCR;var kQR;var R2=function(){return _.u.apply(this,arguments)||this};
_.c(R2,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],R2.prototype,"data",void 0);R2=_.f([_.C({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],R2);
_.D(R2,"ytd-profile-column-stats-entry-renderer",function(){if(kQR!==void 0)return kQR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return kQR=a},{mode:1});var UBh;var qC=function(){return _.u.apply(this,arguments)||this};
_.c(qC,_.u);qC.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],qC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],qC.prototype,"data",void 0);qC=_.f([_.C({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],qC);
_.D(qC,"ytd-profile-column-stats-renderer",function(){if(UBh!==void 0)return UBh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return UBh=a},{mode:1});var OQe;var Qf=function(){return _.u.apply(this,arguments)||this};
_.c(Qf,_.u);_.dU.Object.defineProperties(Qf.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.useThumbnailSize)return 80;var W,w;a=(W=this.data)==null?void 0:(w=W.thumbnail)==null?void 0:w.thumbnails;var Z;return a&&((Z=a[0])==null?void 0:Z.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.useThumbnailSize)return 80;var W,w;a=(W=this.data)==null?void 0:(w=W.thumbnail)==null?void 0:w.thumbnails;var Z;return a&&((Z=a[0])==null?void 0:Z.height)||80}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Qf.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Qf.prototype,"componentStyle",void 0);_.f([_.Q("data.useThumbnailSize"),_.z("design:type",Object),_.z("design:paramtypes",[])],Qf.prototype,"thumbnailWidth",null);
_.f([_.Q("data.useThumbnailSize"),_.z("design:type",Object),_.z("design:paramtypes",[])],Qf.prototype,"thumbnailHeight",null);Qf=_.f([_.C({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Qf);
_.D(Qf,"ytd-profile-column-user-info-renderer",function(){if(OQe!==void 0)return OQe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return OQe=a},{mode:1});var xw=function(){return _.u.apply(this,arguments)||this};
_.c(xw,_.u);xw.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]]"}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],xw.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xw.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],xw.prototype,"componentStyle",void 0);xw=_.f([_.C({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],xw);
_.D(xw,"ytd-profile-column-renderer",function(){if(oCR!==void 0)return oCR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return oCR=a},{mode:1});var b$=function(){var a=_.u.apply(this,arguments)||this;a.componentStyle="NON_CENTERED_PROFILE";return a};
_.c(b$,_.u);b$.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
b$.prototype.getIcon=function(a){return a?"settings:"+a.toLowerCase():null};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],b$.prototype,"data",void 0);b$=_.f([_.C({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],b$);
_.D(b$,"ytd-page-introduction-renderer",function(){if(gCL!==void 0)return gCL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return gCL=a},{mode:1});var S3E;var sr=function(){return _.u.apply(this,arguments)||this};
_.c(sr,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sr.prototype,"data",void 0);sr=_.f([_.C({is:"ytd-report-description-renderer",disableElementRegistration:!0})],sr);
_.D(sr,"ytd-report-description-renderer",function(){if(S3E!==void 0)return S3E;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return S3E=a},{mode:1});var Y3e;var TLR;var u$=function(){return _.u.apply(this,arguments)||this};
_.c(u$,_.u);u$.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],u$.prototype,"data",void 0);u$=_.f([_.C({is:"ytd-video-report-renderer",disableElementRegistration:!0})],u$);
_.D(u$,"ytd-video-report-renderer",function(){if(TLR!==void 0)return TLR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return TLR=a},{mode:1});var KgA;_.pA("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.pA("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var CT=function(){return _.u.apply(this,arguments)||this};
_.c(CT,_.u);CT.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]]"}}}}}};
CT.prototype.computeMessageStyle=function(a){return a};
CT.prototype.computeButtonOverride=function(a){var W;if((a==null?0:(W=a.style)==null?0:W.value)&&a.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],CT.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],CT.prototype,"shelf",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],CT.prototype,"panel",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.z("design:type",Boolean)],CT.prototype,"componentStyle",void 0);_.f([_.b({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],CT.prototype,"buttonOverride",void 0);CT=_.f([_.C({is:"ytd-message-renderer",disableElementRegistration:!0})],CT);
_.D(CT,"ytd-message-renderer",function(){if(KgA!==void 0)return KgA;var a=document.createElement("template");_.n(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<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(_.y().content.cloneNode(!0),
a.content.firstChild);return KgA=a},{mode:1});var Gg=function(){return _.u.apply(this,arguments)||this};
_.c(Gg,_.u);Gg.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"}}}};
Gg.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Gg.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.dU.Object.defineProperties(Gg.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var a,W;return!!(((a=this.data)==null?0:a.header)&&((W=this.data)==null?0:W.table))}}});
Gg.prototype.onRequestError=Gg.prototype.onRequestError;_.f([_.R(_.j8),_.z("design:type",Object)],Gg.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Gg.prototype,"data",void 0);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Gg.prototype,"isUnifiedReportHistory",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Gg.prototype,"onRequestError",null);Gg=_.f([_.C({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Gg);
_.D(Gg,"ytd-report-history-section-renderer",function(){if(Y3e!==void 0)return Y3e;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Y3e=a},{mode:1});var pFL;var DI=function(){var a=_.u.apply(this,arguments)||this;a.answerExpanded=!1;return a};
_.c(DI,_.u);DI.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],DI.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],DI.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DI.prototype,"answerExpanded",void 0);DI=_.f([_.C({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],DI);
_.D(DI,"ytd-handles-claiming-faq-renderer",function(){if(pFL!==void 0)return pFL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return pFL=a},{mode:1});var rZ$;var fT=function(){return _.u.apply(this,arguments)||this};
_.c(fT,_.u);_.f([_.b(),_.z("design:type",Object)],fT.prototype,"data",void 0);fT=_.f([_.C({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],fT);
_.D(fT,"ytd-handles-claiming-faq-section-renderer",function(){if(rZ$!==void 0)return rZ$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return rZ$=a},{mode:1});var AZl;var dx=function(){var a=_.u.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};
_.c(dx,_.u);_.t=dx.prototype;_.t.updateLeftSquigglyStyle=function(){_.Hu(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.t.updateRightSquigglyStyle=function(){_.Hu(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.t.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
_.t.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))};
_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
dx.prototype.updateRightSquigglyStyle=dx.prototype.updateRightSquigglyStyle;dx.prototype.updateLeftSquigglyStyle=dx.prototype.updateLeftSquigglyStyle;_.f([_.b(),_.z("design:type",Object)],dx.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],dx.prototype,"isDarkTheme",void 0);_.f([_.b(),_.z("design:type",String)],dx.prototype,"leftSquiggly",void 0);_.f([_.b(),_.z("design:type",String)],dx.prototype,"rightSquiggly",void 0);
_.f([_.a5("leftSquiggly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dx.prototype,"updateLeftSquigglyStyle",null);_.f([_.a5("rightSquiggly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dx.prototype,"updateRightSquigglyStyle",null);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],dx.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],dx.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],dx.prototype,"actionButtonOverride",void 0);dx=_.f([_.C({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],dx);
_.D(dx,"ytd-handles-claiming-header-renderer",function(){if(AZl!==void 0)return AZl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return AZl=a},{mode:1});var hVe;var m0=function(){var a=_.u.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};
_.c(m0,_.u);_.t=m0.prototype;_.t.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.t.onDataChanged=function(){this.updateTitleAndImages()};
_.t.onThemeChanged=function(){this.updateTitleAndImages()};
_.t.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
_.t.updateImage0SquigglyBackground=function(){_.Hu(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.t.updateImage1SquigglyBackground=function(){_.Hu(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.t.updateImage3SquigglyBackground=function(){_.Hu(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.t.updateTitleAndImages=function(){var a,W;((a=this.data)==null?void 0:(W=a.titleImages)==null?void 0:W.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))};
m0.prototype.updateImage3SquigglyBackground=m0.prototype.updateImage3SquigglyBackground;m0.prototype.updateImage1SquigglyBackground=m0.prototype.updateImage1SquigglyBackground;m0.prototype.updateImage0SquigglyBackground=m0.prototype.updateImage0SquigglyBackground;m0.prototype.onThemeChanged=m0.prototype.onThemeChanged;m0.prototype.onDataChanged=m0.prototype.onDataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],m0.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],m0.prototype,"isDarkTheme",void 0);_.f([_.b(),_.z("design:type",Object)],m0.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],m0.prototype,"title0",void 0);_.f([_.b(),_.z("design:type",Object)],m0.prototype,"title1",void 0);_.f([_.b(),_.z("design:type",Object)],m0.prototype,"title2",void 0);_.f([_.b(),_.z("design:type",Object)],m0.prototype,"title3",void 0);
_.f([_.b(),_.z("design:type",Object)],m0.prototype,"title4",void 0);_.f([_.b(),_.z("design:type",Object)],m0.prototype,"image0",void 0);_.f([_.b(),_.z("design:type",Object)],m0.prototype,"image1",void 0);_.f([_.b(),_.z("design:type",Object)],m0.prototype,"image2",void 0);_.f([_.b(),_.z("design:type",Object)],m0.prototype,"image3",void 0);_.f([_.b(),_.z("design:type",Object)],m0.prototype,"image4",void 0);_.f([_.b(),_.z("design:type",String)],m0.prototype,"image0SquigglyBackground",void 0);
_.f([_.b(),_.z("design:type",String)],m0.prototype,"image1SquigglyBackground",void 0);_.f([_.b(),_.z("design:type",String)],m0.prototype,"image3SquigglyBackground",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m0.prototype,"onDataChanged",null);_.f([_.a5("isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m0.prototype,"onThemeChanged",null);
_.f([_.a5("image0SquigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m0.prototype,"updateImage0SquigglyBackground",null);_.f([_.a5("image1SquigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m0.prototype,"updateImage1SquigglyBackground",null);
_.f([_.a5("image3SquigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m0.prototype,"updateImage3SquigglyBackground",null);m0=_.f([_.C({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],m0);
_.D(m0,"ytd-handles-claiming-title-images-section-renderer",function(){if(hVe!==void 0)return hVe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return hVe=a},{mode:1});var iQR;var Vf=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.c(Vf,_.u);Vf.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
Vf.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a)};
Vf.prototype.onCopyButtonClick=function(){var a=this,W,w,Z;return _.P(function(N){return(W=a.data)!=null&&W.primaryChannelUrl?_.g(N,navigator.clipboard.writeText(((w=a.data)==null?0:w.encodedChannelUrl)?a.data.encodedChannelUrl:"https://"+_.sd((Z=a.data)==null?void 0:Z.primaryChannelUrl)),0):N.jumpTo(0)})};
_.f([_.b(),_.z("design:type",Object)],Vf.prototype,"data",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Vf.prototype,"ytComponentBehavior",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Vf.prototype,"isDarkTheme",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Vf.prototype,"ytActionHandlerBehavior",void 0);Vf=_.f([_.C({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Vf);
_.D(Vf,"ytd-handles-claiming-update-social-renderer",function(){if(iQR!==void 0)return iQR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return iQR=a},{mode:1});var cZJ;var zg=function(){var a=_.u.apply(this,arguments)||this;a.JSC$13828_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";a.JSC$13828_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$13828_squigglyBackgroundLight;return a};
_.c(zg,_.u);zg.prototype.updateSquigglyBackgroundStyle=function(){_.Hu(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
zg.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.squigglyBackground=a?this.JSC$13828_squigglyBackgroundDark:this.JSC$13828_squigglyBackgroundLight};
zg.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),this.squigglyBackground=a?this.JSC$13828_squigglyBackgroundDark:this.JSC$13828_squigglyBackgroundLight)};
zg.prototype.updateSquigglyBackgroundStyle=zg.prototype.updateSquigglyBackgroundStyle;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],zg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],zg.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],zg.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],zg.prototype,"isDarkTheme",void 0);_.f([_.b(),_.z("design:type",String)],zg.prototype,"squigglyBackground",void 0);_.f([_.a5("squigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zg.prototype,"updateSquigglyBackgroundStyle",null);zg=_.f([_.C({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],zg);
_.D(zg,"ytd-handles-claiming-vanity-info-renderer",function(){if(cZJ!==void 0)return cZJ;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return cZJ=a},{mode:1});var eVV;var Ht=function(){var a=_.u.apply(this,arguments)||this;a.JSC$13831_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";a.JSC$13831_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";a.squigglyBackground=a.JSC$13831_squigglyBackgroundLight;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.c(Ht,_.u);_.t=Ht.prototype;_.t.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
_.t.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),this.squigglyBackground=a?this.JSC$13831_squigglyBackgroundDark:this.JSC$13831_squigglyBackgroundLight)};
_.t.updateSquigglyBackgroundStyle=function(){_.Hu(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.t.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.t.detached=function(){this.stop()};
_.t.stop=function(){this.playerElement.stop()};
_.t.setupVideoPlayer=function(){var a=this,W,w;return _.P(function(Z){W=a.data.videoId;w="http://i1.ytimg.com/vi/"+W+"/maxresdefault.jpg";a.playerElement.loadVideoWithPlayerVars({video_id:W,iurlhq:w});_.Xd(Z)})};
Ht.prototype.onDataChanged=Ht.prototype.onDataChanged;Ht.prototype.updateSquigglyBackgroundStyle=Ht.prototype.updateSquigglyBackgroundStyle;_.f([_.b({value:!1}),_.z("design:type",Boolean)],Ht.prototype,"isDarkTheme",void 0);_.f([_.b(),_.z("design:type",String)],Ht.prototype,"squigglyBackground",void 0);_.f([_.w$("#player"),_.z("design:type",Object)],Ht.prototype,"playerElement",void 0);_.f([_.b(),_.z("design:type",Object)],Ht.prototype,"data",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Ht.prototype,"ytActionHandlerBehavior",void 0);_.f([_.a5("squigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ht.prototype,"updateSquigglyBackgroundStyle",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ht.prototype,"onDataChanged",null);
Ht=_.f([_.C({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Ht);
_.D(Ht,"ytd-handles-claiming-video-item-renderer",function(){if(eVV!==void 0)return eVV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return eVV=a},{mode:1});var nCR;var Er=function(){var a=_.Nt.apply(this,arguments)||this;a.dragging=!1;a.dragMouseStart=0;a.dragOffsetStart=0;a.containerWidthDiff=0;a.boundPrevClick=function(){a.set("offset",yf(a,a.offset-(a.scrollDistance||320)))};
a.boundNextClick=function(){a.set("offset",yf(a,a.offset+(a.scrollDistance||320)))};
a.boundScrollContainerMouseDown=function(W){a.dragMouseStart=W.clientX;a.dragOffsetStart=a.offset;a.dragging=!0};
a.boundScrollContainerDrag=function(W){a.dragging&&a.set("offset",yf(a,a.dragOffsetStart-(W.clientX-a.dragMouseStart)))};
a.boundMouseUp=function(){a.onMouseUp()};
a.boundWheelScroll=function(W){var w=0;Math.abs(W.deltaX)>=Math.abs(W.deltaY)?w=W.deltaX:W.shiftKey&&(w=W.deltaY);w!==0&&(a.offset+=w,W.stopPropagation(),W.preventDefault())};
a.boundChipCloudChipScrollIntoView=function(W){(W=W.detail)&&a.scrollChipIntoView(W)};
return a};
_.c(Er,_.Nt);Er.prototype.attached=function(){var a=_.M(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)};
Er.prototype.detached=function(){var a=_.M(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)};
Er.prototype.reset=function(){this.set("offset",0);_.DW(this,this.setContainerWidthDiff);a8(this)};
var yf=function(a,W){return Math.min(Math.max(W,0),a.containerWidthDiff)};
Er.prototype.onMouseUp=function(){this.dragging=!1};
Er.prototype.transformContainer=function(){this.offset=yf(this,this.offset);var a=_.LF("HTML_DIR")==="rtl"?"":"-";_.M(this.hostElement).querySelector("#chips").style.transform="translateX("+a+this.offset+"px)";a8(this)};
var a8=function(a){_.DW(a,a.setButtonsState)};
Er.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=yf(this,this.offset));this.atStart=this.offset<=0};
Er.prototype.setContainerWidthDiff=function(){var a=_.M(this.hostElement).querySelector("#scroll-container"),W=_.M(this.hostElement).querySelector("#chips");a&&W&&(this.containerWidthDiff=W.clientWidth-a.clientWidth)};
Er.prototype.scrollChipIntoView=function(a){var W=_.M(this.hostElement).querySelector("#scroll-container");if(W){var w=this.atStart?0:106,Z=this.atEnd?0:106;a.offsetLeft<this.offset+w?this.offset=yf(this,a.offsetLeft-w):a.offsetLeft+a.clientWidth>this.offset+W.clientWidth-Z&&(this.offset=yf(this,a.offsetLeft+a.clientWidth+Z-W.clientWidth))}};
Er.prototype.transformContainer=Er.prototype.transformContainer;_.f([_.b({value:0}),_.z("design:type",Number)],Er.prototype,"offset",void 0);_.f([_.b({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],Er.prototype,"atStart",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Er.prototype,"atEnd",void 0);_.f([_.b(),_.z("design:type",Number)],Er.prototype,"scrollDistance",void 0);
_.f([_.a5("offset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Er.prototype,"transformContainer",null);Er=_.f([_.BA()],Er);var j9e;var LgR;var MIA=_.xQ(function(a){var W=a.data;a=_.l(_.$1(!1,void 0,"icHmSe"));var w=a.next().value,Z=a.next().value;a={};a=_.W$("ytChipShapeChip",function(){a:switch(W==null?void 0:W().state){case 0:var X="ytChipShapeActive";break a;case 1:X="ytChipShapeDisabled";break a;default:X="ytChipShapeInactive"}return X},function(){var X=W().type===1||W().type===2,v=W();
return X||v!=null&&v.startIcon?v==null||!v.startIcon||v!=null&&v.text?X?"ytChipShapeEndIconPadding":(v==null?0:v.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(a.ytChipShapeFocused=function(){var X;
return w()&&((X=W())==null?void 0:X.state)!==1},a));
var N=function(X){if((W==null?void 0:W().state)!==1){var v,U;(U=(v=W()).onTap)==null||U.call(v,X)}},B=_.$_(function(){var X=_.K().resolve(_.Vv(_.S4));
if(X){Z(X.isKeyBoardInUse());var v,U;(U=(v=W()).onFocusIn)==null||U.call(v)}return!1}),I=_.$_(function(){Z(!1);
return!1});
return _.k("chip-shape",{class:"ytChipShapeHost","on:focusin":B,"on:focusout":I},_.k(JZT,{shouldWrapInButton:function(){return W().type!==2},
selected:function(){return W().state===0},
onClick:N,isDropdown:function(){return W().type===1},
accessibilityLabel:function(){return W().accessibilityLabel}},_.k("div",{class:a},_.k(_.Y,{cond:function(){return W().startIcon},
then:function(){return _.k(_.P$,{icon:function(){var X;return(X=W())==null?void 0:X.startIcon},
className:function(){return W().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return W().text},_.k(Fgh,{shape:W,
onClick:N}))))},"ub");
MIA.idomCompat=!0;var JZT=_.xQ(function(a){var W=_.$_(function(w){a.onClick(w);return!1});
return _.k(_.Y,{cond:a.shouldWrapInButton,then:function(){return _.k("button",{class:"ytChipShapeButtonReset","on:click":W,role:function(){return a.isDropdown()?"combobox":"tab"},
"aria-label":a.accessibilityLabel,"aria-selected":a.selected},a.children)},
else:function(){return a.children}})},"vb"),Fgh=_.xQ(function(a){var W=a.shape;
var w=a.onClick;var Z=_.$_(function(N){w(N);return!1});
return _.k(_.Y6,null,_.k(_.Ut,{when:function(){return W().type===1}},function(){return _.k(_.P$,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.k(_.Ut,{when:function(){return W().type===2}},function(){return _.k("button",{class:"ytChipShapeButtonReset",
"on:click":Z},_.k(_.P$,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.k(_.Ut,{when:function(){return W().type===0}},function(){return _.k(_.Ha,null)}))},"wb");_.Ct(MIA,"chip-shape",{props:{data:_.qR}});var WK=function(){var a=_.u.apply(this,arguments)||this;a.disableDeselectEvent=!1;a.modern=_.r("web_modern_typography");a.useChipShape=_.r("web_chip_shape_defrag");a.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return a};
_.c(WK,_.u);_.t=WK.prototype;_.t.beforeRegister=function(){_.r("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.t.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.t.onSelectChipCommand=function(a){if(!this.selected&&this.data&&(a=_.A(a,NDJ),a.targetId&&a.targetId===this.data.targetId))this.onTap()};
_.t.onFilterChipTransformCommand=function(a){if(!this.selected&&this.data){var W;(a=(W=_.A(a,lA6))==null?void 0:W.chipUniqueId)&&a===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.t.dataChanged=function(){var a=this;_.DW(this,function(){a.data&&a.data.isSelected&&!a.selected&&(a.scrollChipIntoView(),a.onTap())})};
_.t.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.t.computeChipStyle=function(a){return a!=null?a:"STYLE_DEFAULT"};
_.t.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.aV(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.aV(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.t.onFocus=function(){var a=_.K().resolve(_.Vv(_.S4));a&&a.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.t.scrollChipIntoView=function(){_.E$(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.dU.Object.defineProperties(WK.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 RJC({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
WK.prototype.onFocus=WK.prototype.onFocus;WK.prototype.onTap=WK.prototype.onTap;WK.prototype.selectionChanged=WK.prototype.selectionChanged;WK.prototype.dataChanged=WK.prototype.dataChanged;_.f([_.R(_.pl),_.z("design:type",Object)],WK.prototype,"ironButtonState",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],WK.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],WK.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.YS),_.z("design:type",Object)],WK.prototype,"ironA11yKeysBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],WK.prototype,"disableDeselectEvent",void 0);_.f([_.b(),_.z("design:type",Object)],WK.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data.icon"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],WK.prototype,"hasIcon",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.uniqueId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],WK.prototype,"isGnomeChip",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],WK.prototype,"modern",void 0);_.f([_.b({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.z("design:type",String)],WK.prototype,"chipStyle",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],WK.prototype,"selected",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],WK.prototype,"useChipShape",void 0);_.f([_.Q("data","selected"),_.z("design:type",Object),_.z("design:paramtypes",[])],WK.prototype,"chipShapeData",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WK.prototype,"dataChanged",null);_.f([_.a5("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WK.prototype,"selectionChanged",null);
_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WK.prototype,"onTap",null);_.f([_.E6("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WK.prototype,"onFocus",null);WK=_.f([_.TD({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],WK);
_.D(WK,"yt-chip-cloud-chip-renderer",function(){if(LgR===void 0){var a=document.createElement("template");_.n(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<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;j9e===void 0&&(j9e=document.createElement("template"));var Z=j9e;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);LgR=a}a=LgR;return a},{mode:2});var wZ=function(){var a=_.u.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=_.r("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};
_.c(wZ,_.u);_.t=wZ.prototype;
_.t.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}}}}}};
_.t.attached=function(){var a=this;document.addEventListener("scroll",_.yV(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var W;this.toolbarHeight=((W=document.querySelector("ytd-masthead"))==null?void 0:W.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(w){a.handleIntersect(w)},{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))};
_.t.detached=function(){var a;(a=this.intersectionObserver)==null||a.disconnect();var W;(W=this.resizeObserver)==null||W.disconnect();document.removeEventListener("scroll",_.yV(this,this.updateChipBarWidthAndTop))};
_.t.dataChanged=function(){var a=this,W,w,Z;((Z=_.A((W=this.data)==null?void 0:(w=W.contents)==null?void 0:w[0],ilL))==null?void 0:Z.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var N=this.findSelectedChipIndex();this.selectedIndex!==N&&(this.selectedIndex=-1);_.DW(this,function(){a.selectedIndex=N;a.updating=!1;a.ytScrollableChipCloudBehavior.reset()})};
_.t.findSelectedChipIndex=function(){var a;if((a=this.data)==null||!a.contents)return 0;a=this.data.contents;for(var W=0;W<a.length;W++){var w=void 0;if((w=_.A(a[W],ilL))==null?0:w.isSelected)return W}return 0};
_.t.computeStyle=function(a){return a};
_.t.handleChipCloudChipSelectAction=function(a){a=this.JSC$13850_chipsSelector.indexOf(a);a>-1&&this.JSC$13850_chipsSelector.selectIndex(a)};
_.t.handleChipCloudChipDeselectAction=function(){if(_.r("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var a,W,w,Z=(w=_.A((a=this.data)==null?void 0:(W=a.contents)==null?void 0:W[0],ilL))==null?void 0:w.navigationEndpoint;Z&&_.aV(this.hostElement,"yt-browse-section-list-reload-endpoint",[Z]);this.JSC$13850_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.t.onGuideIsExpandedChanged=function(){var a=this.ytScrollableChipCloudBehavior;_.DW(a,a.setContainerWidthDiff);a8(this.ytScrollableChipCloudBehavior)};
_.t.onResize=function(){var a=this.ytScrollableChipCloudBehavior;_.DW(a,a.setContainerWidthDiff);a8(this.ytScrollableChipCloudBehavior)};
_.t.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.t.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.t.handleIntersect=function(a){_.r("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||a[0].intersectionRatio===1)};
_.t.updateDimensions=function(){var a=this.ytRendererBehavior.parentComponent;if(a){var W,w=(W=a.headerElement)!=null?W:a;_.Hu(this.hostElement,{"--ytd-rich-grid-chips-bar-width":w.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.t.updateSelectedIndexFromBinding=function(a){this.selectedIndex=a.detail.value};
_.t.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var a;(a=this.sortFilterHeaderRendererElement)==null||a.setAttribute("is-playlist-page-with-filters","")}};
_.t.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.E_({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.dU.Object.defineProperties(wZ.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,W,w=(a=this.data)==null?void 0:(W=a.contents)==null?void 0:W.find(function(Z){return _.A(Z,jAJ)});
return{sortFilterHeaderRenderer:_.A(w,jAJ)}}}});
wZ.prototype.dispatchChipBarIsSticky=wZ.prototype.dispatchChipBarIsSticky;wZ.prototype.isPlaylistPageChanged=wZ.prototype.isPlaylistPageChanged;wZ.prototype.updateChipBarWidthAndTop=wZ.prototype.updateChipBarWidthAndTop;wZ.prototype.onResize=wZ.prototype.onResize;wZ.prototype.onGuideIsExpandedChanged=wZ.prototype.onGuideIsExpandedChanged;wZ.prototype.dataChanged=wZ.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],wZ.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.eG),_.z("design:type",Object)],wZ.prototype,"ironResizableBehavior",void 0);_.f([_.R(),_.z("design:type",Er)],wZ.prototype,"ytScrollableChipCloudBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],wZ.prototype,"ytdReduxBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],wZ.prototype,"data",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],wZ.prototype,"selectedIndex",void 0);_.f([_.b({value:320}),_.z("design:type",Number)],wZ.prototype,"scrollDistance",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wZ.prototype,"isDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wZ.prototype,"notSticky",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wZ.prototype,"transparentBackground",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.z("design:type",String)],wZ.prototype,"componentStyle",void 0);_.f([_.b({selector:_.c49}),_.z("design:type",Boolean)],wZ.prototype,"guideIsExpanded",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wZ.prototype,"shouldHide",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wZ.prototype,"disableSticky",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wZ.prototype,"fluidWidth",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wZ.prototype,"isClipList",void 0);_.f([_.b(),_.z("design:type",Object)],wZ.prototype,"defaultChipIndex",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wZ.prototype,"isPlaylist",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],wZ.prototype,"playlistVotingAnimationEnabled",void 0);_.f([_.w$("#chips"),_.z("design:type",Object)],wZ.prototype,"JSC$13850_chipsSelector",void 0);_.f([_.w$("ytd-sort-filter-header-renderer"),_.z("design:type",HTMLElement)],wZ.prototype,"sortFilterHeaderRendererElement",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],wZ.prototype,"updating",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wZ.prototype,"dataChanged",null);_.f([_.a5("guideIsExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wZ.prototype,"onGuideIsExpandedChanged",null);_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wZ.prototype,"onResize",null);
_.f([_.lO("isChannelPageGrid","disableSticky","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wZ.prototype,"updateChipBarWidthAndTop",null);_.f([_.Q("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],wZ.prototype,"isChannelPageGrid",null);_.f([_.Q("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],wZ.prototype,"isHashtagLandingPage",null);
_.f([_.a5("isPlaylistPage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wZ.prototype,"isPlaylistPageChanged",null);_.f([_.Q("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],wZ.prototype,"isPlaylistPage",null);_.f([_.Q("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],wZ.prototype,"isDisableDeselectEvent",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],wZ.prototype,"sortFilterHeaderRendererData",null);_.f([_.b({reflectToAttribute:!0,selector:_.MTe}),_.z("design:type",String)],wZ.prototype,"frostedGlassMode",void 0);_.f([_.a5("notSticky"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wZ.prototype,"dispatchChipBarIsSticky",null);wZ=_.f([_.C({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],wZ);
_.D(wZ,"ytd-feed-filter-chip-bar-renderer",function(){if(nCR!==void 0)return nCR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return nCR=a},{mode:1});var RVJ;var q3l=_.xQ(function(a){var W=a.data;var w=a.buttonIndex;var Z=a.selectedIndex;var N=a.onSelect;var B=function(){return w()===Z()},I=function(){var v,U;
return(U=(v=W().text)==null?void 0:v.content)!=null?U:""};
_.$_(function(){});
a=_.QP();var X=_.$_(function(){N(W().onSubmitCommand);return!1});
return _.k("yt-toggleable-image-button-view-model",{class:function(){var v={};v=(v["toggleable-image-button-view-model-wiz"]=!0,v[""]=!0,v["toggleable-image-button-view-model-wiz__semi-transparent"]=Z()!==-1&&!B(),v);return _.ZK(v)},
tabindex:0,"aria-label":I,"aria-pressed":B,role:"button","on:keydown":a,"on:click":X},_.k(_.Y,{cond:function(){return W().logo},
then:function(v){return _.k(_.qw,{data:v,className:function(){var U={};U=(U["toggleable-image-button-view-model-wiz__image"]=!0,U["toggleable-image-button-view-model-wiz__circular-radius"]=!(!W().backgroundColor||!W().backgroundColorDarkMode),U["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(B()&&W().backgroundColor&&W().backgroundColorDarkMode),U);return _.ZK(U)},
alt:I,useWidth:!1,style:function(){if(B()&&W().backgroundColor&&W().backgroundColorDarkMode){var U=ri(Number(W().backgroundColorDarkMode),"1");var O=ri(Number(W().backgroundColor),"1");U="background: linear-gradient(180deg,"+U+","+O+") border-box;"}else U="";return U}})}}),_.k(_.g2,{model:{borderRadius:"16px"}}),_.k("p",{class:function(){var v={};
v=(v["toggleable-image-button-view-model-wiz__label"]=!0,v["toggleable-image-button-view-model-wiz__bold-text"]=B(),v);return _.ZK(v)}},_.k(_.k_,{text:function(){return W().text}})))},"xb");
q3l.idomCompat=!0;var xB$=_.xQ(function(a){var W=a.data;a=_.l(_.$1({index:-1,command:{}},void 0,"Zcqtsb"));var w=a.next().value,Z=a.next().value;return _.k("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.k("div",{class:"nudge-form-view-model-wiz__form-options"},_.k(_.Ax,{data:function(){return W().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(N,B){return _.k(q3l,{data:N.data,buttonIndex:B,selectedIndex:function(){return w().index},
onSelect:function(I){Z({index:B(),command:I})}})}})),_.k(_.k_,{text:function(){return W().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.k("div",{class:"nudge-form-view-model-wiz__submit"},_.k(_.Ax,{data:function(){return W().submitButton}},{buttonViewModel:function(N){return _.k(Q9h,{data:N.data,
isDisabled:function(){return w().index===-1},
onClick:function(){_.cX(w().command)}})}})))},"yb");
xB$.idomCompat=!0;var Q9h=_.xQ(function(a){var W=_.XT(function(){return Object.assign({},a.data(),{state:a.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.k(_.F7,{data:W,onClick:a.onClick})},"zb");_.Ct(xB$,"yt-nudge-form-view-model",{props:{data:_.qR}});var Zu=function(){var a=_.u.apply(this,arguments)||this;a.roundedContainer=!0;a.buttonUpdate=_.r("web_modern_buttons");a.isDarkMode=!1;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return a};
_.c(Zu,_.u);_.t=Zu.prototype;_.t.computeNudgeStyle=function(a){return a?"modernized-nudge":""};
_.t.handleDarkModeToggledAction=function(a){this.isDarkMode=a};
_.t.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.t.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"}}}};
_.t.computeIsHorizontalButtons=function(a){return a?!!a.applyModernizedStyle&&!!a.enableHorizontalButtons&&!!a.secondaryButton:!1};
_.dU.Object.defineProperties(Zu.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,W;return(W=(a=this.data)==null?void 0:a.backgroundStyle)!=null?W:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var a,W;return(W=(a=this.data)==null?void 0:a.contentsLocation)!=null?W:"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)}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Zu.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],Zu.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Zu.prototype,"actionHandlerBehavior",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("isHideEnclosingAction"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Zu.prototype,"isHidden",null);_.f([_.b(),_.z("design:type",Object)],Zu.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Zu.prototype,"roundedContainer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Zu.prototype,"buttonUpdate",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.z("design:type",String)],Zu.prototype,"nudgeStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data.trimStyle"),_.z("design:type",String),_.z("design:paramtypes",[])],Zu.prototype,"trimStyle",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.backgroundStyle"),_.z("design:type",String),_.z("design:paramtypes",[])],Zu.prototype,"backgroundStyle",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.contentsLocation"),_.z("design:type",String),_.z("design:paramtypes",[])],Zu.prototype,"contentsLocation",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.disableDropShadow"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Zu.prototype,"noShadow",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.lightIconImage"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Zu.prototype,"noIcon",null);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.z("design:type",Boolean)],Zu.prototype,"isHorizontalButtons",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Object)],Zu.prototype,"isDarkMode",void 0);Zu=_.f([_.C({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Zu);
_.D(Zu,"ytd-feed-nudge-renderer",function(){if(RVJ!==void 0)return RVJ;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return RVJ=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var bQy;var s9e;var Nh=function(){var a=_.u.apply(this,arguments)||this;a.collapsed=!1;a.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return a};
_.c(Nh,_.u);Nh.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"}}}};
Nh.prototype.handleRatingSelect=function(){var a;((a=this.data)==null?0:a.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Nh.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Nh.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Nh.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.eN),_.z("design:type",Object)],Nh.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Nh.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Nh.prototype,"collapsed",void 0);Nh=_.f([_.C({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Nh);
_.D(Nh,"ytd-slimline-survey-renderer",function(){if(s9e!==void 0)return s9e;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return s9e=a},{mode:1});var uee;var tC=function(){return _.u.apply(this,arguments)||this};
_.c(tC,_.u);tC.prototype.maybeGetBackgroundColor=function(a){return this.isDarkMode?a.section2Color:a.section3Color};
tC.prototype.colorPaletteChanged=function(){var a=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;a&&(a==null?0:a.secondaryTitleColor)&&this.maybeGetBackgroundColor(a)?(this.hostElement.style.backgroundColor=_.KC(this.maybeGetBackgroundColor(a)),this.hostElement.style.color=_.KC(a.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
tC.prototype.colorPaletteChanged=tC.prototype.colorPaletteChanged;_.f([_.R(_.ij),_.z("design:type",Object)],tC.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],tC.prototype,"data",void 0);_.f([_.b({selector:function(a){return a.ui.darkModeIsEnabled}}),
_.z("design:type",Boolean)],tC.prototype,"isDarkMode",void 0);_.f([_.b(),_.z("design:type",Object)],tC.prototype,"lightColorPalette",void 0);_.f([_.b(),_.z("design:type",Object)],tC.prototype,"darkColorPalette",void 0);_.f([_.a5("darkColorPalette","lightColorPalette","data","isDarkMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tC.prototype,"colorPaletteChanged",null);tC=_.f([_.C({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],tC);
_.D(tC,"ytd-endorsement-header-renderer",function(){if(uee!==void 0)return uee;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return uee=a},{mode:1});_.Ct(_.Sd,"yt-decorated-avatar-view-model",{props:{data:_.qR,className:_.qR}});var $E=function(){var a=_.u.apply(this,arguments)||this;a.fullHeight=_.r("web_rich_grid_media_full_height");a.showChannelAvatar=!0;a.hasPlaylistThumbnail=!1;a.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};a.prepareThumbnailForPageTransition=function(){_.r("web_thumbnail_to_watch_transition")&&(a.thumbnail.style.viewTransitionName="thumbnail-to-watch",a.cleanupThumbnailAfterPageTransition(a.thumbnail))};
return a};
_.c($E,_.u);_.t=$E.prototype;
_.t.configureRendererStamper=function(){return{lazyLoadMenu:tV,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"}}}};
_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.shouldLazyLoadMenu=function(){var a=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.r("kevlar_modern_downloads_page")||!a};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13876_inlinePreviewHoverListener=dP({mediaRenderer:this,lockupElement:this.JSC$13876_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.t.getVideoPreviewOpts=function(){var a={},W;if((W=this.data)==null?0:W.multipleInlinePlaybackEndpoint)a=qXJ;this.isRadio&&(a=R$e);return _.r("web_thumbnail_to_watch_transition")?Object.assign({},a,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):a};
_.t.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13876_inlinePreviewHoverListener)==null||ty(a)};
_.t.getOwner=function(){var a,W,w;return((a=this.data)==null?void 0:(W=a.channelThumbnailSupportedRenderers)==null?void 0:W.channelThumbnailWithLinkRenderer)||_.A((w=this.data)==null?void 0:w.showProviderChannelThumbnail,YMA)};
_.t.updateLockupSize=function(){var a;((a=this.getOwner())==null?0:a.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.t.getFeedbackEndpoint=function(a){if(_.A(a,_.F2))return a;var W,w;a=(w=(W=_.A(a,_.$7))==null?void 0:W.commands)!=null?w:[];W=_.l(a);for(w=W.next();!w.done;w=W.next())if(w=this.getFeedbackEndpoint(w.value))return w;return null};
_.t.computeNavigationEndpoint=function(a){return NqC(a==null?void 0:a.navigationEndpoint)};
_.t.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var a=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(a)!==JSON.stringify(this.data)&&this.set("data",a)}};
_.t.onDataChanged=function(){var a=this,W=this.getOwner();if(W){this.set("data.owner",W);var w,Z,N,B,I,X=((w=this.data)==null?void 0:(Z=w.shortBylineText)==null?void 0:(N=Z.runs)==null?void 0:(B=N[0])==null?void 0:B.text)||((I=W.name)==null?void 0:I.simpleText);this.set("data.owner.title",X)}var v,U,O,S,T,p;W=((v=this.data)==null?void 0:(U=v.thumbnailRenderer)==null?void 0:U.playlistVideoThumbnailRenderer)||((O=this.data)==null?void 0:(S=O.thumbnailRenderer)==null?void 0:S.playlistCustomThumbnailRenderer)||
((T=this.data)==null?void 0:(p=T.thumbnailRenderer)==null?void 0:p.showCustomThumbnailRenderer);var h;((h=this.data)==null?0:h.thumbnail)||!W||this.set("data.thumbnail",W.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){a.updateLockupSize()});
var L;if(v=((L=this.data)==null?void 0:L.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(v);var F;((F=this.dismissActionToReplayEntity)==null?0:F.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.t.onHiddenChanged=function(){this.updateLockupSize()};
_.t.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.aV(this.hostElement,"yt-terminate-video-preview-action");else{var a;(a=this.videoTitleLink)==null||a.focus()}};
_.t.metadataColorChanged=function(){var a;if(this.metadataColor&&((a=this.videoTitle)==null?0:a.style))this.videoTitle.style.color=_.KC(this.metadataColor);else{var W,w;!this.metadataColor&&((W=this.videoTitle)==null?0:(w=W.style)==null?0:w.color)&&(this.videoTitle.style.color="")}};
_.t.onDetailsClick=function(a){var W=this.computedNavigationEndpoint;W&&(_.b5(_.qj(a),this.hostElement,["A","BUTTON"])||_.E$(this.hostElement,"yt-navigate",{endpoint:W}))};
_.t.cleanupThumbnailAfterPageTransition=function(a){_.aCF(document,"yt-page-type-changed",function(){a.style.viewTransitionName=""})};
_.t.onRendererTap=function(){this.prepareThumbnailForPageTransition();var a,W,w=((a=this.data)==null?void 0:a.serviceEndpoint)||this.getFeedbackEndpoint((W=this.data)==null?void 0:W.navigationEndpoint);w&&_.A(w,_.F2)&&this.ytComponentBehavior.resolveCommand(w)};
_.t.onMouseDown=function(a){var W=a.target,w=this.computedNavigationEndpoint,Z;a=W.href||((Z=_.A(w==null?void 0:w.commandMetadata,_.mm))==null?void 0:Z.url);Z=W.data||w;a&&Z&&B6x(a,Z)};
_.t.computeVideoTitleText=function(){var a;if((a=this.data)==null?0:a.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.t.computeHasPlaylistThumbnail=function(a){var W,w,Z,N,B;if((((W=a.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((w=a.thumbnailRenderer)==null?0:w.playlistCustomThumbnailRenderer)||((Z=a.thumbnailRenderer)==null?0:Z.showCustomThumbnailRenderer)||((N=a.thumbnailRenderer)==null?0:N.playlistVideoThumbnailRenderer)||((B=a.thumbnailRenderer)==null?0:B.playlistCustomThumbnailRenderer))&&a.thumbnailOverlays)for(W=0;W<a.thumbnailOverlays.length;W++)if(w=void 0,(w=a.thumbnailOverlays[W])==
null?0:w.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.dU.Object.defineProperties($E.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.r("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$13876_inlinePreviewHoverListener)==null?0:pd(a))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Bu(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,W;return((a=this.data)==null?void 0:a.videoId)||((W=this.data)==null?void 0:W.playlistId)||""}}});
$E.prototype.onMouseDown=$E.prototype.onMouseDown;$E.prototype.metadataColorChanged=$E.prototype.metadataColorChanged;$E.prototype.onIsDismissedChanged=$E.prototype.onIsDismissedChanged;$E.prototype.onHiddenChanged=$E.prototype.onHiddenChanged;$E.prototype.onDataChanged=$E.prototype.onDataChanged;$E.prototype.handleReloadDownloadsInfo=$E.prototype.handleReloadDownloadsInfo;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],$E.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],$E.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],$E.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],$E.prototype,"ytdReduxBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],$E.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],$E.prototype,"entitySelectorType",void 0);_.f([_.b(),_.z("design:type",Boolean)],$E.prototype,"noEndpoints",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],$E.prototype,"isRadio",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],$E.prototype,"miniMode",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$E.prototype,"fullHeight",void 0);
_.f([_.b(),_.z("design:type",Boolean)],$E.prototype,"showDarkVideoMetadata",void 0);_.f([_.b(),_.z("design:type",Boolean)],$E.prototype,"showLightVideoMetadata",void 0);_.f([_.b(),_.z("design:type",Number)],$E.prototype,"metadataColor",void 0);_.f([_.b(),_.z("design:type",Object)],$E.prototype,"showChannelAvatar",void 0);_.f([_.b(),_.z("design:type",Boolean)],$E.prototype,"hidden",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],$E.prototype,"showYtInteraction",void 0);
_.f([_.b(),_.z("design:type",String)],$E.prototype,"dismissedContentId",void 0);_.f([_.b({selectorArgs:["dismissedContentId"],selector:fOI}),_.z("design:type",Object)],$E.prototype,"dismissActionToReplayEntity",void 0);
_.f([_.b({selectorArgs:["entitySelectorType","mediaId"],selector:function(a,W,w){if(_.r("kevlar_modern_downloads_page")&&w&&W&&W!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(W){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var Z=xam(a,w);if(Z){W=_.cJ(a,w);var N=nx(a,w),B=z_7(a,w);a=jy(a,w);var I=iBU(Z,W,N,B);N=I.shortViewCountText;var X=I.publishedTimeText;I=I.badges;var v=a>0;B=Acv(Z,W,B,a);Z=_.os(W)||W==="TRANSFER_STATE_FAILED"||W==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!gK(Z.policyEntity)?
void 0:wnI(w,a,Z.videoEntity.lengthSeconds);W==="TRANSFER_STATE_PAUSED_BY_USER"&&w&&!_.r("dl_resume_click_killswitch")&&(Z={offlineVideoEndpoint:{videoId:w,action:"ACTION_RESUME"}});w={shortViewCountText:N,publishedTimeText:X,badges:I,isWatched:v,navigationEndpoint:Z,thumbnailOverlays:B}}else w=void 0;return w;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(W=bz7(a,w))if(Z=_.ey(a,w),B=_.siE(a,w),Z!=="TRANSFER_STATE_UNKNOWN"){w=hlm(W,Z,B,w,FFH(a));break a}w=void 0}return w;default:_.jJ(new _.Uw("Error: entitySelectorType defined but not matched in selector.",
a,W))}}}),
_.z("design:type",Object)],$E.prototype,"entityDrivenState",void 0);_.f([_.b({computed:"computeVideoTitleText(data)"}),_.z("design:type",Object)],$E.prototype,"videoTitleText",void 0);_.f([_.b({computed:"computeHasPlaylistThumbnail(data)"}),_.z("design:type",Object)],$E.prototype,"hasPlaylistThumbnail",void 0);_.f([_.b({computed:"computeNavigationEndpoint(data)"}),_.z("design:type",Object)],$E.prototype,"computedNavigationEndpoint",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],$E.prototype,"typographyBump",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("typographyBump"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$E.prototype,"typographyBumpV2",null);_.f([_.w$("#video-title"),_.z("design:type",HTMLElement)],$E.prototype,"videoTitle",void 0);_.f([_.w$("#video-title-link"),_.z("design:type",HTMLElement)],$E.prototype,"videoTitleLink",void 0);
_.f([_.w$("#thumbnail"),_.z("design:type",HTMLElement)],$E.prototype,"thumbnail",void 0);_.f([_.w$("#dismissible"),_.z("design:type",HTMLElement)],$E.prototype,"JSC$13876_dismissibleMedia",void 0);_.f([_.Q("data.menu"),_.z("design:type",Object),_.z("design:paramtypes",[])],$E.prototype,"lazyLoadMenu",null);_.f([_.Q("data.menu"),_.z("design:type",Object),_.z("design:paramtypes",[])],$E.prototype,"immediateLoadMenu",null);
_.f([_.lO("entityDrivenState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$E.prototype,"handleReloadDownloadsInfo",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$E.prototype,"onDataChanged",null);_.f([_.lO("hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$E.prototype,"onHiddenChanged",null);
_.f([_.a5("isDismissed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$E.prototype,"onIsDismissedChanged",null);_.f([_.a5("metadataColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$E.prototype,"metadataColorChanged",null);_.f([_.E6("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],$E.prototype,"onMouseDown",null);
_.f([_.Q("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$E.prototype,"isHovered",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$E.prototype,"useAvatar",null);_.f([_.Q("data","entitySelectorType"),_.z("design:type",String),_.z("design:paramtypes",[])],$E.prototype,"mediaId",null);$E=_.f([_.C({is:"ytd-rich-grid-media",disableElementRegistration:!0})],$E);
var CpH=_.mV()($E,"ytd-rich-grid-media",function(){if(bQy!==void 0)return bQy;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return bQy=a},{mode:_.Vn("kevlar_poly_si_batch_j072")?1:2});var GQh;var BK=function(){var a=_.u.apply(this,arguments)||this;a.removeMaxWidth=!0;a.insetMetadata=!1;return a};
_.c(BK,_.u);_.t=BK.prototype;_.t.configureRendererStamper=function(){return{innerMenu:tV,outerMenu:Object.assign({},tV,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.onDataChanged=function(){var a,W=((a=this.data)==null?void 0:a.trackingParams)||"";W&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(W));var w;((w=this.dismissActionToReplayEntity)==null?0:w.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13881_inlinePreviewHoverListener=dP({mediaRenderer:this,lockupElement:this.JSC$13881_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:o0m})};
_.t.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13881_inlinePreviewHoverListener)==null||ty(a)};
_.t.onRendererTap=function(){var a,W,w=(a=this.data)==null?void 0:(W=a.serviceEndpoints)==null?void 0:W[0];_.A(w,_.F2)&&this.componentBehavior.resolveCommand(w)};
_.t.onDetailsClick=function(a){var W,w=(W=this.data)==null?void 0:W.navigationEndpoint;w&&(_.b5(_.qj(a),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(w))};
_.t.onShow=function(){var a=this.data;a.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(a.onFirstVisibleCommand),delete a.onFirstVisibleCommand)};
_.dU.Object.defineProperties(BK.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=_.A(a.badge,Yoe))){var W,w,Z;return[{metadataBadgeRenderer:{label:((W=a.label)==null?void 0:(w=W.runs)==null?void 0:w[0].text)||((Z=a.label)==null?void 0:Z.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,W,w;return this.isSlimShort?(a=this.computedTitle)==null?void 0:(W=a.accessibility)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13881_inlinePreviewHoverListener)==null?0:pd(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
BK.prototype.onDataChanged=BK.prototype.onDataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],BK.prototype,"componentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],BK.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.eN),_.z("design:type",Object)],BK.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],BK.prototype,"ytdReduxBehavior",void 0);_.f([_.w$("ytd-thumbnail"),_.z("design:type",HTMLElement)],BK.prototype,"thumbnail",void 0);_.f([_.w$("#dismissible"),_.z("design:type",HTMLElement)],BK.prototype,"JSC$13881_dismissibleMedia",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BK.prototype,"removeMaxWidth",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BK.prototype,"insetMetadata",void 0);_.f([_.b(),_.z("design:type",String)],BK.prototype,"dismissedContentId",void 0);_.f([_.b({selectorArgs:["dismissedContentId"],selector:fOI}),_.z("design:type",Object)],BK.prototype,"dismissActionToReplayEntity",void 0);_.f([_.Q("insetMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],BK.prototype,"thumbnailObjectFit",null);
_.f([_.Q("data","insetMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],BK.prototype,"innerMenu",null);_.f([_.Q("data","insetMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],BK.prototype,"outerMenu",null);_.f([_.b(),_.z("design:type",Object)],BK.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],BK.prototype,"miniMode",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BK.prototype,"onDataChanged",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],BK.prototype,"shortsBadges",null);_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BK.prototype,"isShort",null);
_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BK.prototype,"isSlimShort",null);_.f([_.Q("data","isShort"),_.z("design:type",Object),_.z("design:paramtypes",[])],BK.prototype,"computedTitle",null);_.f([_.Q("isSlimShort","computedTitle"),_.z("design:type",Object),_.z("design:paramtypes",[])],BK.prototype,"computedAccessibilityLabel",null);
_.f([_.Q("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BK.prototype,"isHovered",null);BK=_.f([_.C({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],BK);
_.D(BK,"ytd-rich-grid-slim-media",function(){if(GQh!==void 0)return GQh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return GQh=a},{mode:_.Vn("kevlar_poly_si_batch_j063")?1:2});var DBy;var fFy;var ll=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(ll,_.u);ll.prototype.computeIcon=function(a){return a&&a.iconType?"yt-sys-icons:"+a.iconType.toLowerCase():""};
ll.prototype.onMouseEnter=function(){this.isHovered=!0};
ll.prototype.onMouseLeave=function(){this.isHovered=!1};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ll.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ll.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],ll.prototype,"isHovered",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ll.prototype,"darkerDarkTheme",void 0);ll=_.f([_.C({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],ll);
_.D(ll,"ytd-expand-on-hover-card-renderer",function(){if(fFy!==void 0)return fFy;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return fFy=a},{mode:1});var dB$,mBh=function(){if(dB$!==void 0)return dB$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return dB$=a};_.pA("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var I8=function(){var a=_.u.apply(this,arguments)||this;a.compactStyle=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.c(I8,_.u);_.t=I8.prototype;_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.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"}}}};
_.t.computeHideDot=function(a){return!(a&&a.subscriberCountText&&a.videoCountText)||this.compactStyle};
_.t.hasDualButtons=function(a){return a&&a.purchaseButton&&a.subscribeButton};
_.t.backgroundColorChanged=function(){if(this.data!==void 0){var a=this.data.backgroundColor;this.isDarkTheme&&(a=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=a!=null?_.KC(a):"transparent"}};
_.t.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.t.onTap=function(a){var W,w,Z=((W=this.data)==null?void 0:W.navigationEndpoint)||((w=this.data)==null?void 0:w.serviceEndpoint);_.A(Z,_.Nm)&&(Z&&_.K().resolve(_.zU).resolveCommand(Z,{form:{element:this.hostElement}}),a.preventDefault())};
_.t.computeChannelEndpoint=function(a){return _.A(a,_.Nm)?null:a};
_.t.computeHrefEndpoint=function(a){return _.A(a,_.Nm)?null:this.componentBehavior.computeHref_(a)};
_.t.computeChannelRendererStyle=function(a){return a};
_.t.computeIconSize=function(a){return a?108:136};
_.dU.Object.defineProperties(I8,{template:{configurable:!0,enumerable:!0,get:function(){return mBh()}}});
I8.prototype.backgroundColorChanged=I8.prototype.backgroundColorChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],I8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],I8.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],I8.prototype,"componentBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],I8.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],I8.prototype,"isDarkTheme",void 0);_.f([_.b({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.z("design:type",String)],I8.prototype,"channelRendererStyle",void 0);_.f([_.b({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],I8.prototype,"dualButtons",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],I8.prototype,"useBiggerThumbs",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.Et("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],I8.prototype,"biggerThumbStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],I8.prototype,"compactStyle",void 0);_.f([_.a5("data","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],I8.prototype,"backgroundColorChanged",null);I8=_.f([_.C({is:"ytd-channel-renderer",disableElementRegistration:!0})],I8);_.D(I8,"ytd-channel-renderer",function(){return mBh()},{mode:1});var VI_;var zVy;_.pA("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var PK=function(){var a=_.u.apply(this,arguments)||this;a.displayItemCount=2;a.collections=_.r("web_modern_collections_v2");a.hasPlaylistThumbnail=!1;a.stackThumbnailSize="large";return a};
_.c(PK,_.u);_.t=PK.prototype;_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.t.computeFirstVideos=function(a,W){return a&&W?a.slice(0,W):[]};
_.t.computeThumbnailWidth=function(a,W){return a?W==="BIG"?500:W==="MASSIVE"?600:W==="MEDIUM"?450:420:360};
_.t.computeThumbnailHeight=function(a,W){return a?W==="BIG"?280:W==="MASSIVE"?337:234:202};
_.t.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13894_inlinePreviewHoverListener)==null||ty(a)};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13894_inlinePreviewHoverListener=dP({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:qXJ,thumbnailElement:this.thumbnail})};
_.t.computeHasPlaylistThumbnail=function(a){var W,w;if((((W=a.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((w=a.thumbnailRenderer)==null?0:w.playlistCustomThumbnailRenderer))&&a.thumbnailOverlays)for(W=0;W<a.thumbnailOverlays.length;W++)if(w=void 0,(w=a.thumbnailOverlays[W])==null?0:w.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.dU.Object.defineProperties(PK.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13894_inlinePreviewHoverListener)==null?0:pd(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
PK.prototype.dataChanged=PK.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],PK.prototype,"ytdLockupBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],PK.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],PK.prototype,"displayItemCount",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],PK.prototype,"useBiggerThumbs",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.Et("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],PK.prototype,"biggerThumbsStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],PK.prototype,"collections",void 0);_.f([_.b({computed:"computeHasPlaylistThumbnail(data)"}),_.z("design:type",Object)],PK.prototype,"hasPlaylistThumbnail",void 0);_.f([_.b(),_.z("design:type",String)],PK.prototype,"stackThumbnailSize",void 0);_.f([_.w$("ytd-thumbnail"),_.z("design:type",HTMLElement)],PK.prototype,"thumbnail",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PK.prototype,"dataChanged",null);_.f([_.Q("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],PK.prototype,"isHovered",null);PK=_.f([_.C({is:"ytd-radio-renderer",disableElementRegistration:!0})],PK);
_.D(PK,"ytd-radio-renderer",function(){if(zVy!==void 0)return zVy;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return zVy=a},{mode:_.Vn("kevlar_poly_si_batch_j058")?1:2});var HQR;_.pA("itemSectionRenderer","showRenderer","ytd-show-renderer");var XV=function(){return _.u.apply(this,arguments)||this};
_.c(XV,_.u);XV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
XV.prototype.computeThumbnailWidth=function(a){return a?360:246};
XV.prototype.computeUseProminentThumbs=function(a){return a};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],XV.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],XV.prototype,"isSearch",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.z("design:type",Boolean)],XV.prototype,"useProminentThumbs",void 0);XV=_.f([_.C({is:"ytd-show-renderer",disableElementRegistration:!0})],XV);
_.D(XV,"ytd-show-renderer",function(){if(HQR!==void 0)return HQR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return HQR=a},{mode:1});_.pA("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var vK=function(){var a=_.u.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.c(vK,_.u);vK.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"}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vK.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vK.prototype,"isRichGrid",void 0);vK=_.f([_.C({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],vK);
_.D(vK,"ytd-feed-entry-renderer",function(){if(VI_!==void 0)return VI_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return VI_=a},{mode:1});var yZ$;var gZ=function(){return _.u.apply(this,arguments)||this};
_.c(gZ,_.u);gZ.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.f([_.R(_.ij),_.z("design:type",Object)],gZ.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],gZ.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],gZ.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.AG,value:3}),_.z("design:type",Number)],gZ.prototype,"itemsPerRow",void 0);
gZ=_.f([_.C({is:"ytd-link-card-renderer",disableElementRegistration:!0})],gZ);
_.D(gZ,"ytd-link-card-renderer",function(){if(yZ$!==void 0)return yZ$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return yZ$=a},{mode:1});var ECA;var o8=function(){return _.u.apply(this,arguments)||this};
_.c(o8,_.u);_.t=o8.prototype;_.t.configureRendererStamper=function(){return{"data.menu":tV,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.onRendererTap=function(a){if(!this.ytdDismissibleItemBehavior.isDismissed){var W,w=(W=this.data)==null?void 0:W.navigationEndpoint;w&&!_.b5(_.qj(a),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(w)?_.b5(_.qj(a),this.hostElement,["A"])||_.E$(this.hostElement,"yt-navigate",{endpoint:w}):this.ytComponentBehavior.resolveCommand(w,{}))}};
_.t.maybeComputeHref=function(a){return this.ytComponentBehavior.computeHref_(a,!0)};
_.t.getNavigationCommand=function(a){return this.isNavigationCommand(a)?a:null};
_.t.isNavigationCommand=function(a){return a?_.A(a,_.I1)||_.A(a,_.u6)||_.A(a,_.ba)?!0:!1:!1};
o8.prototype.onRendererTap=o8.prototype.onRendererTap;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],o8.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],o8.prototype,"ytComponentBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],o8.prototype,"data",void 0);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],o8.prototype,"onRendererTap",null);o8=_.f([_.C({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],o8);
_.D(o8,"ytd-lumiere-promo-item-image-renderer",function(){if(ECA!==void 0)return ECA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ECA=a},{mode:1});var aMV;var kE=function(){return _.u.apply(this,arguments)||this};
_.c(kE,_.u);kE.prototype.computeLandscapeThumbnail=function(){var a;return((a=this.data)==null?void 0:a.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],kE.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kE.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],kE.prototype,"miniMode",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.AG}),_.z("design:type",Number)],kE.prototype,"itemsPerRow",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.z("design:type",Boolean)],kE.prototype,"landscapeThumbnail",void 0);kE=_.f([_.C({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],kE);
_.D(kE,"ytd-lumiere-shelf-details-renderer",function(){if(aMV!==void 0)return aMV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return aMV=a},{mode:_.Vn("kevlar_poly_si_batch_j076")?1:2});var WLT;var UL=function(){return _.u.apply(this,arguments)||this};
_.c(UL,_.u);UL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],UL.prototype,"data",void 0);UL=_.f([_.C({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],UL);
_.D(UL,"ytd-primetime-promo-details-renderer",function(){if(WLT!==void 0)return WLT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return WLT=a},{mode:1});var wqA;var OL=function(){return _.u.apply(this,arguments)||this};
_.c(OL,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],OL.prototype,"data",void 0);OL=_.f([_.C({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],OL);
_.D(OL,"ytd-panel-show-style-metadata-renderer",function(){if(wqA!==void 0)return wqA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return wqA=a},{mode:1});var ZiA;var SU=function(){return _.u.apply(this,arguments)||this};
_.c(SU,_.u);_.t=SU.prototype;_.t.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.t.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.t.computeThumbnail=function(a){if(a)return a.smallFormFactorBackgroundThumbnail||a.largeFormFactorBackgroundThumbnail};
_.t.maybeComputeHref=function(a){return this.ytComponentBehavior.computeHref_(a,!0)};
_.t.isNavigationCommand=function(a){return a?_.A(a,_.I1)||_.A(a,_.u6)||_.A(a,_.ba)?!0:!1:!1};
_.t.getNavigationCommand=function(a){return this.isNavigationCommand(a)?a:null};
SU.prototype.onPanelTap=SU.prototype.onPanelTap;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],SU.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],SU.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],SU.prototype,"roundedContainer",void 0);_.f([_.b({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.z("design:type",Boolean)],SU.prototype,"modernButtons",void 0);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SU.prototype,"onPanelTap",null);SU=_.f([_.C({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],SU);
_.D(SU,"ytd-primetime-promo-panel-renderer",function(){if(ZiA!==void 0)return ZiA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return ZiA=a},{mode:1});_.Ct(_.xQ(function(a){a=_.Qn(a,{data:{},useFullWidth:!1});var W=a.data,w=a.useFullWidth,Z=function(){return W().caption},N=function(){return W().image},B=function(){return _.rJ(W().onTap)};
a={};a=_.W$("ytTeaserCardViewModelHost",(a.ytTeaserCardViewModelUseFullWidth=function(){return w()},a));
return _.k("teaser-card-view-model",{class:a},_.k(_.Y,{cond:function(){return B()},
then:function(){return _.k(TNe,{className:"ytTeaserCardViewModelLink",command:B,forceNewState:!0,useATagConfig:!0},_.k("div",{class:"ytTeaserCardViewModelImageContainer"},_.k(_.Y,{cond:N,then:function(I){return _.k(_.qw,{data:I,className:"ytTeaserCardViewModelImage",alt:""})}})),_.k("p",{class:"ytTeaserCardViewModelCaption"},Z))}}))},"Ab"),"teaser-card-view-model",{props:{data:_.qR,
useFullWidth:_.qR}});var NB$=new _.yq("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Ct(_.xQ(function(a){var W=a.data;var w=a.showYtInteractionInContent;var Z=function(){return!!W().selectableFeedback};
a=_.l(_.$1(!1,void 0,"nblDw"));var N=a.next().value,B=a.next().value;_.AS(function(){var T=_.A(W().primaryButton,_.iK);(T==null?0:T.isToggled)&&B(T.isToggled)});
a=_.$_(function(T){if(!Z())return!1;if(N()){var p;var h=(p=W().selectableFeedback)==null?void 0:p.onDeselect}else{var L;h=(L=W().selectableFeedback)==null?void 0:L.onSelect}h&&_.cX(h,{form:{element:T.target}});B(!N());if(T=_.A(W().primaryButton,_.iK))T.isToggled=N();return!1});
var I=function(){if(!Z()){var T,p=(T=W().loggingDirectives)==null?void 0:T.trackingParams;p&&_.lM(_.K().resolve(_.Pw),p)}},X=_.q78(),v=function(){var T;
return Z()?(T=W().selectableFeedback)==null?void 0:T.a11yLabel:void 0},U=function(){return Z()?{toggled:N()}:{}},O=_.K().resolve(_.Vv(NB$)),S={};
return _.k("yt-feedback-item-renderer",{class:_.W$("ytFeedbackItemRendererHost",(S.ytFeedbackItemRendererSelectableFeedback=Z,S)),"on:click":a,"on:keydown":X,title:v,"aria-label":v,"aria-pressed":function(){return Z()?N():void 0},
tabindex:function(){return Z()?0:void 0},
role:function(){return Z()?"button":void 0}},_.k("div",{class:"ytFeedbackItemRendererContentContainer"},_.k(_.Ax,{data:function(){return W().content}},{videoRenderer:function(T){return _.k(O,{data:T.data,
showYtInteraction:w})},
lockupViewModel:function(T){return _.k(_.zn,{data:T.data,containerType:2})}})),_.k("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.k(_.Ax,{data:function(){return W().primaryButton}},{toggleButtonViewModel:function(T){return _.k(_.ce,{data:T.data,
buttonShapeOverrides:U,disableExplicitClickLogging:!0,onToggle:I})}})))},"Bb"),"yt-feedback-item-renderer",{props:{data:_.qR,
showYtInteractionInContent:_.qR}});var YE=function(){var a=_.u.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=_.r("web_no_bottom_margin_for_home_ad_buttons");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$13929_unsubscribeFromInlinePreviewIsActive=function(){};
return a};
_.c(YE,_.u);_.t=YE.prototype;_.t.computeContainerType=function(){return this.useCompactList?3:2};
_.t.computeThumbnailTargetWidth=function(){var a;return(a=this.itemWidth)!=null?a:9999};
_.t.updateIsInFirstColumn=function(){var a;this.isInFirstColumn=((a=this.data)==null?void 0:a.colIndex)===0};
_.t.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&&_.r("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.r("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.t.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]]"}}}}}};
_.t.leave=function(a){a=a.relatedTarget;var W=document.querySelector("ytd-video-preview");a&&W&&_.di(W).contains(a)||this.removeAndCleanupHighlight()};
_.t.hover=function(){var a;if(!this.highlighted&&(!_.r("web_enable_rich_item_on_focus_effect")||(a=this.data)!=null&&a.onFocusEffect)){var W,w;((W=this.data)==null?void 0:(w=W.onFocusEffect)==null?void 0:w.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 Z,N;((Z=this.data)==null?void 0:(N=Z.onFocusEffect)==null?void 0:
N.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.t.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};
_.t.registerHoverHighlightListeners=function(){var a=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13929_unsubscribeFromInlinePreviewIsActive=_.oX(_.Cx(),_.ji9,function(W){a.highlighted&&!W&&a.removeAndCleanupHighlight()})};
_.t.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13929_unsubscribeFromInlinePreviewIsActive()};
_.t.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.t.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.t.getBackgroundColor=function(){var a,W,w=(a=this.data)==null?void 0:(W=a.onFocusEffect)==null?void 0:W.onFocusColor;if(w){if(document.documentElement.hasAttribute("dark")&&(w==null?0:w.darkTheme))return _.KC(w==null?void 0:w.darkTheme);if(w==null?0:w.lightTheme)return _.KC(w==null?void 0:w.lightTheme)}};
_.t.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var a=_.nS(),W,w,Z;a&&((W=this.data)==null?0:W.trackingParams)&&((w=this.data)==null?void 0:w.colIndex)!=null&&((Z=this.data)==null?void 0:Z.rowIndex)!=null&&_.u0(a,_.PX(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.t.isSlimMediaRenderer=function(a){return!!_.A(a==null?void 0:a.content,_.zxJ)||!!_.A(a==null?void 0:a.content,Vih)||!!_.A(a==null?void 0:a.content,_.Lz)||!!_.A(a==null?void 0:a.content,U7J)};
_.t.isPostRenderer=function(){var a,W;return!!_.A((a=this.data)==null?void 0:a.content,ZIl)||!!_.A((W=this.data)==null?void 0:W.content,Nm6)};
_.t.computeIsGameCardShelf=function(){var a;return!!_.A((a=this.data)==null?void 0:a.content,Z9J)};
_.t.computeIsMiniGameCardShelf=function(){var a,W;return!!_.A((a=this.data)==null?void 0:a.content,Y1V)||!!_.A((W=this.data)==null?void 0:W.content,TI$)};
_.t.computeIsTeaserCard=function(){var a;return!!_.A((a=this.data)==null?void 0:a.content,TI$)};
_.t.computeIsSelectableFeedbackItem=function(){var a,W;return!((W=_.A((a=this.data)==null?void 0:a.content,_.py6))==null||!W.selectableFeedback)};
_.t.computeContainsLumierePosters=function(){var a,W;return((W=_.A((a=this.data)==null?void 0:a.content,o2_))==null?void 0:W.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.t.computeIsExpandOnHoverCardShelf=function(){var a;return!!_.A((a=this.data)==null?void 0:a.content,g2_)};
_.t.computeIsLinkCardShelf=function(){var a;return!!_.A((a=this.data)==null?void 0:a.content,ONV)};
_.t.computeIsReelItemStyleAvatarCircle=function(a){var W;return((W=_.A(a==null?void 0:a.content,_.Lz))==null?void 0:W.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.t.computeIsLinkCardFullWidth=function(a,W){var w;return((w=_.A(a==null?void 0:a.content,ONV))==null?void 0:w.useFullWidth)||W<=2};
_.dU.Object.defineProperties(YE.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&&_.r("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.r("web_enable_rich_item_on_focus_effect")||_.r("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.r("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.r("web_shorts_2_by_3_lockups_study")||_.r("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
YE.prototype.richGridHoverHighlightChanged=YE.prototype.richGridHoverHighlightChanged;YE.prototype.observerContainerType=YE.prototype.observerContainerType;YE.prototype.updateIsInFirstColumn=YE.prototype.updateIsInFirstColumn;_.f([_.R(_.ij),_.z("design:type",Object)],YE.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],YE.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],YE.prototype,"ytdLockupBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],YE.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.z("design:type",Boolean)],YE.prototype,"isPost",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.z("design:type",Boolean)],YE.prototype,"containsLumierePosters",void 0);_.f([_.b({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.z("design:type",Boolean)],YE.prototype,"isSlimMedia",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.z("design:type",Boolean)],YE.prototype,"isGameCardShelf",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.z("design:type",Boolean)],YE.prototype,"isMiniGameCardShelf",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.z("design:type",Boolean)],YE.prototype,"isTeaserCard",void 0);_.f([_.b({computed:"computeIsSelectableFeedbackItem(data)"}),_.z("design:type",Boolean)],YE.prototype,"isSelectableFeedbackItem",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YE.prototype,"isShortsGrid",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],YE.prototype,"isSlimGrid",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YE.prototype,"isCompactGrid",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YE.prototype,"isShortsPanelGrid",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.z("design:type",Boolean)],YE.prototype,"isExpandOnHoverCardShelf",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.z("design:type",Boolean)],YE.prototype,"isLinkCardShelf",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.AG,value:3}),_.z("design:type",Number)],YE.prototype,"itemsPerRow",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YE.prototype,"renderedFromRichGrid",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YE.prototype,"isInFirstColumn",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YE.prototype,"noGutterMargins",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YE.prototype,"isInlineGroupItem",void 0);_.f([_.b(),_.z("design:type",Object)],YE.prototype,"insetMetadata",void 0);
_.f([_.b(),_.z("design:type",Object)],YE.prototype,"noBottomMarginInAds",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],YE.prototype,"isShelfItem",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.z("design:type",Boolean)],YE.prototype,"isReelItemStyleAvatarCircle",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.z("design:type",Boolean)],YE.prototype,"isLinkCardFullWidth",void 0);
_.f([_.b(),_.z("design:type",Object)],YE.prototype,"force16By9ThumbnailAspectRatio",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YE.prototype,"useCompactList",void 0);_.f([_.b(),_.z("design:type",String)],YE.prototype,"sizing",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],YE.prototype,"typographyBump",void 0);_.f([_.b(),_.z("design:type",Number)],YE.prototype,"itemWidth",void 0);_.f([_.b(),_.z("design:type",Boolean)],YE.prototype,"isHomeShelf",void 0);
_.f([_.b(),_.z("design:type",Boolean)],YE.prototype,"isHomeGrid",void 0);_.f([_.w$("yt-lockup-view-model"),_.z("design:type",HTMLElement)],YE.prototype,"lockup",void 0);_.f([_.w$("ytd-rich-grid-media"),_.z("design:type",HTMLElement)],YE.prototype,"richGridMedia",void 0);_.f([_.w$("ytd-ad-slot-renderer"),_.z("design:type",HTMLElement)],YE.prototype,"adSlotRenderer",void 0);_.f([_.b({computed:"computeContainerType(useCompactList)"}),_.z("design:type",Object)],YE.prototype,"containerType",void 0);
_.f([_.b({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.z("design:type",Object)],YE.prototype,"thumbnailTargetWidth",void 0);_.f([_.Q("showYtInteractionOnRichItem"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],YE.prototype,"showYtInteractionOnRichGridMedia",null);_.f([_.Q("isSelectableFeedbackItem","richGridHoverHighlight"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],YE.prototype,"showYtInteractionOnRichItem",null);
_.f([_.Q("typographyBump","isHomeGrid"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],YE.prototype,"richTypographyBump",null);_.f([_.b({reflectToAttribute:!0}),_.Q("isShortsGrid","isCompactGrid"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],YE.prototype,"richGridHoverHighlight",null);_.f([_.Q("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.z("design:type",Number),_.z("design:paramtypes",[])],YE.prototype,"shortsLockupViewModelAspectRatio",null);
_.f([_.Q("isInlineGroupItem"),_.z("design:type",Number),_.z("design:paramtypes",[])],YE.prototype,"shortsLockupViewModelScrimStyle",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YE.prototype,"updateIsInFirstColumn",null);_.f([_.a5("containerType","sizing","typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YE.prototype,"observerContainerType",null);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YE.prototype,"isResponsiveGrid",void 0);_.f([_.b(),_.z("design:type",Object)],YE.prototype,"lockupExperiments",void 0);_.f([_.a5("richGridHoverHighlight"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YE.prototype,"richGridHoverHighlightChanged",null);YE=_.f([_.C({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],YE);
_.t_$=_.mV()(YE,"ytd-rich-item-renderer",function(){if(DBy===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);DBy=a}a=DBy;return a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var DgC={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var Eu7=_.b8(_.P_("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var $0h;var Ts=function(){var a=_.u.apply(this,arguments)||this;a.useResponsiveGrid=!1;a.hidden=!1;a.standardShelfMargins=_.r("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 W;(W=a.data)!=null&&W.contents&&(a.firstShownIndex+=a.currentElementsPerRow,a.updateHorizontalOffset(),a.updateHorizontalItemVisibility())};
a.previousClick=function(){var W;(W=a.data)!=null&&W.contents&&(a.firstShownIndex-=a.currentElementsPerRow,a.updateHorizontalOffset(),a.updateHorizontalItemVisibility())};
return a};
_.c(Ts,_.u);_.t=Ts.prototype;
_.t.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:_.LF("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.t.attached=function(){this.requestElementsPerRow()};
_.t.refreshGridLayoutNew=function(){var a;if((a=this.data)!=null&&a.contents&&this.containerWidth){var W;((W=this.data.responsiveContainerConfiguration)==null?0:W.responsiveSize)?(a=_.wVv(this.data.responsiveContainerConfiguration,this.containerWidth),a=_.VP(Object.assign({},a,{standardUnitMinWidth:this.standardUnitMinWidth}))):a=_.VP({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,_.Hu(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":a.gutter+"px"})}};
_.t.computeSizing=function(){if(!this.isLumiere){var a=_.$pe(this.data);if(a)return a;if(_.r("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.t.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.t.computeButton=function(a){var W=_.A(a,_.J4);a=Object.assign({},_.A(a,_.J4));return W?(a.text||(a.text={simpleText:a.tooltip}),a.style="STYLE_MONO_OUTLINE",a.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",a):W};
_.t.onRowIndexChange=function(){var a=_.nS(),W,w;((W=this.data)==null?0:W.trackingParams)&&((w=this.data)==null?void 0:w.rowIndex)!=null&&a&&_.u0(a,_.PX(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.t.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var a,W=((a=this.getRichItemRenderers()[0])==null?void 0:a.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*W;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.t.requestElementsPerRow=function(){_.E$(this.hostElement,"yt-request-elements-per-row")};
_.t.onUpdateElementsPerRowAction=function(a,W,w,Z,N,B){if(this.containerWidth!==B&&(this.containerWidth=B,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&a&&W&&w&&Z&&N&&(this.elementsPerRow!==a||this.postsPerRow!==W||this.slimItemsPerRow!==w||this.gameCardsPerRow!==Z||this.miniGameCardsPerRow!==N)&&(this.elementsPerRow=a,this.postsPerRow=W,this.slimItemsPerRow=w,this.gameCardsPerRow=Z,this.miniGameCardsPerRow=N,this.updateItemVisibility())};
_.t.getRichItemRenderers=function(){return _.M(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.t.updateItemVisibility=function(){var a=this;if(this.data&&this.data.contents){var W=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(Z,N){var B;((B=a.data)==null?0:B.isExpanded)?(Z.hidden=N>W-1,Z.ytRendererBehavior.markDirty()):Z.hidden=N>a.currentElementsPerRow-1||N>W-1});
var w=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||w||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||w||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.t.setHeightToSingleRow=function(){var a=this.getRichItemRenderers(),W=Number.parseInt(getComputedStyle(a[0]).marginBottom,10)||0;a=a.slice(0,this.currentElementsPerRow).reduce(function(w,Z){return Math.max(w,Z.getBoundingClientRect().height+W)},0);
this.contents.style.height=a+"px"};
_.t.focusNextExpandedItem=function(){var a;((a=this.data)==null?0:a.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.t.focusItem=function(a,W){var w=this.getRichItemRenderers();if(w[a]&&(a=w[a].querySelector(".focus-on-expand"))){if(W){var Z;(Z=w[this.currentElementsPerRow])==null||Z.scrollIntoView({behavior:"smooth",block:"center"})}a.focus({preventScroll:!0})}};
_.t.onDataChange=function(){var a=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.DW(this,function(){a.updateItemVisibility()});
var W;if((W=this.data)==null?0:W.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Hu(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),W=0;W<this.data.contents.length;W++){var w=_.A(this.data.contents[W],_.iH)||{};w.colIndex=W;w.rowIndex=this.data.rowIndex}};
_.t.handleRerenderDownloadsData=function(){_.r("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())};
_.t.blockInlinePreview=function(a){var W=this,w;return _.P(function(Z){(w=W.inlinePreviewIsEnabled)&&W.ytdReduxBehavior.dispatch(_.WRA(!1));return Z.return(new Promise(function(N){a(function(){w&&W.ytdReduxBehavior.dispatch(_.WRA(!0));N()})}))})};
_.t.expandShelf=function(){var a=this;if(this.data){var W,w=(W=_.A(this.data.showMoreButton,_.J4))==null?void 0:W.trackingParams;w&&_.lM(_.$J(),w);this.data.isExpanded=!0;this.blockInlinePreview(function(Z){a.setHeightToSingleRow();a.updateItemVisibility();a.contents.style.height=a.contents.scrollHeight+"px";_.hF.addJob(function(){a.contents.style.height="auto";a.focusNextExpandedItem();Z()},2,200)})}};
_.t.collapseShelf=function(){var a=this;return _.P(function(W){if(W.nextAddress==1){if(!a.data)return W.return();a.data.isExpanded=!1;return _.g(W,a.blockInlinePreview(function(w){a.contents.style.height=a.contents.scrollHeight+"px";a.setHeightToSingleRow();_.hF.addJob(function(){a.updateItemVisibility();a.contents.style.height="auto";w()},2,200)}),2)}_.E$(a.hostElement,"yt-rich-shelf-renderer-collapse",a.data.trackingParams);
a.focusItem(0,!1);_.Xd(W)})};
_.t.updateArrowButtonStatus=function(){var a=this.getRichItemRenderers().length;if(!_.r("web_rich_shelf_renderer_use_data_contents_killswitch")){var W,w;a=((W=this.data)==null?void 0:(w=W.contents)==null?void 0:w.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=a};
_.t.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())))};
_.t.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.LF("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.t.updateHorizontalOffset=function(){var a=this.getRichItemRenderers(),W=a.length;if(!_.r("web_rich_shelf_renderer_use_data_contents_killswitch")){var w,Z;W=((w=this.data)==null?void 0:(Z=w.contents)==null?void 0:Z.length)||0}var N;a=((N=a[0])==null?void 0:N.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>W?this.firstShownIndex=W-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*a};
_.t.isSlimMediaShelfRenderer=function(){var a,W,w,Z=(w=_.A((a=this.data)==null?void 0:(W=a.contents)==null?void 0:W[0],_.iH))==null?void 0:w.content;return!!(_.A(Z,_.zxJ)||_.A(Z,Vih)||_.A(Z,_.Lz)||_.A(Z,U7J))};
_.t.isGameCardShelf=function(){var a,W,w,Z=(w=_.A((a=this.data)==null?void 0:(W=a.contents)==null?void 0:W[0],_.iH))==null?void 0:w.content;return!!_.A(Z,Z9J)};
_.t.isGnomeShelf=function(){var a,W,w,Z=(w=_.A((a=this.data)==null?void 0:(W=a.contents)==null?void 0:W[0],_.iH))==null?void 0:w.content;return!!_.A(Z,_.py6)};
_.t.isMiniGameCardShelf=function(){var a,W,w,Z=(w=_.A((a=this.data)==null?void 0:(W=a.contents)==null?void 0:W[0],_.iH))==null?void 0:w.content;return!!_.A(Z,Y1V)||!!_.A(Z,TI$)};
_.t.hasGameBoxArtAvatarStyle=function(){var a;return((a=this.data)==null?void 0:a.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.t.hasRoundedGameBoxArtAvatarStyle=function(){var a;return((a=this.data)==null?void 0:a.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.t.isShortsShelf=function(){var a,W,w,Z=(w=_.A((a=this.data)==null?void 0:(W=a.contents)==null?void 0:W[0],_.iH))==null?void 0:w.content;return!!_.A(Z,_.Lz)||!!_.A(Z,U7J)};
_.t.isPostShelfRenderer=function(){var a,W,w,Z=(w=_.A((a=this.data)==null?void 0:(W=a.contents)==null?void 0:W[0],_.iH))==null?void 0:w.content;return!(!_.A(Z,ZIl)&&!_.A(Z,Nm6))};
_.t.isLumiereShelf=function(){var a,W,w=_.A((a=this.data)==null?void 0:(W=a.contents)==null?void 0:W[0],_.iH);return!!_.A(w==null?void 0:w.content,o2_)};
_.t.isLumiereShelfWithPosters=function(){var a,W,w=_.A((a=this.data)==null?void 0:(W=a.contents)==null?void 0:W[0],_.iH),Z;return((Z=_.A(w==null?void 0:w.content,o2_))==null?void 0:Z.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.t.isExpandOnHoverCardShelf=function(){var a,W,w,Z=(w=_.A((a=this.data)==null?void 0:(W=a.contents)==null?void 0:W[0],_.iH))==null?void 0:w.content;return!!_.A(Z,g2_)};
_.t.computeHasFeaturedBadge=function(){var a,W,w=_.A((a=this.data)==null?void 0:(W=a.badges)==null?void 0:W[0],_.Ksh);return w?w.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.t.computeHasPaygatedFeaturedBadge=function(){var a,W,w=_.A((a=this.data)==null?void 0:(W=a.badges)==null?void 0:W[0],_.Ksh);return w?(w==null?void 0:w.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.t.computeHeaderHidden=function(){var a,W,w,Z,N,B;return!((a=this.data)==null?0:a.icon)&&!((W=this.data)==null?0:W.title)&&!((w=this.data)==null?0:w.subtitle)&&!((Z=this.data)==null?0:Z.thumbnail)&&!((N=this.data)==null?0:N.badges)&&!((B=this.data)==null?0:B.menu)};
_.t.showCtaButton=function(){var a;return!((a=this.data)==null||!a.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.t.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.t.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.t.computeForce16By9ThumbnailAspectRatio=function(){var a,W;return((a=this.data)==null?void 0:(W=a.responsiveContainerConfiguration)==null?void 0:W.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.t.onSectionReactiveDismissal=function(a,W,w){var Z,N;var B=(Z=this.data)==null?void 0:(N=Z.targetingContext)==null?void 0:N.targetGroupId;this&&B&&W.targetGroupId&&B.includes(W.targetGroupId)?(Z=this.rowIndex,a=Z===void 0?!1:!(W.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Z<=a)):a=!1;a&&(this.hidden=w)};
_.dU.Object.defineProperties(Ts.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()&&_.r("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,W;return!((a=this.data)==null||!a.previousButton)&&!((W=this.data)==null||!W.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=_.K().resolve(_.Gw).getCurrentPage())==null?void 0:a.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z;return!((a=this.data)==null?0:(W=a.thumbnail)==null?0:(w=W.accessibility)==null?0:(Z=w.accessibilityData)==null?0:Z.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}}});
Ts.prototype.onChildElementFocus=Ts.prototype.onChildElementFocus;Ts.prototype.handleRerenderDownloadsData=Ts.prototype.handleRerenderDownloadsData;Ts.prototype.onDataChange=Ts.prototype.onDataChange;Ts.prototype.onRowIndexChange=Ts.prototype.onRowIndexChange;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.eN),_.z("design:type",Object)],Ts.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Ts.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Ts.prototype,"ytdReduxBehavior",void 0);_.f([_.b({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.z("design:type",Object)],Ts.prototype,"useResponsiveGrid",void 0);_.f([_.b(),_.z("design:type",Object)],Ts.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Number)],Ts.prototype,"standardUnitMinWidth",void 0);_.f([_.b({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],Ts.prototype,"elementsPerRow",void 0);_.f([_.b({value:3}),_.z("design:type",Number)],Ts.prototype,"postsPerRow",void 0);_.f([_.b({value:6}),_.z("design:type",Number)],Ts.prototype,"slimItemsPerRow",void 0);_.f([_.b({value:6}),_.z("design:type",Number)],Ts.prototype,"gameCardsPerRow",void 0);
_.f([_.b({value:6}),_.z("design:type",Number)],Ts.prototype,"miniGameCardsPerRow",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ts.prototype,"hidden",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ts.prototype,"standardShelfMargins",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ts.prototype,"isShowMoreHidden",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ts.prototype,"isExpanded",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ts.prototype,"isInnerShelf",void 0);_.f([_.b({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.z("design:type",Boolean)],Ts.prototype,"isShorts",void 0);_.f([_.b({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.z("design:type",Boolean)],Ts.prototype,"isLumiere",void 0);_.f([_.b({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.z("design:type",Boolean)],Ts.prototype,"hasBoxArtThumbnailStyle",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.z("design:type",Boolean)],Ts.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.z("design:type",Boolean)],Ts.prototype,"hasFeaturedBadge",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.z("design:type",Boolean)],Ts.prototype,"hasPaygatedFeaturedBadge",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.z("design:type",Boolean)],Ts.prototype,"isHeaderHidden",void 0);_.f([_.b({selector:_.QiI}),_.z("design:type",Object)],Ts.prototype,"allVideosCount",void 0);_.f([_.b({selector:W2S}),_.z("design:type",Object)],Ts.prototype,"allPlaylistCount",void 0);_.f([_.b({selector:ma9}),_.z("design:type",Object)],Ts.prototype,"haveSmartDownloadsCompleted",void 0);
_.f([_.b({selectorArgs:["entitySelectorType"],selector:function(a,W){if(_.r("kevlar_modern_downloads_page")&&W&&W!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var w=a.entities;switch(W){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":W=_.TC(w);a=iL(W);var Z=_.kp(W);w=_.px(w);w=_.zG(dgS(Z,w,W.length));return{contents:a,subtitle:w};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return w=_.TC(w),{contents:iL(w)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return w=
_.Kx(w),{contents:iL(w)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return w=_.kzm(w),{contents:iL(w)};default:_.jJ(new _.Uw("Error: entitySelectorType defined but not matched in selector.",a,W))}}}}),
_.z("design:type",Object)],Ts.prototype,"entityDrivenRichShelfData",void 0);_.f([_.b({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.z("design:type",Boolean)],Ts.prototype,"hasTopCtaButton",void 0);_.f([_.b({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.z("design:type",Boolean)],Ts.prototype,"hasBottomCtaButton",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.z("design:type",Boolean)],Ts.prototype,"force16By9ThumbnailAspectRatio",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ts.prototype,"isShowLessHidden",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ts.prototype,"restrictContentsOverflow",void 0);_.f([_.b({selector:_.LFH}),_.z("design:type",Boolean)],Ts.prototype,"inlinePreviewIsEnabled",void 0);
_.f([_.b({computed:"computeSizing(data)"}),_.z("design:type",String)],Ts.prototype,"sizing",void 0);_.f([_.b(),_.z("design:type",Boolean)],Ts.prototype,"typographyBump",void 0);_.f([_.b(),_.z("design:type",Number)],Ts.prototype,"itemWidth",void 0);_.f([_.b(),_.z("design:type",Object)],Ts.prototype,"firstShownIndex",void 0);_.f([_.b(),_.z("design:type",Object)],Ts.prototype,"horizontalOffset",void 0);_.f([_.b(),_.z("design:type",Object)],Ts.prototype,"atEnd",void 0);
_.f([_.w$("#contents"),_.z("design:type",HTMLElement)],Ts.prototype,"contents",void 0);_.f([_.a5("data.rowIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ts.prototype,"onRowIndexChange",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ts.prototype,"onDataChange",null);
_.f([_.a5("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ts.prototype,"handleRerenderDownloadsData",null);_.f([_.E6("focusin"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Ts.prototype,"onChildElementFocus",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data","isHomePage"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ts.prototype,"isTruncated",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ts.prototype,"hideBottomDivider",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ts.prototype,"hasChevronButtons",null);_.f([_.Q("firstShownIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ts.prototype,"previousButtonOverride",null);
_.f([_.Q("atEnd"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ts.prototype,"nextButtonOverride",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ts.prototype,"isHomePage",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ts.prototype,"thumbnailAriaHidden",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ts.prototype,"initiallyIsExpanded",null);
_.f([_.Q("data"),_.z("design:type",String),_.z("design:paramtypes",[])],Ts.prototype,"entitySelectorType",null);Ts=_.f([_.C({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Ts);
_.BB6=_.mV()(Ts,"ytd-rich-shelf-renderer",function(){if($0h===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);$0h=a}a=$0h;return a},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var lMV;_.Ct(xzT,"yt-slimline-survey-view-model",{props:{data:_.qR}});var KR=function(){var a=_.u.apply(this,arguments)||this;a.tileLottieAnimationRef={};a.backgroundLottieAnimationRef={};a.isOnHoverBehaviorForLottieEnabled=!0;a.useBiggerShowcaseImage=_.r("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};
_.c(KR,_.u);_.t=KR.prototype;_.t.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.t.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.t.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()}};
_.t.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.t.currentColorChanged=function(){this.updateButtonPalette()};
_.t.computeBackgroundStyle=function(a){if(a&&this.data){var W=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var w=_.Dg((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);w&&W.push('background-image: url("'+w+'");')}var Z;((Z=a.basicColorData)==null?void 0:Z.backgroundColor)!==void 0&&W.push("background-color: "+_.pC(a.basicColorData.backgroundColor)+";");return W.join("")}};
_.t.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a)};
_.t.getCurrentLogo=function(a,W){if(a)return W?a.darkLogoImage:a.lightLogoImage};
_.t.getCurrentStaticTileImage=function(a,W){if(this.hasStaticTile(a))return a.darkTileImage?W?a.darkTileImage:a.tileImage:a.tileImage};
_.t.computeTitleStyle=function(a){if(this.data&&this.data.title&&a&&a.basicColorData&&a.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.KC(a.basicColorData.foregroundTitleColor)+";"};
_.t.computeSubtitleStyle=function(a){if(this.data&&this.data.subtitle&&a&&a.basicColorData&&a.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.KC(a.basicColorData.foregroundBodyColor)+";"};
_.t.computeSupplementalStyle=function(a){if(this.data&&this.data.supplementalText&&a&&a.supplementalTextColor!==void 0)return a=_.KC(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;"};
_.t.computeBadgeStyle=function(a){if(this.data&&this.data.badgeText&&a&&a.basicColorData&&a.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.KC(a.basicColorData.foregroundActivatedColor)+";"};
_.t.computeDismissIconStyle=function(a){var W,w;if((a==null?0:(W=a.dismissButtonColorData)==null?0:W.foregroundTitleColor)&&(a==null?0:(w=a.dismissButtonColorData)==null?0:w.backgroundColor))return"--yt-button-color:"+_.pC(a.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.pC(a.dismissButtonColorData.backgroundColor)+";"};
_.t.computeOverflowIconStyle=function(a){var W,w;if((a==null?0:(W=a.dismissButtonColorData)==null?0:W.foregroundTitleColor)&&(a==null?0:(w=a.dismissButtonColorData)==null?0:w.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.pC(a.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.pC(a.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.pC(a.dismissButtonColorData.foregroundTitleColor)+";"};
_.t.computeBannerStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.t.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"}};
_.t.shouldShowTileSection=function(a,W,w){return!this.shouldExpandLogo(a,W,w)&&W};
_.t.shouldShowExpandedLogoSection=function(a,W,w){return this.shouldExpandLogo(a,W,w)&&a!==void 0&&this.hasLogo(a)};
_.t.shouldExpandLogo=function(a,W,w){return a&&W?!1:w>=2};
_.t.hasStaticTile=function(a){return!(a==null||!a.tileImage)};
_.t.hasTileLottie=function(a){var W;return!!(a==null?0:(W=a.tileLottie)==null?0:W.url)};
_.t.hasLogo=function(a){return this.getCurrentLogo(a,this.isDarkTheme)!==void 0};
_.t.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"};
_.t.getExpandedLogoHeight=function(a){return this.logoWithPadding(a)?"31":"24"};
_.t.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"};
_.t.hasBackgroundLottie=function(a){var W;return!!(a==null?0:(W=a.backgroundLottie)==null?0:W.url)};
_.t.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var a,W;(a=this.tileLottieAnimationRef)==null||(W=a.lottieEl)==null||W.play();var w,Z;(w=this.backgroundLottieAnimationRef)==null||(Z=w.lottieEl)==null||Z.play()}};
_.t.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var a,W;(a=this.tileLottieAnimationRef)==null||(W=a.lottieEl)==null||W.pause();var w,Z;(w=this.backgroundLottieAnimationRef)==null||(Z=w.lottieEl)==null||Z.pause()}};
_.t.pauseLottie=function(){var a,W;(a=this.tileLottieAnimationRef)==null||(W=a.lottieEl)==null||W.pause();var w,Z;(w=this.backgroundLottieAnimationRef)==null||(Z=w.lottieEl)==null||Z.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.t.performPrimaryButtonAction=function(){var a,W,w;((a=this.data)==null?0:(W=a.primaryButton)==null?0:(w=W.buttonRenderer)==null?0:w.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.t.requestElementsPerRow=function(){_.E$(this.hostElement,"yt-request-elements-per-row")};
_.t.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 W;if((W=this.data.primaryButton)==null?0:W.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 w;if((w=this.data.secondaryButton)==
null?0:w.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 Z;((Z=this.data.primaryButton)==null?0:Z.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var N;((N=this.data.secondaryButton)==null?0:N.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.t.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var a=this.getTileLottieDataBasedOnTheme(),W,w;if(a.url!==((W=this.tileLottiePlayerProps)==null?void 0:(w=W.animationConfig)==null?void 0:w.path)){var Z,N;(Z=this.tileLottieAnimationRef)==null||(N=Z.lottieEl)==null||N.destroy();var B;this.isOnHoverBehaviorForLottieEnabled=!((B=a.settings)==null?0:B.autoplay);var I,X;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(X=(I=a.settings)==null?void 0:I.autoplay)!=null?X:!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}}};
_.t.getOverflowButton=function(a){return _.A(a.overflowButton,K6$)};
_.t.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var a=this.getBackgroundLottieDataBasedOnTheme(),W,w;if(a.url!==((W=this.backgroundLottiePlayerProps)==null?void 0:(w=W.animationConfig)==null?void 0:w.path)){var Z,N;(Z=this.backgroundLottieAnimationRef)==null||(N=Z.lottieEl)==null||N.destroy();var B;this.isOnHoverBehaviorForLottieEnabled=!((B=a.settings)==null?0:B.autoplay);var I,X;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(X=(I=a.settings)==null?void 0:I.autoplay)!=null?X:!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}}};
_.t.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var a;((a=this.tileLottieAnimationRef)==null?void 0:a.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var W;((W=this.backgroundLottieAnimationRef)==null?void 0:W.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.t.getTileLottieDataBasedOnTheme=function(){var a;if(this.isDarkTheme&&((a=this.data)==null?0:a.darkThemeTileLottie))return this.data.darkThemeTileLottie;var W;return((W=this.data)==null?0:W.tileLottie)?this.data.tileLottie:{}};
_.t.getBackgroundLottieDataBasedOnTheme=function(){var a;if(this.isDarkTheme&&((a=this.data)==null?0:a.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var W;return((W=this.data)==null?0:W.backgroundLottie)?this.data.backgroundLottie:{}};
_.t.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
_.t.getLottieLoopValue=function(a){return a?a.loop!==void 0?a.loop:a.loopCount?a.loopCount-1:!0:!0};
_.t.logoWithPadding=function(a){var W,w,Z;return(a=(W=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(w=W.thumbnails)==null?void 0:(Z=w[0])==null?void 0:Z.height)&&a%31===0?!0:!1};
KR.prototype.currentColorChanged=KR.prototype.currentColorChanged;KR.prototype.themeChanged=KR.prototype.themeChanged;KR.prototype.dataChanged=KR.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],KR.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],KR.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],KR.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],KR.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],KR.prototype,"primaryButton",void 0);_.f([_.b(),_.z("design:type",Object)],KR.prototype,"secondaryButton",void 0);
_.f([_.b({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],KR.prototype,"elementsPerRow",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],KR.prototype,"isDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],KR.prototype,"hasTile",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],KR.prototype,"hasMetadata",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],KR.prototype,"showLogoImage",void 0);_.f([_.b(),_.z("design:type",Object)],KR.prototype,"currentColorData",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.z("design:type",String)],KR.prototype,"bannerStyle",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.z("design:type",String)],KR.prototype,"location",void 0);
_.f([_.b(),_.z("design:type",Object)],KR.prototype,"tileLottiePlayerProps",void 0);_.f([_.b(),_.z("design:type",Object)],KR.prototype,"tileLottieAnimationRef",void 0);_.f([_.b(),_.z("design:type",Object)],KR.prototype,"backgroundLottiePlayerProps",void 0);_.f([_.b(),_.z("design:type",Object)],KR.prototype,"backgroundLottieAnimationRef",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],KR.prototype,"useBiggerShowcaseImage",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],KR.prototype,"isHideEnclosingAction",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KR.prototype,"dataChanged",null);_.f([_.lO("isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KR.prototype,"themeChanged",null);
_.f([_.lO("currentColorData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KR.prototype,"currentColorChanged",null);KR=_.f([_.C({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],KR);
_.D(KR,"ytd-statement-banner-renderer",function(){if(lMV!==void 0)return lMV;var a=document.createElement("template");_.n(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="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);return lMV=a},{mode:1});var IMR;var pR=function(){var a=_.u.apply(this,arguments)||this;a.isSearch=!1;a.hideShelfHeader=!1;a.engagementPanel=!1;a.disableMouseScroll=!0;a.useFloorScrolling=!0;a.modernTypography=_.r("web_modern_typography");return a};
_.c(pR,_.u);pR.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.P_("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.P_("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
pR.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
pR.prototype.onDataChanged=pR.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],pR.prototype,"isSearch",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pR.prototype,"hideShelfHeader",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pR.prototype,"engagementPanel",void 0);_.f([_.b(),_.z("design:type",Object)],pR.prototype,"disableMouseScroll",void 0);_.f([_.b(),_.z("design:type",Object)],pR.prototype,"useFloorScrolling",void 0);_.f([_.b(),_.z("design:type",Object)],pR.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pR.prototype,"modernTypography",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pR.prototype,"onDataChanged",null);pR=_.f([_.C({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],pR);
_.D(pR,"ytd-reel-shelf-renderer",function(){if(IMR!==void 0)return IMR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return IMR=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var PsH;var XqR=_.xQ(function(a){var W=a.data;a=a.useSmallFont;var w={},Z={};return _.k("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.k(_.Y,{cond:function(){return W().favicon},
then:function(N){return _.k(_.qw,{data:N,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.k("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.k(_.k_,{text:function(){return W().title},
className:_.W$("yt-channel-external-link-view-model-wiz__title",(w["yt-channel-external-link-view-model-wiz__title--title-small-font"]=a,w)),ellipsisTruncate:!0,userInput:!0}),_.k(_.k_,{text:function(){return W().link},
className:_.W$("yt-channel-external-link-view-model-wiz__link",(Z["yt-channel-external-link-view-model-wiz__link--link-small-font"]=a,Z)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Cb");
XqR.idomCompat=!0;_.Ct(XqR,"yt-channel-external-link-view-model",{props:{data:_.qR,useSmallFont:_.qR}});_.pA("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var rZ=function(){var a=_.u.apply(this,arguments)||this;a.revealButtonClass="button";a.businessEmailDisplayState="HIDE_SECTION";return a};
_.c(rZ,_.u);_.t=rZ.prototype;_.t.refit=function(){var a=this;_.cA(function(){_.W_(a.hostElement,"yt-refit-popups-action")});
_.DW(this,function(){_.W_(a.hostElement,"yt-refit-popups-action")})};
_.t.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.MM("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.t.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"};
_.t.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.t.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"}}}};
_.t.computeEmailHref=function(a){return"mailto:"+a};
_.t.computeSafeUrl=function(a){if(a)return _.SB(a)};
_.t.linkEndpoint=function(a){return _.A(a.onTap,_.pt)};
_.t.linkEndpointToHref=function(a){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(a))};
_.t.onYtServiceRequestCompleted=function(a){var W;if((W=a.detail.data)==null?0:W.businessEmail)this.businessEmail=a.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var w;if((w=a.detail.data)==null?0:w.errorMessage)this.businessEmailErrorMessage=a.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.t.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var a=this.JSC$14032_captchaTextarea.value;if(a){a={recaptcha_response_token:a,channel_id:this.metadata.channelId};var W=_.A(this.metadata.onBusinessEmailRevealClickCommand,_.pt);W&&this.ytComponentBehavior.resolveCommand(W,{form:a})}}};
_.t.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.dU.Object.defineProperties(rZ.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var a;return _.A((a=this.data)==null?void 0:a.metadata,SMJ)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.A(this.metadata.businessEmailRevealButton,_.hx)}},
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 _.A(this.metadata.learnMoreOnTap,_.pt)}}});
rZ.prototype.onYtServiceRequestCompleted=rZ.prototype.onYtServiceRequestCompleted;rZ.prototype.businessEmailMetadataChanged=rZ.prototype.businessEmailMetadataChanged;rZ.prototype.refit=rZ.prototype.refit;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],rZ.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.w$("#g-recaptcha-response"),_.z("design:type",HTMLTextAreaElement)],rZ.prototype,"JSC$14032_captchaTextarea",void 0);_.f([_.b(),_.z("design:type",Object)],rZ.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],rZ.prototype,"revealButtonClass",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],rZ.prototype,"metadata",null);
_.f([_.Q("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],rZ.prototype,"revealButton",null);_.f([_.Q("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],rZ.prototype,"channelDisplayUrl",null);_.f([_.lO("metadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rZ.prototype,"refit",null);_.f([_.Q("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],rZ.prototype,"formattedDescription",null);
_.f([_.Q("metadata","learnMoreCommand"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],rZ.prototype,"shouldRendereVerifiedPhoneStatus",null);_.f([_.Q("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],rZ.prototype,"learnMoreCommand",null);_.f([_.b(),_.z("design:type",String)],rZ.prototype,"businessEmailDisplayState",void 0);_.f([_.b(),_.z("design:type",String)],rZ.prototype,"businessEmail",void 0);
_.f([_.b(),_.z("design:type",String)],rZ.prototype,"businessEmailErrorMessage",void 0);_.f([_.lO("metadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rZ.prototype,"businessEmailMetadataChanged",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],rZ.prototype,"onYtServiceRequestCompleted",null);
rZ=_.f([_.C({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],rZ);
_.D(rZ,"ytd-about-channel-renderer",function(){if(PsH!==void 0)return PsH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return PsH=a},{mode:1});var vkR;var AC=function(){return _.u.apply(this,arguments)||this};
_.c(AC,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],AC.prototype,"data",void 0);AC=_.f([_.C({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],AC);
_.D(AC,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(vkR!==void 0)return vkR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return vkR=a},{mode:1});var gkH;var hC=function(){return _.u.apply(this,arguments)||this};
_.c(hC,_.u);hC.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],hC.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],hC.prototype,"aligment",void 0);hC=_.f([_.C({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],hC);
_.D(hC,"ytd-channel-list-sub-menu-renderer",function(){if(gkH!==void 0)return gkH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return gkH=
a},{mode:1});var okR;var il=function(){return _.u.apply(this,arguments)||this};
_.c(il,_.u);il.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}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],il.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],il.prototype,"data",void 0);il=_.f([_.C({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],il);
_.D(il,"ytd-channel-sub-menu-renderer",function(){if(okR!==void 0)return okR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return okR=a},{mode:1});var kyV;var U0l;var cK=function(){var a=_.u.apply(this,arguments)||this;a.isCompact=!1;return a};
_.c(cK,_.u);_.dU.Object.defineProperties(cK.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var a,W;return((W=_.A((a=this.data)==null?void 0:a.endpoint,_.ba))==null?void 0:W.target)==="TARGET_NEW_WINDOW"}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],cK.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],cK.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],cK.prototype,"isCompact",void 0);_.f([_.Q("isCompact"),_.z("design:type",Number),_.z("design:paramtypes",[])],cK.prototype,"thumbnailWidth",null);
_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],cK.prototype,"openNewWindow",null);cK=_.f([_.C({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],cK);
_.D(cK,"ytd-media-lockup-renderer",function(){if(U0l!==void 0)return U0l;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return U0l=a},{mode:1});var OiA;var eU=function(){return _.u.apply(this,arguments)||this};
_.c(eU,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],eU.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],eU.prototype,"data",void 0);eU=_.f([_.C({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],eU);
_.D(eU,"ytd-structured-description-channel-lockup-renderer",function(){if(OiA!==void 0)return OiA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return OiA=a},{mode:1});var SUe;var nR=function(){var a=_.u.apply(this,arguments)||this;a.isCompact=!1;a.collections=_.r("web_modern_collections_v2");a.collectionsStackColor=_.r("modernize_structured_description_playlist_lockups_v2");return a};
_.c(nR,_.u);nR.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:_.r("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.dU.Object.defineProperties(nR.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,W,w,Z,N,B;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(a=this.data)==null?void 0:(W=a.thumbnail)==null?void 0:W.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(w=this.data)==null?void 0:(Z=w.thumbnail)==null?void 0:Z.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(N=this.data)==null?void 0:(B=N.thumbnail)==
null?void 0:B.vibrantColorPalette:void 0}}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],nR.prototype,"componentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],nR.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],nR.prototype,"showSidePanelThumbnailOverlay",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nR.prototype,"isCompact",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],nR.prototype,"collections",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nR.prototype,"collectionsStackColor",void 0);_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],nR.prototype,"twoLineTitle",null);
_.f([_.Q("data","collections","collectionsStackColor"),_.z("design:type",Object),_.z("design:paramtypes",[])],nR.prototype,"collectionStack",null);nR=_.f([_.C({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],nR);
_.D(nR,"ytd-structured-description-playlist-lockup-renderer",function(){if(SUe!==void 0)return SUe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return SUe=a},{mode:1});var YU_;var jU=function(){return _.u.apply(this,arguments)||this};
_.c(jU,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],jU.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],jU.prototype,"data",void 0);jU=_.f([_.C({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],jU);
_.D(jU,"ytd-structured-description-video-lockup-renderer",function(){if(YU_!==void 0)return YU_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return YU_=a},{mode:2});var LR=function(){return _.u.apply(this,arguments)||this};
_.c(LR,_.u);
LR.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}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],LR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],LR.prototype,"data",void 0);LR=_.f([_.C({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],LR);
_.D(LR,"ytd-compact-infocard-renderer",function(){if(kyV!==void 0)return kyV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return kyV=a},{mode:1});var TBA;var JC=function(){var a=_.u.apply(this,arguments)||this;a.useModernCollectionsV2=_.r("web_modern_collections_v2");return a};
_.c(JC,_.u);JC.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.dU.Object.defineProperties(JC.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],JC.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],JC.prototype,"ytdReduxBehavior",void 0);_.f([_.b({selector:_.RL}),_.z("design:type",Object)],JC.prototype,"isGridViewEnabled",void 0);
_.f([_.Q("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JC.prototype,"watchFeedBigThumbs",null);_.f([_.Q("isGridViewEnabled","data"),_.b({reflectToAttribute:!0,value:"168"}),_.z("design:type",String),_.z("design:paramtypes",[])],JC.prototype,"thumbnailWidth",null);_.f([_.Q("isGridViewEnabled","data"),_.b({reflectToAttribute:!0,value:"94"}),_.z("design:type",String),_.z("design:paramtypes",[])],JC.prototype,"customThumbnailSize",null);
_.f([_.b(),_.z("design:type",Object)],JC.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],JC.prototype,"useModernCollectionsV2",void 0);JC=_.f([_.C({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],JC);
_.D(JC,"ytd-compact-playlist-renderer",function(){if(TBA!==void 0)return TBA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return TBA=a},{mode:1});var KLl;var FV=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");a.roundedContainer=!0;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return a};
_.c(FV,_.u);_.t=FV.prototype;_.t.attached=function(){this.requestElementsPerRow()};
_.t.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"}}}};
_.t.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.t.computeViewStyle=function(a){return a.style?a.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.t.onUpdateElementsPerRowAction=function(a){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&a===1};
_.t.requestElementsPerRow=function(){_.E$(this.hostElement,"yt-request-elements-per-row")};
FV.prototype.dataChanged=FV.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],FV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],FV.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],FV.prototype,"actionHandlerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],FV.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],FV.prototype,"hideThumbnail",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.z("design:type",String)],FV.prototype,"viewStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],FV.prototype,"darkerDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],FV.prototype,"roundedContainer",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FV.prototype,"dataChanged",null);FV=_.f([_.C({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],FV);
_.D(FV,"ytd-compact-promoted-item-renderer",function(){if(KLl!==void 0)return KLl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return KLl=a},{mode:1});var pq6;var Mh=function(){var a=_.u.apply(this,arguments)||this;a.collections=_.r("web_modern_collections_v2");return a};
_.c(Mh,_.u);Mh.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Mh.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Mh.prototype.onYtNavigate=function(a,W){var w=this;if(W.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",W)){var Z=this.get("watchEndpoint.videoId",W.endpoint),N=_.W_(this.hostElement,"yt-get-current-video-id-action")[0];_.r("kevlar_mix_handle_first_endpoint_different")&&Z&&N&&Z!==N||(a.stopPropagation(),_.d2().getPlayerPromise().then(function(B){if(B.getPlayerState()===0&&w.data.secondaryNavigationEndpoint)var I=w.data.secondaryNavigationEndpoint;else{I=
Object.assign({},W.endpoint);var X=_.A(I.commandMetadata,_.mm);X&&(B=Math.floor(B.getCurrentTime()),X.url=_.CF(X.url,{t:B}),!_.r("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(X=_.A(I,_.u6)))&&(X.startTimeSeconds=B)}_.E$(w.hostElement,"yt-navigate",{endpoint:I})}))}};
_.dU.Object.defineProperties(Mh.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z,N,B;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(W=a.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(w=this.data)==null?void 0:(Z=w.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(N=this.data)==null?void 0:(B=N.thumbnail)==null?void 0:B.darkColorPalette,experimentEnabled:this.collections}}}});
Mh.prototype.onYtNavigate=Mh.prototype.onYtNavigate;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.wn.YtEndpointBehavior),_.z("design:type",Object)],Mh.prototype,"ytEndpointBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Mh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],Mh.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.R(_.qv),_.z("design:type",Object)],Mh.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Mh.prototype,"ytdReduxBehavior",void 0);_.f([_.b({selector:_.RL}),_.z("design:type",Object)],Mh.prototype,"isGridViewEnabled",void 0);_.f([_.Q("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Mh.prototype,"watchFeedBigThumbs",null);
_.f([_.Q("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],Mh.prototype,"thumbnailWidth",null);_.f([_.b(),_.z("design:type",Object)],Mh.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Mh.prototype,"collections",void 0);_.f([_.Q("data","collections"),_.z("design:type",Object),_.z("design:paramtypes",[])],Mh.prototype,"collectionStack",null);
_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Mh.prototype,"onYtNavigate",null);Mh=_.f([_.C({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Mh);
_.D(Mh,"ytd-compact-radio-renderer",function(){if(pq6!==void 0)return pq6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return pq6=a},{mode:1});var rgV;var R8=function(){return _.u.apply(this,arguments)||this};
_.c(R8,_.u);R8.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
R8.prototype.computeRendererStyle=function(a){return a.style?a.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.f([_.b(),_.z("design:type",Object)],R8.prototype,"data",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],R8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],R8.prototype,"rendererBehavior",void 0);_.f([_.b({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],R8.prototype,"rendererStyle",void 0);
R8=_.f([_.C({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],R8);
_.D(R8,"ytd-compact-text-promo-renderer",function(){if(rgV!==void 0)return rgV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return rgV=a},{mode:1});var Age;var qh=function(){var a=_.u.apply(this,arguments)||this;a.isShortsStyle=!1;return a};
_.c(qh,_.u);_.t=qh.prototype;_.t.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"}}}};
_.t.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.E$(this.hostElement,"yt-disable-lockup-interaction"):_.E$(this.hostElement,"yt-enable-lockup-interaction"))};
_.t.isMetaBlockEmpty=function(a){return!a||!a.longBylineText&&!a.shortBylineText&&!a.shortViewCountText&&!a.viewCountText};
_.t.computeHasOneLineTitle=function(a){return this.forceOneLineTitle||!(a==null||!a.buttons)};
_.t.computeDisableInteraction=function(){var a;return!((a=this.data)==null?0:a.navigationEndpoint)};
_.t.hasSingularTopStandaloneBadge=function(){var a;return!((a=this.data)==null||!a.topStandaloneBadge)};
_.dU.Object.defineProperties(qh.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("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":""}}});
qh.prototype.disableInteractionChanged=qh.prototype.disableInteractionChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],qh.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],qh.prototype,"ytdLockupBehavior",void 0);
_.f([_.R(_.ij),_.z("design:type",Object)],qh.prototype,"ytdReduxBehavior",void 0);_.f([_.b({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.z("design:type",Boolean)],qh.prototype,"metaBlockEmpty",void 0);_.f([_.b({selector:_.RL}),_.z("design:type",Object)],qh.prototype,"isGridViewEnabled",void 0);_.f([_.Q("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qh.prototype,"watchFeedBigThumbs",null);
_.f([_.Q("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],qh.prototype,"thumbnailWidth",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qh.prototype,"isShortsStyle",void 0);_.f([_.b(),_.z("design:type",Object)],qh.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.z("design:type",Boolean)],qh.prototype,"hasOneLineTitle",void 0);
_.f([_.b(),_.z("design:type",Boolean)],qh.prototype,"hideThumbnail",void 0);_.f([_.b(),_.z("design:type",Boolean)],qh.prototype,"forceOneLineTitle",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.z("design:type",Boolean)],qh.prototype,"disableInteraction",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],qh.prototype,"musicMetadataVideoLockup",void 0);
_.f([_.a5("disableInteraction"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qh.prototype,"disableInteractionChanged",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qh.prototype,"shouldShowTopBadges",null);_.f([_.Q("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],qh.prototype,"topBadges",null);
_.f([_.Q("shouldShowTopBadges","data"),_.z("design:type",Array),_.z("design:paramtypes",[])],qh.prototype,"inlineMetadataBadges",null);_.f([_.Q("shouldShowTopBadges"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qh.prototype,"shouldShowBadgesBelowMetadata",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],qh.prototype,"compactTitleClass",null);qh=_.f([_.C({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],qh);
_.D(qh,"ytd-compact-video-renderer",function(){if(Age!==void 0)return Age;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Age=a},{mode:_.Vn("kevlar_poly_si_batch_j067")?1:2});var hmJ;_.pA("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var QR=function(){return _.u.apply(this,arguments)||this};
_.c(QR,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],QR.prototype,"data",void 0);QR=_.f([_.C({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],QR);
_.D(QR,"ytd-counterfactual-renderer",function(){if(hmJ!==void 0)return hmJ;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return hmJ=a},{mode:1});var iiA;var xE=function(){var a=_.u.apply(this,arguments)||this;a.hidden=!1;return a};
_.c(xE,_.u);xE.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.K().resolve(_.zU).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
xE.prototype.computeHidden=function(a){return!!a};
_.dU.Object.defineProperties(xE.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}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xE.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.z("design:type",Object)],xE.prototype,"hidden",void 0);_.f([_.Q("data.label"),_.z("design:type",String),_.z("design:paramtypes",[])],xE.prototype,"label",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],xE.prototype,"value",null);
xE=_.f([_.C({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],xE);
_.D(xE,"ytd-dropdown-item-renderer",function(){if(iiA!==void 0)return iiA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return iiA=a},{mode:1});var cg$;var emJ;var bl=function(){return _.u.apply(this,arguments)||this};
_.c(bl,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],bl.prototype,"data",void 0);_.f([_.b({computed:"getSimpleString(data.label)"}),_.z("design:type",String)],bl.prototype,"label",void 0);bl=_.f([_.C({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],bl);
_.D(bl,"ytd-navigation-dropdown-item-renderer",function(){if(emJ!==void 0)return emJ;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return emJ=a},{mode:1});var sL=function(){var a=_.u.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};
_.c(sL,_.u);_.t=sL.prototype;_.t.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"}}}};
_.t.open=function(){this.inputEl.open()};
_.t.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.t.dataChanged=function(){this.reset()};
_.t.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("value-changed",this.value))};
_.t.stopPropagation=function(a){a.stopPropagation()};
_.t.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")}};
_.t.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var a=0,W=this.data.entries.length;a<W;a++){var w=this.data.entries[a],Z;for(Z in w)if(w.hasOwnProperty(Z)){var N=w[Z];if("isSelected"in N&&N.isSelected)return"stringValue"in N?N.stringValue||"":"int32Value"in N?N.int32Value||0:0}}return null};
_.t.updateValueFromBinding=function(a){this.value=a.detail.value};
_.dU.Object.defineProperties(sL.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,W=this.data.entries.length;a<W;a++){var w=this.data.entries[a],Z;for(Z in w)if(w.hasOwnProperty(Z)){var N=w[Z];if("isSelected"in N&&N.isSelected&&"label"in N)return this.ytRendererBehavior.getSimpleString(N.label)}}return null}}});
sL.prototype.autoSizeLabel=sL.prototype.autoSizeLabel;sL.prototype.stopPropagation=sL.prototype.stopPropagation;sL.prototype.valueChangedForBinding=sL.prototype.valueChangedForBinding;sL.prototype.dataChanged=sL.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],sL.prototype,"ytRendererStamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],sL.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sL.prototype,"disabled",void 0);_.f([_.b(),_.z("design:type",Object)],sL.prototype,"value",void 0);_.f([_.b(),_.z("design:type",Object)],sL.prototype,"noLabelFloat",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sL.prototype,"noUnderline",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],sL.prototype,"theme",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sL.prototype,"usePrimaryColor",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sL.prototype,"hasBackground",void 0);_.f([_.b(),_.z("design:type",Object)],sL.prototype,"verticalAlign",void 0);_.f([_.b(),_.z("design:type",Object)],sL.prototype,"autosize",void 0);_.f([_.b(),_.z("design:type",Object)],sL.prototype,"minAutosizeWidth",void 0);_.f([_.b(),_.z("design:type",Object)],sL.prototype,"autosizeFont",void 0);
_.f([_.w$("#entries"),_.z("design:type",Object)],sL.prototype,"entries",void 0);_.f([_.w$("#input"),_.z("design:type",Object)],sL.prototype,"inputEl",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sL.prototype,"dataChanged",null);_.f([_.lO("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sL.prototype,"valueChangedForBinding",null);
_.f([_.E6("iron-overlay-opened"),_.E6("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],sL.prototype,"stopPropagation",null);_.f([_.E6("iron-select"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sL.prototype,"autoSizeLabel",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],sL.prototype,"label",null);
sL=_.f([_.C({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],sL);
_.D(sL,"ytd-dropdown-renderer",function(){if(cg$!==void 0)return cg$;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return cg$=a},{mode:1});var nkT;var ul=function(){var a=_.u.apply(this,arguments)||this;a.isConstrainedList=!1;return a};
_.c(ul,_.u);ul.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"}}}};
ul.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
ul.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
ul.prototype.computeViewAllHidden=function(a,W){return a||!W.viewAllEndpoint};
ul.prototype.fillRestIfNoShowMore=ul.prototype.fillRestIfNoShowMore;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.Vs.YtLazyListBehavior),_.z("design:type",Object)],ul.prototype,"ytLazyListBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ul.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ul.prototype,"isConstrainedList",void 0);_.f([_.lO("data","canShowMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ul.prototype,"fillRestIfNoShowMore",null);ul=_.f([_.C({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],ul);
_.D(ul,"ytd-expanded-shelf-contents-renderer",function(){if(nkT!==void 0)return nkT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return nkT=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var jQh;var CR=function(){return _.u.apply(this,arguments)||this};
_.c(CR,_.u);CR.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}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],CR.prototype,"data",void 0);CR=_.f([_.C({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],CR);
_.D(CR,"ytd-feed-channel-filter-header-renderer",function(){if(jQh!==void 0)return jQh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return jQh=a},{mode:1});var LLR;var JgR;var FLV;var Gs=function(){return _.u.apply(this,arguments)||this};
_.c(Gs,_.u);_.t=Gs.prototype;_.t.onClick=function(a){var W,w=(W=this.data)==null?void 0:W.sectionEndpoint;!_.b5(_.qj(a),this.hostElement,["A".toString()])&&w&&_.E$(this.hostElement,"yt-navigate",{endpoint:w})};
_.t.computeHasSectionEndpoint=function(a){return(a==null?void 0:a.sectionEndpoint)!==void 0};
_.t.computeShowHeaderAsLink=function(a){return(a==null?void 0:a.header)!==void 0&&(a==null?void 0:a.sectionEndpoint)!==void 0};
_.t.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};
_.t.getHeaderAsLinkClass=function(a){var W=[],w;(a==null?0:(w=a.headerIcon)==null?0:w.iconType)&&W.push("header-link-active");return W.join(" ")};
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Gs.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Gs.prototype,"data",void 0);
_.f([_.b({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Gs.prototype,"hasSectionEndpoint",void 0);_.f([_.b({computed:"computeShowHeaderAsLink(data)"}),_.z("design:type",Boolean)],Gs.prototype,"showHeaderAsLink",void 0);_.f([_.b({computed:"computeShowSubheaderAsLink(data)"}),_.z("design:type",Boolean)],Gs.prototype,"showSubheaderAsLink",void 0);Gs=_.f([_.C({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Gs);
_.D(Gs,"ytd-medical-panel-section-renderer",function(){if(FLV!==void 0)return FLV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return FLV=a},{mode:1});var Du=function(){var a=_.u.apply(this,arguments)||this;a.isExpanded=!1;a.roundedContainer=!0;a.skipRoundingTop=!1;a.toggleExpandableSection=function(){a.isExpanded=!a.isExpanded};
return a};
_.c(Du,_.u);
Du.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]]"}}}}}};
Du.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Du.prototype.dataChanged=Du.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Du.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Du.prototype,"isExpanded",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Du.prototype,"roundedContainer",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Du.prototype,"skipRoundingTop",void 0);_.f([_.b(),_.z("design:type",Object)],Du.prototype,"toggleExpandableSection",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Du.prototype,"dataChanged",null);Du=_.f([_.C({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Du);
_.D(Du,"ytd-medical-panel-content-renderer",function(){if(JgR!==void 0)return JgR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return JgR=a},{mode:1});_.pA("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var fR=function(){var a=_.u.apply(this,arguments)||this;a.roundedContainer=!0;a.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");a.hasTitle=!1;a.linkIcon="OPEN_IN_NEW";a.isDismissed=!1;return a};
_.c(fR,_.u);
fR.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"}}}};
fR.prototype.computeHasTitle=function(a){return!(a==null||!a.title)};
fR.prototype.onClick=function(a){var W,w=(W=this.data)==null?void 0:W.headerEndpoint;!_.b5(_.qj(a),this.hostElement,["BUTTON".toString()])&&w&&this.ytComponentBehavior.resolveCommand(w)};
_.dU.Object.defineProperties(fR.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,W;return((a=this.data)==null?void 0:a.disableBottomDivider)||!((W=this.data)==null?0:W.title)}}});
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],fR.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],fR.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],fR.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],fR.prototype,"roundedContainer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],fR.prototype,"amsterdamEnabled",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.z("design:type",Object)],fR.prototype,"hasTitle",void 0);
_.f([_.b({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.background"),_.z("design:type",Object),_.z("design:paramtypes",[])],fR.prototype,"background",null);_.f([_.b({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.titleStyle"),_.z("design:type",Object),_.z("design:paramtypes",[])],fR.prototype,"titleStyle",null);
_.f([_.b({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Q("data.titleStyle"),_.z("design:type",Object),_.z("design:paramtypes",[])],fR.prototype,"showLinkIcon",null);_.f([_.b(),_.z("design:type",String)],fR.prototype,"linkIcon",void 0);_.f([_.b({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],fR.prototype,"hideDivider",null);
_.f([_.b({selectorArgs:["data.dismissStateEntityKey"],selector:function(a,W){a=_.tG(a.entities,"dismissState",W);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"}}),
_.z("design:type",Object)],fR.prototype,"isDismissed",void 0);fR=_.f([_.C({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],fR);
_.D(fR,"ytd-info-panel-container-renderer",function(){if(LLR!==void 0)return LLR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return LLR=a},{mode:1});var M_R;_.pA("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var dZ=function(){var a=_.u.apply(this,arguments)||this;a.modernTypography=_.r("web_modern_typography");return a};
_.c(dZ,_.u);dZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
dZ.prototype.computeStyle=function(a){return a?a:""};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],dZ.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.z("design:type",String)],dZ.prototype,"titleStyle",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dZ.prototype,"modernTypography",void 0);dZ=_.f([_.C({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],dZ);
_.D(dZ,"ytd-item-section-header-renderer",function(){if(M_R!==void 0)return M_R;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return M_R=a},{mode:1});var Rm_;var qUA,QQL=function(){return qUA!==void 0?qUA:qUA=document.createElement("template")};
document.head.appendChild(QQL().content);var x0e;_.mf=new _.yq("VOTING_ANIMATION_CONTROLLER_TOKEN");var sQH=_.xQ(function(a){var W=a.data;var w=_.D8(),Z=_.D8();a=_.l(_.$1("VOTE_STATUS_NONE",void 0,"FVF7mc"));var N=a.next().value,B=a.next().value,I=_.X7(ZyU,function(){var T;return(T=W())==null?void 0:T.entityKey}),X=_.r("web_enable_voting_animation")||_.r("enable_music_web_cairo_voting_animation");
_.AS(function(){var T;((T=W().initialState)==null?0:T.status)&&B(W().initialState.status)});
var v=function(){var T,p,h=(p=(T=W().initialState)==null?void 0:T.votes)!=null?p:0,L;T=(L=W().initialState)==null?void 0:L.status;return T==="VOTE_STATUS_UPVOTED"?h-1:T==="VOTE_STATUS_DOWNVOTED"?h+1:h},U=function(){return N()==="VOTE_STATUS_UPVOTED"?v()+1:N()==="VOTE_STATUS_DOWNVOTED"?v()-1:v()},O=function(T){var p=T?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
B(p);var h=U(),L=_.K().resolve(_.Vv(_.mf)),F=I();F&&(T&&(F==null?0:F.upvoteDefaultButtonOnTap)?_.cX(F.upvoteDefaultButtonOnTap,{form:{element:w.value},disableClickTracking:!0}):(F==null?0:F.upvoteToggledButtonOnTap)&&_.cX(F.upvoteToggledButtonOnTap,{form:{element:w.value},disableClickTracking:!0}));var x;T=(x=F==null?void 0:F.enableOptimisticReordering)!=null?x:W().enableOptimisticReordering;X&&L&&W().itemId&&T&&biV(L,W().itemId,h,p)},S=function(T){var p=T?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
B(p);var h=U(),L=_.K().resolve(_.Vv(_.mf)),F=I();F&&(T&&(F==null?0:F.downvoteDefaultButtonOnTap)?_.cX(F.downvoteDefaultButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}):(F==null?0:F.downvoteToggledButtonOnTap)&&_.cX(F.downvoteToggledButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}));var x;T=(x=F==null?void 0:F.enableOptimisticReordering)!=null?x:W().enableOptimisticReordering;X&&L&&W().itemId&&T&&biV(L,W().itemId,h,p)};
a={};a=_.W$("ytVotingViewModelVoteCount",(a.ytVotingViewModelVoteCountDisabled=function(){return W().isDisabled},a));
return _.k("voting-view-model",{class:"ytVotingViewModelHost"},_.k("div",{el:w},_.k(_.Ax,{data:function(){var T=_.A(W().upvoteButton,_.iK);return{toggleButtonViewModel:Object.assign({},T,{isToggled:N()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(T){return _.k(_.ce,{data:T.data,
onToggle:O})}})),_.k("div",{class:a},function(){var T,p,h;
return N()==="VOTE_STATUS_UPVOTED"?(T=W().initialState)==null?void 0:T.compactVotesUpvoted:N()==="VOTE_STATUS_DOWNVOTED"?(p=W().initialState)==null?void 0:p.compactVotesDownvoted:(h=W().initialState)==null?void 0:h.compactVotes}),_.k("div",{el:Z},_.k(_.Ax,{data:function(){var T=_.A(W().downvoteButton,_.iK);
return{toggleButtonViewModel:Object.assign({},T,{isToggled:N()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(T){return _.k(_.ce,{data:T.data,
onToggle:S})}})))},"Db");_.Ct(_.xQ(function(a){var W=a.data;return _.k("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.k("div",{class:_.W$("ytEngagementBarViewModelEngagementBarWrapper",a.className)},_.k(_.Ax,{data:function(){return W().actions}},{votingViewModel:sQH})))},"Eb"),"engagement-bar-view-model",{props:{data:_.qR,
className:_.qR}});var VR=function(){var a=_.u.apply(this,arguments)||this;a.amsterdamPostMvp=_.r("web_amsterdam_post_mvp_playlists");a.cairoCollabPlaylistPostMvp=_.r("web_collab_playlist_thumbnail_size");a.playlistVotingAnimationEnabled=_.r("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};
_.c(VR,_.u);_.t=VR.prototype;_.t.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"}}}};
_.t.canReorderChanged=function(){this.persistentDragHandle=_.r("kevlar_playlist_drag_handles")&&this.canReorder};
_.t.onDrag=function(){if(this.thumbnail){var a=_.M(this.thumbnail).querySelector("yt-image");a&&(a.shouldRenderLazy=!1)}};
_.t.onMenuOverlayChanged=function(a,W){this.menuOpened=W};
_.t.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.t.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.t.onContentsTap=function(a){var W,w=(W=this.data)==null?void 0:W.serviceEndpoints;if(w&&w.length===1&&_.A(w[0],XWF)&&!_.b5(_.qj(a),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(w[0]);else{var Z;(W=(Z=this.data)==null?void 0:Z.navigationEndpoint)&&_.r("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?uER(_.K().resolve(_.bV),W):(_.vE().playlistSuggestionsShelfActivation=
!0,_.Cse(_.K().resolve(_.bV),W)):W&&!_.b5(_.qj(a),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.r("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.E$(this.hostElement,"yt-navigate",{endpoint:W}):this.ytComponentBehavior.resolveCommand(W))}};
_.t.computeStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.t.computeThumbnailWidth=function(a){return a==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.t.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=iBU(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))}};
_.t.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.t.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.t.dataChanged=function(){if(this.data){var a,W,w,Z=((a=this.downloadRenderData)==null?void 0:a.badges)&&((W=this.downloadRenderData)==null?void 0:W.badges)!==((w=this.data)==null?void 0:w.badges),N,B,I;a=((N=this.downloadRenderData)==null?void 0:N.thumbnailOverlays)&&((B=this.downloadRenderData)==null?void 0:B.thumbnailOverlays)!==((I=this.data)==null?void 0:I.thumbnailOverlays);(!this.downloadRenderData||Z||a)&&this.downloadStateChanged()}};
_.t.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var a,W,w=(a=this.data.menu)==null?void 0:(W=a.menuRenderer)==null?void 0:W.items;if(w)for(a=_.l(w),W=a.next();!W.done;W=a.next())if(W=W.value,w=void 0,_.A((w=W.menuServiceItemRenderer)==null?void 0:w.serviceEndpoint,_.nz)){var Z=w=void 0,N=void 0;W=(w=W)==null?void 0:(Z=w.menuServiceItemRenderer)==null?void 0:(N=Z.serviceEndpoint)==null?void 0:N.playlistEditEndpoint;N=Z=void 0;if(w=(Z=W)==null?void 0:(N=Z.actions)==null?void 0:
N[0])Z=void 0,w.setVideoId=(Z=this.data)==null?void 0:Z.setVideoId;N=Z=w=void 0;if(W=(w=W)==null?void 0:(Z=w.clientActions)==null?void 0:(N=Z[0])==null?void 0:N.playlistRemoveVideosAction)w=void 0,W.setVideoIds=[(w=this.data)==null?void 0:w.setVideoId]}}};
_.dU.Object.defineProperties(VR.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
VR.prototype.setVideoIdChanged=VR.prototype.setVideoIdChanged;VR.prototype.dataChanged=VR.prototype.dataChanged;VR.prototype.downloadStateChanged=VR.prototype.downloadStateChanged;VR.prototype.onMenuOverlayChanged=VR.prototype.onMenuOverlayChanged;VR.prototype.canReorderChanged=VR.prototype.canReorderChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],VR.prototype,"ytdReduxBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],VR.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],VR.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],VR.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],VR.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],VR.prototype,"amsterdamPostMvp",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],VR.prototype,"canReorder",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],VR.prototype,"menuOpened",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],VR.prototype,"handleIsHovered",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],VR.prototype,"persistentDragHandle",void 0);
_.f([_.b(),_.z("design:type",Object)],VR.prototype,"downloadRenderData",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],VR.prototype,"styleType",void 0);_.f([_.b({computed:"computeThumbnailWidth(data.style)"}),_.z("design:type",Number)],VR.prototype,"thumbnailWidth",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],VR.prototype,"isDownloads",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],VR.prototype,"cairoCollabPlaylistPostMvp",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],VR.prototype,"playlistVotingAnimationEnabled",void 0);_.f([_.b({selector:nx,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],VR.prototype,"downloadProgress",void 0);_.f([_.b(),_.z("design:type",Number)],VR.prototype,"relativeDateReference",void 0);
_.f([_.b({selector:_.cJ,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],VR.prototype,"transferState",void 0);_.f([_.b({selector:z_7,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],VR.prototype,"downloadState",void 0);_.f([_.b({selector:R_e,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],VR.prototype,"offlinePolicyAction",void 0);_.f([_.b({selector:qjx,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],VR.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.f([_.b({selector:xam,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],VR.prototype,"entityInfo",void 0);_.f([_.b({selector:_.hG}),_.z("design:type",Boolean)],VR.prototype,"miniplayerIsActive",void 0);_.f([_.Q("data"),_.z("design:type",String),_.z("design:paramtypes",[])],VR.prototype,"playlistVideoId",null);_.f([_.w$("#thumbnail"),_.z("design:type",Object)],VR.prototype,"thumbnail",void 0);
_.f([_.lO("canReorder"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VR.prototype,"canReorderChanged",null);_.f([_.E6("yt-menu-overlay-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Boolean]),_.z("design:returntype")],VR.prototype,"onMenuOverlayChanged",null);
_.f([_.lO("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VR.prototype,"downloadStateChanged",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VR.prototype,"dataChanged",null);
_.f([_.lO("data.setVideoId"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VR.prototype,"setVideoIdChanged",null);VR=_.f([_.C({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],VR);
_.D(VR,"ytd-playlist-video-renderer",function(){if(x0e!==void 0)return x0e;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);a.content.insertBefore(QQL().content.cloneNode(!0),a.content.firstChild);return x0e=a},{mode:1});var Gy6;var zs=function(){return _.u.apply(this,arguments)||this};
_.c(zs,_.u);_.f([_.b(),_.z("design:type",Object)],zs.prototype,"data",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],zs.prototype,"rendererBehavior",void 0);zs=_.f([_.C({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],zs);
_.D(zs,"ytd-premium-browse-footer-renderer",function(){if(Gy6!==void 0)return Gy6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Gy6=a},{mode:1});var D0T;var HK=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return a};
_.c(HK,_.u);_.t=HK.prototype;_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.handleDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.t.computeHeaderLogoThumbnail=function(a,W){if(a)return W?a.darkLogo:a.lightLogo};
_.t.computeHeaderLogoHeight=function(a,W){var w,Z,N;return(a=(w=this.computeHeaderLogoThumbnail(a,W))==null?void 0:(Z=w.thumbnails)==null?void 0:(N=Z[0])==null?void 0:N.height)&&a%31===0?"31":"24"};
_.t.computeHeaderLogoMarginBottom=function(a,W){return this.computeHeaderLogoHeight(a,W)==="24"?"0":"-7"};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],HK.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],HK.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],HK.prototype,"isDarkTheme",void 0);_.f([_.b({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.z("design:type",Object)],HK.prototype,"themeLogo",void 0);
_.f([_.b({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.z("design:type",String)],HK.prototype,"logoHeight",void 0);_.f([_.b({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.z("design:type",String)],HK.prototype,"logoMarginBottom",void 0);HK=_.f([_.C({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],HK);
_.D(HK,"ytd-primetime-promo-header-renderer",function(){if(D0T!==void 0)return D0T;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return D0T=a},{mode:1});var fME;_.En($e9);var d0h=_.xQ(function(a){var W=a.text;var w=a.className;var Z=a.tagLevel;return _.k(_.Y6,null,_.k(_.Ut,{when:function(){return(Z==null?void 0:Z())===0}},function(){return _.k("h2",{class:w},W())}),_.k(_.Ut,{when:function(){return(Z==null?void 0:Z())===1}},function(){return _.k("h3",{class:w},W())}),_.k(_.Ut,{when:function(){return(Z==null?void 0:Z())===2}},function(){return _.k("h4",{class:w},W())}),_.k(_.Sm,null,function(){return _.k("h2",{class:w},W())}))},"Fb"),m0H=_.xQ(function(a){var W=_.$_(function(N){var B;
(B=a.onClick)==null||B.call(a,N)}),w={},Z={};
return _.k("yt-shelf-header-layout",{class:_.W$("shelf-header-layout-wiz",(w["shelf-header-layout-wiz--disable-horizontal-padding"]=a.disableHorizontalPadding,w["shelf-header-layout-wiz--disable-vertical-padding"]=a.disableVerticalPadding,w["shelf-header-layout-wiz--responsive"]=a.useResponsiveLayout,w["shelf-header-layout-wiz--narrow"]=function(){var N,B;return((N=a.useResponsiveLayout)==null?void 0:N.call(a))&&((B=a.forceSmallLayout)==null?void 0:B.call(a))},w["shelf-header-layout-wiz--is-overlay"]=
a.isOverlay,w["shelf-header-layout-wiz--tappable"]=!!a.onClick,w)),
"on:click":W,tabindex:a.onClick?0:void 0},_.k(_.Y,{cond:a.leadingIcon,then:function(N){return _.k("div",{class:"shelf-header-layout-wiz__leading-icon"},_.k(_.P$,{icon:N}))},
else:function(){return _.k(_.Y,{cond:a.hasLeadingImage,then:function(){var N,B={};return _.k("div",{class:_.W$("shelf-header-layout-wiz__leading-image",(B["shelf-header-layout-wiz__leading-image--circular-image"]=a.circularImage,B))},(N=a.leadingImage)==null?void 0:N.call(a))}})}}),_.k("div",{class:"shelf-header-layout-wiz__label-container"},_.k(_.Y,{cond:a.hasSuperlabel,
then:function(){var N;return _.k("div",{class:"shelf-header-layout-wiz__superlabel"},(N=a.superlabel)==null?void 0:N.call(a))}}),_.k("div",{class:"shelf-header-layout-wiz__title-row"},_.k(d0h,{text:a.title,
className:_.W$("shelf-header-layout-wiz__title",(Z["shelf-header-layout-wiz__title--small-title"]=a.forceSmallLayout,Z)),tagLevel:a.tagLevel}),_.k(_.Y,{cond:a.hasDetail,then:function(){var N;return _.k("div",{class:"shelf-header-layout-wiz__detail"},(N=a.detail)==null?void 0:N.call(a))}})),_.k(_.Y,{cond:a.hasSublabel,
then:function(){var N;return _.k("div",{class:"shelf-header-layout-wiz__sublabel"},(N=a.sublabel)==null?void 0:N.call(a))}})),_.k(_.Y,{cond:a.hasTrailingActions,
then:function(){var N;return _.k("div",{class:"shelf-header-layout-wiz__trailing-actions"},(N=a.trailingActions)==null?void 0:N.call(a))}}))},"Gb"),g9m=_.r("web_enable_sink_section_header")?m0H:$e9,V_R=_.r("web_enable_sink_section_header")?m0H:_.NX($e9,{callbacks:{title:!0,
detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}});m0H.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};var v9I=_.T9({flexibleActionsViewModel:YGR});_.En(o9F);var Ek6;Ek6=_.xQ(function(a){var W=a.data;return _.k("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.It({"background-color":function(){return NpF(W().backgroundColor)?_.pC(NpF(W().backgroundColor)):void 0}})},_.k(V_R,{hasDetail:!1,
title:function(){return _.k(_.k_,{text:function(){return W().headline}})},
hasTitle:!0,sublabel:function(){return _.k(zmT,{data:W})},
hasSublabel:function(){return!!W().sublabel||!!W().bottomBadge},
superlabel:function(){return _.k(HiR,{data:W})},
hasSuperlabel:function(){return!!W().superlabel||!!W().topBadge},
leadingImage:function(){return _.k(ygR,{leadingAccessory:function(){return W().leadingAccessory}})},
hasLeadingImage:function(){return!!W().leadingAccessory},
trailingActions:function(){return _.k(_.Ax,{data:function(){return W().trailingActions}},{flexibleActionsViewModel:pG})},
hasTrailingActions:function(){return!!W().trailingActions},
disableHorizontalPadding:a.disableHorizontalPadding,disableVerticalPadding:a.disableVerticalPadding,forceSmallLayout:a.forceSmallLayout,useResponsiveLayout:a.useResponsiveLayout,isOverlay:a.isOverlay,onClick:function(w){if(_.sB(W().rendererContext)){var Z=_.bK(W().rendererContext);Z&&_.AQ(Z,{form:{element:w.target,event:w}})}}}))},"Hb");
_.yR=_.r("web_enable_sink_section_header")?Ek6:_.NX(o9F);Ek6.idomCompat=!0;var ygR=_.xQ(function(a){var W=a.leadingAccessory;return _.k(_.Ha,null,_.k(_.Y,{cond:function(){var w;return(w=W().image)!=null?w:_.He(W().themedImage)},
then:function(w){return _.k(_.qw,{data:w,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.k(_.Y,{cond:function(){return _.A(W().avatar,_.fj)},
then:function(w){return _.k(_.c6,{data:w})}}))},"Ib"),zmT=_.xQ(function(a){var W=a.data;
return _.k(_.Ha,null,_.k(_.Y,{cond:function(){return _.A(W().bottomBadge,lNe)},
then:function(w){var Z={};return _.k(_.DU,{data:w,class:_.W$((Z.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!w()&&!!W().sublabel},Z))})}}),_.k(_.Y,{cond:function(){return W().sublabel},
then:function(w){return _.k(_.k_,{text:w})}}))},"Jb"),HiR=_.xQ(function(a){var W=a.data;
return _.k(_.Ha,null,_.k(_.Y,{cond:function(){return _.A(W().topBadge,lNe)},
then:function(w){var Z={};return _.k(_.DU,{data:w,class:_.W$((Z.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!w()&&!!W().superlabel},Z))})}}),_.k(_.Y,{cond:function(){return W().superlabel},
then:function(w){return _.k(_.k_,{text:w})}}))},"Kb");_.Ct(_.yR,"yt-section-header-view-model",{props:{data:_.qR,className:_.qR,disableHorizontalPadding:_.qR,disableVerticalPadding:_.qR,forceSmallLayout:_.qR,useResponsiveLayout:_.qR,isOverlay:_.qR}});_.pA("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var EL=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return a};
_.c(EL,_.u);_.t=EL.prototype;_.t.attached=function(){this.requestElementsPerRow()};
_.t.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"}}}};
_.t.onDataChange=function(){var a=this;_.DW(this,function(){a.updateItemVisibility()})};
_.t.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a,this.updateItemVisibility())};
_.t.updateItemVisibility=function(){var a=this;this.data&&this.data.panels&&_.M(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(W,w){W.hidden=w>a.elementsPerRow-1})};
_.t.requestElementsPerRow=function(){_.E$(this.hostElement,"yt-request-elements-per-row")};
EL.prototype.onDataChange=EL.prototype.onDataChange;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],EL.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],EL.prototype,"actionHandlerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],EL.prototype,"data",void 0);_.f([_.b({value:3}),_.z("design:type",Number)],EL.prototype,"elementsPerRow",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EL.prototype,"onDataChange",null);EL=_.f([_.C({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],EL);
_.D(EL,"ytd-primetime-promo-renderer",function(){if(fME!==void 0)return fME;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return fME=a},{mode:1});var ayl;var a6=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return a};
_.c(a6,_.u);a6.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
a6.prototype.handleButtonRefreshAction=function(a){if(a=_.A(a,_.sYV))this.set("data.button",a.membershipButton),this.notifyPath("data.button")};
_.dU.Object.defineProperties(a6.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.data)==null?void 0:(W=a.avatars)==null?void 0:W.slice(0,8))||[]}}});
_.f([_.b(),_.z("design:type",Object)],a6.prototype,"data",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],a6.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],a6.prototype,"rendererBehavior",void 0);_.f([_.Q("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],a6.prototype,"avatars",null);
a6=_.f([_.C({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],a6);
_.D(a6,"ytd-recognition-shelf-renderer",function(){if(ayl!==void 0)return ayl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ayl=a},{mode:1});var WWT;var wxl;var WL=function(){var a=_.u.apply(this,arguments)||this;a.modernButtons=_.r("web_modern_buttons");return a};
_.c(WL,_.u);_.t=WL.prototype;
_.t.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]]"}},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]]"}}}}}};
_.t.dataChanged=function(){this.collapsed=!0};
_.t.computeVisibleItems=function(a,W){return a!==void 0&&a.items?W?a.items.slice(0,this.data.collapsedItemCount):a.items:[]};
_.t.computeHideShowMore=function(a,W,w){return a>=W||!w};
_.t.computeHideShowAll=function(a,W,w){return!(a&&W)||w};
_.t.onMoreClick=function(){this.collapsed=!1};
_.dU.Object.defineProperties(WL.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.r("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
WL.prototype.dataChanged=WL.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],WL.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],WL.prototype,"isSearch",void 0);
_.f([_.b({computed:"computeVisibleItems(data,collapsed)"}),_.z("design:type",Array)],WL.prototype,"visibleItems",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],WL.prototype,"collapsed",void 0);_.f([_.b({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.z("design:type",Boolean)],WL.prototype,"hideShowMore",void 0);
_.f([_.b({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.z("design:type",Boolean)],WL.prototype,"hideShowAll",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],WL.prototype,"modernButtons",void 0);_.f([_.Q("isSearch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],WL.prototype,"typographyBump",null);
_.f([_.Q("isSearch"),_.z("design:type",String),_.z("design:paramtypes",[])],WL.prototype,"thumbnailWidth",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WL.prototype,"dataChanged",null);WL=_.f([_.C({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],WL);
_.D(WL,"ytd-vertical-list-renderer",function(){if(wxl!==void 0)return wxl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return wxl=a},{mode:1});var ZqJ=_.ma(["#"]);_.pA("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var ws=function(){var a=_.u.apply(this,arguments)||this;a.isConstrainedList=!1;a.modernTypography=_.r("web_modern_typography");return a};
_.c(ws,_.u);_.t=ws.prototype;
_.t.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"}}}};
_.t.computeThumbnailStyle=function(a){return a||""};
_.t.computePlaceAnnotationUnderTitle=function(){var a;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((a=this.data)==null?void 0:a.thumbnailStyle)||"")};
_.t.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a)||_.Kv(ZqJ)};
_.t.computeIsPromoShelf=function(a){var W;return(a=a==null?void 0:(W=a[0])==null?void 0:W.metadataBadgeRenderer)?a.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.t.computePlaceBadgeBesideTitle=function(a){var W;return(a==null?0:(W=a[0])==null?0:W.metadataBadgeRenderer)?!this.computeIsPromoShelf(a):!1};
_.t.computeMenuIcon=function(a){return this.computeIsPromoShelf(a)?"yt-icons:more_vert":"yt-icons:more"};
_.t.onDataChange=function(){var a,W;((a=this.data)==null?0:(W=a.content)==null?0:W.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.t.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 W=this.data.content.gridRenderer.items,w=new Set,Z=_.l(a.detail.videoIds),N=Z.next();!N.done;N=Z.next())w.add(N.value);a.detail.returnValue=W.filter(function(B){return B.gridVideoRenderer&&B.gridVideoRenderer.videoId&&w.has(B.gridVideoRenderer.videoId)}).map(function(B){return B.gridVideoRenderer})}};
_.t.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
ws.prototype.onLockupRequested=ws.prototype.onLockupRequested;ws.prototype.onDataChange=ws.prototype.onDataChange;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],ws.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ws.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.eG),_.z("design:type",Object)],ws.prototype,"ironResizableBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ws.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],ws.prototype,"isSearch",void 0);_.f([_.b(),_.z("design:type",Object)],ws.prototype,"isConstrainedList",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("kevlar_fluid_dismiss")}}),
_.z("design:type",Boolean)],ws.prototype,"enableFluidDismiss",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.z("design:type",String)],ws.prototype,"thumbnailStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ws.prototype,"modernTypography",void 0);_.f([_.b({computed:"computeMenuIcon(data.badges)"}),_.z("design:type",String)],ws.prototype,"menuIcon",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ws.prototype,"onDataChange",null);_.f([_.E6("yt-lockup-requested"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ws.prototype,"onLockupRequested",null);ws=_.f([_.C({is:"ytd-shelf-renderer",disableElementRegistration:!0})],ws);
_.D(ws,"ytd-shelf-renderer",function(){if(WWT!==void 0)return WWT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return WWT=a},{mode:1});var NvE;var ZX=function(){return _.u.apply(this,arguments)||this};
_.c(ZX,_.u);ZX.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.dU.Object.defineProperties(ZX.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}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ZX.prototype,"data",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],ZX.prototype,"isPlaylist",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],ZX.prototype,"isClipList",void 0);
_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],ZX.prototype,"isPlaylistPageWithFilters",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZX.prototype,"hasTitle",null);_.f([_.b(),_.Q("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZX.prototype,"isRightAligned",null);
ZX=_.f([_.C({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],ZX);
_.D(ZX,"ytd-sort-filter-header-renderer",function(){if(NvE!==void 0)return NvE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return NvE=a},{mode:1});var tPV;var N3=function(){return _.u.apply(this,arguments)||this};
_.c(N3,_.u);
N3.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]]"}}}}}};
N3.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.dU.Object.defineProperties(N3.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.r("enable_creator_details_shelf_m2")){var a=[],W;((W=this.data)==null?0:W.creatorVideosButton)&&a.push(this.data.creatorVideosButton);var w;((w=this.data)==null?0:w.creatorAboutButton)&&a.push(this.data.creatorAboutButton);W=_.l(this.data.creatorCustomUrlButtons||[]);for(w=W.next();!w.done;w=W.next())a.push(w.value);return a}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.r("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],N3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.zd.YtdHorizontalListBehavior),_.z("design:type",Object)],N3.prototype,"ytdHorizontalListBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],N3.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],N3.prototype,"engagementPanel",void 0);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],N3.prototype,"creatorCustomUrlButtons",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data","creatorCustomUrlButtons"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],N3.prototype,"showCreatorCustomUrlButtons",null);_.f([_.Q("showCreatorCustomUrlButtons"),_.z("design:type",Number),_.z("design:paramtypes",[])],N3.prototype,"channelAvatarSize",null);
N3=_.f([_.C({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],N3);
_.D(N3,"ytd-video-description-infocards-section-renderer",function(){if(tPV!==void 0)return tPV;var a=document.createElement("template");_.n(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_">\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(_.y().content.cloneNode(!0),
a.content.firstChild);return tPV=a},{mode:_.Vn("kevlar_poly_si_batch_j067")?1:2});var $GE;var t3=function(){return _.u.apply(this,arguments)||this};
_.c(t3,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],t3.prototype,"data",void 0);_.f([_.b({computed:"computeIcon_(data.infoIcon)"}),_.z("design:type",Object)],t3.prototype,"infoIcon",void 0);t3=_.f([_.C({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],t3);
_.D(t3,"ytd-eom-settings-disclaimer-renderer",function(){if($GE!==void 0)return $GE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return $GE=a},{mode:1});var Bv6;var $y=function(){return _.u.apply(this,arguments)||this};
_.c($y,_.u);_.dU.Object.defineProperties($y.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.suppressPaddingDisclaimer)}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],$y.prototype,"componentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],$y.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$y.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$y.prototype,"suppressPaddingDisclaimer",null);$y=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],$y);
_.D($y,"ytd-product-list-header-renderer",function(){if(Bv6!==void 0)return Bv6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Bv6=a},{mode:1});var lyR;var BL=function(){return _.u.apply(this,arguments)||this};
_.c(BL,_.u);BL.prototype.computeThumbnailStyle=function(a){if(a&&(a=_.KC(a)))return"background-color:"+a+";"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],BL.prototype,"rendererBehaviors",void 0);_.f([_.b(),_.z("design:type",Object)],BL.prototype,"data",void 0);BL=_.f([_.C({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],BL);
_.D(BL,"ytd-hashtag-tile-renderer",function(){if(lyR!==void 0)return lyR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return lyR=a},{mode:1});var IyR;var lD=function(){return _.u.apply(this,arguments)||this};
_.c(lD,_.u);lD.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}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],lD.prototype,"data",void 0);lD=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],lD);
_.D(lD,"ytd-sponsorships-alert-renderer",function(){if(IyR!==void 0)return IyR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return IyR=a},{mode:1});var PPE;var I6=function(){return _.u.apply(this,arguments)||this};
_.c(I6,_.u);I6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.dU.Object.defineProperties(I6.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.f([_.R(_.eN),_.z("design:type",Object)],I6.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],I6.prototype,"ytdLockupBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],I6.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.f([_.b({selector:_.RL}),_.z("design:type",Object)],I6.prototype,"isGridViewEnabled",void 0);
_.f([_.Q("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],I6.prototype,"watchFeedBigThumbs",null);_.f([_.Q("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],I6.prototype,"thumbnailWidth",null);_.f([_.b(),_.z("design:type",Object)],I6.prototype,"data",void 0);I6=_.f([_.C({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],I6);
_.D(I6,"ytd-compact-movie-renderer",function(){if(PPE!==void 0)return PPE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return PPE=a},{mode:1});var Xx6;var vWE;var gW6=_.LF("HTML_DIR")==="rtl",PL=function(){var a=_.u.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$14183_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};
_.c(PL,_.u);_.t=PL.prototype;_.t.onClick=function(a){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.b5(_.qj(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;if((W=window.getSelection())==null||!W.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.t.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.t.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.t.updateTextOnSnippetTypeChange=function(){_.r("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.t.setUpBinarySearch=function(a){a=a*this.maxLines/8;this.left=0;var W,w;this.right=Math.min(a*2,(w=(W=this.simpleText)==null?void 0:W.length)!=null?w:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.t.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.t.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.jJ(new _.Uw("AttributedSnippet is empty when the description is not empty",this.text))};
_.t.mutationCallback=function(){if(this.observer!=null){var a=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var W=Math.floor(a*this.maxLines/8);this.setSnippetText(this.text,W);W!==0||this.attributedTextIsEmpty()||_.jJ(new _.Uw("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 w;this.right=Math.min(a*2,(w=(W=this.simpleText)==null?void 0:W.length)!=null?w: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)}}};
_.t.mutationObserve=function(a){var W=this;this.observer||(this.observer=new MutationObserver(function(){W.mutationCallback()}));
this.observer.observe(a,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.t.attached=function(){var a=this;_.DW(this,function(){a.resize()})};
_.t.isExpandedChanged=function(){_.E$(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.t.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)};
_.t.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 "+((gW6?"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(gW6?"right":"left",this.expandButtonOffset+"px")};
_.t.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.t.setSnippetText=function(a,W){a||(a={});if(_.JQ(a)){var w=Bs7(a,W);w.attachmentRuns||w.commandRuns||w.decorationRuns||w.styleRuns||w.alignment||w.lineBreakMode?this.attributedSnippetTextEl?(_.r("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=Bs7(a,W),this.attributedSnippetTextEl.headerRuns=$3e(W,this.headerRuns)):this.attributedSnippetText={data:Bs7(a,W),headerRuns:$3e(W,this.headerRuns)},this.currentSnippetType=0):_.jJ(new _.Uw("Tried to set snippet text when HTML element was null",
a)):(this.plainSnippetText.textContent=nt(a.content||"",W),this.currentSnippetType=2)}else{a:{w=kEm(a,W);if(w.runs){w=_.l(w.runs);for(var Z=w.next();!Z.done;Z=w.next())if(Z=Z.value,Z.bold||Z.deemphasize||Z.italics||Z.strikethrough||Z.textColor||Z.navigationEndpoint||_.A(Z,T$)){w=!0;break a}}w=!1}w?this.formattedSnippetText?(this.formattedSnippetText.text=kEm(a,W),this.currentSnippetType=1):_.jJ(new _.Uw("Tried to set snippet text when HTML element was null",a)):(this.plainSnippetText.textContent=
nt(_.sd(a),W),this.currentSnippetType=2)}};
_.t.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.t.attributedTextIsEmpty=function(){var a=this.text;if(!_.JQ(a))return!0;var W;return((W=a.content)==null?void 0:W.length)===0?!0:!1};
_.t.resize=function(a){if(this.snippetText){if(a===void 0?0:a)this.JSC$14183_lastWidth=NaN;var W=this.hostElement.offsetWidth;if(W!==this.JSC$14183_lastWidth&&!this.isExpanded)if(this.JSC$14183_lastWidth=W,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 w,Z;W=Math.min(W*this.maxLines/8*2,(Z=(w=this.simpleText)==null?void 0:w.length)!=null?Z:0)-1;for(w=0;a<=W;)Z=Math.floor(a+(W-a)/2),this.setSnippetText(this.text,Z),this.isOverflowing()?W=Z-1:(a=Z+1,w=Z);this.setSnippetText(this.text,w);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.t.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.t.onExpandClick=function(){var a=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.r("inline_expander_reset_focus_killswitch")||_.DW(this,function(){var W;((W=_.K().resolve(_.Vv(_.S4)))==null?0:W.isKeyBoardInUse())&&_.un(a.hostElement)});
_.E$(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.t.onCollapseClick=function(){this.collapse();_.E$(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.t.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.t.computeExpandButtonOffset=function(){var a=this.expandSizer;return a?gW6?a.offsetParent?a.offsetParent.offsetWidth-a.offsetWidth-a.offsetLeft:0:a.offsetLeft:0};
_.dU.Object.defineProperties(PL.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.JQ(this.text)?this.text.content||"":_.sd(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 _.JQ(this.text)?!0:this.text&&_.r("web_replace_formatted_with_attributed_string")&&epv(this.text)?(this.text=_.YJ(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}}});
PL.prototype.onTextChanged=PL.prototype.onTextChanged;PL.prototype.updateMaskAndExpandButtonOffset=PL.prototype.updateMaskAndExpandButtonOffset;PL.prototype.updateSnippetContainerMaxHeight=PL.prototype.updateSnippetContainerMaxHeight;PL.prototype.isExpandedChanged=PL.prototype.isExpandedChanged;PL.prototype.updateTextOnSnippetTypeChange=PL.prototype.updateTextOnSnippetTypeChange;PL.prototype.updateIsFormattedExpanded=PL.prototype.updateIsFormattedExpanded;PL.prototype.updateIsAttributedExpanded=PL.prototype.updateIsAttributedExpanded;
PL.prototype.onClick=PL.prototype.onClick;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],PL.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],PL.prototype,"text",void 0);_.f([_.b(),_.z("design:type",Array)],PL.prototype,"headerRuns",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],PL.prototype,"engagementPanel",void 0);_.f([_.b(),_.z("design:type",Object)],PL.prototype,"maxLines",void 0);
_.f([_.b(),_.z("design:type",String)],PL.prototype,"expandLabel",void 0);_.f([_.b(),_.z("design:type",String)],PL.prototype,"collapseLabel",void 0);_.f([_.b(),_.z("design:type",Object)],PL.prototype,"expandCommand",void 0);_.f([_.b(),_.z("design:type",Object)],PL.prototype,"expandButtonOffset",void 0);_.f([_.Q("text"),_.z("design:type",String),_.z("design:paramtypes",[])],PL.prototype,"simpleText",null);
_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],PL.prototype,"onClick",null);_.f([_.Q("text","isExpanded"),_.z("design:type",Object),_.z("design:paramtypes",[])],PL.prototype,"expandedText",null);_.f([_.Q("headerRuns","isExpanded"),_.z("design:type",Object),_.z("design:paramtypes",[])],PL.prototype,"expandedHeaderRuns",null);
_.f([_.Q("text"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],PL.prototype,"hasAttributedStringText",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],PL.prototype,"showExpandButton",void 0);_.f([_.Q("collapseLabel","isExpanded"),_.z("design:type",Object),_.z("design:paramtypes",[])],PL.prototype,"showCollapseButton",null);_.f([_.b(),_.z("design:type",Object)],PL.prototype,"isTruncated",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],PL.prototype,"isExpanded",void 0);_.f([_.b(),_.z("design:type",Boolean)],PL.prototype,"isAttributedExpanded",void 0);_.f([_.a5("isExpanded","hasAttributedStringText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PL.prototype,"updateIsAttributedExpanded",null);_.f([_.b(),_.z("design:type",Boolean)],PL.prototype,"isFormattedExpanded",void 0);
_.f([_.a5("isExpanded","hasAttributedStringText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PL.prototype,"updateIsFormattedExpanded",null);_.f([_.b(),_.z("design:type",Number)],PL.prototype,"currentSnippetType",void 0);_.f([_.Q("currentSnippetType"),_.z("design:type",Object),_.z("design:paramtypes",[])],PL.prototype,"useAttributedSnippet",null);
_.f([_.Q("currentSnippetType"),_.z("design:type",Object),_.z("design:paramtypes",[])],PL.prototype,"useFormattedSnippet",null);_.f([_.Q("currentSnippetType"),_.z("design:type",Object),_.z("design:paramtypes",[])],PL.prototype,"usePlainSnippet",null);_.f([_.b(),_.z("design:type",Object)],PL.prototype,"alwaysShowExpandButton",void 0);_.f([_.a5("currentSnippetType"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PL.prototype,"updateTextOnSnippetTypeChange",null);
_.f([_.b(),_.z("design:type",Object)],PL.prototype,"attributedSnippetText",void 0);_.f([_.w$("#snippet"),_.z("design:type",HTMLElement)],PL.prototype,"snippetContainer",void 0);_.f([_.w$("#snippet-text"),_.z("design:type",HTMLElement)],PL.prototype,"snippetText",void 0);_.f([_.w$("#plain-snippet-text"),_.z("design:type",HTMLElement)],PL.prototype,"plainSnippetText",void 0);_.f([_.w$("#formatted-snippet-text"),_.z("design:type",Object)],PL.prototype,"formattedSnippetText",void 0);
_.f([_.w$("#attributed-snippet-text"),_.z("design:type",Object)],PL.prototype,"attributedSnippetTextEl",void 0);_.f([_.w$("#expand"),_.z("design:type",HTMLElement)],PL.prototype,"expandButton",void 0);_.f([_.w$("#expand-sizer"),_.z("design:type",HTMLElement)],PL.prototype,"expandSizer",void 0);_.f([_.lO("isExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PL.prototype,"isExpandedChanged",null);
_.f([_.a5("isExpanded","maxLines"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PL.prototype,"updateSnippetContainerMaxHeight",null);_.f([_.a5("isTruncated","showExpandButton","expandButtonOffset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PL.prototype,"updateMaskAndExpandButtonOffset",null);
_.f([_.lO("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PL.prototype,"onTextChanged",null);PL=_.f([_.C({is:"ytd-text-inline-expander",disableElementRegistration:!0})],PL);
_.D(PL,"ytd-text-inline-expander",function(){if(vWE===void 0){var a=document.createElement("template");_.n(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<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 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(_.y().content.cloneNode(!0),
a.content.firstChild);vWE=a}a=vWE;return a},{mode:2});var XY=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return a};
_.c(XY,_.u);XY.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
XY.prototype.handleUpdateDescriptionAction=function(a){if(a=_.A(a,_.CMA))if(a.attributedDescription)this.set("data.attributedDescriptionBodyText",a.attributedDescription);else if(a.description){var W;((W=this.data)==null?0:W.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.YJ(a.description)):this.set("data.descriptionBodyText",a.description)}};
_.dU.Object.defineProperties(XY.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var a,W;return!((a=this.data)==null||!a.attributedDescriptionBodyText)||!((W=this.data)==null||!W.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.collapsedLineCount){var W;return(W=this.data)==null?void 0:W.collapsedLineCount}a=_.yv("web_watch_description_collapsed_default_lines",12);if(_.r("ww_desc_line_page_size_ks"))return a;W=Math.round(_.vu().height*_.yv("web_watch_description_screen_height_percentage",.5)/20);return Math.max(W,a)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return(w=(a=this.data)==null?void 0:a.descriptionBodyText)!=null?w:(W=this.data)==null?void 0:W.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}}});
XY.prototype.panelContentVisibleChanged=XY.prototype.panelContentVisibleChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],XY.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],XY.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],XY.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Boolean)],XY.prototype,"panelContentVisible",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],XY.prototype,"engagementPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],XY.prototype,"shortsPanel",void 0);_.f([_.w$("#inline-expander"),_.z("design:type",Object)],XY.prototype,"inlineExpander",void 0);
_.f([_.a5("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XY.prototype,"panelContentVisibleChanged",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],XY.prototype,"hasDescriptionText",null);_.f([_.Q("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],XY.prototype,"collapsedLines",null);
_.f([_.Q("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.z("design:type",Object),_.z("design:paramtypes",[])],XY.prototype,"descriptionText",null);_.f([_.Q("data","data.headerRuns"),_.z("design:type",Object),_.z("design:paramtypes",[])],XY.prototype,"headerRuns",null);_.f([_.Q("data","data.sourceAttributions"),_.z("design:type",Object),_.z("design:paramtypes",[])],XY.prototype,"sourceAttributions",null);
XY=_.f([_.C({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],XY);
_.D(XY,"ytd-expandable-video-description-body-renderer",function(){if(Xx6!==void 0)return Xx6;var a=document.createElement("template");_.n(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]]" 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(_.y().content.cloneNode(!0),
a.content.firstChild);return Xx6=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var oWR;var km_=_.xQ(function(a){var W=a.data;return _.k("factoid-renderer",{class:"ytwFactoidRendererHost"},_.k("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return W().accessibilityText}},_.k("span",{class:"ytwFactoidRendererValue"},_.k(_.k_,{text:function(){return W().value}})),_.k("span",{class:"ytwFactoidRendererLabel"},_.k(_.k_,{text:function(){return W().label}}))))},"Lb");_.Ct(km_,"factoid-renderer",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;return _.k("upload-time-factoid-renderer",null,_.k(_.Ax,{data:function(){return W().factoid}},{factoidRenderer:km_}))},"Mb"),"upload-time-factoid-renderer",{props:{data:_.ux}});_.Ct(_.xQ(function(a){var W=a.data;return _.k("view-count-factoid-renderer",null,_.k(_.Ax,{data:function(){return W().factoid}},{factoidRenderer:km_}))},"Nb"),"view-count-factoid-renderer",{props:{data:_.ux}});var vL=function(){var a=_.u.apply(this,arguments)||this;a.shortsPanel=!1;a.engagementPanel=!1;a.watchWhileSdp=_.r("shorts_desktop_watch_while_sdp");return a};
_.c(vL,_.u);vL.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"}}}}};
_.dU.Object.defineProperties(vL.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}}});
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],vL.prototype,"componentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],vL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vL.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vL.prototype,"shortsPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vL.prototype,"engagementPanel",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vL.prototype,"watchWhileSdp",void 0);_.f([_.Q("shortsPanel","engagementPanel","data.channel"),_.z("design:type",Object),_.z("design:paramtypes",[])],vL.prototype,"showChannelInfo",null);vL=_.f([_.C({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],vL);
_.D(vL,"ytd-video-description-header-renderer",function(){if(oWR!==void 0)return oWR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return oWR=a},{mode:1});var UGe;var gs=function(){return _.u.apply(this,arguments)||this};
_.c(gs,_.u);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],gs.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],gs.prototype,"noPadding",void 0);_.f([_.b(),_.z("design:type",Object)],gs.prototype,"data",void 0);gs=_.f([_.C({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],gs);
_.D(gs,"ytd-list-item-view-model",function(){if(UGe!==void 0)return UGe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return UGe=a},{mode:1});var OqA;var Ssl;var YsH;var TvA;var o6=function(){var a=_.u.apply(this,arguments)||this;a.adaptiveFullWidth=!1;a.modernButtons=_.r("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};
_.c(o6,_.u);o6.prototype.handleSetTimestamp_=function(a){this.data&&this.data.shortUrl&&(_.M(this.hostElement).querySelector("#share-url").value=a.isSet?_.uE(this.data.shortUrl,"t",a.timestamp):this.data.shortUrl)};
o6.prototype.handleSignalActionCopyShareUrl_=function(a,W){(_.r("killswitch_copy_link_target_check")||_.M(this.hostElement).querySelector("#copy-button")===W)&&this.copyUrlToClipboard()};
o6.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.M(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
o6.prototype.computeStyle_=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],o6.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],o6.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.z("design:type",String)],o6.prototype,"rendererStyle",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o6.prototype,"adaptiveFullWidth",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o6.prototype,"modernButtons",void 0);_.f([_.b(),_.z("design:type",Object)],o6.prototype,"buttonOverrides",void 0);o6=_.f([_.TD({is:"yt-copy-link-renderer",disableElementRegistration:!0})],o6);
_.D(o6,"yt-copy-link-renderer",function(){if(TvA===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;YsH===void 0&&(YsH=document.createElement("template"));var Z=YsH;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);TvA=a}a=TvA;return a},{mode:2});_.pA("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var ky=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return a};
_.c(ky,_.u);_.t=ky.prototype;_.t.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.t.attached=function(){this.keyboardFocused=!1};
_.t.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var a=_.K().resolve(_.Vv(_.S4));a&&(this.keyboardFocused=a.isKeyBoardInUse())}};
_.t.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.t.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}};
_.t.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)}};
_.t.handleUpdateToggleAction_=function(a){(a=_.A(a,aQJ))&&this.data&&a.targetId==this.data.targetId&&this.set("data.toggled",a.toggled)};
_.t.toBoolean_=function(a){return!!a};
_.t.reset=function(){};
_.t.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("data-changed",this.data))};
_.t.updateDataToggledFromBinding=function(a){this.set("data.toggled",a.detail.value)};
ky.prototype.dataChangedForBinding=ky.prototype.dataChangedForBinding;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],ky.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ky.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],ky.prototype,"data",void 0);_.f([_.b({computed:"computeDescription_(data.*)"}),_.z("design:type",Object)],ky.prototype,"description_",void 0);_.f([_.b({value:function(){return!!_.K().resolve(_.Vv(_.S4))&&_.r("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.z("design:type",Boolean)],ky.prototype,"useKeyboardFocused",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],ky.prototype,"keyboardFocused",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ky.prototype,"dataChangedForBinding",null);ky=_.f([_.TD({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],ky);
_.D(ky,"yt-toggle-form-field-renderer",function(){if(Ssl===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;OqA===void 0&&(OqA=document.createElement("template"));var Z=OqA;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Ssl=a}a=Ssl;return a},{mode:2});var KWV;var pxy;var Uh=function(){var a=_.u.apply(this,arguments)||this;a.isDarkTheme=!1;a.isSearch=!1;a.darkerDarkTheme=_.r("web_darker_dark_theme");a.noTopMargin=_.r("kevlar_watch_no_top_margin");a.maskFade=_.r("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};
_.c(Uh,_.u);_.t=Uh.prototype;_.t.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}}}}}};
_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.t.dataChanged=function(){var a=this.getSelectedIndex();if(a>0)this.selected=a;else{this.selected=0;var W,w;(W=this.ytScrollableChipCloudBehavior)==null||(w=W.reset)==null||w.call(W)}};
_.t.getSelectedIndex=function(){var a;if((a=this.data)==null||!a.chips)return-1;a=-1;for(var W,w=0;w<((W=this.data)==null?void 0:W.chips.length);w++){var Z=void 0,N=void 0;if((Z=this.data)==null?0:(N=Z.chips[w].chipCloudChipRenderer)==null?0:N.isSelected){a=w;break}}return a};
_.t.onResize=function(){var a=this.ytScrollableChipCloudBehavior;_.DW(a,a.setContainerWidthDiff);a8(this.ytScrollableChipCloudBehavior)};
_.t.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.t.handleRelatedChipCommand=function(a,W){a=this.JSC$14210_chipsSelector.indexOf(W);a!==-1&&this.JSC$14210_chipsSelector.selectIndex(a)};
_.t.handleChipCloudChipSelectAction=function(a){a=this.JSC$14210_chipsSelector.indexOf(a);a>-1&&this.JSC$14210_chipsSelector.selectIndex(a)};
_.t.handleChipCloudChipDeselectAction=function(){var a=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14210_chipsSelector&&((a==null?0:a.continuationCommand)?_.Z9(this.hostElement,[a]):(a==null?0:a.searchEndpoint)?this.ytComponentBehavior.resolveCommand(a):a&&_.N1(this.hostElement,[a],this.hostElement),this.JSC$14210_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.t.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
Uh.prototype.onResize=Uh.prototype.onResize;Uh.prototype.dataChanged=Uh.prototype.dataChanged;Uh.prototype.isSearchChanged=Uh.prototype.isSearchChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Uh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Uh.prototype,"actionHandlerBehavior",void 0);
_.f([_.R(_.eG),_.z("design:type",Object)],Uh.prototype,"ironResizableBehavior",void 0);_.f([_.R(),_.z("design:type",Er)],Uh.prototype,"ytScrollableChipCloudBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Uh.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Uh.prototype,"data",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],Uh.prototype,"selected",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Uh.prototype,"isDarkTheme",void 0);_.f([_.b({value:160}),_.z("design:type",Number)],Uh.prototype,"scrollDistance",void 0);_.f([_.b(),_.z("design:type",Object)],Uh.prototype,"isSearch",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Uh.prototype,"darkerDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Uh.prototype,"noTopMargin",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Uh.prototype,"maskFade",void 0);_.f([_.w$("#chips"),_.z("design:type",Object)],Uh.prototype,"JSC$14210_chipsSelector",void 0);_.f([_.a5("isSearch"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Uh.prototype,"isSearchChanged",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Uh.prototype,"dataChanged",null);
_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Uh.prototype,"onResize",null);Uh=_.f([_.TD({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Uh);
_.D(Uh,"yt-chip-cloud-renderer",function(){if(pxy===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;KWV===void 0&&(KWV=document.createElement("template"));var Z=KWV;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);pxy=a}a=pxy;return a},{mode:2});var rnR,An_=function(){return rnR!==void 0?rnR:rnR=document.createElement("template")};
document.head.appendChild(An_().content);var hch;var iq6=document.head,cnR=iq6.appendChild,ec_;if(hch===void 0){var nWR=document.createElement("template");_.n(nWR,"");nWR.content.insertBefore(An_().content.cloneNode(!0),nWR.content.firstChild);hch=nWR}ec_=hch;cnR.call(iq6,ec_.content);var jOL=_.xQ(function(a){var W=a.data;return _.k("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.k("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.k("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.k(_.Y,{cond:function(){return _.He(W().image)},
then:function(w){return _.k("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.k(_.qw,{data:w,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.k("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.k(_.k_,{text:function(){return W().title}})),_.k("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.k(_.k_,{text:function(){return W().subtitle}})))),_.k(_.Y,{cond:function(){var w;
return(w=W())==null?void 0:w.hasBottomDivider},
then:function(){return _.k("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ob");var LWR=_.xQ(function(a){var W=a.data;return _.k("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.k("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.k(_.Ax,{data:function(){var w;return(w=W().offerPlanDetailsItem)!=null?w:[]}},{offerPlanDetailsItemViewModel:function(w){return _.k("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.k(jOL,{data:w.data}))}})),_.k("div",null,_.k(_.Y,{cond:function(){return W().hasBottomDivider},
then:function(){return _.k("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.k("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.k("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.k("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.k("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Pb");var JnJ=_.xQ(function(a){var W=a.data;a=_.l(_.$1(!1,void 0,"SpEGQd"));var w=a.next().value,Z=a.next().value,N=_.$_(function(){Z(!w());return!1}),B=function(){var I;
return(I=W().offerPlanDetailsContainer)!=null?I:[]};
return _.k("lp-complex-offer-card-details-view-model",null,_.k("div",null,_.k(_.Y,{cond:function(){return w()},
then:function(){return _.k("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.k("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":N,"aria-expanded":w},_.k(_.k_,{text:function(){return W().expandedTitle}})),_.k("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.k(_.Ax,{data:B},{offerPlanDetailsContainerViewModel:function(I){return _.k("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.k(LWR,{data:I.data}))}})),_.k("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.k(_.k_,{text:function(){return W().legalText}})))},
else:function(){return _.k("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":N,"aria-expanded":w},_.k(_.k_,{text:function(){return W().collapsedTitle}}),_.k("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.k(_.P$,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Qb");var FWl=_.xQ(function(a){var W=a.data;return _.k("lp-complex-offer-card-option-view-model",null,_.k("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.k(_.Y,{cond:function(){return W().topDividerText},
then:function(){return _.k("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.k("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.k("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.k("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.k(_.k_,{text:function(){return W().topDividerText}}))))}}),_.k(_.Y,{cond:function(){return W().planPricingPrimary},
then:function(){return _.k("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.k(_.k_,{text:function(){return W().planPricingPrimary}}))}}),_.k(_.Y,{cond:function(){return W().planPricingSecondary},
then:function(){return _.k("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.k(_.k_,{text:function(){return W().planPricingSecondary}}))}}),_.k(_.Y,{cond:function(){return W().primaryButton},
then:function(){return _.k("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.k(_.Ax,{data:function(){return W().primaryButton}},{buttonViewModel:function(w){return _.k(_.F7,{data:w.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Rb");var MPR=_.xQ(function(a){var W=a.data;var w=function(){var B;return((B=W())==null?void 0:B.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
a={};var Z={},N={};return _.k("ytm-lp-complex-offer-card-view-model",null,_.k("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.k("div",{class:_.W$((a.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=w,a),"ytmLpComplexOfferCardViewModelCardContainer")},_.k(_.Y,{cond:function(){var B;return(B=W())==null?void 0:B.bannerText},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.k("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.k(_.k_,{text:function(){return W().bannerText}})))}}),_.k(_.Y,{cond:function(){return _.He(W().logo)},
then:function(B){var I={};return _.k("div",{class:_.W$((I.ytmLpComplexOfferCardViewModelLogoAlignLeft=w,I),"ytmLpComplexOfferCardViewModelLogo")},_.k(_.qw,{data:B,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.k("div",{class:_.W$((Z.ytmLpComplexOfferCardViewModelTitleAlignLeft=w,Z),"ytmLpComplexOfferCardViewModelTitle")},_.k(_.k_,{text:function(){return W().title}})),_.k(_.Y,{cond:function(){var B;
return(B=W())==null?void 0:B.subtitle},
then:function(){var B={};return _.k("div",{class:_.W$((B.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=w,B),"ytmLpComplexOfferCardViewModelSubtitle")},_.k(_.k_,{text:function(){return W().subtitle}}))}}),_.k(_.Y,{cond:function(){return W().planPricingPrimary},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.k(_.k_,{text:function(){return W().planPricingPrimary}}))}}),_.k(_.Y,{cond:function(){return W().planPricingSecondary},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.k(_.k_,{text:function(){return W().planPricingSecondary}}))}}),_.k(_.Y,{cond:function(){return W().purchaseButton},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.k(_.Ax,{data:function(){return W().purchaseButton}},{buttonViewModel:function(B){return _.k(_.F7,{data:B.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.k(_.Y,{cond:function(){var B;
return(B=W())==null?void 0:B.offerOptions},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.k(_.Ax,{data:function(){return W().offerOptions}},{lpComplexOfferCardOptionViewModel:FWl}))}}),_.k("div",{class:_.W$((N.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=w,N),"ytmLpComplexOfferCardViewModelLegalText")},_.k(_.k_,{text:function(){return W().legalText}})),_.k(_.Y,{cond:function(){var B;
return(B=W())==null?void 0:B.offerCardDetails},
then:function(){return _.k("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.k(_.Ax,{data:function(){return W().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:JnJ}))}}))))},"Sb");var RcL=_.xQ(function(a){var W=a.data;var w=function(){var I;return((I=W())==null?void 0:I.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
a={};var Z={},N={},B={};return _.k("ytm-lp-complex-offer-card-section-view-model",null,_.k("div",{class:_.W$("ytmLpComplexOfferCardSectionViewModelHost")},_.k("div",{class:_.W$((a.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=w,a),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.k("div",{class:_.W$((Z.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=w,Z),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.k("h2",{class:_.W$((N.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
w,N),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.k(_.k_,{text:function(){return W().title}}))),_.k(_.Y,{cond:function(){var I;
return(I=W())==null?void 0:I.subtitle},
then:function(){var I={},X={};return _.k("div",{class:_.W$((I.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=w,I),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.k("div",{class:_.W$((X.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=w,X),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.k(_.k_,{text:function(){return W().subtitle}})))}}),_.k("div",{class:_.W$((B.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=w,B),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.k(_.Ax,{data:function(){var I;
return(I=W().offerPlans)!=null?I:[]}},{lpComplexOfferCardViewModel:function(I){return _.k("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.k(MPR,{data:I.data}))}})))))},"Tb");_.Jy=UY$.getInstance();var qsV=_.xQ(function(a){return _.k("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":a.shouldAriaHideContent},_.k("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:a.questionId},_.k(_.k_,{text:a.question})))},"Ub"),QOA=_.xQ(function(a){var W=a.data;
var w=a.themeOverride;a=_.l(_.$1(!1,void 0,"ljTVPd"));var Z=a.next().value,N=a.next().value;a=_.$_(function(){N(!Z());return!1});
var B=function(){return Z()?"EXPAND_LESS":"EXPAND_MORE"},I=("faq-container"+_.Lw(_.Jy)).toString(),X="faq-question-and-answers-section-question"+_.Lw(_.Jy),v={},U={};
return _.k("faq-entry-view-model-c3",null,_.k("div",{class:_.W$("yt-lp-faq-entry-view-model",(v["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return w==null?void 0:w().useDarkTheme},v))},_.k("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":a,role:"button","aria-expanded":Z,"aria-labelledby":X.toString(),"tab-index":"0"},_.k(qsV,{question:function(){return W().question},
questionId:X,shouldAriaHideContent:!0}),_.k(_.Y,{cond:function(){return Z()!==void 0},
then:function(){return _.k("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.k(_.P$,{icon:B,ariaHidden:!0}),_.k("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.k("div",{class:_.W$("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!Z()},U))},_.k("div",{id:I},_.k(_.k6,{each:function(){return W().answers||[]}},function(O){return _.k("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.k(_.k_,{text:O}))})))))},"Vb");
QOA.idomCompat=!0;var xG_=_.xQ(function(a){var W=a.data;var w=a.themeOverride;a={};return _.k("lp-faq-section-view-model-c3",null,_.k("div",{class:_.W$("yt-lp-faq-section-view-model",(a["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},a["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(w==null||!w().useDarkTheme)},a))},_.k("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.k(_.Y,{cond:function(){return W().header},
then:function(Z){return _.k("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.k(_.k_,{text:Z}))}}),_.k("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.k(_.Ax,{data:function(){return W().faqs}},{faqEntryViewModel:function(Z){return _.k(QOA,{data:Z.data,
themeOverride:w})}})),_.k("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.k(_.k6,{each:function(){return W().footers||[]}},function(Z){return _.k(_.k_,{text:Z})})),_.k(_.Y,{cond:function(){return W().legal},
then:function(Z){return _.k("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.k(_.k_,{text:Z}))}}))))},"Wb");
xG_.idomCompat=!0;var bqV=_.xQ(function(a){var W=a.data;var w=a.themeOverride;_.AS(function(){var I=W().gtmId;I&&_.g4(I,_.LF("GL",""))});
var Z={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var I,X,v;return(v=(I=W().logo)==null?void 0:(X=I.accessibilityData)==null?void 0:X.label)!=null?v:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},N=_.K().resolve(_.Vv(_.Lt)),B=function(){return N&&N()||(w==null?void 0:w().useDarkTheme)};
return _.k("lp-header-section-view-model",null,_.k("div",{class:function(){var I=W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",X=W().marginType==="LP_SECTION_MARGIN_TYPE_TOP",v=w==null?void 0:w().useDarkTheme,U=["lp-header-section-view-model"];I&&U.push("lp-header-section-view-model--ptc-layout-type");X&&U.push("lp-header-section-view-model__lp-header-section-margin");v&&U.push("lp-header-section-view-model--premium-force-dark-mode");return U.join(" ")}},_.k(_.Y,{cond:function(){return W().logo},
then:function(){return _.k("div",null,_.k(_.Y,{cond:B,then:function(){return _.k(_.Y,{cond:function(){var I;return(I=W().logo)==null?void 0:I.imageDark},
then:function(I){return _.k(_.qw,Object.assign({},{data:I},Z))}})},
else:function(){return _.k(_.Y,{cond:function(){var I;return(I=W().logo)==null?void 0:I.imageLight},
then:function(I){return _.k(_.qw,Object.assign({},{data:I},Z))}})}}))}}),_.k(_.Y,{cond:function(){return W().title},
then:function(I){return _.k("div",{class:"lp-header-section-view-model__lp-header-title"},_.k(_.k_,{text:I}))}}),_.k("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.k(_.Y,{cond:function(){return W().subtitles},
then:function(I){return _.k(_.k6,{each:I},function(X){return _.k("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.k(_.k_,{text:X}))})}})),_.k(_.Y,{cond:function(){return W().additionalInfo},
then:function(I){return _.k("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.k(_.k_,{text:I}))}}),_.k("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.k(_.Y,{cond:function(){return W().primaryButton},
then:function(I){return _.k("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.k(_.Ax,{data:I},{buttonViewModel:_.F7}))}}),_.k(_.Y,{cond:function(){return W().secondaryButton},
then:function(I){return _.k("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.k(_.Ax,{data:I},{buttonViewModel:_.F7}))}})),_.k(_.Y,{cond:function(){return W().otherOffersInfo},
then:function(I){return _.k("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.k(_.k_,{text:I}))}}),_.k("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.k(_.Y,{cond:function(){return W().billingInfo},
then:function(I){return _.k(_.k6,{each:I},function(X){return _.k("div",null,_.k(_.k_,{text:X}))})}}))))},"Xb");
bqV.idomCompat=!0;var sOH=_.xQ(function(a){var W=a.data;var w=_.qt(a.themeOverride,{useDarkTheme:!1});a={};a=_.W$("ytm-lp-headline-section-view-model",(a["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return w().useDarkTheme},a));
return _.k("lp-headline-section-view-model",null,_.k("div",{class:a},_.k("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.k(_.k_,{text:function(){return W().title}})),_.k(_.Y,{cond:function(){return W().subtitle},
then:function(Z){return _.k("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.k(_.k_,{text:Z}))}})))},"Yb");var uRT=_.xQ(function(a){var W=a.data;var w=a.themeOverride;var Z=_.K().resolve(_.Vv(_.Lt)),N=function(){return Z&&Z()||(w==null?void 0:w().useDarkTheme)},B=function(){var U,O;
var S=N()?(U=W().textBackgroundImage)==null?void 0:U.imageDark:(O=W().textBackgroundImage)==null?void 0:O.imageLight;return nyS((S==null?void 0:S.sources)||[])},I=function(){var U,O;
return N()?(U=W().featureImage)==null?void 0:U.imageDark:(O=W().featureImage)==null?void 0:O.imageLight},X=function(){return W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},v=function(){var U,O;
return N()?(U=W().logo)==null?void 0:U.imageDark:(O=W().logo)==null?void 0:O.imageLight};
return _.k("ytm-lp-large-feature-section-view-model",null,_.k("div",{class:function(){var U=W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",O=W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",S=(W().index||0)%2===1,T=w==null?void 0:w().useDarkTheme,p=["yt-lp-large-feature-section-view-model"];U?p.push("yt-lp-large-feature-section-view-model--music-feature-type"):O?p.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):S||p.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
T&&p.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return p.join(" ")}},_.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.k(_.Y,{cond:I,
then:function(){return _.k(_.qw,{data:function(){return I()},
alt:function(){var U,O,S;return(S=(U=W().featureImage)==null?void 0:(O=U.accessibilityData)==null?void 0:O.label)!=null?S:""},
contentMode:X})}})),_.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var U;return((U=B())==null?0:U.url)?"background-image: url("+_.SB(B().url)+");":""}},_.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.k(_.Y,{cond:v,
then:function(){return _.k(_.qw,{data:function(){return v()},
alt:function(){var U,O,S;return(S=(U=W().logo)==null?void 0:(O=U.accessibilityData)==null?void 0:O.label)!=null?S:""},
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"})}}),_.k(_.Y,{cond:function(){return W().eyebrowText},
then:function(){return _.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.k(_.k_,{text:function(){return W().eyebrowText}}))}}),_.k(_.Y,{cond:function(){return W().title},
then:function(){return _.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.k(_.k_,{text:function(){return W().title}}))}}),_.k(_.Y,{cond:function(){return W().subtitles},
then:function(){return _.k("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.k(_.k6,{each:function(){return W().subtitles||[]}},function(U){return _.k(_.k_,{text:U})}))}})))))},"Zb");
uRT.idomCompat=!0;var CPR=_.xQ(function(a){return _.k("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.k("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.k(_.P$,{icon:function(){var W;return(W=a.data())==null?void 0:W.iconType},
className:function(){var W;return((W=a.data())==null?void 0:W.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.k("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.k(_.k_,{text:function(){var W;
return(W=a.data())==null?void 0:W.text}}))))},"$b");var Gm_=_.xQ(function(a){a=_.Qn(a,{config:void 0,themeOverride:void 0});var W=a.data,w=a.config,Z=a.themeOverride;a={};a=_.W$("ytm-lp-offer-card-option-view-model",(a["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var v;return(v=Z())==null?void 0:v.useDarkTheme},a));
var N=_.$_(function(){var v,U;(v=w())==null||(U=v.handleRadioButtonClick)==null||U.call(v,W());return!1}),B=function(){var v;
return(v=w())==null?void 0:v.shouldDisplayRadioButton},I=_.$_(function(){if(B()){var v,U;
(v=w())==null||(U=v.handleRadioButtonClick)==null||U.call(v,W())}return!1}),X=function(){var v;
return(v=W().featureListItems)!=null?v:[]};
return _.k("ytm-lp-offer-card-option-view-model",null,_.k("div",{class:a,"on:click":I},_.k(_.Y,{cond:B,then:function(){return _.k("div",null,_.k("input",{type:"radio","on:click":N,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var v;return!((v=w())==null||!v.isOptionSelected)}}))}}),_.k("div",null,_.k("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.k(_.k_,{text:function(){return W().eyebrowText}})),_.k("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.k(_.k_,{text:function(){return W().title}})),_.k("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.k(_.k_,{text:function(){return W().subtitle}})),_.k(_.Y,{cond:function(){return X().length>0},
then:function(){return _.k("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.k(_.Ax,{data:X},{lpFeatureListItemViewModel:CPR}))}}),_.k("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.k(_.k_,{text:function(){return W().description}})))))},"ac");
Gm_.idomCompat=!0;var DGJ=_.xQ(function(a){var W=a.data;var w=a.themeOverride;a=_.l(_.l5(function(){var B,I=(B=W().offerOptions)==null?void 0:B[0];return _.A(I,P3E)||{}}));
var Z=a.next().value,N=a.next().value;a={};return _.k("ytm-lp-offer-card-view-model",null,_.k("div",{class:_.W$("ytm-lp-offer-card-view-model",(a["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(w==null||!w().useDarkTheme)},a))},_.k("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.k(_.Y,{cond:function(){return W().titleIconType},
then:function(){return _.k("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.k(_.P$,{icon:function(){var B;return((B=W().titleIconType)==null?void 0:B.toString())||""}}))}}),_.k("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.k(_.k_,{text:function(){return W().title}})),_.k(_.Ax,{data:function(){return W().titleBadge}},{badgeViewModel:function(B){return _.k("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.k(_.DU,{data:B.data}))}})),_.k("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.k(_.Ax,{data:function(){return W().offerOptions}},{lpOfferCardOptionViewModel:function(B){var I=B.data;
return _.k(_.Ha,null,_.k("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.k(Gm_,{data:I,config:function(){var X;return{shouldDisplayRadioButton:(W().offerOptions||[]).length>1,isOptionSelected:I().id===((X=Z())==null?void 0:X.id),handleRadioButtonClick:function(v){return void N(v)}}},
themeOverride:w}))}})),_.k("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.k(_.Ax,{data:function(){var B;
return(B=Z())==null?void 0:B.purchaseButtonOverride}},{buttonViewModel:_.F7}))))},"bc");
DGJ.idomCompat=!0;var fyV=_.xQ(function(a){var W=a.data;var w=a.themeOverride;a={};a=_.W$("ytm-lp-offer-card-section-view-model",(a["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var Z;return w==null?void 0:(Z=w())==null?void 0:Z.useDarkTheme},a));
return _.k("ytm-lp-offer-card-section-view-model",null,_.k("div",{class:a},_.k(_.Y,{cond:function(){return W().title!==void 0},
then:function(){return _.k("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.k("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.k(_.k_,{text:function(){return W().title}})),_.k(_.Y,{cond:function(){return W().subtitle},
then:function(){return _.k("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.k(_.k_,{text:function(){return W().subtitle}}))}}))}}),_.k("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.k(_.Ax,{data:function(){return W().offerCards}},{lpOfferCardViewModel:function(Z){return _.k("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.k(DGJ,{data:Z.data,
themeOverride:w}))}})),_.k(_.Y,{cond:function(){return W().footer},
then:function(){return _.k("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.k(_.k_,{text:function(){return W().footer}}))}})))},"cc");var dG6=_.xQ(function(a){var W=a.data;return _.k("lp-offer-table-cell-content-view-model",null,_.k("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.k(_.Y6,null,_.k(_.Ut,{when:function(){return W().title}},function(){return _.k(_.k_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return W().title}})}),_.k(_.Ut,{when:function(){return W().subTitle}},function(){return _.k(_.k_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return W().subTitle}})}),_.k(_.Ut,{when:function(){return W().featureDescription}},function(){return _.k(_.k_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return W().featureDescription}})}),_.k(_.Ut,{when:function(){return W().description}},function(){return _.k(_.k_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return W().description}})}),_.k(_.Ut,{when:function(){return W().iconType}},function(){return _.k("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.k(_.P$,{icon:function(){return W().iconType.toString()}}))}),_.k(_.Ut,{when:function(){return W().purchaseButton}},function(){return _.k(_.Ax,{data:function(){return W().purchaseButton}},{buttonViewModel:function(w){return _.k("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.k(_.F7,{data:w.data}))}})}),_.k(_.Ut,{when:function(){return W().note}},function(){return _.k(_.k_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return W().note}})}),_.k(_.Ut,{when:function(){return W().featureDetail}},function(){return _.k(_.k_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return W().featureDetail}})}),_.k(_.Ut,{when:function(){return W().badge}},function(){return _.k(_.Ax,{data:function(){return W().badge}},{badgeViewModel:_.DU})}))))},"dc");
dG6.idomCompat=!0;var mGl=_.xQ(function(a){var W=a.data;return _.k("lp-offer-table-cell-view-model",null,_.k("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(W().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;"}}},_.k(_.Ax,{data:function(){return W().contents}},{lpOfferTableCellContentViewModel:dG6})))},
"ec");
mGl.idomCompat=!0;var VPV=_.xQ(function(a){var W=a.data;var w=a.lpTableIsFirstRow;var Z=a.lpTableIsLastRow;var N=function(){return(w==null?0:w())?"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"},B=function(){return(w==null?0:w())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(Z==null?0:Z())?"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 _.k("ytm-lp-offer-table-row-view-model",null,_.k("div",{class:"yt-lp-offer-table-row-view-model"},_.k(_.Ax,{data:function(){return W().rowHeaderCell}},{lpOfferTableCellViewModel:function(I){return _.k("div",{class:N},_.k(mGl,{data:I.data}))}}),_.k(_.Ax,{data:function(){return W().contentCells}},{lpOfferTableCellViewModel:function(I){return _.k("div",{class:B},_.k(mGl,{data:I.data}))}})))},"fc");
VPV.idomCompat=!0;var zcH=_.xQ(function(a){var W=a.data;var w=a.themeOverride;var Z=_.K().resolve(_.Vv(_.Lt)),N=function(){return _.A(W().logo,YAE)||{}};
a={};return _.k("ytm-lp-offer-table-section-view-model",null,_.k("div",{class:"yt-lp-offer-table-view-model"},_.k(_.Y,{cond:function(){var B,I;return Z&&Z()||(w==null?0:w().useDarkTheme)?(B=N())==null?void 0:B.imageDark:(I=N())==null?void 0:I.imageLight},
then:function(B){return _.k(_.qw,{data:B,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var I,X,v;return(v=(I=N())==null?void 0:(X=I.accessibilityData)==null?void 0:X.label)!=null?v:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.k(_.k_,{text:function(){return W().title}})),_.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.k(_.k_,{text:function(){return W().subtitle}})),_.k(_.Y,{cond:function(){return W().disclaimers},
then:function(B){return _.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.k(_.k6,{each:B},function(I){return _.k("div",null,_.k(_.k_,{text:I}))}))}}),_.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.k(_.Ax,{data:function(){return W().rows}},{lpOfferTableRowViewModel:function(B,I){return _.k(VPV,{data:B.data,
lpTableIsFirstRow:function(){return I()===0},
lpTableIsLastRow:function(){return I()===W().rows.length-1}})}})),_.k("div",{class:_.W$((a["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return W().hasFooterBackground},a))},_.k(_.Y,{cond:function(){return W().footer},
then:function(){return _.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.k(_.k_,{text:function(){return W().footer}}))}}),_.k(_.Y,{cond:function(){return W().footerTitle},
then:function(){return _.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.k(_.k_,{text:function(){return W().footerTitle}}))}}),_.k(_.Y,{cond:function(){return W().footerDescription},
then:function(){return _.k("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.k(_.k_,{text:function(){return W().footerDescription}}))}}))))},"gc");
zcH.idomCompat=!0;var Hq$=_.xQ(function(a){var W=a.data;var w=a.themeOverride;var Z=_.K().resolve(_.Vv(_.Lt)),N=function(){var X;return w==null?void 0:(X=w())==null?void 0:X.useDarkTheme},B=function(){var X,v;
return Z&&Z()||N()?(X=W().image)==null?void 0:X.imageDark:(v=W().image)==null?void 0:v.imageLight};
a={};a=_.W$("ytm-lp-small-feature-section-view-model",(a["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=N,a));var I=function(){var X,v,U;return(U=(X=W().image)==null?void 0:(v=X.accessibilityData)==null?void 0:v.label)!=null?U:""};
return _.k("ytm-lp-small-feature-section-view-model",{class:a},_.k(_.Y,{cond:function(){return B()&&!qeH},
then:function(){return _.k("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.k(_.qw,{data:function(){return B()},
alt:I,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.k("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.k("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.k(_.Y,{cond:function(){return W().title},
then:function(X){return _.k(_.k_,{text:X})}})),_.k("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.k(_.k_,{text:function(){return W().description}}))))},"hc");
Hq$.idomCompat=!0;var ynT=_.xQ(function(a){var W=a.data;var w=a.themeOverride;a={};return _.k("ytm-lp-small-feature-section-group-view-model",null,_.k("div",{class:_.W$("ytm-lp-small-feature-section-group-view-model",(a["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(w==null||!w().useDarkTheme)},a))},_.k("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.k(_.Ax,{data:function(){return W().smallFeatures}},{lpSmallFeatureSectionViewModel:function(Z){return _.k("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.k(Hq$,{data:Z.data,
themeOverride:w}))}}))))},"ic");
ynT.idomCompat=!0;_.Ct(_.xQ(function(a){var W=a.data;var w=function(){return W().forcedTheme==="USER_INTERFACE_THEME_DARK"},Z=function(){return W().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},N=function(){var I="",X,v;
var U=_.K().resolve(_.Vv(_.Lt));U=w()||(U==null?0:U())?(X=W().themedImageViewModel)==null?void 0:X.imageDark:(v=W().themedImageViewModel)==null?void 0:v.imageLight;(X=nyS((U==null?void 0:U.sources)||[]))&&X.url&&(I=Z()?"background-image: linear-gradient(to bottom, transparent, "+(W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.SB(X.url)+");":"background-image: url("+_.SB(X.url)+");");return I},B=function(){return{useDarkTheme:w()}};
a={};return _.k("yt-section-group-view-model",null,_.k("div",{class:_.W$("yt-lp-section-group-view-model",(a["yt-lp-section-group-view-model--premium-force-dark-mode"]=w,a["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},a))},_.k(_.Y,{cond:function(){return N().length},
then:function(){var I={};return _.k("div",{class:_.W$("yt-lp-section-group-view-model__bg-image",(I["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=Z,I)),style:N})}}),_.k("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.k(_.Ax,{data:function(){return W().sections}},{lpFaqSectionViewModel:function(I){return _.k(xG_,{data:I.data,
themeOverride:B})},
lpHeaderSectionViewModel:function(I){return _.k(bqV,{data:I.data,themeOverride:B})},
lpHeadlineSectionViewModel:function(I){return _.k(sOH,{data:I.data,themeOverride:B})},
lpLargeFeatureSectionViewModel:function(I){return _.k(uRT,{data:I.data,themeOverride:B})},
lpOfferCardSectionViewModel:function(I){return _.k(fyV,{data:I.data,themeOverride:B})},
lpComplexOfferCardSectionViewModel:function(I){return _.k(RcL,{data:I.data})},
lpOfferTableSectionViewModel:function(I){return _.k(zcH,{data:I.data,themeOverride:B})},
lpSmallFeatureSectionGroupViewModel:function(I){return _.k(ynT,{data:I.data,themeOverride:B})}}))))},"jc"),"yt-section-group-view-model",{props:{data:_.qR}});var Sk7=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.EWl=_.xQ(function(a){function W(){if(Sk7.has(a.data().displayType)){var U=!Z(),O;if((O=a.disableDeselection)==null||!O.call(a)||U){a.data().selected=U;O=Object.assign({},I(),{selected:U});X(O);var S;(S=a.callback)==null||S.call(a,O,U)}}}
var w=_.D8(),Z=function(){var U,O;return!!(((U=a.selected)==null?void 0:U.call(a))!==void 0?(O=a.selected)==null?0:O.call(a):I().selected)},N=_.l(_.l5(a.data)),B=N.next().value;
N=N.next().value;var I=B,X=N,v=_.X7(Oyv,function(){return a.data().chipEntityKey||""});
return _.k("chip-view-model",{class:"ytChipViewModelHost",el:w},_.k(MIA,{data:function(){var U,O=Object.assign({},I(),{selected:Z()}),S=v(),T=(U=a.disableDeselection)==null?void 0:U.call(a);a:switch(O.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":U=1;break a;default:U=0}return{text:(S==null?void 0:S.text)||O.text,state:O.disabled?1:O.selected?0:2,type:U,onTap:YkU(O,w,W,T),accessibilityLabel:O.accessibilityLabel||O.text}}}))},"kc");
_.EWl.idomCompat={callbacks:{callback:!0}};_.a1V=_.xQ(function(a){var W=_.X7(UeF,function(){var I;return(I=a.data())==null?void 0:I.chipBarStateEntityKey}),w=function(){return a.data().disableDeselection},Z=_.l(_.l5(function(){var I;
if(((I=W())==null?void 0:I.selectedIndex)!=void 0)return W().selectedIndex;var X,v;I=_.l(((X=a.data())==null?void 0:(v=X.chips)==null?void 0:v.entries())||[]);for(X=I.next();!X.done;X=I.next()){X=_.l(X.value);v=X.next().value;X=X.next().value;var U=void 0;if((U=_.A(X,_.qa))==null?0:U.selected)return v}return-1})),N=Z.next().value,B=Z.next().value;
return _.k("chip-bar-view-model",{class:_.W$("ytChipBarViewModelHost",a.className),role:"tablist"},_.k(_.Ax,{data:function(){return a.data().chips}},{chipViewModel:function(I,X){return _.k("div",{class:"ytChipBarViewModelChipWrapper"},_.k(_.EWl,{data:I.data,
selected:function(){return X()===N()},
callback:function(v,U){v=!!U;U=X();B(v?U:-1);var O,S=(O=a.data())==null?void 0:O.chipBarStateEntityKey;S&&v&&_.R5(_.oL("chipBarStateEntity",S,{key:S,selectedIndex:U}))},
disableDeselection:a.disableDeselection||w}))}}))},"lc");_.Ct(_.a1V,"chip-bar-view-model",{props:{data:_.ux,className:_.ux,disableDeselection:_.ux}});_.WEy=_.xQ(function(a){var W=a.data;a={};return _.k("divider-view-model",{class:_.W$("divider-view-model-wiz",(a["divider-view-model-wiz__inset-thin-padding"]=function(){return W().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},a))},_.k("div",{class:_.W$("divider-view-model-wiz__base-divider",function(){return Tp8(W().dividerStyle)}),
style:_.It({"background-color":function(){return W().backgroundColor?_.KC(W().backgroundColor):void 0}})}))},"mc");
_.WEy.idomCompat=!0;_.Ct(_.WEy,"divider-view-model",{props:{data:_.qR}});var nw=new Map,er=new Map,ra9=0,jr;var j_9=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],F2v={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var wQT,ZsT;wQT=function(a){return function(W){return function(){return String(W())+a}}};
_.Oh=wQT("px");ZsT=wQT("s");var tq6=_.xQ(function(a){function W(d){return function(){var ZD=p().numItemsPerGridRow,aC=d()*ZD;ZD=aC+ZD;var Bv,Am;return(Am=(Bv=Z().contents)==null?void 0:Bv.slice(aC,ZD))!=null?Am:[]}}
var w=_.Qn(a,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),Z=w.data,N=w.layoutContainerWidth,B=w.shouldUseOwnContainerSize,I=w.marginSettings;w=_.l(_.$1(!0,void 0,"qgr2Je"));var X=w.next().value,v=w.next().value,U=function(){var d,ZD=(d=_.A(Z().showMoreButton,_.hx))==null?void 0:d.trackingParams;ZD&&_.lM(_.$J(),ZD);v(!1)},O=function(){var d,ZD=(d=_.A(Z().showLessButton,_.hx))==null?void 0:d.trackingParams;
ZD&&_.lM(_.$J(),ZD);v(!0)};
w=_.D8();var S=_.Rkv(w,{canHaveZeroSize:!1}),T=function(){var d;return(d=Z().contentAspectRatio)!=null?d:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},p=_.XT(function(){var d=_.VP({containerWidth:B()&&S.width()>0?S.width()||N():N(),
sizing:"EXTRA_COMPACT",marginSettings:I(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:d.maxContainerWidth,numItemsPerGridRow:d.numItems,contentPadding:B()?d.margin:d.contentMargin,itemWidth:d.itemWidth,itemMargin:d.gutter/2}},void 0,"pqVdjc"),h=function(){if(Z().enableVerticalExpansion){if(X())return 1;
var d,ZD,aC=(ZD=(d=Z().contents)==null?void 0:d.length)!=null?ZD:0;return Math.ceil(aC/p().numItemsPerGridRow)}return p().numItemsPerGridRow<=2?2:1},L=function(){return Z().enableVerticalExpansion&&Z().showLessButton&&!X()&&h()>1},F=function(){var d,ZD;
return Z().enableVerticalExpansion&&Z().showMoreButton&&X()&&((ZD=(d=Z().contents)==null?void 0:d.length)!=null?ZD:0)>p().numItemsPerGridRow},x=function(){return!L()},G=function(){return!F()},V={};
return _.k("grid-shelf-view-model",{class:_.W$("ytGridShelfViewModelHost",a.className,(V.ytGridShelfViewModelHostHasBottomButton=function(){return L()||F()},V)),
el:w,style:_.It({"margin-left":(0,_.Oh)(function(){return p().contentPadding}),
"margin-right":(0,_.Oh)(function(){return p().contentPadding})})},_.k(_.Y,{cond:function(){return _.A(Z().header,LTh)},
then:function(d){return _.k(_.yR,{data:d,disableHorizontalPadding:!0})}}),_.k("div",null,_.k(_.k6,{each:function(){return Array(h())}},function(d,ZD){return _.k(NW$,{className:a.className,
items:W(ZD),responsiveGridShelfLayout:p,contentAspectRatio:T})})),_.k("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.k(_.Ax,{data:function(){return Z().showMoreButton}},{buttonViewModel:function(d){return _.k("div",{hidden:G},_.k(_.F7,{data:d.data,
onClick:U}))}}),_.k(_.Ax,{data:function(){return Z().showLessButton}},{buttonViewModel:function(d){return _.k("div",{hidden:x},_.k(_.F7,{data:d.data,
onClick:O}))}})))},"nc");
tq6.idomCompat=!0;var NW$=_.xQ(function(a){var W=a.items;var w=a.responsiveGridShelfLayout;var Z=a.contentAspectRatio;a=a.className;var N=_.D8();pVe(N,function(){a:{var I=N.value;for(var X=W(),v=[],U=0;U<X.length;U++){var O=_.A(X[U],U7J);if(!O||O==null||!O.inlinePlayerData){I=null;break a}var S=I.children.item(U);if(!S){I=null;break a}v.push({thumbnailElement:S,videoData:O})}I={gridVideoPreviewData:{gridItems:v}}}return I});
var B=(0,_.Oh)(function(){return-w().itemMargin});
return _.k("div",{el:N,class:_.W$("ytGridShelfViewModelGridShelfRow",a),style:_.It({"margin-left":B,"margin-right":B})},_.k(_.Ax,{data:W,replacementWrapper:function(I){return _.k($u$,{responsiveGridShelfLayout:w},I)}},{shortsLockupViewModel:function(I){return _.k($u$,{responsiveGridShelfLayout:w},_.k(Dph,{data:I.data,
aspectRatio:function(){return Z()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"oc"),$u$=_.xQ(function(a){return _.k("div",{style:_.It({width:(0,_.Oh)(function(){return a.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+a.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},a.children)},"pc");
tq6.idomCompat=!0;_.Ct(tq6,"grid-shelf-view-model",{props:{data:_.qR,layoutContainerWidth:_.qR,shouldUseOwnContainerSize:_.qR,marginSettings:_.qR,className:_.qR}});_.BW_=_.xQ(function(a){var W=_.l(_.$1(!1,void 0,"YYtxR")),w=W.next().value,Z=W.next().value;W={};return _.k("yt-alert-banner-view-model",{class:_.W$("ytAlertBannerViewModelHost",a.className,function(){var N;a:switch((N=a.data())==null?void 0:N.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":N="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":N="ytAlertBannerViewModelWarning";break a;default:N="ytAlertBannerViewModelInformational"}return N},(W.ytAlertBannerViewModelDismissed=
w,W.ytAlertBannerViewModelFullbleed=a.fullbleed,W.ytAlertBannerViewModelNarrow=a.narrow,W.ytAlertBannerViewModelIsInRichGrid=a.isInRichGrid,W))},_.k(_.Y,{cond:function(){var N;
return!((N=a.data())==null?0:N.hideIcon)},
then:function(){return _.k("div",{class:"ytAlertBannerViewModelIcon"},_.k(_.P$,{icon:function(){return"info_circle"}}))}}),_.k("div",{class:"ytAlertBannerViewModelOuterContainer"},_.k("div",{class:"ytAlertBannerViewModelContainer"},_.k("div",{class:"ytAlertBannerViewModelContent"},_.k("div",{class:"ytAlertBannerViewModelHeading"},_.k(_.k_,{text:function(){var N;
return(N=a.data())==null?void 0:N.heading}})),_.k("div",{class:"ytAlertBannerViewModelBody"},_.k(_.k_,{text:function(){var N;
return(N=a.data())==null?void 0:N.body}})))),_.k(_.Ax,{data:function(){var N;
return(N=a.data())==null?void 0:N.actionButton}},{buttonViewModel:function(N){return _.k(_.F7,{data:N.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.k(_.Ax,{data:function(){var N;
return(N=a.data())==null?void 0:N.dismissButton}},{buttonViewModel:function(N){return _.k(_.F7,{data:N.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var B;((B=a.data())==null?0:B.disableLocalDismissBehavior)||Z(!0)}})}}))},"qc");_.Ct(_.BW_,"yt-alert-banner-view-model",{props:{data:_.qR,fullbleed:_.qR,narrow:_.qR,isInRichGrid:_.qR,className:_.qR}});var qkE;qkE=_.T9({chipViewModel:_.EWl,buttonViewModel:_.F7});_.l1R=_.NX(Q_D,{callbacks:{callback:!0}});_.En(Q_D);_.Ct(_.l1R,"chips-shelf-view-model",{props:{data:_.qR,callback:_.ux,enableSingleChipSelection:_.qR,disableChipsScrollAnimation:_.qR}});var I1L=_.xQ(function(a){a=_.Qn(a,{disabled:!1});var W=a.active,w=a.disabled;a={};a=_.W$("ytSwitchShapeTrack",(a.ytSwitchShapeTrackActive=function(){return W()},a.ytSwitchShapeTrackDisabled=function(){return w()},a));
var Z={};Z=_.W$("ytSwitchShapeKnob",(Z.ytSwitchShapeKnobActive=function(){return W()},Z));
return _.k("switch-shape",{class:"ytSwitchShapeHost"},_.k("div",{class:a}),_.k("div",{class:Z}))},"rc");var PmV=_.xQ(function(a){var W=_.Qn(a,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),w=W.data;a=W.className;var Z=W.handleOnTapEventInParent,N=W.parentActive;W=_.l(_.l5(function(){var S;return(S=N())!=null?S:w().switchedOnByDefault||!1}));
var B=W.next().value,I=W.next().value,X=function(){return w().isDisabled},v=_.D8();
W=_.$_(function(S){return S.key==="Enter"?(S.preventDefault(),v.value.click(),!1):!0});
var U=_.$_(function(S){if(w().handleOnTapEventInParent||Z())return!0;if(X())return!1;uA7(w(),B(),S);I(!B());return!1}),O={};
O=_.W$("ytSwitchButtonViewModelButton",(O.ytSwitchButtonViewModelTappable=function(){return!X()},O));
return _.k("switch-button-view-model",{class:_.W$("ytSwitchButtonViewModelHost",a)},_.k("button",{el:v,class:O,"on:click":U,"on:keydown":W,"aria-label":function(){return B()?w().a11yLabelSwitchedOn:w().a11yLabelSwitchedOff},
"aria-pressed":B,"aria-disabled":X},_.k(I1L,{active:B,disabled:X})))},"sc");_.En(fNI);var vzA=_.xQ(function(a){var W=_.Qn(a,{checked:!1});a=W.name;var w=W.onChange,Z=W.onClick,N=W.checked,B=W.labelRenderable,I=W.hasLeadingLabel,X=W.labelClass,v=W.isCompact,U=W.selectElementClass;W=W.disableHorizontalPadding;var O="checkbox"+_.Lw(_.Jy),S=_.$_(function(h){Z==null||Z(h);return!1}),T=_.$_(function(h){w==null||w(h);
return!1}),p={};
return _.k("checkbox-shape",null,_.k("label",{class:_.W$("checkbox-shape-wiz",X,(p["checkbox-shape-wiz--compact"]=v,p["checkbox-shape-wiz--disable-horizontal-padding"]=W,p))},_.k("input",{class:"checkbox-shape-wiz__input",id:O,checked:N,name:a,type:"checkbox","prop:checked":N,"on:change":T,"on:click":S}),_.k(_.Y,{cond:function(){return!(I==null?0:I())},
then:function(){return _.k(XQA,{isLeading:!0,selectElementClass:U})}}),_.k(_.Y,{cond:function(){return!!B},
then:function(){return _.k("div",{class:"checkbox-shape-wiz__label"},B==null?void 0:B())}}),_.k(_.Y,{cond:I,
then:function(){return _.k(XQA,{isLeading:!1,selectElementClass:U})}})))},"tc"),aF8=_.r("web_enable_sink_checkbox_shape")?vzA:fNI,gzH=_.r("web_enable_sink_checkbox_shape")?vzA:_.NX(fNI,{callbacks:{onChange:!0,
onClick:!0,labelRenderable:!0}});vzA.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var XQA=_.xQ(function(a){var W=a.selectElementClass;a={};return _.k("div",{class:_.W$("checkbox-shape-wiz__checkbox",W,(a["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(W==null?0:W())},a)),
"aria-hidden":"true"},_.k(_.P$,{icon:_.r("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.k(_.P$,{icon:_.r("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"uc");_.En(me9);var kjH,WgI;kjH=_.xQ(function(a){var W=a.name;var w=a.onChange;var Z=a.onClick;var N=a.checked;var B=a.labelRenderable;var I=a.useCheckIcon;var X=a.hasLeadingLabel;var v=a.labelClass;var U=a.isCompact;var O=a.selectElementClass;var S=a.ariaLabel;a=a.className;var T="radio"+_.Lw(_.Jy),p=_.$_(function(d){w==null||w(d);return!1}),h=_.$_(function(d){Z==null||Z(d);
return!1}),L=_.l(_.$1(!1,void 0,"HG0s4c")),F=L.next().value,x=L.next().value;
L=_.$_(function(){var d;((d=_.K().resolve(_.Vv(_.S4)))==null?0:d.isKeyBoardInUse())&&x(!0)});
var G=_.$_(function(){x(!1)}),V={};
return _.k("radio-shape",{class:_.W$("radio-shape-wiz",a)},_.k("input",{class:"radio-shape-wiz__input",id:T,"prop:checked":N,name:W,type:"radio","on:change":p,"on:click":h,"aria-label":S,"on:focusin":L,"on:focusout":G}),_.k("label",{class:_.W$("radio-shape-wiz__label-container",v,(V["radio-shape-wiz--compact"]=U,V["radio-shape-wiz__label-container--keyboard-focused"]=F,V)),for:T},_.k(_.Y,{cond:function(){return!(X==null?0:X())},
then:function(){return _.k(ozH,{checked:N,useCheckIcon:I,isLeading:!0,selectElementClass:O})}}),_.k(_.Y,{cond:function(){return!!B},
then:function(){return _.k("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(S==null?0:S())?"true":"false"}},B==null?void 0:B())}}),_.k(_.Y,{cond:X,
then:function(){return _.k(ozH,{checked:N,useCheckIcon:I,isLeading:!1,selectElementClass:O})}})))},"vc");
WgI=_.r("web_enable_sink_radio_shape")?kjH:me9;_.Sb=_.r("web_enable_sink_radio_shape")?kjH:_.NX(me9,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});kjH.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var ozH=_.xQ(function(a){var W=a.useCheckIcon;var w=a.selectElementClass;a=function(){return(W==null?0:W())?"CHECK":_.r("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var Z={};return _.k("div",{class:_.W$("radio-shape-wiz__radio",w,(Z["radio-shape-wiz__radio--check-icon"]=W,Z["radio-shape-wiz__radio--radio-default-style"]=function(){return!(w==null?0:w())},Z)),
"aria-hidden":"true"},_.k(_.P$,{icon:a}),_.k(_.P$,{icon:a,active:function(){return!(W==null?0:W())}}))},"wc");var Hy9=_.T9({buttonViewModel:_.F7,switchButtonViewModel:PmV,avatarViewModel:_.c6,accountLinkButtonViewModel:Y7H,subscribeButtonViewModel:_.oLe,collectionThumbnailViewModel:MZE,toggleButtonViewModel:_.ce});_.En(wFv);var OsL,SgR;OsL=_.xQ(function(a){function W(){var vl;((vl=_.K().resolve(_.Vv(_.S4)))==null?0:vl.isKeyBoardInUse())&&QF(!0)}
function w(){QF(!1)}
var Z=a.data;var N=a.isMenuItem;var B=a.isCompact;var I=a.onTap;var X=a.trailingAccessory;var v=a.hideSelectionTextChevron;var U=a.disabled;var O=a.inPopup;var S=a.disableHorizontalPadding;a=a.isOverlay;var T=_.r("apply_button_role_to_list_item"),p=_.Au(function(vl){return byv(vl,Z())}),h=function(){return _.r("enable_web_shorts_captions_language_command")?Object.assign({},Z(),p()):Z()},L=function(){return!(h().isSelected===void 0||!h().selectionStyle||h().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
F=function(){return(_.sB(h().rendererContext)||I)&&!L()},x=function(){return _.sB(h().rendererContext)||L()},G={};
a=_.W$("yt-list-item-view-model-wiz",(G["yt-list-item-view-model-wiz--is-overlay"]=a,G["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!T&&G8()},G));
G={};var V=_.W$("yt-list-item-view-model-wiz__label",(G["yt-list-item-view-model-wiz__container"]=function(){return!L()},G["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!h().isDisabled||!(U==null||!U())},G["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!h().subtitle},G["yt-list-item-view-model-wiz__container--compact"]=B,G["yt-list-item-view-model-wiz__container--tappable"]=F,G["yt-list-item-view-model-wiz__container--in-popup"]=O,G["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return T&&G8()},G));
G={};var d=_.W$("yt-list-item-view-model-wiz__container",(G["yt-list-item-view-model-wiz__container--tappable"]=x,G["yt-list-item-view-model-wiz__container--compact"]=B,G["yt-list-item-view-model-wiz__container--in-popup"]=O,G["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=S,G)),ZD=function(){return h().leadingImage||h().leadingAccessory},aC=_.W$("yt-list-item-view-model-wiz__image-container",function(){return ZD()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
O=_.D8();var Bv=_.D8(),Am=T?Bv:O,e9=_.xQ(function(){return _.k(_.Y,{cond:function(){return T},
then:function(){return _.k("div",{class:V,el:Bv,role:function(){return x()||F()?"button":void 0},
tabindex:function(){return I||F()?0:void 0},
"on:keydown":C7,"on:click":cv},_.k(Uu$,{data:h,hideSelectionTextChevron:v,trailingAccessory:X}))},
else:function(){return _.k("div",{class:V,el:Bv},_.k(Uu$,{data:h,hideSelectionTextChevron:v,trailingAccessory:X}))}})},"xc");
e9.idomCompat=!0;_.Cj(O,function(){return h().rendererContext});
var cv=_.$_(function(vl){return void(I==null?void 0:I(vl))}),C7=_.QP(),RC=_.l(_.$1(!1,void 0,"bOoKke"));
G=RC.next().value;RC=RC.next().value;var G8=G,QF=RC;_.AS(function(){F()&&(Am.value.addEventListener("focusin",W),Am.value.addEventListener("focusout",w));_.Ao(function(){Am.value&&F()&&(Am.value.removeEventListener("focusin",W),Am.value.removeEventListener("focusout",w))})});
G=_.$_(function(){return!1});
return _.k("yt-list-item-view-model",{el:O,class:a,role:function(){return(N==null?0:N())?"menuitem":"listitem"},
tabindex:function(){var vl=F();vl=T?void 0:I||vl?0:void 0;return vl},
"on:keydown":T?G:C7,"on:click":T?G:cv},_.k(_.Y,{cond:L,then:function(){return _.k(_.Y6,null,_.k(_.Ut,{when:function(){return h().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.k(gzH,{labelRenderable:function(){return _.k(e9,null)},
isCompact:B,checked:function(){return h().isSelected},
hasLeadingLabel:function(){return!!ZD()},
labelClass:d,selectElementClass:aC,disableHorizontalPadding:S})}),_.k(_.Ut,{when:function(){return h().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.k(_.Sb,{labelRenderable:function(){return _.k(e9,null)},
isCompact:B,checked:function(){return h().isSelected},
hasLeadingLabel:function(){return!!ZD()},
labelClass:d,selectElementClass:aC})}),_.k(_.Ut,{when:function(){return h().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.k(_.Sb,{labelRenderable:function(){return _.k(e9,null)},
isCompact:B,checked:function(){return h().isSelected},
hasLeadingLabel:function(){return!!ZD()},
labelClass:d,selectElementClass:aC,useCheckIcon:!0})}),_.k(_.Sm,null,function(){return _.k(e9,null)}))},
else:function(){return _.k(e9,null)}}))},"yc");
SgR=_.r("web_enable_sink_list_view_models")?OsL:wFv;_.Yy=_.r("web_enable_sink_list_view_models")?OsL:_.NX(wFv,{callbacks:{onTap:!0,trailingAccessory:!0}});OsL.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var Uu$=_.xQ(function(a){var W=a.data;var w=a.hideSelectionTextChevron;var Z=a.trailingAccessory;return _.k(_.Ha,null,_.k(Yg_,{data:W,isLeading:!0,hideSelectionTextChevron:function(){return!(w==null||!w())}}),_.k(TWR,{data:W}),_.k(_.Y,{cond:function(){return!!Z},
then:function(){return _.k("div",{class:"yt-list-item-view-model-wiz__trailing"},Z==null?void 0:Z())},
else:function(){return _.k(Yg_,{data:W,isLeading:!1,hideSelectionTextChevron:function(){return!(w==null||!w())}})}}))},"zc"),Yg_=_.xQ(function(a){var W=a.data;
var w=a.isLeading;var Z=a.hideSelectionTextChevron;var N=_.W$("yt-list-item-view-model-wiz__button-container");a={};var B=_.W$("yt-list-item-view-model-wiz__image-container",(a["yt-list-item-view-model-wiz__leading"]=w,a["yt-list-item-view-model-wiz__trailing"]=function(){return!w()},a)),I=function(){return w()?W().leadingImage:W().trailingImage},X=_.W$("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
a={};var v=_.W$("yt-list-item-view-model-wiz__accessory",(a["yt-list-item-view-model-wiz__leading"]=w,a["yt-list-item-view-model-wiz__trailing"]=function(){return!w()},a)),U=function(){return zk9(W().listItemIconAfterSelectionText)};
return _.k(_.Y,{cond:function(){return VcD(W(),w())},
then:function(){return _.k(_.Ha,null,_.k(_.Y,{cond:I,then:function(O){return _.k("div",{class:B,"aria-hidden":"true"},_.k(_.qw,{data:O,alt:"",preserveWidth:!0,preserveHeight:!0,className:X}))}}),_.k(_.Y,{cond:function(){return w()&&W().leadingAccessory},
then:function(){return _.k("div",{class:B},_.k(_.Ax,{data:function(){return W().leadingAccessory}},{avatarViewModel:function(O){return _.k(_.c6,{data:O.data,
avatarButtonCustomClassName:X})},
collectionThumbnailViewModel:MZE}))}}),_.k(_.Y,{cond:function(){return!w()&&W().trailingButton},
then:function(){return _.k("div",{class:N},_.k(_.Ax,{data:function(){return W().trailingButton}},{buttonViewModel:function(O){return _.k(_.F7,{data:O.data,
className:v})}}))}}),_.k(_.Y,{cond:function(){var O;
return!w()&&((O=W().trailingButtons)==null?void 0:O.buttons)},
then:function(){return _.k("div",{class:N},_.k(_.Ax,{data:function(){var O;return(O=W().trailingButtons)==null?void 0:O.buttons}},{buttonViewModel:function(O){return _.k(_.F7,{data:O.data,
className:v})},
accountLinkButtonViewModel:function(O){return _.k(Y7H,{data:O.data,className:function(){return v()||""}})},
switchButtonViewModel:function(O){return _.k(PmV,{data:O.data,className:v})},
subscribeButtonViewModel:function(O){return _.k(k7T,{data:O.data,isOverlay:!1,animateWidth:!1,className:v})},
toggleButtonViewModel:function(O){return _.k(_.ce,{data:O.data,className:v})}}))}}),_.k(_.Y,{cond:function(){return!w()&&!!W().selectionText},
then:function(){return _.k(_.Ha,null,_.k(_.k_,{text:function(){return W().selectionText},
className:_.W$("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.k(_.Y,{cond:function(){return!Z()},
then:function(){return _.k(_.P$,{icon:U,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Ac"),TWR=_.xQ(function(a){var W=a.data;
return _.k(_.Y,{cond:function(){return W().title||W().subtitle},
then:function(){return _.k("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.k("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.k(_.Y,{cond:function(){return W().title},
then:function(w){return _.k(_.k_,{text:w,className:"yt-list-item-view-model-wiz__title"})}})),_.k(_.Y,{cond:function(){return W().subtitle},
then:function(w){return _.k(_.k_,{text:w,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Bc");_.Ta=_.xQ(function(a){var W=a.data;var w=a.onTap;var Z=a.onSwitch;var N=a.overrideDisabled;a=_.l(_.l5(function(){var O;return((O=GEI(U()))==null?void 0:O.switchedOnByDefault)||!1}));
var B=a.next().value,I=a.next().value;a=_.l(_.$1(!1,void 0,"Ri8Twb"));var X=a.next().value,v=a.next().value,U=function(){var O;if(!(O=W().switchButton)){var S=W();O=N==null?void 0:N();S={switchOnCommand:S.switchOnCommand,switchOffCommand:S.switchOffCommand,switchedOnByDefault:S.switchedOnByDefault,isDisabled:S.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:S.a11yLabelSwitchedOn,a11yLabelSwitchedOff:S.a11yLabelSwitchedOff};O!==void 0&&(S.isDisabled=O);O={switchButtonViewModel:S}}return O};
return _.k("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.k(_.Yy,{data:function(){return{title:W().title,subtitle:W().attributedSubtitle,leadingImage:W().leadingImage,leadingAccessory:W().leadingAccessory,isDisabled:W().isDisabled}},
onTap:function(O){var S=GEI(U());!S||S.isDisabled||W().ignoreTapUntilCommandCompletes&&X()||(w==null||w(O),uA7(S,B(),O,W().ignoreTapUntilCommandCompletes,v),I(!B()),Z==null||Z(B()))},
trailingAccessory:function(){return _.k(_.Ax,{data:U},{switchButtonViewModel:function(O){return _.k(PmV,{data:O.data,parentActive:B,handleOnTapEventInParent:!!w})}})}}))},"Cc");var KE$=_.P_("DOWNLOAD",{},"Download"),pQ_=_.P_("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),rXe=_.P_("RETRY",{},"Retry"),AXA=_.P_("PAUSE_DOWNLOADING",{},"Pause downloading"),hoh=_.P_("RESUME_DOWNLOAD",{},"Resume download"),ZQ7={text:KE$,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},FN={text:pQ_,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},$Bm={text:rXe,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
NL7={text:AXA,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},tI7={text:hoh,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var isl=_.xQ(function(a){var W=function(){var X=a.data();X=_.bK(X.rendererContext);var v;return(v=_.A(X,_.Be))==null?void 0:v.videoId},w=_.Au(function(X){var v=W(),U=IFS(a.data());
return v?_.cJ(X,v):U?_.ey(X,U):"TRANSFER_STATE_UNKNOWN"}),Z=_.X7(_.VTC,W),N=_.Au(function(X){return _.CHx(X,W(),IFS(a.data()))}),B=function(){return lFF(w(),Z(),_.bK(a.data().rendererContext),!!IFS(a.data()))},I=function(){return N()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.k("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:I},_.k(_.Y,{cond:function(){return!I()},
then:function(){return _.k(_.Y,{cond:B,then:function(X){return _.k(_.k6,{each:X},function(v){return _.k(_.Yy,{data:v,isCompact:a.isCompact,isMenuItem:a.isMenuItem,inPopup:a.inPopup})})}})}}))},"Dc");
isl.idomCompat=!0;var XF7=_.T9({listItemViewModel:SgR,downloadListItemViewModel:isl,switchListItemViewModel:_.Ta});_.En(vCU);var cXe;cXe=_.xQ(function(a){var W=a.data;var w=a.isCompact;var Z=a.hideSelectionTextChevron;var N=a.inPopup;var B=a.isOverlay;var I=function(){return PpD(W())&&(N==null?void 0:N())};
a={};return _.k("yt-list-view-model",{class:_.W$("yt-list-view-model-wiz",(a["yt-list-view-model-wiz--kaios-spat-nav"]=xeE(),a)),role:function(){return I()?"menu":"list"}},_.k(_.Ax,{data:function(){return W().listItems}},{listItemViewModel:function(X){return _.k(_.Yy,{data:X.data,
isMenuItem:I,isCompact:w,hideSelectionTextChevron:Z,inPopup:N,isOverlay:B})},
downloadListItemViewModel:function(X){return _.k(isl,{data:X.data,isMenuItem:I,isCompact:w,inPopup:N})},
switchListItemViewModel:_.Ta}))},"Ec");
_.eoE=_.r("web_enable_sink_list_view_models")?cXe:_.NX(vCU);cXe.idomCompat=!0;var nzh=_.xQ(function(a){var W=a.data;var w=a.isOverlay;a={};return _.k("yt-course-perks-view-model",{class:_.W$("ytwCoursePerksViewModelHost",(a.ytwCoursePerksViewModelHostOverlay=w,a))},_.k("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.k(_.k_,{text:function(){return W().title}})),_.k("div",null,_.k(_.Y,{cond:function(){return W().perks},
then:function(Z){return _.k(_.eoE,{data:function(){return{listItems:Z()}},
isCompact:!0,isOverlay:w})}})))},"Fc");_.Ct(nzh,"yt-course-perks-view-model",{props:{data:_.ux,isOverlay:_.ux}});_.Ct(_.xQ(function(a){var W=a.data;return _.k("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.k("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.k(_.k_,{text:function(){return W().title}})),_.k("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.k(_.k_,{text:function(){return W().progressSummary}})),_.k("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.k("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.It({width:function(){return W().progressPercentage*100+"%"}})})))},"Gc"),"yt-course-progress-view-model",{props:{data:_.qR}});var jbR=_.xQ(function(a){var W=_.Qn(a,{}).data;return _.k("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.k(_.Y,{cond:function(){return W().progressSummary},
then:function(w){return _.k("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.k(_.k_,{text:w}))}}),_.k("div",{class:"ytwProgressViewModelHostProgressContainer"},_.k("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.k(_.k_,{text:function(){var w;
return(w=W())==null?void 0:w.leadingLabel}})),_.k("div",{class:"ytwProgressViewModelHostProgressBar"},_.k("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var w;return"width: "+(((w=W())==null?void 0:w.progressPercentage)||0)*100+"%"}}))))},"Hc");var KO=_.xQ(function(a){var W=a.starNumber;var w=a.data;var Z=function(){var N;return((N=w())==null?void 0:N.rating)||0};
return _.k(_.Y,{cond:function(){return W()},
then:function(N){return _.k(_.Y6,null,_.k(_.Ut,{when:function(){return Z()>=N()-.25}},function(){return _.k("div",{class:"ytStarRatingViewModelHostStar"},_.k(_.P$,{icon:"STAR_FILLED"}))}),_.k(_.Ut,{when:function(){return Z()>=N()-.75}},function(){return _.k("div",{class:"ytStarRatingViewModelHostStar"},_.k(_.P$,{icon:"STAR_HALF"}))}),_.k(_.Sm,null,function(){return _.k("div",{class:"ytStarRatingViewModelHostStar"},_.k(_.P$,{icon:"STAR_BORDER"}))}))}})},"Ic"),LET=_.xQ(function(a){a=a.data;
return _.k("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.k(KO,{starNumber:1,data:a}),_.k(KO,{starNumber:2,data:a}),_.k(KO,{starNumber:3,data:a}),_.k(KO,{starNumber:4,data:a}),_.k(KO,{starNumber:5,data:a}))},"Jc");_.Ct(_.xQ(function(a){var W=_.Qn(a,{}).data;return _.k("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.k("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.k(_.k_,{text:function(){var w;return(w=W())==null?void 0:w.title}})),_.k("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.k(_.Y,{cond:function(){return W().starProgressViewModels},
then:function(w){return _.k("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.k(_.Ax,{data:w},{progressViewModel:jbR}))}}),_.k("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.k("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.k(_.k_,{text:function(){var w;
return(w=W())==null?void 0:w.averageRatingLabel}})),_.k(_.Y,{cond:function(){return W().zeroStateText},
then:function(w){return _.k("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.k(_.k_,{text:w}))}}),_.k(_.Y,{cond:function(){return W().starRatingViewModel},
then:function(w){return _.k("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.k(_.Ax,{data:w},{starRatingViewModel:LET}))}}),_.k("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.k(_.k_,{text:function(){var w;
return(w=W())==null?void 0:w.totalRatingsCountLabel}})))))},"Kc"),"yt-course-ratings-view-model",{props:{data:_.ux}});var JXJ;JXJ={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.FEl=_.xQ(function(a){var W=_.D8(),w=_.Ns();_.pF(function(){requestAnimationFrame(function(){var N;(N=w.lottieEl)==null||N.addEventListener("DOMLoaded",function(){var B;(B=a.onLottieLoaded)==null||B.call(a)})});
var Z=a.data().browseEndpoint;Z&&_.cX(Z)});
return _.k("yt-learning-journey-loader-view-model",{class:_.W$("learningJourneyLoaderViewModelHost",a.className),"data-target-id":function(){var Z;return((Z=a.data)==null?void 0:Z.call(a).targetId)||""},
el:W},_.k(_.w2,{className:_.W$("learningJourneyLoaderViewModelLoader",a.className),animationName:function(){return JXJ.animationConfig.name},
data:JXJ,animationRef:w}))},"Lc");_.Ct(_.FEl,"yt-learning-journey-loader-view-model",{props:{data:_.qR,className:_.ux,onLottieLoaded:_.ux}});var MqH=_.xQ(function(a){var W=function(){return a.data()},w=_.l(_.$1(-1,void 0,"GvxRR")),Z=w.next().value,N=w.next().value,B=function(U){return Z()===U},I=function(U){return W().correctAnswerIndex===U},X=function(){return Z()!==-1},v=_.$_(function(){N(-1);
return!1});
return _.k("learning-journey-quiz-view-model",{class:_.W$("learningJourneyQuizViewModelHost",a.className),style:_.It({background:function(){return qm(Mm(W())).backgroundColor}})},_.k(_.Y,{cond:function(){return!!W().video},
then:function(){return _.k("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.It({background:function(){return qm(Mm(W())).videoBackgroundColor}})},_.k(_.Ax,{data:function(){return W().video}},{lockupViewModel:function(U){return _.k(_.zn,{data:U.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.k("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.k("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.k("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.k("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.k("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.It({color:function(){return qm(Mm(W())).primaryTextColor}})},_.k(_.k_,{text:function(){var U=W(),O=X(),S=Z()===W().correctAnswerIndex;
return O?S?U.successTitle:U.failureTitle:U.questionHeaderText}})),_.k("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.k(_.Y,{cond:X,
then:function(){return _.k("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":v,role:"button","aria-label":"Reset","tab-index":"0"},_.k("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.It({fill:function(){return qm(Mm(W())).primaryTextColor}})},_.k("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"})))}}),
_.k(_.Ax,{data:function(){return W().overflowMenu}},{buttonViewModel:function(U){return _.k(_.F7,{data:U.data})}}))),_.k("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.It({color:function(){return qm(Mm(W())).secondaryTextColor}})},_.k(_.k_,{text:function(){var U=W();
return X()?U.explanationText:U.questionSubheaderText}}))),_.k("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.k(_.k6,{each:function(){return W().optionsData||[]}},function(U,O){var S={};
return _.k("div",{class:_.W$("learningJourneyQuizViewModelHostQuizOptions",(S.learningJourneyQuizViewModelHostQuizHover=function(){return!X()},S.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return Z()===W().correctAnswerIndex&&B(O())},S.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return Z()!==W().correctAnswerIndex&&B(O())},S.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return X()&&!B(O())},S)),
"on:click":_.$_(function(){if(X())return!1;N(O());return!1}),
style:_.It({background:function(){return X()&&B(O())?"":qm(Mm(W())).optionColor}}),
role:"button","aria-disabled":X,"tab-index":"0"},_.k(_.Y,{cond:X,then:function(){return _.k("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var T=O();return I(T)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.It({fill:function(){return qm(Mm(W())).primaryTextColor}})},_.k("path",{d:function(){var T=O();
return I(T)?"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"}}))}}),_.k(_.k_,{text:U.optionText}))})))))},"Mc");
MqH.idomCompat=!0;_.Ct(MqH,"learning-journey-quiz-view-model",{props:{data:_.qR,className:_.qR}});var RoJ=_.xQ(function(a){var W=_.D8();_.Cj(W,function(){return a.data().rendererContext});
var w=_.Qn(a,{palette:void 0,isLastItem:!1}),Z=w.palette,N=w.isLastItem,B=function(){return a.data().isHighlighted},I=function(){var U;
return gCm((U=Z())==null?void 0:U.iconDisabledColor)},X=function(){var U;
return gCm((U=Z())==null?void 0:U.primaryTitleColor)},v=function(){var U;
return gCm((U=Z())==null?void 0:U.secondaryTitleColor)};
w={};return _.k("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:W},_.k(_.Ax,{data:function(){return a.data().thumbnail}},{thumbnailViewModel:_.su}),_.k("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.k("div",{class:_.W$("ytMacroMarkerListItemViewModelTimeDescription",(w.ytMacroMarkerListItemViewModelHighlighted=B,w)),
style:_.It({"background-color":function(){return B()?X():I()},
color:function(){return B()?"":v()}})},_.k(_.k_,{text:function(){return a.data().timestamp}})),_.k("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.It({"background-color":function(){return N()?"transparent":I()}})}),_.k("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(B()?X():v())}},_.k(_.k_,{text:function(){return a.data().title}}))))},"Nc");_.pO=_.xQ(function(a){function W(Bl){x("transform:translateX("+(_.LF("HTML_DIR")==="rtl"?"":"-")+Bl+"px)")}
function w(Bl){return Math.min(Math.max(Bl,0),F()-aC())}
function Z(){var Bl=d()+cv();return N()?(Math.round(aC()/Bl)||1)*Bl:0}
var N=function(){return a.data().items||[]},B=function(){return a.data().previousButton},I=function(){return a.data().nextButton},X=function(){var Bl,JL;
return(JL=(Bl=a.disableArrows)==null?void 0:Bl.call(a))!=null?JL:!1},v=function(){var Bl;
return!((Bl=a.forceNarrowLayout)==null||!Bl.call(a))},U=_.D8(),O=_.D8(),S=_.l(_.$1(0,void 0,"yngx7d")),T=S.next().value,p=S.next().value;
S=_.l(_.$1(0,void 0,"rUOyGb"));var h=S.next().value,L=S.next().value,F=h;h=_.l(_.$1("",void 0,"jv2kWc"));S=h.next().value;var x=h.next().value;h=_.l(_.$1(0,void 0,"Xb0f0d"));var G=h.next().value,V=h.next().value,d=G;h=_.l(_.$1(0,void 0,"pt5wQ"));G=h.next().value;var ZD=h.next().value,aC=G;h=_.l(_.$1(!1,void 0,"FfPefe"));var Bv=h.next().value,Am=h.next().value;h=_.l(_.$1(0,void 0,"kB5mhb"));G=h.next().value;var e9=h.next().value,cv=G;h=_.l(_.$1(0,void 0,"dnDmUd"));var C7=h.next().value,RC=h.next().value,
G8=function(){var Bl,JL=(Bl=a.data())==null?void 0:Bl.responsiveContainerConfiguration,Pl,W9;return JL?t$8(JL==null?void 0:JL.responsiveSize):(W9=(Pl=a.sizing)==null?void 0:Pl.call(a))!=null?W9:"STANDARD"};
h=_.XT(function(){return!X()&&T()>0},void 0,"ZIGxke");
G=_.XT(function(){return!X()&&T()<F()-aC()},void 0,"OJzhRd");
var QF=function(){p(w(T()-Z()));W(T())},vl=function(){p(w(T()+Z()));
W(T())},Hl=function(){U.value!==null&&Ny()},SV;
_.AS(function(){Ny();window.ResizeObserver?(SV=new ResizeObserver(_.T6(Hl,0)),SV.observe(U.value)):window.addEventListener("resize",Hl)});
_.Ao(function(){if(window.ResizeObserver){var Bl;(Bl=SV)==null||Bl.disconnect()}else window.removeEventListener("resize",Hl)});
var Ny=function(){var Bl=U.value.clientWidth,JL=a.includeMargin!==void 0?a.includeMargin():!1,Pl;var W9=a.hasPeek!==void 0?a.hasPeek():!((Pl=a.data())==null||!Pl.hasPeek);Bl=_.VP({containerWidth:Bl,hasPeek:W9,sizing:G8(),marginSettings:JL?v()?4:1:0});e9(Bl.gutter);RC(Bl.margin);V(Bl.itemWidth);Am(Bl.maxContainerWidth<528||v());ZD(Bl.maxContainerWidth);N()&&L((Bl.itemWidth+Bl.gutter)*N().length-Bl.gutter)};
return _.k("horizontal-shelf-view-model",{class:_.W$("ytwHorizontalShelfViewModelHost",a.className),el:U},_.k(_.Y,{cond:function(){return a.data().header},
then:function(){return _.k("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.It({width:function(){return aC()+"px"},
padding:function(){return"0 "+C7()+"px"}})},_.k(_.Ax,{data:function(){return a.data().header}},{sectionHeaderViewModel:function(Bl){return _.k(_.yR,{data:Bl.data,
disableHorizontalPadding:!0,forceSmallLayout:Bv,useResponsiveLayout:!0})}}))}}),_.k("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.k("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.It({width:function(){return aC()+"px"},
padding:function(){return"0 "+C7()+"px"},
overflow:function(){return X()?"auto":"hidden"}})},_.k("div",{class:"ytwHorizontalShelfViewModelItems",
el:O,style:S},_.k(_.Ax,{data:N},{macroMarkerListItemViewModel:function(Bl,JL){return _.k("div",{style:_.It({width:function(){return d()+"px"},
"margin-right":function(){return(JL()===N().length-1?0:cv())+"px"}})},_.k(RoJ,{data:Bl.data,
palette:_.qt(a.palette),isLastItem:function(){return JL()===N().length-1}}))},
lockupViewModel:function(Bl,JL){var Pl=Bl.data;return _.k("div",{style:_.It({width:function(){return d()+"px"},
"margin-right":function(){return(JL()===N().length-1?0:cv())+"px"}})},_.k(_.zn,{data:Pl,
containerType:4,sizing:G8,protectBackground:a.protectBackground,thumbnailFixedWidth:function(){return oCI(Pl())+"px"},
thumbnailTargetWidth:function(){return oCI(Pl())}}))}}))),_.k(_.Y,{cond:h,
then:function(){return _.k("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.k(_.Ax,{data:B},{buttonViewModel:function(Bl){return _.k(_.F7,{data:Bl.data,onClick:QF})}}))}}),_.k(_.Y,{cond:G,
then:function(){return _.k("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.k(_.Ax,{data:I},{buttonViewModel:function(Bl){return _.k(_.F7,{data:Bl.data,onClick:vl})}}))}})))},"Oc");
_.pO.idomCompat=!0;var qgR=_.xQ(function(a){var W=function(){return a.data().targetId||""},w=function(){var T;
return((T=a.data())==null?void 0:T.expansionEntityKey)||""},Z=_.X7(_.Y4C,w),N=function(){var T;
return((T=Z())==null?void 0:T.value)===W()},B=function(T){_.R5(_.oL("stringEntity",w(),{key:w(),
value:T?W():""}))};
_.pF(function(){a.data().isExpanded&&B(!0)});
var I=function(){if(N()){var T=!0;a.onCollapse!==void 0&&(T=a.onCollapse());T&&B(!1)}else B(!0)},X=_.$_(I),v=function(){var T;
return(((T=a.accordionStyle)==null?void 0:T.call(a))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},U=_.D8(),O={},S={};
return _.k("yt-accordion-item-view-model",{class:_.W$("ytAccordionItemViewModelHost",a.className,(O.ytAccordionItemViewModelExpanded=function(){return N()},O.ytAccordionItemViewModelHidden=function(){var T;
return(T=a.hideIfNotExpanded)==null?void 0:T.call(a)},O.ytAccordionItemViewModelMini=v,O)),
"data-target-id":W},_.k("div",{class:"ytAccordionItemViewModelContainer"},_.k("div",{class:"ytAccordionItemViewModelLeftSection","on:click":X},_.k(_.k_,{text:function(){return a.data().title},
className:"ytAccordionItemViewModelLabel"})),_.k("div",{class:"ytAccordionItemViewModelRightSection"},_.k(_.Ax,{data:function(){return N()?a.data().expandButton:a.data().collapseButton}},{buttonViewModel:function(T){return _.k(_.F7,{data:T.data,
className:"ytAccordionItemViewModelToggleButton",onClick:I})}}))),_.k("div",{class:"ytAccordionItemViewModelContainer"},_.k("div",{class:_.W$("ytAccordionItemViewModelContent",(S.ytAccordionItemViewModelExpandedSubtitle=function(){return N()},S)),
el:U,style:_.It({"max-height":function(){return U.value?N()?U.value.scrollHeight+"px":"0":"auto"}})},_.k(_.Y,{cond:function(){return!v()},
then:function(){return _.k(_.k_,{text:function(){return a.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.k(_.Ax,{data:function(){return a.data().content}},{horizontalShelfViewModel:function(T){return _.k(_.pO,{data:T.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Pc");_.QbR=_.xQ(function(a){var W=_.l((0,_.lzh)(a.data)).next().value,w=function(){return a.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},Z=function(){return w()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},N=_.l(_.$1(!0,void 0,"nJGZI")),B=N.next().value,I=N.next().value,X=function(){return Z()&&B()},v=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){I(!B())}}},U=_.$_(function(){W().onTitleTap&&_.cX(W().onTitleTap||{})});
N={};return _.k("yt-accordion-view-model",{class:_.W$("ytAccordionViewModelHost",(N.ytAccordionViewModelMinimized=function(){return X()},N)),
"data-target-id":function(){return a.data().targetId||""}},_.k(_.Y,{cond:function(){return Z()||!!W().title},
then:function(){return _.k("div",{class:"ytAccordionViewModelHeader"},_.k("div",{class:"ytAccordionViewModelTitleSection"},_.k("div",{"on:click":U,class:"ytAccordionViewModelTitleWrapper"},_.k(_.Y,{cond:function(){return!!a.data().headerIcon},
then:function(){return _.k(_.P$,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var O;return(O=a.data().headerIcon)==null?void 0:O.iconType}})}}),_.k(_.k_,{text:function(){return W().title},
className:"ytAccordionViewModelTitle"}))),_.k("div",{class:"ytAccordionViewModelButtonSection"},_.k(_.Y,{cond:Z,then:function(){return _.k(EB,{data:v,iconName:function(){return X()?"chevron_down":"chevron_collapse"}})}})))}}),_.k("div",{class:"ytAccordionViewModelContent"},_.k(_.Ax,{data:function(){return W().contents}},{accordionItemViewModel:function(O){return _.k(qgR,{data:O.data,
className:"ytAccordionViewModelRow",accordionStyle:w,hideIfNotExpanded:X,onCollapse:function(){return Z()?(I(!0),!1):!0}})}})),_.k("div",null,_.k(_.Y,{cond:function(){return!Z()},
then:function(){return _.k(_.k_,{text:function(){return W().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})}})))},"Qc");_.Ct(_.QbR,"yt-accordion-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W,w=(W=_.K().resolve(_.Vv(_.Lt)))==null?void 0:W(),Z=_.l(_.$1(!1,void 0,"XM2Sxc"));W=Z.next().value;var N=Z.next().value;Z=_.l(_.$1(!0,void 0,"Jgzg2d"));var B=Z.next().value,I=Z.next().value,X=_.D8(),v=function(h){N(!0);h={learningJourneyFormData:{query:h}};_.cX(a.data().searchEndpoint||{},{form:{formData:h}});return!1},U=_.$_(function(h){h.target.closest("button-view-model")&&N(!0)});
Z=_.$_(function(){I(X.value.value.length===0)});
var O=_.$_(function(h){if(h.key==="Enter"&&!h.shiftKey&&!B()){var L=h.target;h.preventDefault();v(L.value)}}),S={},T={},p={};
return _.k("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.k("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.k(_.qw,{data:function(){return a.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.k("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.k("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.k("div",{class:_.W$("ytLearningJourneyZeroStateSearchBar",(S.ytLearningJourneyZeroStateSearchBarDark=w,S))},_.k("textarea",{class:_.W$("ytLearningJourneyZeroStateTextInput",(T.ytLearningJourneyZeroStateTextInputDark=w,T)),el:X,"on:keyup":Z,"on:keydown":O,placeholder:"What do you want to learn?",
rows:1})),_.k("div",{class:_.W$("ytLearningJourneyZeroStateSearchButtonContainer",(p.ytLearningJourneyZeroStateSearchButtonContainerDark=w,p))},_.k(_.F7,{data:function(){return _.A(a.data().searchButton,_.hx)},
className:"search-button",onClick:function(){return v(X.value.value)},
buttonOverrides:function(){return{disabled:B(),style:w?"mono-inverse":"mono",size:"XL"}}}))),_.k(_.Y,{cond:function(){return!!a.data().errorBanner},
then:function(){return _.k("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.k(_.Ax,{data:function(){return a.data().errorBanner}},{alertBannerViewModel:_.BW_}))}})),_.k(_.Y,{cond:W,
then:function(){return _.k("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.k(_.Ax,{data:function(){return a.data().loader}},{learningJourneyLoaderViewModel:function(h){return _.k(_.FEl,{data:h.data})}}))},
else:function(){return _.k("div",null,_.k(_.Y,{cond:function(){return!!a.data().learningJourneyShelf},
then:function(){return _.k("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.k("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return a.data().learningJourneySectionTitle}),_.k(_.Ax,{data:function(){return a.data().learningJourneyShelf}},{horizontalShelfViewModel:_.pO}))}}),_.k("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.k("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return a.data().suggestedJourneySectionTitle}),
_.k("div",{"on:click":U},_.k(_.Ax,{data:function(){return a.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(h){return _.k(pG,{data:h.data,
layout:1})}}))))}}))},"Rc"),"yt-learning-journey-zero-state",{props:{data:_.qR}});var xuy=_.xQ(function(a){var W=a.data;return _.k("ytvl-live-leaderboard-item-action-content-view-model",{class:_.W$("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.k(_.k_,{text:function(){var w;return(w=W())==null?void 0:w.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.k(_.Ax,{data:function(){return W().actionButton}},{buttonViewModel:function(w){return _.k(_.F7,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:w.data})}}))},"Sc");var bs6=_.xQ(function(a){var W=a.data;return _.k("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.W$("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.k(_.k_,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var w;return(w=W())==null?void 0:w.displayName},
ellipsisTruncate:!0}),_.k(_.Ax,{data:function(){return W().badge}},{buttonViewModel:function(w){return _.k(_.F7,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:w.data})}}))},"Tc");_.Ct(_.xQ(function(a){var W=a.data;return _.k("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.k("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.k(_.k_,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var w;return(w=W())==null?void 0:w.rank}})),_.k("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.k(_.Ax,{data:function(){return W().avatar}},{avatarViewModel:_.c6})),_.k("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.k(_.Ax,{data:function(){return W().content}},{liveLeaderboardItemChannelContentViewModel:bs6,
liveLeaderboardItemActionContentViewModel:xuy})),_.k(_.k_,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var w;return(w=W())==null?void 0:w.points}}))},"Uc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;return _.k("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.k(_.k_,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var w,Z;return(w=W())==null?void 0:(Z=w.ranking)==null?void 0:Z.rank}}),_.k("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.k(_.Ax,{data:function(){return W().avatar}},{avatarViewModel:_.c6})),_.k(_.k_,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var w,Z;return(w=W())==null?void 0:(Z=w.channelContent)==null?void 0:Z.channelName}}),_.k(_.k_,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var w;return(w=W())==null?void 0:w.points}}))},"Vc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.qR}});var sbT=_.xQ(function(a){a=_.Qn(a,{wrapper:!1}).wrapper;return _.k(_.Y,{cond:a,then:function(){return _.k("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.k("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.k("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Wc");
sbT.idomCompat=!0;var uaV=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],Cmy=_.xQ(function(a){var W=a.data;var w=_.D8(),Z=_.XT(function(){return W().command},void 0,"CGDtVe");
_.Ka(function(){Z()&&_.AQ(Z(),{form:{element:w.value}})});
return _.k("div",{el:w,class:"YtQrCodeRendererHostContainer"},_.k(_.Y,{cond:function(){return W().qrCodeImage},
then:function(N){return _.k(_.qw,{data:N,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.k(_.Y,{cond:function(){return W().spinner},
then:function(){return _.k(sbT,null)}})}}),_.k(_.Y,{cond:function(){return W().label},
then:function(N){return _.k(_.k_,{text:N,className:"YtQrCodeRendererHostLabel"})}}),_.k(_.Y,{cond:function(){return W().labels},
then:function(N){return _.k("div",{class:"YtQrCodeRendererHostLabels"},_.k(_.k6,{each:N},function(B){return _.k(_.k_,{text:B})}))}}))},"Yc");_.Ct(_.xQ(function(a){var W=a.data;var w=_.XT(function(){return W().qrEntityKey},void 0,"joYCxd"),Z=_.XT(function(){return W().deleteEntityOnDismiss},void 0,"x3yAde"),N=_.XT(function(){return W().command},void 0,"dJe1Re"),B=_.X7(mAU,w);
a=_.XT(function(){return W().style&&uaV.includes(W().style)},void 0,"rGILzf");
var I=_.D8();_.yz(I,{visibilityCallback:function(X){X&&N()&&_.AQ(N())},
showOption:{calledOnce:!0,state:"visible"}});_.AS(function(){_.Ao(function(){Z()&&w()&&_.FM().dispatch(_.oL("qrCodeEntity",w()))})});
return _.k("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:I},_.k(_.Y,{cond:a,then:function(){return _.k(_.Y,{cond:B,then:function(X){return _.k(Cmy,{data:X})}})}}))},"Xc"),"yt-qr-code-renderer",{props:{data:_.qR}});_.GjE=_.xQ(function(a){var W=a.data;var w=a.topbarOffset;var Z,N=((Z=_.K().resolve(_.Vv(_.Lt)))==null?void 0:Z())||!1;return _.k("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var B=W();var I,X,v=N?(I=B.config)==null?void 0:I.darkThemeBackgroundColor:(X=B.config)==null?void 0:X.lightThemeBackgroundColor;B=v?_.KC(v):void 0;B="background-color: "+B+";";w!==void 0&&(B+="top: -"+w()+"px;");return B},
"aria-hidden":!0},_.k(_.Y,{cond:function(){var B,I,X;return!!((B=W().backgroundImageConfig)==null?0:(I=B.image)==null?0:(X=I.sources)==null?0:X.length)},
then:function(){return _.k(_.qw,{data:function(){var B;return(B=W().backgroundImageConfig)==null?void 0:B.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.k("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+kQS(N,W().gradientColorConfig)+";"}}))},"Zc");
_.GjE.idomCompat=!0;_.En(UB8);var Du$=_.xQ(function(a){var W=a.className;var w=a.data;var Z=a.isOverlay;var N=a.maxLinesOverride;var B=a.useMediumText;a=_.D8();var I=function(){return w().alwaysShowTruncationText},X=function(){return w().truncationText},v=function(){var p,h;
return(h=(p=_.A(w().rendererContext,_.DB))==null?void 0:p.label)!=null?h:""},U=_.l(_.$1(!1,void 0,"UGEJpb")),O=U.next().value,S=U.next().value;
_.Cj(a,function(){return w().rendererContext});
U=_.$_(function(){w().expandOnTap&&S(!O());return!1});
var T={};return _.k("yt-description-preview-view-model",{el:a,class:_.W$("yt-description-preview-view-model-wiz",W,(T["yt-description-preview-view-model-wiz--clickable"]=function(){var p;return!((p=_.A(w().rendererContext,G9))==null||!p.onTap)},T["yt-description-preview-view-model-wiz--is-overlay"]=Z,T)),
"on:click":U},_.k(_.Y,{cond:function(){return w().description},
then:function(p){return _.k(_.Y,{cond:O,then:function(){var h={};return _.k("div",{class:_.W$("yt-description-preview-view-model-wiz__description",(h["yt-description-preview-view-model-wiz__description--medium-text"]=B,h))},_.k(_.k_,{text:p}))},
else:function(){return _.k(lkR,{text:p,alwaysShowTruncationText:I,truncationText:X,maxLines:function(){var h;return(h=N==null?void 0:N())!=null?h:w().maxLines},
isOverlay:Z,accessibilityLabel:v,useMediumText:B})}})}}))},"$c"),f1J=_.r("web_enable_sink_yt_description_preview_view_model")?Du$:_.NX(UB8);
Du$.idomCompat=!0;var duA=_.xQ(function(a){var W=a.data;var w=a.isOverlay;return _.k("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.k("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.k(_.Ax,{data:function(){return W().header}},{sectionHeaderViewModel:function(Z){return _.k(_.yR,{data:Z.data,
isOverlay:w})}})),_.k("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.k(_.Ax,{data:function(){return W().channelInfoButtons}},{flexibleActionsViewModel:pG})),_.k("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.k(_.Ax,{data:function(){return W().description}},{descriptionPreviewViewModel:function(Z){return _.k(f1J,{data:Z.data,
isOverlay:w})}})))},"ad");
duA.idomCompat=!0;var mue=_.xQ(function(a){var W=a.data;var w={};return _.k("factoid-view-model",{class:_.W$("ytwFactoidViewModelHost",(w.ytwFactoidViewModelHostOverlay=a.isOverlay,w))},_.k(_.k_,{text:function(){return W().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.k(_.k_,{text:function(){return W().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bd");
mue.idomCompat=!0;var VqH=_.xQ(function(a){var W=a.data;var w=a.isOverlay;return _.k("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.k(_.Ax,{data:function(){return W().factoids}},{factoidViewModel:function(Z){return _.k(mue,{data:Z.data,
isOverlay:w})}}))},"cd");
VqH.idomCompat=!0;_.zoV=_.xQ(function(a){var W=a.data;var w=a.isOverlay;return _.k("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.k(_.Ax,{data:function(){return W().items}},{channelInfoViewModel:function(Z){return _.k("div",{class:"ytwCourseMetadataViewModelHostItem"},_.k(duA,{data:Z.data,
isOverlay:w}))},
coursePerksViewModel:function(Z){return _.k("div",{class:"ytwCourseMetadataViewModelHostItem"},_.k(nzh,{data:Z.data,isOverlay:w}))},
descriptionPreviewViewModel:function(Z){return _.k("div",{class:"ytwCourseMetadataViewModelHostItem"},_.k(f1J,{data:Z.data,isOverlay:w}))},
factoidsRowViewModel:function(Z){return _.k("div",{class:"ytwCourseMetadataViewModelHostItem"},_.k(VqH,{data:Z.data,isOverlay:w}))}}))},"dd");var Hs$=_.xQ(function(a){return _.k("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.k(_.Ax,{data:function(){return a.data().content}},{courseMetadataViewModel:function(W){return _.k(_.zoV,{data:W.data,
isOverlay:a.isOverlay})}}))},"ed");var yXH=_.xQ(function(a){var W=a.data;a=a.className;var w=_.D8(),Z=function(){var B;return _.sB((B=W())==null?void 0:B.rendererContext)},N={};
N=(N["dynamic-text-view-model-wiz"]=!0,N["dynamic-text-view-model-wiz--tappable"]=function(){return Z()},N);
_.Cj(w,function(){var B;return(B=W())==null?void 0:B.rendererContext});
return _.k("yt-dynamic-text-view-model",{el:w,role:function(){return Z()?"link":void 0},
tabindex:function(){return Z()?0:void 0},
class:_.W$(a,N)},_.k("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var B,I,X;return(X=(I=_.A((B=W())==null?void 0:B.rendererContext,_.DB))==null?void 0:I.label)!=null?X:""}},_.k(_.k_,{text:function(){return W().text},
userInput:!0})))},"fd");
yXH.idomCompat=!0;_.EzL=_.xQ(function(a){var W=a.data;var w=a.isPositionRelative;var Z=_.fH(),N=_.S3D("(max-width: 527.9px)"),B=function(){var I,X;return(X=(I=W())==null?void 0:I.style)!=null?X:"IMAGE_BANNER_STYLE_FULL_BLEED"};
a={};a=(a["yt-image-banner-view-model-wiz"]=!0,a["yt-image-banner-view-model-wiz--inset"]=function(){return Y3C(B())},a["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.ik(!0)&&!(w==null?0:w())},a["yt-image-banner-view-model-wiz--small-inset"]=function(){return Y3C(B())&&N()},a["yt-image-banner-view-model-wiz--tappable"]=function(){var I;
return _.ik(Z.value)&&_.sB((I=W())==null?void 0:I.rendererContext)},a);
_.Cj(Z,function(){var I;return(I=W())==null?void 0:I.rendererContext});
return _.k("yt-image-banner-view-model",{el:Z,class:_.W$(a)},_.k(_.Y,{cond:function(){var I;return(I=W())==null?void 0:I.image},
then:function(){return _.k(_.qw,{data:function(){return W().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.k(_.Ax,{data:function(){var I;
return(I=W())==null?void 0:I.overlays}},{thumbnailHoverOverlayViewModel:JWy}))},"gd");
_.EzL.idomCompat=!0;var a0R;a0R=_.xQ(function(a){var W=a.condition;var w=a.content;return _.k(_.Y,{cond:W,then:function(){return _.k("div",{class:"page-header-view-model-wiz__scroll-container"},w())},
else:function(){return w()}})},"hd");
_.WSe=_.xQ(function(a){var W=a.data;var w=a.noPadding;var Z=a.enableBanner;var N=a.cinematicContainerTopbarOffset;var B=a.allowCinematicContainerOverflow;var I=a.displayAsSidebar;var X=a.displayAsPanel;var v=TLS(),U=function(){return!!W().image||!!W().animatedImage},O=function(){return!!W().background},S=function(){return(I==null?0:I())||(X==null?0:X())?1:v()},T=function(){return S()===1},p=function(){return T()||S()===2},h=function(){return S()===4},L=function(){var cv=W();
var C7=!!W().heroImage;var RC=S(),G8=Kge(W()),QF=I==null?void 0:I(),vl=!cv.metadata,Hl;if(Hl=C7?_.A(cv.heroImage,pEe):_.A(cv.animatedImage||cv.image,pEe)){cv=Hl.style;var SV=Hl.layoutMode;Hl=psE(Kcx(Hl));if(C7)C7=OQC(RC,cv,SV,Hl,QF);else b:if(vl)C7=RC===1?{size:48}:{size:72};else switch(RC){case 1:C7={size:72};break b;case 2:C7={size:120};break b;default:C7=G8<4?{size:120}:{size:160}}}else C7={size:0};return C7};
a={};a=_.W$((a["page-header-view-model-wiz"]=!0,a["page-header-view-model-wiz--no-padding"]=function(){return!(w==null||!w())},a["page-header-view-model-wiz--small-top-padding"]=function(){return T()&&!W().actions||S()===2&&!(U()||W().heroImage)},a["page-header-view-model-wiz--small-bottom-padding"]=function(){return p()&&!W().actions},a["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(B==null?0:B())},a["page-header-view-model-wiz--display-as-sidebar"]=I,a["page-header-view-model-wiz--display-as-panel"]=
X,a));
var F={},x=_.W$((F["page-header-view-model-wiz__page-header-headline"]=!0,F["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return L().allowFullWidth},F)),G=function(){return T()&&(!!W().heroImage||U())&&Kge(W())>0},V=function(){return G()&&(X==null?void 0:X())};
F={};var d=_.W$((F["page-header-view-model-wiz__page-header-title"]=!0,F["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!G()},F["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return G()&&!V()},F["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=V,F["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=O,F));
F={};var ZD=_.W$((F["page-header-view-model-wiz__page-header-headline-image"]=!0,F["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!W().heroImage&&p()},F));
F={};var aC=_.W$((F["page-header-view-model-wiz__page-header-banner-container"]=Z,F["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var cv;return(Z==null?void 0:Z())&&((cv=_.A(W().banner,_.Acl))==null?void 0:cv.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},F));
F={};var Bv=_.W$((F["page-header-view-model-wiz__page-header-content-metadata"]=!0,F["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=O,F));F={};var Am=_.W$((F["page-header-view-model-wiz__page-header-flexible-actions"]=!0,F["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!W().metadata||p()},F["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!p()},F));
F={};var e9=_.W$((F["page-header-view-model-wiz__page-header-attribution"]=!0,F["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=O,F));return _.k("yt-page-header-view-model",{class:a},_.k(_.Y,{cond:O,then:function(){return _.k("div",{class:"page-header-view-model-wiz__page-header-background"},_.k(_.Ax,{data:function(){return W().background}},{cinematicContainerViewModel:function(cv){return _.k(_.GjE,{data:cv.data,
topbarOffset:N})}}))}}),_.k(a0R,{condition:function(){return!(I==null||!I())},
content:function(){return _.k("div",{class:"page-header-view-model-wiz__page-header-content"},_.k(_.Y,{cond:function(){return(Z==null?void 0:Z())&&W().banner},
then:function(){return _.k("div",{class:aC},_.k(_.Ax,{data:function(){return W().banner}},{imageBannerViewModel:_.EzL}))}}),_.k("div",{class:x},_.k(_.Y,{cond:U,
then:function(){return _.k(_.Ax,{data:function(){var cv;if(!(cv=W().animatedImage)){cv=W();if(U()){var C7=cv=Object.assign({},cv),RC=S(),G8=Kge(W()),QF=C7.image,vl=_.A(QF,rcR),Hl=vl==null?void 0:vl.avatar,SV=_.A(Hl,_.fj);if(QF&&Hl&&SV){switch(RC){case 1:SV.avatarImageSize="AVATAR_SIZE_XL";break;case 2:SV.avatarImageSize="AVATAR_SIZE_XXL";break;default:G8<4?SV.avatarImageSize="AVATAR_SIZE_XXL":SV.avatarImageSize="AVATAR_SIZE_XXXL"}_.r("web_enable_sink_page_header_view_model")&&(_.Sx(Hl,_.fj,Object.assign({},
SV)),vl.avatar=Object.assign({},Hl),_.Sx(QF,rcR,Object.assign({},vl)),C7.image=Object.assign({},QF))}}cv=cv.image}return cv}},{contentPreviewImageViewModel:function(cv){return _.k(_.fd,{data:cv.data,
className:ZD,imageSizeConfig:L})},
decoratedAvatarViewModel:function(cv){return _.k(_.Sd,{data:cv.data,className:ZD})}})}}),_.k(_.Y,{cond:function(){return!!W().heroImage&&!(p()&&!L().allowFullWidth)},
then:function(){return _.k(_.Ax,{data:function(){return W().heroImage}},{contentPreviewImageViewModel:function(cv){return _.k(_.fd,{data:cv.data,
className:ZD,imageSizeConfig:L})}})}}),_.k("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.k(_.Y,{cond:function(){return!!W().heroImage&&p()&&!L().allowFullWidth},
then:function(){return _.k("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.k(_.Ax,{data:function(){return W().heroImage}},{contentPreviewImageViewModel:function(cv){return _.k(_.fd,{data:cv.data,
className:ZD,imageSizeConfig:L})}}))}}),_.k(_.Ax,{data:function(){return W().title}},{dynamicTextViewModel:function(cv){return _.k(yXH,{data:cv.data,
className:d})}}),_.k(_.Ax,{data:function(){return W().metadata}},{contentMetadataViewModel:function(cv){return _.k(_.zFL,{data:cv.data,
layout:function(){return T()?1:0},
className:Bv,isOverlay:O,useMediumText:h})}}),_.k(_.Y,{cond:function(){return W().description&&!T()},
then:function(){return _.k(_.Ax,{data:function(){return W().description}},{descriptionPreviewViewModel:function(cv){return _.k(f1J,{data:cv.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:O,maxLinesOverride:function(){return T()?void 0:1},
useMediumText:h})}})}}),_.k(_.Y,{cond:function(){return W().attribution&&!p()},
then:function(){return _.k(_.Ax,{data:function(){return W().attribution}},{attributionViewModel:function(cv){return _.k(d8,{data:cv.data,
className:e9,useMediumText:h})}})}}),_.k(_.Y,{cond:function(){return W().actions&&!p()},
then:function(){return _.k(_.Ax,{data:function(){return W().actions}},{flexibleActionsViewModel:function(cv){return _.k(pG,{data:cv.data,
layout:function(){return pFm(S())},
className:Am})}})}}))),_.k("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.k(_.Y,{cond:function(){return W().description&&T()},
then:function(){return _.k(_.Ax,{data:function(){return W().description}},{descriptionPreviewViewModel:function(cv){return _.k(f1J,{data:cv.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:O,maxLinesOverride:function(){return T()?void 0:1},
useMediumText:h})}})}}),_.k(_.Y,{cond:function(){return W().attribution&&p()},
then:function(){return _.k(_.Ax,{data:function(){return W().attribution}},{attributionViewModel:function(cv){return _.k(d8,{data:cv.data,
className:e9,useMediumText:h})}})}}),_.k(_.Y,{cond:function(){return W().actions&&p()},
then:function(){return _.k(_.Ax,{data:function(){return W().actions}},{flexibleActionsViewModel:function(cv){return _.k(pG,{data:cv.data,
layout:function(){return pFm(S())},
className:Am})}})}})),_.k("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.k(_.Ax,{data:function(){return W().bottomMetadataFlexibleContainer}},{flexibleContainer:function(cv){return _.k(Hs$,{data:cv.data,
isOverlay:O})}})))}}))},"id");
_.WSe.idomCompat=!0;_.Ct(_.xQ(function(a){var W=_.l(_.$1(!1,void 0,"vVRl3b")),w=W.next().value,Z=W.next().value;return _.k("yt-official-card-view-model",{class:_.W$("ytOfficialCardViewModelHost",a.className),style:_.It({"background-color":function(){var N,B=NpF((N=a.data())==null?void 0:N.backgroundColor);return B?_.pC(B):void 0}})},_.k(_.Ax,{data:function(){return a.data().header}},{pageHeaderViewModel:function(N){return _.k(_.WSe,{data:N.data,
noPadding:!0})}}),_.k("div",{class:"ytOfficialCardViewModelContents"},_.k(_.Ax,{data:function(){return a.data().contents}},{horizontalShelfViewModel:_.pO})),_.k(_.Y,{cond:w,
then:function(){return _.k("div",{class:"ytOfficialCardViewModelExpandedContent"},_.k(_.Ax,{data:function(){return a.data().expandedContents}},{horizontalShelfViewModel:function(N){return _.k(_.pO,{data:N.data,
sizing:"MINI"})}}),_.k("div",{class:"ytOfficialCardViewModelCollapseButton"},_.k(_.Ax,{data:function(){return a.data().collapseButton}},{buttonViewModel:function(N){return _.k(_.F7,{data:N.data,
onClick:function(){Z(!w())}})}})))},
else:function(){return _.k("div",{class:"ytOfficialCardViewModelExpandButton"},_.k(_.Ax,{data:function(){return a.data().expandButton}},{buttonViewModel:function(N){return _.k(_.F7,{data:N.data,
onClick:function(){Z(!w())}})}}))}}))},"jd"),"yt-official-card-view-model",{props:{data:_.qR,
className:_.qR}});var rZx=_.T9({buttonViewModel:_.F7});_.En(AZv);_.HX(AZv,"ytw-search-friction-view-model",{propNames:["data"]});_.rs=_.xQ(function(a){var W=_.D8(),w,Z=(w=_.K().resolve(_.Vv(_.Lt)))==null?void 0:w();_.Ka(function(){var N=W.value;var B=new H66,I=new Map(B.JSC$7208_sanitizerTable.globalAttributePolicies);I.set("style",{policyAction:4});B.JSC$7208_sanitizerTable=new KI(B.JSC$7208_sanitizerTable.allowedElements,B.JSC$7208_sanitizerTable.elementPolicies,B.JSC$7208_sanitizerTable.allowedGlobalAttributes,I,B.JSC$7208_sanitizerTable.globallyAllowedAttributePrefixes);var X=["data-time"];if(X===void 0)I=new Set(B.JSC$7208_sanitizerTable.globallyAllowedAttributePrefixes),
I.add("data-"),B.JSC$7208_sanitizerTable=new KI(B.JSC$7208_sanitizerTable.allowedElements,B.JSC$7208_sanitizerTable.elementPolicies,B.JSC$7208_sanitizerTable.allowedGlobalAttributes,B.JSC$7208_sanitizerTable.globalAttributePolicies,I);else{I=new Set(B.JSC$7208_sanitizerTable.allowedGlobalAttributes);X=_.l(X);for(var v=X.next();!v.done;v=X.next()){v=v.value;if(v.indexOf("data-")!==0)throw Error("qa`"+v);I.add(v)}B.JSC$7208_sanitizerTable=new KI(B.JSC$7208_sanitizerTable.allowedElements,B.JSC$7208_sanitizerTable.elementPolicies,
I,B.JSC$7208_sanitizerTable.globalAttributePolicies,B.JSC$7208_sanitizerTable.globallyAllowedAttributePrefixes)}I=new Set(B.JSC$7208_sanitizerTable.allowedGlobalAttributes);I.add("class");B.JSC$7208_sanitizerTable=new KI(B.JSC$7208_sanitizerTable.allowedElements,B.JSC$7208_sanitizerTable.elementPolicies,I,B.JSC$7208_sanitizerTable.globalAttributePolicies,B.JSC$7208_sanitizerTable.globallyAllowedAttributePrefixes);_.xf(N,_.fEJ(B.build(),iQI(a.text())));cZU(W.value)});
w={};return _.k("div",null,_.k("markdown-div",{class:_.W$("ytwMarkdownDivHost",(w.ytwMarkdownDivDark=Z,w.ytwMarkdownDivHostSmall=function(){var N;return((N=a.isSmallText)==null?void 0:N.call(a))||!1},w)),
el:W}))},"kd");
_.rs.idomCompat=!0;var wfR=_.xQ(function(a){var W=a.imageData;var w=_.qt(a.isInList,!1),Z=function(){return w()?{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 _.k("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.k(_.Y,{cond:function(){return W().image},
then:function(N){return _.k(_.qw,{data:N,alt:function(){return Z().alt},
contentMode:function(){return Z().contentMode},
targetWidth:function(){return Z().targetWidth},
targetHeight:function(){return Z().targetHeight},
className:function(){return Z().className}})}}),_.k("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.k("div",{class:_.W$("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.k(_.k_,{text:function(){return W().title}})),_.k(_.k6,{each:function(){var N;
return(N=W().description)!=null?N:[]}},function(N){return _.k("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.k(A3,{content:N}))})))},"ld"),ZVL=_.xQ(function(a){var W=a.list;
var w=function(){var Z;return(Z=W().items)!=null?Z:[]};
return _.k("div",{class:"ytwGenAiRichTextViewModelListContent"},_.k(_.Y,{cond:function(){return W().title},
then:function(Z){return _.k("div",{class:_.W$("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.k(_.k_,{text:Z}))}}),_.k(_.Y,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.k("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.k(_.k6,{each:w},function(Z){return _.k("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.k(A3,{content:Z,isInList:!0}))}))}}),_.k(_.Y,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.k("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.k(_.k6,{each:w},function(Z){return _.k("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.k(A3,{content:Z,isInList:!0}))}))}}),_.k(_.Y,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.k("div",{class:"ytwGenAiRichTextViewModelImageList"},_.k(_.k6,{each:w},function(Z){return _.k("div",{class:"ytwGenAiRichTextViewModelListItem"},_.k(A3,{content:Z,isInList:!0}))}))}}))},"md"),NGR=_.xQ(function(a){var W=a.table;
return _.k("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.k("thead",null,_.k("tr",null,_.k(_.k6,{each:function(){var w,Z;return(Z=(w=W().header)==null?void 0:w.cells)!=null?Z:[]}},function(w){return _.k("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.k(_.k6,{each:function(){return w.contents}},function(Z){return _.k(A3,{content:Z})}))}))),_.k("tbody",null,_.k(_.k6,{each:function(){var w;
return(w=W().rows)!=null?w:[]}},function(w){return _.k("tr",null,_.k(_.k6,{each:function(){return w.cells}},function(Z){return _.k("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.k(_.k6,{each:function(){return Z.contents}},function(N){return _.k(A3,{content:N})}))}))})))},"nd"),A3=_.xQ(function(a){var W=a.content;
var w=_.qt(a.isInList,!1),Z=function(){var N,B;return(B=(N=W().contentBlock)==null?void 0:N.contents)!=null?B:[]};
return _.k("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.k(_.Y,{cond:function(){return W().text},
then:function(N){return _.k(_.k_,{className:"ytwGenAiRichTextViewModelText",text:N})}}),_.k(_.Y,{cond:function(){return W().image},
then:function(N){return _.k(wfR,{imageData:N,isInList:w})}}),_.k(_.Y,{cond:function(){return W().list},
then:function(N){return _.k(ZVL,{list:N})}}),_.k(_.Y,{cond:function(){return W().contentBlock},
then:function(){return _.k("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.k(_.k6,{each:Z},function(N){return _.k(A3,{content:N,isInList:!1})}))}}),_.k(_.Y,{cond:function(){return W().table},
then:function(N){return _.k(NGR,{table:N})}}))},"od"),tph=_.xQ(function(a){var W={};
W=_.ZK("ytwGenAiRichTextViewModelHost",(W.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Et("search_overview_link_style")),W));return _.k("gen-ai-rich-text-view-model",{class:W},_.k(A3,{content:function(){return a.data().content}}))},"pd");_.En(eV9);_.En(Q0);_.$ZH=_.xQ(function(a){var W=a.data;var w=function(){var L;return((L=W().loadingUi)!=null?L:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},Z=function(){return W().isLoading&&(w()==="UNSPECIFIED"||w()==="GHOST_CARD")},N=function(){return!W().isLoading},B=function(){return!!W().content&&!W().contents},I=function(){return!!W().contents},X=function(){return!!W().nextQueryButtons},v=function(){return W().isLoading&&w()==="INVISIBLE"},U=function(){var L,F;
return(F=(L=W().headerIcon)==null?void 0:L.iconType)!=null?F:""},O=function(){var L;
return(L=W().content)!=null?L:""},S=function(){return!!W().sourcesSection},T,p=!((T=_.K().resolve(_.Vv(_.Lt)))==null||!T()),h=_.XT(function(){var L=[],F=W().contents;
if(F)for(var x=0;x<F.length;x++){var G=_.A(F&&F[x],MGJ);G&&L.push(G)}return L},void 0,"ycU97e");
_.AS(function(){W().isLoading||_.Ak("so_re",void 0,"search_overview_answer")});
return _.k("ytd-overview-answer-view-model",{class:function(){var L={};L=(L.ytdOverviewAnswerViewModelHost=!0,L.ytdOverviewAnswerViewModelDarkBackground=p&&!v(),L.ytdOverviewAnswerViewModelLightBackground=!p&&!v(),L);return _.ZK(L)}},_.k(_.Y,{cond:function(){return!v()},
then:function(){return _.k(_.Ha,null,_.k("h2",null,_.k("div",{class:"ytdOverviewAnswerViewModelHeader"},_.k(_.Y,{cond:U,then:function(L){return _.k("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.k(_.P$,{icon:L}))}}),_.k("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.k("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return W().headerText}),_.k("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.k(_.k_,{text:function(){return W().headerSubtext}}))))),_.k(_.Y,{cond:Z,
then:function(){return eV9()}}),_.k(_.Y,{cond:N,
then:function(){return _.k(_.Ha,null,_.k(_.Y,{cond:B,then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelText"},_.k(_.rs,{text:O,isSmallText:!0}))}}),_.k(_.Y,{cond:I,
then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelRichText"},_.k(_.k6,{each:h},function(L){return _.k(tph,{data:L})}))}}),_.k(_.Y,{cond:X,
then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.k(_.Ax,{data:function(){return W().nextQueryButtons}},{buttonViewModel:function(L){return _.k(_.F7,{data:L.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.pO}))}}),_.k("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.k("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.k(_.Y,{cond:function(){return!!_.A(W().likeButtonViewModel,nj)&&!!_.A(W().dislikeButtonViewModel,j4)},
then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.k(_.A8,{data:function(){return _.A(W().likeButtonViewModel,nj)},
disableIconAnimation:!0}),_.k(_.ry,{data:function(){return _.A(W().dislikeButtonViewModel,j4)}}))}})),_.k(_.Y,{cond:function(){var L;
return(L=W().sourcesSection)==null?void 0:L.headerText},
then:function(L){return _.k("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.k(_.k_,{text:L}))}})),_.k(_.Y,{cond:S,
then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelSources"},_.k(_.Ax,{data:function(){var L;return(L=W().sourcesSection)==null?void 0:L.sourcesShelf}},{buttonViewModel:_.F7,
horizontalShelfViewModel:function(L){return _.k(_.pO,{data:L.data,includeMargin:!0,hasPeek:!0})}}))}}),_.k(_.Y,{cond:function(){return W().disclaimerText},
then:function(){return _.k("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.k(_.k_,{text:function(){return W().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"qd");var BGH=_.xQ(function(a){var W=a.data;var w=a.active;var Z=_.D8();_.Ka(function(){var N,B,I,X=((N=_.K().resolve(_.Vv(_.Lt)))==null?0:N())?(B=W())==null?void 0:B.darkThemeColorPalette:(I=W())==null?void 0:I.lightThemeColorPalette;X&&(X.additiveBackground&&Z.value.style.setProperty("--timestamp-active-background-color",_.pC(X.additiveBackground)),X.textSecondary&&Z.value.style.setProperty("--timestamp-active-color",_.KC(X.textSecondary)))},"KHcbwb");
a={};return _.k("transcript-segment-view-model",{class:_.W$("ytwTranscriptSegmentViewModelHost",(a.ytwTranscriptSegmentViewModelHostActive=w,a.ytwTranscriptSegmentViewModelHostModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),a)),el:Z},_.k(_.Y,{cond:function(){var N;return(N=W())==null?void 0:N.timestamp},
then:function(N){var B={};return _.k("div",{class:_.W$("ytwTranscriptSegmentViewModelTimestamp",(B.ytwTranscriptSegmentViewModelTimestampActive=w,B))},N)}}),_.k(_.k_,{text:function(){var N,B,I;
return(I=(N=W())==null?void 0:N.attributedText)!=null?I:{content:(B=W())==null?void 0:B.simpleText}},
linkInheritColor:!0}))},"rd");var l0$=_.xQ(function(a){var W=a.data;return _.k("div",{class:"yt-video-attributes-section-view-model__header"},_.k("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return W().headerTitle}),_.k(_.Y,{cond:function(){return W().headerSubtitle},
then:function(){return _.k("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return W().headerSubtitle})}}))},"sd"),I0V=_.xQ(function(a){function W(h){return Math.max(Math.min(h,0),U()-X())}
var w=a.data;var Z=_.D8(),N=_.D8();a=_.l(_.$1(0,void 0,"ucDlDf"));var B=a.next().value,I=a.next().value,X=B;a=_.l(_.$1(0,void 0,"lHzSub"));B=a.next().value;var v=a.next().value,U=B;a=_.l(_.$1(0,void 0,"Q8fDIe"));var O=a.next().value,S=a.next().value;_.AS(function(){var h=function(){I(N.value.scrollWidth);v(Z.value.clientWidth)};
h();if(window.ResizeObserver){var L=new ResizeObserver(h);L.observe(Z.value);_.Ao(function(){L.disconnect()})}});
var T=function(){S(W(O()+U()))},p=function(){S(W(O()-U()))};
return _.k("yt-video-attributes-section-view-model",null,_.k("div",{class:"yt-video-attributes-section-view-model"},_.k(_.Y,{cond:function(){return w().headerTitle},
then:function(){return _.k(l0$,{data:w})}}),_.k("div",{class:_.W$("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:Z},_.k("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.It({transform:function(){var h=O();_.LF("HTML_DIR")==="rtl"&&(h*=-1);return"translateX("+h+"px)"}}),
el:N},_.k(_.Ax,{data:function(){return w().videoAttributeViewModels}},{videoAttributeViewModel:IkR}))),_.k(_.Ax,{data:function(){return w().footerButton}},{buttonViewModel:function(h){return _.k(_.F7,{data:h.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.k(_.Y,{cond:function(){return O()<0&&w().previousButton},
then:function(){return _.k("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.k(_.Ax,{data:function(){return w().previousButton}},{buttonViewModel:function(h){return _.k(_.F7,{data:h.data,
onClick:T})}}))}}),_.k(_.Y,{cond:function(){return O()>U()-X()&&w().nextButton},
then:function(){return _.k("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.k(_.Ax,{data:function(){return w().nextButton}},{buttonViewModel:function(h){return _.k(_.F7,{data:h.data,
onClick:p})}}))}})))},"td");
I0V.idomCompat=!0;var Pye=_.xQ(function(a){var W=a.data;var w=a.active;var Z={},N={};return _.k("timeline-item-view-model",{class:_.W$("ytwTimelineItemViewModelHost",(Z.ytwTimelineItemViewModelHostChapterChild=a.chapterChild,Z.ytwTimelineItemViewModelModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),Z))},_.k("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.k("div",{class:_.W$("ytwTimelineItemViewModelTimestamp",(N.ytwTimelineItemViewModelTimestampActive=
w,N))},function(){return W().timestamp})),_.k("div",{class:"ytwTimelineItemViewModelContentItems"},_.k(_.Ax,{data:function(){return W().contentItems}},{transcriptSegmentViewModel:function(B){return _.k(BGH,{data:B.data,
active:w})},
videoAttributesSectionViewModel:I0V})))},"ud");var XfJ=_.xQ(function(a){var W=a.data;a={};return _.k("timeline-chapter-view-model",{class:_.W$("ytwTimelineChapterViewModelHost")},_.k("div",{class:_.W$("ytwTimelineChapterViewModelTitle",(a.ytwTimelineChapterViewModelModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),a))},function(){return W().title}),_.k(_.Ax,{data:function(){return W().contents}},{timelineItemViewModel:function(w){return _.k(Pye,{data:w.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(w){return _.k(I0V,{data:w.data})}}))},"vd");var vaR=_.xQ(function(a){var W=a.data;var w=_.D8(),Z=_.X7(_.C1v,function(){var B;return(B=W().markersEngagementPanelSyncEntityKey)!=null?B:""}),N=function(){var B;
return((B=Z())==null?void 0:B.activeItemIndex)===W().index};
a=_.$_(function(B){var I,X,v,U,O;return _.P(function(S){if(S.nextAddress==1)return B.stopPropagation(),_.QfD(_.xD(B),w.value,["A".toString(),"BUTTON".toString()])?S.return():(I=_.rJ(W().onTap))?_.g(S,_.wP(),2):S.return();X=S.yieldResult;U=(v=_.A(I,_.u6))==null?void 0:v.startTimeSeconds;U===void 0||(O=X)!=null&&O.seekTo(U,!0);_.Xd(S)})});
return _.k("macro-markers-panel-item-view-model",{class:_.W$("ytwMacroMarkersPanelItemViewModelHost",{"is-active":N}),el:w,"on:click":a,tabindex:0},_.k(_.Ax,{data:function(){var B;return(B=W())==null?void 0:B.item}},{timelineChapterViewModel:function(B){return _.k(XfJ,{data:B.data,
active:N})},
timelineItemViewModel:function(B){return _.k(Pye,{data:B.data,active:N})},
videoAttributeViewModel:IkR}))},"wd");
vaR.idomCompat=!0;_.Ct(vaR,"macro-markers-panel-item-view-model",{props:{data:_.qR}});_.Ct(I0V,"yt-video-attributes-section-view-model",{props:{data:_.qR}});var gaR=_.xQ(function(a){var W=function(){var w,Z,N;return(N=(w=a.data().leadingLogoAccessibility)==null?void 0:(Z=w.accessibilityData)==null?void 0:Z.label)!=null?N:""};
return _.k("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.k(_.Y,{cond:function(){return a.data().leadingLogo},
then:function(w){return _.k(_.qw,{className:"ytwFantasySectionHeaderViewModelLogo",data:w,alt:W})}}),_.k("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.k(_.k_,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return a.data().title}}),_.k(_.k_,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return a.data().subtitle}})),_.k(_.Ax,{data:function(){return a.data().trailingButton}},{buttonViewModel:function(w){return _.k(_.F7,{data:w.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"xd");var oa6=_.xQ(function(a){var W={};W=_.W$("ytwFantasyTeamViewModelHost",(W.ytwFantasyTeamViewModelCompact=function(){var N;return!((N=a.compact)==null||!N.call(a))},W.ytwFantasyTeamViewModelUser=function(){return a.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},W.ytwFantasyTeamViewModelOpponent=function(){return a.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},W));
var w=function(){var N,B,I;return(I=(N=a.data().teamLogoAccessibility)==null?void 0:(B=N.accessibilityData)==null?void 0:B.label)!=null?I:""},Z=_.X7(DAD,function(){return a.data().teamEntityKey});
return _.k("ytw-fantasy-team-view-model",{class:W},_.k(_.Y,{cond:function(){return a.data().teamLogo},
then:function(N){return _.k(_.qw,{className:"ytwFantasyTeamViewModelLogo",data:N,alt:w})}}),_.k("div",{class:"ytwFantasyTeamViewModelMetadata"},_.k("div",{class:"ytwFantasyTeamViewModelHeader"},_.k(_.k_,{className:"ytwFantasyTeamViewModelScore",
text:function(){var N;return(N=Z())==null?void 0:N.score}}),_.k(_.P$,{icon:function(){var N;
return(N=Z())==null?void 0:N.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.k(_.k_,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var N;return(N=Z())==null?void 0:N.projectedScore}})),_.k(_.k_,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return a.data().primaryText}}),_.k(_.k_,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return a.data().secondaryText}}),_.k(_.k_,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return a.data().tertiaryText}})),_.k(_.k_,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var N;return(N=Z())==null?void 0:N.score}}))},"yd");_.Ct(_.xQ(function(a){return _.k("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.k("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.k(_.Ax,{data:function(){return a.data().summaryHeader}},{fantasySectionHeaderViewModel:gaR})),_.k(_.Ax,{data:function(){return a.data().userTeam}},{fantasyTeamViewModel:oa6}),_.k(_.Ax,{data:function(){return a.data().opponentTeam}},{fantasyTeamViewModel:oa6}))},"zd"),"fantasy-league-summary-view-model",{props:{data:_.qR}});var kTh=_.xQ(function(a){var W=_.Qn(a,{shape:{},useCustomTabRenderable:!1}),w=W.shape;W=W.useCustomTabRenderable;var Z=a.customTabRenderable,N=function(){return w().disabled},B=function(){return w().selected},I=function(){return w().title},X=function(){return w().icon},v=_.D8();
a=_.$_(function(S){var T;if(!N()&&((T=w().aTagConfig)==null?0:T.onclick))w().aTagConfig.onclick(S);return!1});
var U=_.$_(function(S){if(S.key==="Enter"||S.key==="ArrowUp"||S.key==="ArrowDown")S.preventDefault(),v.value.click();return!1}),O={};
return _.k("yt-tab-shape",{class:_.W$("yt-tab-shape-wiz",function(){return w().className},(O["yt-tab-shape-wiz__tab--last-tab"]=function(){return w().isLastTab},O["yt-tab-shape-wiz--host-disabled"]=N,O["yt-tab-shape-wiz--host-clickable"]=!Z,O)),
role:Z?void 0:"tab","aria-selected":B!=null?B:!1,"aria-disabled":N,tabindex:Z?void 0:0,"on:click":a,"on:keydown":U,el:v,"tab-identifier":function(){return w().identifier},
"tab-title":I},_.k(_.Y,{cond:W,then:function(){return Z()},
else:function(){var S={},T={};return _.k(_.Ha,null,_.k("div",{class:_.W$("yt-tab-shape-wiz__tab",(S["yt-tab-shape-wiz__tab--tab-selected"]=B,S))},_.k(_.Y,{cond:X,then:function(p){return _.k(_.P$,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return p().iconType}})}}),I),_.k("div",{class:_.W$("yt-tab-shape-wiz__tab-bar",(T["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=B,T))}))}}))},"Ad");
kTh.idomCompat={callbacks:{customTabRenderable:!0}};_.OVA=_.xQ(function(a){var W=a.shape;a=_.l(_.$1(48,void 0,"r9IBlb"));var w=a.next().value,Z=a.next().value;a=_.l(_.$1(0,void 0,"Bd7rmd"));var N=a.next().value,B=a.next().value,I=function(){return W().tabs},X=_.D8(),v=function(){var U,O;
return(O=(U=I())==null?void 0:U.findIndex(function(S){return S.selected}))!=null?O:-1};
_.AS(function(){var U=X.value.querySelectorAll("yt-tab-shape"),O=v()>-1?U[v()]:void 0;_.hF.addJob(function(){Z((O==null?void 0:O.getBoundingClientRect().width)||0)},8,0)});
_.Ka(function(){var U=v(),O=_.hF.addJob(function(){var S,T=((S=X.value)==null?void 0:S.querySelectorAll("yt-tab-shape"))||[],p;Z(((p=U>-1?T[U]:void 0)==null?void 0:p.getBoundingClientRect().width)||0);for(p=S=0;p<U;p++)S+=T[p].offsetWidth+24;_.LF("HTML_DIR")==="rtl"&&(S=-S);B(S)},8,0);
_.Ao(function(){_.hF.cancelJob(O)})});
a={};return _.k("yt-tab-group-shape",{class:_.W$("yt-tab-group-shape-wiz",(a["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return W().isOverflowHidden},a)),
el:X},_.k(_.Y,{cond:I,then:function(U){return _.k(_.Ha,null,_.k("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.k(_.k6,{each:U},function(O,S){return _.k(kTh,{shape:function(){return Object.assign({},O,{isLastTab:S()===U().length-1})},
customTabRenderable:O.customTabRenderable,useCustomTabRenderable:!!O.customTabRenderable})})),_.k(UZe,{width:w,
sliderOffset:N}))}}))},"Bd");
_.OVA.idomCompat=!0;var UZe=_.xQ(function(a){var W=_.qt(a.sliderOffset,0),w=a.width;return _.k("div",{class:"yt-tab-group-shape-wiz__slider",style:_.It({width:function(){return w()+"px"},
transform:function(){return"translateX("+W()+"px)"}})})},"Cd");var SOR=_.xQ(function(a){var W=function(){var B,I,X;return(X=(B=a.data().playerLogoAccessibility)==null?void 0:(I=B.accessibilityData)==null?void 0:I.label)!=null?X:""},w=_.X7(fom,function(){return a.data().playerEntityKey}),Z={};
Z=_.W$("ytwFantasyPlayerViewModelHost",(Z.ytwFantasyPlayerViewModelPlaying=function(){var B;return!((B=w())==null||!B.isPlayerPlaying)},Z.ytwFantasyPlayerViewModelOnField=function(){var B;
return((B=w())==null?void 0:B.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},Z.ytwFantasyPlayerViewModelRedZone=function(){var B;
return((B=w())==null?void 0:B.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},Z));
var N=function(){var B,I,X,v=((B=_.K().resolve(_.Vv(_.Lt)))==null?0:B())?(I=a.data().playerLogoBackgroundColor)==null?void 0:I.darkTheme:(X=a.data().playerLogoBackgroundColor)==null?void 0:X.lightTheme;return v===void 0?"":_.pC(v)};
return _.k("ytw-fantasy-player-view-model",{class:Z},_.k(_.Y,{cond:function(){return a.data().playerLogo},
then:function(B){return _.k("div",{class:"ytwFantasyPlayerViewModelLogo"},_.k("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.k(_.qw,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.It({"background-color":N}),data:B,alt:W})),_.k("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.k(_.P$,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.k("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.k("div",{class:"ytwFantasyPlayerViewModelHeader"},_.k(_.k_,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var B;return(B=a.data())==null?void 0:B.playerNameText}}),_.k(_.k_,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var B;return(B=a.data())==null?void 0:B.playerDescriptionText}})),_.k("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.k(_.k_,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var B;return(B=w())==null?void 0:B.gamePeriodText}}),_.k(_.k_,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var B;return(B=a.data())==null?void 0:B.opponentTeamText}}),_.k(_.k_,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var B;return(B=w())==null?void 0:B.gameStatusText}}),_.k(_.k_,{className:_.W$("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var B;return(B=w())==null?void 0:B.playerStatusText}})),_.k("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.k(_.k_,{text:function(){var B;
return(B=w())==null?void 0:B.playerStatsText}}))),_.k(_.k_,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var B;return(B=w())==null?void 0:B.fantasyScore}}))},"Dd");var YOA=_.xQ(function(a){return _.k("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.k(_.Y,{cond:function(){return a.data().players},
then:function(W){return _.k(_.Ax,{data:W},{fantasyPlayerViewModel:SOR})}}))},"Ed");var TG$=_.xQ(function(a){var W=_.l(_.l5(function(){var N;return(N=a.data().selectedTabIdentifierKey)!=null?N:""})),w=W.next().value,Z=W.next().value;
_.pF(function(){var N;(N=a.setSelectedTabSignal)==null||N.call(a,w)});
return _.k("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.k("div",{class:"ytTabbedViewModelTabGroup"},_.k(_.OVA,{shape:function(){var N=a.data(),B=[],I={tabs:B};if(!N.tabs)return I;N=_.l(N.tabs);for(var X=N.next(),v={};!X.done;v={tabViewModel:void 0},X=N.next())if(v.tabViewModel=_.A(X.value,bBA),v.tabViewModel){var U=X=void 0;B.push({aTagConfig:{onclick:function(O){return function(){var S;Z((S=O.tabViewModel.tabIdentifier)!=null?S:"")}}(v)},
identifier:v.tabViewModel.tabIdentifier,selected:w()===v.tabViewModel.tabIdentifier,title:(U=(X=v.tabViewModel.title)==null?void 0:X.content)!=null?U:""})}return I}})),_.k(_.Ax,{data:function(){var N,B=_.l((N=a.data().tabs)!=null?N:[]);
for(N=B.next();!N.done;N=B.next())if((N=_.A(N.value,bBA))&&N.tabIdentifier===w())return N.content}},{fantasyRosterViewModel:YOA}))},"Fd");_.Ct(_.xQ(function(a){var W=_.l(nCS()),w=W.next().value,Z=W.next().value;return _.k("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.k(_.k_,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return a.data().title}}),_.k(_.Y,{cond:function(){return a.data().tabbedViewModel},
then:function(N){return _.k(_.Ax,{data:N},{tabbedViewModel:function(B){return _.k(TG$,{data:B.data,setSelectedTabSignal:Z})}})}}),_.k(_.Y,{cond:function(){var N,B=(N=_.A(a.data().tabbedViewModel,sXR))==null?void 0:N.tabs;
N=_.A(B==null?void 0:B[0],bBA);B=_.A(B==null?void 0:B[1],bBA);var I=N==null?void 0:N.tabIdentifier;if(w()===I){var X,v;if(!((X=_.A(N==null?void 0:N.content,D5V))==null?0:(v=X.players)==null?0:v.length))return a.data().noUserTeamPlayersText}else{var U,O;if(!((U=_.A(B==null?void 0:B.content,D5V))==null?0:(O=U.players)==null?0:O.length))return a.data().noOpponentTeamPlayersText}},
then:function(N){return _.k(_.k_,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:N})}}))},"Gd"),"ytw-fantasy-matchup-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){return _.k("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.k(_.k_,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return a.data().title}}),_.k(_.Y,{cond:function(){return a.data().matchupTeamPairs},
then:function(W){return _.k(_.k6,{each:W,keyBy:"INDEX"},function(w){return _.k("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.k(_.Ax,{data:function(){return[w().firstTeam,w().secondTeam]}},{fantasyTeamViewModel:function(Z){return _.k(oa6,{data:Z.data,
compact:!0})}}))})}}))},"Hd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=function(){var N,B,I;return(I=(N=a.data().userLogoAccessibility)==null?void 0:(B=N.accessibilityData)==null?void 0:B.label)!=null?I:""},w=function(){var N,B,I;
return(I=(N=a.data().opponentLogoAccessibility)==null?void 0:(B=N.accessibilityData)==null?void 0:B.label)!=null?I:""},Z=_.X7(Gf9,function(){return a.data().entityKey});
return _.k("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.k("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.k(_.Y,{cond:function(){return a.data().userLogo},
then:function(N){return _.k(_.qw,{className:"ytwFantasyWinProbabilityViewModelLogo",data:N,alt:W})}}),_.k("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.k(_.k_,{text:function(){return a.data().title}})),_.k(_.Y,{cond:function(){return a.data().opponentLogo},
then:function(N){return _.k(_.qw,{className:"ytwFantasyWinProbabilityViewModelLogo",data:N,alt:w})}})),_.k("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.k("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.k(_.k_,{text:function(){var N;
return(N=Z())==null?void 0:N.userWinNumberLabel}})),_.k("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.k("div",{class:_.W$("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.It({flex:function(){var N,B;return(B=(N=Z())==null?void 0:N.userWinNumber)!=null?B:50}})}),_.k("div",{class:_.W$("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.It({flex:function(){var N,B;return(B=(N=Z())==null?void 0:N.opponentWinNumber)!=null?B:50}})})),_.k("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.k(_.k_,{text:function(){var N;
return(N=Z())==null?void 0:N.opponentWinNumberLabel}}))))},"Id"),"fantasy-win-probability-view-model",{props:{data:_.qR}});_.pA("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var h3=function(){var a=_.u.apply(this,arguments)||this;a.darkerPanels=_.r("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.epRestyle=!1;a.isCarouselInFeed=!0;a.topSpacingZero=!1;a.continuationIsInitialLoad=!0;a.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");a.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");a.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};a.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return a};
_.c(h3,_.u);_.t=h3.prototype;_.t.updateLockupContainerTypes=function(a){if(this.eligibleToSwitchToGrid){var W;(W=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||W.forEach(function(w){w.containerType=a})}};
_.t.getItemsPath=function(){return"data.contents"};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.t.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",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:"ytd-channel-featured-content-renderer",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:"yt-section-header-view-model",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:_.r("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.r("kevlar_low_priority_continuation")}}};
_.t.created=function(){this.JSC$14422_cachedViewportHeight=_.LF("initialInnerHeight")||window.innerHeight};
_.t.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var a=_.M(this.hostElement).querySelector("ytd-comments-header-renderer");a&&(a.hidePanelButton=this.commentsHidePanelButton)}};
_.t.onRetrieveLocation=function(a,W){this.containsComments()&&(this.firstCommentsLoaded=W.hasComments=!0)};
_.t.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.t.onLoadReloadContinuation=function(a,W){var w=this;a.stopPropagation();this.isReloading=!0;_.E$(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(Z){var N=_.K().resolve(_.U6);Z=W(Z);N.postData(Z).then(function(B){w.onReloadContinuationData(B)})}})};
_.t.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};
_.t.computeContentsClass=function(a){return a?"reloading":""};
_.t.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.t.computeSectionIdentifier=function(a){return a==null?void 0:a.sectionIdentifier};
_.t.computeFitContainer=function(a){return(a==null?void 0:a.sectionIdentifier)==="youchat-item-section"};
_.t.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.r("kevlar_disable_comments_auto_load")};
_.t.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.t.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.t.computeHasDestinationShelfRenderer=function(a){var W,w;return!!(a==null?0:(W=a.contents)==null?0:(w=W[0])==null?0:w.destinationShelfRenderer)};
_.t.computeHasSectionGroupViewModel=function(a){var W,w;return!!(a==null?0:(W=a.contents)==null?0:(w=W[0])==null?0:w.sectionGroupViewModel)};
_.t.computeStaticCommentsHeader=function(a){return a&&this.containsComments()};
_.t.computeEpRestyle=function(a){return _.r("web_ep_restyling")&&a&&this.containsComments()};
_.t.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"};
_.t.computeSuppressPaddingDisclaimer=function(){var a,W,w,Z;return!!((a=this.data)==null?0:(W=a.contents)==null?0:(w=W[0])==null?0:(Z=w.productListHeaderRenderer)==null?0:Z.suppressPaddingDisclaimer)};
_.t.computeHeaderStyle=function(a){switch(a==null?void 0:a.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.t.dataChanged=function(){this.firstCommentsLoaded=!1};
_.t.observeDataContentsLength=function(){var a,W;((a=this.data)==null?0:(W=a.contents)==null?0:W.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.t.onYtDismissibleItemDismissedChange=function(a){this._setItemDismissed(a.type==="yt-dismissible-item-dismissed")};
_.t.triggerContinuations=function(){for(var a=_.M(this.hostElement).querySelector("#continuations").children,W=0;W<a.length;W++)a[W].trigger()};
_.t.triggerInitialContinuations=function(){for(var a=_.M(this.hostElement).querySelector("#continuations").children,W=0;W<a.length;W++)a[W].triggerIfNotPreviouslyTriggered()};
_.t.handleYtItemSectionContinuation=function(a,W){var w;W&&((w=this.data)==null?void 0:w.sectionIdentifier)!==W||(this.set("data.continuations",[a]),this.triggerContinuations())};
_.t.handleYtItemSectionReplace=function(a,W){var w;W&&((w=this.data)==null?void 0:w.sectionIdentifier)!==W||(this.set("data.contents",a),this.set("data.continuations",[]))};
_.t.computeUseHeightHack=function(a){return a&&!_.r("kevlar_disable_height_hack")};
_.t.computeTopSpacingZero=function(a){return a};
_.t.continuationShowButtonChanged=function(){var a=_.M(this.hostElement).querySelector("ytd-continuation-item-renderer");a&&(a.showButton=this.continuationShowButton)};
_.t.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("data-changed",this.data))};
_.dU.Object.defineProperties(h3.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.r("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return!!((a=this.data)==null?0:(W=a.contents)==null?0:(w=W[0])==null?0:w.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z,N,B,I;return!!((a=this.data)==null?0:(W=a.contents)==null?0:(w=W[0])==null?0:(Z=w.shelfRenderer)==null?0:(N=Z.content)==null?0:(B=N.gridRenderer)==null?0:(I=B.targetId)==null?0:I.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return!!((a=this.data)==null?0:(W=a.contents)==null?0:(w=W[0])==null?0:w.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return!!((a=this.data)==null?0:(W=a.contents)==null?0:(w=W[0])==null?0:w.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Et("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.r("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.r("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14422_cachedViewportHeight-130)/150)},
set:function(){}}});
h3.prototype.dataChangedForBinding=h3.prototype.dataChangedForBinding;h3.prototype.continuationShowButtonChanged=h3.prototype.continuationShowButtonChanged;h3.prototype.onYtDismissibleItemDismissedChange=h3.prototype.onYtDismissibleItemDismissedChange;h3.prototype.observeDataContentsLength=h3.prototype.observeDataContentsLength;h3.prototype.dataChanged=h3.prototype.dataChanged;h3.prototype.onServiceRequestCompleted=h3.prototype.onServiceRequestCompleted;h3.prototype.onLoadReloadContinuation=h3.prototype.onLoadReloadContinuation;
h3.prototype.onRetrieveLocation=h3.prototype.onRetrieveLocation;h3.prototype.commentsHidePanelButtonChanged=h3.prototype.commentsHidePanelButtonChanged;h3.prototype.updateLockupContainerTypes=h3.prototype.updateLockupContainerTypes;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],h3.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.Vs.YtLazyListBehavior),_.z("design:type",Object)],h3.prototype,"ytLazyListBehavior",void 0);_.f([_.R(_.Lf.YtNextContinuationBehavior),_.z("design:type",Object)],h3.prototype,"ytNextContinuationBehavior",void 0);_.f([_.R(_.j8),_.z("design:type",Object)],h3.prototype,"ytContinuationHandlerBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],h3.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],h3.prototype,"ytdReduxBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],h3.prototype,"darkerPanels",void 0);_.f([_.b(),_.z("design:type",Object)],h3.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],h3.prototype,"engagementPanel",void 0);
_.f([_.b(),_.z("design:type",Object)],h3.prototype,"commentsHidePanelButton",void 0);_.f([_.b(),_.z("design:type",Object)],h3.prototype,"isWatchGrid",void 0);_.f([_.b(),_.z("design:type",Object)],h3.prototype,"continuationShowButton",void 0);_.f([_.b({computed:"computeIsContinuationCommentSection(data)"}),_.z("design:type",Boolean)],h3.prototype,"continuationIsCommentsSection",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],h3.prototype,"autoFill",void 0);
_.f([_.b(),_.z("design:type",Boolean)],h3.prototype,"continuationDisablePrescanVisibility",void 0);_.f([_.b(),_.z("design:type",Boolean)],h3.prototype,"isReloading",void 0);_.f([_.b(),_.z("design:type",Object)],h3.prototype,"isSearch",void 0);_.f([_.b(),_.z("design:type",Object)],h3.prototype,"isConstrainedList",void 0);_.f([_.b(),_.z("design:type",Object)],h3.prototype,"isWatch",void 0);_.f([_.b(),_.z("design:type",Object)],h3.prototype,"eligibleToSwitchToGrid",void 0);
_.f([_.b({selector:_.RL}),_.z("design:type",Object)],h3.prototype,"isGridViewEnabled",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.z("design:type",Object)],h3.prototype,"epRestyle",void 0);_.f([_.Q("isWatch"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],h3.prototype,"hideShortsShelfHeader",null);
_.f([_.Q("isSearch","isWatch"),_.z("design:type",String),_.z("design:paramtypes",[])],h3.prototype,"thumbnailWidth",null);_.f([_.Q("isSearch","isWatch"),_.z("design:type",String),_.z("design:paramtypes",[])],h3.prototype,"sizing",null);_.f([_.Q("isWatch","isGridViewEnabled","data"),_.b({reflectToAttribute:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],h3.prototype,"lockupContainerType",null);
_.f([_.a5("lockupContainerType","data"),_.z("design:type",Function),_.z("design:paramtypes",[Number]),_.z("design:returntype")],h3.prototype,"updateLockupContainerTypes",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],h3.prototype,"pageSubtype",void 0);_.f([_.b({computed:"computeContainerWidth()"}),_.z("design:type",Number)],h3.prototype,"containerWidth",void 0);_.f([_.b(),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],h3.prototype,"isPlaylist",null);
_.f([_.b(),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],h3.prototype,"isClipList",null);_.f([_.b(),_.z("design:type",Object)],h3.prototype,"isCarouselInFeed",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],h3.prototype,"isPlaylistVideoContainer",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],h3.prototype,"isSearchFrictionPage",null);
_.f([_.b({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.z("design:type",Boolean)],h3.prototype,"useHeightHack",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.z("design:type",Object)],h3.prototype,"topSpacingZero",void 0);_.f([_.b({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.z("design:type",Boolean)],h3.prototype,"showButton",void 0);
_.f([_.b(),_.z("design:type",Boolean)],h3.prototype,"firstCommentsLoaded",void 0);_.f([_.b(),_.z("design:type",Object)],h3.prototype,"continuationIsInitialLoad",void 0);_.f([_.b(),_.z("design:type",Boolean)],h3.prototype,"isSearchDova",void 0);_.f([_.b({reflectToAttribute:!0,readOnly:!0}),_.z("design:type",Boolean)],h3.prototype,"itemDismissed",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.z("design:type",String)],h3.prototype,"sectionIdentifier",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.z("design:type",String)],h3.prototype,"fitContainer",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.z("design:type",Boolean)],h3.prototype,"hasDestinationShelfRenderer",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.z("design:type",Boolean)],h3.prototype,"staticCommentsHeader",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],h3.prototype,"enableSqueezebackPanels",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],h3.prototype,"enableAnchoredPanel",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.z("design:type",Boolean)],h3.prototype,"hasSectionGroupViewModel",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.z("design:type",Boolean)],h3.prototype,"suppressDisclaimerSeparator",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.z("design:type",String)],h3.prototype,"headerStyle",void 0);_.f([_.Q("isSearch"),_.z("design:type",Object),_.z("design:paramtypes",[])],h3.prototype,"lockupExperiments",null);
_.f([_.Q("isSearch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],h3.prototype,"typographyBump",null);_.f([_.w$("#header"),_.z("design:type",HTMLElement)],h3.prototype,"header",void 0);_.f([_.a5("commentsHidePanelButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h3.prototype,"commentsHidePanelButtonChanged",null);
_.f([_.E6("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],h3.prototype,"onRetrieveLocation",null);_.f([_.E6("yt-load-reload-continuation"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Function]),_.z("design:returntype")],h3.prototype,"onLoadReloadContinuation",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h3.prototype,"onServiceRequestCompleted",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h3.prototype,"dataChanged",null);_.f([_.lO("data.contents.length"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h3.prototype,"observeDataContentsLength",null);
_.f([_.E6("yt-dismissible-item-dismissed"),_.E6("yt-dismissible-item-undismissed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],h3.prototype,"onYtDismissibleItemDismissedChange",null);_.f([_.a5("continuationShowButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h3.prototype,"continuationShowButtonChanged",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h3.prototype,"dataChangedForBinding",null);h3=_.f([_.C({is:"ytd-item-section-renderer",disableElementRegistration:!0})],h3);
_.D(h3,"ytd-item-section-renderer",function(){if(Rm_!==void 0)return Rm_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Rm_=a},{mode:1});var KSE;var MIe=_.b8(_.P_("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var j9C={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var pfe={},Fg8=(pfe[0]={title:_.zG(_.P_("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.zG(_.P_("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:mX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},pfe[1]={title:_.zG(_.P_("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:mX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},pfe);_.pA("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var iD=function(){var a=_.u.apply(this,arguments)||this;a.allVideosCount=0;a.allPlaylistCount=0;a.shouldRenderDownloadsBanner=!1;a.hasOptedIntoSmartDownloads=!1;a.areAllSmartDownloadsDeleted=!1;a.smartDownloadsCompleted=!1;return a};
_.c(iD,_.u);iD.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
iD.prototype.attached=function(){this.downloadsToRenderChanged()};
iD.prototype.detached=function(){this.set("renderableData",{})};
iD.prototype.downloadsToRenderChanged=function(){var a=_.Cx().getState().entities,W=_.TC(a),w=_.r("kevlar_playlist_dl_page_killswitch")?A4e(a):_.Kx(a),Z=_.Yjv(a),N=_.kp(W);a=_.px(a);this.set("renderableData",q3v(w,W,Z,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,N,a))};
iD.prototype.downloadsToRenderChanged=iD.prototype.downloadsToRenderChanged;_.f([_.R(_.ij),_.z("design:type",Object)],iD.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],iD.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],iD.prototype,"renderableData",void 0);_.f([_.b({selector:_.QiI}),_.z("design:type",Object)],iD.prototype,"allVideosCount",void 0);_.f([_.b({selector:W2S}),_.z("design:type",Object)],iD.prototype,"allPlaylistCount",void 0);_.f([_.b({selector:_.DaE}),_.z("design:type",Object)],iD.prototype,"shouldRenderDownloadsBanner",void 0);_.f([_.b({selector:_.flF}),_.z("design:type",Object)],iD.prototype,"hasOptedIntoSmartDownloads",void 0);
_.f([_.b({selector:_.da7}),_.z("design:type",Object)],iD.prototype,"areAllSmartDownloadsDeleted",void 0);_.f([_.b({selector:ma9}),_.z("design:type",Object)],iD.prototype,"smartDownloadsCompleted",void 0);_.f([_.lO("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iD.prototype,"downloadsToRenderChanged",null);
iD=_.f([_.C({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],iD);
_.D(iD,"ytd-offline-item-section-renderer",function(){if(KSE!==void 0)return KSE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return KSE=a},
{mode:1});var rBT;var ABh;var cL=function(){return _.u.apply(this,arguments)||this};
_.c(cL,_.u);
cL.prototype.onDataChanged=function(){if(this.JSC$14449_lastData){var a=this.getFilterClass(this.JSC$14449_lastData.status);a&&this.hostElement.classList.remove(a)}var W;(a=this.getFilterClass((W=this.data)==null?void 0:W.status))&&this.hostElement.classList.add(a);a==="selected"?_.M(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.M(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");a==="disabled"?_.M(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.M(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14449_lastData=this.data};
cL.prototype.getFilterClass=function(a){switch(a){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
cL.prototype.onDataChanged=cL.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],cL.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cL.prototype,"onDataChanged",null);cL=_.f([_.C({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],cL);
_.D(cL,"ytd-search-filter-renderer",function(){if(ABh!==void 0)return ABh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return ABh=a},{mode:_.Vn("kevlar_poly_si_batch_j075")?1:2});var eb=function(){return _.u.apply(this,arguments)||this};
_.c(eb,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],eb.prototype,"data",void 0);eb=_.f([_.C({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],eb);
_.D(eb,"ytd-search-filter-group-renderer",function(){if(rBT!==void 0)return rBT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return rBT=a},{mode:_.Vn("kevlar_poly_si_batch_j075")?1:2});var h4_;var nO=function(){return _.u.apply(this,arguments)||this};
_.c(nO,_.u);nO.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Pn());this.isCollapsed=!this.isCollapsed};
nO.prototype.navigateToAboutTheseResultsPage=function(){var a=U0("https://www.youtube.com/howyoutubeworks/product-features/search/");a?_.Lv(window,a,"_blank"):_.Ff(Error("Qh"))};
nO.prototype.dataChanged=function(){this.isCollapsed=!0};
nO.prototype.computeShowBottomBorder=function(){var a,W,w;return!!((a=this.data)==null?0:(W=a.button)==null?0:W.toggleButtonRenderer)||!((w=this.data)==null||!w.aboutTheseResultsButton)};
nO.prototype.dataChanged=nO.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],nO.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.z("design:type",Boolean)],nO.prototype,"showBottomBorder",void 0);_.f([_.b(),_.z("design:type",Boolean)],nO.prototype,"renderCollapsibleMenu",void 0);
_.f([_.b(),_.z("design:type",Boolean)],nO.prototype,"isCollapsed",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nO.prototype,"dataChanged",null);nO=_.f([_.C({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],nO);
_.D(nO,"ytd-search-sub-menu-renderer",function(){if(h4_!==void 0)return h4_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return h4_=a},{mode:1});var iVR;var cBy=new _.yq("SECTION_LIST_RENDERER_TOKEN");var e4R;var jb=function(){return _.u.apply(this,arguments)||this};
_.c(jb,_.u);jb.prototype.computeStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],jb.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],jb.prototype,"headerStyle",void 0);jb=_.f([_.C({is:"ytd-text-header-renderer",disableElementRegistration:!0})],jb);
_.D(jb,"ytd-text-header-renderer",function(){if(e4R!==void 0)return e4R;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return e4R=a},{mode:1});var na_;var LO=function(){return _.u.apply(this,arguments)||this};
_.c(LO,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],LO.prototype,"data",void 0);LO=_.f([_.C({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],LO);
_.D(LO,"ytd-minor-moment-header-renderer",function(){if(na_!==void 0)return na_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return na_=a},{mode:1});var joL;var J3=function(){return _.u.apply(this,arguments)||this};
_.c(J3,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],J3.prototype,"data",void 0);J3=_.f([_.C({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],J3);
_.D(J3,"ytd-minor-moment-setting-alert-renderer",function(){if(joL!==void 0)return joL;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return joL=a},{mode:1});var LSE;var JB6;var FY=function(){var a=_.u.apply(this,arguments)||this;a.booleanSettingById=!1;a.smartDownloadsEnabledVE=_.Ob(128287);a.smartDownloadsDisabledVE=_.Ob(128286);a.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return a};
_.c(FY,_.u);_.t=FY.prototype;_.t.attachSmartDownloadsSettingVes=function(){var a;this.activeVeForLogging||((a=this.data)==null?void 0:a.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.tc(_.$J(),this.smartDownloadsEnabledVE),_.tc(_.$J(),this.smartDownloadsDisabledVE))};
_.t.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.E$(this.hostElement,"yt-settings-switch-ready")};
_.t.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.t.onSwitchChange=function(a){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(a=_.QV(a).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.r("kevlar_settings_switch_resolve_command_killswitch")?_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(a)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.t.handleUpdateSettingsSwitch=function(a){(a=_.A(a,X5$))&&this.data&&this.data.id===a.id&&this.set("data.enabled",!!a.enabled)};
_.t.onToggleSettingsSwitch=function(a,W){this.data&&this.data.id===a&&this.set("data.enabled",W!=null?W:!this.data.enabled)};
_.t.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.mF.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.t.maybeLogSmartDownloadsSettingVisibility=function(){var a=_.nS(),W;a&&((W=this.data)==null?void 0:W.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Qw(a,[this.smartDownloadsEnabledVE]),_.x7(a,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Qw(a,[this.smartDownloadsDisabledVE]),_.x7(a,[this.smartDownloadsEnabledVE])))};
_.t.maybeLogSmartDownloadsSettingClick=function(){var a;((a=this.data)==null?void 0:a.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.BE(_.$J(),this.activeVeForLogging)};
_.t.updateDataEnabledFromBinding=function(a){this.set("data.enabled",a.detail.value)};
_.dU.Object.defineProperties(FY.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}}});
FY.prototype.dataChanged=FY.prototype.dataChanged;_.f([_.R(_.ij),_.z("design:type",Object)],FY.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],FY.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],FY.prototype,"ytComponentBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],FY.prototype,"data",void 0);_.f([_.b({selector:function(a,W){if(Object.keys(a==null?void 0:a.entities).length)switch(W){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return h_e(a.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.z("design:type",Object)],FY.prototype,"booleanSettingById",void 0);_.f([_.b(),_.z("design:type",_.cG)],FY.prototype,"activeVeForLogging",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],FY.prototype,"toggleAriaLabel",null);_.f([_.lO("data"),_.lO("booleanSettingById"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FY.prototype,"dataChanged",null);
FY=_.f([_.C({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],FY);
_.D(FY,"ytd-settings-switch-renderer",function(){if(JB6!==void 0)return JB6;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return JB6=a},{mode:1});var M3=function(){return _.u.apply(this,arguments)||this};
_.c(M3,_.u);M3.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}}}}};
_.dU.Object.defineProperties(M3.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}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],M3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],M3.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],M3.prototype,"contentsClassName",null);M3=_.f([_.C({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],M3);
_.D(M3,"ytd-minor-moment-setting-section-renderer",function(){if(LSE!==void 0)return LSE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return LSE=a},{mode:1});var FSR;var R6=function(){return _.u.apply(this,arguments)||this};
_.c(R6,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],R6.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],R6.prototype,"data",void 0);R6=_.f([_.C({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],R6);
_.D(R6,"ytd-empty-product-details-renderer",function(){if(FSR!==void 0)return FSR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return FSR=a},{mode:1});var Mpe;var R4y;var q3=function(){var a=_.u.apply(this,arguments)||this;a.expanded=!0;return a};
_.c(q3,_.u);q3.prototype.getBadgeRowClass=function(a,W,w){for(var Z=_.l(this.hostElement.querySelectorAll("yt-img-shadow")),N=Z.next();!N.done;N=Z.next())N.value.onShow();a=a.selected;return w?a!==-1?a===W?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(a!==void 0?a:0)===W?"badge-line":"badge-hidden"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],q3.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],q3.prototype,"expanded",void 0);q3=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],q3);
_.D(q3,"ytd-sponsorships-loyalty-badges-renderer",function(){if(R4y!==void 0)return R4y;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return R4y=a},{mode:1});var qOy;var Q2=function(){var a=_.u.apply(this,arguments)||this;a.expanded=!0;return a};
_.c(Q2,_.u);Q2.prototype.getContainerClasses=function(a,W){a=a?"expanded":"collapsed";W&&(a+=" item");return a};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Q2.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Q2.prototype,"expanded",void 0);Q2=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Q2);
_.D(Q2,"ytd-sponsorships-perk-renderer",function(){if(qOy!==void 0)return qOy;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return qOy=a},{mode:1});var QoH;var xy=function(){var a=_.u.apply(this,arguments)||this;a.expanded=!0;return a};
_.c(xy,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xy.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],xy.prototype,"expanded",void 0);xy=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],xy);
_.D(xy,"ytd-sponsorships-perks-renderer",function(){if(QoH!==void 0)return QoH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return QoH=a},{mode:1});var bD=function(){var a=_.u.apply(this,arguments)||this;a.isCollapsed=!1;return a};
_.c(bD,_.u);bD.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
bD.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
bD.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var a;this.expandCollapseButton=_.A((a=this.data)==null?void 0:a.expandButton,_.J4)}else{var W;this.expandCollapseButton=_.A((W=this.data)==null?void 0:W.collapseButton,_.J4)}};
bD.prototype.updateExpandCollapseButton=bD.prototype.updateExpandCollapseButton;bD.prototype.onDataChanged=bD.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],bD.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],bD.prototype,"isCollapsed",void 0);_.f([_.b(),_.z("design:type",Object)],bD.prototype,"expandCollapseButton",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bD.prototype,"onDataChanged",null);_.f([_.lO("data","isCollapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bD.prototype,"updateExpandCollapseButton",null);bD=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],bD);
_.D(bD,"ytd-sponsorships-expandable-perks-renderer",function(){if(Mpe!==void 0)return Mpe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Mpe=a},{mode:1});var xZ_;var sh=function(){return _.u.apply(this,arguments)||this};
_.c(sh,_.u);sh.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],sh.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sh.prototype,"data",void 0);sh=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],sh);
_.D(sh,"ytd-sponsorships-actionable-message-renderer",function(){if(xZ_!==void 0)return xZ_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return xZ_=a},{mode:1});var bVy;var uD=function(){return _.u.apply(this,arguments)||this};
_.c(uD,_.u);_.t=uD.prototype;_.t.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.t.getExpansionIcon=function(a){return a?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.t.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.t.computeMessageContainerStyle=function(a){var W=a.expandableItems?" style-clickable":"";return a.messageContainerStyle?a.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+W:"style-unspecified"+W};
_.t.isSinglePerk=function(a){return!!a.messageContainerStyle&&(a.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||a.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.t.onExpandedChanged=function(){var a=this;if(this.expanded)for(var W=_.l(this.hostElement.querySelectorAll("yt-img-shadow")),w=W.next();!w.done;w=W.next())w.value.onShow();_.DW(this,function(){_.E$(a.hostElement,"yt-refit")})};
_.t.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
uD.prototype.onDataChanged=uD.prototype.onDataChanged;uD.prototype.onExpandedChanged=uD.prototype.onExpandedChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],uD.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],uD.prototype,"expanded",void 0);
_.f([_.a5("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uD.prototype,"onExpandedChanged",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uD.prototype,"onDataChanged",null);uD=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],uD);
_.D(uD,"ytd-sponsorships-expandable-message-renderer",function(){if(bVy!==void 0)return bVy;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return bVy=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var soh;var CO=function(){return _.u.apply(this,arguments)||this};
_.c(CO,_.u);CO.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"}}}}};
CO.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.A(this.data.endButton,_.J4).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
CO.prototype.onDataChanged=CO.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],CO.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],CO.prototype,"onDataChanged",null);
CO=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],CO);
_.D(CO,"ytd-sponsorships-heading-renderer",function(){if(soh!==void 0)return soh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return soh=a},{mode:1});var u3A;var Ga=function(){return _.u.apply(this,arguments)||this};
_.c(Ga,_.u);_.f([_.b(),_.z("design:type",Object)],Ga.prototype,"data",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);Ga=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Ga);
_.D(Ga,"ytd-sponsorships-links-renderer",function(){if(u3A!==void 0)return u3A;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return u3A=a},{mode:1});var Cyl;var DX=function(){return _.u.apply(this,arguments)||this};
_.c(DX,_.u);_.t=DX.prototype;_.t.onDataChanged=function(){if(this.data&&this.data.expandableItems){var a;(a=_.M(this.hostElement).querySelector("tp-yt-paper-button"))==null||a.setAttribute("role","button")}else{var W;(W=_.M(this.hostElement).querySelector("tp-yt-paper-button"))==null||W.removeAttribute("role")}};
_.t.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.t.getExpansionIcon=function(a){return a?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.t.getTileClasses=function(a){return a?"tile expandable-tile":"tile"};
_.t.getButtonDisabled=function(a){return a?void 0:""};
DX.prototype.onDataChanged=DX.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],DX.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],DX.prototype,"expanded",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DX.prototype,"onDataChanged",null);
DX=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],DX);
_.D(DX,"ytd-sponsorships-list-tile-renderer",function(){if(Cyl!==void 0)return Cyl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Cyl=a},{mode:1});var GTJ;var DZe;var fO=function(){return _.u.apply(this,arguments)||this};
_.c(fO,_.u);fO.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],fO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],fO.prototype,"data",void 0);fO=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],fO);
_.D(fO,"ytd-sponsorships-promotion-renderer",function(){if(DZe!==void 0)return DZe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return DZe=a},{mode:1});var f0H;var ds=function(){return _.u.apply(this,arguments)||this};
_.c(ds,_.u);ds.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ds.prototype,"data",void 0);ds=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],ds);
_.D(ds,"ytd-sponsorships-purchase-option-renderer",function(){if(f0H!==void 0)return f0H;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return f0H=a},{mode:1});var dZE;var mZh;var m9=function(){return _.u.apply(this,arguments)||this};
_.c(m9,_.u);_.f([_.b(),_.z("design:type",Object)],m9.prototype,"data",void 0);m9=_.f([_.C({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],m9);
_.D(m9,"ytd-ypc-offer-promo-renderer",function(){if(mZh!==void 0)return mZh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return mZh=a},{mode:1});var V2=function(){return _.u.apply(this,arguments)||this};
_.c(V2,_.u);_.t=V2.prototype;
_.t.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"}}}}};
_.t.expansionCTA=function(a,W){return a&&(W?a.collapseCallToAction:a.expansionCallToAction)};
_.t.getExpansionIcon=function(a){return a?"arrow_drop_up":"arrow_drop_down"};
_.t.expansionCallToActionTap=function(){var a=this;this.expanded=!this.expanded;_.DW(this,function(){_.E$(a.hostElement,"yt-refit")})};
_.t.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var a,W=(a=this.data)==null?void 0:a.onVisible;W&&this.ytComponentBehavior.resolveCommand(W)};
_.t.computeDisplayTitle=function(a){return!(!a||this.titledisplaystatus!=="show")};
_.t.computeDisplaySeparator=function(){return!1};
_.t.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
V2.prototype.onDataChanged=V2.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],V2.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],V2.prototype,"data",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],V2.prototype,"expanded",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],V2.prototype,"purchaseButtonClicked",void 0);_.f([_.b({reflectToAttribute:!0,value:"show"}),_.z("design:type",String)],V2.prototype,"titledisplaystatus",void 0);_.f([_.b({computed:"computeDisplayTitle(data.title)"}),_.z("design:type",Boolean)],V2.prototype,"displayTitle",void 0);
_.f([_.b({computed:"computeDisplaySeparator(data)"}),_.z("design:type",Boolean)],V2.prototype,"displaySeparator",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],V2.prototype,"onDataChanged",null);V2=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],V2);
_.D(V2,"ytd-sponsorships-tier-renderer",function(){if(dZE!==void 0)return dZE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return dZE=a},{mode:2});var za=function(){return _.u.apply(this,arguments)||this};
_.c(za,_.u);
za.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"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],za.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],za.prototype,"data",void 0);za=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],za);
_.D(za,"ytd-sponsorships-management-renderer",function(){if(GTJ!==void 0)return GTJ;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return GTJ=a},{mode:1});var Vpe;var HL=function(){return _.u.apply(this,arguments)||this};
_.c(HL,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],HL.prototype,"data",void 0);HL=_.f([_.C({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],HL);
_.D(HL,"ytd-open-in-native-app-view-model",function(){if(Vpe!==void 0)return Vpe;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Vpe=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var z4R;var HVA;var yB_=_.ma(["top-"]),Ea6=_.ma(["bottom-"]),aRJ=_.ma(["left-"]),Wr$=_.ma(["right-"]),wDy={},ZEE=function(a,W,w){a.removeAttribute("top-"+w);a.removeAttribute("bottom-"+w);a.removeAttribute("left-"+w);a.removeAttribute("right-"+w);W&&(W.top&&_.bq([_.z2(yB_)],a,"top-"+w,W.top),W.bottom&&_.bq([_.z2(Ea6)],a,"bottom-"+w,W.bottom),W.left&&_.bq([_.z2(aRJ)],a,"left-"+w,W.left),W.right&&_.bq([_.z2(Wr$)],a,"right-"+w,W.right))};
wDy.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(a){var W,w=_.M((W=this.hostElement)!=null?W:this),Z;W=this.cardItemBoxBehaviorMarginTargetId&&w?w.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(Z=this.hostElement)!=null?Z:this;ZEE(W,a,"margin")},
cardItemContainerPaddingChanged_:function(a){var W,w=_.M((W=this.hostElement)!=null?W:this),Z;W=this.cardItemBoxBehaviorPaddingTargetId&&w?w.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(Z=this.hostElement)!=null?Z:this;ZEE(W,a,"padding")}}];var y2={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 NRE;var tAe;var Eh=function(){return _.u.apply(this,arguments)||this};
_.c(Eh,_.u);Eh.prototype.textColorChanged_=function(){this.hostElement.style.color=y2[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Eh.prototype.textColorChanged_=Eh.prototype.textColorChanged_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.f([_.R(wDy.YtCardItemBoxBehavior),_.z("design:type",Object)],Eh.prototype,"ytCardItemBoxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Eh.prototype,"data",void 0);_.f([_.a5("data.textColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Eh.prototype,"textColorChanged_",null);
Eh=_.f([_.TD({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Eh);
_.D(Eh,"yt-card-item-text-renderer",function(){if(tAe===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;NRE===void 0&&(NRE=document.createElement("template"));var Z=NRE;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);tAe=a}a=tAe;return a},{mode:2});var $4y;var BRy;var aK=function(){return _.u.apply(this,arguments)||this};
_.c(aK,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],aK.prototype,"data",void 0);aK=_.f([_.TD({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],aK);
_.D(aK,"yt-card-item-badge-renderer",function(){if(BRy===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;$4y===void 0&&($4y=document.createElement("template"));var Z=$4y;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);BRy=a}a=BRy;return a},{mode:2});var lRe;var IRE;var W4=function(){return _.u.apply(this,arguments)||this};
_.c(W4,_.u);W4.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],W4.prototype,"data",void 0);W4=_.f([_.TD({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],W4);
_.D(W4,"yt-card-item-text-collection-renderer",function(){if(IRE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;lRe===void 0&&(lRe=document.createElement("template"));var Z=lRe;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);IRE=a}a=IRE;return a},{mode:2});var Po$;var XDy;var wa=function(){return _.u.apply(this,arguments)||this};
_.c(wa,_.u);wa.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]]"}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],wa.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],wa.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Number)],wa.prototype,"iconSize",void 0);wa=_.f([_.TD({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],wa);
_.D(wa,"yt-card-item-text-with-button-renderer",function(){if(XDy===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;Po$===void 0&&(Po$=document.createElement("template"));var Z=Po$;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);XDy=a}a=XDy;return a},{mode:2});var Zo=function(){return _.u.apply(this,arguments)||this};
_.c(Zo,_.u);Zo.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Zo.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Zo.prototype,"data",void 0);Zo=_.f([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Zo);
_.D(Zo,"ytd-commerce-cart-summary-line-item-renderer",function(){if(HVA!==void 0)return HVA;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return HVA=a},{mode:1});_.pA("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var NA=function(){var a=_.u.apply(this,arguments)||this;a.hidden=!1;return a};
_.c(NA,_.u);_.t=NA.prototype;_.t.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"}}}}};
_.t.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.t.updateSummary=function(){var a=this.commerceCartCheckoutButtonEntity,W;if(((W=this.data)==null?0:W.cartButton)&&a.checkoutSummaryText){var w,Z=xB((w=this.data)==null?void 0:w.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+Z+".cardItemTextRenderer.text",bL(a.checkoutSummaryText));if(a.checkoutDetailText){var N;w=xB((N=this.data)==null?void 0:N.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+w+".cardItemTextRenderer.text",bL(a.checkoutDetailText))}if(a.checkoutAdditionalMetadataText){var B;
N=xB((B=this.data)==null?void 0:B.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+N+".cardItemTextRenderer.text",bL(a.checkoutAdditionalMetadataText))}}else a.estimatedTotalPrice&&(B=xB((Z=this.data)==null?void 0:Z.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+B+".cardItemTextRenderer.text",bL(a.estimatedTotalPrice)))};
_.t.updateIsHidden=function(){var a,W=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isHidden;W!==void 0&&(this.hidden=W)};
_.t.updateCheckoutButton=function(){var a,W=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isDisabled;W!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",W);var w;a=(w=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:w.innertubeCommand;a!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",a);var Z;w=(Z=this.commerceCartCheckoutButtonEntity)==null?void 0:Z.checkoutButtonText;w!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:w})};
NA.prototype.entityChanged=NA.prototype.entityChanged;_.f([_.R(_.ij),_.z("design:type",Object)],NA.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],NA.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],NA.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],NA.prototype,"fullWidth",void 0);_.f([_.b(),_.z("design:type",Object)],NA.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],NA.prototype,"compact",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],NA.prototype,"hidden",void 0);
_.f([_.b({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:GrD}),_.z("design:type",Object)],NA.prototype,"commerceCartCheckoutButtonEntity",void 0);_.f([_.a5("commerceCartCheckoutButtonEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NA.prototype,"entityChanged",null);NA=_.f([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],NA);
_.D(NA,"ytd-commerce-cart-checkout-button-renderer",function(){if(z4R!==void 0)return z4R;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return z4R=a},{mode:2});var vP_;_.gPA={};
_.gPA.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",_.yV(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.yV(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?(_.Z9(this.hostElement,[a]),this.tappableItemBehaviorTapEnabled=!1):a.ypcOffersEndpoint?_.Z9(this.hostElement,[a]):_.N1(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 oP_;var kI6;var tH=function(){return _.u.apply(this,arguments)||this};
_.c(tH,_.u);tH.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.r2("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.r2("sharingToggleButtonAndDefaultButton")}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],tH.prototype,"data",void 0);tH=_.f([_.TD({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],tH);
_.D(tH,"yt-card-item-actions-renderer",function(){if(kI6===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;oP_===void 0&&(oP_=document.createElement("template"));var Z=oP_;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);kI6=a}a=kI6;return a},{mode:2});var U4A;var OET;var SzH;var Yzy;var TR6;var Krh;var $e=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return a};
_.c($e,_.u);$e.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
$e.prototype.handleDarkModeToggledAction_=function(a){this.isDarkTheme_=a};
$e.prototype.computeThemeImage_=function(a,W){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=_.pC(a.borderColor));return W&&a.imageDark?a.imageDark:a.imageLight};
$e.prototype.computeThemeIcon_=function(a){var W,w;if(!(a==null?0:(W=a.themedIcon)==null?0:(w=W.icon)==null?0:w.iconType))return!1;this.icon.style.color=y2[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 _.EN(a.themedIcon.icon.iconType)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],$e.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(wDy.YtCardItemBoxBehavior),_.z("design:type",Object)],$e.prototype,"ytCardItemBoxBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],$e.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$e.prototype,"data",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],$e.prototype,"fit",void 0);_.f([_.b(),_.z("design:type",Boolean)],$e.prototype,"isDarkTheme_",void 0);_.f([_.b({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.z("design:type",Object)],$e.prototype,"themeImage_",void 0);_.f([_.b({computed:"computeThemeIcon_(data)"}),_.z("design:type",Object)],$e.prototype,"themeIcon_",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Object)],$e.prototype,"isCircular_",void 0);
_.f([_.w$("#image"),_.z("design:type",Object)],$e.prototype,"image",void 0);_.f([_.w$("#icon"),_.z("design:type",Object)],$e.prototype,"icon",void 0);$e=_.f([_.TD({is:"yt-themed-image-renderer",disableElementRegistration:!0})],$e);
_.D($e,"yt-themed-image-renderer",function(){if(Krh===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;TR6===void 0&&(TR6=document.createElement("template"));var Z=TR6;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Krh=a}a=Krh;return a},{mode:2});var B4=function(){return _.u.apply(this,arguments)||this};
_.c(B4,_.u);B4.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"}}}}};
B4.prototype.computeImagePlacement_=function(a){return a||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],B4.prototype,"data",void 0);_.f([_.b({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.z("design:type",String)],B4.prototype,"imagePlacement",void 0);
B4=_.f([_.TD({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],B4);
_.D(B4,"yt-card-item-text-with-image-renderer",function(){if(Yzy===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;SzH===void 0&&(SzH=document.createElement("template"));var Z=SzH;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Yzy=a}a=Yzy;return a},{mode:2});var l1=function(){return _.u.apply(this,arguments)||this};
_.c(l1,_.u);l1.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"}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],l1.prototype,"data",void 0);l1=_.f([_.TD({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],l1);
_.D(l1,"yt-card-item-error-renderer",function(){if(OET===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;U4A===void 0&&(U4A=document.createElement("template"));var Z=U4A;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);OET=a}a=OET;return a},{mode:2});var pD_;var rUA;_.pA("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var IK=function(){return _.u.apply(this,arguments)||this};
_.c(IK,_.u);_.t=IK.prototype;
_.t.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"}}}}};
_.t.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.t.backgroundColorChanged_=function(){var a,W=(a=this.data)==null?void 0:a.backgroundColor;a=y2[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.M(this.hostElement).querySelector("#main-content").style.backgroundColor=a};
_.t.headerPromoBackgroundColorChanged_=function(){var a,W=(a=this.data)==null?void 0:a.headerPromoBackgroundColor;a=y2[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.M(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=a};
_.t.errorRendererVisibilityChanged_=function(){var a=this.isExpanded_,W;this.isErrorRendererVisible_=!((W=this.data)==null||!W.errorRenderer)&&!a};
_.t.onYtToggleButton_=function(a,W){this.isExpanded_=W.toggled};
IK.prototype.onYtToggleButton_=IK.prototype.onYtToggleButton_;IK.prototype.errorRendererVisibilityChanged_=IK.prototype.errorRendererVisibilityChanged_;IK.prototype.headerPromoBackgroundColorChanged_=IK.prototype.headerPromoBackgroundColorChanged_;IK.prototype.backgroundColorChanged_=IK.prototype.backgroundColorChanged_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(wDy.YtCardItemBoxBehavior),_.z("design:type",Object)],IK.prototype,"ytCardItemBoxBehavior",void 0);_.f([_.R(_.gPA.YtTappableItemBehavior),_.z("design:type",Object)],IK.prototype,"ytTappableItemBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],IK.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],IK.prototype,"isExpanded_",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],IK.prototype,"isErrorRendererVisible_",void 0);_.f([_.a5("data.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],IK.prototype,"backgroundColorChanged_",null);_.f([_.a5("data.headerPromoBackgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],IK.prototype,"headerPromoBackgroundColorChanged_",null);
_.f([_.a5("data.errorRenderer","isExpanded_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],IK.prototype,"errorRendererVisibilityChanged_",null);_.f([_.E6("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Object]),_.z("design:returntype")],IK.prototype,"onYtToggleButton_",null);IK=_.f([_.TD({is:"yt-card-item-renderer",disableElementRegistration:!0})],IK);
_.D(IK,"yt-card-item-renderer",function(){if(rUA===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;pD_===void 0&&(pD_=document.createElement("template"));var Z=pD_;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);rUA=a}a=rUA;return a},{mode:2});_.pA("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var P4=function(){var a=_.u.apply(this,arguments)||this;a.hidden=!1;return a};
_.c(P4,_.u);_.t=P4.prototype;_.t.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.t.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.t.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var a,W=(a=this.commerceCartHeaderEntity)==null?void 0:a.isHidden;W!==void 0&&(this.hidden=W)}};
_.t.updateTitle=function(){var a=this.commerceCartHeaderEntity.isDisabled,W,w,Z=(w=_.A((W=this.data)==null?void 0:W.item,oHl))==null?void 0:w.headingRenderer;Z&&(W=xB(Z,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+W+".0.cardItemTextRenderer.textColor",a?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.t.updateSummaryText=function(){var a=this.commerceCartHeaderEntity;if(this.compact){var W,w,Z=(w=_.A((W=this.data)==null?void 0:W.item,oHl))==null?void 0:w.headingRenderer;Z&&(W=xB(Z,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+W+".1.cardItemTextRenderer.text",a.shortHeaderSummaryText?bL(a.shortHeaderSummaryText):a.headerSummaryText?bL(a.headerSummaryText):""))}else{var N;if(W=(N=_.A((Z=this.data)==null?void 0:Z.item,oHl))==null?void 0:N.additionalInfoRenderer)W=xB(W,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".text",a.headerSummaryText?bL(a.headerSummaryText):"")}};
_.t.updateCheckoutButton=function(){var a=this.commerceCartHeaderEntity,W,w,Z=(w=_.A((W=this.data)==null?void 0:W.item,oHl))==null?void 0:w.additionalInfoRenderer;W=xB(Z,"buttonRenderer");var N;w=(N=this.commerceCartHeaderEntity)==null?void 0:N.isButtonDisabled;var B;N=(B=this.commerceCartHeaderEntity)==null?void 0:B.isButtonHidden;w!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".buttonRenderer.isDisabled",w);N!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
N);var I;a=(I=a.checkoutButtonCommand)==null?void 0:I.innertubeCommand;a!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".buttonRenderer.command",a)};
P4.prototype.entityChanged=P4.prototype.entityChanged;_.f([_.R(_.ij),_.z("design:type",Object)],P4.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],P4.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],P4.prototype,"compact",void 0);_.f([_.b({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(a,W){return _.tG(a.entities,"commerceCartHeaderEntity",W)}}),
_.z("design:type",Object)],P4.prototype,"commerceCartHeaderEntity",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],P4.prototype,"hidden",void 0);_.f([_.a5("commerceCartHeaderEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],P4.prototype,"entityChanged",null);P4=_.f([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],P4);
_.D(P4,"ytd-commerce-cart-header-renderer",function(){if(vP_!==void 0)return vP_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return vP_=a},{mode:1});var AUR;var hMy=_.T6(function(a,W){var w;return(w=a.onChangeCallback)==null?void 0:w.call(a,W)},1E3),iEe=_.xQ(function(a){var W=a.data;
var w=a.iconMinus;a=a.iconPlus;var Z=function(){return!!W().disabled},N=_.l(_.$1(0,void 0,"r56zNb")),B=N.next().value,I=N.next().value;
N={};N=_.W$("yt-spec-quantity-incrementer-shape__icon",(N["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return Z()||B()===(W().onRemoveCommand?0:1)},N));
var X={};X=_.W$("yt-spec-quantity-incrementer-shape__icon",(X["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return B()>=W().maxValue||Z()},X));
var v={};v=_.W$("yt-spec-quantity-incrementer-shape__text",(v["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return B()>W().maxValue},v["yt-spec-quantity-incrementer-shape__text--text-disabled"]=Z,v));
var U=_.$_(function(){if(B()===1){var S,T;(T=(S=W()).onRemoveCommand)==null||T.call(S)}S=B()>W().maxValue?W().maxValue:B()-1;I(S);hMy(W(),S);return!1}),O=_.$_(function(){if(B()===W().maxValue)return!1;
var S=B()+1;I(S);hMy(W(),S);return!1});
_.pF(function(){I(W().value)});
return _.k("quantity-incrementer-shape",null,_.k("div",{class:"yt-spec-quantity-incrementer-shape"},_.k("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return B()===(W().onRemoveCommand?0:1)||Z()},
"aria-label":function(){return B()!==1?W().minusLabel:W().minimumReachedLabel},
"on:click":U},_.k(_.g2,{model:{circular:!0}}),_.k("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.k("div",{class:N},w()))),_.k("div",{class:v},B),_.k("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return B()>=W().maxValue||Z()},
"aria-label":function(){return B()!==W().maxValue?W().plusLabel:W().maximumReachedLabel},
"on:click":O},_.k(_.g2,{model:{circular:!0}}),_.k("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.k("div",{class:X},a())))))},"Jd");_.Ct(_.xQ(function(a){function W(){w().onRemoveCommand&&_.cX(w().onRemoveCommand)}
var w=a.data;var Z=_.X7(oA7,function(){return w().quantityIncrementerEntityKey});
return _.k("yt-quantity-incrementer-view-model",null,_.k(iEe,{data:function(){var N=w(),B;var I=Z()?!((B=Z())==null||!B.disabled):!1;var X;B=Z()?(X=Z())==null?void 0:X.quantity:w().quantity;return bQH(N,I,W,B)},
iconMinus:function(){return _.k(_.P$,{icon:"BAR_HORIZONTAL",className:_.ZK("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.k(_.P$,{icon:"ADD",className:_.ZK("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Kd"),"yt-quantity-incrementer-view-model",{props:{data:_.qR}});var X6=function(){var a=_.u.apply(this,arguments)||this;a.compact=!1;a.hasQuantityIncrementer=!1;return a};
_.c(X6,_.u);X6.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"}}}};
X6.prototype.computeHasQuantityIncrementer=function(){var a;return!!_.A((a=this.data)==null?void 0:a.picker,SAE)};
X6.prototype.onLabelClick=function(){var a;(a=this.dropdownEl)==null||a.open()};
_.f([_.w$("ytd-dropdown-renderer"),_.z("design:type",Object)],X6.prototype,"dropdownEl",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],X6.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],X6.prototype,"quantityColor",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X6.prototype,"compact",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.z("design:type",Object)],X6.prototype,"hasQuantityIncrementer",void 0);X6=_.f([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],X6);
_.D(X6,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(AUR!==void 0)return AUR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return AUR=a},{mode:1});var cUh;var eMT;var v4=function(){return _.u.apply(this,arguments)||this};
_.c(v4,_.u);v4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
v4.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
v4.prototype.updateTitle=function(){var a=this.disabledCartItemEntity;a.disableActionName&&this.set("data.title",bL(a.disableActionName))};
v4.prototype.updateButton=function(){var a,W=(a=this.disabledCartItemEntity.undoCommand)==null?void 0:a.innertubeCommand;W!==void 0&&(this.set("data.actionButton.buttonRenderer.command",W),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
v4.prototype.entityChanged=v4.prototype.entityChanged;_.f([_.R(_.ij),_.z("design:type",Object)],v4.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(a,W){return _.tG(a.entities,"disabledCartItemEntity",W)}}),
_.z("design:type",Object)],v4.prototype,"disabledCartItemEntity",void 0);_.f([_.b(),_.z("design:type",Object)],v4.prototype,"data",void 0);_.f([_.a5("disabledCartItemEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],v4.prototype,"entityChanged",null);v4=_.f([_.C({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],v4);
_.D(v4,"ytd-disabled-cart-item-renderer",function(){if(eMT!==void 0)return eMT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return eMT=a},{mode:1});_.pA("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var oK=function(){var a=_.u.apply(this,arguments)||this;a.compact=!1;a.hidden=!1;a.errorHidden=!1;a.noOnTap=!1;return a};
_.c(oK,_.u);_.t=oK.prototype;
_.t.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"}}}};
_.t.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.t.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var a=this.firstButtonElement;a.alignByText=!0;a.iconAlignByText=!0}};
_.t.computeNoOnTap=function(a){return!a};
_.t.updateQuantityColor=function(){if(this.pickerElement){var a,W=(a=this.commerceCartItemEntity)==null?void 0:a.quantityColor;this.pickerElement.quantityColor=W}};
_.t.updateTotalPriceColor=function(){var a,W=(a=this.commerceCartItemEntity)==null?void 0:a.totalPriceColor;if(W){var w;a=_.A((w=this.data)==null?void 0:w.quantityPicker,URl);if(w=_.A(a==null?void 0:a.price,kRJ))w.textColor=W}};
_.t.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var a,W=(a=this.commerceCartItemEntity)==null?void 0:a.isHidden;W!==void 0&&(this.hidden=W)}};
_.t.updateHideErrorMessage=function(){var a,W=(a=this.commerceCartItemEntity)==null?void 0:a.hideErrorMessage;W!==void 0&&(this.errorHidden=W)};
_.t.updateQuantity=function(){var a=this,W,w=(W=this.commerceCartItemEntity)==null?void 0:W.quantity,Z;W=(Z=this.commerceCartItemEntity)==null?void 0:Z.totalPrice;if(w){this.updateTotalPriceColor();this.updateQuantityColor();var N;Z=_.A((N=this.data)==null?void 0:N.quantityPicker,URl);if(N=_.A(Z==null?void 0:Z.price,kRJ))N.text=W?{simpleText:W.content}:void 0;if(W=_.A(Z==null?void 0:Z.picker,SAE))W.quantity=w;var B;if(N=(B=_.A(Z==null?void 0:Z.picker,cME))==null?void 0:B.entries){B=!1;W=void 0;N=
_.l(N);for(Z=N.next();!Z.done;Z=N.next())Z=Z.value,Z.dropdownItemRenderer&&(W||(W=Z.dropdownItemRenderer),Z.dropdownItemRenderer.isSelected=!1,w===Z.dropdownItemRenderer.int32Value&&(B=!0,Z.dropdownItemRenderer.isSelected=!0));!B&&W&&(W.isSelected=!0)}_.DW(this,function(){var I;a.set("data.quantityPicker",_.T5.unsafeClone((I=a.data)==null?void 0:I.quantityPicker))})}};
oK.prototype.onYtRendererstamperFinished=oK.prototype.onYtRendererstamperFinished;oK.prototype.entityChanged=oK.prototype.entityChanged;_.f([_.b(),_.z("design:type",Object)],oK.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oK.prototype,"compact",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],oK.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],oK.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(a,W){return _.tG(a.entities,"commerceCartItemEntity",W)}}),
_.z("design:type",Object)],oK.prototype,"commerceCartItemEntity",void 0);_.f([_.b(),_.z("design:type",Object)],oK.prototype,"quantityPicker",void 0);_.f([_.b(),_.z("design:type",Object)],oK.prototype,"compactQuantityPicker",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oK.prototype,"hidden",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oK.prototype,"errorHidden",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.z("design:type",Object)],oK.prototype,"noOnTap",void 0);_.f([_.w$("ytd-commerce-cart-item-quantity-picker-renderer"),_.z("design:type",Object)],oK.prototype,"pickerElement",void 0);_.f([_.w$("yt-button-renderer"),_.z("design:type",Element)],oK.prototype,"firstButtonElement",void 0);
_.f([_.a5("commerceCartItemEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oK.prototype,"entityChanged",null);_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oK.prototype,"onYtRendererstamperFinished",null);oK=_.f([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],oK);
_.D(oK,"ytd-commerce-cart-item-renderer",function(){if(cUh!==void 0)return cUh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return cUh=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var nPV;var jhH;var ke=function(){return _.u.apply(this,arguments)||this};
_.c(ke,_.u);ke.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}}}}}};
ke.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
ke.prototype.updateCheckoutLineItems=function(){var a,W=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.checkoutLineItems;W&&(a=W.map(function(w){a:{var Z=w.price,N=w.description;switch(w.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":w={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:bL(N),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:bL(Z),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:w={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:bL(N),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:bL(Z),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 w}),this.set("data.summaryLineItems",a))};
ke.prototype.updateIsHidden=function(){var a,W=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isHidden;W!==void 0&&(this.hostElement.hidden=W)};
ke.prototype.entityChanged=ke.prototype.entityChanged;_.f([_.R(_.ij),_.z("design:type",Object)],ke.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ke.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],ke.prototype,"data",void 0);_.f([_.b({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:GrD}),_.z("design:type",Object)],ke.prototype,"commerceCartCheckoutButtonEntity",void 0);_.f([_.a5("commerceCartCheckoutButtonEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ke.prototype,"entityChanged",null);ke=_.f([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],ke);
_.D(ke,"ytd-commerce-cart-summary-renderer",function(){if(jhH!==void 0)return jhH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return jhH=a},{mode:1});var LrE={};LrE.InjectBehavior=[Sue.InjectBehavior];var JUH;var FrH;var UJ=function(){return _.u.apply(this,arguments)||this};
_.c(UJ,_.u);
UJ.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:_.r2("menuRenderer")}}};
UJ.prototype.onMenuTap=function(a){a.stopPropagation()};
_.dU.Object.defineProperties(UJ.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,W;return!(((a=this.data)==null||!a.sectionHeading)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var a,W;return!(((a=this.data)==null||!a.image)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var a,W;return!(((a=this.data)==null||!a.menu)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],UJ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.gPA.YtTappableItemBehavior),_.z("design:type",Object)],UJ.prototype,"ytTappableItemBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],UJ.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.accessibilityData"),_.z("design:type",String),_.z("design:paramtypes",[])],UJ.prototype,"ariaLabel",null);_.f([_.Q("data.sectionHeading","data.layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],UJ.prototype,"sectionHeadingVisible",null);_.f([_.Q("data.image","data.layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],UJ.prototype,"imageVisible",null);
_.f([_.Q("data.menu","data.layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],UJ.prototype,"menuVisible",null);UJ=_.f([_.TD({is:"yt-activity-item-renderer",disableElementRegistration:!0})],UJ);
_.D(UJ,"yt-activity-item-renderer",function(){if(FrH===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;JUH===void 0&&(JUH=document.createElement("template"));var Z=JUH;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);FrH=a}a=FrH;return a},{mode:2});var MAH;var RMh;var qz$;var QhR;var OJ=function(){return _.u.apply(this,arguments)||this};
_.c(OJ,_.u);
OJ.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"}}}}};
OJ.prototype.backgroundColorChanged_=function(){var a,W=(a=this.data)==null?void 0:a.backgroundColor;this.hostElement.style.backgroundColor=y2[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
OJ.prototype.backgroundColorChanged_=OJ.prototype.backgroundColorChanged_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],OJ.prototype,"data",void 0);
_.f([_.a5("data.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OJ.prototype,"backgroundColorChanged_",null);OJ=_.f([_.TD({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],OJ);
_.D(OJ,"yt-offer-item-upsell-renderer",function(){if(QhR===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;qz$===void 0&&(qz$=document.createElement("template"));var Z=qz$;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);QhR=a}a=QhR;return a},{mode:2});_.pA("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var SE=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};a.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return a};
_.c(SE,_.u);_.t=SE.prototype;
_.t.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:_.r2("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.t.computeContainerStyle_=function(a){return a};
_.t.computeContainerIsHidden_=function(a){return a&&!!a.isHidden};
_.t.computeShowSpinner_=function(a,W){return a&&W==="in-progress"};
_.t.computeShowMoreContentsButton_=function(a,W,w,Z,N){return!(!(Z&&Z.length||N&&N.length&&w)||!a||W)};
_.t.onToggleButton_=function(a){var W=this;a.stopPropagation();this.isExpanded_=a.detail&&a.detail.toggled;var w,Z;this.isExpanded_&&!this.data.continuationSection.length&&((w=this.data)==null?0:(Z=w.continuation)==null?0:Z.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.E$(this.hostElement,"yt-load-next-continuation",function(N){return W.getContinuationUrl_(W.data.continuation.onClickContinuationData,N)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Z9(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.t.onShowMoreContentsButtonClicked_=function(a){var W=this;a.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.E$(this.hostElement,"yt-load-next-continuation",function(w){return W.getContinuationUrl_(W.data.continuations[0].nextContinuationData,w)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Z9(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.t.getContinuationUrl_=function(a,W){var w=a.continuation;a=a.clickTrackingParams;var Z=_.nS();a&&Z&&_.b0(Z,_.PX(a));return _.CF(W,{continuation:w})};
_.t.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var a=_.M(this.hostElement).querySelector("#continuation-section");a&&(a=a.querySelectorAll("ytmusic-item-section-renderer"))&&a.forEach(function(W){return W.classList.add("memberships-and-purchases")})};
_.t.dataChanged_=function(){var a;this.isExpanded_=!((a=this.data)==null||!a.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.t.updateCardOnClickCommand_=function(a){a=_.A(a,$RL);var W,w;this.data&&((W=this.data)==null?0:W.targetId)&&a&&a.targetId===((w=this.data)==null?void 0:w.targetId)&&a.onClickCommand&&(this.data.onClickCommand=a.onClickCommand,this.isOnClickCommand_=!0)};
_.t.backgroundColorChanged_=function(){var a,W=(a=this.data)==null?void 0:a.backgroundColor;this.hostElement.style.backgroundColor=y2[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
SE.prototype.backgroundColorChanged_=SE.prototype.backgroundColorChanged_;SE.prototype.dataChanged_=SE.prototype.dataChanged_;SE.prototype.nextContinuationDataUpdated_=SE.prototype.nextContinuationDataUpdated_;SE.prototype.onToggleButton_=SE.prototype.onToggleButton_;_.f([_.R(_.j8),_.z("design:type",Object)],SE.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],SE.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],SE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.Lf.YtNextContinuationBehavior),_.z("design:type",Object)],SE.prototype,"ytNextContinuationBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.f([_.R(LrE.InjectBehavior),_.z("design:type",Object)],SE.prototype,"injectBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],SE.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],SE.prototype,"compact",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],SE.prototype,"isExpanded_",void 0);_.f([_.b({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.z("design:type",String)],SE.prototype,"containerStyle_",void 0);_.f([_.b({value:"not-started"}),_.z("design:type",String)],SE.prototype,"continuationStatus_",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.z("design:type",Boolean)],SE.prototype,"showSpinner_",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],SE.prototype,"isOnClickCommand_",void 0);_.f([_.b({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.z("design:type",Boolean)],SE.prototype,"showMoreContentsButton_",void 0);
_.f([_.b({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(a,W){return!W||a.entities?null:_.tG(a.entities,"cardItemContainerEntity",W)}}),
_.z("design:type",Object)],SE.prototype,"cardItemContainerEntity_",void 0);_.f([_.E6("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],SE.prototype,"onToggleButton_",null);_.f([_.E6("yt-next-continuation-data-updated"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SE.prototype,"nextContinuationDataUpdated_",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SE.prototype,"dataChanged_",null);_.f([_.a5("data.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SE.prototype,"backgroundColorChanged_",null);SE=_.f([_.TD({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],SE);
_.D(SE,"yt-card-item-container-renderer",function(){if(RMh===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;MAH===void 0&&(MAH=document.createElement("template"));var Z=MAH;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);RMh=a}a=RMh;return a},{mode:2});var Ye=function(){return _.u.apply(this,arguments)||this};
_.c(Ye,_.u);Ye.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"}}}};
Ye.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Ye.prototype.computeLoadingHidden=function(){var a;return!((a=this.commerceCartPageStateEntity)==null?0:a.cartActionInProgress)};
Ye.prototype.updateNotification=function(){var a,W=(a=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:a.summaryText;W&&this.set("data.cartNotification",bL(W))};
Ye.prototype.notificationEntityChanged=Ye.prototype.notificationEntityChanged;_.f([_.R(_.ij),_.z("design:type",Object)],Ye.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Ye.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Ye.prototype,"data",void 0);_.f([_.b({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(a,W){return _.tG(a.entities,"commerceCartExpandableNotificationEntity",W)}}),
_.z("design:type",Object)],Ye.prototype,"commerceCartExpandableNotificationEntity",void 0);_.f([_.b({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(a,W){return _.tG(a.entities,"commerceCartPageStateEntity",W)}}),
_.z("design:type",Object)],Ye.prototype,"commerceCartPageStateEntity",void 0);_.f([_.w$("#spinner"),_.z("design:type",HTMLElement)],Ye.prototype,"spinner",void 0);_.f([_.a5("commerceCartExpandableNotificationEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ye.prototype,"notificationEntityChanged",null);Ye=_.f([_.C({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Ye);
_.D(Ye,"ytd-commerce-cart-renderer",function(){if(nPV!==void 0)return nPV;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return nPV=a},{mode:1});var x4_;var Tf=function(){var a=_.u.apply(this,arguments)||this;a.bigImage=!1;return a};
_.c(Tf,_.u);_.dU.Object.defineProperties(Tf.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.placeholderImageUrl}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Tf.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Tf.prototype,"bigImage",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Tf.prototype,"placeholderImageUrl",null);Tf=_.f([_.C({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Tf);
_.D(Tf,"ytd-empty-product-shelf-renderer",function(){if(x4_!==void 0)return x4_;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return x4_=a},{mode:1});var bEE;var K2=function(){var a=_.u.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};
_.c(K2,_.u);_.t=K2.prototype;_.t.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.t.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"}}}}};
_.t.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.t.attachVEs=function(a){a.trackingParams&&_.$J().graftServerVe(a.trackingParams)};
_.t.handleUpdateMerchShelfAction=function(a){var W=this,w=_.A(a.updateMerchandiseShelfAction.merchandiseShelf,_.mKH);w&&(w.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){W.attachVEs(w);W.data=w},Number(w.renderDelayMs))):(this.attachVEs(w),this.data=w))};
_.t.updateOnResize=function(){if(this.JSC$14617_scrollContainer!==void 0&&this.JSC$14617_scrollContainer.clientWidth!==0&&this.items!==void 0){var a=this.JSC$14617_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-a));this.ytdHorizontalListBehavior.reposition_();var W;switch((W=this.data)==null?void 0:W.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var w,
Z;((w=this.data)==null?void 0:(Z=w.items)==null?void 0:Z.length)===1?this.itemStyle="cta-item":this.itemStyle=a>=740?"large-item":"small-item"}}};
_.t.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.tA(this.updateOnResizeDebouncer,_.dF.after(100),this.updateOnResize)};
K2.prototype.debouncedUpdateOnResize=K2.prototype.debouncedUpdateOnResize;K2.prototype.dataChanged=K2.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.zd.YtdHorizontalListBehavior),_.z("design:type",Object)],K2.prototype,"ytdHorizontalListBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],K2.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],K2.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],K2.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],K2.prototype,"itemStyle",void 0);_.f([_.b({value:6}),_.z("design:type",Number)],K2.prototype,"initialCount",void 0);
_.f([_.b({value:"data.items"}),_.z("design:type",String)],K2.prototype,"itemsPath",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],K2.prototype,"watchMetadataRefresh",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],K2.prototype,"skinnyMode",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],K2.prototype,"metaPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],K2.prototype,"inStructuredDescription",void 0);
_.f([_.w$("#items"),_.z("design:type",HTMLDivElement)],K2.prototype,"items",void 0);_.f([_.w$("#scroll-container"),_.z("design:type",HTMLDivElement)],K2.prototype,"JSC$14617_scrollContainer",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],K2.prototype,"dataChanged",null);_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],K2.prototype,"debouncedUpdateOnResize",null);
K2=_.f([_.C({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],K2);
_.D(K2,"ytd-merch-shelf-renderer",function(){if(bEE!==void 0)return bEE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return bEE=a},{mode:2});var shl;var p2=function(){var a=_.u.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};
_.c(p2,_.u);_.t=p2.prototype;
_.t.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}]))};
_.t.addBackstageCommentAction=function(a){var W=this.get("addBackstageCommentAction.parentId",a);a=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",a);if(W&&a){W=this.postIdToIndices(W);for(var w=0;w<W.length;w++){var Z=W[w];if(Z<0)break;Z="data.contents."+Z+".backstagePostThreadRenderer.comments";this.get(Z)&&(this.get(Z+".backstageCommentsRenderer.contents")&&this.push(Z+".backstageCommentsRenderer.contents",{commentThreadRenderer:a}),this.get(Z+".backstageCommentsRenderer.teaserContents")?
this.push(Z+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:a}):this.set(Z+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:a}]))}}};
_.t.addBackstageReplyAction=function(a){var W=this.get("addBackstageReplyAction.parentId",a);a=this.get("addBackstageReplyAction.renderer.commentRenderer",a);W&&a&&this.setCreatorReply(W,a)};
_.t.banAuthorAction=function(a){var W=this.get("banAuthorAction.commentId",a);W&&(a=this.get("banAuthorAction.parentCommentId",a)||this.getParentPostId(W),this.removeFromStream(W,a))};
_.t.hideReportedCommentAction=function(a){var W=this.get("hideReportedCommentAction.commentId",a);W&&((a=this.get("hideReportedCommentAction.parentCommentId",a))||(a=this.getParentPostId(W)),this.removeFromStream(W,a))};
_.t.replaceBackstageCommentAction=function(a){var W=this.get("replaceBackstageCommentAction.commentId",a),w=this.get("replaceBackstageCommentAction.parentId",a);a=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",a);if(W&&w&&a){w=this.postIdToIndices(w);for(var Z=0;Z<w.length;Z++){var N=w[Z];if(N<0)break;var B=this.commentIdToIndex(W,N,!1);if(B>=0){var I=this.get("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+B+".commentThreadRenderer.replies.commentRepliesRenderer");
I&&(a.replies={commentRepliesRenderer:I});this.splice("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",B,1,{commentThreadRenderer:a})}B=this.commentIdToIndex(W,N,!0);if(B>=0){if(I=this.get("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(B+".commentThreadRenderer.replies.commentRepliesRenderer")))a.replies={commentRepliesRenderer:I};this.splice("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
B,1,{commentThreadRenderer:a})}}}};
_.t.replaceBackstagePostAction=function(a){var W=this.get("replaceBackstagePostAction.itemId",a);if(W){W=this.postIdToIndices(W);for(var w=0;w<W.length;w++){var Z=W[w];if(Z<0)break;var N=this.getPostRendererType(Z),B=this.get("replaceBackstagePostAction.renderer."+N,a);if(!B&&N!=="sharedPostRenderer")break;var I=!1;B||(I=!0,B=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",a));if(!B)break;var X={};I?(_.Sx(X,w0h,B),this.set("data.contents."+Z+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
X)):(_.Sx(X,new _.H(N),B),this.set("data.contents."+Z+".backstagePostThreadRenderer.post",X))}}};
_.t.replaceBackstageReplyAction=function(a){var W=this.get("replaceBackstageReplyAction.replyId",a),w=this.get("replaceBackstageReplyAction.parentId",a);a=this.get("replaceBackstageReplyAction.renderer.commentRenderer",a);W&&a&&w&&this.setCreatorReply(w,a)};
_.t.removeCommentAction=function(a){var W=this.get("removeCommentAction.commentId",a);if(W){var w=this.get("removeCommentAction.parentCommentId",a);w&&this.get("removeCommentAction.isCreatorReply",a)?this.setCreatorReply(w,void 0):(w||(w=this.getParentPostId(W)),this.removeFromStream(W,w))}};
_.t.setCreatorReply=function(a,W){var w=this.getParentPostId(a);if(w){w=this.postIdToIndices(w);for(var Z=0;Z<w.length;Z++){var N=w[Z];if(N<0)break;var B=this.commentIdToIndex(a,N,!1);if(B>=0){var I="data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+B;B=I+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";I+=".commentThreadRenderer.replies";W==void 0?(this.set(I,{}),this.set(B,!1)):(this.set(I,{commentRepliesRenderer:{teaserContents:[{commentRenderer:W}]}}),
this.set(I+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(B,!0))}B=this.commentIdToIndex(a,N,!0);B>=0&&(B="data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+B,N=B+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",B+=".commentThreadRenderer.replies",W==void 0?(this.set(B,{}),this.set(N,!1)):(this.set(B,{commentRepliesRenderer:{teaserContents:[{commentRenderer:W}]}}),this.set(N,!0)))}}};
_.t.removeFromStream=function(a,W){if(W){W=this.postIdToIndices(W);for(var w=0;w<W.length;w++){var Z=W[w];if(Z<0)break;var N=this.commentIdToIndex(a,Z,!1);N>=0&&this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",N,1);N=this.commentIdToIndex(a,Z,!0);N>=0&&this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",N,1);Z="data.contents."+Z+".backstagePostThreadRenderer.post.backstagePostRenderer";
N=Z+".backstageAttachment.pollRenderer.votedCommentId";this.get(N)===a&&(this.set(N,null),this.set(Z+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(W=this.postIdToIndices(a).reverse(),w=0;w<W.length;w++){Z=W[w];if(Z<0)break;N=this.getPostRendererType(Z);var B=this.get("backstagePostThreadRenderer.post."+N,this.data.contents[Z]);B.postId===a?this.splice("data.contents",Z,1):N==="sharedPostRenderer"&&this.set("data.contents."+Z+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);B.scheduledPublishTimeSec&&_.aV(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.t.postIdToIndices=function(a){for(var W=[],w=0;w<this.data.contents.length;w++){var Z=this.getPostRendererType(w);this.get("backstagePostThreadRenderer.post."+Z+".postId",this.data.contents[w])===a&&W.push(w);if(Z==="sharedPostRenderer"){var N=this.get("backstagePostThreadRenderer.post."+Z+".originalPost.backstagePostRenderer.postId",this.data.contents[w]);Z=this.get("backstagePostThreadRenderer.post."+Z+".originalPost.postRenderer.postId",this.data.contents[w]);N!==a&&Z!==a||W.push(w)}}return W};
_.t.commentIdToIndex=function(a,W,w){if(W<0)return-1;var Z,N,B,I,X=_.A((Z=this.data)==null?void 0:(N=Z.contents)==null?void 0:(B=N[W])==null?void 0:(I=B.backstagePostThreadRenderer)==null?void 0:I.comments,aAR);return(W=w?X==null?void 0:X.teaserContents:X==null?void 0:X.contents)&&W.length?W.findIndex(function(v){return _.A(v,eWR).comment.commentRenderer.commentId===a}):-1};
_.t.getParentPostId=function(a){a=a.split(".");if(a[1])return a[0]};
_.t.getPostRendererType=function(a){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[a])?"sharedPostRenderer":"backstagePostRenderer"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],p2.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],p2.prototype,"data",void 0);p2=_.f([_.C({disableElementRegistration:!0,is:"ytd-backstage-items"})],p2);
_.D(p2,"ytd-backstage-items",function(){if(shl!==void 0)return shl;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return shl=
a},{mode:1});var uOR;_.kQ({is:"ytd-comments",_template:function(){if(uOR!==void 0)return uOR;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return uOR=a},
behaviors:[_.KRC.YtHostElementBehavior,_.x4.YtPlayerListenerBehavior,_.E.YtRendererBehavior,_.d4.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},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_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={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};this.initCommentsCsi_()},
contentsChanged_:function(a){a&&a.value&&a.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(a){a&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.rS("wn_comments");var a=_.nS();a&&_.pD({clientScreenNonce:a},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(a){a=s9C(a);var W,w,Z;if(a=(W=a)==null?void 0:(w=W.createCommentAction)==null?void 0:(Z=w.contents)==null?void 0:Z.commentThreadRenderer){var N,B,I,X,v,U;!this.isBackstage&&((N=this.data)==null?0:(B=N.header)==null?0:(I=B.commentsHeaderRenderer)==null?0:(X=I.createRenderer)==null?0:(v=X.commentSimpleboxRenderer)==null?0:(U=v.zeroStep)==null?0:U.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var O,S,T,p;this.isBackstage&&((O=this.data)==null?0:(S=O.header)==null?0:(T=S.commentsHeaderRenderer)==null?0:(p=T.zeroStateMessage)==null?0:p.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(a)}},
doReplyInsert_:function(a,W,w,Z){Z?this.splice(a,Z,0,W):this.push(a,W)},
getRepliesPath_:function(a){return"data.contents."+a+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(a,W){a=this.getRepliesPath_(a);return W?a+".commentRepliesRenderer.teaserContents":a+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(a){a=s9C(a);var W,w,Z=(W=a)==null?void 0:(w=W.createCommentReplyAction)==null?void 0:w.parentCommentId,N,B;if(W=(N=a)==null?void 0:(B=N.createCommentReplyAction)==null?void 0:B.contents)if(Z=this.commentIdToIndex_(Z),!(Z<0))if(N=this.getRepliesPath_(Z),this.get(N)){var I,X;a=(I=a)==null?void 0:(X=I.createCommentReplyAction)==null?void 0:X.replyToCommentId;I=this.getRepliesContentsPath_(Z,!1);this.get(I)&&(X=this.get(I).length,N=I+"."+(X-1)+".continuationItemRenderer",
this.get(N+".button")?(N=this.replyIdToIndex_(a,Z,!1),this.doReplyInsert_(I,W,N,X-1)):this.get(N)||(X=this.replyIdToIndex_(a,Z,!1),this.doReplyInsert_(I,W,X,null)));I=this.getRepliesContentsPath_(Z,!0);this.get(I)?(Z=this.replyIdToIndex_(a,Z,!0),(!a||Z>=0)&&this.doReplyInsert_(I,W,Z,null)):this.set(I,[W])}else this.set(N,{commentRepliesRenderer:{teaserContents:[W]}})},
hideReportedCommentAction_:function(a){var W,w=a==null?void 0:(W=a.hideReportedCommentAction)==null?void 0:W.commentId;if(w){var Z;a=a==null?void 0:(Z=a.hideReportedCommentAction)==null?void 0:Z.parentCommentId;w=w.replace("#",".");a||(a=this.getParentCommentId_(w));this.remove_(w,a)}},
getParentCommentId_:function(a){a=a.split(".");if(a[1])return a[0]},
removeCommentAction_:function(a){var W,w=a==null?void 0:(W=a.removeCommentAction)==null?void 0:W.commentId;if(w){var Z;a=a==null?void 0:(Z=a.removeCommentAction)==null?void 0:Z.parentCommentId;w=w.replace("#",".");a||(a=this.getParentCommentId_(w));this.remove_(w,a)}},
pinCommentAction_:function(a){a=s9C(a);var W,w,Z=(W=a)==null?void 0:(w=W.pinCommentAction)==null?void 0:w.commentId;Z&&(a=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",a))&&(this.remove_(Z),this.insert_(a,!0))},
unpinCommentAction_:function(a){a=s9C(a);var W,w,Z=(W=a)==null?void 0:(w=W.unpinCommentAction)==null?void 0:w.commentId;if(Z){var N,B,I;if(a=(N=a.unpinCommentAction)==null?void 0:(B=N.actionResult)==null?void 0:(I=B.update)==null?void 0:I.commentThreadRenderer)this.remove_(Z),this.insert_(a)}},
banAuthorAction_:function(a){var W,w=a==null?void 0:(W=a.banAuthorAction)==null?void 0:W.commentId;if(w){var Z;a=a==null?void 0:(Z=a.banAuthorAction)==null?void 0:Z.parentCommentId;w=w.replace("#",".");a||(a=this.getParentCommentId_(w));this.remove_(w,a)}},
commentIdToIndex_:function(a){var W;return a&&(W=this.data)!=null&&W.contents?this.data.contents.findIndex(function(w){var Z,N;return a===((w==null?void 0:(Z=w.commentThreadRenderer)==null?void 0:Z.commentViewModel)&&((N=_.A(w.commentThreadRenderer.commentViewModel,J9h))==null?void 0:N.commentId))}):-1},
insert_:function(a,W){var w,Z;if((w=this.data)==null?0:(Z=w.contents)==null?0:Z.some(function(B){return!(B==null||!B.commentThreadRenderer)}))for(w=0,Z=this.data.contents.length;w<Z;w++){var N=this.data.contents[w].commentThreadRenderer;
if(this.RenderingPriority[a.renderingPriority]>=this.RenderingPriority[N.renderingPriority]){W&&this.RenderingPriority[a.renderingPriority]==this.RenderingPriority[N.renderingPriority]?this.splice("data.contents",w,1,{commentThreadRenderer:a}):this.splice("data.contents",w,0,{commentThreadRenderer:a});break}}else this.set("data.contents",[{commentThreadRenderer:a}])},
doReplyRemove_:function(a,W,w){a=this.replyIdToIndex_(a,W,w);a<0||(W=this.getRepliesContentsPath_(W,w),this.splice(W,a,1))},
remove_:function(a,W){W=this.commentIdToIndex_(W);W<0?(W=this.commentIdToIndex_(a),W<0||this.splice("data.contents",W,1)):(this.doReplyRemove_(a,W,!1),this.doReplyRemove_(a,W,!0))},
replyIdToIndex_:function(a,W,w){if(W<0)return-1;W=this.getRepliesContentsPath_(W,w);W=this.get(W);if(!W||!W.length)return-1;w=0;for(var Z=W.length;w<Z;w++){var N=void 0,B=void 0;if(((N=W[w])==null?void 0:(B=N.commentViewModel)==null?void 0:B.commentId)===a)return w}return-1},
computeIsBackstage_:function(a){return!!a},
tickForCommentsTimer_:function(a){_.hk(a,void 0,"wn_comments")},
reloadComments_:function(a){a&&a.reloadCommentsCommand&&a.reloadCommentsCommand.command&&a.reloadCommentsCommand.command.continuationCommand&&_.Z9(this,[a.reloadCommentsCommand.command])}});var ra=function(){return _.Nt.apply(this,arguments)||this};
_.c(ra,_.Nt);_.t=ra.prototype;_.t.bindIf=function(a,W,w){return a?W:w};
_.t.bindIfDefined=function(a,W){return a!==void 0?a:W};
_.t.booleanString=function(a){return(!!a).toString()};
_.t.equals=function(){for(var a=_.TH.apply(0,arguments),W=a[0],w=1;w<a.length;w++)if(W!=a[w])return!1;return!0};
_.t.isGreaterThan=function(a,W){return a>W};
_.t.isLessThan=function(a,W){return a<W};
_.t.logicalAND=function(){for(var a=_.TH.apply(0,arguments),W=!!a[0],w=1;w<a.length;w++)W=W&&!!a[w];return W};
_.t.logicalOR=function(){for(var a=_.TH.apply(0,arguments),W=!!a[0],w=1;w<a.length;w++)W=W||!!a[w];return W};
_.t.toBool=function(a){return!!a};
ra.prototype.toBool=ra.prototype.toBool;ra.prototype.logicalOR=ra.prototype.logicalOR;ra.prototype.logicalAND=ra.prototype.logicalAND;ra.prototype.isLessThan=ra.prototype.isLessThan;ra.prototype.isGreaterThan=ra.prototype.isGreaterThan;ra.prototype.equals=ra.prototype.equals;ra.prototype.booleanString=ra.prototype.booleanString;ra.prototype.bindIfDefined=ra.prototype.bindIfDefined;ra.prototype.bindIf=ra.prototype.bindIf;ra=_.f([_.BA()],ra);_.CoL=[ra.prototype];var GIe;var D4L;var AH=function(){return _.u.apply(this,arguments)||this};
_.c(AH,_.u);AH.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
AH.prototype.onBackIconTap_=function(){window.history.back()};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],AH.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],AH.prototype,"data",void 0);AH=_.f([_.TD({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],AH);
_.D(AH,"yt-header-with-back-renderer",function(){if(D4L===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;GIe===void 0&&(GIe=document.createElement("template"));var Z=GIe;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);D4L=a}a=D4L;return a},{mode:2});var fRR;var d4$;var hH=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.c(hH,_.u);_.t=hH.prototype;_.t.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.t.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a,this.setUrl())};
_.t.dataChanged=function(){var a=this;if(this.data){var W=this.setUrl();W&&_.aN({destination:window,iframe:this.iframe,origin:_.w9_(W.toString()),channelName:"yt-iframe",onMessage:function(w){(w=a.getCommunicationCommand(w.data))&&a.ytComponentBehavior.resolveCommand(w)},
onEstablished:function(){}})}};
_.t.setUrl=function(){if(this.data&&this.data.iframeUrl){var a=_.cI(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(a)return _.nv(this.iframe,a),a}};
_.t.getCommunicationCommand=function(a){var W;if((W=this.data)!=null&&W.onCommunicationCommandsMap){W=this.data.onCommunicationCommandsMap.find(function(N){return N.key===a});
if(W==null?0:W.value)return W==null?void 0:W.value;try{var w=HBR(_.UR(a)),Z=this.data.onCommunicationCommandsMap.find(function(N){return N.key===(w==null?void 0:_.Lo(w,1))});
if(Z==null?0:Z.value)return Z==null?void 0:Z.value}catch(N){}}};
hH.prototype.dataChanged=hH.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],hH.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],hH.prototype,"actionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],hH.prototype,"data",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],hH.prototype,"isDarkTheme",void 0);_.f([_.w$("#iframe"),_.z("design:type",HTMLIFrameElement)],hH.prototype,"iframe",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hH.prototype,"dataChanged",null);hH=_.f([_.TD({is:"yt-iframe-renderer",disableElementRegistration:!0})],hH);
_.D(hH,"yt-iframe-renderer",function(){if(d4$===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;fRR===void 0&&(fRR=document.createElement("template"));var Z=fRR;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);d4$=a}a=d4$;return a},{mode:2});_.i1=function(a){_.OW.call(this);this.callback=a;this.bezier=new RSe(0,0,.4,0,.2,1,1,1);this.delay=new _.zc(this.next,window,this);this.JSC$14648_animating=!1;_.$3(this,this.delay)};
_.c(_.i1,_.OW);_.i1.prototype.isAnimating=function(){return this.JSC$14648_animating};
_.i1.prototype.start=function(a,W,w){this.config={from:a,to:W,duration:w,startTime:(0,_.mG)()};this.JSC$14648_animating=!0;this.next()};
_.i1.prototype.stop=function(){this.delay.stop();this.JSC$14648_animating=!1;this.config=void 0};
_.i1.prototype.next=function(){if(this.config){var a=this.config,W=a.from,w=a.to,Z=a.duration;a=a.startTime;var N=(0,_.mG)()-a;a=this.bezier;Z=Q5T(a,N/Z);if(Z==0)a=a.y0;else if(Z==1)a=a.y3;else{N=pI(a.y0,a.y1,Z);var B=pI(a.y1,a.y2,Z);a=pI(a.y2,a.y3,Z);N=pI(N,B,Z);B=pI(B,a,Z);a=pI(N,B,Z)}a=_.M9(a,0,1);this.callback(W+(w-W)*a);a<1?this.delay.start():this.JSC$14648_animating=!1}};_.c4=new _.yq("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var m4l={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},zMR=function(a,W,w,Z){_.OW.call(this);this.JSC$14656_miniAppId=a;this.localReleaseId=W;this.derivedDeviceInterface=w;this.isForeground=Z;this.JSC$14656_playNonceResolver=new _.wi;this.playPingTimerId=NaN;this.playPingIntervalMs=_.yv("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.yv("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.r("enable_displaying_ppn");this.JSC$14656_miniAppClientDataProvider=_.K().resolve(_.c4);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;VAJ(this);var N=setTimeout(function(){_.jJ(new _.Uw("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14656_playNonceResolver.promise.then(function(){clearTimeout(N)})};
_.c(zMR,_.OW);var yUh=function(a,W){a.JSC$14656_playNonceResolver.resolve(W!=null?W:hs(8));a.enableDisplayingPpn&&HE_(a).then(function(w){a.JSC$14656_miniAppClientDataProvider.clientData.set("post_play_nonce",w)})},HE_=function(a){return _.P(function(W){return W.nextAddress==1?_.g(W,a.JSC$14656_playNonceResolver.promise,2):W.return(W.yieldResult)})},VAJ=function(a){var W,w;
_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$14656_playNonceResolver.promise,2);W=Z.yieldResult;w={miniAppInfo:{externalPostId:a.JSC$14656_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:W,derivedDeviceInterface:a.derivedDeviceInterface}};_.pD(w);_.Xd(Z)})},a__=function(a){a.state!==0?_.jJ(new _.Uw("[MiniAppPlayLogger] recordPlayStart failed with state "+m4l[a.state])):(a.state=1,eE(a,"ma_cl"),n2(a,"PLAY_EVENT_TYPE_PLAY_START"),EPe(a))},WCE=function(a){a.isForeground=!1;
n2(a,"PLAY_EVENT_TYPE_PLAY_PAUSE")},wrJ=function(a){a.state!==1&&a.state!==2?_.jJ(new _.Uw("[MiniAppPlayLogger] recordPlayEnd failed with state "+m4l[a.state])):(a.state=3,window.clearInterval(a.playPingTimerId),a.playPingTimerId=NaN,UKe(),n2(a,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Zny=function(a,W){a.state===2&&a.gameReady&&(a.firstClickRecorded?Date.now()-a.clickRecordedMs<a.playClickIntervalMs||(a.clickRecordedMs=Date.now(),n2(a,"PLAY_EVENT_TYPE_PLAY_CLICK")):W&&(eE(a,"ma_fua"),n2(a,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),a.firstClickRecorded=!0,a.clickRecordedMs=Date.now()))};
zMR.prototype.logError=function(a){var W=this,w;_.P(function(Z){if(Z.nextAddress==1)return a.metadata.externalPostId=W.JSC$14656_miniAppId,w=a.metadata,_.g(Z,Promise.race([W.JSC$14656_playNonceResolver.promise,new Promise(function(N){setTimeout(function(){N("")},3E4)})]),2);
w.postPlayNonce=Z.yieldResult;a.metadata.localReleaseId=W.localReleaseId;a.loggingError.level="WARNING";_.eJ(a.loggingError,a.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:a.metadata});_.Xd(Z)})};
var NAR=function(a,W,w,Z){var N,B,I,X,v,U;_.P(function(O){if(O.nextAddress==1)return _.g(O,a.JSC$14656_playNonceResolver.promise,2);N=O.yieldResult;B={externalPostId:a.JSC$14656_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:N,sdkVersion:w,api:W};Z!==void 0&&(B.networkRequestsMeasurement={networkRequests:_.yo(Z,1),cachedRequests:_.yo(Z,2),transferredBytes:_.yo(Z,3)},(I=Z)==null?0:_.SF(I,zN,6))&&(B.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((X=_.Hi(Z,
zN,6))==null?void 0:Fk(X,1))||"0",cacheHits:((v=_.Hi(Z,zN,6))==null?void 0:Fk(v,2))||"0",cachedBytes:((U=_.Hi(Z,zN,6))==null?void 0:Fk(U,3))||"0"});_.ia("miniAppSdkUsage",B);_.Xd(O)})},$N_=function(a,W,w){var Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G;
_.P(function(V){if(V.nextAddress==1)return _.g(V,a.JSC$14656_playNonceResolver.promise,2);Z=V.yieldResult;N={externalPostId:a.JSC$14656_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:Z,sdkVersion:w,measurementWindow:{startTimestampMs:String(no(W,1)),endTimestampMs:String(no(W,2))},frameRate:{averageFrameTimeDeltaMs:jF(W,3),averageFrameIdleTimeMs:jF(W,4)}};_.SF(W,HT,5)&&(N.networkRequests={networkRequests:(B=Na(W))==null?void 0:_.yo(B,1),cachedRequests:(I=Na(W))==null?void 0:_.yo(I,2),transferredBytes:(X=
Na(W))==null?void 0:_.yo(X,3),sameOriginStatusCodeToCounts:thH((v=Na(W))==null?void 0:WnS(v,4)),crossOriginStatusCodeToCounts:thH((U=Na(W))==null?void 0:WnS(U,5))},(O=Na(W))==null?0:_.SF(O,zN,6))&&(N.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((S=Na(W))==null?void 0:(T=_.Hi(S,zN,6))==null?void 0:Fk(T,1))||"0",cacheHits:((p=Na(W))==null?void 0:(h=_.Hi(p,zN,6))==null?void 0:Fk(h,2))||"0",cachedBytes:((L=Na(W))==null?void 0:(F=_.Hi(L,zN,6))==null?void 0:Fk(F,3))||"0"});_.SF(W,
zhL,7)&&(N.gameCapture={averageFrameTimeDeltaMs:(x=_.Hi(W,zhL,7))==null?void 0:jF(x,1),averageFrameIdleTimeMs:(G=_.Hi(W,zhL,7))==null?void 0:jF(G,2)});_.ia("miniAppPerformanceMetrics",N);_.Xd(V)})},BAV=function(a,W,w){var Z,N;
return _.P(function(B){if(B.nextAddress==1)return _.g(B,a.JSC$14656_playNonceResolver.promise,2);Z=B.yieldResult;N={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:a.JSC$14656_miniAppId,postPlayNonce:Z,miniAppReleaseId:a.localReleaseId},derivedDeviceInterface:a.derivedDeviceInterface,adTriggerType:W};N.rejectedReason=w||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.ia("miniAppAdEvent",N);_.Xd(B)})};
zMR.prototype.disposeInternal=function(){_.OW.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var n2=function(a,W,w,Z){w=w===void 0?{}:w;Z=Z===void 0?!1:Z;var N,B,I,X;_.P(function(v){if(v.nextAddress==1)return N=a.isForeground,B=a.beforeReady,_.g(v,a.JSC$14656_playNonceResolver.promise,2);I=v.yieldResult;X={externalPostId:a.JSC$14656_miniAppId,localReleaseId:a.localReleaseId,derivedDeviceInterface:a.derivedDeviceInterface,postPlayNonce:I,type:W};w.sequenceGroup=I;X.playState=B?"PLAY_STATE_NOT_READY":N?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.ia("miniAppPlayEvent",X,w);
Z&&_.cZ();_.Xd(v)})},eE=function(a,W){var w;
_.P(function(Z){if(Z.nextAddress==1)return w=(0,_.mG)(),_.g(Z,a.JSC$14656_playNonceResolver.promise,2);_.Ak(W,w);_.Xd(Z)})},EPe=function(a){isNaN(a.playPingTimerId)&&(a.playPingTimerId=_.Zp(function(){a.state!==1&&a.state!==2?_.jJ(new _.Uw("[MiniAppPlayLogger] reportPlayPing failed with state "+m4l[a.state])):n2(a,"PLAY_EVENT_TYPE_PLAY_PING")},a.playPingIntervalMs))},thH=function(a){return Array.from(a.entries()).map(function(W){var w=_.l(W);
W=w.next().value;w=w.next().value;return{key:W,value:w}})};var l_l=_.yv("show_mini_app_ad_frequency_cap_ms",0),I_R=function(){this.showAdIntervalMs=l_l;this.isRateLimited=!0},PWE=function(a,W){setTimeout(function(){return a.isRateLimited=!1},a.showAdIntervalMs);
a.showMiniAppAdCommand=W.showMiniAppAdCommand;a.isEmbeddedInWebview=W.isEmbeddedInWebview;a.playLogger=W.playLogger},vnH=function(a,W){var w;
return _.P(function(Z){if(Z.nextAddress==1){if(!a.showMiniAppAdCommand||!a.isEmbeddedInWebview)return Z.return(Xre(a,W,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(a.isRateLimited)return Z.return(Xre(a,W,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));a.adResolver=new _.wi;w=UPl(new k_L,W);uL(a.showMiniAppAdCommand,O9_(w));a.isRateLimited=!0;setTimeout(function(){return a.isRateLimited=!1},a.showAdIntervalMs);
return _.g(Z,a.adResolver.promise,2)}return Z.return(Z.yieldResult)})};
I_R.prototype.onAdFinished=function(a){a=cNh(a);var W;(W=this.adResolver)==null||W.resolve(a)};
var Xre=function(a,W,w){var Z;return _.P(function(N){if(N.nextAddress==1)N=_.g(N,(Z=a.playLogger)==null?void 0:BAV(Z,dBx(W),w),2);else{var B=N.return;var I=new i4V;I=_.yJ(I,1,2);N=B.call(N,I)}return N})};var gnl=new _.yq("INNERTUBE_MANAGER_TOKEN");var onT=function(){this.callbacks={}};
onT.prototype.initialize=function(a){var W=this;this.callbacks=a;window.youtubewebview?window.youtubewebview.onmessage=function(w){kLe(W,w)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(w){kLe(W,w)})};
var kLe=function(a,W){if(W.data)try{var w=HBR(W.data);if(_.b9(_.Oy(w,1))!=null){var Z=I$R(_.Lo(w,2));switch(_.Lo(w,1)){case "yt-mini-app-load-audio-state":var N,B;(B=(N=a.callbacks).onAudioStateLoaded)==null||B.call(N,_.eF(Z,Un(Z,co,1)));break;case "yt-mute-mini-app":var I,X;(X=(I=a.callbacks).onMuteMiniApp)==null||X.call(I);break;case "yt-unmute-mini-app":var v,U;(U=(v=a.callbacks).onUnmuteMiniApp)==null||U.call(v);break;case "yt-playable-exit":var O,S;(S=(O=a.callbacks).onExit)==null||S.call(O);
break;case "yt-post-play-nonce":var T,p;(p=(T=a.callbacks).onPostPlayNonceReceived)==null||p.call(T,MT(Z,2,co));break;case "yt-confirm-exit-mini-app":var h,L;(L=(h=a.callbacks).confirmExitMiniApp)==null||L.call(h);break;case "yt-confirm-exit-mini-app-edu":var F,x;(x=(F=a.callbacks).confirmExitMiniAppEdu)==null||x.call(F);break;case "yt-benchmarking-response":var G,V;(V=(G=a.callbacks).onNativeBenchmarkingMessageReceived)==null||V.call(G,MT(Z,2,co));break;case "yt-mini-app-load-3p-consent-state":var d,
ZD;(ZD=(d=a.callbacks).multiplayer3pAckStateLoaded)==null||ZD.call(d,_.eF(Z,Un(Z,co,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var aC,Bv;(Bv=(aC=a.callbacks).exitMiniAppSeenStateLoaded)==null||Bv.call(aC,_.eF(Z,Un(Z,co,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Am,e9;(e9=(Am=a.callbacks).onNavigateToNewMiniApp)==null||e9.call(Am);break;case "yt-game-data-available":var cv,C7;(C7=(cv=a.callbacks).onGameDataAvailable)==null||C7.call(cv,MT(Z,2,co));break;case "yt-pause-mini-app":var RC,
G8;(G8=(RC=a.callbacks).onPauseMiniApp)==null||G8.call(RC);break;case "yt-resume-mini-app":var QF,vl;(vl=(QF=a.callbacks).onResumeMiniApp)==null||vl.call(QF);break;case "yt-playable-ad-finished":var Hl,SV;(SV=(Hl=a.callbacks).onAdFinished)==null||SV.call(Hl,MT(Z,2,co))}}else _.jJ(Error("Rh"))}catch(Ny){_.eJ(Error("Sh"))}else _.jJ(Error("Th"))};var VIF=function(a){this.rpcErrorCode=a};var jE=function(a,W,w){this.intervalMs=a;this.apiFunc=W;this.type=w;this.schedulerReady=!0};
jE.prototype.call=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1){if(W.type!==1&&a===W.cachedValue)return Z.return();W.pendingApiRequestResolver||(W.pendingApiRequestResolver=new _.wi);w=W.pendingApiRequestResolver.promise;W.cachedValue=a;return _.g(Z,UN$(W),2)}return Z.return(w)})};
jE.prototype.flush=function(a){a=a===void 0?!1:a;var W=this;return _.P(function(w){return W.cachedValue===void 0?w.return():_.g(w,W.apiFunc(W.cachedValue,a),0)})};
var UN$=function(a){var W,w,Z;return _.P(function(N){switch(N.nextAddress){case 1:if(!a.schedulerReady||!a.pendingApiRequestResolver)return N.return();a.schedulerReady=!1;W=a.pendingApiRequestResolver;a.pendingApiRequestResolver=void 0;_.tq(N,2);if(a.cachedValue===void 0){N.jumpTo(4);break}return _.g(N,a.apiFunc(a.cachedValue),5);case 5:w=N.yieldResult,W.resolve(w);case 4:_.qY(N,3);break;case 2:Z=_.Pb(N),W.reject(Z);case 3:setTimeout(function(){return _.P(function(B){a.schedulerReady=!0;return _.g(B,
UN$(a),0)})},a.intervalMs),_.Xd(N)}})};var yZx=window.location.origin+"/miniapp_cloudsaves",zVH=[400,401],On6=_.yv("cloud_save_game_data_rate_limit_ms",3E3),TAE=function(a){var W=this;this.JSC$14700_miniAppId=a;this.loadAttempts=0;this.cloudSaveIntervalMs=On6;this.initialDownloadDataSucceeded=!1;this.JSC$14700_playNonceResolver=new _.wi;this.scottyUploadRateLimiter=new jE(this.cloudSaveIntervalMs,function(w,Z){return Svl(W,w,Z)},2);
this.downloadDataPromise=Yv6(this);this.downloadDataPromise.then(function(){W.initialDownloadDataSucceeded=!0}).catch(function(){})},KCE=function(a,W){W.then(function(w){return a.JSC$14700_playNonceResolver.resolve(w)})},prV=function(a){return _.P(function(W){return a.cachedData===void 0?W.return(a.downloadDataPromise):W.return(a.cachedData)})},r__=function(a,W){return _.P(function(w){a.cachedData=W;
if(!a.initialDownloadDataSucceeded)throw Error("Uh");return _.g(w,a.scottyUploadRateLimiter.call(W),0)})},A_T=function(){return new Promise(function(a){setTimeout(a,1E3,"")})},hZT=function(a,W){var w,Z;
return _.P(function(N){if(N.nextAddress==1)return w=a.JSC$14700_miniAppId,_.g(N,Promise.race([a.JSC$14700_playNonceResolver.promise,A_T()]),2);Z={"X-YouTube-MiniAppId":w,"X-YouTube-PostPlayNonce":N.yieldResult};"DELEGATED_SESSION_ID"in _.nF&&D6e(W,Z);return N.return(Z)})},Svl=function(a,W,w){w=w===void 0?!1:w;
return _.P(function(Z){return mB8()?_.r("enable_cloud_save_error_popup_after_retry")?Z.return(new Promise(function(N,B){var I,X,v,U,O;return _.P(function(S){switch(S.nextAddress){case 1:I=0,X=!0,U=v=null;case 2:if(!(X&&I++<2)){S.jumpTo(4);break}_.tq(S,5);return _.g(S,inR(a,W,w),7);case 7:v=S.yieldResult;X=v.ok?!1:!zVH.includes(v.status);_.qY(S,2);break;case 5:U=O=_.Pb(S);X=HQS(U);S.jumpTo(2);break;case 4:v?v.ok?(L2(a,On6),N()):(L2(a,a.cloudSaveIntervalMs*2),B(Error("Vh`"+String(v.status),{cause:{rpcErrorCode:v.status}}))):
(L2(a,a.cloudSaveIntervalMs*2),B(U||Error("Wh"))),_.Xd(S)}})})):Z.return(new Promise(function(N,B){var I,X;
return _.P(function(v){if(v.nextAddress==1){if(a.JSC$14700_miniAppId==="")return B(Error("Xh")),v.return();_.tq(v,2);return _.g(v,inR(a,W,w),4)}if(v.nextAddress!=2)return I=v.yieldResult,I.ok?(L2(a,On6),N()):(L2(a,a.cloudSaveIntervalMs*2),B(Error("Vh`"+String(I.status),{cause:{rpcErrorCode:I.status}}))),_.qY(v,0);X=_.Pb(v);L2(a,a.cloudSaveIntervalMs*2);B(X);_.Xd(v)})})):Z.return()})},inR=function(a,W,w){w=w===void 0?!1:w;
var Z,N,B;return _.P(function(I){if(I.nextAddress==1)return Z=_.EI((new TextEncoder).encode(W)),N=ECe(),_.g(I,hZT(a,N),2);B=I.yieldResult;return I.return(fetch(N,{method:"POST",body:new Blob([Z]),headers:B,keepalive:w}))})},Yv6=function(a){var W,w;
return _.P(function(Z){if(Z.nextAddress==1){if(!mB8())return Z.return("");if(a.JSC$14700_miniAppId==="")throw Error("Xh");if(a.loadAttempts>2)return Z.return(a.downloadDataPromise);_.tq(Z,2);return _.g(Z,c_l(a),4)}if(Z.nextAddress!=2)return W=Z.yieldResult,Z.return(W);w=_.Pb(Z);if(HQS(w)&&++a.loadAttempts<2)return Z.return(Yv6(a));throw w;})},c_l=function(a){var W,w,Z,N,B;
return _.P(function(I){switch(I.nextAddress){case 1:return _.tq(I,2),W=ECe(),_.g(I,hZT(a,W),4);case 4:return w=I.yieldResult,_.g(I,fetch(W,{method:"GET",headers:w}),5);case 5:return Z=I.yieldResult,Z.ok?_.g(I,Z.text(),6):I.return(Promise.reject(Error("Yh`"+String(Z.status),{cause:new VIF(Z.status)})));case 6:return N=I.yieldResult,I.return((new TextDecoder).decode(_.UR(N)));case 2:return B=_.Pb(I),I.return(Promise.reject(B))}})},L2=function(a,W){a.cloudSaveIntervalMs=W;
a.scottyUploadRateLimiter.intervalMs=a.cloudSaveIntervalMs};
TAE.prototype.flush=function(){var a=this;return _.P(function(W){return a.initialDownloadDataSucceeded?_.g(W,a.scottyUploadRateLimiter.flush(!0),0):W.return()})};var eZ6=w7(Wo(1),Eo(1)),nnE=w7(Wo(1),Eo(3)),JH=function(a){this.callbacks=a};
_.t=JH.prototype;_.t.onAudioToggled=function(a,W){(W===void 0||W)&&_.$H("yt-mini-app-is-audio-enabled",a,2592E3)};
_.t.onPause=function(){this.onAudioToggled(!1,!1)};
_.t.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.t.returnNativeBenchmarkingMessage=function(){};
_.t.sendGameData=function(){};
_.t.sendStartGameFrameCapture=function(){};
var aM9=function(a,W,w){this.callbacks=a;var Z=this;this.sdkVersion=new _.wi;this.channel=new vIh(_.aN({destination:window,iframe:W,origin:(new URL(w.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var N=F6;var B=Wo(5);var I=new q9E;I=_.qT(I,1,1E4);B=_.N_(B,4,D9R,I);N(Z,B);Z.onAudioToggled(Z.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){Z.sdkVersion.resolve("")},1E4)};
_.c(aM9,JH);_.t=aM9.prototype;_.t.onAudioToggled=function(a,W){JH.prototype.onAudioToggled.call(this,a,W===void 0?!0:W);W=F6;var w=Wo(2),Z=new MaR;a=_.wh(Z,1,a);a=_.N_(w,3,D9R,a);W(this,a)};
_.t.onPause=function(){JH.prototype.onPause.call(this);F6(this,Wo(3))};
_.t.onResume=function(){JH.prototype.onResume.call(this);F6(this,Wo(4))};
_.t.returnNativeBenchmarkingMessage=function(a){var W=F6,w=Wo(6);var Z=Eo(_.SF(a,dm,1)?1:2);a=_.SF(a,dm,1)?a:null;Z=_.N_(Z,5,ai,a);W(this,w7(w,Z))};
_.t.sendGameData=function(a){var W=F6,w=Wo(7);a=_.N_(w,5,D9R,a);W(this,a)};
_.t.sendStartGameFrameCapture=function(){F6(this,Wo(9))};
var MA=function(a,W,w){var Z,N,B;return _.P(function(I){if(I.nextAddress==1)return Z=a.callbacks,N=Z.onSdkCalled,B=W,_.g(I,a.sdkVersion.promise,2);N.call(Z,B,I.yieldResult,w);_.Xd(I)})};
aM9.prototype.onMessage=function(){var a=this;return k8y(t4,function(W){var w,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V,d,ZD,aC,Bv,Am,e9,cv,C7,RC,G8,QF,vl,Hl,SV,Ny,Bl,JL,Pl,W9,rC,le,rT,Re,u9,eV,DE,mi,p6;return _.P(function(VF){switch(VF.nextAddress){case 1:if(!aLJ(W.data))return _.jJ(Error("Zh")),VF.return();w=_.JD(W.data,1);_.r("enable_iframe_message_get_type_via_fields")&&(Z=W.data,w=N=_.JD(Z,1));switch(w){case 8:if(W.data.hasMetadata()){var K6=a.sdkVersion,P2=K6.resolve;var AL=W.data.getMetadata();AL=
_.Lo(AL,1);P2.call(K6,AL);clearTimeout(a.sdkVersionTimeoutId)}break;case 6:return VF.jumpTo(2);case 16:if(!_.T1(W.data,m9A,14,$c))return VF.return();B=_.RY(W.data,m9A,14,$c);(X=(I=a.callbacks).onGameFrameReceived)==null||X.call(I,B);return VF.return();case 17:if(!_.T1(W.data,d96,15,$c))return VF.return();(U=(v=a.callbacks).onGameAudioReceived)==null||U.call(v,_.RY(W.data,d96,15,$c));return VF.return();case 1:if(K6=_.RY(W.data,b46,2,$c))switch(_.JD(K6,1)){case 1:a.callbacks.onFirstFrameReady();if(_.r("enable_network_request_logging_on_game_events")&&
_.SF(K6,HT,4)){MA(a,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Hi(K6,HT,4));break}MA(a,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(AL=(P2=a.callbacks).onGameReady)==null||AL.call(P2);if(_.r("enable_network_request_logging_on_game_events")&&_.SF(K6,HT,4)){MA(a,"MINI_APP_SDK_API_GAME_READY",_.Hi(K6,HT,4));break}MA(a,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.T1(K6,yp,3,sIH))a.callbacks.onResourceLoaded(_.RY(K6,yp,3,sIH))}return VF.return();case 3:return VF.jumpTo(3);case 4:return VF.jumpTo(4);
case 2:return VF.jumpTo(5);case 9:return VF.jumpTo(6);case 10:return a.callbacks.onClick(),VF.return();case 5:return VF.jumpTo(7);case 11:if(!_.T1(W.data,m6,9,$c))return VF.return();O=_.RY(W.data,m6,9,$c);(T=(S=a.callbacks).onBenchmarkingMessageReceived)==null||T.call(S,O);K6=W.reply;P2=Wo(1);AL=Eo(1);var KK=new m6;var P9=new Uint8Array(R0H(O,Un(O,nXe,6))|0);KK=XI(KK,5,nXe,_.C6(P9,!1));AL=_.N_(AL,5,ai,KK);K6.call(W,w7(P2,AL));return VF.return();case 12:return VF.jumpTo(8);case 13:return VF.jumpTo(9);
case 15:if(!_.r("enable_open_yt_content"))return W.reply(nnE),VF.return();if(!_.T1(W.data,fdh,12,$c))return W.reply(w7(Wo(1),Eo(2))),VF.return();K6=_.RY(W.data,fdh,12,$c);p=_.Lo(K6,1);a.callbacks.onOpenYTContent(p);W.reply(eZ6);return VF.return();case 14:return VF.jumpTo(10);default:return VF.return()}VF.jumpTo(0);break;case 2:if(!_.T1(W.data,Zl,5,$c))return VF.return();P2=W.data;K6=Un(P2,$c,5);P2=P2.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(K6=n_(P2,P2[_.n6]|0,Zl,K6))||(K6=Zl[Da])||
(K6=new Zl,F$(K6.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),K6=Zl[Da]=K6);h=K6;K6=_.z5(h,Vp,1,_.Hh());L=_.l(K6);F=L.next();case 12:if(F.done){VF.jumpTo(14);break}x=F.value;G=new _.Uw;G.level=_.JD(x,2)===1?"WARNING":"ERROR";V=wqe(x.getSource());return _.g(VF,a.sdkVersion.promise,15);case 15:d={source:V,sdkVersion:VF.yieldResult};_.rf(_.Oy(x,6))!=null?(G.message=x.getMessage(),G.stack=_.Lo(x,5),d.sdkErrorType=Zie(_.JD(x,6)),_.rf(_.Oy(x,7))!=null&&(d.sdkApi=NBx(_.JD(x,7)))):G.stack=void 0;
aC=ZD=void 0;(aC=(ZD=a.callbacks).onError)==null||aC.call(ZD,{loggingError:G,metadata:d});F=L.next();VF.jumpTo(12);break;case 14:return VF.return();case 3:return _.tq(VF,16),K6=a.callbacks,P2=K6.onSave,AL=_.RY(W.data,RhH,4,$c),AL=_.Lo(AL,1),_.g(VF,P2.call(K6,AL),18);case 18:W.reply(eZ6);_.qY(VF,17);break;case 16:return Bv=_.Pb(VF),Am=Cw,e9=Bv,cv=a.callbacks,C7="MINI_APP_SDK_API_SAVE_DATA",_.g(VF,a.sdkVersion.promise,19);case 19:Am(e9,cv,C7,VF.yieldResult),W.reply(nnE);case 17:return _.g(VF,MA(a,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return VF.return();case 4:return _.tq(VF,21),_.g(VF,a.callbacks.onLoad(),23);case 23:RC=VF.yieldResult;K6=W.reply;P2=Wo(1);AL=Eo(1);KK=new RhH;KK=_.Xu(KK,1,RC);AL=_.N_(AL,3,ai,KK);K6.call(W,w7(P2,AL));_.qY(VF,22);break;case 21:return G8=_.Pb(VF),QF=Cw,vl=G8,Hl=a.callbacks,SV="MINI_APP_SDK_API_LOAD_DATA",_.g(VF,a.sdkVersion.promise,24);case 24:QF(vl,Hl,SV,VF.yieldResult),W.reply(nnE);case 22:return _.g(VF,MA(a,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return VF.return();case 5:_.tq(VF,
26);a.callbacks.onSendHighScore(iJ(_.RY(W.data,yNV,3,$c).getValue()));W.reply(w7(Wo(1),Eo(1)));_.qY(VF,27);break;case 26:return Ny=_.Pb(VF),Bl=Cw,JL=Ny,Pl=a.callbacks,W9="MINI_APP_SDK_API_SEND_SCORE",_.g(VF,a.sdkVersion.promise,28);case 28:Bl(JL,Pl,W9,VF.yieldResult),W.reply(nnE);case 27:return _.g(VF,MA(a,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return VF.return();case 6:if(!_.T1(W.data,EX$,8,$c)){VF.jumpTo(30);break}K6=_.RY(W.data,EX$,8,$c);K6=_.JD(K6,1);return _.g(VF,MA(a,NBx(K6)),30);case 30:return VF.return();
case 7:return K6=W.reply,P2=Wo(1),AL=Eo(1),KK=a.callbacks.getLanguage(),AL=XI(AL,4,ai,xd(KK)),K6.call(W,w7(P2,AL)),_.g(VF,MA(a,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return VF.return();case 8:if(!_.T1(W.data,H46,10,$c))return VF.return();rC=_.RY(W.data,H46,10,$c);le=a.callbacks;rT=le.onSdkPerformanceUpdate;return _.g(VF,a.sdkVersion.promise,33);case 33:return rT.call(le,rC,VF.yieldResult),VF.return();case 9:K6=W.data;P2=Un(K6,$c,11);if(_.b9(_.Oy(K6,P2))==null)return W.reply(w7(Wo(1),Eo(2))),
VF.return();Re=MT(W.data,11,$c);a.callbacks.onShareInviteCode(Re);W.reply(eZ6);return _.g(VF,MA(a,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return VF.return();case 10:if(_.T1(W.data,FaH,13,$c)){VF.jumpTo(35);break}return _.g(VF,a.callbacks.onShowMiniAppAd(2),36);case 36:return u9=VF.yieldResult,W.reply(w7(Wo(1),CVl(u9))),_.g(VF,MA(a,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return VF.return();case 35:K6=_.RY(W.data,FaH,13,$c);a:switch(_.JD(K6,1)){case 1:K6={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:K6={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:K6={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}eV=K6;DE=eV.adType;mi=eV.sdkApi;K6=a.callbacks;P2=K6.onShowMiniAppAd;AL=_.RY(W.data,FaH,13,$c);AL=_.Lo(AL,2);return _.g(VF,P2.call(K6,DE,AL||void 0),38);case 38:return p6=VF.yieldResult,W.reply(w7(Wo(1),CVl(p6))),_.g(VF,MA(a,mi),39);case 39:return VF.return()}})})};
var F6=function(a,W){_.P(function(w){a.channel.send(W);_.Xd(w)})},dX=function(a,W,w){this.callbacks=a;
var Z=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;a=BCD(W,(new URL(w.toString())).origin);this.gameSnacks=new eee(a);this.gameSnacks.page.onReady(function(){Z.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){Z.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var N,B;(B=(N=Z.callbacks).onGameReady)==null||B.call(N)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(N,B){try{Z.callbacks.onSendHighScore(B)}catch(I){Cw(I,Z.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(N,B){var I;return _.P(function(X){if(X.nextAddress==1)return _.tq(X,2),_.g(X,Z.callbacks.onSave(Z.decoder.decode(B)),4);if(X.nextAddress!=2)return _.qY(X,0);I=_.Pb(X);Cw(I,Z.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return X.return()})});
this.gameSnacks.storage.onLoad(function(){var N,B;return _.P(function(I){if(I.nextAddress==1)return _.tq(I,2),_.g(I,Z.callbacks.onLoad(),4);if(I.nextAddress!=2)return N=I.yieldResult,I.return(Z.encoder.encode(N));B=_.Pb(I);Cw(B,Z.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return I.return(Z.encoder.encode(""))})});
this.gameSnacks.init()};
_.c(dX,JH);dX.prototype.onAudioToggled=function(a,W){JH.prototype.onAudioToggled.call(this,a,W===void 0?!0:W);var w;(w=this.gameSnacks)==null||w.audio.update(a)};
dX.prototype.onPause=function(){JH.prototype.onPause.call(this);var a;(a=this.gameSnacks)==null||a.game.pause()};
dX.prototype.onResume=function(){JH.prototype.onResume.call(this);var a;(a=this.gameSnacks)==null||a.game.resume()};var jGl=t_x,LCR=_.xQ(function(a){var W=a.data;var w=a.loadingProgress;a=_.l(_.$1("",void 0,"LYYTdd"));var Z=a.next().value,N=a.next().value;a=_.l(_.$1(!1,void 0,"K0waae"));var B=a.next().value,I=a.next().value,X=[],v=function(){return"transform: scaleX("+(_.ik(w)||0)+")"},U=null,O=function(){var h;
return(h=W()&&U)!=null?h:U=W().showAnniversaryAnimation?6:jGl()};
_.Ka(function(){var h;if(W().timeOutMessages&&((h=W().timeOutMessages)==null?0:h.length)){U=null;h=_.l(X);for(var L=h.next();!L.done;L=h.next())clearTimeout(L.value);X.length=0;$08(W().timeOutMessages,X,N,I)}});
var S=function(){return!!W().persistentErrorMessageTitle},T=function(){return w!==void 0},p=function(){return W().title};
return _.k("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.k("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.k("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.k("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var h,L=(h=W().backgroundImage)==null?void 0:h.sources,F;return(L==null?0:L.length)?"background-image: url("+((F=L[0])==null?void 0:F.url)+")":
""}}),_.k("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.k(_.Y,{cond:function(){return!S()},
then:function(){var h={};return _.k("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.k("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.k(_.w2,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+O()},
data:function(){var L="loading_animation_"+O();return{animationConfig:{name:L,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+L+".json",loop:!0,autoplay:!0}}}})),_.k("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.k(_.Y,{cond:p,
then:function(){return _.k("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},p)}}),_.k("p",{class:_.W$("mini-app-splash-screen-view-model-wiz__timeout-message",(h["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return B()},h)),
"aria-live":"polite"},Z),_.k(_.Y,{cond:T,then:function(){return _.k("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.k("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:v}))}})))}}),_.k(_.Y,{cond:S,
then:function(){return _.k("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.k("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return W().persistentErrorMessageTitle}),_.k(_.Y,{cond:function(){return!!W().persistentErrorMessageDescription},
then:function(){return _.k("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return W().persistentErrorMessageDescription})}}))}})))},"Ld");var J_R=new _.yq("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var FCy=uk;uk=function(a){function W(w){if(w){var Z,N;(Z=w.__spec)==null||(N=Z.didUnmount)==null||N.call(Z);for(Z=0;Z<w.childNodes.length;Z++)W(w.childNodes[Z])}}
FCy==null||FCy(a);kJ(function(){for(var w=0;w<a.length;w++)W(a[w])})};var Mhe=_.xQ(function(a){var W=a.data;var w=a.score;var Z=a.formattedScore;var N=a.onScoreChanged;var B=a.isEmbeddedInWebview;var I=_.fH(),X=function(){var p;return _.A(W==null?void 0:(p=W())==null?void 0:p.buttonViewModel,_.hx)},v=function(){var p;
return(w==null?void 0:w())||Number(W==null?void 0:(p=W())==null?void 0:p.lastScore)||0},U=function(){var p;
return(Z==null?void 0:Z())||((p=X())==null?void 0:p.title)||""},O,S=1;
if(a=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))a=Number(a),S=isNaN(a)?1:a/100;_.Ka(function(){N==null||N(v());var p;var h=_.rJ((p=X())==null?void 0:p.onTap);if(h){p=_.A(h,YFV);var L,F,x;p=_.A(p==null?void 0:(L=p.panelLoadingStrategy)==null?void 0:(F=L.inlineContent)==null?void 0:(x=F.dialogViewModel)==null?void 0:x.customContent,S1H)}else p=void 0;if(L=p)L.score=U()});
a=_.$_(function(){var p,h,L=W==null?void 0:(p=W())==null?void 0:(h=p.loggingDirectives)==null?void 0:h.trackingParams;L&&_.lM(_.K().resolve(_.Pw),L);return!1});
_.AS(function(){if(I.value){var p=I.value.querySelector("button"),h=X();p&&h&&BB7(p,h);zP("yt-share-playable-with-high-score",function(){var L=v().toString(),F=W==null?void 0:W().onShareHighScoreCommand,x=W==null?void 0:W().highScoreShareClientParamIdentifier,G=B==null?void 0:B();F&&(G?(x=new lJR,L=_.Xu(x,2,L),uL(F,L.JSC$10182_serializeBinary())):x&&(_.K().resolve(J_R).clientParams.set(x,{miniAppClientParams:{highScore:L}}),GQ8(F,!1)))})}});
var T=function(){var p=X();p&&(w==null?0:w())&&p.accessibilityText&&(p.accessibilityText=p.accessibilityText.replace(O,U()));O=U();return{numberValue:v(),numberText:U(),heightPx:36,fontSizeMultiplier:S,shouldAnimate:!(w==null||!w())&&!0}};
return _.k("yt-mini-app-score-button-view-model",{class:function(){var p={};return _.ZK("mini-app-score-button-view-model-wiz",(p["mini-app-score-button-view-model-wiz--is-visible"]=v()!==0,p))},
el:I,"on:click":a},uJ(!1,function(){return _.k("span",{style:"display:none;"},v)}),_.k(_.Ax,{data:function(){var p;
return W==null?void 0:(p=W())==null?void 0:p.buttonViewModel}},{buttonViewModel:function(p){return _.k(_.F7,{data:p.data,
animatedTextProps:T})}}))},"Md");var bnR=_.xQ(function(a){var W,w=(W=_.B7("yt-mini-app-is-theater-mode-enabled"))!=null?W:!1,Z=_.r("enable_playable_container_save_button"),N=_.r("enable_play_next_destination_page_in_toolbar");W={};return _.k("ytm-mini-app-top-bar-view-model",null,_.k("div",{class:_.W$("yt-mini-app-top-bar-view-model",(W["yt-mini-app-top-bar-view-model--mobile"]=!1,W["yt-mini-app-top-bar-view-model--desktop"]=!0,W))},_.k("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.k(_.Y,{cond:function(){var B;
return!!a.data().backButtonEdu&&!((B=a.isExitMiniAppSeen)==null?0:B.call(a))},
then:function(){return _.k(_.Ax,{data:function(){return a.data().backButtonEdu}},{buttonViewModel:_.F7})},
else:function(){return _.k(_.Ax,{data:function(){return a.data().backButton}},{buttonViewModel:_.F7})}}),_.k(_.Y,{cond:function(){return a.data().viewAllButton&&!0},
then:function(){return _.k(_.Ax,{data:function(){return a.data().viewAllButton}},{buttonViewModel:_.F7})}}),_.k(_.Y,{cond:function(){return a.data().title&&!0},
then:function(){return _.k("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return a.data().title})}})),_.k("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.k(_.Y,{cond:function(){var B;
return(B=a.isDesktopPlayPage)==null?void 0:B.call(a)},
then:function(){return _.k(_.Ha,null,_.k(RZ$,{highScoreButton:function(){return a.data().highScoreButton},
score:a.score,formattedScore:a.formattedScore,onScoreChanged:a.onScoreChanged,isEmbeddedInWebview:a.isEmbeddedInWebview}),_.k(qve,{enableSaveButton:function(){return _.ik(Z)},
saveButton:function(){return a.data().saveButton},
isSaved:a.isSaved,onSaveToggled:function(){return a.onSaveToggled}}),_.k(QGl,{menuButton:function(){return a.data().menuButton}}))},
else:function(){return _.k(_.Y,{cond:function(){return!1},
then:function(){return _.k(_.Ax,{data:function(){return a.data().playPageButton}},{buttonViewModel:function(B){return _.k(_.F7,{data:B.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.k(RZ$,{highScoreButton:function(){return a.data().highScoreButton},
score:a.score,formattedScore:a.formattedScore,onScoreChanged:a.onScoreChanged,isEmbeddedInWebview:a.isEmbeddedInWebview})}})}})),_.k("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.k(_.Ax,{data:function(){return a.data().muteButton}},{toggleButtonViewModel:function(B){var I=B.data;
return _.k(_.ce,{data:function(){var X,v;return Object.assign({},I(),{isToggled:(v=(X=a.isAudioEnabled)==null?void 0:X.call(a))!=null?v:!0})},
onToggle:a.onAudioToggled,useOutlinedIcon:!0})}}),_.k(_.Ax,{data:function(){return a.data().theatreModeButton}},{toggleButtonViewModel:function(B){var I=B.data;
return _.k("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.k(_.ce,{data:function(){return Object.assign({},I(),{isToggled:w})},
useOutlinedIcon:!0}))}}),_.k(xN6,{fullscreenButton:function(){return a.data().fullscreenButton}}),_.k(_.Y,{cond:function(){return _.ik(N)&&a.data().viewAllButton&&!1},
then:function(){return _.k(_.Ax,{data:function(){return a.data().viewAllButton}},{buttonViewModel:_.F7})}}),_.k(_.Y,{cond:function(){var B;
return!((B=a.isDesktopPlayPage)==null?0:B.call(a))},
then:function(){return _.k(_.Ha,null,_.k(qve,{enableSaveButton:function(){return _.ik(Z)},
saveButton:function(){return a.data().saveButton},
isSaved:a.isSaved,onSaveToggled:function(){return a.onSaveToggled}}),_.k(QGl,{menuButton:function(){return a.data().menuButton}}))}}))))},"Nd");
bnR.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var QGl=_.xQ(function(a){return _.k(_.Ax,{data:a.menuButton},{buttonViewModel:_.F7})},"Od"),qve=_.xQ(function(a){var W=a.enableSaveButton;
var w=a.saveButton;var Z=a.isSaved;var N=a.onSaveToggled;return _.k(_.Y,{cond:function(){return W()&&!(w==null||!w())},
then:function(){return _.k(_.Ax,{data:function(){var B=_.A(w==null?void 0:w(),_.iK),I;return{toggleButtonViewModel:Object.assign({},B,{isToggled:(I=Z==null?void 0:Z())!=null?I:!(B==null||!B.isToggled)})}}},{toggleButtonViewModel:function(B){return _.k(_.ce,{data:B.data,
onToggle:N})}})}})},"Pd"),RZ$=_.xQ(function(a){var W=a.highScoreButton;
var w=a.score;var Z=a.formattedScore;var N=a.onScoreChanged;var B=a.isEmbeddedInWebview;return _.k(_.Ax,{data:W},{miniAppScoreButtonViewModel:function(I){return _.k(Mhe,{data:I.data,score:w,formattedScore:Z,onScoreChanged:N,isEmbeddedInWebview:B})}})},"Qd"),xN6=_.xQ(function(a){a=a.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.k(_.Ha,null):_.k(_.Ax,{data:a},{buttonViewModel:_.F7})},"Rd");_.sGL=new _.yq("DESKTOP_CURRENT_PAGE");var dN$=_.xQ(function(a){var W=a.data;var w=_.r("force_active_time_logging_webview"),Z=_.r("skip_logs_after_end_event"),N=!1,B=new onT,I=void 0,X=void 0,v=_.K().resolve(gnl),U=new I_R,O=void 0,S=void 0,T=[],p=void 0,h=void 0,L=!1,F=!1,x=!1,G=!1,V=new _.wi,d=_.K().resolve(J_R),ZD=_.K().resolve(_.c4),aC=_.K().resolve(_.Vv(I4)),Bv,Am=(Bv=_.K().resolve(_.Vv(_.sGL)))==null?void 0:Bv.getCurrentPage(),e9=!1,cv=0,C7=function(Hv){Hv.preventDefault();return Hv.returnValue=""},RC;
a=_.l(_.$1(!((RC=_.B7("yt-mini-app-is-audio-enabled"))!=null&&!RC),void 0,"HPBZTb"));var G8=a.next().value,QF=a.next().value,vl;RC=_.l(_.$1(!((vl=_.B7("exit-mini-app-seen-state"))==null||!vl),void 0,"kLuFyc"));var Hl=RC.next().value,SV=RC.next().value;vl=_.l(_.$1(!1,void 0,"o1PbLc"));var Ny=vl.next().value,Bl=vl.next().value;vl=_.l(_.$1(void 0,void 0,"YlqNme"));var JL=vl.next().value,Pl=vl.next().value;vl=_.l(_.$1(void 0,void 0,"AeYJne"));var W9=vl.next().value,rC=vl.next().value;vl=_.l(_.$1(!0,void 0,
"aEz9qb"));var le=vl.next().value,rT=vl.next().value;vl=_.l(_.$1(!1,void 0,"bcquyc"));var Re=vl.next().value,u9=vl.next().value;vl=_.l(_.$1(void 0,void 0,"FMAC5b"));var eV=vl.next().value,DE=vl.next().value;vl=_.l(_.$1(0,void 0,"HUGJEb"));var mi=vl.next().value,p6=vl.next().value,VF=_.D8(),K6=function(){return W().isEmbeddedInWebview},P2=function(){return W().hasPlayNextShelf};
zP("yt-page-type-changed",function(Hv){if(_.r("enable_is_mini_app_page_active_bugfix"))Hv.detail.newPageSubtype!=="mini_app"&&le()&&P9();else if(Hv=_.v0D()==="mini_app",Hv!==le())if(rT(Hv),Hv){var OI;Hv=(OI=W().playableId)==null?void 0:OI.toString();Hv!==void 0&&window.location.href.includes(Hv)&&!F&&(G=!0,AL(),$R(oE.value))}else Hv||P9()});
zP("yt-action",function(Hv){Hv.detail.actionName==="yt-engagement-panel-visible-changed"&&Hv.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Hv.detail.args[2]==="PAmini_app_panel"&&P9();_.r("enable_is_mini_app_page_active_bugfix")?Hv.detail.actionName==="yt-history-load"&&!le()&&(Am==null?0:Am.active)?(rT(!0),AL(),$R(oE.value)):Hv.detail.actionName==="yt-history-load"&&le()&&!W().isEmbeddedInWebview&&hl():le()&&Hv.detail.actionName==="yt-history-load"&&(G?G=!1:W().isEmbeddedInWebview||hl())});
_.Ao(function(){KK()});
_.Ka(function(){AL()});
var AL=function(){var Hv=W().playableId,OI=W().localReleaseId,XX=W().derivedDeviceInterface;if(F)_.jJ(new _.Uw("[MiniAppContainerViewModel] onEnter was called more than once"));else{F=!0;I=new zMR(Hv,OI,XX,document.visibilityState==="visible");a__(I);X=new TAE(Hv);uBL(v,Hv);PWE(U,{showMiniAppAdCommand:W().showMiniAppAdCommand,isEmbeddedInWebview:W().isEmbeddedInWebview,playLogger:I});jmx()&&(h=document.body.style.backgroundColor,_.RN(document.body,"background-color","black"));xb();OR();V=new _.wi;
if(W().isEmbeddedInWebview){if(Hv=(new URLSearchParams(window.location.search)).get("postPlayNonce"))yUh(I,Hv),e9=!0;B.initialize({onAudioStateLoaded:function(RP){Y8(RP)},
onMuteMiniApp:function(){Y8(!1)},
onUnmuteMiniApp:function(){Y8(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(RP){e9||(yUh(I,RP),e9=!0)},
confirmExitMiniApp:function(){var RP,GH,tI;return _.P(function(Ca){if(Ca.nextAddress==1)return W().confirmExitMiniAppCommand?_.g(Ca,Promise.race([V.promise,Promise.resolve(!1)]),2):Ca.return();(RP=Ca.yieldResult)?!W().confirmExitMiniAppCommandEdu||(tI=(GH=Hl)==null?void 0:GH())!=null&&tI?Qo(W().confirmExitMiniAppCommand):(Qo(W().confirmExitMiniAppCommandEdu),_.$H("exit-mini-app-seen-state","true",2592E6)):Qo(W().closeMiniAppCommand);_.Xd(Ca)})},
onNativeBenchmarkingMessageReceived:function(RP){RP=LaA(_.CsC(RP));if(_.T1(RP,_.sa,3,ehy)){var GH=_.RY(RP,_.sa,3,ehy),tI=DBH();var Ca=iJ(tI.getSeconds())-iJ(GH.getSeconds());GH=_.yo(tI,2)-_.yo(GH,2);Ca<0&&GH>0?(Ca+=1,GH-=1E9):Ca>0&&GH<0&&(--Ca,GH+=1E9);Ca=(new dm).setSeconds(Ca);Ca=_.hI(Ca,2,_.Az(GH),0);_.ZP(RP,1,Ca)}var po;(po=S)==null||po.returnNativeBenchmarkingMessage(RP)},
multiplayer3pAckStateLoaded:function(RP){hl(RP)},
exitMiniAppSeenStateLoaded:function(RP){W().confirmExitMiniAppCommandEdu&&SV(RP)},
onNavigateToNewMiniApp:function(){Qo(W().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(RP){RP=new URLSearchParams(RP);var GH=void 0;RP.has("invite_code")&&(GH=new x9_,RP=RP.get("invite_code"),GH=_.Xu(GH,1,RP));if(RP=GH){var tI;(tI=S)==null||tI.sendGameData(RP)}},
onPauseMiniApp:function(){N=!0;ox()},
onResumeMiniApp:function(){N=!0;CK()},
onAdFinished:function(RP){U.onAdFinished(RP)}});
W().showMultiplayer3pConsentDialogCommand||V.resolve(!0);Qo(W().onContainerReadyCommand)}else yUh(I),V.resolve(!0);KCE(X,HE_(I));HE_(I).then(function(RP){RP={miniAppPlayData:{postPlayNonce:RP}};var GH,tI=(GH=W().loggingDirectives)==null?void 0:GH.trackingParams;tI&&_.$J().stateChanged(tI,RP)});
Hv=W().showSignInDialogCommand;!mB8()&&Hv&&(_.$H("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Qo(Hv));W().confirmExitMiniAppCommand&&aC&&(Hv=ueC(W().confirmExitMiniAppCommand))&&(aC.customConfirmationCommand=Hv)}},KK=function(){if(!Z||F)h&&_.RN(document.body,"background-color",h),L=!1,p&&p.release(),X.flush().catch(function(Hv){_.jJ(Hv)}),v.flush().catch(function(Hv){_.jJ(Hv)}),wrJ(I),mH(),S=void 0,Z&&(F=!1),CWL(d)},P9=function(){rT(!1);
KK();Bl(!1);DE(void 0);Pl(void 0);rC(void 0);cv=0;p6(0);Z||(F=!1)},ox=function(){var Hv;
(Hv=S)==null||Hv.onPause();p&&p.release();X.flush().catch(function(OI){_.jJ(OI)});
v.flush().catch(function(OI){_.jJ(OI)});
WCE(I)},CK=function(){var Hv;
(Hv=S)==null||Hv.onResume();OR();Hv=I;Hv.isForeground=!0;n2(Hv,"PLAY_EVENT_TYPE_PLAY_RESUME")},Y8=function(Hv){var OI;
(OI=S)==null||OI.onAudioToggled(Hv);QF(Hv)},hl=function(Hv){W().showMultiplayer3pConsentDialogCommand&&(W().isEmbeddedInWebview&&Hv!==void 0&&V.resolve(Hv),!Hv&&_.v0D()==="mini_app"&&Qo(W().showMultiplayer3pConsentDialogCommand))},bA=function(){var Hv,OI,XX,RP;
return _.P(function(GH){if(GH.nextAddress==1){if(Z&&!F)return GH.return();!W().isLivestream||W().disableVideoCapture||(Hv=S)!=null&&Hv.sendStartGameFrameCapture();OI=(new URL(window.location.href)).searchParams;if(OI.has("invite_code")){var tI=new x9_,Ca=OI.get("invite_code");XX=_.Xu(tI,1,Ca);(RP=S)==null||RP.sendGameData(XX)}Ny()||(Bl(!0),tI=I,tI.state!==1?_.jJ(new _.Uw("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+m4l[tI.state])):(_.a0("mini_app_ids_without_game_ready").includes(tI.JSC$14656_miniAppId)&&
(tI.gameReady=!0),tI.state=2,tI.beforeReady=!1,eE(tI,"ma_ffr"),n2(tI,"PLAY_EVENT_TYPE_PLAY_READY")));return _.g(GH,V.promise,2)}Qo(W().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();W().isEmbeddedInWebview||hl();_.Xd(GH)})},i9=function(){var Hv=I;
Hv.gameReady=!0;eE(Hv,"ma_gr")},fK=function(Hv){var OI;
return _.P(function(XX){if(XX.nextAddress==1)return _.tq(XX,2),_.g(XX,r__(X,Hv),4);if(XX.nextAddress!=2)return _.qY(XX,0);OI=_.Pb(XX);Qo(W().showSavingErrorPopupCommand);throw OI;})},XL=function(){var Hv,OI;
return _.P(function(XX){if(XX.nextAddress==1)return _.tq(XX,2),_.g(XX,prV(X),4);if(XX.nextAddress!=2)return Hv=XX.yieldResult,XX.return(Hv);OI=_.Pb(XX);Qo(W().showLoadingErrorDialogCommand);throw OI;})},Aw=function(Hv){I.logError(Hv)},ch=function(Hv,OI,XX){NAR(I,Hv,OI,XX)},Ui=function(Hv,OI){$N_(I,Hv,OI)},$q=function(){!w&&W().isEmbeddedInWebview||_.zK();
Zny(I,!0);L||(window.addEventListener("beforeunload",C7,{capture:!0}),L=!0)},zH=function(Hv){var OI,XX,RP,GH,tI,Ca,po;
return _.P(function(u5){if(u5.nextAddress==1)return v&&(!O||O<Hv)&&Hv>0?_.g(u5,GL6(v,Hv),3):u5.jumpTo(0);OI=u5.yieldResult;XX=_.l(OI);RP=XX.next().value;GH=XX.next().value;tI=RP;Ca=GH;((po=tI)==null?0:po.displayString)&&Ca&&(Pl(Ca),rC(tI.displayString));_.Xd(u5)})},pM=function(Hv){var OI=W().onBenchmarkingMessageReceivedCommand;
if(OI){var XX=DBH();_.N_(Hv,3,ehy,XX);uL(OI,JNA(Hv))}},T8=function(Hv){var OI=W().onGameFrameReceivedCommand;
if(OI){var XX=new k_L;var RP=new XyV;var GH=no(Hv,1);RP=_.SJ(RP,1,GH);Hv=_.Lo(Hv,2);Hv=_.Xu(RP,2,Hv);XX=_.ZP(XX,2,Hv);uL(OI,O9_(XX))}},Jm=function(Hv){var OI=W().onGameAudioDataReceivedCommand;
if(OI){var XX=new k_L;var RP=new g$J;Hv=_.Lo(Hv,1);RP=_.Xu(RP,1,Hv);XX=_.ZP(XX,4,RP);uL(OI,O9_(XX))}},sS=function(){var Hv=new URLSearchParams(window.location.search);
if(W().isEmbeddedInWebview&&Hv&&Hv.get("override_hl")==="true"&&Hv.get("hl"))return Hv.get("hl");Hv=document.documentElement.lang;return Hv!==""?Hv:_.Lx},kR=function(Hv){var OI=W().onShareInviteCodeCommand;
if(OI)if(W().isEmbeddedInWebview){var XX=new lJR;Hv=_.Xu(XX,1,Hv);uL(OI,PM_(Hv))}else XX=W().inviteCodeShareClientParamIdentifier,d.clientParams.set(XX,{miniAppClientParams:{inviteCode:Hv}}),Qo(OI)},tz=function(Hv){var OI,XX,RP;
return _.P(function(GH){if(GH.nextAddress==1)return OI=W().onMiniAppOpenYtContentRequested,v&&_.r("enable_open_yt_content")&&OI?_.g(GH,DNE(v,Hv),3):GH.jumpTo(0);XX=GH.yieldResult;if(XX==="OK")if(W().isEmbeddedInWebview){var tI=new BI_;RP=XI(tI,2,co,xd(Hv));uL(OI,PcT(RP))}else ZD.clientData.set("video_id",Hv),Qo(OI);_.Xd(GH)})},L_=function(Hv){cv+=_.yo(Hv,3);
Hv=Math.min(Math.log(1+cv/15E6*9)/Math.log(10),.99);p6(Hv);gf(Hv)},gf=_.T6(function(Hv){var OI=W().updateLoadingProgressCommand;
if(OI){var XX=new BI_;Hv=XI(XX,3,co,_.IE(Hv));uL(OI,PcT(Hv))}},100),YR=function(Hv){return vnH(U,Hv)},OR=function(){var Hv,OI;
((Hv=_.Uux())==null?void 0:(OI=Hv.wakeLock)==null?void 0:OI.request)!=null&&_.Uux().wakeLock.request("screen").then(function(XX){p=XX}).catch(function(){})},oE=_.D8();
_.Ka(function(){W().isSupportedCountry&&(mB8()||_.r("enable_sign_in_promo")||!W().showSignInDialogCommand?$R(oE.value):Qo(W().onMiniAppReadyCommand))});
var iY=function(){return _.k("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Ny()?0:-1},
el:oE})},$R=function(Hv,OI){OI=OI===void 0?!1:OI;
var XX=pv();XX&&(OI||XX.toString()!==Hv.getAttribute("src"))&&(S=WLE(W().source,{isAudioEnabled:G8,onFirstFrameReady:bA,onGameReady:i9,onSave:fK,onLoad:XL,onError:Aw,onSdkCalled:ch,onSdkPerformanceUpdate:Ui,onClick:$q,onSendHighScore:zH,onBenchmarkingMessageReceived:pM,getLanguage:sS,onShareInviteCode:kR,onResourceLoaded:L_,onOpenYTContent:tz,onShowMiniAppAd:YR,onGameFrameReceived:T8,onGameAudioReceived:Jm},Hv,XX),lx(Hv,"load",function(){eE(I,"ma_il");lx(Hv,"load",function(){$R(Hv,!0)})}),_.nv(Hv,
XX))},pv=function(){var Hv=W().url;
if(Hv&&(Hv=_.cI(Hv),Hv!==null)){if(W().source&&W().source==="MINI_APP_SOURCE_GAMESNACKS")Hv=_.EK(Hv,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.r("enable_origin_query_parameter_bugfix")){var OI=_.ea(_.API(Hv.toString()));OI=new URLSearchParams(OI||"");OI.set("origin",window.location.origin);OI=OI.toString();Hv=_.IJ(Hv).toString();Hv=_.lq(yLE.exec(Hv)[0]+(OI.trim()?"#"+OI:""))}return Hv}},Oi=function(){var Hv={};
Hv=_.W$("yt-mini-app-container-view-model__loading-screen",(Hv["yt-mini-app-container-view-model__loading-screen--fade-out"]=Ny,Hv));var OI=function(){return Ny()?1:mi()};
return _.k("div",{class:Hv},_.k(_.Ax,{data:function(){return W().splashScreen}},{miniAppSplashScreenViewModel:function(XX){return _.k(LCR,{data:XX.data,
loadingProgress:OI})}}))},xb=function(){T=[];
T.push(_.vX(window,"visibilitychange",function(){x||N&&K6()||(document.visibilityState==="visible"?CK():ox())}));
T.push(_.vX(window,"pagehide",function(){KK()}));
T.push(_.vX(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&VF.value.dispatchEvent(new Event("tap"))},0)}));
T.push(_.vX(VF.value,"pointerdown",function(){Zny(I,!1)},!0));
T.push(_.vX(VF.value,"pause",function(){x=!0;ox()}));
T.push(_.vX(VF.value,"play",function(){x=!1;CK()}));
T.push(_.vX(VF.value,"exit",function(){KK()}));
var Hv=navigator.keyboard,OI=Hv&&Hv.lock;T.push(_.vX(window,a3R,function(){u9(wuA());wuA()?(W().hasPlayNextShelf&&vM("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),pN("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),OI&&Hv.lock(["Escape"])):(W().hasPlayNextShelf&&pN("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),vM("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),OI&&Hv.unlock())}));
W().showMultiplayer3pConsentDialogCommand&&T.push(_.vX(window,"yt-playables-ack-3p-data-usage",function(){f_A(v)}));
W().confirmExitMiniAppCommandEdu&&T.push(_.vX(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.$H("exit-mini-app-seen-state","true",2592E6)}))},mH=function(){T.forEach(function(Hv){Id(Hv)});
window.removeEventListener("beforeunload",C7,{capture:!0})},Qo=function(Hv){Hv&&GQ8(Hv,W().isEmbeddedInWebview||!1)},pN=function(Hv,OI){Hv=_.l(VF.value.getElementsByClassName(Hv));
for(var XX=Hv.next();!XX.done;XX=Hv.next())XX.value.classList.add(OI)},vM=function(Hv,OI){Hv=_.l(VF.value.getElementsByClassName(Hv));
for(var XX=Hv.next();!XX.done;XX=Hv.next())XX.value.classList.remove(OI)};
return function(){var Hv={};Hv=_.W$("yt-mini-app-container-view-model",(Hv["yt-mini-app-container-view-model--desktop"]=!0,Hv["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return W().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Hv["yt-mini-app-container-view-model--ios-web-view"]=jmx(),Hv["yt-mini-app-container-view-model--no-top-bar"]=function(){return!W().topBar},Hv["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return W().hasPlayNextShelf},Hv["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return W().hasPlayNextShelf},Hv["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Re()&&W().hasPlayNextShelf},Hv));
var OI={};OI=_.W$("yt-mini-app-container-view-model__content",(OI["yt-mini-app-container-view-model__content--desktop-content"]=!0,OI["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return W().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},OI["yt-mini-app-container-view-model--desktop-play-page"]=function(){return W().hasPlayNextShelf},OI));
return _.k("mini-app-container-view-model",{el:VF},_.k("div",{class:Hv},_.k(_.Y,{cond:function(){return W().topBar&&!Re()},
then:function(){return _.k(_.Ax,{data:function(){return W().topBar}},{miniAppTopBarViewModel:function(XX){return _.k(bnR,{data:XX.data,
isAudioEnabled:G8,onAudioToggled:function(RP){Y8(RP)},
score:JL,formattedScore:W9,onScoreChanged:function(RP){O=RP},
isEmbeddedInWebview:K6,isSaved:eV,onSaveToggled:function(RP){DE(RP)},
isExitMiniAppSeen:Hl,isDesktopPlayPage:P2})}})}}),_.k("div",{class:OI},_.k(_.Y,{cond:le,
then:function(){return iY()}}),_.k(_.Y,{cond:function(){return!W().isEmbeddedInWebview},
then:function(){return Oi()}}))))}()},"Sd");
dN$.idomCompat=!0;_.Ct(dN$,"mini-app-container-view-model",{props:{data:_.qR}});var mNT=_.xQ(function(a){var W=a.data;return _.k("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.k("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.$_(function(){var w=W().onTap;w&&_.cX(w)})},_.k(_.Y,{cond:function(){return W().icon},
then:function(w){return _.k(_.P$,{icon:function(){return w().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.k("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return W().title})))},"Td");
mNT.idomCompat=!0;var VhV=_.xQ(function(a){var W=_.D8(),w=_.l(_.$1(void 0,void 0,"kFCJ0c")),Z=w.next().value,N=w.next().value;w=_.l(_.$1(void 0,void 0,"PIPgWd"));var B=w.next().value,I=w.next().value;w=_.l(_.$1(void 0,void 0,"rV66ob"));var X=w.next().value,v=w.next().value,U=function(){var x=Z();return x!==void 0?Math.abs(x):void 0},O=function(){var x=U();
return x===void 0||x<=3},S=function(){var x=U();
var G=B(),V=X();x=x!==void 0&&G!==void 0&&V!==void 0?G-V-x:void 0;return x===void 0||x<=3},T=function(x){W.value&&W.value.scrollBy({top:0,
left:(_.LF("HTML_DIR")==="rtl"?-1:1)*x*W.value.clientWidth,behavior:"smooth"})},p=function(){var x;
N((x=W.value)==null?void 0:x.scrollLeft);var G;I((G=W.value)==null?void 0:G.scrollWidth);var V;v((V=W.value)==null?void 0:V.clientWidth)},h=function(){T(-.5)},L=function(){T(.5)};
w=_.$_(function(){p()});
_.pF(function(){p();if(W.value){var x=new ResizeObserver(p);x.observe(W.value);_.Ao(function(){x.disconnect()})}});
var F={};return _.k("yt-sponsorships-scrollable-shelf",{class:_.W$("ytdSponsorshipsScrollableShelfHost",a.className)},_.k("div",{class:_.W$("ytdSponsorshipsScrollableShelfContent",(F.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return a.data().previousButton&&a.data().nextButton&&!O()&&!S()},F.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return a.data().previousButton&&!O()&&S()},F.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return a.data().nextButton&&
O()&&!S()},F)),
el:W,"on:scroll":w},a.children),_.k(_.Y,{cond:function(){return!O()},
then:function(){return _.k(_.Ax,{data:function(){return a.data().previousButton}},{buttonViewModel:function(x){return _.k(_.F7,{data:x.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:h})}})}}),_.k(_.Y,{cond:function(){return!S()},
then:function(){return _.k(_.Ax,{data:function(){return a.data().nextButton}},{buttonViewModel:function(x){return _.k(_.F7,{data:x.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:L})}})}}))},"Ud");
VhV.idomCompat=!0;var HnT=_.xQ(function(a){var W=a.data;a={};return _.k("yt-sponsorships-hub",{class:_.W$("ytdSponsorshipsHubHost",(a.ytdSponsorshipsHubHostIndented=function(){return W().indented},a))},_.k("div",{class:"ytdSponsorshipsHubHeader"},_.k("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.k("div",{class:"ytdSponsorshipsHubAvatar"},_.k(_.Ax,{data:function(){return W().avatar}},{avatarViewModel:_.c6})),_.k(_.Y,{cond:function(){return W().badgeImage},
then:function(w){return _.k("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.k("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.k("div",{class:"ytdSponsorshipsHubBadge"},_.k(_.qw,{data:w,targetWidth:24,targetHeight:24,alt:""}))))}})),_.k("div",{class:"ytdSponsorshipsHubDetails"},_.k("div",{class:"ytdSponsorshipsHubTierName"},function(){return W().tierName}),_.k("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return W().membershipType}),_.k("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return W().membershipDurationOrExpiry})),_.k("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.k(_.Ax,{data:function(){return W().manageButton}},{buttonViewModel:function(w){return _.k(_.F7,{data:w.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.k(_.Ax,{data:function(){return W().actionMenuButton}},{buttonViewModel:function(w){return _.k(_.F7,{data:w.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.k("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return W().perksTitle}),_.k(VhV,{data:function(){return{previousButton:W().previousPerkButton,
nextButton:W().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.k("div",{class:"ytdSponsorshipsHubPerkCards"},_.k(_.Ax,{data:function(){return W().perkCards}},{sponsorshipsHubPerkCardViewModel:mNT}),_.k(_.Y,{cond:function(){return W().viewAllPerksButton},
then:function(w){return _.k(zZ_,{data:w})}}))))},"Vd");
HnT.idomCompat=!0;var zZ_=_.xQ(function(a){var W=a.data;return _.k("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.k(_.Ax,{data:function(){return W().button}},{buttonViewModel:_.F7}),_.k("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.k("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return W().title}),_.k("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return W().subtitle})))},"Wd");
zZ_.idomCompat=!0;_.Ct(HnT,"yt-sponsorships-hub",{props:{data:_.qR}});_.y_T=_.xQ(function(a){var W=a.data;return _.k("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.It({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var w;return((w=W().badgeCutoutRadius)!=null?w:14)+"px"}})},_.k("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.k(_.Ax,{data:function(){return W().startAvatar}},{avatarViewModel:_.c6}),_.k(_.Ax,{data:function(){return W().endAvatar}},{avatarViewModel:_.c6})),_.k(_.Ax,{data:function(){return W().badge}},{contentPreviewImageViewModel:function(w){return _.k("div",
{class:"ytDualAvatarViewModelBadge"},_.k(_.fd,{data:w.data}))}}))},"Xd");
_.y_T.idomCompat=!0;var a6R=_.xQ(function(a){var W=a.data;var w,Z=!((w=_.K().resolve(_.Vv(_.Lt)))==null||!w());a=_.XT(function(){var O,S,T=Z?(O=W().header)==null?void 0:O.backgroundColorDarkMode:(S=W().header)==null?void 0:S.backgroundColorLightMode;if(T!==void 0)return _.pC(T)},void 0,"UX2G6c");
w=_.XT(function(){var O,S;return Z?(O=W().header)==null?void 0:O.backgroundImagePart1Dark:(S=W().header)==null?void 0:S.backgroundImagePart1Light},void 0,"GPAi1d");
var N=_.XT(function(){var O,S;return Z?(O=W().header)==null?void 0:O.backgroundImagePart2Dark:(S=W().header)==null?void 0:S.backgroundImagePart2Light},void 0,"nboJld"),B=_.XT(function(){return _.LF("HTML_DIR")==="rtl"},void 0,"LGJceb"),I=_.D8(),X=!1,v=function(){var O=I.value;
if(O&&!X){var S,T=(S=O.parentElement)==null?void 0:S.parentElement;if(T)for(O=O.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),S=0;S<O.length;++S){var p=O[S];if(p instanceof HTMLElement){T.scrollTo({top:p.offsetTop+p.clientHeight/2-T.clientHeight/2,behavior:"smooth"});X=!0;break}}}};
_.AS(function(){var O=I.value;if(O){var S=new ResizeObserver(v);S.observe(O);_.Ao(function(){S.disconnect()})}});
var U={};return _.k("yt-sponsorships-perks-list",{el:I,class:_.W$("ytdSponsorshipsPerksListHost",(U.ytdSponsorshipsPerksListHorizontalPadding=function(){return W().horizontalPaddingEnabled},U))},_.k("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.k("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.It({"background-color":a})},_.k("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.k(_.Y,{cond:w,then:function(O){var S={};return _.k("div",{class:_.W$((S.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Z,S.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Z,S.ytdSponsorshipsPerksListFlipped=B,S))},_.k(_.qw,{data:O,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.k("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.k(_.Y,{cond:N,
then:function(O){var S={};return _.k("div",{class:_.W$((S.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Z,S.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Z,S.ytdSponsorshipsPerksListFlipped=B,S))},_.k(_.qw,{data:O,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.k("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.k(_.Ax,{data:function(){var O;
return(O=W().header)==null?void 0:O.dualAvatar}},{dualAvatarViewModel:_.y_T})))),_.k("div",{class:"ytdSponsorshipsPerksListBody"},_.k("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return W().title}),_.k(_.Y,{cond:function(){return W().perks},
then:function(O){return _.k(_.k6,{each:O},function(S,T){var p={};return _.k("div",{class:_.W$("ytdSponsorshipsPerksListPerkContainer",(p.ytdSponsorshipsPerksListSelectedPerk=function(){var h=T(),L=W().selectedPerkIndex;return h===L},p))},_.k(_.Y,{cond:function(){return T()>0},
then:function(){return _.k("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.k("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.k(_.Y,{cond:function(){return S.icon},
then:function(h){return _.k(_.P$,{icon:function(){return h().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.k("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.k("div",{class:"ytdSponsorshipsPerksListPerkTitle"},S.title),_.k("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.k(_.k_,{text:S.description})),_.k(_.Y,{cond:function(){return S.instructions},
then:function(){var h,L;return _.k("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.k("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(h=S.instructions)==null?void 0:h.title),_.k("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.k(_.k_,{text:(L=S.instructions)==null?void 0:L.text})))}}))),_.k(_.Y,{cond:function(){return S.emoji},
then:function(h){return _.k("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.k(_.k6,{each:function(){return h()}},function(L){return _.k(_.qw,{data:L,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.k(EnR,{data:S}))})}})))},"Yd");
a6R.idomCompat=!0;var EnR=_.xQ(function(a){var W=a.data;var w=function(I,X){return I===X},Z=function(){var I=W();
I=_.A(I==null?void 0:I.badgesShelf,oVR);return I!==void 0&&I!==null?I:{previousButton:{},nextButton:{}}},N=_.fH(),B=function(){var I=N.value;
if(I){var X=I.parentElement;if(X){I=I.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var v=0;v<I.length;++v){var U=I[v];if(U instanceof HTMLElement){X.scrollTo({left:U.offsetLeft+U.clientWidth/2-X.clientWidth/2,behavior:"instant"});break}}}}};
_.AS(function(){var I=N.value;if(I){var X=new ResizeObserver(B);X.observe(I);_.Ao(function(){X.disconnect()})}});
return _.k("div",null,_.k(_.Y,{cond:function(){return W().badges},
then:function(I){return _.k(VhV,{data:Z},_.k("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:N},_.k(_.k6,{each:function(){return I()}},function(X,v){var U={},O={},S={};
return _.k("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.k(_.Y,{cond:function(){return v()>0},
then:function(){return _.k("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.k("div",{class:_.W$("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(U.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return w(v(),W().currentBadgeIndex)},U.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!w(v(),W().currentBadgeIndex)},U))},_.k("div",{class:_.W$("ytdSponsorshipsPerksListLoyaltyBadge",(O.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return w(v(),
W().currentBadgeIndex)},O.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!w(v(),W().currentBadgeIndex)},O))},_.k(_.Y,{cond:function(){return X.image},
then:function(T){var p={};return _.k("div",{class:_.W$((p.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return w(v(),W().currentBadgeIndex)},p.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!w(v(),W().currentBadgeIndex)},p))},_.k(_.qw,{data:T,
alt:""}))}})),_.k("div",{class:_.W$("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(S.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return w(v(),W().currentBadgeIndex)},S))},X.title)))})))}}))},"Zd");
EnR.idomCompat=!0;_.Ct(a6R,"yt-sponsorships-perks-list",{props:{data:_.qR}});_.Ct(_.xQ(function(a){return _.k("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.k(_.Y,{cond:function(){return a.data().image},
then:function(W){return _.k(_.qw,{className:"ytwFantasyEmptyStateViewModelImage",data:W,ariaHidden:!0,alt:""})}}),_.k(_.k_,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return a.data().title}}),_.k(_.k_,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return a.data().subtitle}}),_.k(_.Ax,{data:function(){return a.data().primaryButton}},{buttonViewModel:function(W){return _.k(_.F7,{data:W.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"$d"),"ytw-fantasy-empty-state-view-model",{props:{data:_.qR}});var W3l;var lM9=_.T9({buttonRenderer:_.F0});_.En(IMI);_.HX(IMI,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var RK=function(){var a=_.u.apply(this,arguments)||this;a.hideJoinButtonBeforeSubscribed=_.r("hide_join_button_before_subscribed");a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return a};
_.c(RK,_.u);_.t=RK.prototype;
_.t.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"}}}};
_.t.updateJoinButtonOverrides=function(){var a,W;(a=_.M(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(W=a.polymerController)==null||W.set("overrides",this.joinButtonOverrides);if(a=_.M(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))a.overrides=this.joinButtonOverrides};
_.t.handleButtonRefreshAction=function(a){if(a=_.A(a,_.sYV))this.set("data.membershipButton",a.membershipButton),this.notifyPath("data.membershipButton")};
_.t.onYtServiceRequestError=function(a){_.W6(this.hostElement,a.detail.error.message)};
_.t.handleUnsubscribeAction=function(){var a,W,w;((a=this.data)==null?void 0:(W=a.membershipButton)==null?void 0:(w=W.buttonRenderer)==null?void 0:w.style)==="STYLE_PRIMARY"&&_.M(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.dU.Object.defineProperties(RK.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,W=(a=this.data)==null?void 0:a.membershipButton,w;a=(W==null?void 0:W.buttonRenderer)||_.A(W==null?void 0:(w=W.timedAnimationButtonRenderer)==null?void 0:w.buttonRenderer,_.J4);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"}}}});
RK.prototype.onYtServiceRequestError=RK.prototype.onYtServiceRequestError;RK.prototype.updateJoinButtonOverrides=RK.prototype.updateJoinButtonOverrides;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],RK.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],RK.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.ij),_.z("design:type",Object)],RK.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],RK.prototype,"data",void 0);_.f([_.Q("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],RK.prototype,"hideJoin",null);_.f([_.b(),_.z("design:type",String)],RK.prototype,"subscribeKey",void 0);_.f([_.b({selectorArgs:["subscribeKey"],selector:_.We}),_.z("design:type",Object)],RK.prototype,"subscriptionStateEntity",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],RK.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.f([_.Q("subscriptionStateEntity"),_.b({reflectToAttribute:!0}),_.z("design:type",Object),_.z("design:paramtypes",[])],RK.prototype,"subscribed",null);_.f([_.Q("subscribed","data.membershipButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],RK.prototype,"joinButtonOverrides",null);
_.f([_.a5("joinButtonOverrides"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RK.prototype,"updateJoinButtonOverrides",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],RK.prototype,"onYtServiceRequestError",null);RK=_.f([_.C({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],RK);
var wUH=_.mV()(RK,"ytd-video-owner-renderer",function(){if(W3l===void 0){var a=document.createElement("template");_.n(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]]" 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(_.y().content.cloneNode(!0),a.content.firstChild);W3l=a}a=W3l;return a},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.Ct(_.xQ(function(a){var W=a.data;var w;a=_.l(_.$1(!((w=_.B7("yt-mini-app-is-theater-mode-enabled"))==null||!w),void 0,"cIRDmb"));var Z=a.next().value,N=a.next().value,B;w=(B=_.K().resolve(_.Vv(cBy)))!=null?B:function(){return _.k("div",null)};
_.GP("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){N(!0);_.$H("yt-mini-app-is-theater-mode-enabled",!0)});
_.GP("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){N(!1);_.$H("yt-mini-app-is-theater-mode-enabled",!1)});
B={};a={};var I={};return _.k("mini-app-play-page-renderer",{class:_.W$("miniAppPlayPageRendererHost",(B.miniAppPlayPageRendererHostDetailsView=function(){return!Z()},B))},_.k("div",{class:_.W$("miniAppPlayPageRendererGameContainer",(a.miniAppPlayPageRendererGameContainerDetailsView=function(){return!Z()},a))},_.k(_.Ax,{data:function(){return W().containerViewModel}},{miniAppContainerViewModel:dN$}),_.k(_.Ax,{data:function(){return W().channel}},{videoOwnerRenderer:function(X){return _.k("div",{class:"miniAppPlayPageRendererVideoOwnerRenderer"},
_.k(wUH,{data:X.data}))}}),_.k(_.Y,{cond:function(){return!Z()&&W().description},
then:function(){return _.k("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.k("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return W().description}))}})),_.k("div",{class:_.W$("miniAppPlayPageRendererPlayNextContainer",(I.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!Z()},I))},_.k(_.Ax,{data:function(){return W().sectionList}},{sectionListRenderer:w})))},"ae"),"mini-app-play-page-renderer",{props:{data:_.qR}});var qA=function(){var a=_.u.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};
_.c(qA,_.u);_.t=qA.prototype;
_.t.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:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.r("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.r("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.t.created=function(){var a=this;this.JSC$14793_scrollAnimation=new _.i1(function(W){a.hostElement.scrollTop=W})};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.t.getItemsPath=function(){return"data.contents"};
_.t.replacePrimaryContent=function(a){this.set("data.contents",a)};
_.t.computeHasSortFilter=function(a){return!!a&&!!a.sortFilterSubMenuRenderer};
_.t.computeShouldScrollInPanel=function(a){var W;return!!(a==null?0:(W=a.scrollPaneStyle)==null?0:W.scrollable)};
_.t.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.mh(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.t.scrollToTop=function(){this.hostElement.scrollTop=0};
_.t.scrollToItemSection=function(a){if(a=this.getItemByIdentifier(a))a=this.getScrollPositionForItem(a),this.hostElement.scrollTop!==a&&this.JSC$14793_scrollAnimation.start(this.hostElement.scrollTop,a,this.SCROLL_ANIMATION_DURATION_MS)};
_.t.getItemByIdentifier=function(a){var W=this.contents.querySelectorAll("ytd-item-section-renderer");if(W&&W.length!==0){var w=Array.from(W).findIndex(function(Z){return Z.sectionIdentifier===a});
return W[w===-1?0:w]}};
_.t.getScrollPositionForItem=function(a){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===a)return 0;a=_.nY(a).y+this.hostElement.scrollTop-_.nY(this.hostElement).y;return Math.min(a,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.dU.Object.defineProperties(qA.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.targetId)==="browse-feedFEclips"}}});
qA.prototype.onScroll=qA.prototype.onScroll;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.Vs.YtLazyListBehavior),_.z("design:type",Object)],qA.prototype,"ytLazyListBehavior",void 0);_.f([_.R(_.Lf.YtNextContinuationBehavior),_.z("design:type",Object)],qA.prototype,"ytNextContinuationBehavior",void 0);
_.f([_.R(_.CoL),_.z("design:type",Object)],qA.prototype,"ytBooleanLogicBehavior",void 0);_.f([_.R(_.j8),_.z("design:type",Object)],qA.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],qA.prototype,"data",void 0);_.f([_.b({value:2}),_.z("design:type",Number)],qA.prototype,"initialCount",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],qA.prototype,"autoFill",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.z("design:type",Boolean)],qA.prototype,"hasSortFilter",void 0);_.f([_.b({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.z("design:type",Boolean)],qA.prototype,"hideBottomSeparator",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.z("design:type",Boolean)],qA.prototype,"shouldScrollInPanel",void 0);
_.f([_.b(),_.z("design:type",Object)],qA.prototype,"isSearch",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qA.prototype,"isConstrainedList",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],qA.prototype,"responsiveSizing",void 0);_.f([_.b(),_.z("design:type",Object)],qA.prototype,"hasChipsBar",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],qA.prototype,"pageSubtype",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],qA.prototype,"engagementPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],qA.prototype,"liveChatEngagementPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qA.prototype,"inReplyPanel",void 0);_.f([_.w$("#action-button"),_.z("design:type",HTMLElement)],qA.prototype,"actionButton",void 0);_.f([_.b(),_.z("design:type",Object)],qA.prototype,"scrollUpButtonData",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],qA.prototype,"engagementPanelDropdown",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],qA.prototype,"engagementPanelDialog",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],qA.prototype,"isClipList",null);_.f([_.w$("#contents"),_.z("design:type",HTMLElement)],qA.prototype,"monitorScrollElement",void 0);_.f([_.w$("#contents"),_.z("design:type",HTMLElement)],qA.prototype,"contents",void 0);
_.f([_.E6("scroll"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qA.prototype,"onScroll",null);qA=_.f([_.C({is:"ytd-section-list-renderer",disableElementRegistration:!0})],qA);
var Zu6=_.mV()(qA,"ytd-section-list-renderer",function(){if(iVR===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);iVR=a}a=iVR;return a},{mode:1});var NgR;var tRh;var $VH;var BgT;var QL=function(){return _.u.apply(this,arguments)||this};
_.c(QL,_.u);QL.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
QL.prototype.onLikeButtonClick=function(a){a.stopPropagation();a.preventDefault()};
_.dU.Object.defineProperties(QL.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)})}}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],QL.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],QL.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],QL.prototype,"ytRendererStamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],QL.prototype,"data",void 0);
_.f([_.b({selectorArgs:["data.likeStatusEntityKey"],selector:hu}),_.z("design:type",Object)],QL.prototype,"likeStatusEntity",void 0);_.f([_.Q("data","likeStatusEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],QL.prototype,"likeButtonRenderer",null);QL=_.f([_.C({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],QL);
_.D(QL,"ytd-slim-metadata-toggle-button-renderer",function(){if(BgT!==void 0)return BgT;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
return BgT=a},{mode:1});var xe=function(){var a=_.u.apply(this,arguments)||this;a.minimizePipBreakages=_.r("web_pip_minimize_breakages");a.showEqualizer=_.r("web_enable_playlist_video_lockup_equalizer");a.watchColorUpdate=_.r("kevlar_watch_color_update");a.actionMap={};return a};
_.c(xe,_.u);_.t=xe.prototype;_.t.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"}}}};
_.t.computeEditableClass=function(a){return a&&a.menu?"editable":""};
_.t.computeSelected=function(a){return!(a==null||!a.selected)};
_.t.computeUseColorPalette=function(a){return!!((a==null?0:a.lightColorPalette)&&(a==null?0:a.darkColorPalette))};
_.t.computeLargerPlaylistThumbs=function(a,W){return _.r("web_enable_playlist_bigger_thumbnails")&&!W};
_.t.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.t.onYtServiceRequestSent=function(a,W){W.endpoint&&this.isHideEnclosingAction(W.endpoint)&&!this.selected&&FRy(_.qJ(),this.data.videoId)};
_.t.isHideEnclosingAction=function(a){var W=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",a);a=this.get("likeEndpoint.status",a)==="INDIFFERENT";return W||a};
_.t.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.t.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.dU.Object.defineProperties(xe.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("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))}}});
xe.prototype.onYtServiceRequestSent=xe.prototype.onYtServiceRequestSent;xe.prototype.canReorderChanged=xe.prototype.canReorderChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],xe.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],xe.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.qv),_.z("design:type",Object)],xe.prototype,"ytdLockupBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xe.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],xe.prototype,"withinMiniplayer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],xe.prototype,"minimizePipBreakages",void 0);_.f([_.b({computed:"computeSelected(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],xe.prototype,"selected",void 0);
_.f([_.b({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],xe.prototype,"useColorPalette",void 0);_.f([_.b({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.z("design:type",Boolean)],xe.prototype,"largerPlaylistThumbs",void 0);_.f([_.b(),_.z("design:type",Object)],xe.prototype,"showEqualizer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],xe.prototype,"canReorder",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],xe.prototype,"touchPersistentDragHandle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],xe.prototype,"handleIsHovered",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],xe.prototype,"watchColorUpdate",void 0);_.f([_.b(),_.z("design:type",String),_.z("design:paramtypes",[])],xe.prototype,"reorderIcon",null);
_.f([_.Q("largerPlaylistThumbs"),_.z("design:type",Number),_.z("design:paramtypes",[])],xe.prototype,"thumbnailWidth",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],xe.prototype,"showActionButtons",null);_.f([_.lO("canReorder"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xe.prototype,"canReorderChanged",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],xe.prototype,"onYtServiceRequestSent",null);xe=_.f([_.C({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],xe);
_.D(xe,"ytd-playlist-panel-video-renderer",function(){if($VH!==void 0)return $VH;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return $VH=a},{mode:2});var b1=function(){return _.u.apply(this,arguments)||this};
_.c(b1,_.u);b1.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],b1.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],b1.prototype,"data",void 0);b1=_.f([_.C({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],b1);
_.D(b1,"ytd-playlist-panel-supported-items",function(){if(tRh!==void 0)return tRh;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return tRh=
a},{mode:1});WVT=!0;OjL("\\P{N}");var Pse;var l6e=_.P_("END_OF_PLAYLIST",void 0,"End of playlist"),I6l=_.P_("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),sJ=function(){var a=_.u.apply(this,arguments)||this;a.minimizePipBreakages=_.r("web_pip_minimize_breakages");a.updatedCoursePanel=_.r("move_three_dot_menu_to_playlist_panel_header_for_courses");a.reducedPlaylistHeight=_.r("web_playlist_mini_playlist_height");a.hideHeaderText=!1;a.useColorPalette=!1;a.collapsed=!1;a.collapsedPreServerOverride="not_tracked";
a.isHovered=!1;a.modernPanels=_.r("kevlar_watch_modern_panels");a.expandLabel=_.P_("MINIPLAYER_EXPAND_LABEL");a.collapseLabel=_.P_("MINIPLAYER_COLLAPSE_LABEL");a.isFloating=!1;a.metaPanel=!1;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};a.currentIndex=void 0;return a};
_.c(sJ,_.u);_.t=sJ.prototype;
_.t.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"}}}};
_.t.created=function(){this.scrollThrottle=new _.yP(this.onThrottledScroll,1E3,this)};
_.t.onMouseEnter=function(){this.isHovered=!0};
_.t.onMouseLeave=function(){this.isHovered=!1};
_.t.computeOverflowMenuData=function(a){return a&&a.menu?a.menu:null};
_.t.computeCollapsible=function(a){return!a};
_.t.computeHasPlaylistButtons=function(a){return!(!a||!a.playlistButtons)};
_.t.computeHasSeparateSaveButton=function(a){return!(!a||!a.saveButton)};
_.t.computeHasToolbarButton=function(a,W){return!(!a||!(W||a.saveButton||a.menu))};
_.t.computePlaylistType=function(a){if(a&&a.playlistId)return a.playlistId.substring(0,4)};
_.t.computeCanReorder=function(a){return a?a.playlistId&&a.playlistId.startsWith("TLPQ")?!0:!!a.isEditable&&!a.isInfinite:!1};
_.t.attached=function(){var a=this;try{_.K().resolve(_.LB).setPlaylistComponent(this.hostElement)}catch(W){if(_.r("kevlar_park_on_playlist_token_killswitch"))throw W;_.F4().parkOrScheduleJob(function(){_.K().resolve(_.LB).setPlaylistComponent(a.hostElement)},2,"ci")}_.HG(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.t.detached=function(){_.y3(this.hostElement)};
_.t.computeTrailingIcon=function(a,W,w){return w?W?"yt-icons:collapse":"yt-icons:close":W?"yt-icons:expand":_.r("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.t.computeIndexMessage=function(a,W){return gke(a+1)+" / "+gke(W)};
_.t.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()};
_.t.collapseChanged=function(){var a=this;this.collapsed||(_.rP(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.t.hiddenChanged=function(){var a=this;this.hidden||_.rP(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.scrollToCurrentVideo()})};
_.t.setupReordering=function(){var a=_.M(this.hostElement).querySelector("#items");WMl?_.sBA(this.ytReorderableBehavior,a,a,"playlist-drag-handle"):_.sBA(this.ytReorderableBehavior,a,a)};
_.t.scrollToCurrentVideo=function(){var a=this;_.hF.addJob(function(){var W=_.M(a.hostElement).querySelector("#items");if(W){W.style.setProperty("padding-bottom","");var w=_.M(a.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(w){W=w.parentElement||_.h9(document);var Z=W||_.h9(document);var N=_.nY(w),B=_.nY(Z),I=_.C9A(Z);if(Z==_.h9(document)){var X=N.x-Z.scrollLeft;N=N.y-Z.scrollTop}else X=N.x-B.x-I.left,N=N.y-B.y-I.top;w=xiH(w);B=Z.clientHeight-
w.height;I=Z.scrollLeft;var v=Z.scrollTop;I+=X-(Z.clientWidth-w.width)/2;Z=new _.r3(I,v+(N-B/2));W.scrollLeft=Z.x;W.scrollTop=Z.y}}},8)};
_.t.dataChanged=function(){var a=this;_.b1h(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.DW(this,function(){_.TP(a.ytTaskEmitterBehavior.getTaskManager(),function(){a.ytRendererBehavior.markDirty();a.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.t.updateNowPlayingOverlay=function(){_.r("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.t.onPlaylistLockupNowPlaying=function(a,W){W&&(this.activeNowPlayingRenderer=W);this.updateNowPlayingOverlay()};
_.t.onScroll=function(){this.scrollThrottle.fire()};
_.t.onThrottledScroll=function(){var a=this;_.TP(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.ytRendererBehavior.markDirty()})};
_.t.onToggleExpanded=function(a){this.collapsible&&_.QV(a).tagName!=="A"&&!_.b5(_.qj(a),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.t.setCollapsed=function(a){this.collapsible&&(this.collapsed=a,_.W_(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.t.handleCollapsedFromData=function(a){if(a){var W=a.playlistPanelCollapseState;W==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||W==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),W=W==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==W&&this.setCollapsed(W)):this.currentPlaylistId!==a.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(W=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==W&&this.setCollapsed(W),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=a.playlistId}};
_.t.handleDrop=function(a){var W=a.currDragItem;a=W.data.playlistSetVideoId;var w=_.DD(W.parentNode.childNodes,W),Z=void 0;w>0&&(Z=W.parentNode.childNodes[w-1].data.playlistSetVideoId);W=_.qJ();if(W.responsePlaylistData&&W.responsePlaylistData.contents){var N=vH8(a,W.responsePlaylistData);W.responsePlaylistData=(0,_.T5.unsafeClone)(W.responsePlaylistData);rme(W.responsePlaylistData.contents,N,w);W.queueProxy?IUR(W.queueProxy,N,w,a,Z):W.playlistProxy&&IUR(W.playlistProxy,N,w,a,Z);_.QI(W,_.xV(W,W.response?
W.response.autoplayRenderer:void 0))}};
_.t.handleDarkModeChange=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
_.t.colorPaletteChanged=function(){var a,W=((a=this.data)==null?void 0:a.contents)||[],w;a=_.l(W);for(W=a.next();!W.done;W=a.next()){W=W.value;var Z=void 0;if((Z=W.playlistPanelVideoRenderer)==null?0:Z.selected){a=W.playlistPanelVideoRenderer;Z=W=void 0;(w=this.isDarkTheme?(W=a)==null?void 0:W.darkColorPalette:(Z=a)==null?void 0:Z.lightColorPalette)&&_.Tw(this.hostElement,w);break}}this.useColorPalette=!!w};
_.dU.Object.defineProperties(sJ.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var a,W;return!((a=this.data)==null||!a.playlistId)&&!((W=this.data)==null||!W.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var a=_.K().resolve(_.Vv(_.LB)),W;if(((W=this.data)==null?0:W.contents)&&(a==null?0:a.hasAutoplayData())){var w;if(((w=this.playlistLoopStateEntity)==null?void 0:w.state)==="PLAYLIST_LOOP_STATE_ONE"){if(a=this.data.currentIndex,a!==void 0){var Z,N;var B=(Z=this.data.contents[a])==null?void 0:(N=Z.playlistPanelVideoRenderer)==null?void 0:N.title}}else{var I,X=(I=_.A(a.getAutoplayEndpoint(),_.u6))==null?void 0:I.videoId,v,U;B=(v=this.data.contents.find(function(O){var S;
return((S=O.playlistPanelVideoRenderer)==null?void 0:S.videoId)===X}))==null?void 0:(U=v.playlistPanelVideoRenderer)==null?void 0:U.title}return B}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)!=null&&a.nextVideoLabel?this.nextVideoTitle?_.sd(this.data.nextVideoLabel)+":":l6e:""}},
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")return _.b8(I6l);var W;return(W=this.data)==null?void 0:W.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z=(a=this.data)==null?void 0:(W=a.playlistButtons)==null?void 0:(w=W.menuRenderer)==null?void 0:w.topLevelButtons;if(Z)for(a=_.l(Z),W=a.next();!W.done;W=a.next())if(W=W.value,W.playlistLoopButtonRenderer)return W.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var a;return!!(this.collapsed&&((a=this.data)==null?0:a.nextVideoLabel))}}});
sJ.prototype.colorPaletteChanged=sJ.prototype.colorPaletteChanged;sJ.prototype.onPlaylistLockupNowPlaying=sJ.prototype.onPlaylistLockupNowPlaying;sJ.prototype.updateNowPlayingOverlay=sJ.prototype.updateNowPlayingOverlay;sJ.prototype.dataChanged=sJ.prototype.dataChanged;sJ.prototype.hiddenChanged=sJ.prototype.hiddenChanged;sJ.prototype.collapseChanged=sJ.prototype.collapseChanged;sJ.prototype.onRenderStamperFinished=sJ.prototype.onRenderStamperFinished;sJ.prototype.onMouseLeave=sJ.prototype.onMouseLeave;
sJ.prototype.onMouseEnter=sJ.prototype.onMouseEnter;_.f([_.R(_.eG),_.z("design:type",Object)],sJ.prototype,"ironResizableBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(QBT.YtPlaylistPanelBehavior),_.z("design:type",Object)],sJ.prototype,"ytPlaylistPanelBehavior",void 0);
_.f([_.R(_.ui.YtTaskEmitterBehavior),_.z("design:type",Object)],sJ.prototype,"ytTaskEmitterBehavior",void 0);_.f([_.R(_.u56),_.z("design:type",Object)],sJ.prototype,"ytReorderableBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],sJ.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],sJ.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],sJ.prototype,"actionHandlerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],sJ.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],sJ.prototype,"autoplayData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],sJ.prototype,"withinMiniplayer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sJ.prototype,"minimizePipBreakages",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sJ.prototype,"updatedCoursePanel",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sJ.prototype,"reducedPlaylistHeight",void 0);_.f([_.b({computed:"setMenuData_(data)"}),_.z("design:type",Object)],sJ.prototype,"menuRendererData",void 0);_.f([_.b({computed:"computeOverflowMenuData(data)"}),_.z("design:type",Object)],sJ.prototype,"overflowMenuDataTopRow",void 0);_.f([_.b({computed:"computeOverflowMenuData(data)"}),_.z("design:type",Object)],sJ.prototype,"overflowMenuData",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sJ.prototype,"hideHeaderText",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sJ.prototype,"useColorPalette",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.z("design:type",Boolean)],sJ.prototype,"collapsible",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sJ.prototype,"collapsed",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],sJ.prototype,"hidden",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.z("design:type",Boolean)],sJ.prototype,"hasPlaylistButtons",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.z("design:type",Boolean)],sJ.prototype,"hasSeparateSaveButton",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.z("design:type",Boolean)],sJ.prototype,"hasToolbar",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.z("design:type",String)],sJ.prototype,"playlistType",void 0);_.f([_.b(),_.z("design:type",Object)],sJ.prototype,"isHovered",void 0);_.f([_.b({selectorArgs:["playlistLoopStateEntityKey"],selector:_.DfU}),_.z("design:type",Object)],sJ.prototype,"playlistLoopStateEntity",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sJ.prototype,"modernPanels",void 0);_.f([_.b({value:56}),_.z("design:type",Number)],sJ.prototype,"scrollMargin",void 0);_.f([_.b({computed:"computeCanReorder(data)"}),_.z("design:type",Boolean)],sJ.prototype,"canReorder",void 0);_.f([_.b(),_.z("design:type",Object)],sJ.prototype,"expandLabel",void 0);_.f([_.b(),_.z("design:type",Object)],sJ.prototype,"collapseLabel",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sJ.prototype,"isFloating",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sJ.prototype,"metaPanel",void 0);_.f([_.b({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.z("design:type",String)],sJ.prototype,"trailingIcon",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],sJ.prototype,"isDarkTheme",void 0);
_.f([_.b({selector:_.hG}),_.z("design:type",Boolean)],sJ.prototype,"miniplayerIsActive",void 0);_.f([_.b({selector:function(a){return a.watch.playerState}}),
_.z("design:type",Number)],sJ.prototype,"playerState",void 0);_.f([_.b(),_.z("design:type",Object)],sJ.prototype,"activeNowPlayingRenderer",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sJ.prototype,"moveThreeDotMenuToTopRow",null);_.f([_.Q("data","autoplayData","playlistLoopStateEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],sJ.prototype,"nextVideoTitle",null);
_.f([_.Q("data","nextVideoTitle"),_.z("design:type",String),_.z("design:paramtypes",[])],sJ.prototype,"nextVideoLabel",null);_.f([_.Q("collapsed"),_.z("design:type",String),_.z("design:paramtypes",[])],sJ.prototype,"buttonAriaLabel",null);_.f([_.Q("data","playlistId","longBylineText"),_.z("design:type",Object),_.z("design:paramtypes",[])],sJ.prototype,"mixLongByLine",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],sJ.prototype,"playlistLoopStateEntityKey",null);
_.f([_.E6("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sJ.prototype,"onMouseEnter",null);_.f([_.E6("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sJ.prototype,"onMouseLeave",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data","collapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sJ.prototype,"showNextVideoHeader",null);
_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sJ.prototype,"onRenderStamperFinished",null);_.f([_.a5("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sJ.prototype,"collapseChanged",null);_.f([_.a5("hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sJ.prototype,"hiddenChanged",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sJ.prototype,"dataChanged",null);_.f([_.a5("playerState","miniplayerIsActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sJ.prototype,"updateNowPlayingOverlay",null);_.f([_.E6("yt-playlist-lockup-now-playing-active"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],sJ.prototype,"onPlaylistLockupNowPlaying",null);
_.f([_.a5("data","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sJ.prototype,"colorPaletteChanged",null);sJ=_.f([_.C({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],sJ);
_.PzJ=_.mV()(sJ,"ytd-playlist-panel-renderer",function(){if(NgR===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);NgR=a}a=NgR;return a},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var XUJ;var u1=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("web_button_rework");return a};
_.c(u1,_.u);u1.prototype.computeShouldButtonBeVertical=function(a,W){return a||W};
u1.prototype.onYtServiceRequestSent=function(a,W){(a=_.A(W.endpoint,_.mI))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.oL("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:a.status})):this.handleLikeEndpoint(a))};
u1.prototype.computelikeStatusEntityKey=function(a){return a==null?void 0:a.likeStatusEntityKey};
u1.prototype.handleLikeEndpoint=function(a){a.status==="LIKE"?this.JSC$14818_ytdDislikeToggleButtonRenderer.toggle(!1):a.status==="DISLIKE"?this.JSC$14818_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14818_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14818_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.dU.Object.defineProperties(u1.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var a;return Oie(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 W;return Oie(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(W=this.likeStatusEntity)==null?void 0:W.likeStatus)}}}});
u1.prototype.onYtServiceRequestSent=u1.prototype.onYtServiceRequestSent;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],u1.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],u1.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],u1.prototype,"vertical",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],u1.prototype,"textTransform",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],u1.prototype,"useShortsIcon",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],u1.prototype,"underIconLabel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],u1.prototype,"modern",void 0);_.f([_.b({value:"left"}),_.z("design:type",String)],u1.prototype,"buttonTooltipPosition",void 0);
_.f([_.b(),_.z("design:type",Object)],u1.prototype,"overrides",void 0);_.f([_.w$("#like-button"),_.z("design:type",Object)],u1.prototype,"JSC$14818_ytdLikeToggleButtonRenderer",void 0);_.f([_.w$("#dislike-button"),_.z("design:type",Object)],u1.prototype,"JSC$14818_ytdDislikeToggleButtonRenderer",void 0);_.f([_.Q("data","likeStatusEntity.likeStatus"),_.z("design:type",Object),_.z("design:paramtypes",[])],u1.prototype,"likeButton",null);
_.f([_.Q("data","likeStatusEntity.likeStatus"),_.z("design:type",Object),_.z("design:paramtypes",[])],u1.prototype,"dislikeButton",null);_.f([_.b({computed:"computelikeStatusEntityKey(data)"}),_.z("design:type",String)],u1.prototype,"likeStatusEntityKey",void 0);_.f([_.b({selectorArgs:["likeStatusEntityKey"],selector:hu}),_.z("design:type",Object)],u1.prototype,"likeStatusEntity",void 0);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],u1.prototype,"onYtServiceRequestSent",null);u1=_.f([_.C({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],u1);
var vrJ=_.mV()(u1,"ytd-like-button-renderer",function(){if(XUJ===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);XUJ=a}a=XUJ;return a},{mode:1});_.gre={};
_.gre.YtConditionalRendererBehavior=[_.E.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(a,W){var w=this,Z,N;return _.P(function(B){switch(B.nextAddress){case 1:if(!W)return w.hidden=!0,w.showSpinner=!1,B.return();if((Z=a)==null?0:(N=Z.visibilityCondition)==null?0:N.mode)switch(a.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return B.jumpTo(5);default:return B.jumpTo(6)}w.showSpinner=
!1;w.hidden=!0;return _.g(B,w.shouldShow_(a),4);case 4:w.hidden=!B.yieldResult;B.jumpTo(0);break;case 5:return _.g(B,w.shouldShow_(a),8);case 8:w.showSpinner=B.yieldResult;w.hidden=!1;B.jumpTo(0);break;case 6:return w.showSpinner=!1,_.g(B,w.shouldShow_(a),9);case 9:w.hidden=!B.yieldResult,_.Xd(B)}})},
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=_.aV(this.hostElement,"yt-get-mdx-status");return a.length==1&&a[0].connected},
isLocationPermissionGranted_:function(){var a;return _.P(function(W){return W.nextAddress==1?navigator.permissions?_.g(W,navigator.permissions.query({name:"geolocation"}),3):W.jumpTo(2):W.nextAddress!=2?(a=W.yieldResult,W.return(Promise.resolve(a.state==="granted"))):W.return(Promise.resolve(!1))})}}];var orT=function(a,W){W=W===void 0?{}:W;return function(w){var Z=document.createElement(a),N;var B=(N=Z.polymerController)!=null?N:Z;lI8(Z,B,w,W);return Z}}("yt-icon");var kMH=function(a){var W=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];wAH();_.Dp("ytglobal.ytUtilActivityCallback_",function(){_.W_(a,"yt-user-activity")});
new Vl(function(){return W.JSC$14830_onMouseMove});
document.addEventListener("scroll",function(){return W.onScroll});
window.addEventListener("resize",function(){return W.onResize})},UVe=function(a,W,w){W in a.eventJobIds||(w=_.n4().addLowPriorityJob(function(){_.zK();
delete a.eventJobIds[W]},w),a.eventJobIds[W]=w)};
kMH.prototype.onScroll=function(a){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):a.target===document&&UVe(this,"scroll",200)};
kMH.prototype.onResize=function(){UVe(this,"resize",200)};
kMH.prototype.JSC$14830_onMouseMove=function(){UVe(this,"mousemove",100)};
_.fg=function(a){a.scrollEventsToIgnore+=1;a.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){a.scrollEventsToIgnore--},500))};var OuT=function(a){this.element=a;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
OuT.prototype.showFeedbackDialog=function(a,W,w,Z){var N=SER();if(!N)return!1;var B=nkE();B.productId=N;W&&(B.flow="submit",B.report={description:W});w&&(SER()==="59"?B.callback=_.Mx(function(){_.ia("userFeedbackEvent",{});w()}):B.callback=_.Mx(w));
B.bucket=Z||_.LF("GOOGLE_FEEDBACK_BUCKET","Other");YE_(B);a=TgL(this,"GFEEDBACK",a);try{_.eEy(B,a)}catch(I){return _.Ff(I),!1}return!0};
OuT.prototype.showHelpDialog=function(a,W,w){var Z=this,N=SER();if(!N)return!1;var B={helpCenterPath:"/youtube",productData:TgL(this,"GUIDED_HELP",w)};YE_(B);var I=nkE();I.context=a||B.productData.context||"default";I.defaultHelpArticleId=W;I.enableSendFeedback=!0;(_.RT("gapi.load")||function(X,v){return v()})("client",function(){try{var X=kOy(N,B);
if(_.r("web_always_load_chat_support")&&!Z.chatSupportLoaded)try{X.JSC$7882_loadChatSupport(I),Z.chatSupportLoaded=!0}catch(v){}X.startHelp(I)}catch(v){_.Ff(v)}})};
var SER=function(){var a=_.LF("GOOGLE_FEEDBACK_PRODUCT_ID");a||_.Ff(Error("ci"));return a},YE_=function(a){a&&(a.locale=_.r("kevlar_help_use_locale")?_.LF("INNERTUBE_CONTEXT_HL","en"):_.LF("HTML_LANG","en"))},TgL=function(a,W,w){var Z=a.productData;
delete Z.origin;Z.device=_.S9();var N;a:{if(N=document.createElement("canvas")){var B=N.getContext("experimental-webgl",{stencil:!0});if(B){var I=B.getExtension("WEBGL_debug_renderer_info");if(I){N=B.getParameter(I.UNMASKED_RENDERER_WEBGL);break a}}if(B=N.getContext("webgl")){N=B.getParameter(B.RENDERER);break a}}N=null}Z.gpu=N;Z.isSDC=!!_.LF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(N=_.LF("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.T5.extend(Z,N);_.cgx(W,Z);_.emU(Z);(a=_.W_(a.element,"yt-get-autonav-pause-debug-state"))&&
a.length&&(Z.autonav_pause_state=a[0]);a=_.lf();Z.browser_resolution=a.width+"\u00d7"+a.height+"@"+(window.devicePixelRatio||1)+"x";w&&_.T5.extend(Z,w);return Z};
OuT.prototype.resetProductData=function(){this.productData={}};var K3V=function(a){this.feedbackManager=new OuT(a)};
K3V.prototype.showFeedbackDialog=function(a,W,w,Z){return this.feedbackManager.showFeedbackDialog(a,W,w,Z)};
K3V.prototype.showHelpDialog=function(a,W,w){return this.feedbackManager.showHelpDialog(a,W,w)};var pU_=function(){this.baseUrl="";this.aTag=document.createElement("a")},VER=function(a,W,w){w=w===void 0?{}:w;
w.pbj||(w.pbj=1);w=_.sdm(W,w);a.baseUrl&&w&&!_.GU(w)[1]&&!_.D7(w)&&(W=a.baseUrl,Pv(W,"/")&&(W=W.slice(0,-1)),_.IC(w,"/")&&(w=w.slice(1)),w=W+"/"+w);hY(a.aTag,U0(w||""));return a.aTag.href};
pU_.prototype.fetchData=function(a){return _.KLv(a)};
pU_.prototype.postData=function(a,W){var w={method:"POST"};if(W){for(var Z=_.l(Object.keys(W)),N=Z.next();!N.done;N=Z.next()){N=N.value;var B=W[N];_.tL(B)&&(W[N]=JSON.stringify(B))}w.postParams=W}return _.KLv(a,w)};
_.z6R=function(a,W,w,Z,N){a=VER(a,W,w);if(!a)throw Z=Error("di"),Object.assign(Z,{params:W}),Z;return _.KLv(a,N,Z)};
pU_.prototype.requestDataForServiceEndpoint=function(a,W){if(_.A(a,_.Rd8))return this.fetchData("/getAccountSwitcherEndpoint");W=W||{};var w=_.A(a,x76);w?W.se=w.base64EncodedServiceEndpoint:W.sej=JSON.stringify(a);(w=_.nS())&&_.r("enable_service_ajax_csn")&&(W.csn=w);W.theme=_.eM();_.A(a,FPv)&&_.LF("DELEGATION_CONTEXT")&&(W.delegation_context=JSON.stringify(_.LF("DELEGATION_CONTEXT")));w=null;for(var Z in a)if(Pv(Z,"Endpoint")||Pv(Z,"Command")){w=Z;break}if(!w){var N=Error("ei");Object.assign(N,{params:a});
_.QdU(N,"WARNING");return new _.PZ(function(I,X){X(N)})}Z={name:w};
var B;(w=(B=_.A(a,_.l0))==null?void 0:B.signal)&&(Z.signal=w);(B=_.st(window.location.href))&&B.internalcountrycode&&(Z.internalcountrycode=B.internalcountrycode);B="/service_ajax";_.r("debug_forward_web_query_parameters")&&(B=_.V2e(B,window.location.search));B=_.CF(B,Z);a.clickTrackingParams&&_.fS(B,{itct:a.clickTrackingParams});return this.postData(B,W)};_.rih=new _.yq("GFEEDBACK_TOKEN");var AiT;var h0l;var iuh;var ciV;var C2=function(){var a=_.u.apply(this,arguments)||this;a.compact=!1;return a};
_.c(C2,_.u);C2.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
C2.prototype.computeHasIcon_=function(a){return!!a};
C2.prototype.isSignInIcon_=function(a){return a=="yt-icons:prompted_sign_in"};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.gre.YtConditionalRendererBehavior),_.z("design:type",Object)],C2.prototype,"ytConditionalRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],C2.prototype,"data",void 0);
_.f([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",Object)],C2.prototype,"icon_",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.z("design:type",Boolean)],C2.prototype,"hasIcon_",void 0);_.f([_.b({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.z("design:type",Boolean)],C2.prototype,"signInIcon_",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C2.prototype,"compact",void 0);
C2=_.f([_.TD({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],C2);
_.D(C2,"yt-player-error-message-renderer",function(){if(ciV===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;iuh===void 0&&(iuh=document.createElement("template"));var Z=iuh;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);ciV=a}a=ciV;return a},{mode:2});var e0e;var nre;var Gf=function(){return _.u.apply(this,arguments)||this};
_.c(Gf,_.u);Gf.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Gf.prototype.computeIcon_=function(a){return a?"yt-icons:"+a.iconType.toLowerCase():"error_outline"};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Gf.prototype,"data",void 0);_.f([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",Object)],Gf.prototype,"icon_",void 0);Gf=_.f([_.TD({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Gf);
_.D(Gf,"yt-player-kav-renderer",function(){if(nre===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;e0e===void 0&&(e0e=document.createElement("template"));var Z=e0e;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);nre=a}a=nre;return a},{mode:2});_.Ct(_.xQ(function(a){var W=_.D8(),w=_.l(_.$1(0,void 0,"gCmSbf")),Z=w.next().value,N=w.next().value;w=_.l(_.$1(null,void 0,"Rj9zMe"));var B=w.next().value,I=w.next().value;_.AS(function(){JgS(W.value,N,I);W.value.scrollIntoView()});
w=FL9.bind(null,a.data,Z);zP("resize",function(){var X=B();if(Z()===1&&X!==null){var v;(v=window.grecaptcha)==null||v.reset(X)}});
return _.k("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.k("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.k("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var X,v;return(X=a.data().accessibility)==null?void 0:(v=X.accessibilityData)==null?void 0:v.label}),_.k(_.k_,{text:w,
className:_.W$("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.k("div",{el:W,class:"ytwPlayerCaptchaViewModelGridItem"})))},"be"),"yt-player-captcha-view-model",{props:{data:_.ux}});var M_S=!1;_.jl6=_.xQ(function(a){var W=a.data;return _.k("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.k(_.Y,{cond:function(){return W().icon},
then:function(w){return _.k("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.k(_.qw,{data:w,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.k(_.Y,{cond:function(){return W().title},
then:function(w){return _.k("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.k(_.k_,{text:w}))}}),_.k(_.Y,{cond:function(){return W().description},
then:function(w){return _.k("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.k(_.k_,{text:w}))}}),_.k(_.Ax,{data:function(){return W().primaryButton}},{buttonViewModel:function(w){return _.k(_.F7,{data:w.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.k(_.Ax,{data:function(){return W().secondaryButton}},{buttonViewModel:function(w){return _.k(_.F7,{data:w.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ce");
_.jl6.idomCompat=!0;var L3A=_.xQ(function(a){var W=a.data;_.y0();return _.k("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.k("div",{class:"player-interstitial-renderer-wiz__scrim"},_.k(_.Ax,{data:function(){return W().content}},{interstitialViewModel:_.jl6})))},"de");
L3A.idomCompat=!0;_.Ct(L3A,"yt-player-interstitial-renderer",{props:{data:_.qR}});var Do=function(){var a=_.u.apply(this,arguments)||this;a.noBackground=!1;a.compact=!1;a.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return a};
_.c(Do,_.u);Do.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"}}}};
Do.prototype.onUpdatePlayerErrorMessageCommand_=function(a){if(_.A(a,ajH)){var W;if(a=(W=_.A(a,ajH))==null?void 0:W.newPlayerErrorMessageRenderer)this.data=a}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Do.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Do.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Do.prototype,"status",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Do.prototype,"noBackground",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Do.prototype,"compact",void 0);Do=_.f([_.TD({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Do);
var Jil=_.mV()(Do,"yt-playability-error-supported-renderers",function(){if(h0l===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;AiT===void 0&&(AiT=document.createElement("template"));var Z=AiT;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);h0l=a}a=h0l;return a},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var RmF=void 0,QQm=void 0;var sQe=new af6;var vN=new _.yq("ENTITY_STATE_TOKEN"),f2=new _.yq("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var F3h=function(a){this.store=a;this.auc=new _.ZrJ},fRI=function(a,W,w){var Z,N;
if(!(N=((Z=W.playabilityStatus)==null?void 0:Z.status)!=="OK")){a=a.store;var B;N=W.offlineState&&((B=W.videoDetails)==null?0:B.videoId)?_.r("enable_pl_r_c_cd")?vS7(a.getState().entities,W.videoDetails.videoId):!!Uax(a.getState().entities,W.videoDetails.videoId):!1}if(N)return!0;N=fMD(W);if(N===1){if(_.r("ab_v_vid_sig")){var I,X=(I=W.videoDetails)==null?void 0:I.videoId;if(!X||!w||X!==w){var v;W=new _.Uw("282054944_vid",{a7m:w,usE:(v=W.videoDetails)==null?void 0:v.videoId});_.eJ(W)}}return!0}V7U=
0;var U,O;v=(X=W.auxiliaryUi)==null?void 0:(U=X.messageRenderers)==null?void 0:(O=U.bkaEnforcementMessageViewModel)==null?void 0:O.displayType;if(N!==3&&(v==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||v==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;v={reason:_.zG(_.P_("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.r("ks_something_wrong_learn_more")?sp9("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.zG(_.P_("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:_.zG("282054944")};MR6(W,{playerErrorMessageRenderer:v});return!1},d4x=function(a,W){if(Xw9(W)){_.$o(1,!0);
var w=(w=Xw9(W))&&_.qUe()?w:void 0;w?(MR6(W,{enforcementMessageViewModel:w}),a.auc.increment("IN_PLAYER"),_.$o(5)):(a.auc.increment("SKIP_DISPLAY"),_.$o(2))}},MR6=function(a,W){a.playabilityStatus=Object.assign({},a.playabilityStatus,{status:"ERROR",
errorScreen:W});a.videoDetails=void 0};
F3h.prototype.handleResponse=function(a,W){if(a.playabilityStatus){var w,Z,N,B=(W==null?void 0:(w=W.innerTubeRequest)==null?void 0:w.videoId)||(W==null?void 0:(Z=W.innerTubeRequest)==null?void 0:(N=Z.playerRequest)==null?void 0:N.videoId);fRI(this,a,B)&&d4x(this,a)}};
F3h[Hy]=[vN];var GIC=new _.yq("ADBLOCK_DETECTION_SERVICE_TOKEN");var wO=function(a){this.tA7=a};
wO.prototype.bindInnertubeChallengeFetcher=function(a){this.tA7.bicf(a)};
wO.prototype.registerChallengeFetchedCallback=function(a){this.tA7.bcr(a)};
wO.prototype.getLatestChallengeResponse=function(){return this.tA7.blc()};var xVL;_.da=function(a,W,w){var Z=this;this.network=a;this.options=W;this.networkStatusManager=w;this.m5=null;if(W.useBotguardEverywhere){var N=new _.wi;this.m5=N.promise;_.NH.ytAtRC&&_.OB(_.hF,function(){var B,I;return _.P(function(X){if(X.nextAddress==1){if(!_.NH.ytAtRC)return X.return();B=R0y(null);return _.g(X,Z.w2(B),2)}I=X.yieldResult;_.NH.ytAtRC&&_.NH.ytAtRC(JSON.stringify(I));_.Xd(X)})});
HiS().then(function(B){var I,X,v,U;return _.P(function(O){if(O.nextAddress==1)return B.bindInnertubeChallengeFetcher(function(S){return Z.w2(R0y(S))}),_.g(O,Mke(),2);
I=O.yieldResult;X=B.getLatestChallengeResponse();v=X.challenge;if(!v)throw Error("fi");U={challenge:v,kV:WN(v),kf:I,bgChallenge:new Ea};N.resolve(U);B.registerChallengeFetchedCallback(function(S){S=S.challenge;if(!S)throw Error("gi");S={challenge:S,kV:WN(S),kf:I,bgChallenge:new Ea};Z.m5=Promise.resolve(S)});
_.Xd(O)})})}else W.preload&&qEA(this,new Promise(function(B){_.TP(_.hF,function(){B(QlR(Z))},0)}))};
xVL=function(a){var W={preload:!0,useBotguardEverywhere:_.r("attmusi")},w=!1;if(typeof W==="boolean")var Z={preload:W};else typeof W==="undefined"?Z={preload:!0}:(Z=W,w=!!W.wWk);W=w?void 0:new _.xm;_.da.instance=new _.da(a,Z,W);return _.da.instance};
_.da.prototype.xvW=function(){var a=this;return _.P(function(W){return W.nextAddress==1?_.g(W,Promise.race([a.m5,null]),2):W.return(!!W.yieldResult)})};
_.da.prototype.dc8=function(a,W,w){var Z=this,N,B,I;return _.P(function(X){Z.m5===null&&qEA(Z,QlR(Z));N=!1;B={};I=function(){var v,U,O;return _.P(function(S){switch(S.nextAddress){case 1:return _.g(S,Z.m5,2);case 2:v=S.yieldResult;B.challenge=v.challenge;if(!v.kf){"c1a"in v.kV&&(B.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");S.jumpTo(3);break}U=Object.assign({},{c:v.challenge,e:a},W);_.tq(S,4);N=!0;if(_.r("attbs")&&!_.r("attmusi")){O=_.Wk6(v.kf,{jm:U});S.jumpTo(6);break}return _.g(S,v.kf.snapshot({jm:U}),
7);case 7:O=S.yieldResult;case 6:O?B.webResponse=O:B.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.qY(S,3);break;case 4:_.Pb(S),B.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(a==="ENGAGEMENT_TYPE_PLAYBACK"){var T=v.kV,p={};if(T.c6a){var h=Number(_.LF("DCLKSTAT",0));p.reportingStatus=String(Number(T.c)^(isNaN(h)?0:h))}T.c6b&&(p.broadSpectrumDetectionResult=String(Number(T.c)^Number(_.LF("CATSTAT",0))));B.adblockReporting=p}return S.return(B)}})};
return X.return(Promise.race([I(),bu_(w,function(){var v=Object.assign({},B);N&&(v.error="ATTESTATION_ERROR_VM_TIMEOUT");return v})]))})};
var R0y=function(a){var W={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};a&&(W.interpreterHash=a);return W},QlR=function(a,W){W=W===void 0?0:W;
var w,Z,N,B,I,X,v,U,O,S,T,p;return _.P(function(h){switch(h.nextAddress){case 1:w=R0y(ZYe().dqA);if(_.r("att_fet_ks"))return _.tq(h,7),_.g(h,a.w2(w),9);_.tq(h,4);return _.g(h,slR(a,w),6);case 6:I=h.yieldResult;N=I.qnl;B=I.c92;Z=I;_.qY(h,3);break;case 4:return _.Pb(h),_.jJ(Error("hi`"+W)),upR(a,864E5),h.return({challenge:"",kV:{},kf:void 0,bgChallenge:void 0});case 9:Z=h.yieldResult;if(!Z)throw Error("ii");if(!Z.challenge)throw Error("ji");N=Z.challenge;B=WN(N);if("c1a"in B&&(!Z.bgChallenge||!Z.bgChallenge.program))throw Error("ki");
_.qY(h,3);break;case 7:X=_.Pb(h);_.jJ(X);W++;if(W>=5)return _.jJ(Error("hi`"+W)),upR(a,864E5),h.return({challenge:"",kV:{},kf:void 0,bgChallenge:void 0});v=1E3*Math.pow(2,W-1)+Math.random()*1E3;return h.return(new Promise(function(L){_.TP(_.hF,function(){L(QlR(a,W))},v)}));
case 3:U=zmE(B);upR(a,U*1E3);O=void 0;if(!("c1a"in B&&Z.bgChallenge)){h.jumpTo(10);break}S=V_I(Z.bgChallenge);_.tq(h,11);return _.g(h,t3e(ZYe(),S),13);case 13:_.qY(h,12);break;case 11:return T=_.Pb(h),_.jJ(T),h.return({challenge:N,kV:B,kf:O,bgChallenge:S});case 12:return _.tq(h,14),O=new _.Jd({challenge:S,fn:{zu:"aGIf"}}),_.g(h,O.tWb,16);case 16:_.qY(h,10);break;case 14:p=_.Pb(h),_.jJ(p),O=void 0;case 10:return h.return({challenge:N,kV:B,kf:O,bgChallenge:S})}})};
_.da.prototype.w2=function(a){var W=this,w;return _.P(function(Z){w=W.networkStatusManager;if(!w||w.isNetworkAvailable())return Z.return(W.network.w2(a));_.i0("att_pna",void 0,"attestation_challenge_fetch");return Z.return(new Promise(function(N){w.listenOnce("publicytnetworkstatus-online",function(){W.network.w2(a).then(N)})}))})};
var Czl=function(a){if(!a)throw Error("ii");if(!a.challenge)throw Error("ji");var W=a.challenge,w=WN(W);if("c1a"in w&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("ki");return Object.assign({},a,{qnl:W,c92:w})},slR=function(a,W){var w,Z,N,B,I;
return _.P(function(X){switch(X.nextAddress){case 1:w=void 0,Z=0,N={};case 2:if(!(Z<5)){X.jumpTo(4);break}if(!(Z>0)){X.jumpTo(5);break}N.guX=1E3*Math.pow(2,Z-1)+Math.random()*1E3;return _.g(X,new Promise(function(v){return function(U){_.TP(_.hF,function(){U(void 0)},v.guX)}}(N)),5);
case 5:return _.tq(X,7),_.g(X,a.w2(W),9);case 9:return B=X.yieldResult,X.return(Czl(B));case 7:w=I=_.Pb(X),I instanceof Error&&_.jJ(I);case 8:Z++;N={guX:void 0};X.jumpTo(2);break;case 4:throw w;}})},qEA=function(a,W){a.m5=W},GM6=function(a){var W,w,Z;
return _.P(function(N){if(N.nextAddress==1)return _.g(N,Promise.race([a.m5,null]),2);W=N.yieldResult;var B=QlR(a);a.m5=B;(w=W)==null||(Z=w.kf)==null||Z.dispose();_.Xd(N)})},upR=function(a,W){var w=Date.now()+W,Z=function(){var N;
return _.P(function(B){N=w-Date.now();return N<1E3?_.g(B,GM6(a),0):(_.TP(_.hF,Z,Math.min(N,6E4)),B.jumpTo(0))})};
Z()},bu_=function(a,W){return new Promise(function(w){_.TP(_.hF,function(){w(W())},a)})};var DVy=function(){};
DVy.prototype.processContext=function(a){var W=_.da.instance;if(!W)return _.uH();var w=wxv(a);return w?new sj(W.dc8(w,ayv(a),500).then(function(Z){var N;(a==null?0:(N=a.innerTubeRequest)==null?0:N.context)||(a.innerTubeRequest.context={});N=a.innerTubeRequest.context;N.request||(N.request={});N.request.attestationResponseData=Z})):_.uH()};var f6$=function(a){this.innertubeTransportService=a};
f6$.prototype.w2=function(a){_.i0("att_fsr",void 0,"attestation_challenge_fetch");return _.jw(this.innertubeTransportService,a,_.GC(_.mRT)).then(function(W){_.i0("att_frr",void 0,"attestation_challenge_fetch");return W})};_.dVJ=function(a){this.innertubeTransportService=a};var mVJ=new _.yq("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var VR_=function(){},Huh=function(a,W,w,Z,N){var B=_.LF("YPC_MB_URL");
_.Rcm(B).then(function(){z0y(B,a,W,w,Z,N)})},z0y=function(a,W,w,Z,N,B){try{var I=payments.business.integration,X=payments.business.integration.Style.create().withMaterialDesignStyle(),v=I.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.r("enable_window_constrained_buy_flow_dialog")&&(v=v.usingPopupStyle("windowConstrained"));B&&(v=v.usingCloseCallback(B));var U=w?w:_.LF("YPC_GB_LANGUAGE"),O=_.LF("SESSION_INDEX");I.bootstrap.fromPaymentsUrl(a);I.bootstrap.asMashupMode(v).usingGaiaIndex(O).usingLocale(U).usingStyle(X).usingDefaultActivityStatusChangeHandler().inStandaloneContext(I.standaloneContextAuthId.forGaia()).purchaseManager(W,function(S){Z&&Z(S)}).load(void 0,N)}catch(S){throw N&&N(S),_.eJ(S),S;
}};var yi6=new _.yq("PURCHASE_MANAGER_TOKEN");var ErL=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(W){a.videos=W},
getRecommendedVideos:function(){return a.recommendedVideos},
setRecommendedVideos:function(W){a.recommendedVideos=W}}};
ErL.prototype.addVideos=function(a){a&&(this.videos=a.filter(function(W){return!!_.NvD(W)}).map(function(W){var w=_.NvD(W);
a:{var Z;if(W.playlistVideoRenderer&&((Z=W.playlistVideoRenderer)==null?0:Z.voteSortTiebreaker))var N=W.playlistVideoRenderer.voteSortTiebreaker;else{if(_.A(W,N9)){var B;if(Z=(N=_.A(W,N9))==null?void 0:(B=N.playlistItemData)==null?void 0:B.voteSortTiebreaker){N=Z;break a}}N=""}}return{itemId:w,videoId:_.Bv7(W),voteCount:_.lyI(W),voteSortTiebreaker:N}}),this.continuationsPresent=!!_.A(a[a.length-1],_.BN))};
var a5T=function(a,W){return a.videos.findIndex(function(w){return w.itemId===W})},WpA=function(a,W){return a.recommendedVideos.findIndex(function(w){return w.itemId===W})},wBA=function(a){a={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:a}}}}};_.K().resolve(_.zU).resolveCommand(a)};var ZWJ=function(){ErL.apply(this,arguments)};
_.c(ZWJ,ErL);
var biV=function(a,W,w,Z){if(!a.parentElem)throw Error("pi");var N=a5T(a,W);N===-1&&(N=WpA(a,W),N=N!==-1?N+a.videos.length:-1);if(N===-1)throw Error("qi");var B=N>=a.videos.length?a.recommendedVideos[N-a.videos.length]:a.videos[N];B.voteCount=w;B.voteSortTiebreaker=Date.now().toString();N>=a.videos.length?a.recommendedVideos.splice(N-a.videos.length,1):a.videos.splice(N,1);var I=a.videos;for(var X=0,v=I.length-1;X<=v;){var U=Math.floor((X+v)/2);if(I[U].voteCount<B.voteCount)v=U-1;else if(I[U].voteCount>B.voteCount)X=
U+1;else{a:{var O=B.voteSortTiebreaker;var S=I[U].voteSortTiebreaker;if(O.length!==S.length)O=O.length>S.length;else{for(var T=0;T<O.length;T++){var p=O.charCodeAt(T),h=S.charCodeAt(T);if(p>h){O=!0;break a}if(p<h)break}O=!1}}O?v=U-1:X=U+1}}I=X;if(I===-1)throw Error("ri");a.videos.splice(I,0,B);N!==I&&Nue(a,N,I,W,w,Z)},Nue=function(a,W,w,Z,N,B){var I,X=(I=a.parentElem)==null?void 0:I.children,v=Math.min(W,w),U=Math.max(W,w);
if(X)for(I=v;I<=U;I++)X[I].style.viewTransitionName="item-"+String(I);document.startViewTransition(function(){if(a.parentElem){var O=a.parentElem.children;if(!(!O||W<0||W>=O.length||w<0||w>=O.length)){var S=O[W];if(S){S.remove();a.showRefreshPill=w>=a.videos.length-1&&a.continuationsPresent;if(!a.showRefreshPill){O=O[w]||null;var T;(T=a.parentElem)==null||T.insertBefore(S,O)}_.E$(a.parentElem,"yt-update-video-data-voting-animation",{toIdx:w,itemId:Z,newVoteCount:N,voteStatus:B,hideItem:a.showRefreshPill})}}}}).finished.then(function(){if(X)for(var O=
v;O<=U;O++)X[O].style.viewTransitionName="";
if(a.showRefreshPill)wBA(_.P_("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var S;if(S=O=(S=a.parentElem)==null?void 0:S.children[w])S=O.getBoundingClientRect(),O=S.bottom,S=!(S.top>=0&&O<=a.clientHeight);S&&(S=_.Xz(W>w?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(W-w)),wBA(S))}})};var Bu_=function(a,W){var w=this;a?this.innertubeTransportServicePromise=Promise.resolve(a):W&&(this.innertubeTransportServicePromise=W(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new jE(3E3,function(Z){return t1V(w,Z)},0);
this.validateMiniAppVideoIdRateLimiter=new jE(3E3,function(Z){return $IH(w,Z)},1)},uBL=function(a,W){a.JSC$14944_miniAppId=W;
a.reportMiniAppValueRateLimiter=new jE(3E3,function(w){return t1V(a,w)},0);
a.validateMiniAppVideoIdRateLimiter=new jE(3E3,function(w){return $IH(a,w)},1)},GL6=function(a,W){var w;
return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.reportMiniAppValueRateLimiter.call(W),2);w=Z.yieldResult;return Z.return([w,W])})},t1V=function(a,W){var w,Z,N,B,I,X,v;
return _.P(function(U){switch(U.nextAddress){case 1:return _.g(U,a.innertubeTransportServicePromise,2);case 2:return w=U.yieldResult,Z=_.GC(W7V),N=Date.now(),B={externalPostId:a.JSC$14944_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(N/1E3),nanos:Math.round(N%1E3*1E6)},intValue:""+W}},_.tq(U,3),_.g(U,_.jw(w,B,Z),5);case 5:I=U.yieldResult;_.qY(U,4);break;case 3:throw X=_.Pb(U),X;case 4:if(I){if("error"in I&&I.error)throw I.error;if(I.errorMetadata)throw Error("si`"+
I.errorMetadata.status);if(v=I.userStatResult)return U.return(v);throw Error("ti");}throw Error("ui");}})},f_A=function(a){var W,w,Z,N,B;
_.P(function(I){switch(I.nextAddress){case 1:return _.g(I,a.innertubeTransportServicePromise,2);case 2:return W=I.yieldResult,w=_.GC(W7V),Z={externalPostId:a.JSC$14944_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.tq(I,3),_.g(I,_.jw(W,Z,w),5);case 5:N=I.yieldResult;_.qY(I,4);break;case 3:throw B=_.Pb(I),B;case 4:if(N==null)throw Error("ui");if("error"in N&&N.error)throw N.error;if(N.errorMetadata)throw Error("si`"+N.errorMetadata.status);_.Xd(I)}})};
Bu_.prototype.flush=function(){var a=this;return _.P(function(W){return W.nextAddress==1?_.g(W,a.reportMiniAppValueRateLimiter.flush(),2):_.g(W,a.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var DNE=function(a,W){return _.P(function(w){return w.nextAddress==1?_.g(w,a.validateMiniAppVideoIdRateLimiter.call(W),2):w.return(w.yieldResult)})},$IH=function(a,W){var w,Z,N,B,I,X;
return _.P(function(v){switch(v.nextAddress){case 1:return _.g(v,a.innertubeTransportServicePromise,2);case 2:return w=v.yieldResult,Z=_.GC(dLL),N={videoId:W},_.tq(v,3),_.g(v,_.jw(w,N,Z),5);case 5:B=v.yieldResult;_.qY(v,4);break;case 3:throw I=_.Pb(v),I;case 4:if(B){if("error"in B&&B.error)throw B.error;if(B.errorMetadata)throw Error("si`"+B.errorMetadata.status);if(X=B.playabilityStatus)return v.return(X.status);throw Error("vi");}throw Error("ui");}})};
Bu_[Hy]=[_.Vv(_.O6),_.Vv(AVh)];var l5V=function(){this.clientData=new Map};
l5V.prototype.getData=function(a){return this.clientData.get(a)};var I5R=function(a){this.store=a};
I5R.prototype.handleResponse=function(a){(a=_.A(a.frameworkUpdates,Q6))&&_.PJ(a,this.store)};
I5R[Hy]=[_.Ab];var P_L=new _.yq("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var XBR={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_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[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,1,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_list:[[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 vN6=new _.yq("ICON_SET_TOKEN"),gNT=new _.yq("ICON_URL_PROVIDER_TOKEN"),oNy=new _.yq("PREFETCH_ICONS_TOKEN"),kB$=new _.yq("ICON_MAP_FN_TOKEN");var mq={},UIl=(mq.ACCESS_TIME="clock",mq.ACCOUNT_BOX="person_account",mq.ACCOUNT_BOX_CAIRO="person_account_cairo",mq.ACCOUNT_CIRCLE="person_circle",mq.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",mq.ACCOUNT_LINKED="account_link_success",mq.ACCOUNT_UNLINKED="account_link",mq.ADD_FRIEND="people",mq.ADD_TO_LIBRARY=$X("add"),mq.ADD_TO_PLAYLIST="add",mq.ADD_TO_QUEUE_TAIL="list_queue",mq.ADD_TO_REMOTE_QUEUE="list_music",mq.ADD_TO_WATCH_LATER="clock",mq.ADD_VIDEO_LINK="film_strip_add",mq.ALERT_WARN_RED="alert_triangle",
mq.ARROW_BACK="arrow_left",mq.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",mq.ARROW_DROP_DOWN="chevron_down",mq.ARROW_DROP_UP="chevron_up",mq.ARROW_FORWARD="arrow_right",mq.AUDIOTRACK="audio",mq.AUTO_AWESOME="sparkle",mq.AVATAR_ANONYMOUS="person_circle",mq.AVATAR_LOGGED_OUT="person_circle",mq.BACK="arrow_left",mq.BAR_CHART="bar_graph",mq.BLOCK="slash_circle_left",mq.BLOCK_USER="slash_circle_left",mq.BOOKMARK_BORDER="bookmark",mq.BREAKING_NEWS_ALT_1="article_alert",mq.BROADCAST_CAIRO="podcast_cairo",
mq.BUG_REPORT="bug",mq.CAMERA_ALT="camera",mq.CAMPAIGN="megaphone",mq.CANCEL="x_circle",mq.CAPTIONS="closed_caption",mq.CAST_OUTLINE="chromecast",mq.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",mq.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",mq.CHAT="message_bubble_left",mq.CHAT_BUBBLE="message_bubble_empty",mq.CHECK_BOX_OUTLINE_BLANK="box_empty",mq.CHECK_CIRCLE_OUTLINE="check_circle",mq.CHECK_CIRCLE_THICK="check_circle",mq.CLARIFY="article_clarify",mq.CLOSED_CAPTION_SELECTED="closed_caption",mq.CLOSE=
"x_mark",mq.CLOUD_UPLOAD="cloud_arrow_up",mq.COLLAPSE="chevron_up",mq.COLLAPSE_CAIRO="chevron_up_cairo",mq.COLLECTION="layers",mq.COLOR_LENS="palette",mq.COMMENT="message_bubble_right",mq.CONSENT_SHIELD="person_shield",mq.CONTENT_CUT="scissors",mq.CONTENT_CUT_CAIRO="scissors_cairo",mq.COURSE=_.r("web_enable_course_icon_update")?"creator_academy":"lightbulb",mq.COURSE_CAIRO=_.r("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",mq.CREATION_LIVE="radar_live",mq.CREATION_UPLOAD=
"my_videos",mq.CREATION_UPLOAD_RED="upload",mq.CREATOR_STUDIO="youtube_studio",mq.DELETE="trash_can",mq.DELETE_SWEEP="trash_can",mq.DESKTOP="laptop",mq.DISLIKE="thumb_down",mq.DISLIKE_SELECTED="thumb_down",mq.DISMISSAL="x_mark",mq.DISMISS_QUEUE="list_remove",mq.DOWN_ARROW="arrow_down",mq.DO_NOT_DISTURB="slash_circle_left",mq.DRAFT="paper_corner_folded",mq.DRAG_HANDLE="bars_2",mq.EDIT="pencil",mq.EMOJI="face_very_happy",mq.EMOJI_FLAGS="flag",mq.EMOJI_OBJECTS="lightbulb",mq.EMOJI_PEOPLE="face_very_happy",
mq.EMOJI_RECENT="clock",mq.EMPTY_HEART="heart",mq.EMPTY_LIKE="thumb_up",mq.ERROR_BLACK="alert_circle",mq.ERROR_OUTLINE="alert_circle",mq.EXIT_APP="arrow_in",mq.EXIT_TO_APP="arrow_in",mq.EXPAND="chevron_down",mq.EXPAND_ALL="chevron_expand",mq.EXPAND_CAIRO="chevron_down_cairo",mq.EXPAND_LESS="chevron_up",mq.EXPAND_MORE="chevron_down",mq.EXPLORE="compass",mq.EXPLORE_DESTINATION="compass",mq.EXTERNAL_LINK="open_new",mq.FAB_UPLOAD="upload",mq.FACE_HAPPY_OUTLINE="face_happy",mq.FACT_CHECK="article_check",
mq.FASHION_LOGO="fashion",mq.FASHION_LOGO_CAIRO="fashion_cairo",mq.FAVORITE="heart",mq.FEEDBACK="message_bubble_alert",mq.FEEDBACK_CAIRO="message_bubble_alert_cairo",mq.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",mq.FILL_ARROW_SOLID_UP_16="arrow_solid_up",mq.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",mq.FLAG="flag",mq.FULL_HEART="heart",mq.GAME_CONSOLE_DPAD="game_console_dpad",mq.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",mq.GAMING_LOGO="gaming",mq.GAMING_LOGO_CAIRO="gaming_cairo",mq.GO_TO_PAGE=
"arrow_right",mq.GROUPS="people_group",mq.HAPPY="face_happy",mq.HEALTH_AND_SAFETY="shield_plus",mq.HELP="question_circle",mq.HELP_CAIRO="question_circle_cairo",mq.HELP_OUTLINE="question_circle",mq.HIDE="slash_circle_left",mq.IMAGE="image",mq.INFINITY_ICON="infinity",mq.INFO="info_circle",mq.INFO_OUTLINE="info_circle",mq.INSERT_CHART_OUTLINED="bar_graph_box_vertical",mq.INSERT_PHOTO="image",mq.KEEP="pin",mq.KEEP_OFF="pin_off",mq.KEYBOARD="keyboard",mq.KEYBOARD_ARROW_DOWN="chevron_down",mq.KEYBOARD_ARROW_UP=
"chevron_up",mq.KIDS_BLOCK="slash_circle_left",mq.LANGUAGE="globe",mq.LAUNCH="open_new",mq.LEARNING="lightbulb",mq.LEARNING_CAIRO="lightbulb_cairo",mq.LIBRARY_ADD=$X("library_add"),mq.LIBRARY_OUTLINE="library",mq.LIBRARY_REMOVE=$X(),mq.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",mq.LIKES_PLAYLIST="thumb_up",mq.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",mq.LIKE="thumb_up",mq.LIKE_SELECTED="thumb_up",mq.LIVE="radar_live",mq.LIVE_CAIRO="radar_live_cairo",mq.LIVE_UNLISTED="link",mq.LOCATION_ON="location_point",
mq.LOCATION_PIN="location_point",mq.LOOP="arrow_repeat",mq.LOOP_ACTIVE="arrow_repeat",mq.LOOP_ONE="arrow_repeat_1",mq.LOOP_ONE_ACTIVE="arrow_repeat_1",mq.MEH="face_meh",mq.MEMBERS_ONLY_MODE_OFF="message_bubble_left",mq.MESSAGE="message_bubble_left",mq.MICROPHONE_ON="mic",mq.MIX="youtube_mix",mq.MONETIZATION_ON="dollar_sign_circle",mq.MONEY_FILL="dollar_sign_container",mq.MONEY_FILL_JPY="yen_sign_container",mq.MONEY_HEART="dollar_sign_heart",mq.MORE_HORIZ="overflow_horizontal",mq.MORE_VERT="overflow_vertical",
mq.MUSIC="audio",mq.MUSIC_CAIRO="audio_cairo",mq.MUSIC_NOTE_SYMBOL="music",mq.MUSIC_SHUFFLE="arrow_shuffle",mq.MY_CHANNEL="person_circle",mq.MY_LOCATION="location_point",mq.NEWS_STORY="news",mq.NEXT="chevron_right",mq.NOTIFICATIONS="bell",mq.NOTIFICATIONS_ACTIVE="bell_on",mq.NOTIFICATIONS_CAIRO="bell_cairo",mq.NOTIFICATIONS_DONE_CHECKMARK="check",mq.NOTIFICATIONS_INBOX="bell",mq.NOTIFICATIONS_NONE="bell",mq.NOTIFICATIONS_OFF="bell_off",mq.NOT_INTERESTED="slash_circle_left",mq.OFFICIAL_ARTIST_BADGE=
"audio",mq.OFFLINE_CLOUD="cloud_off",mq.OFFLINE_DOWNLOAD="download",mq.OFFLINE_DOWNLOAD_CAIRO="download_cairo",mq.OFFLINE_PAUSE="pause",mq.OPEN_IN_NEW="open_new",mq.OUTLINE_ADJUST="adjust",mq.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",mq.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",mq.OUTLINE_BAG="bag",mq.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",mq.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",mq.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",mq.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
mq.PAID="dollar_sign",mq.PAUSE_OUTLINED="pause",mq.PAYMENT="credit_card",mq.PERSON_RADAR_FILLED="person_radar",mq.PHONE_DOWNLOAD="mobile_download",mq.PLAYABLES_LOGO="tic_tac_toe",mq.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",mq.PLAYLISTS="list_play_arrow",mq.PLAYLISTS_CAIRO="list_play_arrow_cairo",mq.PLAYLIST_ADD=$X("list_add"),mq.PLAYLIST_ADD_CHECK=$X("list_check"),mq.PLAY_ALL="play_arrow",mq.PLAY_CIRCLE="play_arrow_circle",mq.PLAY_OUTLINED="play_arrow_circle",mq.PRIVACY_INFO="shield",mq.PRIVACY_PRIVATE=
"lock",mq.PRIVACY_PUBLIC="earth",mq.PRIVACY_UNLISTED="link",mq.PROMOTE="megaphone",mq.PURCHASES="price_tag",mq.PURCHASE_SUPER_CHAT="super_chat",mq.PURCHASE_SUPER_STICKER="super_sticker",mq.QUESTION_ANSWER="message_bubble_question",mq.QUEUE_PLAY_LAST="list_queue_last",mq.QUEUE_PLAY_NEXT="list_play_arrow",mq.REMIX_FILLED="youtube_shorts_remix",mq.REMOVE="bar_circle",mq.REMOVE_CIRCLE="bar_circle",mq.REMOVE_CIRCLE_OUTLINE="bar_circle",mq.REMOVE_FROM_HISTORY="bar_circle",mq.REMOVE_FROM_PLAYLIST="bar_circle",
mq.REPLAY="arrow_circle",mq.REPORT_PROBLEM="alert_triangle",mq.SAD="face_sad",mq.SAVE_PLAYLIST=$X("library_add"),mq.SCHEDULE="clock",mq.SCHOOL="creator_academy",mq.SCREEN_FULLSCREEN="screen_full",mq.SEARCH_HISTORY="arrow_time",mq.SELL="price_tag",mq.SETTINGS="gear",mq.SETTINGS_CAIRO="gear_cairo",mq.SETTINGS_LIGHT="gear",mq.SETTINGS_MATERIAL="gear",mq.SHARE_ARROW="share",mq.SHIELD_WITH_AVATAR="person_shield",mq.SHOPPING_BAG="bag",mq.SHOPPING_BAG_CAIRO="bag_cairo",mq.SHOPPING_CART="cart",mq.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",mq.SHORTS_DISLIKE="youtube_shorts_thumb_down",mq.SHORTS_LIKE="youtube_shorts_thumb_up",mq.SHORTS_SHARE="youtube_shorts_share",mq.SHUFFLE="arrow_shuffle",mq.SLOW_MODE_OFF="message_bubble_left",mq.SOCIAL="people",mq.SORT="menu_sort",mq.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",mq.SPEED_1X="1x",mq.SPEED_1_POINT_2X="1_point_2x",mq.SPEED_1_POINT_5X="1_point_5x",mq.SPEED_1_POINT_8X="1_point_8x",mq.SPEED_2X="2x",mq.SPEED_POINT_2X="point_2x",mq.SPEED_POINT_8X="point_8x",
mq.SPONSORSHIP_STAR=_.r("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",mq.STAFF_PICK="spotlight",mq.START_DVR="add",mq.STAR_BORDER="star",mq.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",mq.STICKER_EMOTICON="face_happy",mq.STOP_DVR="stop",mq.SUBSCRIBE="youtube_logo_icon",mq.SUBSCRIBE_PLUS="add_cairo",mq.SUBSCRIPTION_MANAGER="gear",mq.SUPERVISOR_ACCOUNT="people",mq.SWAP_HORIZ="arrow_swap_horizontal",mq.SWITCH_ACCOUNTS="person_account",mq.TAB_ACCOUNT="person",mq.TAB_ACTIVITY=
"bell",mq.TAB_EXPLORE="compass",mq.TAB_HOME="home",mq.TAB_HOME_CAIRO="home_cairo",mq.TAB_INBOX="mail",mq.TAB_LIKED="thumb_up",mq.TAB_MUSIC_PREMIUM="youtube_music",mq.TAB_SHORTS="youtube_shorts",mq.TAB_SHORTS_CAIRO="youtube_shorts_cairo",mq.TAB_SUBSCRIPTIONS="subscriptions",mq.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",mq.TAB_TRENDING="fire",mq.TIMER="stopwatch",mq.TRENDING="fire",mq.TRENDING_CAIRO="fire_cairo",mq.TRENDING_UP="rating_up",mq.TROPHY="trophy",mq.TROPHY_CELEBRATIONS="fireworks",mq.TUNE=
"adjust",mq.UNBLOCK_USER="bar_circle",mq.UNLIMITED="youtube_logo_icon",mq.UNPLUGGED_LIVE_GUIDE="radar_live",mq.UNPLUGGED_SPORTS="eye_off",mq.UPLOADS="library",mq.UP_ARROW="arrow_up",mq.VERTICAL_ALIGN_BOTTOM="download",mq.VERY_HAPPY="face_very_happy",mq.VERY_SAD="face_very_sad",mq.VIDEOS="play_arrow_circle",mq.VIDEO_CALL="video_camera_add",mq.VIDEO_LIBRARY_WHITE="library",mq.VIDEO_YOUTUBE="youtube_logo_icon",mq.VIEW_LIST="list_view",mq.VIEW_LIST_CAIRO="list_view_cairo",mq.VISIBILITY="eye",mq.VISIBILITY_OFF=
"eye_off",mq.VOLUME_MUTE="volume_off",mq.VOLUME_UP="volume_on",mq.WALLPAPER="image",mq.WARNING="alert_triangle",mq.WATCH_HISTORY="arrow_time",mq.WATCH_HISTORY_CAIRO="arrow_time_cairo",mq.WATCH_LATER="clock",mq.WATCH_LATER_CAIRO="clock_cairo",mq.WATCH_RELATED_MIX="youtube_mix",mq.WHAT_TO_WATCH="home",mq.YOUTUBE_MUSIC_MONOCHROME="youtube_music",mq.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",mq.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",mq.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",mq.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",mq.YT_OUTLINE_MUSIC_24="music",mq);var VL={},OW6=(VL.ACCESS_TIME="clock",VL.ACCOUNT_BOX="person2_rectangle",VL.ACCOUNT_BOX_CAIRO="person_square_stack",VL.ACCOUNT_CIRCLE="person_circle",VL.ACCOUNT_CIRCLE_CAIRO="person_circle",VL.ACCOUNT_UNLINKED="account_link",VL.ADD_CIRCLE="add_circle",VL.ADD_FRIEND="person_child",VL.ADD_TO_LIBRARY="bookmark",VL.ADD_TO_PLAYLIST="add",VL.ADD_TO_QUEUE_TAIL="queue",VL.ADD_TO_REMOTE_QUEUE="playlist_audio",VL.ADD_TO_WATCH_LATER="clock",VL.ADD_VIDEO_LINK="film_strip_add",VL.ADMIN_PANEL_SETTINGS="gear",VL.ALERT_WARN_RED=
"alert_triangle",VL.ALIGN_LEFT="text_align_left",VL.ARROWS_ALERT="arrow_split_alert",VL.ARROW_BACK="arrow_left",VL.ARROW_CIRCLE="arrow_counterclockwise",VL.ARROW_CIRCLE_PLAY="replay",VL.ARROW_CIRCLE_RIGHT="arrow_clockwise",VL.ARROW_DIAGONAL="arrow_up_left",VL.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",VL.ARROW_DROP_DOWN="chevron_down",VL.ARROW_DROP_UP="chevron_up",VL.ARROW_FORWARD="arrow_right",VL.ARROW_PAUSE="pause_history",VL.ARROW_UNDO="undo",VL.ARTICLE="text_page",VL.ARTICLE_ALERT="text_page_alert",
VL.ARTICLE_CHECK="text_page_check",VL.ARTICLE_CLARIFY="text_page_info",VL.AUDIOTRACK="audio",VL.AUDIO_BADGE="audio_badge",VL.AUDIO_SURROUND="surround_sound",VL.AVATAR_ANONYMOUS="person_circle",VL.AVATAR_LOGGED_OUT="person_circle",VL.BACK="arrow_left",VL.BAR_CHART="chart_bar",VL.BAR_CIRCLE="minus_circle",VL.BAR_HORIZONTAL="minus",VL.BLOCK="circle_slash",VL.BLOCK_USER="circle_slash",VL.BOOKMARK_BORDER="bookmark",VL.BOX_OPEN_CHECK="quiz",VL.BOX_PENCIL="square_pencil",VL.BREAKING_NEWS_ALT_1="text_page_alert",
VL.BROADCAST="podcast",VL.BROADCAST_CAIRO="podcast",VL.BUG_REPORT="bug",VL.CAMERA_ALT="camera",VL.CAMPAIGN="megaphone",VL.CANCEL="x_circle",VL.CAPTIONS="closed_captions",VL.CAST_OUTLINE="chromecast",VL.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",VL.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",VL.CHAT="text_bubble",VL.CHAT_BUBBLE="bubble",VL.CHECK_CIRCLE_OUTLINE="check_circle",VL.CHECK_CIRCLE_THICK="check_circle",VL.CHECK_DOUBLE="check_done",VL.CHECK_DOUBLE_OFF="check_done_slash",VL.CHEVRON_RIGHT_CAIRO=
"chevron_right",VL.CIRCLES_OVERLAP="account_link",VL.CLAPPERBOARD_CAIRO="clapperboard",VL.CLARIFY="text_page_info",VL.CLOCK_ARROWS="clock_split",VL.CLOCK_ARROWS_ALERT="clock_split_alert",VL.CLOSED_CAPTION="closed_captions",VL.CLOSED_CAPTION_SELECTED="closed_captions",VL.CLOSE="x",VL.CLOUD_UPLOAD="cloud_arrow_up",VL.COLLAPSE="chevron_up",VL.COLLAPSE_CAIRO="chevron_up",VL.COLLECTION="square3d_stack",VL.COLOR_LENS="paint_palette",VL.COMMENT="text_bubble",VL.CONSENT_SHIELD="person_shield",VL.CONTENT_CUT=
"scissors",VL.CONTENT_CUT_CAIRO="scissors",VL.COURSE="graduation_cap",VL.COURSE_CAIRO="graduation_cap",VL.CREATION_LIVE="live",VL.CREATION_POST="square_pencil",VL.CREATION_UPLOAD="video",VL.CREATION_UPLOAD_RED="upload",VL.CREATOR_ACADEMY="graduation_cap",VL.CREATOR_STUDIO="youtube_studio",VL.DARK_THEME="theme",VL.DELETE="trash_can",VL.DELETE_SWEEP="trash_can",VL.DESKTOP="laptop",VL.DISLIKE="thumb_down",VL.DISLIKE_SELECTED="thumb_down",VL.DISMISSAL="x",VL.DOGFOOD="pawprint",VL.DOLLAR_SIGN="dollar_sign_circle",
VL.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",VL.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",VL.DOWN_ARROW="arrow_down",VL.DO_NOT_DISTURB="circle_slash",VL.DRAFT="document",VL.EARTH="globe",VL.EDIT="pencil",VL.EMOJI="face_very_happy",VL.EMOJI_FLAGS="flag",VL.EMOJI_OBJECTS="lightbulb",VL.EMOJI_PEOPLE="face_very_happy",VL.EMOJI_RECENT="clock",VL.EMPTY_HEART="heart",VL.EMPTY_LIKE="thumb_up",VL.ERROR_BLACK="alert_circle",VL.ERROR_OUTLINE="alert_circle",VL.EXIT_APP="arrow_in",VL.EXIT_TO_APP="arrow_in",
VL.EXPAND="chevron_down",VL.EXPAND_ALL="chevron_expand",VL.EXPAND_CAIRO="chevron_down",VL.EXPAND_LESS="chevron_up",VL.EXPAND_MORE="chevron_down",VL.EXPLORE="compass",VL.EXPLORE_DESTINATION="compass",VL.EXTERNAL_LINK="arrow_up_right",VL.EYE_OFF="eye_slash",VL.FAB_UPLOAD="upload",VL.FACE_HAPPY_OUTLINE="face_happy",VL.FACE_MEH="face_neutral",VL.FACT_CHECK="text_page_check",VL.FASHION_LOGO="fashion",VL.FASHION_LOGO_CAIRO="fashion",VL.FEEDBACK="alert_bubble",VL.FEEDBACK_CAIRO="alert_bubble",VL.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",VL.FILL_ARROW_SOLID_UP_16="arrow_solid_up",VL.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",VL.FLAG_CAIRO="flag",VL.FLASH_OFF="flash_slash",VL.FLASH_ON="flash",VL.FULL_HEART="heart",VL.GAMING_LOGO="gaming",VL.GAMING_LOGO_CAIRO="gaming",VL.GO_TO_PAGE="arrow_right",VL.GROUPS="person3",VL.HAND_SWIPE_LEFT="gesture_swipe_left",VL.HAND_SWIPE_RIGHT="gesture_swipe_right",VL.HAPPY="face_happy",VL.HEALTH_AND_SAFETY="shield_health",VL.HEART_BOX="heart_cube",VL.HELP="help_circle",VL.HELP_CAIRO=
"help_circle",VL.HELP_OUTLINE="help_circle",VL.HIDE="circle_slash",VL.INCOGNITO_CAIRO="incognito",VL.INFINITY_ICON="infinity",VL.INFO="info_circle",VL.INFO_OUTLINE="info_circle",VL.INSERT_PHOTO="image",VL.KEEP="pin",VL.KEEP_OFF="pin_slash",VL.KEYBOARD="keyboard",VL.KEYBOARD_ARROW_DOWN="chevron_down",VL.KEYBOARD_ARROW_UP="chevron_up",VL.KIDS_BLOCK="circle_slash",VL.LANGUAGE="globe",VL.LAUNCH="arrow_up_right",VL.LEARNING="lightbulb",VL.LEARNING_CAIRO="lightbulb",VL.LIBRARY_ADD="bookmark",VL.LIBRARY_IMAGE=
"image_stack",VL.LIBRARY_MUSIC="audio_square_stack",VL.LIBRARY_OUTLINE="play_square_stack",VL.LIBRARY_REMOVE="bookmark",VL.LIKES_PLAYLIST="thumb_up",VL.LIKES_PLAYLIST_CAIRO="thumb_up",VL.LIKE="thumb_up",VL.LIKE_SELECTED="thumb_up",VL.LIST_QUEUE="queue",VL.LIVE_CAIRO="live",VL.LIVE_UNLISTED="link",VL.LOCATION_ON="location_pin",VL.LOCATION_PIN="location_pin",VL.LOCATION_POINT="location_pin",VL.LOOP="repeat",VL.LOOP_ACTIVE="repeat",VL.LOOP_ONE="repeat1",VL.LOOP_ONE_ACTIVE="repeat1",VL.MEET="google_meet",
VL.MEH="face_neutral",VL.MEMBERSHIPS="memberships",VL.MEMBERS_ONLY_MODE_OFF="text_bubble",VL.MENU_FILTER="filter",VL.MESSAGE="text_bubble",VL.MESSAGE_BUBBLE_GEAR="bubble_gear",VL.MESSAGE_BUBBLE_LEFT="text_bubble",VL.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",VL.MESSAGE_BUBBLE_OVERLAP="bubble_stack",VL.MESSAGE_BUBBLE_QUESTION="help_bubble",VL.MICROPHONE_ON="mic",VL.MONETIZATION_ON="dollar_sign_circle",VL.MONEY_FILL="dollar_sign_rectangle",VL.MONEY_FILL_JPY="yen_sign_rectangle",VL.MONEY_HAND="dollar_sign_circle_hand",
VL.MONEY_HEART="dollar_sign_heart",VL.MOON_Z="sleep_timer",VL.MORE_HORIZ="overflow_horizontal",VL.MORE_VERT="overflow_vertical",VL.MUSIC="audio",VL.MUSIC_CAIRO="audio",VL.MUSIC_NOTE_SYMBOL="audio",VL.MUSIC_SCISSORS="audio_scissors",VL.MUSIC_SHUFFLE="shuffle",VL.MY_CHANNEL="person_circle",VL.MY_LOCATION="location_pin",VL.MY_VIDEOS="video",VL.MY_VIDEOS_CAIRO="video",VL.NEWS_CAIRO="news",VL.NEWS_STORY="news",VL.NEXT="chevron_right",VL.NOTE_ADD="bubble_pencil",VL.NOTIFICATIONS="bell",VL.NOTIFICATIONS_ACTIVE=
"bell_waves",VL.NOTIFICATIONS_CAIRO="bell",VL.NOTIFICATIONS_DONE_CHECKMARK="check",VL.NOTIFICATIONS_INBOX="bell",VL.NOTIFICATIONS_NONE="bell",VL.NOTIFICATIONS_OFF="bell_slash",VL.NOT_INTERESTED="circle_slash",VL.OFFICIAL_ARTIST_BADGE="audio",VL.OFFLINE_CLOUD="cloud_slash",VL.OFFLINE_DOWNLOAD="download",VL.OFFLINE_DOWNLOAD_CAIRO="download",VL.OFFLINE_PAUSE="pause",VL.OPEN_IN_NEW="arrow_up_right",VL.OUTLINE_ADJUST="adjust",VL.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",VL.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",VL.OUTLINE_BAG="bag",VL.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",VL.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",VL.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",VL.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",VL.PAID="dollar_sign_circle",VL.PAUSE_OUTLINED="pause",VL.PAYMENT="credit_card",VL.PEOPLE="person_child",VL.PEOPLE_2="person2_rectangle",VL.PEOPLE_GROUP="person3",VL.PEOPLE_NOTE="bubble_asterisk",VL.PERSON_2="person2",VL.PERSON_ACCOUNT="person_square_stack",VL.PERSON_MINUS=
"person_x",VL.PERSON_MUSIC="person_audio",VL.PERSON_RADAR="person_waves",VL.PERSON_RADAR_FILLED="person_waves",VL.PERSON_SETTING="person_gear",VL.PHONE="phone",VL.PHONE_DOWNLOAD="mobile_arrow_down",VL.PICTURE_IN_PICTURE="picture_in_picture",VL.PLAYABLES_LOGO="playables",VL.PLAYABLES_LOGO_CAIRO="playables",VL.PLAYLISTS="playlist",VL.PLAYLISTS_CAIRO="playlist",VL.PLAYLIST_ADD="bookmark",VL.PLAYLIST_ADD_CHECK="bookmark",VL.PLAY_ALL="play",VL.PLAY_ARROW="play",VL.PLAY_ARROW_CIRCLE="play_circle",VL.PLAY_ARROW_HALF_CIRCLE=
"play_circle_half_dashed",VL.PLAY_CIRCLE="play_circle",VL.PLAY_OUTLINED="play_circle",VL.PODCAST_ADD="podcast_add",VL.PODCAST_CHECK="podcast_check",VL.PRIVACY_PRIVATE="lock",VL.PRIVACY_PUBLIC="globe",VL.PRIVACY_UNLISTED="link",VL.PROMOTE="megaphone",VL.PURCHASES="price_tag",VL.PURCHASE_SUPER_CHAT="super_chat",VL.PURCHASE_SUPER_STICKER="super_sticker",VL.QUESTION_ANSWER="help_bubble",VL.QUESTION_CIRCLE="help_circle",VL.QUEUE_PLAY_LAST="queue_last",VL.QUOTATION_MARK="quote",VL.RADAR_LIVE="live",VL.REMOVE=
"minus_circle",VL.REMOVE_CIRCLE="minus_circle",VL.REMOVE_CIRCLE_OUTLINE="minus_circle",VL.REMOVE_FROM_HISTORY="minus_circle",VL.REMOVE_FROM_PLAYLIST="minus_circle",VL.REPLAY="arrow_counterclockwise",VL.REPLAY_ARROW="replay",VL.REPORT_PROBLEM="alert_triangle",VL.RSS_OFF="rss_slash",VL.SAD="face_sad",VL.SAVE_PLAYLIST="bookmark",VL.SCHEDULE="clock",VL.SCHOOL="graduation_cap",VL.SCREEN_DEFAULT="player_default",VL.SCREEN_FULLSCREEN="player_full_enter",VL.SCREEN_LIGHT="ambient_mode",VL.SCREEN_SWITCH="player_switch",
VL.SEARCH_CAIRO="search",VL.SEARCH_HISTORY="history",VL.SELL="price_tag",VL.SETTINGS="gear",VL.SETTINGS_CAIRO="gear",VL.SETTINGS_LIGHT="gear",VL.SETTINGS_MATERIAL="gear",VL.SETTINGS_REMOTE="remote_waves",VL.SHARE="share",VL.SHARE_ARROW="share",VL.SHARE_CAIRO="share",VL.SHIELD="shield_x",VL.SHIELD_OFF="shield_slash",VL.SHIELD_WITH_AVATAR="person_shield",VL.SHOPPING_BAG="bag",VL.SHOPPING_BAG_CAIRO="bag",VL.SHOPPING_CART="cart",VL.SHORTS_COMMENT="text_bubble",VL.SHORTS_DISLIKE="thumb_down",VL.SHORTS_LIKE=
"thumb_up",VL.SHORTS_SHARE="share",VL.SLASH_CIRCLE_RIGHT="circle_slash",VL.SLOW_MODE_OFF="text_bubble",VL.SOCIAL="person_child",VL.SPARKLE="sparkles",VL.SPARK_IMAGE="image_spark",VL.SPARK_RADAR="spark_waves",VL.SPARK_VIDEO="video_spark",VL.SPEAKER_GROUP="speaker_stack",VL.SPEAKER_OFF="speaker_slash",VL.SPEED_1X="n1x",VL.SPEED_1_POINT_2X="n1point2x",VL.SPEED_1_POINT_5X="n1point5x",VL.SPEED_1_POINT_8X="n1point8x",VL.SPEED_2X="n2x",VL.SPONSORSHIP_STAR="memberships",VL.SPORTS="basketball",VL.SPOTLIGHT=
"spotlight",VL.STAFF_PICK="spotlight",VL.START_DVR="add",VL.STAR_BORDER="star",VL.STAR_HALF="star_half_filled",VL.STAR_SHOOTING="hype",VL.STICKER="sticker",VL.STICKER_EMOTICON="face_happy",VL.STOP_DVR="stop",VL.SUBSCRIBE="youtube",VL.SUBSCRIBE_PLUS="add",VL.SUBSCRIPTION_MANAGER="gear",VL.SUPERSTAR="super_star",VL.SUPERVISOR_ACCOUNT="person_child",VL.SWAP_HORIZ="arrow_swap_horizontal",VL.SWITCH_ACCOUNTS="person_square_stack",VL.TAB_ACCOUNT="person",VL.TAB_ACTIVITY="bell",VL.TAB_EXPLORE="compass",VL.TAB_HOME=
"home",VL.TAB_HOME_CAIRO="home",VL.TAB_INBOX="mail",VL.TAB_LIKED="thumb_up",VL.TAB_MUSIC_PREMIUM="youtube_music",VL.TAB_SHORTS="shorts",VL.TAB_SHORTS_CAIRO="shorts",VL.TAB_SUBSCRIPTIONS="subscriptions",VL.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",VL.TAB_TRENDING="trending",VL.TARGET="target",VL.TARGET_ADD="target_add",VL.TEMPLATE_ADD="template_add",VL.TEXT="font",VL.TIMER="stopwatch",VL.TRENDING_CAIRO="trending",VL.TRENDING_UP="arrow_trend_up",VL.TROPHY_CAIRO="trophy",VL.TROPHY_CELEBRATIONS="fireworks",
VL.TROPHY_STAR="star_trophy",VL.TUNE="adjust",VL.UNBLOCK_USER="minus_circle",VL.UNLIMITED="youtube",VL.UNPLUGGED_LIVE_GUIDE="live",VL.UNPLUGGED_SPORTS="eye_slash",VL.UPLOADS="play_square_stack",VL.UP_ARROW="arrow_up",VL.VERTICAL_ALIGN_BOTTOM="download",VL.VERY_HAPPY="face_very_happy",VL.VERY_SAD="face_very_sad",VL.VIDEOS="play_circle",VL.VIDEO_CALL="video_camera_add",VL.VIDEO_LIBRARY_WHITE="play_square_stack",VL.VIDEO_QUALITY_4K="n4k",VL.VIDEO_QUALITY_8K="n8k",VL.VIDEO_YOUTUBE="youtube",VL.VIEW_LIST_CAIRO=
"view_list",VL.VIEW_MODULE="view_column3_row2",VL.VISIBILITY="eye",VL.VISIBILITY_OFF="eye_slash",VL.VOLUME_DOWN="volume_min",VL.VOLUME_MUTE="volume_mute",VL.VOLUME_OFF="volume_mute",VL.VOLUME_STABLE="stable_volume",VL.VOLUME_UP="volume_max",VL.WALLPAPER="image",VL.WARNING="alert_triangle",VL.WATCH_HISTORY="history",VL.WATCH_HISTORY_CAIRO="history",VL.WATCH_LATER="clock",VL.WATCH_LATER_CAIRO="clock",VL.WATCH_RELATED_MIX="mix",VL.WHAT_TO_WATCH="home",VL.YOUTUBE_LINKED_TV="tv_mobile",VL.YOUTUBE_MUSIC_MONOCHROME=
"youtube_music",VL.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",VL.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",VL.YOUTUBE_SHORTS_ARROW_UP="arrow_up",VL.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",VL.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",VL.YOUTUBE_SHORTS_OUTLINE_24="shorts",VL);var Sc6={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,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,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,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,
2,24,!0]],arrow_merge:[[1,1,24]],arrow_out:[[0,1,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,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,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,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,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,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,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,
3,24],[1,3,24]],bag:[[0,5,12],[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,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,1,24]],bell:[[0,8,24],[1,8,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,1,24]],book:[[1,1,24]],
bookmark:[[0,6,24],[1,6,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]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],
[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],cat:[[0,1,24],[1,1,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,
8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,
2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,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,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,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,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,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,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,
2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,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,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,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,2,24]],
dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,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,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,
7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],
fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,
3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,24]],glow:[[1,1,24]],google_lens:[[1,3,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,1,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,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,
6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],
info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],journey:[[1,1,24]],key:[[1,4,24]],keyboard:[[0,2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,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,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,
2,24]],link:[[1,6,18],[1,6,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,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,
1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,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,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,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_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,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,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,1,24]],move:[[1,1,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,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,
32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,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,5,12],[0,5,13],[0,5,16],
[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,
24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,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,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,
24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,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,1,24]],remix:[[1,1,16],
[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,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,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[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,1,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,3,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,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,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,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,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,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,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,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],
[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,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]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,
24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,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,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],
video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,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,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,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,5,24],[1,5,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,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]],zoom_auto:[[0,1,24],[1,1,24]]};var YcE={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],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,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,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,1,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,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],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_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],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,9,24],[1,9,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,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,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_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],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,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,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:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,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,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],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,6,24],[1,6,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,3,24],[1,3,24]],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,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,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_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]],heart:[[0,17,24],[1,17,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,2,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,9,24]],info_circle_spark:[[1,1,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,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],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,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,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_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]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,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,
1,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,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[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,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,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,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,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,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,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,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,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,3,24],[1,3,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,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,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,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,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,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[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:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var zf=function(a){this.iconUrlProvider=a};
zf.prototype.resolveIcon=function(a,W){var w=a.iconName;w=w.replace(/-/g,"_");a=Object.assign({},a,{iconName:this.mapIconTypeToStandardName(w)||w.toLowerCase()});if(_.r("enable_web_delhi_icons")){var Z;return PPD(YcE,a,((Z=this.iconUrlProvider)==null?void 0:Z.getYtStandardUrl)||gW7,W)}var N;return PPD(Sc6,a,((N=this.iconUrlProvider)==null?void 0:N.getYtStandardUrl)||vWD,W)};
zf.prototype.mapIconTypeToStandardName=function(a){return _.r("enable_web_delhi_icons")?OW6[a.toUpperCase()]:UIl[a.toUpperCase()]};
zf[Hy]=[_.Vv(gNT)];var TuE=function(a){this.urlProvider=this.iconUrlProvider=a};
_.c(TuE,zf);
TuE.prototype.resolveIcon=function(a,W){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 w=Object.assign({},a);a.iconName==="menu"&&(_.r("enable_web_delhi_icons")||(w.iconName="bars_3"),w.iconStyle="youtube_outline");a.iconName==="youtube_music"&&(w.iconStyle="youtube_fill");a.iconName==="mail"&&a.iconSetName==="socialNetworksRound"&&(w.iconName="email");a.iconName==="more"&&(w.iconName=
"overflow_horizontal");a.iconName==="fullscreen"&&(w.iconName="screen_full");if(a.iconName==="play_all"||a.iconName==="play_arrow")w.iconStyle="youtube_fill";a.iconName==="premium_standalone"&&(w.iconName="premium_standalone_cairo");_.r("enable_connect_icon_update_web")&&a.iconName==="account_linked"&&(w.iconName="circles_overlap_check",w.iconStyle="youtube_fill");_.r("enable_connect_icon_update_web")&&a.iconName==="account_unlinked"&&(w.iconName="circles_overlap",w.iconStyle="youtube_outline");a=
Object.assign({},w,{iconName:(zf.prototype.mapIconTypeToStandardName.call(this,w.iconName)||w.iconName).toLowerCase()});var Z;return(a=PPD(XBR,a,((Z=this.urlProvider)==null?void 0:Z.getUrl)||oWI,W))?a:zf.prototype.resolveIcon.call(this,w,W)};
TuE[Hy]=[_.Vv(gNT)];_.KpL=1;var H4=function(){};
_.c(H4,iQ);H4.prototype.resolveCommand=function(a){var W,w;return _.P(function(Z){W=_.A(a,uk$);if(!W)return Z.return();w=Number(W.enableDelayedPacfLoggingTvMs);if(isNaN(w)){var N=EP();dbJ(N,W,0)}else dbJ(EP(),W,w);_.Xd(Z)})};_.yL=function(){};
_.c(_.yL,iQ);
_.yL.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X,v,U;return _.P(function(O){Z=_.A(a,CBJ);B=(N=W.form)==null?void 0:N.element;X=(I=B)==null?void 0:I.closest("ytd-enforcement-message-view-model");if(!Z||!X)return O.return();w.allowAdsAction||(v=Z.fundingChoiceInstructionPageUrl,w.allowAdsAction=new Oa6(window,_.cI(v)));var S=w.allowAdsAction;S.wallElement=X;S.allowAdsPopup.style.setProperty("display","flex","important");var T=S.scrollManager;T.originalBodyOverflow=T.JSC$7908_domHelper.JSC$7233_document_.body.style.overflow;T.JSC$7908_domHelper.JSC$7233_document_.body.style.overflow=
"hidden";S.wallElement.style.setProperty("display","none","important");n3R(S.accessibilityManager,S.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((U=w.allowAdsAction.allowAdsPopup)&&U instanceof HTMLElement)for(S=_.l(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),T=S.next();!T.done;T=S.next()){var p=_.l(T.value);T=p.next().value;p=p.next().value;U.style.setProperty(T,p)}_.Xd(O)})};
_.yL.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var EJ=function(){};
_.c(EJ,iQ);EJ.prototype.resolveCommand=function(a){var W;return _.P(function(w){W=_.A(a,y4R);if(!W)return w.return();fuI(a);_.Xd(w)})};var aH=function(a){this.JSC$14984_commandHandler=a};
_.c(aH,iQ);
aH.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I,X,v,U;return _.P(function(O){if(O.nextAddress==1){w=_.A(a,AAJ);if((Z=w)==null||!Z.text||!navigator.clipboard)return O.return();_.tq(O,2);return _.g(O,navigator.clipboard.writeText(w.text),4)}if(O.nextAddress!=2){if(!w.successActions||w.successActions.length===0)return O.return();N=_.l(w.successActions);for(B=N.next();!B.done;B=N.next())I=B.value,W.JSC$14984_commandHandler.resolveCommand(I);return _.qY(O,0)}_.Pb(O);if(!w.failureActions||w.failureActions.length===
0)return O.return();X=_.l(w.failureActions);for(v=X.next();!v.done;v=X.next())U=v.value,W.JSC$14984_commandHandler.resolveCommand(U);_.Xd(O)})};
aH[Hy]=[_.zU];var WY=function(a){this.JSC$14988_commandHandler=a};
_.c(WY,iQ);
WY.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X,v,U,O,S,T;return _.P(function(p){switch(p.nextAddress){case 1:Z=_.A(a,twH);if(!Z)return p.return();_.tq(p,2);if(!Z.imageBytes&&!Z.imageUrl)throw Error("wi");if(!Z.imageUrl){if(Z.imageBytes){B=Z.imageBytes;I=B.replace(/-/g,"+").replace(/_/g,"/");var h=UGC(I);N=_.Yf(h)}p.jumpTo(4);break}return _.g(p,fetch(Z.imageUrl),5);case 5:return X=p.yieldResult,_.g(p,X.blob(),6);case 6:v=p.yieldResult,N=_.Yf(v);case 4:S=(U=W)==null?void 0:(O=U.form)==
null?void 0:O.element;T=document.createElement("a");hY(T,N);S.appendChild(T);T.download="";T.click();S.removeChild(T);URL.revokeObjectURL(_.oJ(N));Z.successCommand&&w.JSC$14988_commandHandler.resolveCommand(Z.successCommand);_.qY(p,0);break;case 2:_.Pb(p),Z.errorCommand&&w.JSC$14988_commandHandler.resolveCommand(Z.errorCommand),_.Xd(p)}})};
WY[Hy]=[_.zU];var we=function(a){this.store=a};
_.c(we,iQ);we.prototype.resolveCommand=function(a){var W=this,w,Z,N;return _.P(function(B){Z=(w=_.A(a,_.Qkh))==null?void 0:w.entityBatchUpdate;if(!Z)return B.jumpTo(0);N=Object.assign({},Z,{mutations:[].concat(_.K8(Z.mutations||[]))});return _.g(B,_.PJ(N,W.store),0)})};var pBA=function(a){this.JSC$14995_commandHandler=a;this.feedbackDialogMap=new Map};
pBA.prototype.openDialog=function(a,W){(a=this.feedbackDialogMap.get(a))&&this.JSC$14995_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:a}},W)};
pBA[Hy]=[_.zU];var Z4=new _.yq("FEEDBACK_CONTROLLER_TOKEN");var N2=new _.yq("APP_STORE_TOKEN");var tJ=function(a,W){this.store=a;this.controller=W};
_.c(tJ,iQ);tJ.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V;return _.P(function(d){if(d.nextAddress==1){Z=_.A(a,_.F2);if(B=(N=Z)==null?void 0:N.contentId)for(X=_.l(((I=Z)==null?void 0:I.actions)||[]),v=X.next();!v.done;v=X.next())U=v.value,rhH(w,U,B);T=(O=W)==null?void 0:(S=O.form)==null?void 0:S.element;return _.g(d,_.Z9(T,[a]).catch(function(){}),2)}p=d.yieldResult;
((h=p)==null?0:(L=h.data)==null?0:(F=L.feedbackResponses)==null?0:F.length)&&(G=(x=p.data.feedbackResponses[0])==null?void 0:x.followUpDialog)&&B&&(V=w.controller)!=null&&V.feedbackDialogMap.set(B,G);_.Xd(d)})};
var rhH=function(a,W,w){var Z=_.A(W,_.$7);if(Z){Z=_.l(Z.commands||[]);for(var N=Z.next();!N.done;N=Z.next())rhH(a,N.value,w)}_.A(W,_.Yc)&&a.store.dispatch(_.oL("commandEntity",bhD(w),{key:w,command:W}));_.A(W,bo$)&&a.store.dispatch(_.oL("commandEntity",bhD(w),{key:w,command:W}))};
tJ[Hy]=[N2,Z4];var $h=function(a){this.controller=a};
_.c($h,iQ);$h.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I;return _.P(function(X){Z=_.A(a,_.Qz);B=(N=Z)==null?void 0:N.targetId;if(((I=Z)==null?void 0:I.signal)!=="TELL_US_WHY"||!B)return X.return();w.controller.openDialog(B,W);_.Xd(X)})};
$h[Hy]=[Z4];var BY=function(a){this.store=a};
_.c(BY,iQ);BY.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X,v,U;return _.P(function(O){Z=_.A(a,cBH);B=(N=Z)==null?void 0:N.contentId;v=(I=W)==null?void 0:(X=I.form)==null?void 0:X.element;U=_.Z9(v,[a]);B&&w.undo(B);return _.g(O,U,0)})};
BY.prototype.undo=function(a){this.store.dispatch(_.oL("commandEntity",bhD(a),{key:a,command:void 0}))};
BY[Hy]=[N2];var lt=function(a){this.JSC$15010_commandHandler=a};
_.c(lt,iQ);lt.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I,X,v,U;return _.P(function(O){w=_.A(a,a$y);Z=w.flowStateKey;N=w.validationFailureCommand;B=w.submitValidFormCommand;I=Mt(_.tN,[Z||""]);X=_.A(I,wy$);((v=X)==null?0:v.isValid)&&B&&W.JSC$15010_commandHandler.resolveCommand(B);((U=X)==null?0:U.isValid)||!N||W.JSC$15010_commandHandler.resolveCommand(N);_.Xd(O)})};
lt[Hy]=[_.zU];var IH=function(a){this.innertubeTransportService=a};
_.c(IH,iQ);IH.prototype.resolveCommand=function(a,W){var w=this,Z;return _.P(function(N){return _.g(N,_.MX(w.innertubeTransportService,a,(Z=W)==null?void 0:Z.form).then(function(B){var I,X;W==null||(I=W.commandController)==null||(X=I.onSuccess)==null||X.call(I,a,B)},function(B){var I,X;
W==null||(I=W.commandController)==null||(X=I.onServerError)==null||X.call(I,a,B)}),0)})};
IH[Hy]=[_.O6];var PY=function(){};
_.c(PY,iQ);PY.prototype.resolveCommand=function(a){var W,w,Z,N;return _.P(function(B){if(W=_.A(a,_.t7J)){if(w=W.gtmId)Z=_.LF("GL",""),_.g4(w,Z);(N=W.gtmData)&&_.oc(N)}_.Xd(B)})};var Xn=function(a,W){this.innertubeTransportService=a;this.JSC$15021_actionRouter=W};
_.c(Xn,iQ);Xn.prototype.resolveCommand=function(a){var W=this,w,Z;return _.P(function(N){w=_.A(a,IA$);if(!w)return N.return();Z=w.command;if(!Z)return N.return();W.JSC$15021_actionRouter.triggerAction("yt-insert-rich-section-action",w);return _.g(N,_.MX(W.innertubeTransportService,Z,{disableCache:!0}),0)})};
Xn[Hy]=[_.O6,d7];Ssv.bind(null,cd);var Ah_=Ssv.bind(null,PXR);Tve.bind(null,cd);var hj6=Tve.bind(null,PXR);rnS.bind(null,cd);var iWJ=rnS.bind(null,PXR);var vY=function(){};
_.c(vY,iQ);
vY.prototype.resolveCommand=function(a){var W,w,Z,N,B,I,X,v,U,O;return _.P(function(S){W=_.A(a,xSV);if(!W)return S.return();Z=((w=W.operations)==null?void 0:w.operations)||[];N=_.l(Z);for(B=N.next();!B.done;B=N.next())if(I=B.value,I.insertItemSectionContent){var T=I.insertItemSectionContent,p=T.contents||[];T.insertByPositionInSection?Ah_(T.insertByPositionInSection.sectionTargetId,p,T.insertByPositionInSection.position):T.insertByRelativePositionInSection&&T.insertByRelativePositionInSection.sectionTargetId&&T.insertByRelativePositionInSection.itemTargetId&&
hj6(T.insertByRelativePositionInSection.sectionTargetId,T.insertByRelativePositionInSection.itemTargetId,p,T.insertByRelativePositionInSection.relativePosition)}else I.replaceSection?(T=I.replaceSection,p={},T.replaceByTargetId?p=T.replaceByTargetId:T.replaceByGroupId&&(p={targetId:T.replaceByGroupId.groupId,newContent:T.replaceByGroupId.newContent,undoKey:""}),p.newContent&&g0$(p.targetId,{continuationItems:[p.newContent]})):I.removeItem?(T=I.removeItem,T.removeByTargetId&&T.sectionTargetId&&iWJ(T.sectionTargetId,
T.removeByTargetId.targetIds||[])):I.removeSection&&(I.removeSection.removeByTargetId?(X=void 0,chL(((X=I.removeSection)==null?void 0:X.removeByTargetId.targetIds)||[])):I.removeSection.removeByGroupId&&(v=void 0,chL(((v=I.removeSection)==null?void 0:v.removeByGroupId.groupIds)||[])));O=((U=W.operations)==null?void 0:U.scrollConfig)||{};ejR(O);_.Xd(S)})};
var chL=function(a){a=_.l(a);for(var W=a.next();!W.done;W=a.next())g0$(W.value,{continuationItems:[]})},ejR=function(a){if(a.scrollToItem){var W=a.scrollToItem.item||{},w=W.itemTargetId;
W=W.sectionTargetId;if(w&&W){var Z=document.querySelector("[data-target-id="+W+"]"),N=Z==null?void 0:Z.querySelector("[data-target-id="+w+"]");Z&&N&&setTimeout(function(){var B=N.offsetTop-Z.offsetTop,I;if(((I=a.scrollToItem)==null?void 0:I.scrollPosition)==="SCROLL_POSITION_CENTER")B-=Z.offsetHeight/2,B+=N.offsetHeight/2;else{var X;((X=a.scrollToItem)==null?void 0:X.scrollPosition)==="SCROLL_POSITION_END"&&(B-=Z.offsetHeight,B+=N.offsetHeight)}Z.scroll({top:B,behavior:"smooth"})},100)}}};var ge=new _.yq("CLIENT_NAME_TOKEN");var nNR=new _.yq("DEFAULT_STORE_EXPIRATION_TOKEN");var D4m=new _.yq("CLIENT_LOCATION_SERVICE_TOKEN");var oH=function(a,W,w){this.clientName=a||_.LF("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=W||_.LC.getInstance();this.JSC$15049_commandHandler=w||_.WX.instance};
_.c(oH,iQ);oH.prototype.resolveCommand=function(a){var W=this,w,Z;return _.P(function(N){Z=(w=_.A(a,mPR))==null?void 0:w.onComplete;W.clientLocationService.clearLocationPlayabilityToken(W.clientName);Z&&W.JSC$15049_commandHandler.resolveCommand(Z);_.Xd(N)})};
oH[Hy]=[ge,D4m,_.zU];var kh=function(a){this.innertubeTransportService=a};
_.c(kh,iQ);kh.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I;return _.P(function(X){B=(Z=W)==null?void 0:(N=Z.form)==null?void 0:N.element;return _.g(X,_.MX(w.innertubeTransportService,a,(I=W)==null?void 0:I.form).then(function(v){yJU(B,new CustomEvent("yt-service-request-completed"),{data:v},_.LF("openPopupConfig"))}),0)})};
kh[Hy]=[_.O6];var Up=function(){};
_.c(Up,iQ);Up.prototype.resolveCommand=function(a){var W,w;return _.P(function(Z){W=_.A(a,$PT);w=document.querySelector("mini-app-container-view-model");if(!W||!w)return Z.return();W.isPlaying?w.dispatchEvent(new Event("play")):w.dispatchEvent(new Event("pause"));_.Xd(Z)})};var Op=function(){};
_.c(Op,iQ);Op.prototype.resolveCommand=function(a){var W,w,Z,N,B,I,X;return _.P(function(v){W=_.A(a,EVh);if((w=W)==null||!w.paramKeys)return v.return();Z=W.paramKeys;N=_.MF(window.location.href);B=_.l(Z);for(I=B.next();!I.done;I=B.next())X=I.value,N.JSC$7940_queryData_.remove(X);window.history.replaceState(window.history.state,document.title,N.toString());_.Xd(v)})};var jzl=function(){this.dropdownMap=new Map};_.Lp_=new _.yq("DROPDOWN_CONTROLLER_TOKEN");var Sj=function(a){this.controller=a};
_.c(Sj,iQ);Sj.prototype.resolveCommand=function(a){var W=this,w,Z,N,B;return _.P(function(I){w=_.A(a,Jch);if(!w)return I.return();Z=w;N=Z.dropdownId;B=Z.selectedOptionIndex;if(N===void 0||B===void 0)return I.return();var X=W.controller.dropdownMap.get(N);X&&X(B);_.Xd(I)})};
Sj[Hy]=[_.Lp_];var Yh=function(a){this.controller=a};
_.c(Yh,iQ);Yh.prototype.resolveCommand=function(a){var W=this,w;return _.P(function(Z){return(w=_.A(a,w1J))?_.g(Z,W.controller.closeDialog(),0):Z.return()})};
Yh[Hy]=[_.TA];var Tl=function(a){this.controller=a};
_.c(Tl,iQ);Tl.prototype.resolveCommand=function(a){var W=this,w,Z;return _.P(function(N){w=_.A(a,qVl);if(!w)return N.return();var B,I=w.panelIdentifier||((B=w.identifier)==null?void 0:B.tag);if(!I)throw Error("xi");return(Z=I)?_.g(N,W.controller.hidePanel(Z),0):N.jumpTo(0)})};
Tl[Hy]=[_.SO];var KX=function(a,W){this.innertubeTransportService=a;this.controller=W};
_.c(KX,iQ);KX.prototype.resolveCommand=function(a){var W=this,w,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return w=_.A(a,Qr$),(Z=w)!=null&&Z.panelId?_.g(I,W.controller.getReloadContinuation(w.panelId),2):I.return();if(I.nextAddress!=3)return(N=I.yieldResult)?_.g(I,_.MX(W.innertubeTransportService,a,{continuation:N}),3):I.return();B=I.yieldResult;return _.g(I,W.controller.updatePanel(w.panelId,B.content,!1),0)})};
KX[Hy]=[_.O6,_.SO];var pX=function(a,W,w){this.innertubeTransportService=a;this.JSC$15085_screenManager=W;this.JSC$15085_commandHandler=w};
_.c(pX,iQ);
pX.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I,X;return _.P(function(v){if(v.nextAddress==1){w=_.A(a,_.cAV);if(!w)return v.return();if(w.commands)for(Z=_.l(w.commands),N=Z.next();!N.done;N=Z.next())B=N.value,W.JSC$15085_commandHandler.resolveCommand(B,{disableClickTracking:!0});I=_.PX(a.clickTrackingParams);_.NJ(W.JSC$15085_screenManager,21760,I,{layer:7,parentLayer:0});return _.g(v,_.MX(W.innertubeTransportService,a),2)}X=v.yieldResult;if(!X)return v.return();W.JSC$15085_screenManager.graftServerVe(X.trackingParams,I,
7);_.Xd(v)})};
pX[Hy]=[_.O6,_.Pw,_.zU];var re=new _.yq("PANEL_LOADING_STRATEGY_TOKEN");var AJ=function(a,W){this.controller=a;this.panelLoadingStrategy=W};
_.c(AJ,iQ);
AJ.prototype.resolveCommand=function(a,W){var w=this,Z,N,B;return _.P(function(I){Z=_.A(a,YFV);if((N=Z)==null||!N.panelLoadingStrategy)return I.return();B=function(X){var v,U,O,S,T,p,h,L,F;return _.P(function(x){U=_.A((v=X.dialogViewModel)==null?void 0:v.header,FT6);O={viewModel:X.dialogViewModel};S={};if(h=_.r("web_enable_dialog_header_label")?(T=U)==null?void 0:(p=T.headline)==null?void 0:p.content:void 0)S.ariaLabel=h;Z.dismissOnBackgroundTap===!1&&(S.isModal=!0);return X.dialogViewModel?_.g(x,
w.controller.openDialog(O,(L=W)==null?void 0:(F=L.form)==null?void 0:F.element,S),0):x.return()})};
return _.g(I,w.panelLoadingStrategy.execute({command:a,data:Z.panelLoadingStrategy,renderFn:B,createScreenConfig:{layer:4}}),0)})};
AJ[Hy]=[_.TA,re];var hJ=function(a,W,w){this.innertubeTransportService=a;this.controller=W;this.JSC$15105_screenManager=w};
_.c(hJ,iQ);
hJ.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X,v,U,O,S,T,p,h;return _.P(function(L){switch(L.nextAddress){case 1:Z=_.A(a,_.JN);if(!Z)return L.return();var F,x=Z.panelIdentifier||((F=Z.identifier)==null?void 0:F.tag);if(!x)throw Error("xi");N=x;return _.g(L,w.controller.isVisible(N,!0),2);case 2:if((B=L.yieldResult)&&Z.blockIfPanelOpen)return L.return();v=(X=(I=w.controller).getPanelContent)==null?void 0:X.call(I,N);if(!(F=v))if(Z){var G;F=((G=Z.globalConfiguration)==null?void 0:G.initialState)||
Z.engagementPanel;if(G=!F)G=!!(Z==null?0:(x=Z.engagementPanelPresentationConfigs)==null?0:x.engagementPanelPopupPresentationConfig);G&&(F=_.AnF(Z.panelIdentifier,Z.identifier))}else F=void 0;U=F;O=Z.engagementPanelPresentationConfigs;S=Z.engagementPanelExtras;return _.g(L,w.controller.showPanel(N,U,O,S,(T=W)==null?void 0:(p=T.form)==null?void 0:p.element),3);case 3:if(!Z.globalConfiguration){L.jumpTo(0);break}_.NJ(w.JSC$15105_screenManager,32633);return _.g(L,_.MX(w.innertubeTransportService,a),5);
case 5:return h=L.yieldResult,w.JSC$15105_screenManager.graftServerVe(h.trackingParams),_.g(L,w.controller.updatePanel(N,h.content,!0,S,void 0,h.updatePanelContinuationData),0)}})};
hJ[Hy]=[_.O6,_.SO,_.Pw];var cY=function(a,W){this.controller=a;this.panelLoadingStrategy=W};
_.c(cY,iQ);cY.prototype.resolveCommand=function(a,W){var w=this,Z,N,B;return _.P(function(I){Z=_.A(a,_.kD);if((N=Z)==null||!N.panelLoadingStrategy)return I.return();B=function(X){var v,U;return _.P(function(O){return X.sheetViewModel?_.g(O,w.controller.openSheet({viewModel:X.sheetViewModel},(v=W)==null?void 0:(U=v.form)==null?void 0:U.element),0):O.return()})};
return _.g(I,w.panelLoadingStrategy.execute({command:a,data:Z.panelLoadingStrategy,renderFn:B,createScreenConfig:{layer:0}}),0)})};
cY[Hy]=[_.Yt,re];var ej=function(a,W){this.controller=a;this.JSC$15113_commandHandler=W};
_.c(ej,iQ);ej.prototype.resolveCommand=function(a,W){var w=this,Z,N,B;return _.P(function(I){if(I.nextAddress==1){Z=_.A(a,uWT);var X=_.A(Z.showCommand,_.JN),v,U,O=(U=X==null?void 0:X.panelIdentifier)!=null?U:X==null?void 0:(v=X.identifier)==null?void 0:v.tag;if(!O)throw Error("yi");N=O;return _.g(I,w.controller.isVisible(N),2)}return(B=I.yieldResult)?_.g(I,w.controller.hidePanel(N),0):_.g(I,w.JSC$15113_commandHandler.resolveCommand(Z.showCommand,W),0)})};
ej[Hy]=[_.SO,_.zU];var nX=function(a,W,w){this.innertubeTransportService=a;this.controller=W;this.JSC$15116_screenManager=w};
_.c(nX,iQ);
nX.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V,d,ZD,aC,Bv;return _.P(function(Am){switch(Am.nextAddress){case 1:return Z=w=_.A(a,CTR),N=Z.targetPanelIdentifier,B=Z.contentSourcePanelIdentifier,I=Z.globalConfiguration,((X=N)==null?0:X.tag)&&((v=B)==null?0:v.tag)?I?_.g(Am,W.controller.showPanel(N.tag,_.AnF(N.tag,N),void 0,void 0,void 0),5):_.g(Am,(T=(S=W.controller).getPanel)==null?void 0:T.call(S,B.tag),4):Am.return();case 4:p=Am.yieldResult;U=(h=p)==null?void 0:
(F=(L=h).getPanelContent)==null?void 0:F.call(L);Am.jumpTo(3);break;case 5:return _.g(Am,_.MX(W.innertubeTransportService,a),6);case 6:x=Am.yieldResult,((G=x)==null?0:G.trackingParams)&&W.JSC$15116_screenManager.graftServerVe(x.trackingParams),U=(V=x)==null?void 0:V.content,O=(d=x)==null?void 0:d.updatePanelContinuationData;case 3:if(aC=(ZD=U)==null?void 0:ZD.engagementPanelSectionListRenderer)return _.g(Am,W.controller.showPanel(N.tag,void 0,void 0,void 0,void 0,{content:aC.content,secondaryHeaderContent:(Bv=
aC.header)!=null?Bv:{},targetId:aC.targetId},O),0);Am.jumpTo(0)}})};
nX[Hy]=[_.O6,_.SO,_.Pw];var jj=function(a,W){this.JSC$15124_commandHandler=a;this.store=W};
_.c(jj,iQ);jj.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I;return _.P(function(X){if(X.nextAddress==1)return(w=_.A(a,at6))?_.g(X,_.wP(),2):X.return();Z=X.yieldResult;if(!Z)return X.return();cnI(Z,W.store,(N=w)==null?void 0:N.languageCode);B=Z.isSubtitlesOn()?_.P_("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.P_("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");I=_.fx(B);W.JSC$15124_commandHandler.resolveCommand(I);_.Xd(X)})};
jj[Hy]=[_.zU,vN];var LX=function(a,W){this.shortsPlayerPromise=a;this.JSC$15128_commandHandler=W};
_.c(LX,iQ);
LX.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I,X,v,U;return _.P(function(O){if(O.nextAddress==1)return(w=_.A(a,kpy))?_.g(O,W.shortsPlayerPromise,2):O.return();Z=O.yieldResult;var S=ecF(Z);S!=null&&S.length||(Z.loadModule("captions"),S=ecF(Z));N=S;if((B=N)==null||!B.length)return I=_.P_("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),X=_.fx(I),W.JSC$15128_commandHandler.resolveCommand(X),O.return();Z.toggleSubtitles();v=Z.isSubtitlesOn()?_.P_("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.P_("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");U=_.fx(v);W.JSC$15128_commandHandler.resolveCommand(U);_.Xd(O)})};
LX[Hy]=[_.VOT,_.zU];var JJ=function(a){this.JSC$15131_playerPromise=a};
_.c(JJ,iQ);JJ.prototype.resolveCommand=function(a){var W=this,w,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return(w=_.A(a,bm$))?_.g(I,W.JSC$15131_playerPromise,2):I.return();Z=I.yieldResult;N=Z.getVideoData().video_id;w.videoId===N&&(B=Number(w.offsetFromVideoStartMilliseconds),B>=0&&Z.seekTo(B/1E3));_.Xd(I)})};
JJ[Hy]=[_.H$];var JhT=_.Nn("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Fn=function(a){this.store=a};
_.c(Fn,iQ);
var Fp$=function(a){var W,w,Z,N;return _.P(function(B){if(B.nextAddress==1)return W=_.LF("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,w=_.LF("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,Z=W||w,a.mainAppPlayer=new sD(Z),_.g(B,a.mainAppPlayer.api,2);N=B.yieldResult;N.addEventListener("onStateChange",a.JSC$15135_playerStateChangeListener.bind(a));document.addEventListener("yt-page-data-updated",a.pauseOnNavigation.bind(a));window.addEventListener("state-navigatestart",
a.pauseOnNavigation.bind(a));_.Xd(B)})};
Fn.prototype.JSC$15135_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"}M1h(this)};
var M1h=function(a){a.store.dispatch(_.oL("sfvAudioItemCurrentlyPlayingEntity",JhT,{key:JhT,externalVideoId:a.externalVideoId,sfvAudioItemPlaybackState:a.playbackState,nowPlayingEntityValue:a.nowPlayingEntityValue}))};
Fn.prototype.pauseOnNavigation=function(){var a=this,W,w,Z,N;return _.P(function(B){if(B.nextAddress==1){if(!a.mainAppPlayer){var I=new _.Uw("Error: mainAppPlayer is unavailable",a.mainAppPlayer);_.eJ(I);return B.return()}return _.g(B,a.mainAppPlayer.api,2)}W=B.yieldResult;Z=(w=W)==null?void 0:w.getPlayerState();Z!==1||(N=W)!=null&&N.pauseVideo();_.Xd(B)})};
Fn.prototype.playVideo=function(a,W,w){var Z=this,N,B;return _.P(function(I){if(I.nextAddress==1)return _.g(I,(N=Z.mainAppPlayer)==null?void 0:N.api,2);B=I.yieldResult;if(!Z.mainAppPlayer||!B){var X=new _.Uw("Error: mainAppPlayer is unavailable",Z.mainAppPlayer);_.eJ(X);return I.return()}return _.g(I,Z.mainAppPlayer.loadVideoWithPlayerVars({videoId:Z.externalVideoId,audio_only:"1",start:a/1E3,end:a/1E3+W,player_params:w}),0)})};
Fn.prototype.pauseVideo=function(){var a=this,W,w;return _.P(function(Z){if(Z.nextAddress==1){if(!a.mainAppPlayer){var N=new _.Uw("Error: mainAppPlayer is unavailable",a.mainAppPlayer);_.eJ(N);return Z.return()}return _.g(Z,a.mainAppPlayer.api,2)}W=Z.yieldResult;(w=W)==null||w.pauseVideo();_.Xd(Z)})};
Fn.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V,d;return _.P(function(ZD){if(ZD.nextAddress==1)return w=_.A(a,XTR),N=(Z=w)==null?void 0:Z.nowPlayingEntityValue,I=(B=w)==null?void 0:B.externalVideoId,S=Number((O=(X=w)==null?void 0:(v=X.defaultStartPoints)==null?void 0:(U=v[0])==null?void 0:U.offsetMs)!=null?O:"0"),x=Number((F=(T=w)==null?void 0:(p=T.defaultStartPoints)==null?void 0:(h=p[0])==null?void 0:(L=h.duration)==null?void 0:L.seconds)!=null?F:"15"),d=(V=
(G=w)==null?void 0:G.playerParams)!=null?V:"",N&&I?W.mainAppPlayer?ZD.jumpTo(2):_.g(ZD,Fp$(W),2):ZD.return();if(ZD.nextAddress!=6){if(W.nowPlayingEntityValue&&N===W.nowPlayingEntityValue)return W.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.g(ZD,W.pauseVideo(),0):_.g(ZD,W.playVideo(S,x,d),0);W.externalVideoId=I;W.nowPlayingEntityValue=N;W.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.g(ZD,W.playVideo(S,x,d),6)}M1h(W);return ZD.jumpTo(0)})};
Fn[Hy]=[vN];var M2=function(a){this.JSC$15152_commandHandler=a};
_.c(M2,iQ);M2.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X;return _.P(function(v){if(v.nextAddress==1)return(Z=_.A(a,WvT))?_.g(v,_.wP(),2):v.return();N=v.yieldResult;if(!N)return v.return();(B=JnU(N))?w.JSC$15152_commandHandler.resolveCommand(B,W):(I=_.P_("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),X=_.fx(I),w.JSC$15152_commandHandler.resolveCommand(X));_.Xd(v)})};
M2[Hy]=[_.zU];var RH=function(a){this.JSC$15155_playerPromise=a};
_.c(RH,iQ);RH.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I;return _.P(function(X){if(X.nextAddress==1){w=_.A(a,srR);if(!w)return X.return();Z=w.overlayRenderer;return Z?(N=_.A(Z,mJh))?_.g(X,W.JSC$15155_playerPromise,3):X.jumpTo(0):X.return()}B=X.yieldResult;B.renderChapterSeekingAnimation(1,_.sd(N.text),(I=N.icon)==null?void 0:I.iconType);_.Xd(X)})};
RH[Hy]=[_.H$];var q2=function(a){this.store=a};
_.c(q2,iQ);q2.prototype.resolveCommand=function(a){var W=this,w,Z,N;return _.P(function(B){if(B.nextAddress==1){w=_.A(a,w5J);if(!w)return B.return();Z="";(N=W.store.getState().collabInviteLink)&&w.id===N.playlistId?Z=N.inviteLinkURL:w.shortUrl&&(Z=w.shortUrl);return Z?_.g(B,navigator.clipboard.writeText(Z),3):B.jumpTo(0)}var I={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.P_("COPY_LINK_SUCCESS_TOAST")}}}}};_.K().resolve(_.zU).resolveCommand(I);_.Xd(B)})};
q2[Hy]=[N2];var QG=function(a,W){this.innertubeTransportService=a;this.JSC$15165_commandHandler=W};
_.c(QG,iQ);QG.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X,v,U,O,S,T;return _.P(function(p){if(p.nextAddress==1)return(Z=_.A(a,_.Ri))?_.g(p,_.MX(w.innertubeTransportService,a,(N=W)==null?void 0:N.form),2):p.return();(B=p.yieldResult)&&B.errorMetadata&&(I=B,X=_.fx(I.error.message),w.JSC$15165_commandHandler.resolveCommand(X));v=B;if((U=v)==null?0:U.actions)for(O=_.l(v.actions),S=O.next();!S.done;S=O.next())T=S.value,w.JSC$15165_commandHandler.resolveCommand(T);_.Xd(p)})};
QG[Hy]=[_.O6,_.zU];var xh=function(){};
_.c(xh,iQ);xh.prototype.resolveCommand=function(a){var W;return _.P(function(w){W=_.A(a,mSy);if(!W)return w.return();(new xr6(W)).show();_.Xd(w)})};_.bt=new _.yq("PLAYLIST_EDIT_CONTROLLER_TOKEN");var sp=function(a,W,w,Z){this.store=a;this.innertubeTransportService=W;this.controller=w;this.JSC$15173_commandHandler=Z};
_.c(sp,iQ);
sp.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V,d,ZD,aC,Bv,Am,e9,cv,C7,RC;return _.P(function(G8){if(G8.nextAddress==1){Z=_.A(a,_.nz);if(!Z)return G8.return();if(Z.clientActions){N=_.l(Z.clientActions);for(B=N.next();!B.done;B=N.next())I=B.value,w.JSC$15173_commandHandler.resolveCommand(I);var QF,vl=W==null?void 0:(QF=W.form)==null?void 0:QF.element;vl&&_.E$(vl,"yt-dismissible-item-action",Z.clientActions)}return _.g(G8,_.MX(w.innertubeTransportService,a,(X=
W)==null?void 0:X.form),2)}if(v=G8.yieldResult)v.errorMetadata?(U=v,O=_.fx(U.error.message),w.JSC$15173_commandHandler.resolveCommand(O),"error"in v&&((S=W)==null?0:(T=S.commandController)==null?0:T.onServerError)&&((p=W)==null||(h=p.commandController)==null||h.onServerError(a,v))):(L=W)==null||(F=L.commandController)==null||(G=(x=F).onSuccess)==null||G.call(x,a,v);V=v;((d=V)==null?0:d.collaborationInviteLink)&&Z.playlistId&&(_.r("web_enable_invite_collaborators_link")||_.r("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
w.store.dispatch(_.E_({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:Z.playlistId,inviteLinkUrl:V.collaborationInviteLink}}));((ZD=V)==null?0:ZD.redirectEndpoint)&&w.JSC$15173_commandHandler.resolveCommand(V.redirectEndpoint);((aC=V)==null?0:(Bv=aC.newHeader)==null?0:Bv.playlistHeaderRenderer)?RjV(w.controller,V.newHeader.playlistHeaderRenderer):((Am=V)==null?0:(e9=Am.newHeader)==null?0:e9.musicEditablePlaylistDetailHeaderRenderer)&&RjV(w.controller,V.newHeader.musicEditablePlaylistDetailHeaderRenderer);
w.controller.playlistVideoListElement&&((cv=V)==null?0:(C7=cv.playlistEditResults)==null?0:(RC=C7[0])==null?0:RC.playlistEditVideoAddedResultData)&&((vl=w.controller.playlistVideoListElement)==null||vl.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:V.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Xd(G8)})};
sp[Hy]=[N2,_.O6,_.bt,_.zU];var ut=function(a,W){this.controller=a;this.JSC$15183_commandHandler=W};
_.c(ut,iQ);ut.prototype.resolveCommand=function(a,W){var w=this,Z,N,B;return _.P(function(I){Z=_.A(a,Zkh);w.controller.showRefreshPill&&((N=Z)==null?0:N.command)&&(w.JSC$15183_commandHandler.resolveCommand((B=Z)==null?void 0:B.command,W),w.controller.showRefreshPill=!1);_.Xd(I)})};
ut[Hy]=[_.mf,_.zU];var CX=function(a,W){this.store=a;this.JSC$15187_commandHandler=W||_.WX.instance};
_.c(CX,iQ);CX.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X,v,U,O,S,T;return _.P(function(p){Z=_.A(a,U5l);N=w.store.getState().radioButtonGroup;if((B=Z)==null?0:B.command)w.JSC$15187_commandHandler.resolveCommand((I=Z)==null?void 0:I.command,W);else if(((X=Z)==null?void 0:X.formId)===N.currentFormId)for(v=Object.values(N.commandsMap),U=_.l(v),O=U.next();!O.done;O=U.next()){S=O.value;T=_.rJ(S);if(!T)return p.return();w.JSC$15187_commandHandler.resolveCommand(T,W)}_.Xd(p)})};
CX[Hy]=[N2];var Gl=new _.yq("USER_PREFS");var D4=function(a){this.JSC$15191_prefCookie=a};
_.c(D4,iQ);D4.prototype.resolveCommand=function(a){var W=this,w;return _.P(function(Z){(w=_.A(a,bIV))&&typeof w.useListView==="boolean"&&(_.oV(0,155,w.useListView),W.JSC$15191_prefCookie.save());_.Xd(Z)})};
D4[Hy]=[Gl];var fX=function(a){this.JSC$15195_prefCookie=a};
_.c(fX,iQ);fX.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I;return _.P(function(X){w=_.A(a,zWE);if((Z=w)==null||!Z.gl)return X.return();N=w.gl;B={persist_gl:"1",gl:N};W.JSC$15195_prefCookie.set("gl",N);W.JSC$15195_prefCookie.save();I=X9V(B);_.ih(I);_.Xd(X)})};
fX[Hy]=[Gl];var de=function(a){this.JSC$15199_prefCookie=a};
_.c(de,iQ);de.prototype.resolveCommand=function(a){var W=this,w,Z;return _.P(function(N){w=_.A(a,tXV);if(!w)return N.return();Z=!1;w.flagNum&&typeof w.value==="boolean"?(_.oV(0,w.flagNum,w.value),Z=!0):w.key&&typeof w.stringValue==="string"&&(W.JSC$15199_prefCookie.set(w.key,w.stringValue),Z=!0);Z&&W.JSC$15199_prefCookie.save();_.Xd(N)})};
de[Hy]=[Gl];var me=new _.yq("PREF_STORAGE_PROMISE_TOKEN");var VG=function(a){this.JSC$15203_prefStoragePromise=a};
_.c(VG,iQ);VG.prototype.resolveCommand=function(a){var W=this,w,Z;return _.P(function(N){if(N.nextAddress==1)return(w=_.A(a,BD_))?_.g(N,W.JSC$15203_prefStoragePromise,2):N.return();Z=N.yieldResult;return Z===void 0||w.key===void 0||w.value===void 0?N.return():_.g(N,Z.set(w.key,w.value),0)})};
VG[Hy]=[me];var qcV=function(a){this.innertubeTransportService=a};
_.c(qcV,iQ);qcV.prototype.resolveCommand=function(a,W){var w=this,Z,N;return _.P(function(B){(Z=_.A(a,_.F6$))&&Z&&Z.isFirstRequest&&(_.rS("search_overview_answer"),_.Ak("so_rq",void 0,"search_overview_answer"));return _.g(B,_.MX(w.innertubeTransportService,a,(N=W)==null?void 0:N.form),0)})};
qcV[Hy]=[_.O6];var QzE=function(){};
_.c(QzE,iQ);
QzE.prototype.resolveCommand=function(a){var W,w,Z,N,B,I,X,v,U;return _.P(function(O){W=_.A(a,xKE);if((w=W)==null?0:w.sectionIdentifier){if(W.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(N=(Z=document.getElementsByTagName(W.sectionIdentifier))==null?void 0:Z.item(0))N.scrollIntoView({behavior:"smooth"}),(B=mj7(N))&&B.focus({preventScroll:!0});return O.return()}I=document.querySelector("[section-identifier="+W.sectionIdentifier+"]");X=document.querySelector("[section-identifier="+W.referenceSectionIdentifier+
"]");if(!I)return O.return();v=W.verticalScrollOffsetDp?W.verticalScrollOffsetDp:0;X&&(v-=X.offsetTop);window.scrollTo({top:I.offsetTop+v,behavior:"smooth"});(U=mj7(I))&&U.focus({preventScroll:!0})}_.Xd(O)})};var zl=function(){};
_.c(zl,iQ);
zl.prototype.resolveCommand=function(a){var W,w,Z,N,B,I,X;return _.P(function(v){if(v.nextAddress==1){W=_.A(a,$JL);if(!W||!W.imageBytes||!navigator.clipboard)return v.return();if(W.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.eJ(Error("zi")),v.return();_.tq(v,2);Z=(w=W)==null?void 0:w.imageBytes;N=Z.replace(/-/g,"+").replace(/_/g,"/");B=UGC(N);I={};X=[new ClipboardItem((I[B.type]=B,I))];return _.g(v,navigator.clipboard.write(X),4)}if(v.nextAddress!=2)return _.qY(v,0);
_.Pb(v);_.Xd(v)})};var HY=function(a,W){this.innertubeTransportService=a;this.JSC$15218_commandHandler=W};
_.c(HY,iQ);HY.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X;return _.P(function(v){if(v.nextAddress==1)return(Z=_.A(a,B9h))?_.g(v,_.MX(w.innertubeTransportService,a,(N=W)==null?void 0:N.form),2):v.return();(B=v.yieldResult)&&B.errorMetadata&&Z.onFailureCommand&&w.JSC$15218_commandHandler.resolveCommand(Z.onFailureCommand);I=B;((X=I)==null?0:X.shareCommand)&&w.JSC$15218_commandHandler.resolveCommand(I.shareCommand,W);_.Xd(v)})};
HY[Hy]=[_.O6,_.zU];var yG=function(){};
_.c(yG,iQ);yG.prototype.resolveCommand=function(a){var W,w;return _.P(function(Z){W=_.A(a,WsJ);if(!W||!navigator.share)return Z.return();w={url:W.url};try{return Z.return(navigator.share(w))}catch(N){}_.Xd(Z)})};var Ep=function(){};
_.c(Ep,iQ);Ep.prototype.resolveCommand=function(){return _.P(function(a){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Xd(a)})};var aM=function(a){this.JSC$15228_navigationConfirmationService=a};
_.c(aM,iQ);aM.prototype.resolveCommand=function(){var a=this;return _.P(function(W){a.JSC$15228_navigationConfirmationService.cancelPendingNavigation();_.Xd(W)})};
aM[Hy]=[I4];var WO=function(a){this.JSC$15231_screenManager=a};
_.c(WO,iQ);WO.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X,v,U;return _.P(function(O){N=(Z=W.form)==null?void 0:Z.event;I=(B=W.form)==null?void 0:B.element;if(!N)throw new _.Uw("Event not passed in when resolving command");X=_.l(N.composedPath());for(v=X.next();!v.done;v=X.next())if(U=v.value,U.tagName==="YT-COPY-LINK-RENDERER")return U.copyUrlToClipboard(),I&&_.LA(w.JSC$15231_screenManager,I),O.return();_.Xd(O)})};
WO[Hy]=[_.Pw];var w6=function(){this.JSC$15235_miniAppClientDataProvider=_.K().resolve(_.c4)};
_.c(w6,iQ);w6.prototype.resolveCommand=function(){var a=this,W,w;return _.P(function(Z){if(a.JSC$15235_miniAppClientDataProvider.clientData.has("video_id")){var N=a.JSC$15235_miniAppClientDataProvider,B=N.clientData.get("video_id");B&&N.clientData.delete("video_id");W="https://youtube.com/watch?v="+B;w=U0(W);if(w===void 0)throw Error("Ai`"+W);_.Lv(window,w)}_.Xd(Z)})};var ZS=function(){};
_.c(ZS,iQ);ZS.prototype.resolveCommand=function(){return _.P(function(a){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Xd(a)})};var Nc=function(){};
_.c(Nc,iQ);Nc.prototype.resolveCommand=function(){var a;return _.P(function(W){if(W.nextAddress==1)return _.g(W,_.K19(window.document.documentElement),2);(a=document.querySelector("mini-app-container-view-model iframe"))&&a.focus();_.Xd(W)})};var t0=function(a){this.JSC$15242_navigationConfirmationService=a};
_.c(t0,iQ);
t0.prototype.resolveCommand=function(){var a=this;return _.P(function(W){var w=a.JSC$15242_navigationConfirmationService,Z=_.K().resolve(_.Zh),N;if(((N=w.navigateParams)==null?void 0:N.data)!==void 0){var B;_.Mue(Z,w.navigateParams.endpoint,w.navigateParams.data,(B=w.navigateParams.navigationType)!=null?B:1,w.navigateParams.tempData,w.navigateParams.isMiniplayer,void 0,!0);w.navigateParams=void 0;w.customConfirmationCommand=void 0}else w.navigateParams&&(Z.navigate(w.navigateParams.endpoint,w.navigateParams.reload,
w.navigateParams.params,w.navigateParams.tempData,w.navigateParams.requestType,w.navigateParams.createScreenConfig,!0),w.navigateParams=void 0,w.customConfirmationCommand=void 0);_.Xd(W)})};
t0[Hy]=[I4];var $G=function(){};
_.c($G,iQ);$G.prototype.resolveCommand=function(){return _.P(function(a){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Xd(a)})};var BO=function(a){this.JSC$15247_prefStorage=a};
_.c(BO,iQ);BO.prototype.resolveCommand=function(){var a=this,W,w;return _.P(function(Z){switch(Z.nextAddress){case 1:return _.g(Z,a.JSC$15247_prefStorage,2);case 2:return(W=Z.yieldResult)?_.g(Z,W.set("sfvle",!1),3):Z.return();case 3:return _.g(Z,W.set("sfvles",!0),4);case 4:w=_.gS(),_.oV(0,203,!1),_.oV(0,204,!0),w.save(),_.Xd(Z)}})};
BO[Hy]=[me];var lS=function(a){this.JSC$15250_prefStorage=a};
_.c(lS,iQ);lS.prototype.resolveCommand=function(){var a=this,W,w;return _.P(function(Z){switch(Z.nextAddress){case 1:return _.g(Z,a.JSC$15250_prefStorage,2);case 2:return(W=Z.yieldResult)?_.g(Z,W.set("sfvle",!0),3):Z.return();case 3:return _.g(Z,W.set("sfvles",!0),4);case 4:w=_.gS(),_.oV(0,203,!0),_.oV(0,204,!0),w.save(),_.Xd(Z)}})};
lS[Hy]=[me];var IM=function(){};
_.c(IM,iQ);IM.prototype.resolveCommand=function(a){var W;return _.P(function(w){W=_.A(a,$5T);if(!W||typeof W.key!=="string"||typeof W.value!=="string")return w.return();window.localStorage.setItem(W.key,W.value);_.Xd(w)})};var PO=function(a){this.store=a};
_.c(PO,iQ);PO.prototype.resolveCommand=function(a){var W=this,w;return _.P(function(Z){w=_.A(a,iVI);if(!w||!w.stepId||!w.token)return Z.return();W.store.dispatch(HG6({stepId:w.stepId,token:w.token,isSelected:!1}));_.Xd(Z)})};
PO[Hy]=[N2];var X9=function(a,W,w){this.innertubeTransportService=a;this.store=W;this.JSC$15261_screenManager=w};
_.c(X9,iQ);
X9.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V,d,ZD,aC,Bv,Am;return _.P(function(e9){w=_.A(a,PE6);if(!w||(Z=w.stepIds)==null||!Z.length)return e9.return();N=W.store.getState().talkToRecs;B=[];I=[];X=_.l(w.stepIds);for(v=X.next();!v.done;v=X.next())for(U=v.value,O=void 0,(S=(O=N.stepStates[U])==null?void 0:O.userQuery)&&I.push({userQuery:S.userQuery,userQueryToken:S.token}),T=void 0,p=(T=N.stepStates[U])==null?void 0:T.selectionStates,h=_.l(Object.entries(p)),L=
h.next();!L.done;L=h.next())F=L.value,x=_.l(F),G=x.next().value,V=x.next().value,d=G,ZD=V,ZD.isSelected&&B.push(d);aC={selectedChipTokens:B,userQueries:I,submittedStepIds:w.stepIds};Bv={browseTalk2recsFormData:aC};w.browseEndpoint?(Am=a,_.Sx(Am,_.I1,w.browseEndpoint)):w.command&&(Am=w.command);return Am?_.g(e9,_.MX(W.innertubeTransportService,Am,{formData:Bv,disableCache:!0}).then(function(cv){(cv==null?0:cv.trackingParams)&&W.JSC$15261_screenManager.graftServerVe(cv==null?void 0:cv.trackingParams)}),
0):e9.return()})};
X9[Hy]=[_.O6,N2,_.Pw];var vO=function(a){this.store=a};
_.c(vO,iQ);vO.prototype.resolveCommand=function(a){var W=this,w;return _.P(function(Z){w=_.A(a,h4F);if(!w||!w.stepId||!w.token)return Z.return();W.store.dispatch(HG6({stepId:w.stepId,token:w.token,isSelected:!0}));_.Xd(Z)})};
vO[Hy]=[N2];var g6=function(a){this.store=a};
_.c(g6,iQ);g6.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X;return _.P(function(v){Z=_.A(a,X06);if(!Z||!Z.stepId||!Z.userQueryToken)return v.return();X=(I=(N=W)==null?void 0:(B=N.form)==null?void 0:B.userQuery)!=null?I:"";w.store.dispatch(_.E_({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:Z.stepId,userQueryToken:Z.userQueryToken,userQuery:X}}));_.Xd(v)})};
g6[Hy]=[N2];_.xIl=new _.yq("TIMELY_ACTIONS_CONTROLLER_TOKEN");var oM=function(a){this.controller=a};
_.c(oM,iQ);oM.prototype.resolveCommand=function(a){var W=this,w,Z,N,B;return _.P(function(I){w=_.A(a,Rx_);if(!w)return I.return();Z=w;N=Z.id;B=Z.isVisible;if(N===void 0||B===void 0)return I.return();var X;(X=W.controller.timelyActionsMap.get(N))==null||X(N,B);_.Xd(I)})};
oM[Hy]=[_.xIl];var bWl=function(){this.timelyActionsMap=new Map};var kG=function(a){this.JSC$15288_commandHandler=a};
_.c(kG,iQ);kG.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I;return _.P(function(X){w=_.A(a,_.xTT);if(!w)return X.return();B=(Z=w.item)==null?void 0:(N=Z.notificationTextRenderer)==null?void 0:N.successResponseText;if(!B)return X.return();I=_.Db(B);W.JSC$15288_commandHandler.resolveCommand(I);_.Xd(X)})};
kG[Hy]=[_.zU];var U4=function(a,W){this.innertubeTransportService=a;this.JSC$15293_playerApiPromise=W};
_.c(U4,iQ);
U4.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I,X,v,U,O;return _.P(function(S){if(S.nextAddress==1)return _.g(S,W.JSC$15293_playerApiPromise,2);w=S.yieldResult;Z=w.getOption("captions","track");N=Object.assign({},_.A(a,_.cdA));(I=(B=w.getVideoData())==null?void 0:B.video_id)?N.externalVideoId=I:_.qx(Error("Bi"));if((X=Z)==null?0:X.languageCode)N.languageCode=Z.languageCode;if((v=Z)==null?0:v.kind)N.kind=Z.kind;if((U=Z)==null?0:U.name)N.name=Z.name;O=Object.assign({},a,{getTranscriptEndpoint:N});return _.g(S,
_.MX(W.innertubeTransportService,O),0)})};
U4[Hy]=[_.O6,_.H$];var O4=function(){};
_.c(O4,iQ);O4.prototype.resolveCommand=function(a){var W,w,Z,N,B,I,X,v;return _.P(function(U){W=_.A(a,kiR);if((w=W)==null||!w.paramKeyValuePairs)return U.return();Z=window.location.href;N=_.l(W.paramKeyValuePairs);for(B=N.next();!B.done;B=N.next())I=B.value,I.key&&I.value&&(X={},Z=_.uG(Z,(X[I.key]=I.value,X)));v=_.K().resolve(_.$t);_.t8(v,Z);_.Xd(U)})};var St=function(a,W){this.JSC$15300_commandHandler=a;this.innertubeTransportService=W};
_.c(St,iQ);
St.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V;return _.P(function(d){switch(d.nextAddress){case 1:return(B=(Z=W)==null?void 0:(N=Z.form)==null?void 0:N.element)&&_.zb(B),I=_.gS().get("hl"),X="",_.tq(d,2),_.g(d,qs9(I),4);case 4:X=d.yieldResult;_.qY(d,3);break;case 2:return _.Pb(d),B&&_.H6(B),_.eJ(Error("Di"),"ERROR"),d.return();case 3:v=_.A(a,w7T);if(!v)return B&&_.H6(B),d.return();(S=(U=v.commerceActionConfig)==null?void 0:(O=U.commandLifeCycleConfig)==null?
void 0:O.onStartCommand)&&w.JSC$15300_commandHandler.resolveCommand(S);return _.g(d,_.MX(w.innertubeTransportService,a,{client_data:{paymentsClientToken:{token:X}}}),5);case 5:(T=d.yieldResult)?(B&&_.H6(B),((F=T)==null?0:F.command)&&w.JSC$15300_commandHandler.resolveCommand(T.command),(V=(x=v.commerceActionConfig)==null?void 0:(G=x.commandLifeCycleConfig)==null?void 0:G.onSuccessCommand)&&w.JSC$15300_commandHandler.resolveCommand(V)):(B&&_.H6(B),_.eJ(Error("Ei")),(L=(p=v.commerceActionConfig)==null?
void 0:(h=p.commandLifeCycleConfig)==null?void 0:h.onFailureCommand)&&w.JSC$15300_commandHandler.resolveCommand(L)),_.Xd(d)}})};
St[Hy]=[_.zU,_.O6];var YG=function(a,W,w){this.store=a;this.JSC$15316_commandHandler=W;this.innertubeTransportService=w};
_.c(YG,iQ);
YG.prototype.resolveCommand=function(a,W){var w=this,Z,N,B,I,X,v,U,O,S;return _.P(function(T){Z=_.A(a,ZNV);N=Z.googlePaymentPayload;Z.onStartCommand&&w.JSC$15316_commandHandler.resolveCommand(Z.onStartCommand);B=N.encryptedPurchaseParams;I=N.ypcLogWalletAnalyticDataEndpoint;X=Z.serializedTransactionFlowLoggingParams;v=N.serializedPaymentsClientParams;U=Z.ypcCujContext;S=bq9(w.innertubeTransportService,(O=W)==null?void 0:O.form,B,I,X,v,U);return T.return(S.then(function(p){QOe(W==null?void 0:W.form,
!1);var h=w.store,L=w.JSC$15316_commandHandler,F=p.integratorData;F==null||F===""||p.error!=null?(String(p.error)==="-1"&&Z.onDismissCommand?L.resolveCommand(Z.onDismissCommand):String(p.error)!=="-1"&&Z.onFailureCommand&&L.resolveCommand(Z.onFailureCommand),String(p.error)!=="-1"&&String(p.error)!=="132"&&_.eJ(Error("Fi"),"ERROR")):(Z.googlePaymentEntityKey&&h.dispatch(_.oL("commerceAcquisitionClientPayloadEntity",Z.googlePaymentEntityKey,{key:Z.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:F,
fundsGuaranteeCallbackClientData:p.integratorClientCallbackData}}})),Z.onSuccessCommand&&L.resolveCommand(Z.onSuccessCommand));_.tk()},function(p){QOe(W==null?void 0:W.form,!1);
_.eJ(p,"ERROR");Z.onFailureCommand&&w.JSC$15316_commandHandler.resolveCommand(Z.onFailureCommand)}))})};
YG[Hy]=[vN,_.zU,_.O6];var TF=function(a,W){this.JSC$15320_commandHandler=a;this.purchaseManager=W};
_.c(TF,iQ);
TF.prototype.resolveCommand=function(a){var W=this,w,Z,N,B,I,X,v,U,O;return _.P(function(S){w=_.A(a,N4$);((Z=w)==null?0:(N=Z.commandLifeCycleConfig)==null?0:N.onStartCommand)&&W.JSC$15320_commandHandler.resolveCommand(w.commandLifeCycleConfig.onStartCommand);if(!((B=w)==null?0:(I=B.googlePaymentPurchaseManagerPayload)==null?0:I.securePayloadBytes))return _.eJ(Error("Gi"),"ERROR"),S.return();X=ezR(_.UR(w.googlePaymentPurchaseManagerPayload.securePayloadBytes));v=_.gS().get("hl");U=_.Rt();Huh(X.serialize(),
v,function(T){U.resolve(T)},function(T){U.reject(T)},U.resolve);
O=U.promise;return S.return(O.then(function(T){if(T)if(T==null?0:T.errorCode){_.eJ(Error("Hi`"+T.errorCode),"ERROR");var p,h;((p=w)==null?0:(h=p.commandLifeCycleConfig)==null?0:h.onFailureCommand)&&W.JSC$15320_commandHandler.resolveCommand(w.commandLifeCycleConfig.onFailureCommand)}else if(T==null?0:T.isCancelled){var L,F;((L=w)==null?0:(F=L.commandLifeCycleConfig)==null?0:F.onCancelCommand)&&W.JSC$15320_commandHandler.resolveCommand(w.commandLifeCycleConfig.onCancelCommand)}else{var x,G;((x=w)==
null?0:(G=x.commandLifeCycleConfig)==null?0:G.onSuccessCommand)&&W.JSC$15320_commandHandler.resolveCommand(w.commandLifeCycleConfig.onSuccessCommand)}},function(T){_.eJ(T,"ERROR");
var p,h;((p=w)==null?0:(h=p.commandLifeCycleConfig)==null?0:h.onFailureCommand)&&W.JSC$15320_commandHandler.resolveCommand(w.commandLifeCycleConfig.onFailureCommand)}))})};
TF[Hy]=[_.zU,yi6];var szJ=function(a,W){this.JSC$15328_commandHandler=a;this.commandAllowlistOverride=W;var w;this.commandAllowlist=(w=this.commandAllowlistOverride)!=null?w:qX};
szJ.prototype.handleResponse=function(a,W,w){var Z,N=W==null?void 0:(Z=W.config)==null?void 0:Z.command;if(!N||this.commandAllowlist.some(function(B){return!!_.A(N,B)})){W=void 0;
w!==void 0&&(W={form:{element:w}});a.onResponseReceivedCommand&&this.JSC$15328_commandHandler.resolveCommand(a.onResponseReceivedCommand,W);a.onResponseReceivedAction&&this.JSC$15328_commandHandler.resolveCommand(a.onResponseReceivedAction,W);a.onResponseReceivedEndpoint&&this.JSC$15328_commandHandler.resolveCommand(a.onResponseReceivedEndpoint,W);a.command&&this.JSC$15328_commandHandler.resolveCommand(a.command,W);if(a.onResponseReceivedCommands)for(w=_.l(a.onResponseReceivedCommands),Z=w.next();!Z.done;Z=
w.next())this.JSC$15328_commandHandler.resolveCommand(Z.value,W);if(a.onResponseReceivedActions)for(w=_.l(a.onResponseReceivedActions),Z=w.next();!Z.done;Z=w.next())this.JSC$15328_commandHandler.resolveCommand(Z.value,W);if(a.onResponseReceivedEndpoints)for(w=_.l(a.onResponseReceivedEndpoints),Z=w.next();!Z.done;Z=w.next())this.JSC$15328_commandHandler.resolveCommand(Z.value,W);if(a.actions)for(a=_.l(a.actions),w=a.next();!w.done;w=a.next())this.JSC$15328_commandHandler.resolveCommand(w.value,W)}};
szJ[Hy]=[_.zU,_.Vv(b$C)];var u_6=new _.yq("INNERTUBE_TOKEN_SERVICE");var C_E=new _.yq("SCHEDULER_TOKEN");var GBh=function(a){this.scheduler=a;a={};this.tokenMap=(a.app={},a.user={},a)};
GBh.prototype.handleResponse=function(a,W){if(!W)throw Error("Ii");var w;if(a=(w=a.responseContext)==null?void 0:w.innertubeTokenJar){if(a.appTokens){var Z,N,B;w=(Z=W.innerTubeRequest.context)==null?void 0:(N=Z.request)==null?void 0:(B=N.innertubeTokenJar)==null?void 0:B.appTokens;DIE(this,a.appTokens,this.tokenMap.app,w)}if(a.userTokens){var I,X,v;W=(I=W.innerTubeRequest.context)==null?void 0:(X=I.request)==null?void 0:(v=X.innertubeTokenJar)==null?void 0:v.userTokens;DIE(this,a.userTokens,this.tokenMap.user,
W)}}};
GBh.prototype.processContext=function(a){a.request||(a.request={});var W=Object.keys(this.tokenMap.app).length,w=Object.keys(this.tokenMap.user).length;if(W||w)a.request.innertubeTokenJar={},W&&(a.request.innertubeTokenJar.appTokens=[].concat(_.K8(Object.values(this.tokenMap.app).flat()))),w&&(a.request.innertubeTokenJar.userTokens=[].concat(_.K8(Object.values(this.tokenMap.user).flat())))};
var DIE=function(a,W,w,Z){W=_.l(W);for(var N=W.next(),B={};!N.done;B={token$jscomp$137:void 0},N=W.next()){B.token$jscomp$137=N.value;if(B.token$jscomp$137.type===void 0)throw new _.Uw("InnerTube token has no type",B.token$jscomp$137);if(B.token$jscomp$137.clearTokens)w[B.token$jscomp$137.type]=[];else if(B.token$jscomp$137.value!==void 0){w[B.token$jscomp$137.type]||(w[B.token$jscomp$137.type]=[]);if(Z!==void 0&&Z.length){N=_.l(Z);for(var I=N.next(),X={};!I.done;X={requestToken:void 0},I=N.next())X.requestToken=
I.value,I=w[B.token$jscomp$137.type].findIndex(function(v){return function(U){return U===v.requestToken||(0,_.T5.equals)(U,v.requestToken)}}(X)),I>-1&&w[B.token$jscomp$137.type].splice(I,1)}w[B.token$jscomp$137.type].push(B.token$jscomp$137);
B.token$jscomp$137.maxAgeSeconds&&Number(B.token$jscomp$137.maxAgeSeconds)>0&&a.scheduler.addLowPriorityJob(function(v){return function(){var U=w[v.token$jscomp$137.type].indexOf(v.token$jscomp$137);U>-1&&w[v.token$jscomp$137.type].splice(U,1)}}(B),Number(B.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.Uw("InnerTube token has no value",B.token$jscomp$137);
}};
GBh[Hy]=[C_E];var f5A=new _.yq("LOCAL_INNERTUBE_ROUTER_TOKEN"),dIA=new _.yq("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var K$=function(a){this.serviceMap=a};
K$.prototype.shouldPreferLocalResponse=function(a,W){return(a=mIh(this,a))?a.shouldPreferLocalResponse(W):!1};
K$.prototype.localInnertubeResponse=function(a,W){var w=this,Z;return _.P(function(N){return(Z=mIh(w,a))?N.return(Z.localInnertubeResponse(W)):N.return(Promise.reject(Error("Ji")))})};
K$.prototype.canProvideFallbackResponse=function(a,W){return(a=mIh(this,a))?a.canProvideFallbackResponse(W):!1};
K$.prototype.localFallbackInnertubeResponse=function(a,W){var w=this,Z;return _.P(function(N){return(Z=mIh(w,a))?N.return(Z.localFallbackInnertubeResponse(W)):N.return(Promise.reject(Error("Ji")))})};
var mIh=function(a,W){W=_.tw(W);return W?(a=a.serviceMap[W])?a:null:null};
K$[Hy]=[dIA];var AN=function(){};
AN.prototype.shouldPreferLocalResponse=function(){return!1};
AN.prototype.localInnertubeResponse=function(){return _.P(function(a){return a.return(Promise.reject(Error("Ki")))})};
AN.prototype.canProvideFallbackResponse=function(){return!0};
AN.prototype.localFallbackInnertubeResponse=function(){var a,W,w;return _.P(function(Z){a=hy("CLOSE_POPUP");W={openPopupAction:uRE()};w={actions:[a,W]};return Z.return(w)})};var UZC=function(a,W){this.JSC$15378_upliftPromise=a;this.store=W};
_.t=UZC.prototype;_.t.shouldPreferLocalResponse=function(a){var W=a.videoId,w;if(w=W)w=vS7(this.store.getState().entities,a.videoId);return w&&gSS(this.store.getState().entities,W)?GmF(this.store.getState().entities,a.playlistId):!1};
_.t.localInnertubeResponse=function(a){var W=this,w;return _.P(function(Z){return(w=W.getPlayerResponse(a))?Z.return(Promise.resolve(w)):Z.return(Promise.reject(Error("Li")))})};
_.t.canProvideFallbackResponse=function(a){return!!a.videoId};
_.t.localFallbackInnertubeResponse=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,W.JSC$15378_upliftPromise,2);w=W.getPlayerResponse(a);var N;w?N=Z.return(Promise.resolve(w)):N=Od(W.store.getState().entities,a.videoId)?Z.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.zG(_.P_("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:ulC()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
Z.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.zG(_.P_("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:sp9()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return N})};
_.t.getPlayerResponse=function(a){return Uax(this.store.getState().entities,a.videoId)};var rO=function(a,W){this.localPlayerService=a;this.localWatchNextService=W};
rO.prototype.shouldPreferLocalResponse=function(a){var W=a.playerRequest;a=a.watchNextRequest;return!!(W&&this.localPlayerService.shouldPreferLocalResponse(W)&&a&&this.localWatchNextService.shouldPreferLocalResponse(a))};
rO.prototype.localInnertubeResponse=function(a){var W=this,w,Z,N,B;return _.P(function(I){if(I.nextAddress==1){w=a.playerRequest;Z=a.watchNextRequest;if(!w||!Z)throw new _.Uw("Missing streaming request",a);return _.g(I,W.localPlayerService.localInnertubeResponse(w),2)}if(I.nextAddress!=3)return N=I.yieldResult,_.g(I,W.localWatchNextService.localInnertubeResponse(Z),3);B=I.yieldResult;return I.return({playerResponse:N,watchNextResponse:B})})};
rO.prototype.canProvideFallbackResponse=function(a){var W=a.playerRequest;a=a.watchNextRequest;return!!(W&&this.localPlayerService.canProvideFallbackResponse(W)&&a&&this.localWatchNextService.canProvideFallbackResponse(a))};
rO.prototype.localFallbackInnertubeResponse=function(a){var W=this,w,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return w=a.playerRequest,Z=a.watchNextRequest,w&&Z?_.g(I,W.localPlayerService.localFallbackInnertubeResponse(w),2):I.return(Promise.reject(new _.Uw("Missing streaming request",a)));if(I.nextAddress!=3)return N=I.yieldResult,_.g(I,W.localWatchNextService.localFallbackInnertubeResponse(Z),3);B=I.yieldResult;return I.return({playerResponse:N,watchNextResponse:B})})};var TS=function(a){this.JSC$15388_persistentStorePromiseAccessor=a};
TS.prototype.shouldPreferLocalResponse=function(){return!1};
TS.prototype.localInnertubeResponse=function(){return _.P(function(a){return a.return(Promise.reject(Error("Mi")))})};
TS.prototype.canProvideFallbackResponse=function(){return!0};
TS.prototype.localFallbackInnertubeResponse=function(){var a=this,W,w;return _.P(function(Z){return Z.nextAddress==1?_.g(Z,a.JSC$15388_persistentStorePromiseAccessor(),2):Z.nextAddress!=3?(W=Z.yieldResult)?_.g(Z,W.get("service:guide:fallback"),3):Z.return(Promise.reject(Error("Ni"))):(w=Z.yieldResult)&&_.PN(w)?Z.return(DGU(_.PN(w))):Z.return(Promise.reject(Error("Oi")))})};var hN=function(){};
hN.prototype.shouldPreferLocalResponse=function(){return!1};
hN.prototype.localInnertubeResponse=function(){return _.P(function(a){return a.return(Promise.reject(Error("Pi")))})};
hN.prototype.canProvideFallbackResponse=function(){return!0};
hN.prototype.localFallbackInnertubeResponse=function(){var a,W,w;return _.P(function(Z){a=hy("CLOSE_POPUP");W={openPopupAction:uRE()};w={actions:[a,W]};return Z.return(w)})};var YX=function(){this.urlMap=V1V;this.fallbackCommand=_.g9};
YX.prototype.shouldPreferLocalResponse=function(a){return(a=a.url)?!!zjE(this,a):!1};
YX.prototype.localInnertubeResponse=function(a){var W=this,w;return _.P(function(Z){return(w=a.url)?Z.return(HW6(a,zjE(W,w))):Z.return(Promise.reject(Error("Qi")))})};
YX.prototype.canProvideFallbackResponse=function(){return!0};
YX.prototype.localFallbackInnertubeResponse=function(a){var W=this,w,Z,N,B,I,X,v;return _.P(function(U){w=a.url;if(!w)return U.return(HW6(a,W.fallbackCommand));if(Z=zjE(W,w))return U.return(HW6(a,Z));N=void 0;B=_.tw(w);B==="/watch"&&(I=_.JK(w,"v"))&&(v=(X=_.JK(w,"list"))!=null?X:void 0,N=_.Vw(I,v));N||(N=W.fallbackCommand);return U.return(HW6(a,N))})};
var zjE=function(a,W){if(W)return a.urlMap[_.qM(W)]},HW6=function(a,W){W&&a.parentTrackingParams&&(W.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:a.parentTrackingParams}},W.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:W})};var K4=function(a,W,w){this.JSC$15398_upliftPromise=a;this.store=W;this.JSC$15398_persistentStorePromiseAccessor=w};
K4.prototype.shouldPreferLocalResponse=function(){return!1};
K4.prototype.localInnertubeResponse=function(){return _.P(function(a){return a.return(Promise.reject(Error("Ri")))})};
K4.prototype.canProvideFallbackResponse=function(){return!0};
K4.prototype.localFallbackInnertubeResponse=function(){var a=this;return _.P(function(W){return W.return(yhL(a))})};
var yhL=function(a){var W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,II(a.JSC$15398_upliftPromise,a.store),2);W=Z.yieldResult;w={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[CPS(W)]}}}};return Z.return(ENA(a,w))})},ENA=function(a,W){var w,Z;
return _.P(function(N){if(N.nextAddress==1)return _.g(N,a.JSC$15398_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3)return w=N.yieldResult,_.g(N,X2(w),3);Z=N.yieldResult;return N.return({responseContext:{},contents:W,topbar:Z})})};var O9=function(a,W,w){this.JSC$15405_upliftPromise=a;this.store=W;this.JSC$15405_persistentStorePromiseAccessor=w};
O9.prototype.shouldPreferLocalResponse=function(a){var W=a.videoId;return W&&vS7(this.store.getState().entities,W)&&gSS(this.store.getState().entities,W)?GmF(this.store.getState().entities,a.playlistId):!1};
O9.prototype.localInnertubeResponse=function(a){var W=this,w,Z;return _.P(function(N){if(N.nextAddress==1)return(w=a.videoId)?_.g(N,W.JSC$15405_upliftPromise,2):N.return(Promise.reject(Error("Si")));if(N.nextAddress!=3)return _.g(N,aD0(W,a,w),3);Z=N.yieldResult;return N.return(WU2(W,Z,w))})};
O9.prototype.canProvideFallbackResponse=function(a){return a.videoId?!0:!1};
O9.prototype.localFallbackInnertubeResponse=function(a){var W=this,w,Z,N,B;return _.P(function(I){switch(I.nextAddress){case 1:return(w=a.videoId)?_.g(I,W.JSC$15405_upliftPromise,2):I.return(Promise.reject(Error("Si")));case 2:return _.g(I,aD0(W,a,w),3);case 3:Z=I.yieldResult;if(Od(W.store.getState().entities,w)){I.jumpTo(4);break}return _.g(I,II(W.JSC$15405_upliftPromise,W.store),5);case 5:return N=I.yieldResult,I.return(wvX(Z,N));case 4:return vS7(W.store.getState().entities,w)&&gSS(W.store.getState().entities,
w)?I.return(WU2(W,Z,w)):(B={title:_.zG(_.P_("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:ulC()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},I.return(wvX(Z,B)))}})};
var aD0=function(a,W,w){var Z,N,B,I,X;return _.P(function(v){if(v.nextAddress==1)return Z=W.playlistId,N=_.Vw(w,Z),_.g(v,a.JSC$15405_persistentStorePromiseAccessor(),2);if(v.nextAddress!=3)return B=v.yieldResult,_.g(v,X2(B),3);I=v.yieldResult;X={responseContext:{},currentVideoEndpoint:N,topbar:I};return v.return(X)})},WU2=function(a,W,w){if(a=Od(a.store.getState().entities,w)){var Z;
w=a.videoEntity;var N,B={title:H_(w.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.yw((Z=w.localizedStrings)==null?void 0:Z.viewCount),viewCount:_.yw((N=w.localizedStrings)==null?void 0:N.viewCount)}}};w.publishedTimestampMillis&&(B.dateText=_.yw(N9C(new Date(Number(w.publishedTimestampMillis)))));Z={videoPrimaryInfoRenderer:B};N=a.videoEntity;a=a.channelEntity;a={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:H_(_.P_("SHOW_MORE",void 0,"Show more")),
showLessText:H_(_.P_("SHOW_LESS",void 0,"Show less")),description:N.formattedDescription,owner:{videoOwnerRenderer:{title:H_(a.title),thumbnail:a.avatar}}}};W.contents={twoColumnWatchNextResults:{results:{results:{contents:[Z,a]}}}}}return W},wvX=function(a,W){a.contents={singleColumnWatchNextResults:{results:{results:{contents:[CPS(W)]}}}};
return a};var p4=function(a,W,w){this.JSC$15411_upliftPromise=a;this.store=W;this.JSC$15411_persistentStorePromiseAccessor=w};
p4.prototype.shouldPreferLocalResponse=function(){return!1};
p4.prototype.localInnertubeResponse=function(){return _.P(function(a){return a.return(Promise.reject(Error("Ti")))})};
p4.prototype.canProvideFallbackResponse=function(){return!0};
p4.prototype.localFallbackInnertubeResponse=function(){var a=this,W,w,Z,N;return _.P(function(B){switch(B.nextAddress){case 1:return _.g(B,a.JSC$15411_persistentStorePromiseAccessor(),2);case 2:return W=B.yieldResult,_.g(B,X2(W),3);case 3:return w=B.yieldResult,Z={responseContext:{},topbar:w},_.g(B,a.JSC$15411_upliftPromise,4);case 4:return _.g(B,II(a.JSC$15411_upliftPromise,a.store),5);case 5:return N=B.yieldResult,Z.watchStatus={backgroundPromoRenderer:N},B.return(Z)}})};var Z70=new _.yq("ENDPOINT_MAP");var NEf=function(){var a=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return a.sequenceMap}}},MER=function(a,W,w){var Z,N=(Z=W.config)==null?void 0:Z.sequenceStrategy;
if(!N)return w();a.sequenceMap.has(N.sequenceKey)||a.sequenceMap.set(N.sequenceKey,[]);a=a.sequenceMap.get(N.sequenceKey);switch(N.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return t9X(a,W,w);case "REQUEST_SEQUENCE_TYPE_REPLACE":return $HK(a,W,w);default:throw new _.Uw("Request could not be sequenced",W);}},t9X=function(a,W,w){var Z,N,B;
return _.P(function(I){a.length>0?(N=a[a.length-1],Z=N.responsePromise.then(function(){return w()})):Z=w();
B={request:W,responsePromise:Z};a.push(B);BE0(a,B);return I.return(B.responsePromise)})},$HK=function(a,W,w){w=w();
if(a.length>0)for(var Z=_.l(a),N=Z.next();!N.done;N=Z.next())N.value.responsePromise=w;var B={request:W,responsePromise:w};a.push(B);BE0(a,B);return Promise.resolve().then(function(){return a.indexOf(B)>0?B.responsePromise.then(function(I){return Object.assign({},I,{sequenceMetaData:{skipProcessing:!0}})}):B.responsePromise})},BE0=function(a,W){W.responsePromise.then(function(){var w=a.indexOf(W);
w>-1&&a.splice(w,1)})};var lD9=new _.yq("REQUEST_SEQUENCING");var p$=function(){};
_.c(p$,p0);p$.prototype.getApiPaths=function(){return[]};
p$.prototype.getExtension=function(a){return _.A(a,jYE)};
p$.prototype.JSC$11817_buildRequest=function(a,W){a.recaptchaToken=W.recaptchaToken};
p$.prototype.getApiUrl=function(){return"/das_captcha"};var r6=function(){};
_.c(r6,p0);r6.prototype.getApiPaths=function(){return Wzh};
r6.prototype.getExtension=function(a){return _.A(a,t5y)};
r6.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.createBackstagePostParams&&(a.createBackstagePostParams=W.createBackstagePostParams);w.comment_text&&(a.commentText=w.comment_text);if(w.attached_video_id)a.videoAttachment={videoId:w.attached_video_id};else if(w.image_poll_options)a.pollAttachmentData={options:w.image_poll_options};else if(w.poll_options)a.pollAttachment={choices:w.poll_options};else if(w.quiz_options)a.quizAttachmentData={options:w.quiz_options};else if(w.image_blob_id)a.imageAttachment=
{encryptedBlobId:w.image_blob_id},w.source_video_id&&(a.imageAttachment.sourceExternalVideoId=w.source_video_id),w.image_preview_coordinates&&(a.imageAttachment.previewCoordinates=JSON.parse(w.image_preview_coordinates));else if(w.images_data)a.imagesAttachment={imagesData:w.images_data};else if(w.clip_external_video_id!==void 0||w.clip_offset_ms!==void 0||w.clip_duration_ms!==void 0){var Z,N,B,I,X;a.clipAttachment={externalVideoId:(B=w.clip_external_video_id)!=null?B:"",offsetMs:(I=(Z=w.clip_offset_ms)==
null?void 0:Z.toString())!=null?I:"",durationMs:(X=(N=w.clip_duration_ms)==null?void 0:N.toString())!=null?X:""}}else w.shared_post_id&&(a.sharedPostAttachment={postId:w.shared_post_id});w.tagged_video_id&&(a.postCreationData={taggedVideoId:w.tagged_video_id});w.access_restrictions&&(typeof w.access_restrictions==="number"&&(W=w.access_restrictions,a.accessRestrictions={restriction:W!==1&&W===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof w.access_restrictions==="string"&&
(a.accessRestrictionsParams=w.access_restrictions));w.scheduled_publish_time_sec&&(a.scheduledPublishTimeSec=w.scheduled_publish_time_sec.toString())};var A0=function(){};
_.c(A0,p0);A0.prototype.getApiPaths=function(){return ls6};
A0.prototype.getExtension=function(a){return _.A(a,IjL)};
A0.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.decorateMessageParams&&(a.params=W.decorateMessageParams);w.text&&(a.text=w.text)};var h0=function(){};
_.c(h0,p0);h0.prototype.getApiPaths=function(){return ev6};
h0.prototype.getExtension=function(a){return _.A(a,$Se)};
h0.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;w.video_id&&(a.videoId=w.video_id)};var iS=function(){};
_.c(iS,p0);iS.prototype.getApiPaths=function(){return MD_};
iS.prototype.getExtension=function(a){return _.A(a,_.l0)};
iS.prototype.JSC$11817_buildRequest=function(a,W,w){w.suggestions_query&&(a.input=w.suggestions_query)};var cO=function(){};
_.c(cO,p0);cO.prototype.getApiPaths=function(){return g4_};
cO.prototype.getExtension=function(a){return _.A(a,Bm_)};
cO.prototype.JSC$11817_buildRequest=function(a,W,w){w.comment_text!==void 0&&(a.commentText=w.comment_text);w.scheduled_publish_time_sec&&(a.scheduledPublishTimeSec=w.scheduled_publish_time_sec.toString());a.updateBackstagePostParams=W.updateBackstagePostParams};var et=function(){};
_.c(et,p0);et.prototype.getApiPaths=function(){return Zd};
et.prototype.getExtension=function(a){return _.A(a,_.i5)};
et.prototype.JSC$11817_buildRequest=function(a,W,w){w.formData&&(a.formData=w.formData);W.token?a.continuation=W.token:W.continuationTokenKey&&(w=_.Cx().getState(),W=_.tG(w.entities,"continuationTokenEntity",W.continuationTokenKey))&&(a.continuation=String(W.continuationToken))};
var IDX=function(){};
_.c(IDX,p0);_.t=IDX.prototype;_.t.getApiPaths=function(){return Zd};
_.t.getExtension=function(a){return _.A(a,_.I1)};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$11824_getStoreKey=function(a){if((a=this.getExtension(a))&&a.browseId){var W={browseId:a.browseId};a.browseEndpointContextSupportedConfigs&&(W.browseEndpointContextSupportedConfigs=JSON.stringify(a.browseEndpointContextSupportedConfigs));a.params&&(W.params=a.params);a.query&&(W.query=a.query);return _.s$("browse",W)}};
_.t.JSC$11817_buildRequest=function(a,W,w){W.browseId&&(a.browseId=W.browseId);W.params&&(a.params=W.params);W.query&&(a.query=W.query);w.formData?a.formData=w.formData:W.formData&&(a.formData=W.formData);W.browseId==="FEsubscriptions"&&_.gS().getFlag(155)&&(a.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");W.browseId==="SPaccount_playback"&&(w=_.gS(),a.formData||(a.formData={}),a.formData.accountSettingsFormData={flagCaptionsDefaultOff:w.getFlag(65),flagAutoCaptionsDefaultOn:w.getFlag(66),
flagDisableInlinePreview:w.getFlag(186),flagAudioDescriptionDefaultOn:w.getFlag(198)});if(W.browseId==="FEwhat_to_watch"){w=_.gS();var Z=w.getFlag(196);w.getFlag(197)&&(a.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:Z}}})}W.browseId==="FEwhat_to_watch"&&(W=_.gS().getFlag(186),a.inlineSettingStatus=W?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.t.getRequestConfig=function(a,W){W=W===void 0?{}:W;var w={};if(a=this.JSC$11824_getStoreKey(a,W))w.storeStrategy={storeKey:a,disableCache:W.disableCache};_.r("web_log_browse_ticks_ks")||(w.requestTick="br_s",w.responseTick="br_r");return w};var n$=function(){};
_.c(n$,p0);n$.prototype.getApiPaths=function(){return V7J};
n$.prototype.getExtension=function(a){return _.A(a,AdV)};
n$.prototype.JSC$11817_buildRequest=function(a,W,w){a.legacyYoutubeChannelUsername=w.legacyYouTubeChannelUsername||"";a.legacyYoutubeChannelPassword=w.legacyYouTubeChannelPassword||""};var jt=function(){};
_.c(jt,p0);jt.prototype.getApiPaths=function(){return ZgH};
jt.prototype.getExtension=function(a){return _.A(a,k6R)};
jt.prototype.JSC$11817_buildRequest=function(a,W,w){w.recaptcha_response_token&&(a.recaptchaResponseToken=w.recaptcha_response_token);w.channel_id&&(a.channelId=w.channel_id)};var L$=function(){};
_.c(L$,p0);L$.prototype.getApiPaths=function(){return o4J};
L$.prototype.getExtension=function(a){return _.A(a,KlL)};
L$.prototype.JSC$11817_buildRequest=function(a,W,w){W.externalChannelId&&(a.externalChannelId=W.externalChannelId);w.handle&&(a.handleUpdate={handle:w.handle},W.handleEditSource&&(a.handleUpdate.handleEditSource=W.handleEditSource))};var J0=function(){};
_.c(J0,p0);J0.prototype.getApiPaths=function(){return SDJ};
J0.prototype.getExtension=function(a){return _.A(a,RWT)};
J0.prototype.JSC$11817_buildRequest=function(a,W,w){W.request&&(a.channelId=W.request.channelId);var Z;if(w==null?0:(Z=w.uploadDefaults)==null?0:Z.emojiReactionSet)a.uploadDefaultsRequest||(a.uploadDefaultsRequest={}),a.uploadDefaultsRequest.emojiReactionSet=w.uploadDefaults.emojiReactionSet};var F9=function(){};
_.c(F9,p0);F9.prototype.getApiPaths=function(){return K7y};
F9.prototype.getExtension=function(a){return _.A(a,US$)};
F9.prototype.JSC$11817_buildRequest=function(a,W,w){W.externalChannelId&&(a.externalChannelId=W.externalChannelId);W.channelHandleEntityKey&&(a.channelHandleEntityKey=W.channelHandleEntityKey);W.handleEditSource&&(a.handleEditSource=W.handleEditSource);w.handle?a.handle=w.handle:w.name&&(a.name=w.name)};var Mc=function(){};
_.c(Mc,p0);Mc.prototype.getApiPaths=function(){return ybR};
Mc.prototype.getExtension=function(a){return _.A(a,fl_)};
Mc.prototype.JSC$11817_buildRequest=function(a,W){W.actions?a.actions=W.actions:W.action&&(a.actions=[W.action])};var RM=function(){};
_.c(RM,p0);RM.prototype.getApiPaths=function(){return EH$};
RM.prototype.getExtension=function(a){return _.A(a,_.i5)};
RM.prototype.JSC$11817_buildRequest=function(a,W){W.token&&(a.continuation=W.token)};var qc=function(){};
_.c(qc,p0);qc.prototype.getApiPaths=function(){return i0h};
qc.prototype.getExtension=function(a){return _.A(a,_.i5)};
qc.prototype.JSC$11817_buildRequest=function(a,W){a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";W.token&&(a.fetchCommentsParams={continuation:W.token})};var Q4=function(){};
_.c(Q4,p0);Q4.prototype.getApiPaths=function(){return NnL};
Q4.prototype.getExtension=function(a){return _.A(a,sAE)};
Q4.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.createReplyParams&&(a.createReplyParams=W.createReplyParams);W.commentText&&(a.commentText=_.sd(W.commentText));w.comment_text&&(a.commentText=w.comment_text);w.image_blob_id&&(a.imageAttachment={encryptedBlobId:w.image_blob_id});w.botguard_response&&(a.botguardResponse=w.botguard_response)};
_.dU.Object.defineProperties(Q4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xG=function(){};
_.c(xG,p0);xG.prototype.getApiPaths=function(){return tDH};
xG.prototype.getExtension=function(a){return _.A(a,_.bll)};
xG.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.createCommentParams&&(a.createCommentParams=W.createCommentParams);W.commentText&&(a.commentText=_.sd(W.commentText));W.videoPositionMention&&(a.videoPositionMention=W.videoPositionMention);W.sources&&(a.sources=W.sources);w.comment_text&&(a.commentText=w.comment_text);w.attached_video_id?a.videoAttachment={videoId:w.attached_video_id}:w.poll_options?a.pollAttachment={choices:w.poll_options}:w.image_blob_id?a.imageAttachment=
{encryptedBlobId:w.image_blob_id}:w.shared_post_id&&(a.sharedPostAttachment={postId:w.shared_post_id});w.access_restrictions&&typeof w.access_restrictions==="number"&&(W=w.access_restrictions,a.accessRestrictions={restriction:W!==1&&W===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});w.botguard_response&&(a.botguardResponse=w.botguard_response)};
_.dU.Object.defineProperties(xG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bS=function(){};
_.c(bS,p0);bS.prototype.getApiPaths=function(){return kdV};
bS.prototype.getExtension=function(a){return _.A(a,maV)};
bS.prototype.JSC$11817_buildRequest=function(a,W,w){W.commentText&&(a.replyText=_.sd(W.commentText));w.comment_text&&(a.replyText=w.comment_text);a.updateReplyParams=W.updateReplyParams};
_.dU.Object.defineProperties(bS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var s4=function(){};
_.c(s4,p0);s4.prototype.getApiPaths=function(){return UvR};
s4.prototype.getExtension=function(a){return _.A(a,da6)};
s4.prototype.JSC$11817_buildRequest=function(a,W,w){W.commentText&&(a.commentText=_.sd(W.commentText));w.comment_text&&(a.commentText=w.comment_text);a.updateCommentParams=W.updateCommentParams};
_.dU.Object.defineProperties(s4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var uS=function(){};
_.c(uS,p0);uS.prototype.getApiPaths=function(){return OgR};
uS.prototype.getExtension=function(a){return _.A(a,LlR)};
uS.prototype.JSC$11817_buildRequest=function(a,W){W.settings&&(a.settings=W.settings)};var C$=function(){};
_.c(C$,p0);C$.prototype.getApiPaths=function(){return Yq_};
C$.prototype.getExtension=function(a){return _.A(a,OI_)};
C$.prototype.JSC$11817_buildRequest=function(a,W){W.channelCreationToken&&(a.channelCreationToken=W.channelCreationToken);W.source&&(a.source=W.source)};var GF=function(){};
_.c(GF,p0);GF.prototype.getApiPaths=function(){return Z0R};
GF.prototype.getExtension=function(a){return _.A(a,TmT)};
GF.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;if(w.name&&(w.given_name||w.family_name))a=new _.Uw("channel creation cannot set both GAIA and YouTube names",W),_.eJ(a);else{if(W.zeroStepChannelCreationParams){if(!w.comment_text){a=new _.Uw("zero_step_create_comment_params but no zero_step_texts",W);_.eJ(a);return}a.zeroStepChannelCreationParams=W.zeroStepChannelCreationParams;a.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(a.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
w.comment_text,w.botguard_response&&(a.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=w.botguard_response))}a.channelCreationToken=W.channelCreationToken;w.given_name&&(a.givenName=w.given_name);w.family_name&&(a.familyName=w.family_name);W.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(a.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(w.name||w.handle||w.avatar_url||w.encryptedBlobId||w.isNameChanged!==void 0||w.isHandleChanged!==void 0||w.isDefaultProfilePhoto!==
void 0||w.obakeImageSource)a.overrideChannelCreationParams={},w.name&&(a.overrideChannelCreationParams.name=w.name),w.handle&&(a.overrideChannelCreationParams.handle=w.handle),w.avatar_url&&(a.overrideChannelCreationParams.avatarUrl=w.avatar_url),w.encryptedBlobId&&(a.overrideChannelCreationParams.blobEncryptionId=w.encryptedBlobId),w.enableIdentityForAllChannelCreationDialog&&(w.encryptedBlobId?a.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
w.isDefaultProfilePhoto!==void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=w.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),w.isNameChanged!==void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationNameTag=w.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),w.isHandleChanged!==
void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=w.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),w.obakeImageSource&&(a.overrideChannelCreationParams.obakeImageSourceType=w.obakeImageSource))}};var DS=function(){};
_.c(DS,p0);DS.prototype.getApiPaths=function(a){return(a=this.getExtension(a))&&a.status==="DISLIKE"?vZH:a&&a.status==="INDIFFERENT"?yph:b0A};
DS.prototype.getExtension=function(a){return _.A(a,_.mI)};
DS.prototype.JSC$11817_buildRequest=function(a,W){W.target&&(a.target=W.target);if(W=this.getParams(W))a.params=W};
DS.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 f$=function(){};
_.c(f$,p0);f$.prototype.getApiPaths=function(){return lH$};
f$.prototype.getExtension=function(a){return _.A(a,aJR)};
f$.prototype.JSC$11817_buildRequest=function(a,W){W.settingItemId&&(a.settingItemId=W.settingItemId);W.stringValue!=null&&W.stringValue!==void 0?a.newValue={stringValue:W.stringValue}:W.intValue?a.newValue={intValue:W.intValue}:W.boolValue!==null&&W.boolValue!==void 0?a.newValue={boolValue:W.boolValue}:(a=new _.Uw("Unknown value type for SetSettingEndpoint.",W),_.eJ(a))};var d6=function(){};
_.c(d6,p0);d6.prototype.getApiPaths=function(){return PjV};
d6.prototype.getExtension=function(a){return _.A(a,OBH)||void 0};
d6.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.channelIds&&(a.channelIds=W.channelIds);W.siloName&&(a.siloName=W.siloName);W.params&&(a.params=W.params);w.botguardResponse&&(a.botguardResponse=w.botguardResponse);w.feature&&(a.clientFeature=w.feature)};
_.dU.Object.defineProperties(d6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mP=function(){};
_.c(mP,p0);mP.prototype.getApiPaths=function(){return v4A};
mP.prototype.getExtension=function(a){return _.A(a,WT$)||void 0};
mP.prototype.JSC$11817_buildRequest=function(a,W){W.channelIds&&(a.channelIds=W.channelIds);W.siloName&&(a.siloName=W.siloName);W.params&&(a.params=W.params)};
_.dU.Object.defineProperties(mP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var V4=function(a){this.shareClientParamsProvider=a};
_.c(V4,p0);V4.prototype.getApiPaths=function(){return j7_};
V4.prototype.getExtension=function(a){return _.A(a,iU6)||_.A(a,_.cAV)||_.A(a,hXR)};
V4.prototype.JSC$11817_buildRequest=function(a,W){W.serializedShareEntity&&(a.serializedSharedEntity=W.serializedShareEntity);if(W.clientParamIdentifier){var w;if((w=this.shareClientParamsProvider)==null?0:w.clientParams.has(W.clientParamIdentifier)){w=this.shareClientParamsProvider;W=W.clientParamIdentifier;var Z=w.clientParams.get(W);Z&&w.clientParams.delete(W);a.clientParams=Z}}};
V4[Hy]=[J_R];var zF=function(){};
_.c(zF,p0);zF.prototype.getApiPaths=function(){return fhl};
zF.prototype.getExtension=function(a){return _.A(a,MXJ)};
zF.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var HO=function(){};
_.c(HO,p0);HO.prototype.getApiPaths=function(){return gZT};
HO.prototype.getExtension=function(a){return _.A(a,Ls$)};
HO.prototype.JSC$11817_buildRequest=function(a,W){W.dismissal&&(a.items=[W.dismissal])};
_.dU.Object.defineProperties(HO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var y4=function(){};
_.c(y4,p0);y4.prototype.getApiPaths=function(){return Q7R};
y4.prototype.getExtension=function(a){return _.A(a,_.F2)||void 0};
y4.prototype.JSC$11817_buildRequest=function(a,W,w){a.feedbackTokens=[];W.feedbackToken&&a.feedbackTokens.push(W.feedbackToken);if(W=W.cpn||w.cpn)a.feedbackContext={cpn:W};a.isFeedbackTokenUnencrypted=!!w.is_feedback_token_unencrypted;a.shouldMerge=!1;w.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(w.extra_feedback_tokens))};
_.dU.Object.defineProperties(y4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var E4=function(){};
_.c(E4,p0);E4.prototype.getApiPaths=function(){return Q7R};
E4.prototype.getExtension=function(a){return _.A(a,_.l0)};
E4.prototype.JSC$11817_buildRequest=function(a,W,w){w.feedback_tokens&&(a.feedbackTokens=w.feedback_tokens,a.shouldMerge=!0)};
_.dU.Object.defineProperties(E4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aB=function(){};
_.c(aB,p0);aB.prototype.getApiPaths=function(){return Q7R};
aB.prototype.getExtension=function(a){return _.A(a,cBH)};
aB.prototype.JSC$11817_buildRequest=function(a,W){W.undoToken&&(a.feedbackTokens=[W.undoToken]);W.isUndoTokenUnencrypted&&(a.isFeedbackTokenUnencrypted=W.isUndoTokenUnencrypted)};
_.dU.Object.defineProperties(aB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wg=function(){};
_.c(Wg,p0);Wg.prototype.getApiPaths=function(){return ppJ};
Wg.prototype.getExtension=function(a){return _.A(a,eaV)};
Wg.prototype.JSC$11817_buildRequest=function(a,W){W.nextEndpoint&&_.A(W.nextEndpoint,_.ba)?a.nextEndpoint={urlEndpoint:_.A(W.nextEndpoint,_.ba)}:W.nextEndpoint&&_.A(W.nextEndpoint,_.u6)&&(a.nextEndpoint={watchEndpoint:_.A(W.nextEndpoint,_.u6)});W.setRacy&&(a.setRacy=W.setRacy);W.setControvercy&&(a.setControvercy=W.setControvercy)};var wY=function(a){this.JSC$15593_storeWithEntities=a};
_.c(wY,p0);wY.prototype.getApiPaths=function(){return kuA};
wY.prototype.getExtension=function(a){return _.A(a,EO$)};
wY.prototype.JSC$11817_buildRequest=function(a,W){W.flowId&&(a.flowId=W.flowId);W.targetId&&(a.targetId=W.targetId);W.continuation&&(a.continuation=W.continuation);var w=W.flowStateEntityKey;if(W.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&w&&this.JSC$15593_storeWithEntities){var Z;if(W=(Z=this.JSC$15593_storeWithEntities.getState())==null?void 0:Z.entities)if(Z=_.WJ(w).entityType,Z=_.tG(W,Z,w))a.flowState=Z,a.flowStateEntityKey=w}};
_.dU.Object.defineProperties(wY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
wY[Hy]=[vN];var PeD=function(){};
_.c(PeD,p0);_.t=PeD.prototype;_.t.getApiPaths=function(){return qql};
_.t.JSC$11824_getStoreKey=function(){return _.s$("guide")};
_.t.getRequestConfig=function(){var a=this.JSC$11824_getStoreKey(),W;a&&(W={storeStrategy:{storeKey:a}});return W};
_.t.isNavigationCommand=function(){return!0};
_.t.getExtension=function(a){return _.A(a,_.l0)};
_.t.JSC$11817_buildRequest=function(a){a.fetchLiveState=!0};var ZO=function(){};
_.c(ZO,p0);ZO.prototype.getApiPaths=function(){return zKh};
ZO.prototype.getExtension=function(a){return _.A(a,qoR)};
ZO.prototype.JSC$11817_buildRequest=function(){};var Nf=function(){};
_.c(Nf,p0);Nf.prototype.getApiPaths=function(){return HNl};
Nf.prototype.getExtension=function(a){return _.A(a,QAV)};
Nf.prototype.JSC$11817_buildRequest=function(){};var tP=function(){};
_.c(tP,p0);tP.prototype.getApiPaths=function(){return DRl};
tP.prototype.getExtension=function(a){return _.A(a,_.i5)};
tP.prototype.JSC$11817_buildRequest=function(a,W){W.token&&(a.continuation=W.token);var w,Z;a==null||(w=a.context)==null||(Z=w.user)==null||delete Z.onBehalfOfUser};
tP.prototype.getRequestConfig=function(a){var W={},w;if(((w=this.getExtension(a))==null?void 0:w.sessionIndex)!==void 0){var Z;W={authStrategy:{sessionIndex:(Z=this.getExtension(a))==null?void 0:Z.sessionIndex}}}return W};var $5=function(){};
_.c($5,p0);$5.prototype.JSC$11817_getRequest=function(a){var W=this.getExtension(a),w=a="";if(W==null?0:W.popup)a="true";if(W==null?0:W.disableSignout)w="true";W={};return{input:"/getAccountSwitcherEndpoint",requestShell:b6("/getAccountSwitcherEndpoint","GET",(W["X-YouTube-Delegation-Context"]=_.LF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),W["X-YouTube-Account-Switcher-Popup"]=a,W["X-YouTube-Account-Switcher-Disable-Signout"]=w,W)),innerTubeRequest:{}}};
$5.prototype.getApiPaths=function(){return[]};
$5.prototype.getExtension=function(a){return _.A(a,_.Rd8)};
$5.prototype.JSC$11817_buildRequest=function(){};var Bg=function(){};
_.c(Bg,p0);Bg.prototype.JSC$11817_getRequest=function(a){var W="/cross_account_channel_transfer";(a=this.getExtension(a))&&(W=iMe(W,{target_session:a.targetSessionIndex,source_rapt:a.sourceRapt,rapt:a.targetRapt}));return{input:W,requestShell:b6(W,"GET"),innerTubeRequest:{}}};
Bg.prototype.getApiPaths=function(){return[]};
Bg.prototype.getExtension=function(a){return _.A(a,qy_)};
Bg.prototype.JSC$11817_buildRequest=function(){};var l7=function(){};
_.c(l7,p0);l7.prototype.getApiPaths=function(){return ULR};
l7.prototype.isNavigationCommand=function(){return!0};
l7.prototype.getExtension=function(a){return _.A(a,_.l0)};
l7.prototype.JSC$11817_buildRequest=function(a){var W=_.gS().get("gsml","");W&&(a.safetyModeLockerObfuscatedGaiaId=W);a.userInterfaceTheme=_.eM(!0);_.nC()?a.deviceTheme="DEVICE_THEME_SELECTED":_.eN7()?a.deviceTheme="DEVICE_THEME_SUPPORTED":a.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var IB=function(){};
_.c(IB,p0);IB.prototype.getApiPaths=function(){return DRl};
IB.prototype.getExtension=function(a){return _.A(a,QYH)};
IB.prototype.JSC$11817_buildRequest=function(a,W){if(W&&W.requestType&&(a.requestType=W.requestType,W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var w=W.nextUrl;w&&(_.e3E(w)||dw(w))&&(a.nextNavendpoint={urlEndpoint:{url:w}})}W&&W.channelSwitcherQuery&&(a.channelSwitcherQuery=W.channelSwitcherQuery);W&&W.triggerChannelCreation&&(a.triggerChannelCreation=W.triggerChannelCreation);var Z;if(W==null?0:(Z=W.contentOwnerConfig)==
null?0:Z.externalContentOwnerId)a.contentOwnerConfig=W.contentOwnerConfig;a.callCircumstance=W&&W.requestType&&W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var N,B;W=a==null?void 0:(N=a.context)==null?void 0:(B=N.user)==null?void 0:B.onBehalfOfUser;if(W!==void 0){a.obfuscatedSelectedGaiaId=W;var I,X;a==null||(I=a.context)==null||(X=I.user)==null||delete X.onBehalfOfUser}var v,U;if(N=a==null?void 0:(v=a.context)==null?void 0:(U=v.user)==null?
void 0:U.serializedDelegationContext)a.selectedSerializedDelegationContext=N};var O2=function(){};
_.c(O2,p0);O2.prototype.getApiPaths=function(){return nZ$};
O2.prototype.getExtension=function(a){return _.A(a,JDV)};
O2.prototype.JSC$11817_buildRequest=function(a,W){W.profileOwnerExternalChannelId&&(a.profileOwnerExternalChannelId=W.profileOwnerExternalChannelId);W.profileCardContext&&(a.profileCardContext=W.profileCardContext)};var Sl=function(){};
_.c(Sl,p0);Sl.prototype.getApiPaths=function(){return dR_};
Sl.prototype.getExtension=function(a){return _.A(a,eXl)};
Sl.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var Y5=function(){};
_.c(Y5,p0);Y5.prototype.getApiPaths=function(){return wwJ};
Y5.prototype.getExtension=function(a){return _.A(a,_.CwV)};
Y5.prototype.JSC$11817_buildRequest=function(a,W){if(W=W.createBroadcastRequest)a.useMasks=W.useMasks,a.broadcastType=W.broadcastType,a.broadcastSource=W.broadcastSource,a.broadcastMetadata=W.broadcastMetadata,a.broadcastMetadataMask=W.broadcastMetadataMask,a.videoMetadata=W.videoMetadata,a.videoMetadataMask=W.videoMetadataMask,a.liveChatSettingsUpdate=W.liveChatSettingsUpdate,a.liveChatSettingsUpdateMask=W.liveChatSettingsUpdateMask,a.cloneVideoId=W.cloneVideoId,a.cloneWithOverrides=W.cloneWithOverrides,
a.targetEntity=W.targetEntity,a.scheduledRedirectMetadata=W.scheduledRedirectMetadata};var Tr=function(){};
_.c(Tr,p0);Tr.prototype.getApiPaths=function(){return $Le};
Tr.prototype.getExtension=function(a){return _.A(a,Cc$)};
Tr.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.params&&(a.params=W.params);w.questionText&&(a.questionText=w.questionText);w.optionText&&w.optionText.length>0&&(a.optionText=w.optionText)};var K1=function(){};
_.c(K1,p0);K1.prototype.getApiPaths=function(){return IsT};
K1.prototype.getExtension=function(a){return _.A(a,sZA)};
K1.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var p1=function(){};
_.c(p1,p0);p1.prototype.getApiPaths=function(){return Kze};
p1.prototype.getExtension=function(a){return _.A(a,q1V)};
p1.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var rY=function(){};
_.c(rY,p0);rY.prototype.getApiPaths=function(){return rp6};
rY.prototype.getExtension=function(a){return _.A(a,QZ$)};
rY.prototype.JSC$11817_buildRequest=function(a,W,w){W.params&&(a.params=W.params);W.continuation&&(a.continuation=W.continuation);w.currentPlayerState&&w.currentPlayerState.playerOffsetMs&&(a.currentPlayerState={playerOffsetMs:w.currentPlayerState.playerOffsetMs.toString()})};var AP=function(){};
_.c(AP,p0);AP.prototype.getApiPaths=function(){return Ap_};
AP.prototype.getExtension=function(a){return _.A(a,RT$)};
AP.prototype.JSC$11817_buildRequest=function(a,W,w){W.params&&(a.params=W.params);w.continuation&&(a.continuation=w.continuation);"hidden"in w&&(a.webClientInfo={isDocumentHidden:w.hidden});w.isInvalidationTimeoutRequest&&(a.isInvalidationTimeoutRequest=w.isInvalidationTimeoutRequest);w.invalidationPayload&&(W=MSH(_.UR(mB(w.invalidationPayload))),a.invalidationPayloadLastPublishAtUsec=Fk(W,2));w.reloadActionPanel&&(a.reloadActionPanel=w.reloadActionPanel);w.fullReload&&(a.fullReload=w.fullReload);
w.currentPlayerState&&(a.currentPlayerState=w.currentPlayerState)};var hP=function(){};
_.c(hP,p0);hP.prototype.getApiPaths=function(){return s7T};
hP.prototype.getExtension=function(a){return _.A(a,uHH)};
hP.prototype.JSC$11817_buildRequest=function(a,W){a.params=W.params};var i7=function(){};
_.c(i7,p0);i7.prototype.getApiPaths=function(){return pwe};
i7.prototype.getExtension=function(a){return _.A(a,DDl)};
i7.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var cg=function(){};
_.c(cg,p0);cg.prototype.getApiPaths=function(){return hvT};
cg.prototype.getExtension=function(a){return _.A(a,fiA)};
cg.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var el=function(){};
_.c(el,p0);el.prototype.getApiPaths=function(){return ujA};
el.prototype.getExtension=function(a){return _.A(a,G_T)};
el.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var n1=function(){};
_.c(n1,p0);n1.prototype.getApiPaths=function(){return Gul};
n1.prototype.getExtension=function(a){return _.A(a,DPE)};
n1.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var jl=function(){};
_.c(jl,p0);jl.prototype.getApiPaths=function(){return EZ_};
jl.prototype.getExtension=function(a){return _.A(a,LjV)};
jl.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var L1=function(){};
_.c(L1,p0);L1.prototype.getApiPaths=function(){return $vE};
L1.prototype.getExtension=function(a){return _.A(a,_.f$T)};
L1.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.params&&(a.params=W.params);w.client_message_id&&(a.clientMessageId=w.client_message_id);w.recaptcha_token&&(a.recaptchaToken=w.recaptcha_token);w.rich_message&&w.rich_message.text_segments?(W=w.rich_message.text_segments.map(function(Z){var N={};Z.text&&(N.text=Z.text);Z.emoji_id&&(N.emojiId=Z.emoji_id);return N}),a.richMessage={textSegments:W}):w.message&&(a.message=w.message);
w.currentPlayerState&&(a.currentPlayerState=w.currentPlayerState)};var JP=function(){};
_.c(JP,p0);JP.prototype.getApiPaths=function(){return B0_};
JP.prototype.getExtension=function(a){return _.A(a,dPA)};
JP.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var F5=function(){};
_.c(F5,p0);F5.prototype.getApiPaths=function(){return Xp$};
F5.prototype.getExtension=function(a){return _.A(a,VS$)};
F5.prototype.JSC$11817_buildRequest=function(a,W,w){W.isUserInitiated&&(a.isUserInitiated=W.isUserInitiated);W.initiationSource&&(a.initiationSource=W.initiationSource);w.locationInfo&&(a.context.client.locationInfo=w.locationInfo)};var Mf=function(){};
_.c(Mf,p0);Mf.prototype.getApiPaths=function(){return CNA};
Mf.prototype.getExtension=function(a){return _.A(a,GVy)};
Mf.prototype.JSC$11817_buildRequest=function(a,W,w){W.metadataUpdateRequest&&(W=W.metadataUpdateRequest,a.encryptedVideoId=W.encryptedVideoId,W.liveChat&&(W=W.liveChat,a.liveChat||(a.liveChat={}),W.performAsExternalChannelId&&(a.liveChat.performAsExternalChannelId=W.performAsExternalChannelId),W.source&&(a.liveChat.source=W.source)));var Z;if(w==null?0:(Z=w.liveChat)==null?0:Z.liveChatSettings)a.liveChat||(a.liveChat={}),w=w.liveChat.liveChatSettings,a.liveChat.newLiveChatSettings=w,a.liveChat.newLiveChatSettingsMask||
(a.liveChat.newLiveChatSettingsMask={}),w.emojiReactionSet&&(a.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var RB=function(){};
_.c(RB,p0);RB.prototype.getApiPaths=function(){return T0V};
RB.prototype.getExtension=function(a){return _.A(a,_.wEH)};
RB.prototype.JSC$11817_buildRequest=function(a,W,w){w.continuation?a.continuation=w.continuation:W.videoId&&(a.videoId=W.videoId);w.clientParams&&(a.clientParams=w.clientParams)};var qf=function(){};
_.c(qf,p0);qf.prototype.getApiPaths=function(){return i0h};
qf.prototype.getExtension=function(a){return _.A(a,_.eT)};
qf.prototype.JSC$11817_buildRequest=function(a,W){a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";a.fetchCommentsParams={};W.videoId&&(a.fetchCommentsParams.encryptedVideoId=W.videoId);W.postId&&(a.fetchCommentsParams.postId=W.postId);W.externalChannelId&&(a.fetchCommentsParams.externalChannelId=W.externalChannelId);W.linkedCommentId&&(a.fetchCommentsParams.linkedCommentId=W.linkedCommentId);(0,_.T5.isEmpty)(a.fetchCommentsParams)&&delete a.fetchCommentsParams};var QC=function(){};
_.c(QC,p0);QC.prototype.getApiPaths=function(){return Zd};
QC.prototype.JSC$11817_buildRequest=function(a){a.browseId="FEnotifications_inbox"};
QC.prototype.getExtension=function(a){return _.A(a,_.l0)};var x5=function(){};
_.c(x5,p0);x5.prototype.getApiPaths=function(){return i0h};
x5.prototype.JSC$11817_buildRequest=function(a,W){W.signal==="GET_NOTIFICATIONS_MENU"&&(a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");W.ctoken&&(a.ctoken=W.ctoken)};
var XvD=function(){};
_.c(XvD,x5);XvD.prototype.getExtension=function(a){return _.A(a,_.l0)};
var vI0=function(){};
_.c(vI0,x5);vI0.prototype.getExtension=function(a){return _.A(a,haR)};var b7=function(){};
_.c(b7,p0);b7.prototype.getApiPaths=function(){return FzT};
b7.prototype.getExtension=function(a){return _.A(a,_.l0)};
b7.prototype.JSC$11817_buildRequest=function(){};var s2=function(){};
_.c(s2,p0);s2.prototype.getApiPaths=function(){return DLh};
s2.prototype.getExtension=function(a){return _.A(a,HzL)||void 0};
s2.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params);W.secondaryParams&&(a.secondaryParams=W.secondaryParams)};var u7=function(){};
_.c(u7,p0);u7.prototype.getApiPaths=function(){return fsR};
u7.prototype.getExtension=function(a){return _.A(a,ni6)};
u7.prototype.JSC$11817_buildRequest=function(a,W){W.undo&&(a.undo=W.undo);W.serializedOptOut&&(a.serializedOptOut=W.serializedOptOut);W.serializedRecordInteractionsRequest&&(a.serializedRecordInteractionsRequest=W.serializedRecordInteractionsRequest)};var C1=function(){};
_.c(C1,p0);C1.prototype.getApiPaths=function(){return VDH};
C1.prototype.getExtension=function(a){return _.A(a,jw_)};
C1.prototype.JSC$11817_buildRequest=function(a,W){W.serializedInteractionsRequest&&(a.serializedRecordNotificationInteractionsRequest=W.serializedInteractionsRequest)};var Gr=function(){};
_.c(Gr,p0);Gr.prototype.getApiPaths=function(){return WWE};
Gr.prototype.getExtension=function(a){return _.A(a,GFC)};
Gr.prototype.JSC$11817_buildRequest=function(a,W,w){W=W===void 0?{}:W;w=w===void 0?{}:w;W.videoId?a.videoId=W.videoId:W.playlistId&&(a.playlistId=W.playlistId);var Z,N=(Z=W.offlineWebClientEligibility)!=null?Z:w.offlineWebClientEligibility;N&&(a.offlineWebClientEligibility=N);var B;if(Z=(B=W.preferredFormatType)!=null?B:w.preferredFormatType)a.preferredFormatType=Z;var I;if(B=(I=W.lastOfflineQualitySettingsSavedMs)!=null?I:w.lastOfflineQualitySettingsSavedMs)a.lastOfflineQualitySettingsSavedMs=B;
W.params&&(a.params=W.params)};var DO=function(){};
_.c(DO,p0);DO.prototype.getApiPaths=function(){return fz};
DO.prototype.getExtension=function(a){return _.A(a,_.i5)};
DO.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.token&&(a.continuation=W.token);w.formData&&(a.formData=w.formData)};var f1=function(){};
_.c(f1,p0);f1.prototype.getApiPaths=function(){return fz};
f1.prototype.getExtension=function(a){return _.A(a,Qr$)};
f1.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;a.continuation=w.continuation};var dY=function(){};
_.c(dY,p0);dY.prototype.getApiPaths=function(){return fz};
dY.prototype.getExtension=function(a){return _.A(a,_.JN)};
dY.prototype.JSC$11817_buildRequest=function(a,W){var w,Z=W.panelIdentifier||((w=W.identifier)==null?void 0:w.tag);Z&&(a.panelId=Z);var N;if((N=W.globalConfiguration)==null?0:N.params){var B;a.params=(B=W.globalConfiguration)==null?void 0:B.params}};
_.dU.Object.defineProperties(dY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mu=function(){};
_.c(mu,p0);mu.prototype.getApiPaths=function(){return fz};
mu.prototype.getExtension=function(a){return _.A(a,YFV)};
mu.prototype.JSC$11817_buildRequest=function(a,W){W.panelLoadingStrategy&&VP9(a,W.panelLoadingStrategy)};var VC=function(){};
_.c(VC,p0);VC.prototype.getApiPaths=function(){return fz};
VC.prototype.getExtension=function(a){return _.A(a,uS6)};
VC.prototype.JSC$11817_buildRequest=function(a,W){W.loadingStrategy&&VP9(a,W.loadingStrategy)};var zr=function(){};
_.c(zr,p0);zr.prototype.getApiPaths=function(){return fz};
zr.prototype.getExtension=function(a){return _.A(a,_.kD)};
zr.prototype.JSC$11817_buildRequest=function(a,W){W.panelLoadingStrategy&&VP9(a,W.panelLoadingStrategy)};var Hg=function(){};
_.c(Hg,p0);Hg.prototype.getApiPaths=function(){return fz};
Hg.prototype.getExtension=function(a){return _.A(a,CTR)};
Hg.prototype.JSC$11817_buildRequest=function(a,W){var w,Z=(w=W.contentSourcePanelIdentifier)==null?void 0:w.tag;Z&&(a.panelId=Z);var N;if((N=W.globalConfiguration)==null?0:N.params){var B;a.params=(B=W.globalConfiguration)==null?void 0:B.params}};var yC=function(){};
_.c(yC,p0);yC.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
yC.prototype.getExtension=function(a){return _.A(a,Gph)};
yC.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var E2=function(){};
_.c(E2,p0);E2.prototype.getApiPaths=function(){return YDl};
E2.prototype.getExtension=function(a){return _.A(a,dDh)};
E2.prototype.JSC$11817_buildRequest=function(a,W){W.externalChannelId&&(a.externalChannelId=W.externalChannelId);W.superChatAction&&(a.superChatAction=W.superChatAction);W.superStickersAction&&(a.superStickersAction=W.superStickersAction)};var aR=function(){};
_.c(aR,p0);aR.prototype.getApiPaths=function(){return O0L};
aR.prototype.getExtension=function(a){return _.A(a,Ru6)||_.A(a,fSD)};
aR.prototype.JSC$11817_buildRequest=function(a,W){W.videoIds?a.videoIds=W.videoIds:W.videoId&&(a.videoIds=[W.videoId]);W.playlistId&&(a.playlistId=W.playlistId);W.params&&(a.params=W.params);a.excludeWatchLater=!1};var Wj=function(){};
_.c(Wj,p0);Wj.prototype.getApiPaths=function(){return BnR};
Wj.prototype.getExtension=function(a){return _.A(a,_.Ri)};
Wj.prototype.JSC$11817_buildRequest=function(a,W,w){w.create_playlist_title?a.title=w.create_playlist_title:W.title&&(a.title=W.title);if(w.create_playlist_privacy_status&&typeof w.create_playlist_privacy_status==="number"){a:{var Z=w.create_playlist_privacy_status;if(Z!==0){if(Z===1){Z="PUBLIC";break a}if(Z===2){Z="UNLISTED";break a}}Z="PRIVATE"}a.privacyStatus=Z}else W.privacyStatus&&(a.privacyStatus=W.privacyStatus);w.create_playlist_description&&(a.description=w.create_playlist_description);W.videoIds&&
(a.videoIds=W.videoIds);W.params&&(a.params=W.params);W.sourcePlaylistId&&(a.sourcePlaylistId=W.sourcePlaylistId)};var wr=function(){};
_.c(wr,p0);wr.prototype.getApiPaths=function(){return PNV};
wr.prototype.getExtension=function(a){return _.A(a,VTe)};
wr.prototype.JSC$11817_buildRequest=function(a,W){a.playlistId=W.playlistId};var Ze=function(){};
_.c(Ze,p0);Ze.prototype.getApiPaths=function(){return cp6};
Ze.prototype.getExtension=function(a){return _.A(a,rAh)};
Ze.prototype.JSC$11817_buildRequest=function(a,W){W.playlistId&&(a.playlistId=W.playlistId);W.params&&(a.params=W.params)};var N8=function(){};
_.c(N8,p0);N8.prototype.getApiPaths=function(){return mLR};
N8.prototype.getExtension=function(a){return _.A(a,_.nz)||void 0};
N8.prototype.JSC$11817_buildRequest=function(a,W){W.actions&&(a.actions=W.actions);W.params&&(a.params=W.params);W.playlistId&&(a.playlistId=W.playlistId)};var tT=function(){};
_.c(tT,p0);_.t=tT.prototype;_.t.getApiPaths=function(){return zvR};
_.t.getExtension=function(a){return _.A(a,_.gi)};
_.t.JSC$11817_buildRequest=function(a,W){W.videoId&&(a.playerRequest={videoId:W.videoId},W.playerParams&&(a.playerRequest.params=W.playerParams),W.racyCheckOk&&(a.playerRequest.racyCheckOk=!!W.racyCheckOk),W.contentCheckOk&&(a.playerRequest.contentCheckOk=!!W.contentCheckOk));W.params&&(a.params=W.params);W.inputType&&(a.inputType=W.inputType);a.disablePlayerResponse=!0};
_.t.getRequestConfig=function(a){var W;(a=this.JSC$11824_getStoreKey(a))&&(W={storeStrategy:{storeKey:a}});_.r("web_log_reels_ticks")&&(W=W||{},W.requestTick="r_wrs",W.responseTick="r_wrr");return W};
_.t.JSC$11824_getStoreKey=function(a){a=this.getExtension(a);if(_.r("shorts_controller_retrieve_seedless_sequence_v2")){if((a==null?void 0:a.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.s$("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.r("web_prefetch_riw_for_next_video")||_.r("web_shorts_prefetch_service_enabled"))&&a!=null&&a.videoId){var W={videoId:a.videoId};a.params&&(W.params=a.params);return _.s$("reel_item_watch",W)}};var $Y=function(){};
_.c($Y,p0);_.t=$Y.prototype;_.t.getApiPaths=function(){return H0L};
_.t.getExtension=function(a){return _.A(a,_.gi)};
_.t.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;a.sequenceParams=W.sequenceParams;var Z;((Z=w)==null?0:Z.contentPlaybackContext)&&_.r("web_shorts_prefetch_service_enabled")&&(a.playbackContext={contentPlaybackContext:w.contentPlaybackContext})};
_.t.JSC$11824_getStoreKey=function(a){if(_.r("shorts_controller_retrieve_seedless_sequence_v2")&&(a=this.getExtension(a),a==null?0:a.sequenceParams))return _.s$("reel_watch_sequence",{sequenceParams:a.sequenceParams})};
_.t.getRequestConfig=function(a){a=this.JSC$11824_getStoreKey(a);var W;a&&(W={storeStrategy:{storeKey:a}});_.r("reel_watch_sequence_request_log_ticks")&&(W=W||{},W.requestTick="r_wsrs",W.responseTick="r_wsrr",W.processorTick="r_wsrp");return W};
var Bj=function(){};
_.c(Bj,p0);Bj.prototype.getApiPaths=function(){return H0L};
Bj.prototype.getExtension=function(a){return _.A(a,_.i5)};
Bj.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.token&&(a.continuation=W.token);var Z;((Z=w)==null?0:Z.contentPlaybackContext)&&_.r("web_shorts_prefetch_service_enabled")&&(a.playbackContext={contentPlaybackContext:w.contentPlaybackContext})};
Bj.prototype.getRequestConfig=function(a){a=this.JSC$11824_getStoreKey(a);var W;a&&(W={storeStrategy:{storeKey:a}});_.r("reel_watch_sequence_request_log_ticks")&&(W=W||{},W.requestTick="r_wsrs",W.responseTick="r_wsrr",W.processorTick="r_wsrp");return W};var lI=function(){};
_.c(lI,p0);lI.prototype.getApiPaths=function(){return oZ$};
lI.prototype.getExtension=function(a){return _.A(a,_.ydh)};
lI.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.flagAction&&(a.action=W.flagAction);W.flagRequestType&&(a.flagRequestType=W.flagRequestType);W.additionalDetailCheckboxChecked&&(a.additionalDetailCheckboxChecked=W.additionalDetailCheckboxChecked);W.legalCheckboxChecked&&(a.legalCheckboxChecked=W.legalCheckboxChecked);W={};w.flag_issue_type!==void 0&&(W.issue=w.flag_issue_type);w.flag_affiliation!==void 0&&(W.affiliation=w.flag_affiliation);w.flag_full_name&&(W.fullName=w.flag_full_name);
Object.keys(W).length&&(a.legalReportDetails=W);if(w.flag_description||w.text)a.userComments=w.flag_description||w.text;W={};w.minutes!==void 0&&w.seconds!==void 0&&(W.minutes=w.minutes,W.seconds=w.seconds);w.vss_id&&(W.vssId=w.vss_id);Object.keys(W).length&&(a.videoReportDetails=W);W={};w.video_ids&&(W.videoIds=w.video_ids);w.impersonated_channel_url&&(W.impersonatedChannelUrl=w.impersonated_channel_url);Object.keys(W).length&&(a.channelAbuseReportDetails=W)};
_.dU.Object.defineProperties(lI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var IR=function(){};
_.c(IR,p0);IR.prototype.getApiPaths=function(){return Tny};
IR.prototype.getExtension=function(a){return _.A(a,i9A)};
IR.prototype.JSC$11817_buildRequest=function(a,W){W.blockedForKidsContent&&(a.blockedForKidsContent=W.blockedForKidsContent)};var Pj=function(){};
_.c(Pj,p0);Pj.prototype.getApiPaths=function(){return aHV};
Pj.prototype.getExtension=function(a){return _.A(a,DcD)};
Pj.prototype.JSC$11817_buildRequest=function(a,W,w){a.params=W.params;w.impersonated_channel_url&&(a.impersonatedChannelUrl=w.impersonated_channel_url)};var Xs=function(){};
_.c(Xs,p0);Xs.prototype.getApiPaths=function(){return xL6};
Xs.prototype.getExtension=function(a){return _.A(a,_.c1e)};
Xs.prototype.JSC$11817_buildRequest=function(a,W){W.items&&(a.items=W.items);W.kidGaiaId&&(a.kidGaiaId=W.kidGaiaId)};var vj=function(){};
_.c(vj,p0);vj.prototype.getApiPaths=function(){return SqH};
vj.prototype.getExtension=function(a){return _.A(a,_.F6$)};
vj.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params);W.targetId&&(a.targetId=W.targetId)};var gr=function(){};
_.c(gr,p0);gr.prototype.getApiPaths=function(){return N0J};
gr.prototype.getExtension=function(a){return _.A(a,ikl)};
gr.prototype.JSC$11817_buildRequest=function(a,W){W.externalVideoId&&(a.externalVideoId=W.externalVideoId);W.query&&(a.query=W.query);W.sourceTimelines&&(a.sourceTimelines=W.sourceTimelines)};var oR=function(){};
_.c(oR,p0);oR.prototype.getApiPaths=function(){return tN_};
oR.prototype.getExtension=function(a){return _.A(a,_.i5)||void 0};
oR.prototype.JSC$11817_buildRequest=function(a,W){W.token&&(a.continuation=W.token)};
_.gId=function(){};
_.c(_.gId,p0);_.t=_.gId.prototype;_.t.getApiPaths=function(){return tN_};
_.t.getExtension=function(a){return _.A(a,_.Pu)||void 0};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$11824_getStoreKey=function(a,W){W=W===void 0?{}:W;if(!W.disableCache&&(a=this.getExtension(a))&&a.query)return W={query:a.query},a.params&&(W.params=a.params),_.s$("search",W)};
_.t.JSC$11817_buildRequest=function(a,W,w){W.query&&(a.query=W.query);W.params&&(a.params=W.params);if(!_.r("web_forward_suggest_stats_killswitch")){var Z=_.A(W,UDR);Z&&(a.suggestStats=Z)}var N;!_.r("kevlar_searchbox_stats_killswitch")&&((N=w.tempData)==null?0:N.gs_l)&&!_.A(W,UDR)&&(a.webSearchboxStatsUrl="/search?oq="+(w.tempData.oq||"")+"&gs_l="+w.tempData.gs_l);var B;if((B=w.tempData)==null?0:B.entityMid)W=a.suggestionSearchParams||{},W.entityMid=w.tempData.entityMid,a.suggestionSearchParams=W};
_.t.getRequestConfig=function(a,W){W=W===void 0?{}:W;a=this.JSC$11824_getStoreKey(a,W);var w;a&&(w={storeStrategy:{storeKey:a}});_.r("web_log_search_ticks_ks")||(w=w||{},w.requestTick="sr_s",w.responseTick="sr_r");return w};var kY=function(){};
_.c(kY,p0);kY.prototype.getApiPaths=function(){return Lzy};
kY.prototype.getExtension=function(a){return _.A(a,B9h)};
kY.prototype.JSC$11817_buildRequest=function(a,W){W.serializedGetSharingProviderDataParams&&(a.serializedGetSharingProviderDataParams=W.serializedGetSharingProviderDataParams)};var UZ=function(){};
_.c(UZ,p0);UZ.prototype.getApiPaths=function(){return JpV};
UZ.prototype.getExtension=function(a){return _.A(a,d5R)};
UZ.prototype.JSC$11817_buildRequest=function(a,W){W.endpoint&&(a.endpoint=W.endpoint);W.action&&(a.action=W.action)};var OZ=function(){};
_.c(OZ,p0);OZ.prototype.getApiPaths=function(){return XwV};
OZ.prototype.getExtension=function(a){return _.A(a,z_6)};
OZ.prototype.JSC$11817_buildRequest=function(a,W){a.videoId=W.videoId;W.scheduledRedirectMetadataSourceVideoId&&(a.scheduledRedirectMetadata={sourceVideoId:W.scheduledRedirectMetadataSourceVideoId})};var oI9=XMLHttpRequest.prototype.fetch,k8i=oI9&&oI9.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!C3?!0:!1;var Su=function(a){this.JSC$15861_storeWithEntities=a};
_.c(Su,p0);_.t=Su.prototype;_.t.getApiPaths=function(){return dLL};
_.t.getExtension=function(a){return _.A(a,_.u6)||_.A(a,_.gi)||_.A(a,Eil)};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$11824_getStoreKey=function(a){if((_.r("kevlar_cache_on_ttl_player")||_.r("mweb_enable_shorts_innertube_player_prefetch")||_.r("mweb_use_new_history_manager")||_.r("web_shorts_prefetch_service_enabled"))&&(a=this.getExtension(a))&&a.videoId){var W={videoId:a.videoId};a.playlistId&&(W.playlistId=a.playlistId);a.playerParams&&(W.params=a.playerParams);return _.s$("player",W)}};
_.t.JSC$11817_getClientScreen=function(a){var W;return((W=a.contentPlaybackContext)==null?void 0:W.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.t.JSC$11817_buildRequest=function(a,W,w){if(_.r("enable_interstitial_entity_check")){var Z=this.JSC$15861_storeWithEntities;if(W.videoId)for(var N=_.l(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),B=N.next();!B.done;B=N.next()){B=B.value;var I;var X=void 0,v=void 0,U=W.videoId,O=B;(I=Z)?(U=_.Nn(U+O,"interstitialInteractionStateEntity"),I=(X=(v=_.tG(I.getState().entities,"interstitialInteractionStateEntity",U))==null?void 0:v.primaryButtonClicked)!=null?X:!1):I=!1;if(I)switch(B){case "CONTENT_CHECK_REQUIRED":W.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":W.racyCheckOk=!0}}}W.videoId&&(a.videoId=W.videoId);W.playlistId&&(a.playlistId=W.playlistId);W.index!==void 0&&(a.playlistIndex=W.index+1);W.playerParams&&(a.params=W.playerParams);"startTimeSeconds"in W&&W.startTimeSeconds&&(_.r("enable_player_request_builder_start_time_floor")?a.startTimeSecs=Math.floor(W.startTimeSeconds):a.startTimeSecs=W.startTimeSeconds);w.contentPlaybackContext&&(a.playbackContext={contentPlaybackContext:w.contentPlaybackContext});w.prefetchPlaybackContext&&
(a.playbackContext=Object.assign({},a.playbackContext,{prefetchPlaybackContext:w.prefetchPlaybackContext}),a.context.request||(a.context.request={}),a.context.request.isPrefetch=!0);a.playbackContext||(a.playbackContext={});Z=SPH();a.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!Z,supportXhr:k8i};w.overrideMutedAtStart&&(a.overrideMutedAtStart=w.overrideMutedAtStart);a.racyCheckOk=!!W.racyCheckOk;a.contentCheckOk=!!W.contentCheckOk;!_.r("captions_prefs_killswitch")&&(w=(w=_.B7("yt-player-caption-language-preferences"))?
w:[],w==null?0:w.length)&&(a.captionParams={viewerSelectedCaptionLangs:w})};
_.t.getRequestConfig=function(a){a=this.JSC$11824_getStoreKey(a);var W;a&&(W={storeStrategy:{storeKey:a}});_.r("web_log_player_watch_next_ticks")&&(W=W||{},W.requestTick="ps_s",W.responseTick="ps_r");return W};
Su[Hy]=[vN];var YY=function(){};
_.c(YY,p0);YY.prototype.getApiPaths=function(){return IHL};
YY.prototype.getExtension=function(a){return _.A(a,_.QXJ)};
YY.prototype.JSC$11817_buildRequest=function(a,W){a.params=W.params;a.correctionText=W.correctionText};var T3=function(){};
_.c(T3,p0);T3.prototype.getApiPaths=function(){return Ek7};
T3.prototype.getExtension=function(a){return _.A(a,_.cdA)};
T3.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params);a.searchQuery=W.searchQuery;a.languageCode=W.languageCode;a.kind=W.kind;a.name=W.name;a.externalVideoId=W.externalVideoId};var Ke=function(){};
_.c(Ke,p0);_.t=Ke.prototype;_.t.getApiPaths=function(){return reJ};
_.t.getExtension=function(a){return _.A(a,_.u6)};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$11824_getStoreKey=function(a){if((a=this.getExtension(a))&&a.videoId){var W={videoId:a.videoId};a.playlistId&&(W.playlistId=a.playlistId);a.index&&(W.index=a.index);a.params&&(W.params=a.params);return _.s$("next",W)}};
_.t.JSC$11817_getClientScreen=function(a){var W;return((W=a.contentPlaybackContext)==null?void 0:W.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.t.JSC$11817_buildRequest=function(a,W,w){W.videoId&&(a.videoId=W.videoId);W.playlistId&&(a.playlistId=W.playlistId);W.params&&(a.params=W.params);W.index!==void 0&&(a.playlistIndex=W.index);a.racyCheckOk=!(!w.racyCheckOk&&!W.racyCheckOk);a.contentCheckOk=!!W.contentCheckOk;w.contentPlaybackContext&&(a.autonavState=w.contentPlaybackContext.autonavState,a.playbackContext={vis:w.contentPlaybackContext.vis,lactMilliseconds:w.contentPlaybackContext.lactMilliseconds});w.prefetchPlaybackContext&&(a.context.request||
(a.context.request={}),a.context.request.isPrefetch=!0);_.r("captions_hats_killswitch")||(W=_.gS().getFlag(65),W=W!=null?!W:!1,w=!!_.B7("yt-player-sticky-caption"),a.captionsRequested=W&&w)};
_.t.getRequestConfig=function(a){a=this.JSC$11824_getStoreKey(a);var W;a&&(W={storeStrategy:{storeKey:a}});_.r("web_log_player_watch_next_ticks")&&(W=W||{},W.requestTick="wn_s",W.responseTick="wn_r");return W};
var pe=function(){};
_.c(pe,p0);pe.prototype.getApiPaths=function(){return reJ};
pe.prototype.getExtension=function(a){return _.A(a,_.i5)};
pe.prototype.JSC$11817_buildRequest=function(a,W){W.token&&(a.continuation=W.token)};var rr=function(a,W){this.playerRequestBuilder=a;this.watchNextRequestBuilder=W};
_.c(rr,p0);rr.prototype.getApiPaths=function(){return Rvl};
rr.prototype.getExtension=function(a){return _.A(a,_.u6)};
rr.prototype.isNavigationCommand=function(){return!0};
rr.prototype.JSC$11817_buildRequest=function(a,W,w){a.playerRequest={};this.playerRequestBuilder.JSC$11817_buildRequest(a.playerRequest,W,w);_.r("web_streaming_watch")&&(a.watchNextRequest={},this.watchNextRequestBuilder.JSC$11817_buildRequest(a.watchNextRequest,W,w))};
rr[Hy]=[Su,Ke];var AT=function(){};
_.c(AT,p0);AT.prototype.getApiPaths=function(){return Ae6};
AT.prototype.getExtension=function(a){return _.A(a,ycR)};
AT.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.params=W.params)};var hT=function(a){this.JSC$15888_storeWithEntities=a};
_.c(hT,p0);hT.prototype.getApiPaths=function(){return asl};
hT.prototype.getExtension=function(a){return _.A(a,ahR)||_.A(a,w7T)};
hT.prototype.JSC$11817_buildRequest=function(a,W,w){w.client_data&&(a.clientData=w.client_data);if(W.commerceActionConfig){var Z=W.commerceActionConfig;W=Z.actionId;Z=Z.commerceActionParams;W&&(a.actionId=W);Z&&(a.commerceActionParams=Z)}else{var N=W.actionId,B=W.commerceActionParams;w=W.entityKeys;N&&(a.actionId=N);B&&(a.commerceActionParams=B);var I;W=(Z=this.JSC$15888_storeWithEntities)==null?void 0:(I=Z.getState())==null?void 0:I.entities;if(w&&W){Z=[];I=_.l(w);for(w=I.next();!w.done;w=I.next())if(N=
w.value,w=_.WJ(N).entityType,N=_.tG(W,w,N))B={},Z.push((B[w]=N,B));a.entityMutationPayloads=Z}}};
hT.prototype.getRequestConfig=function(a){var W,w=(W=_.A(a,ahR))==null?void 0:W.requestSequenceType;if(w&&a.clickTrackingParams&&w!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:a.clickTrackingParams,sequenceType:w}}};
hT[Hy]=[vN];var iI=function(){};
_.c(iI,p0);iI.prototype.getApiPaths=function(){return hN6};
iI.prototype.getExtension=function(a){return _.A(a,_.T4R)};
iI.prototype.JSC$11817_buildRequest=function(a,W){W.feedbackData&&(a.feedbackData=W.feedbackData);W.params&&(a.itemParams=W.params)};
_.dU.Object.defineProperties(iI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cj=function(){};
_.c(cj,p0);cj.prototype.getApiPaths=function(){return ig6};
cj.prototype.getExtension=function(a){return _.A(a,K4L)};
cj.prototype.JSC$11817_buildRequest=function(a,W,w){w.payments_payload&&(a.paymentsPayload=w.payments_payload);w.offer_params&&(a.offerParams=w.offer_params);W.transactionParams&&(a.transactionParams=W.transactionParams)};var eu=function(){};
_.c(eu,p0);eu.prototype.getApiPaths=function(){return ceh};
eu.prototype.getExtension=function(a){return _.A(a,_.p7R)};
eu.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.buybucketParams&&(a.buybucketData={params:W.buybucketParams},W.stickerParams?a.buybucketData.stickerParams=W.stickerParams:(w.rich_chat_message?a.buybucketData.richChatMessage=w.rich_chat_message:w.chat_message_text&&(a.buybucketData.chatMessageText=w.chat_message_text),w.purchase_price_micros&&(a.buybucketData.purchasePriceMicros=w.purchase_price_micros.toString())));W.donationAmountMicros&&(a.tipAmountMicros=W.donationAmountMicros,
W.tipParams&&(a.tipParams=W.tipParams));W.offerParams&&(a.offerParams=W.offerParams);W.productData&&(a.productData=W.productData);W.transactionParams&&(a.transactionParams=W.transactionParams)};var ne=function(){};
_.c(ne,p0);ne.prototype.getApiPaths=function(){return eN6};
ne.prototype.getExtension=function(a){return _.A(a,hKT)};
ne.prototype.JSC$11817_buildRequest=function(a,W){W.updateFopParams&&(a.updateFopParams=W.updateFopParams)};var ju=function(){};
_.c(ju,p0);ju.prototype.getApiPaths=function(){return n46};
ju.prototype.getExtension=function(a){return _.A(a,_.Nm)};
ju.prototype.JSC$11817_buildRequest=function(a,W){W.couponCode&&(a.couponCode=W.couponCode);W.params&&(a.itemParams=W.params)};var Le=function(){};
_.c(Le,p0);Le.prototype.getApiPaths=function(){return j3T};
Le.prototype.getExtension=function(a){return _.A(a,_.W4V)};
Le.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;W.params&&(a.params=W.params);w.ctk&&(a.clientToken=w.ctk)};var JT=function(a){this.JSC$15923_storeWithEntities=a};
_.c(JT,p0);JT.prototype.getApiPaths=function(){return L7L};
JT.prototype.getExtension=function(a){return _.A(a,_.QY)};
JT.prototype.JSC$11817_buildRequest=function(a,W,w){w.purchase_price_micros&&(a.productData={pdgData:{purchasePriceMicros:w.purchase_price_micros.toString()}},w.rich_chat_message&&(a.productData.pdgData.richChatMessage=w.rich_chat_message),w.currency_code&&(a.productData.pdgData.currencyCode=w.currency_code));W.transactionParams&&(a.transactionParams=W.transactionParams);W.clientLocationContext&&(a.clientLocationContext=W.clientLocationContext);w.payments_payload&&(a.paymentsPayload=w.payments_payload);
w.funds_guarantee_callback_client_data&&(a.fundsGuaranteeCallbackClientData=w.funds_guarantee_callback_client_data);var Z,N;w=(Z=this.JSC$15923_storeWithEntities)==null?void 0:(N=Z.getState())==null?void 0:N.entities;if(W.entityKeys&&w){Z=[];W=_.l(W.entityKeys);for(N=W.next();!N.done;N=W.next()){var B=N.value;N=_.WJ(B).entityType;if(B=_.tG(w,N,B)){var I={};Z.push((I[N]=B,I))}}a.entityMutationPayloads=Z}};
JT[Hy]=[vN];var Fs=function(){};
_.c(Fs,p0);Fs.prototype.getApiPaths=function(){return JeE};
Fs.prototype.getExtension=function(a){return _.A(a,rby)};
Fs.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;w.backend_analytics&&(a.serializedBackendAnalyticsEvent=w.backend_analytics);W.offerParams&&(a.offerParams=W.offerParams)};var M8=function(){};
_.c(M8,p0);M8.prototype.getApiPaths=function(){return n46};
M8.prototype.getExtension=function(a){return _.A(a,XWF)};
M8.prototype.JSC$11817_buildRequest=function(a,W){W.params&&(a.itemParams=W.params)};var RR=function(){};
_.c(RR,p0);RR.prototype.getApiPaths=function(){return F7y};
RR.prototype.getExtension=function(a){return _.A(a,_.B4V)};
RR.prototype.JSC$11817_buildRequest=function(a,W,w){w.resume_time_ms&&(a.resumeTimeMs=w.resume_time_ms);W.pauseParams&&(a.pauseParams=W.pauseParams)};var q8=function(){};
_.c(q8,p0);q8.prototype.getApiPaths=function(){return MNy};
q8.prototype.getExtension=function(a){return _.A(a,_.AbJ)};
q8.prototype.JSC$11817_buildRequest=function(a,W,w){w=w===void 0?{}:w;w.c&&(a.redeemCode=w.c);w.rd&&(a.riskData=w.rd);w.ctk&&(a.clientToken=w.ctk)};var Q7=function(){};
_.c(Q7,p0);Q7.prototype.getApiPaths=function(){return RNh};
Q7.prototype.getExtension=function(a){return _.A(a,_.lhT)};
Q7.prototype.JSC$11817_buildRequest=function(a,W){W.resumeParams&&(a.resumeParams=W.resumeParams)};var xY=function(a,W){this.clientName=a;this.defaultExpirationDelayMs=W};
xY.prototype.put=function(a,W){var w=this,Z;return _.P(function(N){Z=Object.assign({},W.data);Z.key=a;Z.clientName=w.clientName;Z.expireTimestampMs===void 0&&(Z.expireTimestampMs=(Math.round((0,_.mG)())+w.defaultExpirationDelayMs).toString());return N.return(w.putInternal(a,Z))})};
xY[Hy]=[ge,nNR];var UHD=function(){xY.apply(this,arguments);this.JSC$15953_responseStore=new Map};
_.c(UHD,xY);_.t=UHD.prototype;_.t.get=function(a){var W=this;return _.P(function(w){return w.return(Zq(W,a))})};
_.t.putInternal=function(a,W){var w=this,Z,N,B;return _.P(function(I){Z=w.defaultExpirationDelayMs;W.expireTimestampMs&&(Z=Number(W.expireTimestampMs)-Math.round((0,_.mG)()),N=_.yv("mweb_override_response_store_expiration_ms"),N>0&&N<Z&&(Z=N));B=setTimeout(function(){w.remove(a)},Z);
w.JSC$15953_responseStore.set(a,{entryData:W,timer:B});_.Xd(I)})};
_.t.remove=function(a){var W=this;return _.P(function(w){O7a(W,a);_.Xd(w)})};
_.t.removeAll=function(){var a=this;return _.P(function(W){a.JSC$15953_responseStore.forEach(function(w){clearTimeout(w.timer)});
a.JSC$15953_responseStore.clear();_.Xd(W)})};
_.t.has=function(a){return!!this.JSC$15953_responseStore.get(a)};
_.t.getKeys=function(){return this.JSC$15953_responseStore.keys()};
var Zq=function(a,W){if(a=a.JSC$15953_responseStore.get(W))return new _.wy(a.entryData)},O7a=function(a,W){var w=a.JSC$15953_responseStore.get(W);
w&&(clearTimeout(w.timer),a.JSC$15953_responseStore.delete(W))};var zce;var EWv=function(a,W,w){xY.call(this,a,W);this.token=w};
_.c(EWv,xY);_.t=EWv.prototype;_.t.get=function(a){var W=this,w,Z;return _.P(function(N){return N.nextAddress==1?_.g(N,ynE(W.token),2):N.nextAddress!=3?(w=N.yieldResult,_.g(N,w.get("ResponseStore",[a,W.clientName]),3)):(Z=N.yieldResult)?N.return(new _.wy(Z)):N.return(void 0)})};
_.t.putInternal=function(a,W){var w=this,Z;return _.P(function(N){if(N.nextAddress==1)return _.g(N,ynE(w.token),2);Z=N.yieldResult;return _.g(N,Z.put("ResponseStore",W),0)})};
_.t.remove=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,ynE(W.token),2);w=Z.yieldResult;return Z.return(w.delete("ResponseStore",[a,W.clientName]))})};
_.t.removeAll=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,ynE(a.token),2);W=w.yieldResult;return _.g(w,njE(W,IDBKeyRange.only(a.clientName)),0)})};
_.t.has=function(){throw Error("Ui");};_.bI=new _.yq("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var SSX=function(a){var W;this.stateTagsData=(W=a.responseContext)==null?void 0:W.stateTags},YS0=function(a){var W;
return((W=a.stateTagsData)==null?void 0:W.stateTagsModified)||[]};var TEd;TEd=function(a){this.JSC$15966_responseStore=a};
_.GS=function(a,W,w){if(!_.r("state_tags_killswitch")){var Z=new SSX(W);if(YS0(Z).length>0){var N=a.JSC$15966_responseStore.getKeys();N=_.l(N);for(var B=N.next();!B.done;B=N.next()){B=B.value;var I=Zq(a.JSC$15966_responseStore,B);if(I){var X=_.PN(I);a:{var v=void 0;I=YS0(Z);X=((v=(new SSX(X)).stateTagsData)==null?void 0:v.relevantStateTags)||[];v=_.l(X);for(X=v.next();!X.done;X=v.next())if(X=X.value,X.stateTag!=null&&I.includes(X.stateTag)&&X.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){I=
!0;break a}I=!1}I&&O7a(a.JSC$15966_responseStore,B)}}}}var U;Z=(U=W.responseContext)==null?void 0:U.maxAgeSeconds;_.r("web_prefetch_riw_for_next_video")&&!Z&&W.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(Z=3600);w&&Z&&Number(Z)>0&&(W=Eb(W,Z),a.JSC$15966_responseStore.put(w,new _.wy(W)))};
TEd.prototype.handleResponse=function(a,W){if(!W)throw Error("Vi");var w,Z;W=(w=W.config)==null?void 0:(Z=w.storeStrategy)==null?void 0:Z.storeKey;_.GS(this,a,W)};
TEd[Hy]=[_.W3];_.shv=new _.yq("STORE_RESPONSE_PROCESSOR_TOKEN");var KUE=function(a){this.JSC$15969_responseStore=a};
KUE.prototype.handleResponse=function(a,W){if(W.input.match(_.GC(H0L))){var w;if(a==null?0:(w=a.entries)==null?0:w.length)for(a=_.l(a.entries),W=a.next();!W.done;W=a.next()){w=W.value.command;var Z=void 0;W=(Z=_.A(w,_.gi))==null?void 0:Z.unserializedPrefetchData;if(!w||!W)break;Z=(new tT).JSC$11824_getStoreKey(w);var N=_.A(W,SoJ),B=void 0,I=void 0,X=void 0,v=_.yv("web_shorts_prefetch_service_ttl_seconds")>0?_.yv("web_shorts_prefetch_service_ttl_seconds"):Number((X=(B=N)==null?void 0:(I=B.responseContext)==
null?void 0:I.maxAgeSeconds)!=null?X:3600);Z&&v>0&&(N=Eb(N,v),this.JSC$15969_responseStore.put(Z,new _.wy(N)));w=(new Su).JSC$11824_getStoreKey(w);W=_.A(W,wTA);B=N=Z=void 0;I=_.yv("web_shorts_prefetch_service_ttl_seconds")>0?_.yv("web_shorts_prefetch_service_ttl_seconds"):Number((B=(Z=W)==null?void 0:(N=Z.responseContext)==null?void 0:N.maxAgeSeconds)!=null?B:3600);w&&I>0&&(W=Eb(W,I),this.JSC$15969_responseStore.put(w,new _.wy(W)))}}};
KUE[Hy]=[_.W3];var sZ=function(){this.scheduler=_.n4()},pvi;
sZ.prototype.pause=function(){throw Error("Wi");};
sZ.prototype.resume=function(){throw Error("Wi");};
sZ.prototype.queue=function(a){var W=this,w=_.Rt(),Z=_.TP(this.scheduler,function(){try{var N;if(_.WX.instance)var B=_.WX.instance;else{var I=new _.Uw("Error: Unexpected uninitialized CommandHandler.");_.eJ(I);B=void 0}(N=B)==null||N.resolveCommand(a.command);w.resolve()}catch(X){w.reject(X)}});
w.promise.thenCatch(function(N){N instanceof _.V0&&W.scheduler.cancelJob(Z)});
return w.promise};
sZ.prototype.queueAll=function(a){var W=new Map;a=_.l(a);for(var w=a.next();!w.done;w=a.next())w=w.value,W.set(w.id,this.queue(w));return W};var AmK=function(a,W){var w=this;this.taskModel=a;this.onTaskCancelledCallback=W;this.resolver=_.Rt();a=a.proto.prefetchConfig;if(!a)throw Error("Xi");if(!a.prefetchAction)throw Error("Yi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(Z){Z instanceof _.V0&&(rmD(w,w.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),w.onTaskCancelledCallback(w.taskModel.id,w.jobId),w.tick("pcc"));
throw Z;});
this.timerName=this.taskModel.id;_.rS(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},heE=function(a){switch(a.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},rmD=function(a,W){_.pD({prefetchInfo:{cancellationReason:W}},a.timerName)};
AmK.prototype.tick=function(a){_.Ak(a,void 0,this.timerName)};var Ce=function(){var a=this;this.scheduler=_.n4();this.maxInflightTasks=_.yv("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.yv("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new yt$;this.onTaskCancelled=function(W,w){w&&a.scheduler.cancelJob(w);i7E(a,W);uI(a,3)}},cm0=function(){Ce.instance||(Ce.instance=new Ce);
return Ce.instance};
Ce.prototype.pause=function(){this.prefetchCoordinatorState=0};
Ce.prototype.resume=function(){uI(this,0)};
Ce.prototype.queue=function(a){a=eeE(this,a);uI(this,1);return a};
Ce.prototype.queueAll=function(a){var W=new Map;a=_.l(a);for(var w=a.next();!w.done;w=a.next())w=w.value,W.set(w.id,eeE(this,w));uI(this,1);return W};
var eeE=function(a,W){var w=a.allPrefetchTasks.get(W.id);if(w)return w.cancellablePromise;try{var Z=new AmK(W,a.onTaskCancelled)}catch(B){return _.od(B)}w=Z;w.tick("pcq");var N={prefetchInfo:{taskId:w.taskModel.id,isPrefetch:!0,fetchAction:w.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:w.taskModel.command.clickTrackingParams}};w.taskModel.csn&&(N.clientScreenNonce=w.taskModel.csn);_.pD(N,w.timerName);a.allPrefetchTasks.set(W.id,Z);a.drainingHeap.insert(-heE(Z),Z);return Z.cancellablePromise},
uI=function(a,W){a.prefetchCoordinatorState===W&&(a.prefetchCoordinatorState=2,nI0(a))},nI0=function(a){for(var W={};a.prefetchCoordinatorState!==0;W={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(a.inflightPrefetchTasks.size>=a.maxInflightTasks){a.prefetchCoordinatorState=3;break}W.prefetchTask$jscomp$1=a.drainingHeap.remove();if(!W.prefetchTask$jscomp$1){a.prefetchCoordinatorState=1;break}W.taskId$jscomp$3=W.prefetchTask$jscomp$1.taskModel.id;if(a.allPrefetchTasks.has(W.taskId$jscomp$3)){var w=-1;a.coordinatorTimeoutMs>0&&(w=_.TP(a.scheduler,function(Z){return function(){G3(a,Z.taskId$jscomp$3,Error("Zi"))}}(W),a.coordinatorTimeoutMs));
a.inflightPrefetchTasks.set(W.taskId$jscomp$3,w);if(!a.JSC$15985_commandHandler){if(!_.WX.instance){G3(a,W.taskId$jscomp$3,Error("$i"));continue}a.JSC$15985_commandHandler=_.WX.instance}a:switch(W.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":w=1;break a;default:w=0}W.prefetchTask$jscomp$1.jobId=a.scheduler.addJob(function(Z){return function(){Z.prefetchTask$jscomp$1.tick("pcr");try{a.JSC$15985_commandHandler.resolveCommand(Z.prefetchTask$jscomp$1.taskModel.command)||
G3(a,Z.taskId$jscomp$3,Error("aj"))}catch(N){G3(a,Z.taskId$jscomp$3,N)}}}(W),w,0)}}},jCX=function(a,W){(W=i7E(a,W))!=null&&(W.resolver.resolve(),W.tick("pce"));
uI(a,3)},G3=function(a,W,w){(W=i7E(a,W,w))!=null&&(W.resolver.reject(w),W.tick("pcc"),rmD(W,"CANCELLATION_REASON_ERROR"),Math.random()<=_.yv("prefetch_coordinator_error_logging_sampling_rate")&&(w=new _.Uw("Prefetch Command failed.",W.taskModel.id,w.message),_.eJ(w)));
uI(a,3)},i7E=function(a,W,w){var Z=a.allPrefetchTasks.get(W);
Z?((w=a.inflightPrefetchTasks.get(W))&&w!==-1&&a.scheduler.cancelJob(w),a.inflightPrefetchTasks.delete(W),a.allPrefetchTasks.delete(W)):_.jJ(new _.Uw("Unexpected missing prefetch task when deleting task.",W,w==null?void 0:w.message));return Z};var LUf=function(a,W,w,Z,N){this.id=a;this.triggerOn=W;this.cancelOn=w;this.command=Z;this.proto=N};
_.dU.Object.defineProperties(LUf.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Jm9=function(){this.JSC$15990_prefetchCoordinator=cm0();pvi||(pvi=new sZ);this.defaultCoordinator=pvi},FUk;
Jm9.getInstance=function(){FUk||(FUk=new Jm9);return FUk};
Jm9.prototype.get=function(a){switch(a){case 0:return this.JSC$15990_prefetchCoordinator;default:return this.defaultCoordinator}};var De=function(){this.coordinatorSupplier=Jm9.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},qSI=function(a){var W=_.nS()||void 0,w=Object.keys(M90)[0];
if(w){var Z=a.taskIdByTriggerId.get(w);if(Z!=null){a.taskIdByTriggerId.delete(w);w=[];Z=_.l(Z);for(var N=Z.next();!N.done;N=Z.next())if(N=a.tasks.get(N.value))W!=="UNDEFINED_CSN"&&(N.csn=W),w.push(N);w=wQE(w);W=[];w=_.l(w);for(Z=w.next();!Z.done;Z=w.next()){N=_.l(Z.value);Z=N.next().value;N=N.next().value;Z=a.coordinatorSupplier.get(Z).queueAll(N);Z=_.l(Z);var B=Z.next();for(N={};!B.done;N={taskId$jscomp$9:void 0},B=Z.next()){var I=_.l(B.value);B=I.next().value;I=I.next().value;N.taskId$jscomp$9=
B;B=I;W.push(N.taskId$jscomp$9);a.queuedPromisesByTask.set(N.taskId$jscomp$9,_.Ad(B,function(X){return function(){ReX(a,X.taskId$jscomp$9)}}(N)))}}}}else _.jJ(new _.Uw("Unexpected malformed TriggerEvent."))};
De.prototype.trigger=function(a,W){var w=this,Z=this.tasks.get(a);if(!Z||this.queuedPromisesByTask.has(a))return!1;QCi(this,a,Z.triggerOn);W!=="UNDEFINED_CSN"&&(Z.csn=W);W=this.coordinatorSupplier.get(Z.taskType).queue(Z);this.queuedPromisesByTask.set(a,_.Ad(W,function(){ReX(w,a)}));
return!0};
De.prototype.cancel=function(a){var W=this.queuedPromisesByTask.get(a);if(W)W.cancel();else return ReX(this,a)};
var ReX=function(a,W){a.queuedPromisesByTask.delete(W);var w=a.tasks.get(W);if(!w)return!1;a.tasks.delete(W);QCi(a,W,w.triggerOn);(w=WEH(w.cancelOn))&&(a=a.taskIdByCancelId.get(w))&&a.delete(W);return!0},QCi=function(a,W,w){(w=Object.keys(w)[0])&&(a=a.taskIdByTriggerId.get(w))&&a.delete(W)};var M90={taskRegistered:{}},fe=function(){De.instance||(De.instance=new De);this.JSC$15999_taskManager=De.instance};
_.c(fe,iQ);
fe.prototype.resolveCommand=function(a){var W=this,w,Z;return _.P(function(N){w=_.A(a,SFE);if((Z=w)==null||!Z.tasks){var B=new _.Uw("RegisterTasksCommand is missing tasks.");_.eJ(B);return N.return()}B=W.JSC$15999_taskManager;for(var I=_.l(w.tasks),X=I.next();!X.done;X=I.next())if(X=X.value,X=X.id&&X.triggerOn&&X.cancelOn&&X.command?new LUf(X.id,X.triggerOn,X.cancelOn,X.command,X):void 0,X){var v=Object.keys(X.triggerOn)[0];if(v){var U=WEH(X.cancelOn);U?(B.tasks.set(X.id,X),B.taskIdByTriggerId.has(v)||B.taskIdByTriggerId.set(v,
new Set),B.taskIdByTriggerId.get(v).add(X.id),B.taskIdByCancelId.has(U)||B.taskIdByCancelId.set(U,new Set),B.taskIdByCancelId.get(U).add(X.id)):_.jJ(new _.Uw("Unexpected malformed cancelOn field."))}else _.jJ(new _.Uw("Unexpected malformed triggerOn field."))}else _.jJ(new _.Uw("Unexpected malformed Task proto."));qSI(W.JSC$15999_taskManager);_.Xd(N)})};var xHD={},b7i=(xHD.rendered={priority:0,callback:function(){var a={};a.numCpu=navigator.hardwareConcurrency;var W={};W.ramGb=_.NH.navigator.deviceMemory;var w={staticContext:{}};W.ramGb&&ZsE(W.ramGb)&&(w.staticContext.memoryTotalKbytes=(W.ramGb*1048576).toString());a.numCpu&&ZsE(a.numCpu)&&(w.staticContext.cpuCores=a.numCpu);if(_.r("web_enable_adaptive_appl_signal")){a={};W=_.c_("rses_dpj");var Z=_.c_("rsef_dpj");W&&W>0&&Z&&Z>0&&(W=Math.ceil(Z-W),W>0&&(a.loadLatency=W));a.loadLatency&&ZsE(a.loadLatency)&&
(w.appL=a.loadLatency.toString())}_.ia("applicationStarted",w)}},xHD);var sCX=new _.yq("WINDOW_ON_ERROR"),uxE=new _.yq("ERROR_WEIGHT_MAPS"),Ce0=new _.yq("INIT_ERROR");var G8X={},DHK=(G8X.initialized={priority:10,callback:function(a){a.injector.resolve(Ce0)()}},G8X);var fDI=function(){},dHk=function(){var a=_.RT("meta_logger_impl");
a||(a=new fDI,_.Dp("meta_logger_impl",a));return a},mHa=function(){dHk().csiSubscriptionKey=KOv("meta_logging_csi_event",function(a){var W=a.timerName;
if(a=a.timelineData){_.rS(W,{startTime:a.startTime},W);a.infos&&_.pD(a.infos,W);for(var w=_.l(Object.keys(a.ticks)),Z=w.next();!Z.done;Z=w.next())Z=Z.value,_.Ak(Z,a.ticks[Z],W)}})};
fDI.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&AGx(this.csiSubscriptionKey)};var V9z={},ze9=(V9z.initialized={priority:10,callback:function(){mHa()}},V9z);var H7k=function(a,W){this.innertubeClientName=a;this.JSC$16015_prefCookie=W};
H7k.prototype.record=function(){if(_.r("web_li_record_binary_eval_tick")){var a=_.c_("rsef_dpj");var W=_.c_("rses_dpj");a=a!==void 0&&W!==void 0?Math.round(a-W):void 0;if(a!==void 0&&a>0){W=_.B7(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var w=this.poolSize;if(!(W.valuesSeen>=1E9)){if(W.valuesSample.length<w)W.valuesSample.push(a);else{var Z=Math.floor(Math.random()*(W.valuesSeen+1));Z<w&&(W.valuesSample[Z]=a)}W.valuesSeen+=1}_.$H(this.storagePrefix+"-"+this.innertubeClientName,
W,2592E3);a=W.valuesSample;W=NWx(a);a=a.length<5?void 0:W<400?1:W<1700?2:3;a!==void 0&&(this.JSC$16015_prefCookie.set(this.cookiePrefix+this.innertubeClientName,a),this.JSC$16015_prefCookie.save())}}else _.li(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16015_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16015_prefCookie.save()};
H7k[Hy]=[ge,Gl];var ymi=function(){H7k.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.c(ymi,H7k);var EII=new _.yq("PAGE_LOAD_TIME_TOKEN");var aEI=new _.yq("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var dr=function(a,W){this.JSC$16036_storeWithEntities=a;this.JSC$16036_commandHandler=W;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
dr.prototype.start=function(){this.JSC$16036_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
dr.prototype.observeDownloadingEntities=function(){var a=_.BlD(this.JSC$16036_storeWithEntities.getState().entities).map(function(Z){return ljx(Z)});
if(a.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var W={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:C2D()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.zG(_.P_("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16036_commandHandler.resolveCommand(W)}this.downloadingEntities=a}else if(this.downloadingEntities.length){var w=$7H(this.JSC$16036_storeWithEntities.getState().entities).map(function(Z){return ljx(Z)});
this.downloadingEntities.filter(function(Z){return w.includes(Z)}).length&&(a={openPopupAction:sOe()},this.JSC$16036_commandHandler.resolveCommand(a));
this.downloadingEntities=[]}};
dr[Hy]=[vN,_.zU];var WJn;_.mw=function(a,W,w,Z,N,B,I,X){this.JSC$16039_playerApiPromise=a;this.JSC$16039_commandHandler=W;this.JSC$16039_screenManager=w;this.offlineWebClientEligibility=Z;this.JSC$16039_prefStorage=N;this.JSC$16039_actionRouter=B;this.entityTypeMap=I;this.JSC$16039_persistentStorePromiseAccessor=X;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
WJn=function(){var a=_.K().resolve(_.mw),W;_.P(function(w){if(w.nextAddress==1)return a.downloadFailureListenerBound?w.return():_.g(w,a.JSC$16039_playerApiPromise,2);W=w.yieldResult;W.addEventListener("onOfflineOperationFailure",function(Z){if(Z.failureReason&&Z.entityKey&&Z.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(Z.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var N=_.WJ(Z.entityKey).entityId;N&&a.JSC$16039_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
N)}else if(_.r("kevlar_woffle")){N=a.JSC$16039_commandHandler;var B=N.resolveCommand;Z=Z.failureReason;var I=_.P_("TRANSFER_FAILED",void 0,"Download failed");Z==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(I=_.P_("STORAGE_FULL",void 0,"Storage full"));B.call(N,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.zG(I),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
a.downloadFailureListenerBound=!0;_.Xd(w)})};
_.mw.prototype.deleteVideo=function(a,W){var w=this,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return _.g(I,w.JSC$16039_playerApiPromise,2);Z=I.yieldResult;B={offlineLoggingData:{offlineDeleteReason:(N=W)!=null?N:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.g(I,Z.queueOfflineAction(a,w.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",B),0)})};
_.mw.prototype.pauseVideoDownload=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,W.JSC$16039_playerApiPromise,2);w=Z.yieldResult;w.pauseVideoDownload(a);_.Xd(Z)})};
_.mw.prototype.resumeVideoDownload=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,W.JSC$16039_playerApiPromise,2);w=Z.yieldResult;return _.g(Z,w.resumeVideoDownload(a),0)})};
_.mw[Hy]=[_.H$,_.zU,_.Pw,aEI,me,d7,bGe,f2];var wlD=new _.yq("DOWNLOAD_STATE_STORE_TOKEN");var Z6k=function(a,W){this.JSC$16058_persistentStorePromiseAccessor=a;this.store=W;this.upliftCompletionResolver=new _.wi},$yn=function(){var a=_.K().resolve(NTK),W;
_.P(function(w){switch(w.nextAddress){case 1:if(a.upliftImplPromise)return w.return(a.upliftImplPromise);_.tq(w,2);a.upliftImplPromise=tVD(a);return _.g(w,a.upliftImplPromise,4);case 4:a.upliftCompletionResolver.resolve();_.qY(w,3);break;case 2:throw W=_.Pb(w),a.upliftCompletionResolver.reject(W),W;case 3:return w.return(a.upliftImplPromise)}})},tVD=function(a){var W,w,Z;
return _.P(function(N){switch(N.nextAddress){case 1:return _.JS("LOGGED_IN")?_.g(N,a.JSC$16058_persistentStorePromiseAccessor(),2):N.return();case 2:W=N.yieldResult;if(!W)return _.Ak("vdeur"),N.return();_.Ak("vdeus");_.tq(N,3);return _.g(N,BTK(W),5);case 5:w=N.yieldResult;a.store.dispatch(fie(w));W.observe(function(B){dD8(a.store,B)});
_.qY(N,4);break;case 3:throw Z=_.Pb(N),_.Ak("vdeur"),Z;case 4:_.Ak("vdeuc"),_.Xd(N)}})},BTK=function(a){var W;
return _.P(function(w){if(w.nextAddress==1)return _.g(w,XQe(a),2);W=w.yieldResult;return w.return(W.reduce(function(Z,N){if(!N.data||!N.key||!N.entityType)return Z;Z[N.entityType]||(Z[N.entityType]={});Z[N.entityType][N.key]=N.data;return Z},{}))})};
Z6k[Hy]=[f2,_.Ab];var NTK;NTK=new _.yq("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.V7=new _.yq("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var z3=function(a,W){this.JSC$16061_persistentStorePromiseAccessor=a;this.transportService=W};
z3.prototype.refresh=function(){var a=this,W,w,Z,N;return _.P(function(B){if(B.nextAddress==1)return _.JS("LOGGED_IN")?_.g(B,a.JSC$16061_persistentStorePromiseAccessor(),2):B.return();if(B.nextAddress!=3)return(W=B.yieldResult)?_.g(B,dG7(W),3):B.return();if((w=B.yieldResult)&&!(Number(w.data.refreshTimestampMs||0)<(0,_.mG)()))return B.return();Z={browseId:"SPaccount_downloads"};N=_.GC(Zd);_.jw(a.transportService,Z,N).then(function(I){var X;if(W&&(I==null?void 0:(X=I.responseContext)==null?void 0:
X.maxAgeSeconds)!==0){var v;X=(I==null?void 0:(v=I.responseContext)==null?void 0:v.maxAgeSeconds)||604800;v=String(Math.floor((0,_.mG)())+X*1E3);W.put("service:downloads_settings:fallback",new _.wy({innertubeResponse:I,refreshTimestampMs:v}))}});
_.Xd(B)})};
z3[Hy]=[_.bI,_.O6];var Hj=function(a,W){this.JSC$16065_playerPromise=a;this.store=W;this.started=!1};
Hj.prototype.start=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return a.started?w.return():_.g(w,a.JSC$16065_playerPromise,2);W=w.yieldResult;W.addEventListener("onOrchestrationBecameLeader",a.updateIsLeader.bind(a,!0));W.addEventListener("onOrchestrationLostLeader",a.updateIsLeader.bind(a,!1));if(W.isOrchestrationLeader)a.updateIsLeader(W.isOrchestrationLeader());else{var Z=new _.Uw("Function isOrchestrationLeader is undefined",{"player.isReady":W.isReady(),"player.playVideo":W.playVideo?
"defined":"undefined"});_.eJ(Z);a.updateIsLeader(!1)}a.started=!0;_.Xd(w)})};
Hj.prototype.updateIsLeader=function(a){this.store.dispatch(_.E_({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:a}}))};
Hj[Hy]=[_.H$,_.Ab];var lE0=function(a,W){this.networkStatusManager=a;this.JSC$16068_prefStoragePromise=W;this.redirectsToPreload=["https://youtube.com"]},IED=function(){var a=_.K().resolve(lE0),W,w,Z,N,B,I;
_.P(function(X){switch(X.nextAddress){case 1:return _.g(X,a.JSC$16068_prefStoragePromise,2);case 2:W=X.yieldResult;if(!(w=W)){X.jumpTo(3);break}return _.g(X,W.get("yt-redirect-prefetch-id"),4);case 4:w=X.yieldResult;case 3:if(w||!a.networkStatusManager.isNetworkAvailable())return X.return();Z={cache:"reload",redirect:"manual"};N=_.l(a.redirectsToPreload);B=N.next();case 5:if(B.done){if(!W){X.jumpTo(0);break}return _.g(X,W.set("yt-redirect-prefetch-id",!0,86400),0)}I=B.value;_.tq(X,8);return _.g(X,
_.NH.fetch(I,Z),10);case 10:_.qY(X,6);break;case 8:_.Pb(X);case 6:B=N.next(),X.jumpTo(5)}})};var y7=function(a){a?(this.container=a,this.containerWasInjected=!0):this.containerWasInjected=!1};
y7.prototype.openDialog=function(a,W,w){var Z=this,N;return _.P(function(B){(N=Z.container)==null||N.openDialog(a,W,w);_.Xd(B)})};
y7.prototype.closeDialog=function(){var a=this,W;return _.P(function(w){(W=a.container)==null||W.closeDialog();_.Xd(w)})};
y7.prototype.isDialogOpen=function(){var a=this,W,w;return _.P(function(Z){return Z.return((w=(W=a.container)==null?void 0:W.isDialogOpen())!=null?w:!1)})};
y7[Hy]=[_.Vv(NHe)];_.PAD=new _.yq("POPUP_CONTROLLER_TOKEN");var XlI=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
XlI.prototype.registerPanel=function(a,W){if(a){this.panelMap.set(a,W);var w=this.pendingPanelResolvers.get(a);w&&(w.resolve(W),this.pendingPanelResolvers.delete(a))}};
XlI.prototype.getPanel=function(a){var W=this,w;return _.P(function(Z){return(w=W.panelMap.get(a))?Z.return(w):Z.return(vRI(W,a))})};
var vRI=function(a,W){var w,Z;return _.P(function(N){if(w=a.pendingPanelResolvers.get(W))return N.return(w.promise);Z=new _.wi;a.pendingPanelResolvers.set(W,Z);return N.return(Z.promise)})},gR0=function(a){XlI.call(this);
var W=this;this.popupController=a;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return W.panelMap.size}}};
_.c(gR0,XlI);_.t=gR0.prototype;_.t.getReloadContinuation=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,W.getPanel(a),2);w=Z.yieldResult;return Z.return(w.getReloadContinuation())})};
_.t.showPanel=function(a,W,w,Z,N,B,I){var X=this,v,U,O,S;return _.P(function(T){if(T.nextAddress==1){I&&X.updatePanelContinuationDatas.set(a,I);if((v=w)==null?0:(U=v.engagementPanelPopupPresentationConfig)==null?0:U.popupType){O=w.engagementPanelPopupPresentationConfig.popupType;N===void 0&&(N=document.body);var p=T.return,h=X.popupController,L=h.openPopup;a:switch(O){case "PANEL_POPUP_TYPE_DIALOG":var F="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":F="DROPDOWN";break a;default:throw Error("cj`"+
O);}return p.call(T,L.call(h,a,W,F,N))}return _.g(T,X.getPanel(a),2)}S=T.yieldResult;(W||B)&&S.updatePanel(W,!1,Z,B);S.showPanel(Z);_.Xd(T)})};
_.t.hidePanel=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,W.getPanel(a),2);w=Z.yieldResult;w.hidePanel();W.popupController.closePopup(a);_.Xd(Z)})};
_.t.isVisible=function(a,W){var w=this,Z;return _.P(function(N){if(N.nextAddress==1)return W&&!w.panelMap.has(a)?N.return(!1):_.g(N,w.getPanel(a),2);Z=N.yieldResult;return N.return(Z.isVisible())})};
_.t.updatePanel=function(a,W,w,Z,N,B){w=w===void 0?!1:w;var I=this,X;return _.P(function(v){if(v.nextAddress==1){if(!W&&!N)return v.return();B&&I.updatePanelContinuationDatas.set(a,B);return _.g(v,I.getPanel(a),2)}X=v.yieldResult;X.updatePanel(W,w,Z,N);_.Xd(v)})};
_.t.registerPanelContent=function(a,W){a&&this.panelContentMap.set(a,W)};
_.t.getPanelContent=function(a){return this.panelContentMap.get(a)};
_.t.getUpdatePanelContinuationData=function(a){return this.updatePanelContinuationDatas.get(a)};
gR0[Hy]=[_.PAD];var EZ=function(a,W){this.innertubeTransportService=a;this.JSC$16084_screenManager=W},oRK=function(a){var W;
return!((W=a.panelLoadingStrategy)==null||!W.requestTemplate)};
EZ.prototype.makeRequest=function(a){var W=this,w,Z;return _.P(function(N){switch(N.nextAddress){case 1:if(!oRK(W)){N.jumpTo(2);break}_.tq(N,3);return _.g(N,_.MX(W.innertubeTransportService,a),5);case 5:return w=N.yieldResult,w?N.return(w.content):(_.eJ(Error("dj")),N.return(void 0));case 3:Z=_.Pb(N),_.eJ(Z);case 2:return N.return(void 0)}})};
EZ.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
EZ.prototype.execute=function(a){var W=this,w,Z,N,B,I,X,v,U,O,S;return _.P(function(T){if(T.nextAddress==1){w=a;Z=w.data;N=w.fallbackVe;B=w.parentVe;I=w.createScreenConfig;X=w.renderFn;v=w.command;W.panelLoadingStrategy=Z;var p,h,L=((p=W.panelLoadingStrategy)==null?0:p.screenVe)?(h=W.panelLoadingStrategy)==null?void 0:h.screenVe:N;L&&_.NJ(W.JSC$16084_screenManager,L,B,I);return(U=W.getContent())?_.g(T,X(U),2):T.jumpTo(2)}return T.nextAddress!=4?oRK(W)?_.g(T,W.makeRequest(v),4):T.return():(S=O=T.yieldResult)?
_.g(T,X(S),0):T.return()})};
EZ[Hy]=[_.O6,_.Pw];var aW=function(){};
aW.prototype.getContainer=function(){return _.V3()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
aW.prototype.openSheet=function(a,W){var w=this,Z,N,B,I,X,v;return _.P(function(U){switch(U.nextAddress){case 1:return Z={stack:[],error:void 0,hasError:!1},_.tq(U,2,3),N=Cr,_.g(U,w.isSheetOpen(),5);case 5:B=U.yieldResult;ARe(Z,qt8(N));if(B&&!_.r("delay_sheet_open_killswitch")){if(W&&w.currentTarget===W)return(I=w.getContainer())==null||I.closeSheet(),U.return();w.pendingData={data:a,target:W};return U.return()}a.viewModel&&(a={viewModel:a.viewModel});(X=w.getContainer())==null||X.openSheet(a,W);
w.currentTarget=W;case 3:_.$8(U);efm(Z);_.In(U,0);break;case 2:v=_.Pb(U),Z.error=v,Z.hasError=!0,U.jumpTo(3)}})};
aW.prototype.closeSheet=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,(W=a.getContainer())==null?void 0:W.closeSheet(),2);if(w.nextAddress!=4)return a.currentTarget=void 0,!a.pendingData||_.r("delay_sheet_open_killswitch")?w.jumpTo(0):_.g(w,a.openSheet(a.pendingData.data,a.pendingData.target),4);a.pendingData=void 0;_.Xd(w)})};
aW.prototype.isSheetOpen=function(){var a=this,W,w;return _.P(function(Z){return Z.return((w=(W=a.getContainer())==null?void 0:W.isSheetOpen())!=null?w:!1)})};var gO=window.documentPictureInPicture;var rXC=_.ma(["dark"]),AXe=_.ma(["system-icons"]),ho8=_.ma(["typography"]),isv=_.ma(["lang"]),cXC=_.ma(["style"]),YgF=_.ma(["dir"]),TWI=_.ma(["rounded-container"]),KEx=_.ma(["style"]),nz8=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],WC=function(a){this.JSC$16096_clientRoot=a;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
WC.prototype.openWindow=function(a){var W=this,w,Z;return _.P(function(N){if(N.nextAddress==1)return window.documentPictureInPicture&&_.L7()&&!W.currentPipWindow?_.g(N,(w=gO?gO:null)==null?void 0:w.requestWindow(a),2):N.return(!1);if(N.nextAddress!=3){Z=N.yieldResult;if(!Z)return N.return(!1);Z.addEventListener("pagehide",function(){khn(W)});
Z.addEventListener("resize",W.handlePipWindowResize);W.pipWindowResizeDelay=new _.zc(function(){W.currentPipWindow&&_.aV(W.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Bh(W.currentPipWindow.innerWidth,W.currentPipWindow.innerHeight)])},Z);
eoD(Z);LEE(Z);return _.g(N,SgI(Z),3)}if(!kje())return N.return(!1);W.currentPipWindow=Z;W.JSC$16096_eventForwarder=jbI(Z,W.JSC$16096_clientRoot);W.pipWindowResizeDelay.start();return N.return(!0)})};
WC.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var khn=function(a){if(a.currentPipWindow){var W,w;(W=gO?gO:null)==null||(w=W.window)==null||w.close();a.currentPipWindow.removeEventListener("resize",a.handlePipWindowResize);var Z;(Z=a.pipWindowResizeDelay)==null||Z.dispose();a.pipWindowResizeDelay=void 0;var N;(N=a.JSC$16096_eventForwarder)==null||N.stop();a.JSC$16096_eventForwarder=void 0;W=_.l(a.onCloseCallbacks);for(w=W.next();!w.done;w=W.next())w=w.value,w();a.onCloseCallbacks=[];a.currentPipWindow=null}};
WC.prototype.getWindow=function(){return this.currentPipWindow};
var Uy0=function(a,W){var w;(w=a.onCloseCallbacks)==null||w.push(W)};
WC.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.L7()};
_.dU.Object.defineProperties(WC.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
WC[Hy]=[rT_];_.O69=new _.yq("PICTURE_IN_PICTURE_CONTROLLER");var JXU=function(a,W){this.lengthY=this.lengthX=0;this.lengthX=W.x-a.x;this.lengthY=W.y-a.y};var SRK=function(){},RjV=function(a,W){var w;
(w=a.headerElement)==null||w.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:W}))};var YRI=function(){};
YRI.prototype.openPopup=function(a,W,w,Z){var N=this,B;return _.P(function(I){if(!N.container)return I.return();B={openPopupAction:{popup:W,popupType:w,uniqueId:a}};return I.return(N.container.handleOpenPopupAction(B,Z))})};
YRI.prototype.closePopup=function(a){this.container&&this.container.closePopup(a)};var TTf=function(){this.openTunnels=new Map},jBm=function(a,W,w){if(qgS(w)){w={handleEvent:function(I){W&&!W.closed&&typeof W.postMessage==="function"&&I&&I.origin&&I.source===W&&I.data&&I.data.action==="gcl_setup"&&W.postMessage({action:"gcl_transfer",
gadSource:2},I.origin)}};
for(var Z=_.l(a.openTunnels),N=Z.next();!N.done;N=Z.next()){var B=_.l(N.value);N=B.next().value;B=B.next().value;if(N.closed)try{window.removeEventListener("message",B),a.openTunnels.delete(N)}catch(I){_.eJ(I)}}W&&a.openTunnels.size<15&&(a.openTunnels.set(W,w),window.addEventListener("message",w))}};var KJ9=function(){this.clientParams=new Map},CWL=function(a){for(var W=_.l(a.clientParams.keys()),w=W.next();!w.done;w=W.next())w=w.value,w.startsWith("yt-mini-app-share")&&a.clientParams.delete(w)};var pli=function(a,W){_.OW.call(this);var w=this;this.shortsController=a;this.storeWithShorts=W;a=_.oX(this.storeWithShorts,_.sFe,function(Z){if(Z){var N,B=(N=w.shortsController.getRoot())==null?void 0:N.getPlayer(),I;(N=(I=w.shortsController.alternativePlayerContainerElement)==null?void 0:I.getPlayerContainer())&&(B==null||B.appendTo(N))}else{var X;I=(X=w.shortsController.alternativePlayerContainerElement)==null?void 0:X.getPlayerContainer().querySelector("#player");N=w.shortsController.activeIndex;
(X=(B=w.shortsController.getRoot())==null?void 0:B.querySelector('ytd-reel-video-renderer[id="'+N+'"] #player-container'))&&(I==null||I.appendTo(X,void 0,!0))}});
this.addOnDisposeCallback(a)};
_.c(pli,_.OW);var wH=function(a,W,w,Z,N){var B=this;this.storeWithShorts=a;this.ephemeralResponseStore=W;this.store=w;this.innertubeTransportService=Z;this.innertubeTransportLoader=N;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Au(_.oa);this.isShortsPipActive=_.Au(_.kB);this.nextReelVe=_.Ob(56921);this.prevReelVe=_.Ob(56922);this.backButtonVe=_.Ob(22156);this.TEST_ONLY={getActiveModules:function(){return B.activeModules}}},M8R,Rt$,rLI;
wH.prototype.initOrDisposeActiveModules=function(a){a?this.activeModules.push(new pli(this,this.storeWithShorts)):(_.mk(this.activeModules),this.activeModules.length=0)};
wH.prototype.getRoot=function(){return this.rootElement};
wH.prototype.setActiveIndex=function(a){this.activeIndex=a};
_.etR=function(a,W){var w,Z,N,B,I,X;return _.P(function(v){switch(v.nextAddress){case 1:return w=new tT,(Z=w.JSC$11824_getStoreKey(W))&&a.ephemeralResponseStore.has(Z)?_.g(v,a.ephemeralResponseStore.get(Z),7):_.g(v,rLI(a,W),4);case 4:N=v.yieldResult;if(!Z){v.jumpTo(3);break}B=Eb(N,3600);return _.g(v,a.ephemeralResponseStore.put(Z,new _.wy(B)),3);case 7:N=(I=v.yieldResult)==null?void 0:_.PN(I);case 3:return N.replacementEndpoint&&(X=_.A(N.replacementEndpoint,_.gi))&&N.sequenceContinuation&&(X.sequenceParams=
N.sequenceContinuation),v.return(N)}})};
M8R=function(a,W){W=(new $Y).JSC$11824_getStoreKey(W);return!!W&&a.ephemeralResponseStore.has(W)};
Rt$=function(a,W,w){var Z,N,B,I,X;_.P(function(v){if(v.nextAddress==1){Z=new $Y;N=Z.JSC$11824_getStoreKey(W);if(!N)return v.return();if(w.reelWatchSequenceResponse)return B=Eb(w.reelWatchSequenceResponse,3600),a.ephemeralResponseStore.put(N,new _.wy(B)),v.jumpTo(0);if(!a.ephemeralResponseStore.has(N))return v.jumpTo(0);X=w;return _.g(v,a.ephemeralResponseStore.get(N),4)}X.reelWatchSequenceResponse=(I=v.yieldResult)==null?void 0:_.PN(I);_.Xd(v)})};
rLI=function(a,W){var w=w===void 0?{}:w;var Z,N,B;return _.P(function(I){switch(I.nextAddress){case 1:if(a.innertubeTransportService){Z=a.innertubeTransportService;I.jumpTo(2);break}if(!a.innertubeTransportLoader){_.Ff(Error("fj"));I.jumpTo(2);break}return _.g(I,a.innertubeTransportLoader(),4);case 4:Z=I.yieldResult;case 2:return _.g(I,(N=Z)==null?void 0:_.MX(N,W,w),5);case 5:return B=I.yieldResult,I.return(B)}})};
_.dU.Object.defineProperties(wH.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
wH[Hy]=[YPH,_.W3,vN,_.Vv(_.O6),_.Vv(AVh)];_.ALE=new _.yq("STORAGE_MANAGER_TOKEN");var CmH=new Set(["touchmove","scroll"]);var hHn=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},i6X;
hHn.prototype.enqueue=function(a,W){W===1?this.currentPersistentToast=a:this.queue.push(a);this.openToast()};
hHn.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())};_.cLi=new _.yq("TOAST_MANAGER_TOKEN");var eHX;_.nRK=_.xQ(function(a){return _.k("basic-content-view-model",{class:_.W$("ytBasicContentViewModelHost",_.qt(a.className))},_.k(_.Y,{cond:function(){return a.data().headline},
then:function(W){return _.k("div",{class:"ytBasicContentViewModelHeadline"},_.k(_.k_,{text:W}))}}),_.k(_.k6,{each:function(){return a.data().paragraphs||[]},
keyBy:"INDEX"},function(W){return _.k("div",{class:"ytBasicContentViewModelParagraph"},_.k(_.Y,{cond:function(){var w=W();return!!(w.header||w.customHeader||w.headline)},
then:function(){return _.k(eHX,{paragraph:W})}}),_.k(_.Y,{cond:function(){return W().asset||W().text},
then:function(){return _.k("div",{class:"ytBasicContentViewModelParagraphContent"},_.k(_.Y,{cond:function(){return W().asset},
then:function(w){return _.k("div",{class:"ytBasicContentViewModelParagraphAsset"},_.k(_.Ax,{data:w},{contentPreviewImageViewModel:_.fd}))}}),_.k(_.Y,{cond:function(){return W().text},
then:function(w){return _.k("div",{class:"ytBasicContentViewModelParagraphText"},_.k(_.k_,{text:w}))}}))}}))}))},"ee");
eHX=_.xQ(function(a){var W=a.paragraph;return _.k(_.Ha,null,_.k(_.Y,{cond:function(){return W().headline},
then:function(w){return _.k(_.k_,{text:w,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.k(_.Ax,{data:function(){return W().header||W().customHeader}},{sectionHeaderViewModel:function(w){return _.k(_.yR,{data:w.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"fe");var LJD=_.xQ(function(a){return _.k("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.k(_.Y,{cond:function(){return a.expanded()},
then:function(){return _.k("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.k("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.k(_.Y,{cond:function(){return a.data().expandedTitleImage},
then:function(W){return _.k("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.k(_.qw,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:W}))}}),_.k("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.k("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.k(_.k_,{text:function(){return a.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.k(_.k_,{text:function(){return a.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.k(_.k_,{text:function(){return a.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.k("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.k(_.Ax,{data:function(){return a.data().infoButton}},{buttonViewModel:_.F7}),_.k(_.Ax,{data:function(){return a.data().collapseButton}},{buttonViewModel:function(W){return _.k(_.F7,{data:W.data,
onClick:function(){var w;(w=a.expandedCallback)==null||w.call(a,!1)}})}})))},
else:function(){return _.k(je9,Object.assign({},a))}}))},"ge"),JLI=_.xQ(function(a){return _.k("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.k(_.Y,{cond:function(){return a.data().collapsedLabelImage},
then:function(W){return _.k("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.k(_.qw,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:W,alt:""}))}}),_.k(_.k_,{text:function(){return a.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"he"),je9=_.xQ(function(a){var W=_.$_(function(){var w;
return void((w=a.expandedCallback)==null?void 0:w.call(a,!0))});
return _.k("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":W},_.k("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.k(_.Y,{cond:function(){return a.data().collapsedImage},
then:function(w){return _.k("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.k(_.qw,{width:16,height:16,data:w,alt:""}))}}),_.k(_.Y,{cond:function(){return a.data().showLeadingCollapsedLabel},
then:function(){return _.k(JLI,Object.assign({},a))}}),_.k("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.k(_.k_,{text:function(){return a.data().collapsedTitle}}))),_.k("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.k(_.Y,{cond:function(){return!a.data().showLeadingCollapsedLabel},
then:function(){return _.k(JLI,Object.assign({},a))}}),_.k(_.Ax,{data:function(){return a.data().infoButton}},{buttonViewModel:_.F7}),_.k(_.Ax,{data:function(){return a.data().expandButton}},{buttonViewModel:function(w){return _.k(_.F7,{data:w.data,
onClick:function(){var Z;(Z=a.expandedCallback)==null||Z.call(a,!0)}})}})))},"ie");var FJI=_.xQ(function(a){var W=_.l(_.l5(function(){return a.data().initiallyExpanded})),w=W.next().value,Z=W.next().value,N,B=(N=_.K().resolve(_.Vv(_.Lt)))==null?void 0:N(),I=function(){var X=a.data().colorData;
if(X)return B?X==null?void 0:X.darkColorPalette:X==null?void 0:X.lightColorPalette};
return _.k("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.It({"background-color":function(){var X=I();return(X==null?0:X.section2Color)?_.pC(X.section2Color):""}})},_.k(_.Ax,{data:function(){return a.data().header}},{expandableMetadataHeaderViewModel:function(X){return _.k(LJD,{data:X.data,
expanded:function(){return!!w()},
expandedCallback:function(v){Z(v)}})}}),_.k(_.Y,{cond:function(){return w()},
then:function(){return _.k("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.k(_.Ax,{data:function(){return a.data().expandedContent}},{horizontalShelfViewModel:function(X){return _.k(_.pO,{data:X.data,
includeMargin:!0,forceNarrowLayout:!0,palette:I})},
videoSummaryContentViewModel:function(X){return _.k(vMJ,{data:X.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(X){return _.k(_.zn,{data:X.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(X){return _.k(_.nRK,{data:X.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.k(_.Ax,{data:function(){return a.data().expandedBottomButtons}},{buttonViewModel:function(X){return _.k("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.k(_.F7,{data:X.data}))}}))}}))},"je");var MVX=_.xQ(function(a){var W=a.text;var w=a.marqueeSpacing;var Z=a.scrollDelay;var N=a.scrollDuration;var B=a.enableMarqueeScroll;a=a.large;var I=_.l(_.$1(!1,void 0,"kfNqfd")),X=I.next().value,v=I.next().value,U=_.l(_.$1(0,void 0,"bYgZbf"));I=U.next().value;var O=U.next().value,S=_.D8();U=_.D8();var T=_.D8(),p=_.K().resolve(_.Fm);_.Ka(function(){if(B()){var F=T.value.getBoundingClientRect().width,x=S.value.getBoundingClientRect().width;if(F>x){var G=(p==="ltr"?-1:1)*(F+(w?w():16));Promise.resolve().then(function(){v(!0);
O(G)})}}});
var h={},L={};return _.k("marquee-scroll",{class:_.W$("ytMarqueeScrollHost",(h.ytMarqueeScrollHostLarge=a,h)),el:S},_.k("div",{id:"marquee-scroll-inner-container",class:_.W$("ytMarqueeScrollInnerContainer",(L.ytMarqueeScrollAnimationEnabled=function(){return X()},L)),
el:U,style:_.It({gap:w?(0,_.Oh)(w):"16px","animation-duration":N?ZsT(N):"16s","animation-delay":Z?ZsT(Z):"3s","--marquee-translate":(0,_.Oh)(I)})},_.k("span",{el:T,dir:"auto"},_.k(_.k_,{text:W,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.k(_.Y,{cond:X,then:function(){return _.k("span",{"aria-hidden":"true",dir:"auto"},_.k(_.k_,{text:W,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"ke");_.RHz=_.xQ(function(a){var W=a.data;var w=a.overlayDensity;a=_.$_(function(){W().onTapCommand&&_.cX(W().onTapCommand);return!1});
var Z=_.QP(),N={};return _.k("reel-sound-metadata-view-model",{class:_.W$("ytReelSoundMetadataViewModelHost",(N.ytReelSoundMetadataViewModelHostLarge=function(){return(w==null?void 0:w())===1},N)),
"on:click":a,tabindex:0,role:"button","on:keydown":Z},_.k("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.k(_.Y,{cond:function(){return W().musicIcon},
then:function(B){return _.k(_.qw,{data:B,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.k("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.k(MVX,{text:function(){return W().soundMetadata},
enableMarqueeScroll:function(){return!!W().enableMarqueeScroll},
large:function(){return(w==null?void 0:w())===1}}))))},"le");var qRf,Qei,Zx,u$f,Ghi,sea,dyi,fEn;qRf=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Qei=_.yv("wil_icon_max_concurrent_fetches",Infinity);
Zx=function(a,W,w){var Z=this;this.iconSet=a;this.appDirection=W;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.NH.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.r("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.r("wil_icon_network_first");this.renderWhenIdle=_.r("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.r("wil_icon_load_immediately");this.isPurging=!1;a=function(){Z.cacheStorageAvailable&&(Z.cacheStorageAsync=_.NH.caches.open("yt-icons").then(function(B){return Z.cacheStorageSync=B}).catch(function(){Z.cacheStorageAvailable=!1}))};
w=(w==null?void 0:w())||{};w=_.l(Object.entries(w));for(W=w.next();!W.done;W=w.next()){var N=_.l(W.value);W=N.next().value;N=N.next().value;N=IT(N);xyE(N);this.iconCache[W]=N.cloneNode(!0)}this.isPurging=b62(this);this.isPurging instanceof Promise?this.isPurging.then(a):a()};
_.BeU=function(a,W){var w=a.resolveIcon(W);return w?a.renderingMode===1?sea(a,w,a.renderingMode):(W=a.iconCache[w.url])?(W=W.cloneNode(!0),u$f(a,W),sea(a,w,a.renderingMode,W)):_.CA0(a,w).then(function(Z){var N=Z?0:1;u$f(a,Z);return sea(a,w,N,Z)}):(_.nH(new _.Uw("Icon not found",{iconShape:W})),function(){})};
u$f=function(a,W){if(W){a.counter+=1;a="_yt"+a.counter;W=[W].concat(_.K8(W.getElementsByTagName("*")));W=_.l(W);for(var w=W.next();!w.done;w=W.next())if(w=w.value,w.tagName==="style"&&w.textContent)w.textContent=Ghi(w.textContent,a,!0);else for(var Z=_.l(w.attributes),N=Z.next();!N.done;N=Z.next()){N=N.value;N.name==="id"&&(N.value+=a);["mask","fill","clip-path"].includes(N.name)&&(N.value=Ghi(N.value,a));if(N.name==="style"){var B=w.style;try{B.cssText=Ghi(B.cssText,a,!0)}catch(O){var I=void 0,X=
void 0,v=void 0,U=void 0;NW({error:((I=O)==null?void 0:(v=(X=I).toString)==null?void 0:v.call(X))||"",el:w.outerHTML,style:!!B,cssText:(U=B)==null?void 0:U.cssText})}}N.name==="xlink:href"&&(N.value=N.value.replace(/#(.*)/,"#$1"+a))}}};
Ghi=function(a,W,w){var Z=/url\(["']?#(.*?)["']?\)/;(w===void 0?0:w)&&(Z=/url\(["']?#(.*?)["']?\)/g);return a.replace(Z,"url(#$1"+W+")")};
sea=function(a,W,w,Z){return function(N,B){var I=Object.assign({},{iconColor:"currentcolor",iconWidth:W.size+"px",iconHeight:W.size+"px",iconDisplay:"block"},B);B=_.PM("DIV");var X=I.iconColor,v=I.iconFilter;I="width: "+I.iconWidth+"; height: "+I.iconHeight+"; display: "+I.iconDisplay+";";v&&(I+=" filter: "+v+";");w===0&&(I+=" fill: "+X+";");w===1&&(v=W.url,I+=" -webkit-mask: url("+v+") no-repeat center / cover; mask: url("+(v+") no-repeat center / cover; background-color: ")+X);W.allowMirroring&&
a.appDirection==="rtl"&&(I+=" transform: scale(-1, 1); transform-origin: center center;");B.setAttribute("style",I);w===0&&Z&&B.appendChild(Z);N.appendChild(B)}};
_.CA0=function(a,W){var w,Z,N;return _.P(function(B){w=function(I){return cP(I)};
Z=W.url;if(!Dyz(Z))throw Error("gj");N=fEn(a,Z);return B.return(N.then(function(I){return I.clone().text()}).then(function(I){var X=w(I);
I=W.size;var v=_.PM("DIV");_.xf(v,X);X=_.Xh(v.firstElementChild!==void 0?v.firstElementChild:_.SIl(v.firstChild,!0));I=xyE(X,I);a.iconCache[Z]=I.cloneNode(!0);delete a.responsePromises[Z];return I}).catch(function(){}))})};
dyi=function(a){var W,w=(W=a.requestAninmationFrameResolver)==null?void 0:W.promise;w||(a.requestAninmationFrameResolver=new _.wi,w=a.requestAninmationFrameResolver.promise,_.NH.requestAnimationFrame(function(){var Z;(Z=a.requestAninmationFrameResolver)==null||Z.resolve();a.requestAninmationFrameResolver=null}));
return w};
fEn=function(a,W){var w,Z;return _.P(function(N){if(N.nextAddress==1)return a.waitForAnimationFrame?_.g(N,dyi(a),2):N.jumpTo(2);w=a.responsePromises[W];w||(Z=function(){var B,I,X;return _.P(function(v){switch(v.nextAddress){case 1:if(!a.cacheStorageAvailable){B=void 0;v.jumpTo(2);break}if(I=a.cacheStorageSync){v.jumpTo(3);break}return _.g(v,a.cacheStorageAsync,4);case 4:I=v.yieldResult;case 3:B=I;case 2:return X=B,a.isNetworkFirstStrategy?v.return(a.fetchAndUpdateCache(W,X).catch(a.getCacheStorageResponse.bind(a,
W,X))):v.return(a.getCacheStorageResponse(W,X).catch(a.fetchAndUpdateCache.bind(a,W,X)))}})},w=a.renderWhenIdle?new Promise(function(B,I){_.TP(_.hF,function(){Z().then(B).catch(I)},10)}):Z(),a.responsePromises[W]=w);
return N.return(w.catch(function(B){delete a.responsePromises[W];NW({error:(B==null?0:B.toString)?B.toString():"",url:W});throw B;}))})};
Zx.prototype.fetchAndUpdateCache=function(a,W){var w=this;return _.P(function(Z){return Z.return(myD(w,a).then(function(N){VVX(w,a,N,W);return N}))})};
var myD=function(a,W){var w;return _.P(function(Z){if(a.numFetches<Qei)return a.numFetches+=1,Z.return(zHz(a,W).finally(function(){--a.numFetches;if(Object.keys(a.queuedResponseResolvers).length){var N=Object.keys(a.queuedResponseResolvers)[0],B=a.queuedResponseResolvers[N];delete a.queuedResponseResolvers[N];B.resolve(myD(a,N))}}));
w=new _.wi;a.queuedResponseResolvers[W]=w;return Z.return(w.promise)})},zHz=function(a,W,w){w=w===void 0?2:w;
var Z;return _.P(function(N){Z={credentials:"same-origin",priority:"low"};return N.return(_.NH.fetch(W,Z).then(function(B){return B.ok?B:Promise.reject(Error("hj`"+B.status+"`"+B.statusText))}).catch(function(B){if(w>0)return zHz(a,W,w-1);
throw B;}))})},VVX=function(a,W,w,Z){_.P(function(N){return Z?N.return(new Promise(function(B){_.TP(_.hF,function(){var I,X;
return _.P(function(v){switch(v.nextAddress){case 1:if(!a.isNetworkFirstStrategy){I=void 0;v.jumpTo(2);break}return _.g(v,Z.match(W).catch(function(){}),3);
case 3:I=v.yieldResult;case 2:if(X=I){v.jumpTo(4);break}return _.g(v,Z.put(W,w.clone()).catch(function(U){NW({error:(U==null?0:U.toString)?U.toString():"",url:W})}),4);
case 4:B(),_.Xd(v)}})},50)})):N.return()})};
Zx.prototype.getCacheStorageResponse=function(a,W){return _.P(function(w){return W?w.return(W.match(a).then(function(Z){return Z&&Z.ok?Z:Promise.reject()})):w.return(Promise.reject())})};
var xyE=function(a,W){W===void 0||a.getAttribute("viewBox")||a.setAttribute("viewBox","0 0 "+W+" "+W);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(N){var w;NW({error:((w=N)==null?0:w.toString)?N.toString():""});try{a.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(B){var Z;NW({error:((Z=B)==null?0:Z.toString)?B.toString():
""})}}return a},Dyz=function(a){for(var W=_.l(qRf),w=W.next();!w.done;w=W.next())if(a.startsWith(w.value)&&a.endsWith(".svg"))return!0;
return!1};
Zx.prototype.resolveIcon=function(a){return this.iconSet.resolveIcon(a)};
var NW=function(a){_.jJ(new _.Uw("Error in IconManager",a))},b62=function(a){if(_.r("wil_icons_cache_purge_killswitch"))return!1;
try{var W=_.NH.localStorage}catch(B){return!1}if(!W||!a.cacheStorageAvailable)return!1;var w=function(B){try{var I;(I=W)==null||I.setItem("yt-icons-last-purged",B.toString())}catch(v){var X;NW({error:((X=v)==null?0:X.toString)?v.toString():""})}},Z=Number(W.getItem("yt-icons-last-purged"));
if(!Z)return Z=new Date,Z=Z.setDate(Z.getDate()-Math.floor(Math.random()*90+1)),w(Z),!1;if(function(B,I){B=new Date(B);I=new Date(I);return I.getMonth()-B.getMonth()+12*(I.getFullYear()-B.getFullYear())}(Z,Date.now())<3)return!1;
try{return _.NH.caches.delete("yt-icons").then(function(B){B&&w(Date.now());return B}).catch(function(){return!1}).finally(function(){a.isPurging=!1})}catch(B){var N;
NW({error:((N=B)==null?0:N.toString)?B.toString():""});return!1}};
Zx[Hy]=[vN6,_.Fm,_.Vv(kB$)];_.t$=function(a,W){this.iconManager=a;this.iconsToFetch=W};
_.t$[Hy]=[_.ad,_.Vv(oNy)];var H6K=function(a,W,w){this.requestKey=a;this.ihK=W;this.nlr=w;this.d4O=function(){return new XMLHttpRequest};
this.jKr=void 0;this.xrA=[]};
H6K.prototype.getLatestChallengeResponse=function(){return this.nlr};
var STT=function(a,W,w){var Z,N,B,I;return _.P(function(X){if(X.nextAddress==1){_.rS("attestation_challenge_fetch");_.Ak("att_fs",void 0,"attestation_challenge_fetch");if(!a.jKr)throw new _.ig(9,"Missing fetcher");return _.g(X,a.jKr(W,w),2)}Z=X.yieldResult;B=(N=Z)==null?void 0:N.bgChallenge;if(!B)throw new _.ig(15,"Missing field");a.nlr=Z;a.xrA.forEach(function(v){v(Z)});
I=V_I(B);_.Ak("att_fc",void 0,"attestation_challenge_fetch");kVx("attestation_challenge_fetch");return X.return(I)})},uuh=function(a,W){var w,Z,N,B,I;
return _.P(function(X){switch(X.nextAddress){case 1:w=new Zf(100,3E5,.25,2),Z=void 0;case 2:if(!(w.currBackoffCount_<10)){X.jumpTo(4);break}_.tq(X,5);if(!(w.currBackoffCount_>0)){X.jumpTo(7);break}return _.g(X,GjD(w.getValue()),7);case 7:return _.g(X,yLa(a,W),9);case 9:return N=X.yieldResult,X.return(N);case 5:B=_.Pb(X);B instanceof _.ig?Z=B:(I=B instanceof Error?B.message:"Unknown",Z=new _.ig(9,I));ew6(w);X.jumpTo(2);break;case 4:if(Z)throw Z;throw new _.ig(9,"Unknown error");}})},yLa=function(a,
W){W=B3A(lZL(new $qV,W),a.requestKey);
var w=new _.wi,Z=a.d4O();Z.open("POST",a.ihK);Z.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");Z.setRequestHeader("Content-Type","application/json+protobuf");Z.onload=function(){if(_.sUU(Z)){var N=OrA(Z.responseText);w.resolve(N)}else w.reject(new _.ig(_.W$F(_.Wi(Z)),Z.statusText))};
Z.onerror=function(){w.reject(new _.ig(_.W$F(_.Wi(Z)),Z.statusText))};
Z.send(W.serialize());return w.promise};var aa9=function(a){this.networkStatusManager=a;this.isDownloaded=mGv===void 0?function(){return!1}:mGv;
this.isReady=!1;this.qVV=ERn(this)},ERn=function(a){var W;
return _.P(function(w){if(w.nextAddress==1)return _.g(w,Mke(),2);if(w.nextAddress!=3)return W=w.yieldResult,_.g(w,QPJ(W),3);a.ue=w.yieldResult;f1U(a.ue).then(function(){a.isReady=!0});
return w.return(a.ue)})},WnI=function(a,W,w){a.ue?(a=a.ue.aN({jm:w,
azX:!0,ycr:!0}),W.serviceIntegrityDimensions={poToken:a}):_.eJ(Error("ij"))};
aa9.prototype.processContext=function(a){var W=this;if(!a.input.match(_.GC(dLL)))return _.uH();var w=a.innerTubeRequest,Z=w.videoId;return!Z||this.isDownloaded(w)||this.networkStatusManager&&!this.ue&&!this.networkStatusManager.isNetworkAvailable()?_.uH():this.ue?this.isReady?(WnI(this,w,Z),_.uH()):new sj(f1U(this.ue).then(function(){WnI(W,w,Z)})):new sj(this.qVV.then(function(N){return _.P(function(B){if(B.nextAddress==1)return _.g(B,f1U(N),2);
WnI(W,w,Z);_.Xd(B)})}))};var w2d=new _.yq("WEB_PO_CONTEXT_PROCESSOR");var ZK2=function(a,W){var w=this;this.nJh=0;var Z;this.r6b=(Z=W==null?void 0:W.r6b)!=null?Z:window;this.networkStatusManagerPromise=W==null?void 0:W.networkStatusManagerPromise;var N;this.requestKey=(N=W==null?void 0:W.requestKey)!=null?N:_.Et("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var B;this.dMe=(B=W==null?void 0:W.dMe)!=null?B:function(v){return new Fw(v)};
var I;Z=(I=W==null?void 0:W.q75)!=null?I:function(v,U,O){return new H6K(v,U,O)};
this.bgChallenge=V_I(a.bgChallenge);this.ttlSeconds=zmE(WN(a.challenge||""));this.xL=Z(this.requestKey,_.r("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.NH.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);Dux(this.xL);var X;this.rmL=(X=W==null?void 0:W.rmL)!=null?X:function(v){_.vX(w.r6b.document,"visibilitychange",function(){w.r6b.document.visibilityState===
"visible"&&v()})}},t0n=function(a){if(!a.kf){var W={maxAttempts:5,
jNE:a.ttlSeconds*1E3};due(a.r6b);a.kf=a.dMe({xL:a.xL,fn:{disable:_.r("html5_web_po_disable_remote_logging"),zu:"aGIf",pAe:R38("html5_web_po_experiment_ids"),rYV:_.r("wpo_dis_lfdms")?0:1E3,dO:_.r("wpo_gel_strz")?function(Z){var N=DlV.get(Z);N||(N=new GnR(Z),N=new BM(N),DlV.set(Z,N));return N}:void 0},
edy:W,ahf:a.bgChallenge,cRa:muC});a.nJh=Date.now();ggE(a.kf,function(){a.nJh=Date.now()});
xFe(a.kf,function(){return _.P(function(Z){return Z.return(Nfz(a))})});
var w=a.qRV.bind(a);a.networkStatusManagerPromise&&a.ttlSeconds>0&&a.networkStatusManagerPromise.then(function(Z){Z.listen("publicytnetworkstatus-online",w)});
a.rmL(w)}};
ZK2.prototype.qRV=function(){if(Date.now()>this.nJh+this.ttlSeconds*1E3){var a;(a=this.kf)==null||vgR(a)}};
var Nfz=function(a){if(a.v5Y)return a.v5Y;if(!a.kf)throw Error("jj");a.v5Y=new Qc({kf:a.kf,xL:a.xL,ikM:!0,onError:muC});return a.v5Y},zo9=function(a,W){a=new ZK2(a,W);
t0n(a);Nfz(a)};var $L=function(a,W){this.store=a;this.queue=[];this.supportsFocus=_.r("web_ephemeral_actions_focus");W==null||W.addEventListener("yt-navigate-start",this.reset.bind(this))};
$L.prototype.enqueue=function(a){var W=a.command,w=a.durationMs,Z=a.elementToFocus;var N=a.label;var B=a.elementToFocus;a.command?N=_.P_("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:N,shortcut:_.P_("SHIFT_PLUS_ENTER")}):B&&this.supportsFocus&&(a=N+". "+_.P_("SHIFT_PLUS_ENTER")+" for more information.",N=_.P_("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:N,shortcut:_.P_("SHIFT_PLUS_ENTER")},a));w={announcement:N,durationMs:w!=null?w:this.supportsFocus?8E3:void 0};W?w.command=W:Z&&this.supportsFocus&&(Z.classList.add("ephemeral-action-focusable-element"),
w.selector=Z.tagName+".ephemeral-action-focusable-element");this.queue.push(w);$i9(this)};
$L.prototype.activate=function(a){var W=_.l1I(this.store.getState());if(W){if(W==null?0:W.command)_.AQ(W.command),this.store.dispatch(uCJ(null));(W==null?0:W.selector)&&this.supportsFocus&&(W=document.querySelector(W.selector),_.l7E(W));a.preventDefault()}};
var $i9=function(a){if(!_.l1I(a.store.getState())&&a.queue.length){var W=a.queue.shift();W&&(a.previousAnnouncement===W.announcement&&(W.announcement+="\u00a0"),a.store.dispatch(uCJ(W)),a.previousAnnouncement=W.announcement,a.timeoutId=setTimeout(function(){if(W.selector&&a.supportsFocus){var w;(w=document.querySelector(W.selector))==null||w.classList.remove("ephemeral-action-focusable-element")}a.store.dispatch(uCJ(null));$i9(a)},W.durationMs))}};
$L.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(uCJ(null));this.queue.length=0;this.timeoutId=void 0};
$L[Hy]=[_.Ab,_.Zh];_.BC=new _.yq("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Bfd=new _.yq("AUTH_SERVICE_TOKEN");var Ezm=_.ma(["about:blank"]),yXe;var lan=new _.yq("API_IFRAME_TOKEN"),Iad=new _.yq("FETCH_FN_TOKEN"),P90=new _.yq("PARSE_FN_TOKEN"),X2f=new _.yq("WINDOW_REQUEST_TOKEN");var YWe;YWe=new _.yq("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.vd0=new _.yq("MISC_UI_SHARED_FLAGS_TOKEN");var gdK=function(){};
gdK.prototype.getFlag=function(a){if(a.configType!==2)throw Error("kj");return od2(a)};
var od2=function(a){switch(a.flagType){case "bool":return _.r(a.flagName);case "int":return _.y_(_.yv(a.flagName));case "double":return _.yv(a.flagName);case "string":return _.Et(a.flagName);case "int32_list":return R38(a.flagName);case "int64_list":return R38(a.flagName).map(function(W){return _.y_(W)});
case "string_list":return _.a0(a.flagName);default:throw Error("lj");}};var lZ=function(a,W,w){W=W===void 0?{}:W;ji.call(this,w===void 0?"uninitialized":w);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}];W.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=W.shouldWaitOnAsyncImmediate)};
_.c(lZ,ji);lZ.prototype.init=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?_.g(Z,a(W.env),2):(a(W.env),Z.jumpTo(2));if(Z.nextAddress!=4)return W.jobSet?_.g(Z,W.jobSet.completedResolver.promise,4):Z.jumpTo(4);w=_.F4();w.parkOrScheduleJob(function(){W.transition("rendering")},10,"ci");
_.Xd(Z)})};
lZ.prototype.initialRender=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?_.g(Z,a(W.env),2):(a(W.env),Z.jumpTo(2));if(Z.nextAddress!=4)return W.jobSet?_.g(Z,W.jobSet.completedResolver.promise,4):Z.jumpTo(4);w=_.F4();w.parkOrScheduleJob(function(){W.transition("rendered")},10,"cr");
_.Xd(Z)})};
lZ.prototype.afterRenderImmediate=function(a){var W=this,w;return _.P(function(Z){if(Z.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?_.g(Z,a(W.env),2):(a(W.env),Z.jumpTo(2));if(Z.nextAddress!=4)return W.jobSet?_.g(Z,W.jobSet.completedResolver.promise,4):Z.jumpTo(4);w=_.F4();w.parkOrScheduleJob(function(){W.transition("after-render-deferred")},10,"carml");
_.Xd(Z)})};
lZ.prototype.afterRenderDeferred=function(a){var W=this;return _.P(function(w){a(W.env);_.Xd(w)})};var k0k={},UiI=(k0k.rendered={priority:0,callback:function(a){zyE(a.injector.resolve(KH))}},k0k);var OKK=!1,l0x=0,NGS=null,BGe=null;var SI2=new _.yq("NETWORK_SLI_TOKEN");var YIa=function(a,W,w,Z){this.networkSli=a;this.fetchFn=W;this.parseFn=w;this.requestFn=Z};
YIa.prototype.fetch=function(a,W,w){var Z=this,N,B,I;return _.P(function(X){N=TfE(Z,a,W);I=(B=Z.fetchFn)!=null?B:fetch;return X.return(I(N).then(function(v){return Z.handleResponse(v,w)}).catch(function(v){_.jJ(v);
if((w==null?0:w.expectJsonStrict)&&v instanceof ac&&v.errorType===1)return Promise.reject(v)}))})};
var FqH=function(a,W,w,Z){var N,B,I,X,v,U;return _.P(function(O){switch(O.nextAddress){case 1:return N=TfE(a,W,w),_.tq(O,2),_.g(O,fetch(N),4);case 4:B=O.yieldResult;_.qY(O,3);break;case 2:throw _.Pb(O),new ac(2,"Failed to parse streaming response",N.url);case 3:if(!B.redirected&&!B.ok)throw(I=a.networkSli)==null||I.failure(),new _.Uw("Streaming fetch request not ok",N.url);if(!B.body)throw new _.Uw("No response body in streaming response",N.url);X=B.body.pipeThrough(new TextDecoderStream).getReader();
v=new _.Zj;U={};return O.return(KnK(a,X,v,A0F,U,Z))}})},TfE=function(a,W,w){if(a.networkSli){var Z=_.tw(_.dQ(W,"key"))||"/UNKNOWN_PATH";
a.networkSli.start(Z)}Z=w;_.r("wug_networking_gzip_request")&&(Z=Vy9(w));var N;return new ((N=a.requestFn)!=null?N:window.Request)(W,Z)},KnK=function(a,W,w,Z,N,B){var I,X,v,U,O,S,T,p,h;
return _.P(function(L){if(L.nextAddress==1)return _.g(L,W.read(),2);I=L.yieldResult;X=I.value;if(v=I.done)return(U=a.networkSli)==null||U.success(),L.return(N);try{O=w.parse(X)}catch(F){throw new ac(1,"Failed to parse streaming response",X);}if(O!=null)for(S=_.l(O),T=S.next();!T.done;T=S.next())p=T.value,Z(N,p),h=void 0,(h=B)==null||h(N,p);return L.return(KnK(a,W,w,Z,N,B))})};
YIa.prototype.handleResponse=function(a,W){var w,Z=(w=this.parseFn)!=null?w:JSON.parse;w=a.text().then(function(N){if((W==null?0:W.jspbResponseCtor)&&a.ok)return Z_C(W.jspbResponseCtor,N);N=N.replace(")]}'","");if((W==null?0:W.expectJsonStrict)&&N)try{var B=Z(N)}catch(X){throw new ac(1,"JSON parsing failed after fetch");}var I;return(I=B)!=null?I:Z(N)});
a.redirected||a.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),w=w.then(function(N){_.jJ(new _.Uw("Error: API fetch failed",a.status,a.url,N));return Object.assign({},N,{errorMetadata:{status:a.status}})}));
return w};
YIa[Hy]=[_.Vv(SI2),_.Vv(Iad),_.Vv(P90),_.Vv(X2f)];var p2k=new _.yq("NETWORK_MANAGER_TOKEN");var rzI=[1,2,4,8,16,30],hDa=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=_.l(rzI);for(var W=a.next();!W.done;W=a.next())this.brokenFrameSummarizers.push(new Azn(W.value/60*1E3))},iK0=function(a){var W=a.frameCountInternal>=a.maxFrameCount;
return a.elapsedTimeMs>=a.maxTimeMs||W},cz9=function(a){for(var W=[],w=_.l(a.brokenFrameSummarizers),Z=w.next();!Z.done;Z=w.next())Z=Z.value,Z=Z.brokenFrameCount!==0?{severityMs:Math.round(Z.targetFrameTimeMs),
eventCount:Z.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(Z.averageDurationBetweenEventsMs)}:void 0,Z&&W.push(Z);return{summaries:W,monitoringDurationMs:Math.round(a.elapsedTimeMs)}};
_.dU.Object.defineProperties(hDa.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 Azn=function(a){this.targetFrameTimeMs=a;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.dU.Object.defineProperties(Azn.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var eD0=function(){};
eD0.prototype.start=function(a,W){var w=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var Z=new hDa({maxTimeMs:a});this.monitor=Z;this.lastSummaryInternal=void 0;this.metadataToLog=W;return new Promise(function(N){var B=function(I){if(I===void 0)w.stop(),N(void 0);else if(w.monitor!==Z)I=Object.assign({},cz9(Z),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),N(I);else{var X=w.monitor;if(!iK0(X)){X.frameCountInternal++;if(X.prevTime===void 0)X.startTime=
I;else for(var v=I-X.prevTime,U=_.l(X.brokenFrameSummarizers),O=U.next();!O.done;O=U.next()){O=O.value;var S=O.currTimeMs;O.currTimeMs+=v;v>O.targetFrameTimeMs+2&&(O.brokenFrameCount++,O.timeOfFirstBrokenFrameMs===void 0&&(O.timeOfFirstBrokenFrameMs=S),O.timeOfLastBrokenFrameMs=S)}X.prevTime=I}iK0(w.monitor)?N(w.stop()):_.hF.addJob(B,5,0)}};
_.hF.addJob(B,5,0)})};
eD0.prototype.stop=function(a){if(!this.monitor)return this.lastSummaryInternal;var W=Object.assign({},cz9(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(W.monitoringDurationMs){a=a!=null?a:this.metadataToLog;var w={droppedFramesSummary:W,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};a&&(w[a.type]=a.data);_.ia("manualSmoothnessMeasurement",w)}this.monitor=void 0;this.lastSummaryInternal=W;this.metadataToLog=void 0;return W};_.ndD=new _.yq("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var jEK;jEK=function(a){this.JSC$16216_expiringStorage=new Sg(a)};
_.Lni=function(a){if(_.I09()&&(a=_.As9(_.o0()+"::"+a)))return new jEK(a)};
jEK.prototype.set=function(a,W,w){w=w!==void 0?Date.now()+w:void 0;this.JSC$16216_expiringStorage.set(a,W,w)};
jEK.prototype.get=function(a){return this.JSC$16216_expiringStorage.get(a)};
jEK.prototype.remove=function(a){this.JSC$16216_expiringStorage.remove(a)};var JzE=new _.yq("SESSION_STORAGE");_.IW=function(){};
_.IW.getInstance=function(){var a=_.RT("ytglobal.storage_");a||(a=new _.IW,_.Dp("ytglobal.storage_",a));return a};
_.IW.prototype.estimate=function(){var a,W,w;return _.P(function(Z){a=navigator;return((W=a.storage)==null?0:W.estimate)?Z.return(a.storage.estimate()):((w=a.webkitTemporaryStorage)==null?0:w.queryUsageAndQuota)?Z.return(PyC()):Z.return()})};
_.Dp("ytglobal.storageClass_",_.IW);var Fn2=!1;var M0a=_.ma(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),RDk=_.ma(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var V1V={"/":_.g9,"/?feature=ytca":_.g9,"/feed/downloads":_.xgv};var Sa=function(a,W,w){this.JSC$16229_upliftPromise=a;this.store=W;this.JSC$16229_persistentStorePromiseAccessor=w};
Sa.prototype.shouldPreferLocalResponse=function(a){return a.browseId==="FEdownloads"||a.browseId==="FEsmart_downloads"&&_.r("kevlar_modern_downloads_page")?!0:!1};
Sa.prototype.localInnertubeResponse=function(a){var W=this;return _.P(function(w){return a.browseId==="FEdownloads"?_.r("kevlar_modern_downloads_page")?w.return(qII(W)):w.return(QEI(W)):a.browseId==="FEsmart_downloads"&&_.r("kevlar_modern_downloads_page")?w.return(xiD(W)):w.return(Promise.reject(Error("nj")))})};
Sa.prototype.canProvideFallbackResponse=function(){return!0};
Sa.prototype.localFallbackInnertubeResponse=function(a){var W=this,w,Z,N;return _.P(function(B){switch(B.nextAddress){case 1:return _.g(B,W.JSC$16229_persistentStorePromiseAccessor(),2);case 2:w=B.yieldResult;if(a.browseId!=="SPaccount_downloads"||!w){B.jumpTo(3);break}return _.g(B,dG7(w),4);case 4:if(Z=B.yieldResult)return B.return(_.PN(Z));case 3:return a.browseId==="FEwhat_to_watch"?B.return(bK2(W)):(N=_.r("web_offline_continuation_automatic_retry")||_.r("web_offline_continuation_retry_button"))&&
a.continuation?B.return(sE2(W)):B.return(uX0(W))}})};
var bK2=function(a){var W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,a.JSC$16229_upliftPromise,2);W=_.kzm(a.store.getState().entities);return W.length?w.return(C99(a,W)):w.return(uX0(a))})},QEI=function(a){var W,w;
return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$16229_upliftPromise,2);if(Z.nextAddress!=3)return W=G0k([{offlineItemSectionRenderer:{}}]),_.g(Z,Di9(a,W),3);w=Z.yieldResult;w.onResponseReceivedActions=[hy("REFRESH_DOWNLOADS")];return Z.return(w)})},qII=function(a){var W,w,Z,N,B,I,X,v,U,O,S,T,p;
return _.P(function(h){if(h.nextAddress==1)return _.g(h,a.JSC$16229_upliftPromise,2);if(h.nextAddress!=3)return W=a.store.getState(),w=W.entities,Z=_.TC(w),N=_.Kx(w),B=_.flF(W),I=_.DaE(W),X=_.da7(W),v=_.Yjv(w),U=_.kp(Z),O=_.px(w),S={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.VsC(Z,N,v,B,I,U,O,X),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},T=_.P_("DOWNLOADS",void 0,"Downloads"),_.g(h,faz(a,S,T),3);p=h.yieldResult;
p.onResponseReceivedActions=[hy("REFRESH_DOWNLOADS")];return h.return(p)})},xiD=function(a){var W,w,Z,N,B,I,X,v,U;
return _.P(function(O){if(O.nextAddress==1)return _.g(O,a.JSC$16229_upliftPromise,2);if(O.nextAddress!=3)return W=a.store.getState(),w=W.entities,Z=_.TC(w),N=_.kp(Z),B=_.px(w),I={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.HLS(Z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},X=_.P_("SMART_DOWNLOADS",void 0,"Smart downloads"),v=dgS(N,B),_.g(O,faz(a,I,X,v),3);U=O.yieldResult;U.onResponseReceivedActions=[hy("REFRESH_DOWNLOADS")];
return O.return(U)})},uX0=function(a){var W,w;
return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,II(a.JSC$16229_upliftPromise,a.store),2);W=Z.yieldResult;w=G0k([CPS(W)]);return Z.return(Di9(a,w))})},sE2=function(a){var W,w,Z,N;
return _.P(function(B){if(B.nextAddress==1)return W={},w=a.store.getState().continuation.continuationCommand,_.Sx(W,_.i5,w),_.g(B,II(a.JSC$16229_upliftPromise,a.store,W,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);Z=B.yieldResult;N={};_.Sx(N,_.qMH,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:Z}}}],targetId:"browse-feedFEwhat_to_watch"});return B.return({responseContext:{},onResponseReceivedActions:[N]})})},G0k=function(a){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:a}}}}]}}},C99=function(a,W){var w,Z;
return _.P(function(N){var B={contents:iL(W)};w=B&&B.contents?B:{};_.r("kevlar_modern_downloads_page")&&(w=Object.assign({},_.y57(W),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));Z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:w}}}]}};return N.return(Di9(a,Z))})},Di9=function(a,W){var w,Z;
return _.P(function(N){if(N.nextAddress==1)return _.g(N,a.JSC$16229_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3)return w=N.yieldResult,_.g(N,X2(w),3);Z=N.yieldResult;return N.return({responseContext:{},contents:W,topbar:Z})})},faz=function(a,W,w,Z){var N,B;
return _.P(function(I){if(I.nextAddress==1)return _.g(I,a.JSC$16229_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3)return N=I.yieldResult,_.g(I,X2(N),3);B=I.yieldResult;var X=I.return;var v=Z;v=v===void 0?"":v;v={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:w}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.P_("SETTINGS",void 0,"Settings"),accessibilityText:_.P_("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:mX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:v}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:w};
return X.call(I,{responseContext:{},contents:W,topbar:B,header:{pageHeaderRenderer:v}})})};var di0=function(){this.moduleRegistry={};this.fetchCount=0};
di0.prototype.isFetching=function(){return this.fetchCount>0};
var s9=function(a,W){a.moduleRegistry[W.toString()]={asyncId:W,isFetching:!1};return a};
di0.prototype.JSC$16240_loadModules=function(){for(var a=this,W=new Map,w=[],Z=_.l(_.TH.apply(0,arguments)),N=Z.next();!N.done;N=Z.next()){N=N.value;var B=this.moduleRegistry[N];B?B.resolver?W.set(N,B.resolver):(B.resolver=new _.wi,W.set(N,B.resolver),w.push(B.asyncId),B.isFetching=!0):(B=new _.wi,W.set(N,B),B.resolve(void 0))}w.length&&(this.fetchCount+=1,_.Ad(_.K0.getMultipleAsync.apply(_.K0,_.K8(w)).then(function(I){for(var X=0;X<w.length;X++){var v=I[X],U=a.moduleRegistry[w[X].toString()];U.isFetching=
!1;U.resolver.resolve(v)}}).catch(function(I){for(var X=_.l(w),v=X.next();!v.done;v=X.next()){v=v.value;
var U=a.moduleRegistry[v.toString()];U.resolver=void 0;U.isFetching=!1;W.get(v.toString()).reject(I)}}),function(){--a.fetchCount}));
return Promise.all([].concat(_.K8(W.values())).map(function(I){return I.promise}))};_.uV=new _.yq("MODULE_REGISTRY_TOKEN");var mia={},V00=(mia.rendered={priority:0,callback:function(a){a:{var W=void 0;try{var w;b:{if(_.Pj9()){var Z=_.rsS(_.o0()+"::pom");if(Z){var N=new Ic(Z);break b}}N=void 0}var B=(w=N)==null?void 0:w.get("role_text");if(!B)break a;W={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:B}]}}}}}}catch(v){}W&&a.injector.resolve(_.zU).resolveCommand(W)}try{var I=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(I){var X=JSON.parse(I);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
X&&a.injector.resolve(_.zU).resolveCommand(X)}}catch(v){}}},mia);var zD2,HKz={},yz0=(HKz.initialized={priority:10,callback:function(){zD2=cN()}},HKz.rendering={callback:function(a){var W;
return _.P(function(w){if(w.nextAddress==1)return _.g(w,zD2,2);W=w.yieldResult;if(!W.endpoint)throw Error("pj`"+_.NH.location.href);L4(a,W);_.Xd(w)})}},HKz);var Edz={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(_.K8(_.r("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 W=a.stack;if(W.includes("chrome://")||W.includes("chrome-extension://")||a.message.includes("chrome-extension://")||W.includes("moz-extension://")||W.includes("local.adguard.org")||W.includes("auctioneer3.50million.club")||W.includes("youtubedownloader")||W.includes("youtube_home_page")||W.includes("is_youtube_video_no_longer_available")||
W.includes("switchScreenSizeHack")||W.includes("yt_main_big_banner.js")||W.includes("YouTubeCenter.js")||W.includes("/mytube.js")||W.includes("JSON.parseWrapper")||W.includes("/inj_js/common.js")||W.includes("firebug-lite")||W.includes(".repl.co/")||W.includes("linkfix")||W.includes("playAfterAd")||a.message.includes("Access is denied for this document")&&W.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'")&&
W.includes("<anonymous>"))return!0;if(W.includes("https://www.youtube.com"))return!1;a=W.split("\n");if(!a.length)return!1;if(a.length<=3&&W.includes("s.onloadeddata"))return!0;W=0;for(var w=_.l(a),Z=w.next();!Z.done;Z=w.next())Z=Z.value,(Z.includes("https://")||Z.includes("http://"))&&W++;return W/a.length>.95},
weight:0},{callback:function(a){return a.message==="Unknown Error"&&a.name.indexOf("NS_")===0},
weight:100},{callback:function(a){if(!_.lB)return!1;var W=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"),w=a.stack.includes("webcomponents")&&a.message==="Object doesn't support this action";a=a.message.includes("object that does not implement interface Element");return W||w||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 W=a.stack.trim().split("\n");W.length&&W[0].endsWith("Error: "+a.message)&&W.shift();W.length&&W[W.length-1].includes("at window.onerror (")&&W.pop();if(!W.length)return!0;if(a.message==="Script error.")return W[0].includes("www.youtube.com")||W.length>=2&&W[0].startsWith("at new")&&W[1].startsWith("at window.onerror");if(a.message==="Unexpected token")return!0;a=_.l(W);for(W=a.next();!W.done;W=a.next())if(W=W.value,!(W.includes("<anonymous>")||
W.startsWith("load@")||W.startsWith("global code@")||W.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(_.r("use_error_suppression"))var a=_.LF("SUPPRESS_CLIENT_ERRORS",!1);else{if(a=_.gk)a=/Chrome\/(\d+)/.exec(_.S9()),a=(a?parseFloat(a[1]):NaN)>=66;a=!(a||_.vz&&_.Xk(65)||_.jg&&_.Xk(12.1)||C3&&_.Xk(79))}return a},
weight:500}]};var a2d={},WZD=(a2d.initialized={priority:10,callback:function(a){a.injector.addProvider({provide:rT_,useValue:a.root});a.injector.addProvider({provide:sCX,useValue:rQ9});a.injector.addProvider({provide:uxE,useValue:Edz});var W={};a.injector.addProvider((W.provide=Ce0,W.useFactory=function(w,Z){return function(){BWF(w,Z)}},W[Hy]=[sCX,
uxE],W));a.injector.addProvider({provide:B3,useClass:B3})}},a2d);var w9k={},Z_E=(w9k.initialized={priority:3,callback:function(){var a;if(a=UMS()){a=a.replace("/",".");var W=_.gS();W.set("tz",a);W.save();a=!0}else a=!1;a||(a=_.gS(),a.set("utco",-Math.floor((new Date).getTimezoneOffset())),a.save())}},w9k);var NCK={},te2=(NCK.initialized={priority:10,callback:function(a){a.injector.resolve(B3).start();a=_.J7();var W=_.JS("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.JS("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.JS("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.JS("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.kX(_.d5S(),{mainAppWeb:Object.assign({},a,{pageType:W})});_.kX(VXI(),{mainAppWeb:Object.assign({},a,{pageType:W})});
_.kX(zam(),{mainAppWeb:a});_.kX(HkC(),{mainAppWeb:a});l86(function(){_.U9(zam(),"FAILURE");_.U9(HkC(),"FAILURE")});
rBE();AB8();aH9()}},NCK);var $oK={},BCa=($oK.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Ak("dl"),_.F4().processSignal("pcl");else{var a=function(){_.Ak("dl");_.F4().processSignal("pcl");window.removeEventListener("load",a)};
window.addEventListener("load",a)}}},$oK);var l2k={},I22=(l2k.rendering={priority:0,callback:function(){var a=_.F4();a.parkOrScheduleJob(function(){a.processSignal("eocs")},10,"eor",5E3)}},l2k);var PY0=function(){};
_.c(PY0,iQ);
PY0.prototype.resolveCommand=function(a,W){var w,Z,N,B,I,X,v,U;return _.P(function(O){N=(w=_.A(a,_.Y5l))==null?void 0:(Z=w.dialog)==null?void 0:Z.commentReplyDialogRenderer;if(!N)throw new _.Uw("No dialog in createCommentReplyDialogEndpoint");I=(B=W.form)==null?void 0:B.event;if(!I)throw new _.Uw("Event not passed in when resolving command");X=_.l(I.composedPath());for(v=X.next();!v.done;v=X.next())if(U=v.value,U.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||U.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return U.showReplyDialog(N),O.return();
_.Xd(O)})};var PC=function(a){this.pageRequestService=a;this.JSC$16255_prefetchCoordinator=cm0()};
_.c(PC,iQ);PC.prototype.resolveCommand=function(a){var W=this,w,Z,N,B;return _.P(function(I){if(I.nextAddress==1){w=_.A(a,Eil);if((Z=w)==null||!Z.taskId)throw Error("qj");N=w.taskId;_.tq(I,2);return _.g(I,_.JEh(W.pageRequestService,a,{},"").then(function(X){if(!X)throw Error("rj");},function(X){throw Error("sj`"+X);
}),4)}if(I.nextAddress!=2)return jCX(W.JSC$16255_prefetchCoordinator,N),_.qY(I,0);
B=_.Pb(I);G3(W.JSC$16255_prefetchCoordinator,N,B);_.Xd(I)})};
PC[Hy]=[iV];var X1=function(a){this.innertubeTransportService=a};
_.c(X1,iQ);X1.prototype.resolveCommand=function(a){var W=this,w,Z;return _.P(function(N){w=_.A(a,aJR);if(w.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||w.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")Z=w.boolValue?2:1,_.mF.getInstance().setState(Z,!0,!0);return _.g(N,_.MX(W.innertubeTransportService,a),0)})};
X1[Hy]=[_.O6];var vC={},X90=(vC.addToPlaylistEndpoint=dS(kh),vC.addToToastAction=dS(kG),vC.adsControlFlowOpportunityReceivedCommand=dS(H4),vC.captionLanguageSelectActionCommand=dS(jj),vC.captionPickerEndpoint=dS(LX),vC.changeMiniAppPlayStateCommand=dS(Up),vC.changeTimelyActionVisibilityCommand=dS(oM),vC.channelCreationFormEndpoint=dS(IH),vC.clearLocationCommand=dS(oH),vC.clearUrlParamCommand=dS(Op),vC.copyLinkCommand=dS(q2),vC.copyTextEndpoint=dS(aH),vC.createCommentReplyDialogEndpoint=aie(PY0),vC.createPlaylistServiceEndpoint=
dS(QG),vC.dismissDialogEndpoint=dS(Yh),vC.entityUpdateCommand=dS(we),vC.feedbackEndpoint=dS(tJ),vC.getAnswerCommand=dS(qcV),vC.getPaymentsClientTokenCommand=dS(St),vC.getTranscriptEndpoint=dS(U4),vC.googlePaymentBillingCommand=dS(YG),vC.googlePaymentPurchaseManagerCommand=dS(TF),vC.hideEngagementPanelEndpoint=dS(Tl),vC.insertRichSectionCommand=dS(Xn),vC.listMutationCommand=dS(vY),vC.logGtmCommand=dS(PY),vC.notifyDropdownOptionSelectedCommand=dS(Sj),vC.openAdAllowlistInstructionCommand=dS(_.yL),vC.openOnePickAddVideoModalCommand=
dS(xh),vC.persistSubscriptionsDisplayPreferencesCommand=dS(D4),vC.pingingEndpoint=dS(EJ),vC.playlistEditEndpoint=dS(sp),vC.playlistVotingRefreshPopupCommand=dS(ut),vC.refreshPanelEndpoint=dS(KX),vC.saveImageToDeviceEndpoint=dS(WY),vC.scrollToSectionEndpoint=aie(QzE),vC.seekToVideoTimestampCommand=dS(JJ),vC.selectCountryCommand=dS(fX),vC.setCookieCommand=dS(de),vC.setLocalStorageCommand=dS(IM),vC.setPrefStorageEntryCommand=dS(VG),vC.setSettingEndpoint=dS(X1),vC.sfvAudioItemPlaybackCommand=dS(Fn),vC.shareImageCommand=
dS(zl),vC.sharingProviderDataCommand=dS(HY),vC.showCaptionLanguageSelectActionCommand=dS(M2),vC.showDialogCommand=dS(AJ),vC.showEngagementPanelEndpoint=dS(hJ),vC.showSheetCommand=dS(cY),vC.showTransientPlayerScrimOverlayCommand=dS(RH),vC.submitFormWithValidationFlowCommand=dS(lt),vC.talkToRecsDeselectCommand=dS(PO),vC.talkToRecsNextCommand=dS(X9),vC.talkToRecsSelectCommand=dS(vO),vC.talkToRecsUpdateTextCommand=dS(g6),vC.toggleEngagementPanelCommand=dS(ej),vC.undoFeedbackEndpoint=dS(BY),vC.updateEngagementPanelContentCommand=
dS(nX),vC.updateUrlParamCommand=dS(O4),vC.verifyCommand=dS(IH),vC.webNativeShareCommand=dS(yG),vC.webSubmitFormCommand=dS(CX),vC.ACK_PLAYABLES_3P_DATA_CONSENT=dS(Ep),vC.CANCEL_NAVIGATION=dS(aM),vC.COPY_SHARE_URL=dS(WO),vC.MINI_APP_EXIT_DIALOG_SEEN=dS(ZS),vC.MINI_APP_OPEN_URL=dS(w6),vC.REQUEST_MINI_APP_FULLSCREEN=dS(Nc),vC.RESUME_NAVIGATION=dS(t0),vC.SHARE_PLAYABLE_WITH_HIGH_SCORE=dS($G),vC.TELL_US_WHY=dS($h),vC);
_.r("web_enable_prefetching_videos_on_home")&&(X90.prefetchWatchCommand=dS(PC),X90.registerTasksCommand=dS(fe));_.r("enable_share_panel_navigation_logging_fix_on_web")&&(X90.shareEntityServiceEndpoint=dS(pX));var zNh=Object.assign({},X90);var vbz={},gb0=(vbz.initialized={priority:10,callback:naF},vbz);var ob9={},kkI=(ob9.initialized={callback:function(a){var W={},w={};Ufv().install((W.document_disposed={callback:function(){_.r("finalize_all_timelines")?UKe():KD();tp8("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.cP8();var Z=a.injector.resolve(B3);Z.intervalId!==void 0&&(Z.intervalId&&_.hF.cancelJob(Z.intervalId),Z.intervalId=void 0,--Z.currentPartitionIndex,Z=XjA(Z),Z>0&&qA6({mainAppWeb:_.J7(),survivalSli:{partitionMinute:Z,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));cbl(xc);bH!=null&&
bH.flush();HJ&&HJ.snapshotAndFlush();Z=_.l(DlV.values());for(var N=Z.next();!N.done;N=Z.next())N.value.snapshotAndFlush()}},W),(w.flush_logs={callback:function(){_.cZ()}},w))}},ob9);var Uoi={},O_f=(Uoi.rendered={priority:0,callback:function(){var a=new yvJ;a.increment("STARTED");if(_.LF("LOGGED_IN")&&_.LF("SERVER_VERSION")!=="test"&&_.LF("SERVER_VERSION")!=="dev"&&!MV$()&&!FJR()){a.increment("EXECUTING");var W=document.createElement("iframe");W.style.display="none";_.YmC(W,2,_.SB("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.LF("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(W);a.increment("DONE")}}},Uoi);var SmD={},YmE=(SmD.rendered={callback:function(){cm0().resume()}},SmD);var TCf={acknowledgeChannelTouStrikeCommand:c$(zF),addToPlaylistServiceEndpoint:c$(aR),addToPlaylistEndpoint:c$(aR),addUpcomingEventReminderEndpoint:c$(Sl),browseEndpoint:c$(IDX),channelCreationFormEndpoint:c$(C$),channelCreationServiceEndpoint:c$(GF),claimLegacyYoutubeChannelEndpoint:c$(n$),clearSearchHistoryEndpoint:c$(ZO),clearWatchHistoryEndpoint:c$(Nf),commerceActionCommand:eL(hT),createBackstagePostEndpoint:c$(r6),createBroadcastCommand:c$(Y5),createCommentEndpoint:c$(xG),createCommentReplyEndpoint:c$(Q4),
createLiveChatPollEndpoint:c$(Tr),createPlaylistServiceEndpoint:c$(Wj),crossAccountChannelTransferEndpoint:c$(Bg),deleteLiveChatMessageCommand:c$(K1),deletePlaylistEndpoint:c$(wr),deleteVideoEndpoint:c$(OZ),dismissalEndpoint:c$(HO),feedbackEndpoint:c$(y4),flagEndpoint:c$(lI),getAccountSwitcherEndpoint:c$($5),verifyCommand:c$(p$),getAccountsListInnertubeEndpoint:c$(IB),getCommentsFromInboxCommand:c$(qf),getDownloadActionCommand:c$(Gr),getFlowCommand:eL(wY),getKidsBlocklistPickerCommand:c$(IR),getNotificationMenuEndpoint:c$(vI0),
getPaymentInstrumentsParamsCommand:c$(Le),getPaymentsClientTokenCommand:eL(hT),getPdgBuyFlowCommand:c$(yC),getReportFormEndpoint:c$(Pj),getSearchInVideoCommand:c$(gr),getAnswerCommand:c$(vj),getSurveyCommand:c$(UZ),getTranscriptEndpoint:c$(T3),getPostVideoPreviewEndpoint:c$(h0),decorateMessageEndpoint:c$(A0),likeEndpoint:c$(DS),liveChatActionEndpoint:c$(hP),liveChatEndpoint:c$(AP),liveChatItemContextMenuEndpoint:c$(p1),liveChatPurchaseMessageEndpoint:c$(i7),liveChatReplayEndpoint:c$(rY),manageLiveChatUserEndpoint:c$(el),
metadataUpdateCommand:c$(Mf),moderateLiveChatEndpoint:c$(n1),modifyChannelNotificationPreferenceEndpoint:c$(s2),notificationOptOutEndpoint:c$(u7),openSuperStickerBuyFlowCommand:c$(cg),performCommentActionEndpoint:c$(Mc),playlistEditEndpoint:c$(N8),playlistEditorEndpoint:c$(Ze),profileCardCommand:c$(O2),recordNotificationInteractionsEndpoint:c$(C1),reelWatchEndpoint:c$(tT),refreshPanelEndpoint:c$(f1),removeUpcomingEventReminderEndpoint:c$(jl),resolveLocationCommand:c$(F5),revealBusinessEmailCommand:c$(jt),
searchEndpoint:c$(_.gId),sendLiveChatMessageEndpoint:c$(L1),sendLiveChatVoteEndpoint:c$(JP),setSettingEndpoint:c$(f$),shareEntityServiceEndpoint:eL(V4),sharingProviderDataCommand:c$(kY),showEngagementPanelEndpoint:c$(dY),showMoreDrawerCommand:c$(VC),showSheetCommand:c$(zr),showDialogCommand:c$(mu),subscribeEndpoint:c$(d6),transcriptSubmitCaptionCorrectionCommand:c$(YY),undoFeedbackEndpoint:c$(aB),unsubscribeEndpoint:c$(mP),updateBackstagePostEndpoint:c$(cO),updateCommentEndpoint:c$(s4),updateCommentReplyEndpoint:c$(bS),
updateCommentsSettingsEndpoint:c$(uS),updateCreatorChannelInnertubeCommand:c$(J0),updateKidsBlacklistEndpoint:c$(Xs),updateEngagementPanelContentCommand:c$(Hg),updatePdgFeatureEnablementCommand:c$(E2),updatedMetadataEndpoint:c$(RB),validateChannelHandleCommand:c$(F9),updateChannelPageSettingsEndpoint:c$(L$),verifyAgeEndpoint:c$(Wg),watchEndpoint:eL(Su),whitelistEditEndpoint:c$(AT),ypcCancelRecurrenceEndpoint:c$(iI),ypcCompleteTransactionEndpoint:c$(cj),ypcFixInstrumentEndpoint:c$(ne),ypcGetCartEndpoint:c$(eu),
ypcGetOffersEndpoint:c$(ju),ypcHandleTransactionEndpoint:eL(JT),ypcLogWalletAnalyticDataEndpoint:c$(Fs),ypcOffersEndpoint:c$(M8),ypcPauseSubscriptionCommand:c$(RR),ypcRedeemCodeEndpoint:c$(q8),ypcResumeSubscriptionCommand:c$(Q7),ypcUpdateFopEndpoint:c$(ne)},gH={},KZI=(gH.GET_ACCOUNT_MENU=c$(l7),gH.GET_NOTIFICATIONS_MENU=c$(XvD),gH.GET_NOTIFICATIONS_INBOX=c$(QC),gH.GET_UNSEEN_NOTIFICATION_COUNT=c$(b7),gH.GET_USER_MENTION_SUGGESTIONS=c$(iS),gH.LOAD_GUIDE=c$(PeD),gH.SUBMIT_FEEDBACK=c$(E4),gH),oW={},
p99=(oW.CONTINUATION_REQUEST_TYPE_BROWSE=c$(et),oW.CONTINUATION_REQUEST_TYPE_SEARCH=c$(oR),oW.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=c$(pe),oW.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=c$(tP),oW.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=c$(qc),oW.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=c$(RM),oW.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=c$(Bj),oW.CONTINUATION_REQUEST_TYPE_GET_PANEL=c$(DO),oW),rIa={player:_.r("web_streaming_player")?eL(rr):eL(Su),watchNext:c$(Ke)},AID={player:eL(Su),reelItemWatch:c$(tT),
reelWatchSequence:c$($Y)},hRk={watchEndpoint:eL(rr)},i_0={commandEndpointMap:TCf,signalEndpointMap:KZI,continuationEndpointMap:p99,watchEndpointMap:rIa,reelWatchEndpointMap:AID,streamingEndpointMap:hRk};var cIk,eR2,nb9,jPE={disableAllTransitions:(eR2=(cIk=window).matchMedia)==null?void 0:(nb9=eR2.call(cIk,"(prefers-reduced-motion: reduce)"))==null?void 0:nb9.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var LZ0=new _.yq("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.kL=new _.yq("VIEW_TRANSITION_MANAGER_TOKEN");var JI0=function(a){this.config=a;this.transitionTasksMap=new Map;a=_.l(a.transitionConfigs);for(var W=a.next();!W.done;W=a.next())W=_.l(W.value).next().value,this.transitionTasksMap.set(W,[])};
JI0[Hy]=[LZ0];var jom={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 JB7=["videoPrimaryInfoRenderer","title"],FSI=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var FZa;FZa=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Me0=_.xQ(function(a){a=_.Qn(a,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var W=a.data,w=a.playlistData,Z=a.expanded,N=a.onExpandClick,B=a.isReadyToResume,I=function(){var O;return!((O=w())==null||!O.contents)},X=function(){var O=w();
return O&&O.totalVideos&&O.currentIndex!==void 0?O.currentIndex+1+" / "+O.totalVideos:""};
a=_.$_(function(){_.UG(_.K().resolve(_.bV))});
var v=_.$_(function(){I()&&N&&N()}),U={};
return _.k("ytd-miniplayer-info-bar",{class:_.W$("ytdMiniplayerInfoBarHost",(U.ytdMiniplayerInfoBarHasPlaylistData=I,U)),"on:click":v},_.k("div",{class:"ytdMiniplayerInfoBarContent"},_.k("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":a},_.k(_.k_,{text:function(){var O=W();var S=w();if(S==null?0:S.contents){var T;O=(T=_.kRU(S))==null?void 0:T.title}else O=O==null?void 0:O.miniplayerTitle;return R4H(O)},
noEndpoints:!0,ellipsisTruncate:!0})),_.k("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.k("h1",null,_.k(_.k_,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var O=W();var S=w();O=B()?{simpleText:_.P_("CONTINUE_WATCHING",void 0,"Continue watching")}:(S==null?0:S.contents)?S.titleText:O==null?void 0:O.miniplayerSubtitle;return R4H(O)},
noEndpoints:!0,ellipsisTruncate:!0})),_.k(_.Y,{cond:function(){return!!X()&&!B()},
then:function(){return _.k("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.k("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.k("span",null,X))}}),_.k(_.Y,{cond:B,
then:function(){return _.k(eUV,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:FZa})}}))),_.k(_.Y,{cond:I,
then:function(){return _.k("div",{class:"ytdMiniplayerInfoBarExpand"},_.k(EB,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(O){N&&(N(),O.stopPropagation())}}},
iconName:function(){return Z()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"me");var RRf;RRf=_.xQ(function(a){return _.k("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.k(EB,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:a.onTap}},
iconName:"yt-icons:close"}))},"ne");
_.qmk=_.xQ(function(a){a=_.Qn(a,{playabilityStatus:void 0,isDisabled:!1});var W=a.size,w=a.playabilityStatus,Z=a.isDisabled,N=_.D8();a=_.l(_.$1(void 0,void 0,"bJr0Se"));var B=a.next().value,I=a.next().value;a=_.Au(_.kB);var X=!1,v=function(){return W().height<=0};
_.Ka(function(){var T=W(),p=v(),h=B();h&&!p&&h.setInternalSize(T.width,T.height)});
_.pF(function(){var T,p,h;return _.P(function(L){if(L.nextAddress==1){T=_.K().resolve(_.bV);p=T.getPlayerElement();if(!T.isMiniplayerActive()||!p||!N.value)return L.return();p.appendTo(N.value);return _.g(L,p.getPlayerPromise(),2)}h=L.yieldResult;h.setSizeStyle(!1,!0);I(h);_.Xd(L)})});
_.Ao(function(){U()});
_.Ka(function(){var T=B();if(T)if(Z()){var p=T.getPlayerState();(X=p===-1||p===1||p===3)&&T.pauseVideo()}else U()});
var U=function(){if(X){X=!1;var T;(T=B())==null||T.playVideo()}},O=_.$_(function(){_.UG(_.K().resolve(_.bV))}),S={};
return _.k("ytd-miniplayer-player-container",{class:_.W$("ytdMiniplayerPlayerContainerHost",(S.ytdMiniplayerPlayerContainerHidden=v,S.ytdMiniplayerPlayerContainerHostShortsPip=a,S)),style:_.It({width:function(){return W().width+"px"},
height:function(){return W().height+"px"}})},_.k("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:N}),_.k(_.Y,{cond:function(){return!!w()&&!_.RoU(w())},
then:function(){return _.k(Jil,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var T;return((T=w())==null?void 0:T.errorScreen)||null},
status:function(){var T;return((T=w())==null?void 0:T.status)||null}})}}),_.k(_.Y,{cond:Z,
then:function(){return _.k("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":O},_.k(RRf,{onTap:function(){_.K().resolve(_.bV).close()}}))}}))},"oe");_.QPn=_.xQ(function(a){var W=a.toastData;var w=_.D8();a=_.l(_.l5(function(){return!!W()}));
var Z=a.next().value,N=a.next().value;a=_.l(_.$1(!1,void 0,"xkrBze"));var B=a.next().value,I=a.next().value,X=function(){var O;return _.sd((O=W())==null?void 0:O.data.title)};
_.AS(function(){_.xS.requestAvailability();W()&&N(!1)});
var v,U;_.Ka(function(){Z()&&(_.E$(w.value,"iron-announce",{text:W().label+" "+X()}),v&&_.hF.cancelJob(v),v=_.hF.addLowPriorityJob(function(){I(!0)},2500))});
_.Ka(function(){B()&&(U&&_.hF.cancelJob(U),U=_.hF.addLowPriorityJob(function(){N(!1);I(!1)},300))});
a={};return _.k("ytd-miniplayer-toast",{el:w,class:_.W$("ytdMiniplayerToastHost",(a.ytdMiniplayerToastOpening=function(){return Z()},a.ytdMiniplayerToastClosing=function(){return B()},a))},_.k(_.Y,{cond:function(){var O;
return(O=W())==null?void 0:O.data},
then:function(O){return _.k(sfR,{className:"ytdMiniplayerToastThumbnail",data:O,width:78})}}),_.k("div",{class:"ytdMiniplayerToastInfo"},_.k("div",{class:"ytdMiniplayerToastLabel"},function(){var O;
return(O=W())==null?void 0:O.label}),_.k("div",{class:"ytdMiniplayerToastTitle"},X)))},"pe");var f0e;var z4S=new Set,VpC=null;var yBF=null;var b_E=_.xQ(function(a){var W=a.progressState;var w=a.multiMarkersPlayerBarRenderer;var Z=a.progressBarWidth;var N=function(){return wDH(w())},B=function(){return tAC(W())},I=function(){return Z()*(W().playedTime/W().videoDuration)};
return _.k("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.k(_.k6,{each:N},function(X,v){return _.k(xon,{modifiedProps:B,chapters:N,index:v,playedProgressWidth:I,backgroundGradientPosition:function(){var U=B(),O=N(),S=v(),T=I();return(U.playedTime-QA(_.A(O[S],q9)))/U.playedTime*T}})}))},"qe"),xon=_.xQ(function(a){var W=a.modifiedProps;
var w=a.chapters;var Z=a.index;var N=a.playedProgressWidth;var B=a.backgroundGradientPosition;a={};a=_.W$("ytChapteredProgressBarChapteredPlayerBarChapter",(a.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return I().isScrubbing},a.ytChapteredProgressBarHoveredMacroMarker=function(){return I().scrubberHovering},a.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return I().videoPosition==="seen"},a));
var I=function(){return $4H(W(),w(),Z())},X=function(){var v=W();
var U=w(),O=Z();if($4H(v,U,O).videoPosition!=="active")v=0;else{var S=QA(_.A(U[O],q9));v=(v.playedTime-S)/((QA(_.A(U[O+1],q9))||v.videoDuration)-S)}return v};
return _.k("div",{class:a,style:_.It({width:function(){var v=W(),U=w(),O=Z(),S=_.A(U[O],q9);U=_.A(U[O+1],q9);return(U?QA(U)-QA(S):v.videoDuration-QA(S))/v.videoDuration*100+"%"},
"background-color":function(){a:{var v=I();switch(v.videoPosition){case "pending":v=v.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":v=v.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:v=""}}return v},
"background-size":function(){return(BRH(I())?N():"")+"px"},
"background-position-x":function(){return(BRH(I())?B():"")+"px"}})},_.k("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var v=W(),U=w(),O=Z();if($4H(v,U,O).videoPosition==="seen")var S=0;else S=QA(_.A(U[O],q9)),U=QA(_.A(U[O+1],q9))||v.videoDuration,v=v.videoDuration*v.percentLoaded,S=U<=v?1:S>=v?0:(v-S)/(U-S);return"width: "+S*100+"%"}}),_.k("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.It({width:function(){return X()*100+"%"},
"background-size":function(){return(BRH(I(),X())?N():"")+"px"},
"background-position-x":function(){return(BRH(I(),X())?B():"")+"px"}})}))},"re");var sPd=function(a,W){W=W===void 0?UXl:W;var w,Z=[],N,B=!1;return function(){var I=_.TH.apply(0,arguments);if(B&&w===this&&W(I,Z))return N;N=a.apply(this,I);B=!0;w=this;Z=I;return N}}(function(a){var W=a.heatMarkers,w=a.minHeightDp===void 0?0:a.minHeightDp,Z=a.maxHeightDp===void 0?60:a.maxHeightDp;
var N=N===void 0?!1:N;var B=1E3/W.length;a=[];a.push({x:0,y:100});for(var I=0;I<W.length;I++){var X=void 0,v=((X=_.A(W[I],dJV))==null?void 0:X.heatMarkerIntensityScoreNormalized)||0;X=(I+.5)*B;v=100-_.M9(v*100,w/321*100,Z/321*100);I!==0||N||a.push({x:0,y:v});a.push({x:X,y:v});I===W.length-1&&a.push({x:1E3,y:v})}a.push({x:1E3,y:100});W="";for(w=0;w<a.length;w++)N=a[w],w===0?N="M "+N.x.toFixed(1)+","+N.y.toFixed(1):(Z=FEv(a[w-1],a[w-2],N),B=FEv(N,a[w-1],a[w+1],!0),N=" C "+(Z.x.toFixed(1)+","+Z.y.toFixed(1)+
" "+B.x.toFixed(1)+","+B.y.toFixed(1)+" "+N.x.toFixed(1)+","+N.y.toFixed(1))),W+=N;return W});var uLd=_.xQ(function(a){var W=a.progressBarProps;var w=a.config;var Z={};a=_.W$("ytHeatSeekerHost",(Z.ytHeatSeekerHighContrast=a.highContrast,Z));var N=function(){return so8(w().chapterData)};
return _.k("yt-progress-bar-heatseeker",{class:a,style:function(){var B;return"height: 320px; display: "+(W().isDragging&&((B=N())==null?0:B.heatMarkers)?"block":"none")}},_.k(_.Y,{cond:N,
then:function(B){return _.k(_.Y,{cond:function(){return B().heatMarkers},
then:function(){return _.k("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.k("path",{d:function(){return sPd(B())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"se");var CYz=_.xQ(function(a){var W=a.progressBarProps;var w=a.config;a={};a=_.W$("ytProgressBarLineProgressBarLine",(a.ytProgressBarLineProgressBarLineRounded=function(){return w().rounded},a.ytProgressBarLineProgressBarLineBottomInset=function(){return w().position===2},a));
return _.k("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.k("div",{class:a},_.k("div",{class:"ytProgressBarLineProgressBarBackground"}),_.k("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+W().percentLoaded*100+"%"}}),_.k("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var Z=W();return"width: "+(Z.videoDuration?_.M9(Z.hoveredTime/Z.videoDuration,0,1):0)*100+"%"}}),_.k("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Qoe(W())*100+"%"}})))},"te");
CYz.idomCompat=!0;var Gki=_.xQ(function(a){var W=a.progressBarProps;var w=a.playheadData;var Z=a.interpolateDotPosition;var N=a.hidePlayhead;a={};var B=_.W$("ytProgressBarPlayheadProgressBarPlayheadDot",(a.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return W().isDragging},a.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!W().isDragging&&N()},a));
return _.k("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.It({"margin-left":function(){return xZF(W())*100+"%"},
transform:function(){return"translateX(-"+(Z()?xZF(W())*12:6)+"px)"}})},_.k(_.Y,{cond:function(){var I;
return(I=_.qt(w)())==null?void 0:I.playheadImage},
then:function(I){var X={};return _.k("div",{class:_.W$("ytProgressBarPlayheadProgressBarPlayheadCustom",(X.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return W().isDragging},X.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!W().isDragging&&N()},X)),
style:_.It({"transform-origin":function(){return(Z()?xZF(W())*20:10)+"px center"}})},_.k(_.qw,{data:I,
alt:"","aria-hidden":"true"}))},
else:function(){return _.k("div",{class:B,style:_.It({"transform-origin":function(){return(Z()?xZF(W())*12:6)+"px center"}})})}}))},"ue");
Gki.idomCompat=!0;var OG=function(a,W,w,Z,N,B){this.getProgressBarRect=a;this.updateProgressBarRect=W;this.getFilmstripYPosition=w;this.setFineScrubbingDraggedTime=Z;this.updateFilmStripDraggedYDistance=N;this.resetFilmStripYOffset=B;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.yP(this.onThrottledSeek,100,this)},Dod=function(a,W,w){return function(Z){a.handleClick(Z,W(),w())}},moE=function(a,W){return function(w){f2k(a,
w,do0(w),W())}},VeI=function(a,W){return function(w){f2k(a,w,{x:w.clientX,
y:w.clientY},W())}},H_0=function(a,W,w){return function(Z){var N=W(),B=w();
zRd(a,Z,do0(Z),N,B,!0);if(B.onTouchMove)B.onTouchMove(N)}},Ebd=function(a,W,w){return function(Z){yIf(a,Z,W(),w())}},aPz=function(a,W){return function(){a.handleMouseLeave(W())}},W_E=function(a,W,w){return function(){var Z=W(),N=w();
Sz(a,Z,N);if(N.onTouchEnd)N.onTouchEnd(Z)}},wPa=function(a,W,w){return function(){var Z=W(),N=w();
Sz(a,Z,N);if(N.onTouchEnd)N.onTouchEnd(Z)}},ZvX=function(a,W,w){return function(){Sz(a,W(),w())}},N5E=function(a){return function(W){if(W.keyCode===39){var w,Z;
(w=a())==null||(Z=w.playerApi)==null||Z.seekBy(5,void 0,void 0,72)}else if(W.keyCode===37){var N,B;(N=a())==null||(B=N.playerApi)==null||B.seekBy(-5,void 0,void 0,71)}}},tBf=function(a,W,w){return function(Z){!w().disableScrubbing&&a.startPosition&&yIf(a,Z,W(),w())}},$_D=function(a,W,w){return function(){if(!w().disableScrubbing)if(a.startPosition){var Z=W(),N=w();
Sz(a,W(),w());if(N.onTouchEnd)N.onTouchEnd(Z)}else W().setState({isDragging:!1})}},do0=function(a){a=a.touches[0];
return{x:a.clientX,y:a.clientY}},yIf=function(a,W,w,Z){if(W.buttons!==1){if(W.movementX||W.movementY)W.preventDefault(),W.stopPropagation(),a=B5n(a,w,W.clientX),w.setState({isHovering:!0,
hoveredTime:a*w.videoDuration})}else lPE(w),zRd(a,W,{x:W.clientX,y:W.clientY},w,Z,!1)};
OG.prototype.handleMouseLeave=function(a){lPE(a)};
var lPE=function(a){a.isHovering&&a.setState({isHovering:!1,hoveredTime:0})},f2k=function(a,W,w,Z){a.startPosition||(a.startPosition=w,a.updateProgressBarRect(),a.controlsWereVisibleBeforeDragging=Z.controlsVisible,W.stopPropagation(),_.r("medium_progress_bar_modification")||W.preventDefault())},zRd=function(a,W,w,Z,N,B){if(a.startPosition)if(B&&N.isInlinePlayback&&a.startPosition&&!a.hasDraggedTheMinimumDistance&&Math.abs(w.y-a.startPosition.y)>Math.abs(w.x-a.startPosition.x))Sz(a,Z,N);
else if(W.preventDefault(),W.stopPropagation(),Z.videoDuration&&(a.startPosition&&!a.hasDraggedTheMinimumDistance&&(a.hasDraggedTheMinimumDistance=Math.abs(w.x-a.startPosition.x)>=1),N.enableFineScrubbing&&(a.startPosition&&(a.isDraggedForFineScrubbing=-(w.y-a.startPosition.y)>=60),!a.startPosition||w.y>=a.startPosition.y||(Z.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:lRC(Z.draggedTime,Z,N.chapterData)}),a.setFineScrubbingDraggedTime(Z.draggedTime),a.updateFilmStripDraggedYDistance(a.startPosition.y,
w.y,Z))),a.hasDraggedTheMinimumDistance)){W=B5n(a,Z,w.x);if(a.isDraggedForFineScrubbing){var I;(I=Z.playerApi)==null||I.pauseVideo();Z.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:Z.draggedTime,filmStripXDistance:lRC(W*Z.videoDuration,Z,N.chapterData)})}N.enableFineScrubbing&&(!N.enableFineScrubbing||a.getFilmstripYPosition(Z)<68)||Z.setState({draggedTime:W*Z.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:a.controlsWereVisibleBeforeDragging});var X;(X=
N.cancelAutohideControlsFn)==null||X.call(N)}},Sz=function(a,W,w){var Z=w.enableFineScrubbing&&W.fineScrubbingActiveState!=="off";
if(W.isDragging||Z){Z={isDragging:!1,playedTime:W.draggedTime,controlsVisible:a.controlsWereVisibleBeforeDragging};w.enableFineScrubbing&&W.fineScrubbingActiveState!=="on"&&(a.resetFilmStripYOffset(),Z.fineScrubbingActiveState="off");var N=N===void 0?yBF:N;var B=_.nS(0);B&&N&&_.s_(B,N,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(W.playedTime*1E3),endMediaTimeMs:Math.round(W.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});W.setState(Z);
a.seekThrottle.fire(W.draggedTime,W,7);_.r("mweb_new_progress_bar_play_on_seek")&&a.resumeVideo(W);w.unmuteOnSeek&&(w=W.playerApi,W.volumeMuted&&(w==null||w.unMute()))}else W.setState({controlsVisible:!W.controlsVisible}),(B=w.triggerAutohideControlsAfterDelayFn)==null||B.call(w);a.startPosition=null;a.hasDraggedTheMinimumDistance=!1;a.isDraggedForFineScrubbing=!1;a.controlsWereVisibleBeforeDragging=!1};
OG.prototype.handleClick=function(a,W,w){this.updateProgressBarRect();a.stopPropagation();a=B5n(this,W,a.clientX)*W.videoDuration;W.setState({playedTime:a});if(W.playerState!==2){var Z;(Z=w.triggerAutohideControlsAfterDelayFn)==null||Z.call(w)}this.seekThrottle.fire(a,W,7)};
var B5n=function(a,W,w){a=a.getProgressBarRect(W);return _.M9(0,(w-a.left)/a.width,1)};
OG.prototype.resumeVideo=function(a){if(a.draggedTime<a.videoDuration){var W;(W=a.playerApi)==null||W.playVideo()}};
OG.prototype.onThrottledSeek=function(a,W,w){if(W=W.playerApi){var Z;if((Z=W.getVideoData())==null?0:Z.isLive)Z=this.getProgressState(W),a+=(Z==null?void 0:Z.seekableStart)||0;W.seekTo(a,void 0,void 0,void 0,w)}};
OG.prototype.getProgressState=function(a){var W=a==null?void 0:a.getPresentingPlayerType();return a==null?void 0:a.getProgressState(W)};var XPz,PqX,vfK,ofn,IPd,kHf,U_9,Ovk,S0I;XPz=_.xQ(function(a){var W=a.progressBarProps;var w=a.config;var Z=a.progressBarWidthPx;var N=a.chapterData;var B=gPe(W,function(){return w().isShortsPage}),I=function(){return!W().isHovering&&!w().isShortsPage};
a={};var X=_.W$("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(a.ytPlayerStoryboardHostMwebShorts=function(){return w().isShortsPage&&!1},a));
return _.k("yt-player-storyboard",null,_.k(_.Y,{cond:function(){return W().isDragging||W().isHovering},
then:function(){return _.k(_.Y,{cond:B,then:function(v){return _.k(_.Y,{cond:I,then:function(){return _.k("div",{class:X,"aria-hidden":"true"},_.k(IPd,{props:W,config:w,isBigboard:!0,chapterData:N}))},
else:function(){return _.k(PqX,{props:W,frame:v,config:w,progressBarWidthPx:Z,chapterData:N})}})}})}}))},"ve");
_.gf2=_.xQ(function(a){var W=a.progressBarProps;var w=gPe(W,a.isShortsPage);return _.k("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.k(_.Y,{cond:function(){return W().isDragging||W().isHovering},
then:function(){return _.k(_.Y,{cond:w,then:function(Z){return _.k(vfK,{frame:Z,props:W,isBigboard:!0})}})}}))},"we");
PqX=_.xQ(function(a){var W=a.props;var w=a.frame;var Z=a.config;var N=a.progressBarWidthPx;a=a.chapterData;var B={};B=_.W$("ytPlayerStoryboardHost",(B.ytPlayerStoryboardHostMwebShorts=function(){return Z().isShortsPage&&!1},B.ytPlayerStoryboardHostInlinePlayer=function(){return Z().isInlinePlayer},B.ytPlayerStoryboardHostFadeIn=function(){return Z().useFadeInAnimation},B));
return _.k("div",{class:B,"aria-hidden":"true",style:function(){var I=W(),X=IRD(w()),v=N();I=Pox(I)/I.videoDuration;var U=v*I,O=X/2+6;X=v-(X/2+6);return"left: "+(U<=O?O/v*100:U>=X?X/v*100:I*100)+"%"}},_.k(_.Y,{cond:function(){var I=W();
return!(Z().isShortsPage&&I.videoDuration<15)},
then:function(){return _.k(vfK,{frame:w,props:W,isBigboard:!1})}}),_.k(IPd,{props:W,
config:Z,isBigboard:!1,chapterData:a}))},"xe");
vfK=_.xQ(function(a){var W=a.frame;var w=a.props;var Z=a.isBigboard;var N=function(){var X,v;return(v=(X=w().playerApi)==null?void 0:X.getVideoContentRect())!=null?v:{width:0,height:0}},B=function(){return IRD(W())},I=function(){var X=W();
return X?X.height/X.rows:0};
a={};a=_.W$((a.ytPlayerStoryboardBigboardImageWrapper=Z,a.ytPlayerStoryboardStoryboardImageWrapper=function(){return!Z()},a));
return _.k("div",{class:a,style:function(){return"width: "+(Z()?N().width:B())+"px; height: "+(Z()?N().height:I())+"px;"}},_.k(ofn,{frame:W,
storyboardWidth:B,storyboardHeight:I,storyboardScale:function(){return(Z()?N().width:B())/B()}}))},"ye");
ofn=_.xQ(function(a){var W=a.frame;var w=a.storyboardWidth;var Z=a.storyboardHeight;var N=a.storyboardScale;var B=function(){var I=W().row,X=W().column,v=w(),U=Z(),O=N();return{left:-X*v*O,top:-I*U*O}};
return _.k("img",{src:function(){return W().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+B().left+"px; top: "+B().top+"px; width: "+W().width*N()+"px; height: "+W().height*N()+"px;"}})},"ze");
IPd=_.xQ(function(a){var W=a.props;var w=a.config;var Z=a.isBigboard;var N=a.chapterData;a={};a=_.W$("ytPlayerStoryboardMetadata",(a.ytPlayerStoryboardMetadataBigboard=Z,a));return _.k("div",{class:a},_.k(_.Y,{cond:Z,then:function(){return _.k(_.Ha,null,_.k(kHf,{props:W,config:w}),_.k(_.Y,{cond:function(){a:{var B=W();var I=w(),X=N(),v;if((I==null?0:I.activeChapter)&&((v=_.A(I==null?void 0:I.activeChapter,q9))==null?0:v.title))B=!0;else{I=_.l(u3e(X));for(I=I.next();!I.done;I=I.next()){B=(I=_.A(I.value,
VwH))&&XDH(B,I);break a}B=!1}}return B},
then:function(){return _.k(U_9,{props:W,config:w,isBigboard:!0,chapterData:N})}}))},
else:function(){return _.k(_.Ha,null,_.k(U_9,{props:W,config:w,isBigboard:!0,chapterData:N}),_.k(kHf,{props:W,config:w}))}}))},"Ae");
kHf=_.xQ(function(a){var W=a.props;var w=a.config;a={};a=_.W$("ytPlayerStoryboardTimestamp",(a.ytPlayerStoryboardTimestampShorts=function(){return w().isShortsPage},a.ytPlayerStoryboardTimestampIsHovering=function(){return W().isHovering||w().isShortsPage&&!0},a));
return _.k("div",{class:a},_.k(_.Ha,null,function(){return _.vPF(Pox(W()))}))},"Be");
U_9=_.xQ(function(a){var W=a.props;var w=a.config;var Z=a.isBigboard;var N=a.chapterData;a={};Z=_.W$("ytPlayerStoryboardTitle",(a.ytPlayerStoryboardTitleBigboard=Z,a));return _.k("div",{class:Z},_.k(_.Y,{cond:function(){return!w().isShortsPage},
then:function(){return _.k(Ovk,{props:W,activeChapter:function(){return w().activeChapter},
chapterData:N})}}))},"Ce");
Ovk=_.xQ(function(a){var W=a.props;var w=a.activeChapter;var Z=a.chapterData;return _.k(_.Ha,null,_.k(_.k6,{each:function(){return u3e(Z())},
keyBy:"INDEX"},function(N){return _.k(_.Ha,null,_.k(_.Y,{cond:function(){return _.A(N(),VwH)&&XDH(W(),_.A(N(),VwH))},
then:function(){return _.k(S0I,{timedMarker:function(){return _.A(N(),VwH)}})}}))}),_.k(_.Y,{cond:function(){var N;
return w()&&((N=_.A(w(),q9))==null?void 0:N.title)},
then:function(N){return _.k(_.k_,{text:N,noPreWrap:!0})}}))},"De");
S0I=_.xQ(function(a){var W=a.timedMarker;return _.k(_.Ha,null,_.k("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.k(_.P$,{icon:function(){return W().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.k(_.k_,{text:function(){return W().label},
noPreWrap:!0}))},"Ee");_.Y00=_.xQ(function(a){var W=a.progressBarProps;var w=a.playheadData;var Z=a.config;a=_.D8();var N=_.D8(),B=_.D8(),I=_.l(_.$1({width:0,left:0},void 0,"NcXsUb")),X=I.next().value,v=I.next().value,U=function(){B.value&&v(B.value.getBoundingClientRect())},O=function(){X().width<=0&&U();
return X()};
zP("resize",U);var S=new OG(O,function(){},function(){return 0},function(){},function(){},function(){}),T=function(){return W()};
I=_.l(_.$1(!1,void 0,"ZsF6Xc"));var p=I.next().value,h=I.next().value;I=_.$_(function(){h(!0);Z().position===2?setTimeout(function(){U()},100):U()});
var L=_.$_(function(){h(!1);aPz(S,T)()}),F=_.$_(function(QF){Z().doSeekOnClick&&Dod(S,T,Z)(QF);
return!1}),x=_.$_(function(QF){moE(S,T)(QF);
return!1}),G=_.$_(function(QF){VeI(S,T)(QF);
return!1}),V=_.$_(function(QF){H_0(S,T,Z)(QF);
return!1}),d=_.$_(function(QF){Ebd(S,T,Z)(QF);
return!1}),ZD=_.$_(function(){W_E(S,T,Z)();
return!1}),aC=_.$_(function(){wPa(S,T,Z)();
return!1}),Bv=_.$_(function(){ZvX(S,T,Z)();
return!1}),Am=_.$_(function(QF){N5E(T)(QF);
return!1});
zP("mousemove",tBf(S,T,Z));zP("mouseup",$_D(S,T,Z));_.AS(function(){Ea7(N.value);h(!1);U();$_D(S,T,Z)()});
var e9={};e9=_.W$("ytPlayerProgressBarHost",function(){return Z().className},(e9.ytPlayerProgressBarHostReadOnly=function(){return Z().disableScrubbing},e9.ytPlayerProgressBarHostHidden=function(){return Z().hideProgressBar&&!p()},e9.ytPlayerProgressBarHostLowerPlayer=function(){return Z().position===0},e9.ytPlayerProgressBarHostBottomEdge=function(){return Z().position===1},e9.ytPlayerProgressBarHostBottomInset=function(){return Z().position===2},e9.ytPlayerProgressBarHostCustom=function(){return Z().position===
3},e9));
var cv={},C7=_.W$("ytPlayerProgressBarBackground",(cv.ytPlayerProgressBarBackgroundHide=function(){return Z().position===2&&!p()&&!W().isDragging},cv));
cv={};cv=_.W$("ytPlayerProgressBarDragContainer",(cv.ytPlayerProgressBarDragContainerBottomEdge=function(){return Z().position===1},cv));
var RC={};RC=_.W$("ytPlayerProgressBarProgressBar",(RC.ytPlayerProgressBarProgressBarInset=function(){return Z().position===2},RC.ytPlayerProgressBarProgressBarInsetMinimized=function(){return Z().position===2&&!p()&&!W().isDragging},RC));
var G8=function(){return Math.floor(Qoe(W())*100)};
return _.k("yt-progress-bar",{el:a,class:e9},_.k(_.Y,{cond:function(){return Z().position===2},
then:function(){return _.k("div",{class:C7})}}),_.k("div",{el:N,
"on:click":F,"on:touchstart":x,"on:touchmove":V,"on:mouseenter":I,"on:mousedown":G,"on:mouseleave":L,"on:mousemove":d,"on:mouseup":aC,"on:touchend":ZD,"on:touchcancel":Bv,"on:keydown":Am,class:cv,role:"slider","aria-valuenow":G8,"aria-valuetext":function(){return G8()+"%"},
tabindex:0,"aria-label":_.P_("SEEK_SLIDER")},_.k("div",{el:B,class:RC},_.k(uLd,{progressBarProps:W,config:Z,highContrast:function(){return!!Z().isInlinePlayback}}),_.k(_.Y,{cond:function(){return Z().chapterData&&Cyv(Z().chapterData)},
then:function(){return _.k(b_E,{progressState:W,multiMarkersPlayerBarRenderer:function(){return Z().chapterData},
progressBarWidth:function(){return X().width}})},
else:function(){return _.k(CYz,{progressBarProps:W,config:Z})}}),_.k(Gki,{progressBarProps:W,
playheadData:w,interpolateDotPosition:function(){return Z().position!==2},
hidePlayhead:function(){return Z().playheadDotBehavior===1&&!p()}}))),_.k(XPz,{progressBarProps:W,
config:function(){return{activeChapter:NRD(W(),Z().chapterData),getProgressBarWidthPx:function(){return O().width},
isShortsPage:!!Z().isShortsPage,isInlinePlayer:!!Z().isInlinePlayback,useFadeInAnimation:!!Z().isInlinePlayback}},
progressBarWidthPx:function(){return X().width},
chapterData:function(){return Z().chapterData}}))},"Fe");
_.Y00.idomCompat=!0;Object.assign({},_.GTU(),{setState:function(){},
domMeasurements:{},appApi:_.qOH(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var T5k;
_.K_d=_.xQ(function(){var a,W=(a=_.xX(oPF().playerApi))!=null?a:void 0;a=_.l(_.$1(!1,void 0,"HLFBmb"));var w=a.next().value,Z=a.next().value;a=_.l(_.$1(!1,void 0,"lHH9bc"));var N=a.next().value,B=a.next().value;a=_.l(_.$1(!1,void 0,"zsY7yd"));var I=a.next().value,X=a.next().value;a=_.l(_.$1(!1,void 0,"KeHQgc"));var v=a.next().value,U=a.next().value;a=_.l(_.$1(0,void 0,"gLLCj"));var O=a.next().value,S=a.next().value;a=_.l(_.$1(0,void 0,"s3RYkf"));var T=a.next().value,p=a.next().value;a=_.l(_.$1(!1,void 0,
"Dn608e"));var h=a.next().value,L=a.next().value;a=_.l(_.$1(0,void 0,"AnkH1b"));var F=a.next().value,x=a.next().value;a=_.l(_.$1(0,void 0,"QYNL0b"));var G=a.next().value,V=a.next().value;a=_.l(_.$1("",void 0,"Yzw45d"));var d=a.next().value,ZD=a.next().value;a=_.l(_.$1(-1,void 0,"iiVI0c"));var aC=a.next().value,Bv=a.next().value,Am=_.XT(function(){var e9={controlsVisible:w(),isOverlayHidden:N(),shouldWaitToHideControls:I(),isDragging:v(),isHovering:h(),videoDuration:F(),playedTime:G(),videoId:d(),
draggedTime:T(),hoveredTime:O(),playerState:aC()};return Object.assign({},_.GTU(),e9,{domMeasurements:{},setState:function(cv){cv.controlsVisible!==void 0&&Z(cv.controlsVisible);cv.isOverlayHidden!==void 0&&B(cv.isOverlayHidden);cv.shouldWaitToHideControls!==void 0&&X(cv.shouldWaitToHideControls);cv.isDragging!==void 0&&U(cv.isDragging);cv.isHovering!==void 0&&L(cv.isHovering);cv.draggedTime!==void 0&&p(cv.draggedTime);cv.hoveredTime!==void 0&&S(cv.hoveredTime);cv.videoDuration!==void 0&&x(cv.videoDuration);
cv.playedTime!==void 0&&V(cv.playedTime);cv.videoId!==void 0&&ZD(cv.videoId);cv.playerState!==void 0&&Bv(cv.playerState)},
appApi:_.qOH(),playerApi:W})},void 0,"ZW7y9");
_.pF(function(){W==null||W.addEventListener("onVideoProgress",mZ8(Am));W==null||W.addEventListener("onVideoDataChange",dZD(Am));W==null||W.addEventListener("onStateChange",DZC(Am))});
_.Ao(function(){if(W==null?0:W.isReady())W==null||W.removeEventListener("onVideoProgress",mZ8(Am)),W==null||W.removeEventListener("onVideoDataChange",dZD(Am)),W==null||W.removeEventListener("onStateChange",DZC(Am))});
return _.k("desktop-shorts-player-controls",null,_.k(T5k,{playerControlsProps:Am}))},"Ge");
T5k=_.xQ(function(a){var W=a.playerControlsProps;return _.k("div",{class:"desktopShortsPlayerControlsWizHost"},_.k(_.Y00,{progressBarProps:W,config:function(){return{isShortsPage:!0,hideProgressBar:W().videoDuration<30&&W().playerState!==2&&!W().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"He");_.En(_.YzH);_.pPk=_.xQ(function(a){var W=a.data;return _.k("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.k(_.ot,{command:function(){return W().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.k(_.Y,{cond:function(){return W().iconName},
then:function(w){return _.k(_.P$,{icon:w})}}),_.k("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return W().text}),_.k(_.Y,{cond:function(){return W().showEndChevron},
then:function(){return _.k(_.P$,{icon:"CHEVRON_RIGHT"})}})))},"Ie");var rYf=_.xQ(function(a){var W=a.data;var w=a.overlayDensity;a={};return _.k("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.k(_.Ax,{data:function(){return W().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(Z){var N=Z.data;
return _.k(_.Sd,{data:function(){return(w==null?void 0:w())===1?Object.assign({},N(),{avatar:{avatarViewModel:Object.assign({},_.A(N().avatar,_.fj),{avatarImageSize:"AVATAR_SIZE_48"})}}):N()}})}}),_.k(_.Ax,{data:function(){return W().avatarStackViewModel}},{avatarStackViewModel:function(Z){return _.k(_.Yl,{data:Z.data})}}),_.k(_.k_,{className:_.W$("ytReelChannelBarViewModelChannelName",(a.ytReelChannelBarViewModelChannelNameLarge=function(){return(w==null?void 0:w())===1},a)),
text:function(){return W().channelName},
linkInheritColor:!0,userInput:!0}),_.k("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.k(_.Ax,{data:function(){return W().subscribeButtonViewModel}},{subscribeButtonViewModel:function(Z){var N=Z.data;
return _.k(k7T,{data:function(){return(w==null?void 0:w())===1?Object.assign({},N(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},N().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):N()},
isOverlay:!1})},
buttonViewModel:_.F7})),_.k("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.k(_.Ax,{data:function(){var Z,N;return(N=_.A((Z=W())==null?void 0:Z.sponsorButtonViewModel,OlH))==null?void 0:N.sponsorButton}},{buttonViewModel:function(Z){return _.k(_.F7,{data:Z.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Je");var AY9=_.xQ(function(a){var W={};return _.k("yt-reel-multi-format-link-view-model",{class:_.W$("ytReelMultiFormatLinkViewModelHost",(W.ytReelMultiFormatLinkViewModelHostTall=!0,W.ytReelMultiFormatLinkViewModelHostLarge=function(){var w;return((w=a.overlayDensity)==null?void 0:w.call(a))===1},W))},_.k(_.ot,{ariaLabel:function(){return a.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.rJ(a.data().command)},
dangerousStopPropagation:!1},_.k("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.k(_.Y,{cond:function(){return a.data().icon},
then:function(w){return _.k(_.qw,{data:w,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.k(_.k_,{text:function(){return a.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ke");
AY9.idomCompat=!0;var hwI=_.xQ(function(a){var W=a.data;var w=a.overlayDensity;var Z=_.D8();a=_.l(_.$1(!1,void 0,"xDqzhe"));var N=a.next().value,B=a.next().value;a=_.l(_.$1(!1,void 0,"LI9CFd"));var I=a.next().value,X=a.next().value,v=function(){return W().isMultiLineSa},U=_.X7(dAx,function(){var V,d;
return(d=(V=W().toggleableContent)==null?void 0:V.entityKey)!=null?d:""}),O=function(){var V,d,ZD;
return(ZD=W().toggleableContent)!=null&&ZD.entityKey?(d=(V=U())==null?void 0:V.value)!=null?d:!1:!1},S=function(){var V,d,ZD,aC,Bv,Am,e9,cv,C7,RC,G8;
return W().toggleableContent?O()?(V=W().toggleableContent)==null?void 0:V.toggledData:(d=W().toggleableContent)==null?void 0:d.untoggledData:{primaryText:(cv=(ZD=W().defaultContent)==null?void 0:ZD.primaryText)!=null?cv:W().text,secondaryText:(aC=W().defaultContent)==null?void 0:aC.secondaryText,onTapCommand:(C7=(Bv=W().defaultContent)==null?void 0:Bv.onTapCommand)!=null?C7:W().onTapCommand,icon:(RC=(Am=W().defaultContent)==null?void 0:Am.icon)!=null?RC:W().icon,image:(G8=(e9=W().defaultContent)==
null?void 0:e9.image)!=null?G8:W().image}},T=function(){return v()?W().trailingTapTarget:void 0};
a=function(V,d){return function(){return N()?d:V}};
var p={leadingSection:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};a={};a=_.W$((a.ytShortsSuggestedActionViewModelStaticHost=function(){return!v()},a.ytShortsSuggestedActionViewModelDynamicHost=v,a.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return v()&&I()},a.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return v()&&!I()},a));
_.AS(function(){if(v()){var V=0,d;if((d=W().animationParams)==null?0:d.shouldExpand){var ZD,aC;V=((aC=(ZD=W().animationParams)==null?void 0:ZD.expansionDelaySecs)!=null?aC:0)*1E3}var Bv,Am=((Bv=W().animationParams)==null?0:Bv.shouldExpand)?setTimeout(function(){B(!0)},V):void 0,e9,cv;
V=((e9=W().animationParams)==null?0:e9.visibilityDelaySecs)?((cv=W().animationParams)==null?NaN:cv.visibilityDelaySecs)*1E3:0;var C7=setTimeout(function(){X(!0)},V);
_.Ao(function(){Am&&clearTimeout(Am);clearTimeout(C7)})}});
var h=function(V){_.cX(V,Object.assign({},{form:{element:Z.value}}))},L=_.$_(function(){var V,d=(V=S())==null?void 0:V.onTapCommand;
d&&h(d)}),F=_.$_(function(){var V,d;
if(V=(d=T())==null?void 0:d.onTapCommand)return h(V),!1}),x=_.It({"vertical-align":"bottom",
"border-radius":function(){var V;return v()?((V=W().defaultContent)==null?0:V.isCircleImage)?"50%":"4px":"0px"},
width:function(){var V,d,ZD;return v()&&((V=W().defaultContent)==null?0:V.imageSize)?((ZD=(d=W().defaultContent)==null?void 0:d.imageSize)!=null?ZD:24)+"px":null},
height:function(){var V,d,ZD;return v()&&((V=W().defaultContent)==null?0:V.imageSize)?((ZD=(d=W().defaultContent)==null?void 0:d.imageSize)!=null?ZD:24)+"px":null}}),G={};
return _.k("yt-shorts-suggested-action-view-model",{class:a,el:Z},_.k("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.k("button",{class:_.W$(function(){return v()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var V;
return(V=W().useFullRoundedBorder)!=null&&V?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!T()&&v()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":v()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var V;
return(V=W().disableFixedHeight)!=null&&V?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(G.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(w==null?void 0:w())===1},G)),
"on:click":L},_.k(_.g2,{model:{color:4}}),_.k("div",{class:_.W$(function(){return v()?p.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.k(_.Y,{cond:function(){var V;
return(V=S())==null?void 0:V.image},
then:function(V){return _.k(_.qw,{data:V,alt:"",className:function(){return v()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:x})}}),_.k(_.Y,{cond:function(){var V,d;
return(V=S())==null?void 0:(d=V.icon)==null?void 0:d.iconType},
then:function(V){return _.k(_.P$,{icon:V,active:O,className:function(){return v()?N()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.k("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.k(_.Y,{cond:function(){var V;
return(V=S())==null?void 0:V.primaryText},
then:function(V){return _.k("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.k(_.k_,{text:V}))}}),_.k(_.Y,{cond:function(){var V;
return(V=S())==null?void 0:V.secondaryText},
then:function(V){return _.k("div",{class:p.secondaryText},_.k(_.k_,{text:V}))}}))),_.k(_.Y,{cond:T,
then:function(V){return _.k("div",{class:p.trailingSection,"aria-label":function(){var d;return(d=V().a11yLabel)!=null?d:""},
"on:click":F,role:"button",tabindex:0},_.k(_.g2,{model:{color:4}}),_.k(_.P$,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Le");var iva=_.xQ(function(a){var W=a.data;var w=a.overlayDensity;var Z=_.D8();a=_.$_(function(I){if(_.QfD(_.xD(I),Z.value,["A".toString()]))return!1;(I=W().truncatedTextOnTapCommand)&&_.cX(I);return!1});
var N={},B={};return _.k("yt-shorts-video-title-view-model",{el:Z,class:_.W$("ytShortsVideoTitleViewModelHost",(N.ytShortsVideoTitleViewModelHostClickable=function(){return!!W().truncatedTextOnTapCommand},N)),
"on:click":a},_.k("h2",{class:_.W$("ytShortsVideoTitleViewModelShortsVideoTitle",(B.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(w==null?void 0:w())===1},B))},_.k(_.k_,{text:function(){return W().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Me");_.cYi=_.xQ(function(a){var W=a.data;var w=a.overlayDensity;return _.k("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.k(_.Ax,{data:function(){return W().metadataItems}},{badgeViewModel:function(Z){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(_.DU,{data:Z.data}))},
playerDisclosureViewModel:function(Z){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(_.pPk,{data:Z.data}))},
shortsSuggestedActionViewModel:function(Z){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(hwI,{data:Z.data,overlayDensity:w}))},
reelChannelBarViewModel:function(Z){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(rYf,{data:Z.data,overlayDensity:w}))},
reelMultiFormatLinkViewModel:function(Z){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(AY9,{data:Z.data,overlayDensity:w}))},
shortsVideoTitleViewModel:function(Z){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(iva,{data:Z.data,overlayDensity:w}))},
reelSoundMetadataViewModel:function(Z){return _.k("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.k(_.RHz,{data:Z.data,overlayDensity:w}))}}))},"Ne");var ewK=_.xQ(function(a){var W=_.Qn(a,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),w=W.size,Z=W.onTap,N=W.disabled,B=W.tooltipText;return _.k("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.k(EB,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:w(),disabled:N(),tooltipText:B(),onTap:Z}},
iconName:a.iconType}))},"Oe"),nf9=_.xQ(function(a){function W(O){O.stopPropagation();
O.code==="ArrowUp"?(O.preventDefault(),rUe(X.value)):O.code==="ArrowDown"?(O.preventDefault(),AUI(X.value)):O.code==="KeyM"?Kr8():(O.code==="KeyK"||O.code==="Space")&&pDF(v())}
var w=_.Qn(a,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});a=w.previousButtonDisabled;var Z=w.nextButtonDisabled,N=w.data,B=w.playabilityStatus,I=w.previewThumbnail,X=_.D8(),v=_.Au(_.J4E),U;_.pF(function(){(U=_.hv(X.value))&&U.addEventListener("keydown",W)});
_.Ao(function(){var O;(O=U)==null||O.removeEventListener("keydown",W)});
w=function(){var O,S,T;return(O=N())==null?void 0:(S=O.reelPlayerOverlayRenderer)==null?void 0:(T=S.likeButton)==null?void 0:T.likeButtonRenderer};
return _.k("ytd-shorts-miniplayer-overlay",{el:X,class:"ytdShortsMiniplayerOverlayHost"},_.k("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.It({"background-image":function(){var O=I();return O?'url("'+_.Dg(O.thumbnails)+'")':""}})}),_.k("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.k("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.k(ewK,{iconType:function(){var O=v();
return O===2||O===-1||O===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){pDF(v())},
tooltipText:function(){var O=v();return O===1||O===3?_.P_("PLAYER_LABEL_PAUSE"):_.P_("PLAYER_LABEL_PLAY")}}),_.k(_.YzH,null)),_.k("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.k(ewK,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:a,onTap:function(){rUe(X.value)},
tooltipText:_.P_("PREVIOUS_VIDEO_LABEL")}),_.k(ewK,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:Z,onTap:function(){AUI(X.value)},
tooltipText:_.P_("NEXT_VIDEO_LABEL")}),_.r("web_shorts_pip_like_button")?_.k("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.k(vrJ,{buttonTooltipPosition:"left",data:w,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.k("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.k(_.Y,{cond:function(){var O,S;return _.A((O=N())==null?void 0:(S=O.reelPlayerOverlayRenderer)==null?void 0:S.metapanel,
_.gSR)},
then:function(O){return _.k("div",{class:_.W$("ytdShortsMiniplayerOverlayInteractive")},_.k(_.cYi,{data:O}))}})),_.k("div",{class:_.W$("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var O;return!((O=N())==null||!O.adsOverlay)||B()&&!Mqe(B())}},_.k("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.k(_.K_d,null)))),_.k(_.Y,{cond:function(){var O=N(),S,T;
O=_.A(O==null?void 0:(S=O.adsOverlay)==null?void 0:(T=S.fulfillmentContent)==null?void 0:T.fulfilledLayout,dTA);return _.A(O==null?void 0:O.renderingContent,yD6)},
then:function(O){return _.k("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.k(IcL,{data:O}))}}))},"Pe");var hMH=_.xQ(function(){var a=_.l(_.$1(new _.Bh(NaN,NaN),void 0,"HSMFk")),W=a.next().value,w=a.next().value;a=_.l(_.$1(!1,void 0,"uaAxwf"));var Z=a.next().value,N=a.next().value,B=_.l(_.$1(!1,void 0,"nVSwef"));a=B.next().value;var I=B.next().value,X=_.K().resolve(_.bV).miniplayerPropSignalMap[0],v=X.data,U=X.shortsData,O=X.nextButtonDisabled,S=X.shortsPreviewThumbnail,T=X.previousButtonDisabled,p=X.externalPlaylistData;B=X.toastData;var h=X.playabilityStatus,L=X.isDisabled,F=X.playerVe,x=X.closeVe;
X=_.Au(_.kB);_.GP("yt-pip-window-resized",function(ZD){w(ZD)});
_.GP("yt-activate-pip-miniplayer",function(){return _.P(function(ZD){I(!0);_.Xd(ZD)})});
var G=function(){var ZD;return!((ZD=p())==null||!ZD.contents)&&Z()},V=function(){var ZD=W(),aC=!!v(),Bv=G();
ZD=ZD.clone();aC&&(ZD.height-=76);Bv&&(ZD.height-=285);return ZD},d=function(){N(!Z())};
_.Ka(function(){var ZD=F(),aC=_.nS(11),Bv=_.eH(11);aC&&Bv&&ZD&&(_.M1(aC,Bv,ZD),Bv=x())&&(_.RV(aC,ZD,[Bv]),_.Qw(aC,[Bv]))});
return _.k("ytd-pip-container",{class:"ytdPipContainerHost"},_.k(_.Y,{cond:a,then:function(){return _.k(_.qmk,{isDisabled:L,playabilityStatus:h,size:V})}}),_.k(_.Y,{cond:v,
then:function(){return _.k(_.Me0,{data:v,expanded:Z,onExpandClick:d,playlistData:p})}}),_.k(_.Y,{cond:G,
then:function(){return _.k("div",{class:"ytdPipContainerPlaylistPanel"},_.k(_.PzJ,{data:p,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.k(_.Y,{cond:X,
then:function(){return _.k(nf9,{data:U,nextButtonDisabled:O,previousButtonDisabled:T,playabilityStatus:h,previewThumbnail:S})}}),_.k("div",{class:"ytdPipContainerToast"},_.k(_.QPn,{toastData:B})))},"Qe");var YL=function(a,W){var w=this;this.pipController=a;this.JSC$16399_clientRoot=W;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=LSD();this.watchPipEnabled=_.r("web_watch_pip");this.shortsPipEnabled=_.r("web_shorts_pip");this.JSC$16399_watchWhileEnabled=_.r("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;_.oX(_.Cx(),_.e_S,function(Z){w.isSingleOptionSurveyActive=Z});
this.JSC$16399_onPlayerPlayVideo=this.JSC$16399_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);_.ua(_.sn.getInstance(),this.miniplayerServiceActionMap,this.JSC$16399_clientRoot);a.pictureInPictureSupported()&&_.ia("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},iey,bvk,Rwi,sJX,urk,uER;
YL.prototype.handleMediaSessionPipActivation=function(){var a=this,W;return _.P(function(w){_.vE().mediaSessionPipActivation=!0;W=_.K().resolve(_.Gw);return W.isOnWatch()&&a.watchPipEnabled?(_.vE().watchPipActivation=!0,_.jJ2(a,W.data),w.jumpTo(0)):W.isOnShorts()&&a.shortsPipEnabled?(_.vE().shortsPipActivation=!0,_.L_i(a),w.jumpTo(0)):a.isMiniplayerActive()&&a.watchPipEnabled&&!a.watchWhileMode?_.g(w,JY0(a),0):w.jumpTo(0)})};
var JY0=function(a){var W,w,Z,N;return _.P(function(B){if(B.nextAddress==1)return W=!a.miniplayerToPipMode,w=a.playerElement,Z=a.miniplayerData,N=a.watchResponse,_.g(B,a.deactivate(),2);if(B.nextAddress!=3)return W?(_.vE().mediaSessionPipActivation=!0,_.vE().watchPipActivation=!0):_.vE().miniplayerButtonActivation=!0,_.g(B,a.activate(w,Z,N),3);a.miniplayerToPipMode=W;_.Xd(B)})};
YL.prototype.onDownloadedVideoDeleted=function(a){var W,w=_.A((W=this.miniplayerData)==null?void 0:W.watchEndpoint,_.u6),Z,N;w&&((Z=this.watchResponse)==null?void 0:(N=Z.playerResponse)==null?void 0:N.offlineState)!==void 0&&(W=w.videoId)&&a&&W===a&&this.close()};
YL.prototype.onShowMiniplayerCommand=function(a){var W=this,w,Z,N,B,I,X,v,U,O,S,T,p,h;return _.P(function(L){switch(L.nextAddress){case 1:return w=_.A(a,NFV),N=(Z=w)==null?void 0:Z.miniplayerCommand,B=_.A(N,_.u6),N&&B&&!W.active?_.g(L,_.KB.getInstance(),2):L.return();case 2:return I=L.yieldResult,_.g(L,(X=I)==null?void 0:X.get("yt-miniplayer-shown-video-id"),3);case 3:v=L.yieldResult;U=B.videoId;if(!U||v===U)return L.return();O=_.K().resolve(_.Gw);if(O.isOnWatch())return _.jJ(Error("Bj")),L.return();
S={channelItem:{externalId:btoa(U)}};W.readyToResumeVe=_.Ob(121253,void 0,void 0,S);_.vE().showMiniplayerCommandActivation=!0;return _.g(L,_.Cse(W,N,!0),4);case 4:return W.active?(_.T7(W,{readyToResumeVe:W.readyToResumeVe,continueWatching:!0,premiumBranding:!((T=w)==null||!T.showPremiumBranding)}),W.isReadyToResume=!0):_.T7(W,{continueWatching:!0,premiumBranding:!((p=w)==null||!p.showPremiumBranding)}),_.r("ytd_miniplayer_to_wiz")&&_.T7(W,{isReadyToResume:!0}),_.g(L,(h=I)==null?void 0:h.set("yt-miniplayer-shown-video-id",
B.videoId),5);case 5:W.readyToResumeVe=void 0,_.Xd(L)}})};
YL.prototype.init=function(a){this.miniplayerEl?_.jJ(new _.Uw("MiniplayerService already initialized.")):this.miniplayerEl=a};
YL.prototype.isInitialized=function(){var a=!!this.miniplayerEl;a||_.jJ(new _.Uw("MiniplayerService used before initialized."));return a};
_.jJ2=function(a,W){if(a.isInitialized()){var w=_.MpC(W.response,W.playerResponse),Z=_.K().resolve(_.Gw).getPlayerFromWatch();_.vE().currentEndpoint=w.watchEndpoint||null;a.activate(Z,w,W)}};
_.L_i=function(a){if(a.isInitialized()){var W=_.K().resolve(_.Gw).getPlayerFromShorts();a.activate(W)}};
iey=function(a,W){var w;(w=!a.isInitialized())||(w=_.K().resolve(_.Gw).isOnWatch()&&a.watchPipMode,w=!(a.isMiniplayerActive()&&(_.vE().userActivation||_.vE().lockupActivation||w)));if(w)return!1;F_0(a,W)?_.UG(a):uER(a,W);return a.watchPipMode?!_.K().resolve(_.Gw).isOnWatch():!0};
YL.prototype.isMiniplayerActive=function(){return this.active};
var F_0=function(a,W){var w;W=(w=_.A(W,_.u6))==null?void 0:w.videoId;var Z,N;a=(N=_.A((Z=a.miniplayerData)==null?void 0:Z.watchEndpoint,_.u6))==null?void 0:N.videoId;return W!=null&&W===a};
YL.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.E$(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.aV(this.miniplayerEl,"yt-navigate-home-action"))};
_.Cse=function(a,W,w,Z){w=w===void 0?!1:w;var N,B,I;return _.P(function(X){switch(X.nextAddress){case 1:if(a.active){X.jumpTo(2);break}N=_.K().resolve(_.Gw);if(I=(B=a.playerElement)!=null?B:N.getPlayerFromWatch()){X.jumpTo(3);break}return _.g(X,_.K().resolve(_.H$),4);case 4:I=N.getPlayerFromWatch();case 3:if(!I){_.jJ(Error("Dj"));X.jumpTo(2);break}return _.g(X,a.activate(I,Z),2);case 2:return a.active?_.g(X,uER(a,W,w),0):X.return()}})};
YL.prototype.activate=function(a,W,w){var Z=this,N,B,I,X,v,U,O,S,T;return _.P(function(p){switch(p.nextAddress){case 1:if(!Z.isInitialized())return p.return();if(!a)return _.jJ(Error("Dj")),p.return();if(_.tOl()||Z.isMiniplayerActive())var h=!0;else h=_.vE().watchPipActivation||_.vE().watchWhileActivation,_.K().resolve(_.Gw).isOnWatch()&&!h?(_.jJ(new _.Uw("miniplayer activated on watch page")),h=!0):h=_.vE().watchWhileActivation?Z.userDeactivatedWatchWhile||!!document.pictureInPictureElement||kje():
!1;if(h)return NyE(),p.return();N=_.vE().mediaSessionPipActivation;B=_.vE().shortsPipActivation;I=_.vE().watchPipActivation;v=(X=_.vE().watchWhileActivation)||I;U=I||B;if(!Z.pictureInPictureEnabled()||!U){p.jumpTo(2);break}return _.g(p,MBI(Z,N),3);case 3:if(!p.yieldResult)return _.jJ(Error("Cj")),NyE(),p.return();case 2:return Z.setActive(!0),Z.watchResponse=w,Z.playerElement=a,Z.updateMiniplayerData(W),_.g(p,Rwi(Z,a),4);case 4:if(!Z.active)return _.jJ(new _.Uw("miniplayer deactivated during activation")),
Z.removePlayerListeners(),p.return();h=_.K().resolve(_.LB);h.addEventListener("yt-navigate",_.yV(Z,Z.onPlaylistNavigate));h.addEventListener("yt-playlist-data-updated",_.yV(Z,Z.JSC$16399_onPlaylistDataUpdated));Z.JSC$16399_onPlaylistDataUpdated();NyE();Z.JSC$16399_watchWhileEnabled&&_.q00(Z,X);Z.pictureInPictureEnabled()&&Z.shortsPipEnabled&&(Z.shortsPipMode=B,_.Cx().dispatch(DQH(Z.shortsPipMode)));Z.pictureInPictureEnabled()&&Z.watchPipEnabled&&(Z.watchPipMode=I,_.Osm(Z.handleMediaSessionPipActivation));
Z.player&&(O=Z.player.getPlayerState(),S=O===1,_.Cx().dispatch(aUH(O)),_.W_(Z.miniplayerEl,"yt-miniplayer-play-state-changed",[S]),_.vE().isVideoPlaying=S);_.W_(Z.miniplayerEl,"yt-miniplayer-endpoint-changed");QJI(Z);_.x_E(Z);return Z.shortsPipMode||Z.watchPipMode?_.g(p,_.wS(Z.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.r("ytd_miniplayer_to_wiz")?_.g(p,_.wS(Z.miniplayerEl,"yt-activate-miniplayer",[v]),6):_.g(p,_.wS(Z.miniplayerEl,"yt-activate-miniplayer-action",[a,v]),6);case 6:bvk(Z),sJX(Z,!0),
(T=Z.getPlayerElement())==null||T.focusOnPlayer(),_.Xd(p)}})};
YL.prototype.updateMiniplayerData=function(a){this.miniplayerData=a;_.T7(this,{data:a})};
_.x_E=function(a){var W,w,Z=((W=a.miniplayerData)==null?void 0:(w=W.miniplayerRenderer)==null?void 0:w.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";W=a.watchWhileMode||a.watchPipMode?Z&&!_.K().resolve(_.Gw).isOnWatch():Z;_.T7(a,{isDisabled:W});var N,B;w=_.A((N=a.miniplayerData)==null?void 0:(B=N.miniplayerRenderer)==null?void 0:B.minimizedEndpoint,_.A4);W&&w&&_.K().resolve(_.Yt).openSheet({openPopupActionCommand:{openPopupAction:w}},a.miniplayerEl)};
bvk=function(a){if(a.watchResponse&&!urk(a)){var W,w=(W=a.watchResponse.playerResponse)==null?void 0:W.trackingParams;w&&(_.T7(a,{expandVe:_.Ob(35989),closeVe:_.Ob(34699),readyToResumeCloseVe:_.Ob(131070),repositionVe:_.Ob(226204),resizeVe:_.Ob(226205)}),_.T7(a,{playerVe:_.PX(w)}))}};
Rwi=function(a,W){return _.P(function(w){if(w.nextAddress==1)return W.preparePlayer(),_.g(w,W.getPlayerPromise(),2);a.player=w.yieldResult;a.player&&(a.player.addEventListener("onPlayVideo",a.JSC$16399_onPlayerPlayVideo),a.player.addEventListener("onCloseMiniplayer",a.onPlayerCloseMiniplayer),a.player.addEventListener("onExpandMiniplayer",a.onPlayerExpandMiniplayer),a.player.addEventListener("onStateChange",a.onPlayerStateChange));_.Xd(w)})};
_.t=YL.prototype;_.t.JSC$16399_onPlayerPlayVideo=function(a){var W=a.sessionData&&"autonav"in a.sessionData,w;a.sessionData&&a.sessionData.itct&&(w=a.sessionData.itct);var Z=a.watchEndpoint;W=Z&&W?_.aOD(Z,w):_.Vw(a.videoId,a.listId||void 0,w);a.sessionData&&_.fS(_.A(W.commandMetadata,_.mm).url,a.sessionData);uER(this,W)};
_.t.onPlayerExpandMiniplayer=function(){_.UG(this)};
_.t.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.t.onPlayerStateChange=function(){if(this.player){var a=this.player.getPlayerState(),W=a===1;_.Cx().dispatch(aUH(a));_.Cx().dispatch(_.wRH(a));_.W_(this.miniplayerEl,"yt-miniplayer-play-state-changed",[W]);_.vE().isVideoPlaying=W;if(a===0){W=!_.mF.getInstance().isAutoplaySetExplicitly();var w,Z,N,B,I,X,v=(w=this.watchResponse.response)==null?void 0:(Z=w.contents)==null?void 0:(N=Z.twoColumnWatchNextResults)==null?void 0:(B=N.autoplay)==null?void 0:(I=B.autoplay)==null?void 0:(X=I.autoplayExplicitChoiceDialogRenderer)==
null?void 0:X.confirmDialogRenderer;W&&v&&this.player.setAutonavState(1)}a===0&&this.watchWhileMode&&this.deactivate()}};
_.t.onPlaylistNavigate=function(a,W){var w=this,Z,N,B,I,X,v,U;return _.P(function(O){if(O.nextAddress==1){if(!_.A(W.endpoint,_.u6))return O.return();_.vE().currentEndpoint=W.endpoint;_.W_(w.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.K().resolve(_.Gw).isOnWatch()&&(w.watchWhileMode||w.watchPipMode))return O.return();a.stopPropagation();(B=(N=_.A((Z=W.endpoint)==null?void 0:Z.commandMetadata,_.mm))==null?void 0:N.url)&&W.tempData&&!_.T5.isEmpty(W.tempData)&&_.fS(B,W.tempData);I={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};X=new NMV(function(){return w.getPlayerElement()},I,{layer:w.getScreenLayer()});
v=function(S){X.processChunk({endpoint:W.endpoint,data:S})};
CqX(w);w.miniplayerFetchRequest=GHK(w,W.endpoint,v);_.tq(O,2);return _.g(O,w.miniplayerFetchRequest,4)}if(O.nextAddress!=2)return U=O.yieldResult,D_I(w,U),_.qY(O,0);_.Pb(O);_.Xd(O)})};
_.t.JSC$16399_onPlaylistDataUpdated=function(){var a=_.K().resolve(_.LB).getPlaylistData();this.hasPlaylistData=!!a;_.T7(this,{externalPlaylistData:a||{}})};
_.t.close=function(a){if(this.isInitialized())if(a){if(!((this.watchWhileMode||this.watchPipMode)&&_.K().resolve(_.Gw).isOnWatch()||this.shortsPipMode)){var W;(W=this.getPlayerElement())==null||W.stop()}this.deactivate()}else _.qJ().closeMiniplayer(this.miniplayerEl)};
_.t.deactivate=function(a){var W=this,w,Z,N,B;return _.P(function(I){if(I.nextAddress==1){if(!W.isInitialized()||!W.active)return I.return();W.setActive(!1);CqX(W);(w=!!a&&F_0(W,a))&&W.isSingleOptionSurveyActive&&_.aV(W.miniplayerEl,"yt-show-watch-page-survey",[W.isSingleOptionSurveyActive]);return _.g(I,fPD(W),2)}if(I.nextAddress!=3){sJX(W,!1);W.isReadyToResume=!1;W.watchResponse=void 0;W.updateMiniplayerData(void 0);W.shortsPipMode&&(W.shortsPipMode=!1,_.Cx().dispatch(DQH(W.shortsPipMode)),khn(W.pipController),
(Z=W.player)==null||Z.setInternalSize(NaN,NaN));W.watchPipMode&&(W.watchPipMode=!1,khn(W.pipController));(N=W.watchWhileMode)&&_.q00(W,!1);W.removePlayerListeners();var X=_.K().resolve(_.LB);X.removeEventListener("yt-navigate",_.yV(W,W.onPlaylistNavigate));X.removeEventListener("yt-playlist-data-updated",_.yV(W,W.JSC$16399_onPlaylistDataUpdated));_.vE().currentEndpoint=null;_.W_(W.miniplayerEl,"yt-miniplayer-endpoint-changed");W.playerElement=null;NyE();return W.shortsPipMode||W.watchPipMode?I.jumpTo(3):
_.g(I,_.wS(W.miniplayerEl,_.r("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[w,N]),3)}(B=W.player)==null||B.setInternalSize(NaN,NaN);W.player=null;_.Xd(I)})};
var fPD=function(a){var W;return _.P(function(w){W=_.K().resolve(_.Gw);return a.shortsPipMode?_.g(w,W.movePlayerToShorts(a.playerElement),0):_.g(w,W.movePlayerToWatch(a.playerElement),0)})};
YL.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16399_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
YL.prototype.setActive=function(a){this.active=a;this.isSingleOptionSurveyActive?_.aV(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.aV(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Cx().dispatch(_.E_({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.q00=function(a,W){a.watchWhileMode=W;_.T7(a,{watchWhile:W})};
sJX=function(a,W){if(!urk(a))if(a.shortsPipMode||a.watchPipMode){var w;(w=a.player)==null||w.setDocumentPictureInPicture(W)}else{var Z;(Z=a.player)==null||Z.setMinimized(W)}};
urk=function(a){return a.watchWhileMode&&_.r("kevlar_watch_while_counterfactual")};
_.UG=function(a){var W;return _.P(function(w){switch(w.nextAddress){case 1:if(!a.isInitialized())return w.return();_.tq(w,2);return _.g(w,a.miniplayerFetchRequest,4);case 4:_.qY(w,3);break;case 2:_.Pb(w);case 3:a.watchResponse&&a.miniplayerData&&a.miniplayerData.watchEndpoint?(W={url:a.watchResponse.url,endpoint:a.miniplayerData.watchEndpoint,data:a.watchResponse,miniplayer:!0},_.E$(a.miniplayerEl,"yt-navigate-cache",W)):a.miniplayerData&&a.miniplayerData.watchEndpoint&&_.E$(a.miniplayerEl,"yt-navigate",
{endpoint:a.miniplayerData.watchEndpoint}),_.Xd(w)}})};
uER=function(a,W,w){var Z,N,B,I;return _.P(function(X){if(X.nextAddress==1){if(F_0(a,W))return X.return();_.vE().currentEndpoint=W;_.W_(a.miniplayerEl,"yt-miniplayer-endpoint-changed");_.W_(a.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.vE().isVideoPlaying=!1;Z={clientParams:{miniplayer:!0,autoSaveToQueue:!w}};N=new NMV(function(){return a.getPlayerElement()},Z,{layer:a.getScreenLayer(),
parentLayer:0},void 0,a.readyToResumeVe);B=function(v){var U,O,S=Object.assign({},(U=v.playerResponse)==null?void 0:(O=U.playerConfig)==null?void 0:O.playbackStartConfig,{startPaused:!0}),T;w&&((T=v.playerResponse)==null?0:T.playerConfig)&&(v.playerResponse.playerConfig.playbackStartConfig=S);N.processChunk({endpoint:W,data:v})};
CqX(a);a.miniplayerFetchRequest=GHK(a,W,B);_.tq(X,2);return _.g(X,a.miniplayerFetchRequest,4)}if(X.nextAddress!=2)return I=X.yieldResult,D_I(a,I),_.qY(X,0);_.Pb(X);_.Xd(X)})};
YL.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var CqX=function(a){a.miniplayerFetchRequest&&(a.miniplayerFetchRequest.cancel&&a.miniplayerFetchRequest.cancel("Active request obsolete"),a.miniplayerFetchRequest=null)},GHK=function(a,W,w){var Z=_.W7.instance,N,B=(N=_.A(W.commandMetadata,_.mm))==null?void 0:N.url,I;
N=!B||_.r("disable_miniplayer_tempdata")?{}:(I=S1e(B))!=null?I:{};return C4(Z,W,N,window.location.href,"watch",function(X,v){w(v)},function(X){return X!==a.miniplayerFetchRequest})},D_I=function(a,W){var w;
_.P(function(Z){if(!W)return Z.return();a.watchResponse=W;bvk(a);QJI(a);w=_.MpC(W.response,W.playerResponse);if(a.isMiniplayerActive()){W.response&&(a.playerElement.watchNextData=W.response);var N=_.T5.getValueByKeys.apply(_.T5,[W].concat(_.K8(olR)));_.T5.getValueByKeys.apply(_.T5,[W].concat(_.K8(Yu$)))&&N&&_.K().resolve(_.LB).setAutoplayRenderer(N);if(N)if(_.r("kevlar_is_pupi_enabled")){var B,I,X,v,U,O=((B=W.response)==null?0:(I=B.playerOverlays)==null?0:(X=I.playerOverlayRenderer)==null?0:(v=X.autonavToggle)==
null?0:(U=v.autoplaySwitchButtonRenderer)==null?0:U.enabled)?2:1;_.mF.getInstance().setState(O,!1,!1)}else B=L18()?2:1,(O=a.player)==null||O.setAutonavState(B);a.updateMiniplayerData(w);_.x_E(a)}_.Xd(Z)})},QJI=function(a){var W,w,Z=(W=a.watchResponse)==null?void 0:(w=W.playerResponse)==null?void 0:w.playabilityStatus,N;
W=Z==null?void 0:(N=Z.miniplayer)==null?void 0:N.miniplayerRenderer;(W==null?void 0:W.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&W.minimizedEndpoint&&_.Z9(a.miniplayerEl,[W.minimizedEndpoint]);_.T7(a,{miniplayerRenderer:W,playabilityStatus:Z})};
YL.prototype.openToast=function(a,W){_.T7(this,{toastData:{data:a,label:W}})};
_.T7=function(a,W){var w=a.miniplayerEl,Z;for(Z in W)w[Z]=W[Z];(0,a.miniplayerPropSignalMap[1])(W)};
YL.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var a;return this.playerElement?this.playerElement:(a=_.M(this.miniplayerEl).querySelector("#player-container"))==null?void 0:a.firstElementChild};
YL.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var MBI=function(a,W){W=W===void 0?!1:W;var w,Z,N,B,I,X,v;return _.P(function(U){if(U.nextAddress==1){w=navigator.userActivation.isActive||W;if(!w||!a.pictureInPictureSupported())return U.return(!1);Z=d_D(a);N=Z.width;B=Z.height;return _.g(U,a.pipController.openWindow({width:N,height:B}),2)}I=U.yieldResult;X=a.pipController.getWindow();if(!X||!I)return U.return(!1);X.document.body.style.overflow="hidden";v=iEC(X);Uy0(a.pipController,function(){m_z(a);v()});
return U.return(!0)})},d_D=function(a){var W=_.vE().shortsPipActivation,w,Z;
a=W?.5625:(Z=(w=a.player)==null?void 0:w.getVideoAspectRatio())!=null?Z:16/9;w=Math.min(window.innerWidth,window.innerHeight)/2;W=W?0:76;return a>1?new _.Bh(w,W+w/a):new _.Bh(w*a,W+w)},m_z=function(a){var W;
_.P(function(w){W=_.K().resolve(_.Gw);return W.isOnWatch()&&a.watchPipMode||W.isOnShorts()&&a.shortsPipMode?_.g(w,a.deactivate(),0):a.miniplayerToPipMode?_.g(w,JY0(a),0):a.watchPipMode?_.g(w,_.UG(a),0):w.jumpTo(0)})};
YL.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.dU.Object.defineProperties(YL.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
YL[Hy]=[_.O69,rT_];var VBk="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(" "),
zwD="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(" "),Hva="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
yYa="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var EfI=null;var aY9={},Wi2=(aY9.initialized={priority:10,callback:function(a){var W=_.K();W.addProvider({provide:YWe,useClass:gdK});W.addProvider({provide:_.vd0,useFactory:function(){return new ThL}});
W.addProvider({provide:ge,useValue:_.LF("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});W.addProvider({provide:nNR,useValue:5184E6});W.addProvider({provide:C_E,useValue:_.n4()});W.addProvider({provide:EII,useClass:RpV});W.addProvider({provide:e8,useClass:e8});W.addProvider({provide:_.H$,useFactory:function(){return dQl.promise}});
W.addProvider({provide:_.VOT,useFactory:function(){return _.mQJ.promise}});
W.addProvider({provide:H1C,useValue:function(){var X;return((X=_.fA())==null?void 0:X.getPlayer())||null}});
var w={};W.addProvider((w.provide=_.bI,w.useFactory=function(X,v){return function(){return a19(X,v)}},w[Hy]=[ge,
nNR],w));w={};W.addProvider((w.provide=_.W3,w.useClass=UHD,w[Hy]=[ge,nNR],w));w={};W.addProvider((w.provide=_.shv,w.useClass=TEd,w[Hy]=[_.W3],w));W.addProvider({provide:N2,useFactory:_.Cx});W.addProvider({provide:vN,useFactory:_.Cx});W.addProvider({provide:wlD,useFactory:_.Cx});W.addProvider({provide:YPH,useFactory:_.Cx});W.addProvider({provide:_.Ab,useFactory:_.Cx});W.addProvider({provide:f2,useValue:_.l8});W.addProvider({provide:Bfd,useClass:eOE});W.addProvider({provide:P_L,useClass:I5R});W.addProvider({provide:hT,
useClass:hT});W.addProvider({provide:Su,useClass:Su});W.addProvider({provide:Ke,useClass:Ke});W.addProvider({provide:rr,useClass:rr});W.addProvider({provide:JT,useClass:JT});W.addProvider({provide:wY,useClass:wY});W.addProvider({provide:V4,useClass:V4});W.addProvider({provide:Z70,useValue:i_0});W.addProvider({provide:_.Pw,useFactory:_.$J});W.addProvider({provide:Gl,useFactory:_.gS});w={};W.addProvider((w.provide=TGx,w.useFactory=function(X){return function(v){var U=U===void 0?{}:U;var O,S,T=(S=_.A((O=
v.endpoint)==null?void 0:O.commandMetadata,_.mm))==null?void 0:S.rootVe;if(T){var p,h;if(O=v.previousCsn||((h=_.A((p=v.endpoint)==null?void 0:p.commandMetadata,L6H))==null?void 0:h.parentCsn)){var L=L===void 0?{}:L;if(O!==_.nS(L.layer)||T!==jkx(L.layer))RaU(O,L.cttAuthInfo,L.layer||0),ea9(O,L.layer||0),p=L.layer||0,_.jm(nOe(p===void 0?0:p),T);U.parentCsn=O}v.endpoint&&O?Gdl(X,v.endpoint,U):_.NJ(X,T,void 0,U);var F;((F=v.response)==null?0:F.trackingParams)&&X.graftServerVe(v.response.trackingParams);
var x;((x=v.playerResponse)==null?0:x.trackingParams)&&X.graftServerVe(v.playerResponse.trackingParams);var G;((G=v.reelWatchSequenceResponse)==null?0:G.trackingParams)&&X.graftServerVe(v.reelWatchSequenceResponse.trackingParams)}}},w[Hy]=[_.Pw],w));
w={};W.addProvider((w.provide=NTK,w.useClass=Z6k,w[Hy]=[f2,_.Ab],w));w={};W.addProvider((w.provide=Hj,w.useClass=Hj,w[Hy]=[_.H$,_.Ab],w));w={};W.addProvider((w.provide=dr,w.useClass=dr,w[Hy]=[vN,_.zU],w));W.addProvider({provide:_.PAD,useClass:YRI});w={};W.addProvider((w.provide=_.SO,w.useClass=gR0,w[Hy]=[_.PAD],w));W.addProvider({provide:_.Yt,useClass:aW});W.addProvider({provide:_.TA,useClass:y7});w={};W.addProvider((w.provide=_.bt,w.useClass=SRK,w[Hy]=[_.bt],w));W.addProvider({provide:_.mf,useClass:ZWJ});
W.addProvider({provide:IH,useClass:IH});W.addProvider({provide:kh,useClass:kh});W.addProvider({provide:re,useClass:EZ});w={};W.addProvider((w.provide=cY,w.useClass=cY,w[Hy]=[_.Yt,re],w));_.r("web_enable_feedback_endpoint_resolver")&&(w={},W.addProvider((w.provide=tJ,w.useClass=tJ,w[Hy]=[N2,Z4],w)),W.addProvider({provide:Z4,useClass:pBA}));_.r("web_enable_feedback_endpoint_resolver_batch_2")&&(w={},W.addProvider((w.provide=BY,w.useClass=BY,w[Hy]=[N2],w)),w={},W.addProvider((w.provide=$h,w.useClass=
$h,w[Hy]=[Z4],w)));w={};W.addProvider((w.provide=AJ,w.useClass=AJ,w[Hy]=[_.TA,re],w));w={};W.addProvider((w.provide=Yh,w.useClass=Yh,w[Hy]=[_.TA],w));w={};W.addProvider((w.provide=hJ,w.useClass=hJ,w[Hy]=[_.O6,_.SO],w));w={};W.addProvider((w.provide=pX,w.useClass=pX,w[Hy]=[_.O6,_.Pw],w));W.addProvider({provide:zl,useClass:zl});w={};W.addProvider((w.provide=CX,w.useClass=CX,w[Hy]=[N2],w));w={};W.addProvider((w.provide=PO,w.useClass=PO,w[Hy]=[N2],w));w={};W.addProvider((w.provide=X9,w.useClass=X9,w[Hy]=
[_.O6,N2],w));w={};W.addProvider((w.provide=vO,w.useClass=vO,w[Hy]=[N2],w));w={};W.addProvider((w.provide=g6,w.useClass=g6,w[Hy]=[N2],w));w={};W.addProvider((w.provide=Tl,w.useClass=Tl,w[Hy]=[_.SO],w));w={};W.addProvider((w.provide=WO,w.useClass=WO,w[Hy]=[_.Pw],w));w={};W.addProvider((w.provide=BO,w.useClass=BO,w[Hy]=[me],w));w={};W.addProvider((w.provide=lS,w.useClass=lS,w[Hy]=[me],w));W.addProvider({provide:Nc,useClass:Nc});W.addProvider({provide:t0,useClass:t0});W.addProvider({provide:aM,useClass:aM});
w={};W.addProvider((w.provide=ej,w.useClass=ej,w[Hy]=[_.SO,_.zU],w));W.addProvider({provide:vY,useClass:vY});w={};W.addProvider((w.provide=KX,w.useClass=KX,w[Hy]=[_.O6,_.SO],w));W.addProvider({provide:Up,useClass:Up});w={};W.addProvider((w.provide=sp,w.useClass=sp,w[Hy]=[N2,_.O6,_.bt],w));w={};W.addProvider((w.provide=QG,w.useClass=QG,w[Hy]=[_.O6,_.zU],w));W.addProvider({provide:pcT,useValue:kmF});W.addProvider({provide:nFU,useValue:p4m});W.addProvider({provide:xh,useClass:xh});w={};W.addProvider((w.provide=
q2,w.useClass=q2,w[Hy]=[N2],w));w={};W.addProvider((w.provide=ut,w.useClass=ut,w[Hy]=[_.mf,_.zU],w));w={};W.addProvider((w.provide=lt,w.useClass=lt,w[Hy]=[_.zU],w));W.addProvider({provide:we,useFactory:function(){return new we(_.Cx())}});
W.addProvider({provide:D4m,useFactory:_.LC.getInstance});w={};W.addProvider((w.provide=oH,w.useClass=oH,w[Hy]=[ge,D4m,_.zU],w));W.addProvider({provide:PY,useClass:PY});W.addProvider({provide:H4,useClass:H4});W.addProvider({provide:EJ,useClass:EJ});W.addProvider({provide:_.yL,useClass:_.yL});W.addProvider({provide:U4,useClass:U4});w={};W.addProvider((w.provide=Fn,w.useClass=Fn,w[Hy]=[vN],w));w={};W.addProvider((w.provide=M2,w.useClass=M2,w[Hy]=[_.zU],w));_.r("web_enable_prefetching_videos_on_home")&&
(W.addProvider({provide:fe,useClass:fe}),W.addProvider({provide:PC,useClass:PC}));w={};W.addProvider((w.provide=kG,w.useClass=kG,w[Hy]=[_.zU],w));W.addProvider({provide:aH,useClass:aH});w={};W.addProvider((w.provide=HY,w.useClass=HY,w[Hy]=[_.O6,_.zU],w));w={};W.addProvider((w.provide=WY,w.useClass=WY,w[Hy]=[_.zU],w));W.addProvider({provide:X1,useClass:X1});W.addProvider({provide:LX,useClass:LX});w={};W.addProvider((w.provide=jj,w.useClass=jj,w[Hy]=[vN,_.zU],w));w={};W.addProvider((w.provide=YG,w.useClass=
YG,w[Hy]=[vN,_.zU,_.O6],w));w={};W.addProvider((w.provide=TF,w.useClass=TF,w[Hy]=[_.zU],w));w={};W.addProvider((w.provide=St,w.useClass=St,w[Hy]=[_.zU,_.O6],w));w={};W.addProvider((w.provide=RH,w.useClass=RH,w[Hy]=[_.H$],w));w={};W.addProvider((w.provide=JJ,w.useClass=JJ,w[Hy]=[_.H$],w));W.addProvider({provide:de,useClass:de});W.addProvider({provide:VG,useClass:VG});W.addProvider({provide:IM,useClass:IM});W.addProvider({provide:yG,useClass:yG});W.addProvider({provide:fX,useClass:fX});W.addProvider({provide:Op,
useClass:Op});W.addProvider({provide:D4,useClass:D4});_.r("kevlar_enable_mss_lazy_load")&&W.addProvider({provide:_.uV,useClass:di0});W.addProvider({provide:_.EF,useClass:wH});W.addProvider({provide:d7,useFactory:function(){return _.sn.getInstance()}});
W.addProvider({provide:aEI,useFactory:oze});W.addProvider({provide:me,useFactory:function(){return _.KB.getInstance()}});
W.addProvider({provide:bGe,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});w={};W.addProvider((w.provide=_.mw,w.useClass=_.mw,w[Hy]=[_.H$,_.zU,_.Pw,aEI,me,d7,bGe,f2],w));W.addProvider({provide:_.$t,useClass:Br$});W.addProvider({provide:_.Lp_,useClass:jzl});w={};W.addProvider((w.provide=Sj,w.useClass=Sj,w[Hy]=[_.Lp_],w));w={};W.addProvider((w.provide=_.V7,w.useFactory=function(X){return X.upliftCompletionResolver.promise},w[Hy]=[NTK],w));
w=_.JS("IS_SHELL_LOAD")?"aa":"eocs";var Z=_.JS("IS_SHELL_LOAD")?3:2;_.F4().parkOrScheduleJob(function(){$yn()},Z,w);
_.F4().parkOrScheduleJob(function(){_.K().resolve(Hj).start()},2,"eocs");
_.F4().parkOrScheduleJob(function(){WJn()},2,"eocs");
_.F4().parkOrScheduleJob(function(){_.K().resolve(dr).start()},2,"eocs");
_.r("kevlar_debug_data_app_registration_ks")||pgC();W.addProvider({provide:_.Y_,useValue:new kMH(a.root)});W.addProvider({provide:xj,useValue:new zIH});W.addProvider({provide:_.rih,useValue:new K3V(a.root)});W.addProvider({provide:_.U6,useValue:new pU_});W.addProvider({provide:_.Zh,useClass:P3});W.addProvider({provide:_.O69,useClass:WC});_.r("kevlar_network_sli_killswitch")||W.addProvider({provide:SI2,useValue:rRL});W.addProvider({provide:lan,useFactory:a0S});_.r("web_bind_fetch")&&(w={},W.addProvider((w.provide=
Iad,w.useFactory=WSC,w[Hy]=[_.Vv(lan)],w)));_.r("web_bind_parse")&&(w={},W.addProvider((w.provide=P90,w.useFactory=wfI,w[Hy]=[_.Vv(lan)],w)));_.r("web_bind_window_request")&&(w={},W.addProvider((w.provide=X2f,w.useFactory=ZVm,w[Hy]=[_.Vv(lan)],w)));w={};W.addProvider((w.provide=dIA,w.useFactory=OVe,w[Hy]=[_.V7,N2,_.bI],w));w={};W.addProvider((w.provide=f5A,w.useClass=K$,w[Hy]=[dIA],w));W.addProvider({provide:lD9,useClass:NEf});W.addProvider({provide:u_6,useClass:GBh});w=[].concat(_.K8(qX));_.r("web_continuation_response_processing")&&
w.push(_.i5);w.push(ahR);_.r("enable_share_panel_navigation_logging_fix_on_web")&&w.push(_.cAV);W.addProvider({provide:b$C,useValue:w});W.addProvider({provide:m4v,useClass:szJ});W.addProvider({provide:p2k,useClass:YIa});w={};W.addProvider((w.provide=GIC,w.useClass=F3h,w[Hy]=[vN],w));_.hF.addLowPriorityJob(function(){bi9()});
w={};W.addProvider((w.provide=pdR,w.useFactory=function(X){return function(v){var U,O=(U=_.A(v.commandMetadata,_.mm))==null?void 0:U.url;if(!O)throw new _.Uw("No URL for PBJ Command",v);O=iMe(O,{pbj:"1"});U=D6e(O,{})||{};U=Object.assign({},U,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.LF("STS").toString()});v=_.ld({command:JSON.stringify(v),session_token:_.LF("XSRF_TOKEN")});return X.fetch(O,{method:"POST",headers:U,body:v})}},w[Hy]=[p2k],w));
w=[];w.push(W.resolve(u_6));Z={};Z=(Z.client_location=_.LC.getInstance(),Z.consistency=_.JeD(),Z.entities=W.resolve(P_L),Z.response_received_commands=W.resolve(m4v),Z.store=W.resolve(_.shv),Z.tokens=W.resolve(u_6),Z);if(_.r("web_shorts_prefetch_service_enabled")){var N=new KUE(W.resolve(_.W3));Z.shorts_prefetch=N}Z.adblock_detection=W.resolve(GIC);W.addProvider({provide:_.xm,useClass:_.xm});N=W.resolve(Z70);var B=[];if(_.r("PremiumClientSharedConfig__enable_att_context_processor")||_.r("enable_att_for_transcript_request_on_web_client"))W.addProvider({provide:mVJ,
useClass:DVy}),B.push(W.resolve(mVJ));if(_.r("owl_pl_await")){var I={};W.addProvider((I.provide=w2d,I.useFactory=function(X){return new aa9(X)},I[Hy]=[_.xm],I));
B.push(W.resolve(w2d))}neJ(N,W.resolve(p2k),W.resolve(Bfd),Z,W.resolve(_.W3),w,B,W.resolve(f5A),W.resolve(lD9));W.addProvider({provide:_.O6,useValue:_.Ju.instance});_.r("start_client_gcf")&&W.addProvider({provide:KH,useValue:ddJ()});W.addProvider({provide:lE0,useFactory:function(){return new lE0(_.K().resolve(_.xm),_.KB.getInstance())}});
_.F4().parkOrScheduleJob(function(){IED()},1,"eocs");
w={};W.addProvider((w.provide=z3,w.useClass=z3,w[Hy]=[_.bI,_.O6],w));W.addProvider({provide:_.ALE,useFactory:_.IW.getInstance});_.F4().parkOrScheduleJob(function(){_.K().resolve(z3).refresh()},0,"eocs");
rEJ(i_0.watchEndpointMap||{},N.reelWatchEndpointMap||{},a.injector.resolve(_.O6));W.addProvider({provide:iV,useValue:_.W7.instance});_.r("kevlar_signal_collection_killswitch")||(w={},W.addProvider((w.provide=ymi,w.useClass=ymi,w[Hy]=[ge,Gl],w)),_.F4().parkOrScheduleJob(function(){_.K().resolve(ymi).record()},1,"eocs"));
_.r("web_debug_handler_registration_killswitch")||_.F4().parkOrScheduleJob(function(){TYm("DOWNLOAD_PES",gze);_.r("offline_client_state_export_ks")||TYm("OFFLINE_CLIENT_STATE",Pm9)},0,"eocs");
_.r("kevlar_prevent_polymer_dynamic_font_load")&&_.F4().parkOrScheduleJob(function(){var X=[_.ya(M0a),_.ya(RDk)];X=_.l(X);for(var v=X.next();!v.done;v=X.next()){v=v.value;var U=document.createElement("link");_.s0(U,v,"stylesheet");document.head.appendChild(U)}},1,"eocs");
w=a.injector.resolve(_.O6);_.dVJ.instance=new _.dVJ(w);ygS(xVL(new f6$(w)));w={};a.injector.addProvider((w.provide=HZ,w.useFactory=function(X){(X=X==null?void 0:X.getCurrentPage())?X=X.visibilityObserver:(EfI||(EfI=FzE()),X=EfI);return X},w[Hy]=[_.Vv(_.Gw)],w.skipCache=!0,w));
W.addProvider({provide:_.bV,useClass:YL});W.addProvider({provide:I4,useClass:oYH});W.addProvider({provide:lxF,useValue:SUC});a.injector.addProvider({provide:KfH,useValue:orT});W.addProvider({provide:BNh,useValue:okI});W.addProvider({provide:_.Lt,useValue:iie});a=W.addProvider;i6X||(i6X=new hHn);a.call(W,{provide:_.cLi,useValue:i6X});W.addProvider({provide:_.Fm,useValue:_.LF("HTML_DIR")==="rtl"?"rtl":"ltr"});W.addProvider({provide:vN6,useClass:TuE});W.addProvider({provide:_.ad,useClass:Zx});_.K().addProvider({provide:oNy,
useValue:_.r("enable_web_delhi_icons")?zwD.concat(yYa):VBk.concat(Hva)});W.addProvider({provide:_.t$,useClass:_.t$});W.addProvider({provide:_.ndD,useValue:new eD0});W.addProvider({provide:gnl,useClass:Bu_});W.addProvider({provide:Ep,useClass:Ep});W.addProvider({provide:w6,useClass:w6});a={};W.addProvider((a.provide=nX,a.useClass=nX,a[Hy]=[_.O6,_.SO],a));W.addProvider({provide:O4,useClass:O4});W.addProvider({provide:J_R,useClass:KJ9});W.addProvider({provide:$G,useClass:$G});W.addProvider({provide:NB$,
useValue:CpH});W.addProvider({provide:_.c4,useClass:l5V});_.r("enable_payments_purchase_manager")&&W.addProvider({provide:yi6,useClass:VR_});W.addProvider({provide:JzE,useFactory:function(){return function(X){return _.Lni(X)}}});
W.addProvider({provide:_.xIl,useClass:bWl});a={};W.addProvider((a.provide=oM,a.useClass=oM,a[Hy]=[_.xIl],a));W.addProvider({provide:ZS,useClass:ZS});W.addProvider({provide:cBy,useValue:Zu6});W.addProvider({provide:RFH,useValue:FJI});W.addProvider({provide:LuD,useClass:TTf});W.addProvider({provide:LZ0,useValue:jPE});a={};W.addProvider((a.provide=_.kL,a.useClass=JI0,a[Hy]=[LZ0],a));_.r("web_ephemeral_actions")&&(a={},W.addProvider((a.provide=_.BC,a.useClass=$L,a[Hy]=[_.Ab,_.Zh],a)));if(_.r("web_explore_hub_on_hover")||
_.r("web_client_explore_hub_on_hover"))a={},W.addProvider((a.provide=Xn,a.useClass=Xn,a[Hy]=[_.O6,d7],a));W.addProvider({provide:tj9,useValue:H2E})}},aY9);var wbn={},Z8a=(wbn.initialized={priority:10,callback:function(){if(!OKK){wAH();tp8("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Zp(_.v_(tp8,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.r("log_heartbeat_with_lifecycles")){var a={};Gd.instance||(Gd.instance=new Gd);Gd.instance.install((a.document_visible={callback:$Ze,priority:10},a.document_hidden={callback:$Ze,priority:10},a))}else _.mQ(document,"visibilitychange",$Ze);OKK=!0}(a=_.nS())&&a!=="UNDEFINED_CSN"&&ikv(a)}},wbn);var Nb0={},tnf=(Nb0.initialized={callback:function(a){var W=_.Ob(232091),w=a.injector.resolve(_.Pw);_.tc(w,W);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?cU8()&&_.BE(w,W):(a=a.injector.resolve(JzE)("refresh_detector"))&&(a.get("first_tab_load")?_.BE(w,W):a.set("first_tab_load","1"))}},Nb0);var $O2={},BbX=($O2.initialized={priority:10,callback:RM8},$O2);var lYX={},IYz=(lYX.initialized={priority:0,callback:function(){var a=new HYA,W="other";_.gk?W="chrome":_.vz?W="firefox":_.jg?W="safari":C3&&(W="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(w){a.increment(_.gz(),w,W)}).catch(function(){a.increment(_.gz(),!1,W)}):a.increment(_.gz(),!1,W)}},lYX);var Pb0={},XbX=(Pb0.rendering={priority:8,callback:qzx},Pb0);var v82={},g80=(v82.rendering={priority:10,callback:zMI},v82.rendered={callback:VAU},v82),o89={},k2I=(o89.rendering={callback:zMI},o89.rendered={callback:VAU},o89);var UOz=!1,O8D={},SKE=(O8D.initialized={priority:10,callback:function(){UOz||(iHm({didPatch:function(a){a.el&&ZcE(a.el,a.props)},
didUnmount:function(a){WyF(a.el)}}),UOz=!0)}},O8D);var YKk=/^\/shorts\/?$/;_.jm("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(_.r("kevlar_enable_mss")){_.XSx(new LmH);var Tbi=!0,Kik,KZ;Tbi=Tbi===void 0?!1:Tbi;Kik=Kik===void 0?!1:Kik;KZ=KZ===void 0?{}:KZ;var pbD=KZ.cssRowKey||"",rq2=KZ.combinedSignature||"";!pbD&&window&&window._F_cssRowKey&&(pbD=window._F_cssRowKey,!rq2&&window._F_combinedSignature&&(rq2=window._F_combinedSignature));if(pbD&&typeof window._F_installCss!=="function")throw Error("vd");var Aqa=KZ.loaderClass||_.Q9,pZ=zqS("base-js"),hsI,i80=ySx("",pZ);hsI=_.lq(i80);var rH=new Aqa(hsI,pbD,rq2,Tbi,Kik),cq9=
KZ.useCors||pZ&&pZ.hasAttribute("crossorigin"),esk=KZ.corsMode||pZ&&pZ.getAttribute("crossorigin");cq9&&(rH.useCors_=cq9);esk&&(rH.corsMode_=esk);KZ.urlMaxLength&&(rH.urlMaxLength=KZ.urlMaxLength);KZ.fetchPriority&&(rH.fetchPriority=KZ.fetchPriority);var n8d=rh();n8d.JSC$7962_loader_=rH;n8d.setBatchModeEnabled(!0)}
(function(){var a=document.querySelector("ytd-app");if(!a)throw Error("Ej");a=new lZ({root:a,injector:_.K()});a.install(Z8a);var W={};a.install((W.initialized={priority:10,callback:Ae7},W));_.r("wp_lat_b")&&(W={},a.install((W.initialized={priority:10,callback:function(){Hsx()}},W)));
W={};a.install((W.rendered={priority:0,callback:K7H},W));W={};a.install((W.rendered={priority:0,callback:function(){_.hF.addLowPriorityJob(function(){_.KpL>1&&(o4U(),YDv())},4E4)}},W));
a.install(BCa);a.install(tnf);a.install(SKE);Fn2||(Fn2=!0,Object.assign(VS,{handleError:XfU,enableComponentStacksInErrorMessages:!1}),Rym=D6A,Alv=vaI,sgS=SrU,QgH=YrE,_.r("ytwiz_enable_debug_component_props")&&ddU());a.install(kkI);a.install(WZD);a.install(te2);a.install(DHK);a.install(ze9);a.install(gb0);a.install(Wi2);_.r("kevlar_enable_mss_lazy_load")&&a.install(BbX);a.install(Z_E);a.install(IYz);if(!_.JS("IS_SHELL_LOAD")||_.r("kevlar_fetch_initial_data_promise_client")||_.r("sw_nav_preload_pbj")){var w=
_.tw(window.location.href);W=w&&w==="/watch";w=w&&w.match(YKk);W?a.install(k2I):w?a.install(XbX):a.install(g80)}else a.install(yz0);a.install(I22);_.r("web_enable_prefetching_videos_on_home")&&a.install(YmE);_.r("start_client_gcf")&&a.install(UiI);a.install(b7i);(new yvJ).increment("INSTALLED");a.install(O_f);a.install(V00);a.transition("initialized");ua9()})();
_.Wu=[[["dXdycWs1YW14a2luZCNtM2M=","bTIzMW12YWx1ZSNvbWtiNzJz"],"NWp3N2U2NDM0QURfUExBQ0VNRU5UX0tJTkRfRU5EI2VobA=="]];_.a1=["YWxsYmFja3MjYnI4eXhlNWU2ODIxZ2xvYmFsQw==","d3FmcDlpdTF6YTlvbkFibm9ybWFsaXR5RGV0ZWN0ZWQj","cCM2cWszNHliMDZrNDNvbkFkU2tp","I3NqcXl6MXo2OWl5eHJhd19wbGF5ZXJfcmVzcG9uc2U=","bmZpZyN5dnYyOWI0Z2VndDFhZFBsYWNlbWVudENv"];_.bM="YWxsYmFja3MjYnI4eXhlNWU2ODIxZ2xvYmFsQw== d3FmcDlpdTF6YTlvbkFibm9ybWFsaXR5RGV0ZWN0ZWQj cCM2cWszNHliMDZrNDNvbkFkU2tp I3NqcXl6MXo2OWl5eHJhd19wbGF5ZXJfcmVzcG9uc2U= bHRpcGxlX3NraXBzX2tzI3BzZmR0aXhndWV0ZndlYl9wbGF5bGlzdF9xdWV1ZV9tdQ== ZiNlY2xidGN6NHZuMTlhYl9zYV9l bmZpZyN5dnYyOWI0Z2VndDFhZFBsYWNlbWVudENv".split(" ");
_._ModuleManager_initialize=function(a,W){if(!_.Kr){if(!_.pr)return;_.XSx(_.pr())}_.Kr.setAllModuleInfoString(a,W)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.ez=function(a,W,w,Z,N){var B={};W&&(B[W]=w);Z?B.errorType=Z:N&&(B.errorReason=N);_.ia(a,B);_.cZ()};
_.nZ=function(a){var W=_.F4();return _.id6(W,a,1)};
_.kQ({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 snE;var ud2;var CbK=function(){};
_.t=CbK.prototype;_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._noinkChanged=function(){};
_.t._focusedChanged=function(){};
_.t._createRipple=function(){};
_.t.registered=function(){};
_.t._invalidChanged=function(){};
_.t.hasValidator=function(){};
_.t.validate=function(){};
_.t._getValidity=function(){};
_.t._requiredChanged=function(){};
_.t._valueChanged=function(){};
_.t._checkedChanged=function(){};
_.t._buttonStateChanged=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
CbK=_.kQ({is:"tp-yt-paper-radio-button",_template:function(){if(ud2!==void 0)return ud2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;snE===void 0&&(snE=document.createElement("template"));var Z=snE;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return ud2=a},
behaviors:[_.UmA],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(){_.DW(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var a=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),W=Math.floor(3*a);W%2!==a%2&&W++;this.updateStyles({"--paper-radio-button-ink-size":W+"px"})}})}});var G2a;var DOi;_.kQ({_template:function(){if(DOi!==void 0)return DOi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;G2a===void 0&&(G2a=document.createElement("template"));var Z=G2a;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return DOi=a},
is:"tp-yt-paper-radio-group",behaviors:[_.jty],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 W=this._valueToItem(a);if(!W||!W.hasAttribute("disabled")){if(this.selected){W=this._valueToItem(this.selected);if(this.selected==a)if(this.allowEmptySelection)a="";else{W&&(W.checked=!0);return}W&&
(W.checked=!1)}_.jK.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){_.n__._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(a){_.n__._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.jK._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.cT._resetTabindices.apply(this,arguments);this.items.forEach(function(a){a.removeAttribute("aria-selected")},this)}});var fYX;_.pA("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var jz=function(){return _.u.apply(this,arguments)||this};
_.c(jz,_.u);_.t=jz.prototype;_.t.computeHasPrimaryIcon=function(a){return!(!a.icon&&!a.thumbnail)};
_.t.computeHasSecondary=function(a){return!(!a.secondaryIcon&&!a.secondaryNotificationText)};
_.t.computeHideSecondaryString=function(a){return!_.r("disable_hide_empty_secondary_string")&&!a.secondaryNotificationText};
_.t.computeCompactLinkStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.t.computeHasFitHeight=function(a){return a==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.t.isActiveEndpoint=function(a){return(a=this.get("commandMetadata.webCommandMetadata.url",a))?_.tw(window.location.href)!=="/account_transfer_channel"&&_.tw(window.location.href)!=="/gaia_link"&&_.tw(window.location.href)!=="/channel_switcher"||a!=="/account"?_.tw(window.location.href)===a:!0:!1};
_.t.onTap=function(){var a;((a=this.data)==null?0:a.serviceEndpoint)&&_.Z9(this.hostElement,[this.data.serviceEndpoint])};
jz.prototype.onTap=jz.prototype.onTap;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],jz.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.z("design:type",Boolean)],jz.prototype,"active",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.z("design:type",String)],jz.prototype,"compactLinkStyle",void 0);
_.f([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",Object)],jz.prototype,"icon",void 0);_.f([_.b({computed:"computeIcon_(data.secondaryIcon)"}),_.z("design:type",Object)],jz.prototype,"secondaryIcon",void 0);_.f([_.b({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],jz.prototype,"hasSecondary",void 0);_.f([_.b({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],jz.prototype,"hideSecondaryString",void 0);
_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jz.prototype,"onTap",null);jz=_.f([_.C({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],jz);
_.D(jz,"ytd-compact-link-renderer",function(){if(fYX!==void 0)return fYX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return fYX=a},{mode:1});var dOk;_.pA("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var LZ=function(){var a=_.u.apply(this,arguments)||this;a.role="link";a.tabindex="0";a.actionMap=_.r("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};
_.c(LZ,_.u);_.t=LZ.prototype;_.t.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.eM()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.t.getCurrentTheme=function(){return _.nC()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.eM()};
_.t.onThemeSelected=function(a,W){var w=a||W?a:_.cu(),Z=(w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.n47(_.tw(window.location.href));_.oV(0,165,a);_.oV(0,174,W);this.prefs.save();Z&&_.aV(this.hostElement,"yt-dark-mode-toggled-action",[w]);_.aV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.t.onTap=function(){this.data.serviceEndpoint&&_.Z9(this.hostElement,[this.data.serviceEndpoint])};
_.t.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.t.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.t.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
LZ.prototype.onTap=LZ.prototype.onTap;LZ.prototype.dataChanged=LZ.prototype.dataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],LZ.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.dl),_.z("design:type",Object)],LZ.prototype,"paperItemBehaviors",void 0);_.f([_.b(),_.z("design:type",Object)],LZ.prototype,"data",void 0);_.f([_.b({value:function(){return _.gS()}}),
_.z("design:type",_.ar)],LZ.prototype,"prefs",void 0);_.f([_.b(),_.z("design:type",Object)],LZ.prototype,"label",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],LZ.prototype,"role",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],LZ.prototype,"tabindex",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LZ.prototype,"dataChanged",null);
_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LZ.prototype,"onTap",null);LZ=_.f([_.C({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],LZ);
_.D(LZ,"ytd-toggle-theme-compact-link-renderer",function(){if(dOk!==void 0)return dOk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return dOk=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.dV=function(a){return function(W,w){var Z=a||w.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(W,w,{get:function(){var N;return this.$?this.$[Z]:(N=_.WA(this))==null?void 0:N.querySelector("#"+Z)},
enumerable:!0,configurable:!0})}};_.my=function(a){a=a===void 0?!1:a;_.OW.call(this);this.pubSub_=new _.I0(a);_.$3(this,this.pubSub_)};
_.NT(_.my,_.OW);_.my.prototype.subscribe=function(a,W,w){return this.isDisposed()?0:this.pubSub_.subscribe(a,W,w)};
_.my.prototype.unsubscribe=function(a,W,w){return this.isDisposed()?!1:this.pubSub_.unsubscribe(a,W,w)};
_.my.prototype.unsubscribeByKey=function(a){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(a)};
_.my.prototype.publish=function(a,W){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var IeI=function(){_.ez("ypcRedeemFlowStarted")},Ib=function(a){_.ez("ypcRedeemFlowFailed",void 0,void 0,void 0,a)},PIE=function(a,W,w){W&&w&&(a.videos.forEach(function(Z){Z.videoId===W&&(Z.itemId=w)}),a.recommendedVideos.forEach(function(Z){Z.videoId===W&&(Z.itemId=w)}))};var Xj9;var vYk;/*

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
*/
_.kQ({_template:function(){if(vYk!==void 0)return vYk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;Xj9===void 0&&(Xj9=document.createElement("template"));var Z=Xj9;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return vYk=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,W){var w=this._resolveSrc(a);w!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",a===""||W?this._setLoading(!1):(this._resolvedSrc=w,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,W=this.$.placeholder.style;a.backgroundSize=W.backgroundSize=this.sizing;a.backgroundPosition=W.backgroundPosition=this.sizing?this.position:"";a.backgroundRepeat=W.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(a){a=_.wU(a,this.$.baseURIAnchor.href);a.length>=2&&a[0]==="/"&&a[1]!=="/"&&(a=(location.origin||location.protocol+"//"+location.host)+a);return a}});var gY2;var oYD;_.kQ({_template:function(){if(oYD!==void 0)return oYD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;gY2===void 0&&(gY2=document.createElement("template"));var Z=gY2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return oYD=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 W=this.getAttribute("heading"),w=this.getAttribute("aria-label");typeof w==="string"&&w!==W||this.setAttribute("aria-label",a)},
_computeHeadingClass:function(a){return a?" over-image":""},
_computeAnimated:function(a){return a}});var k3f=new _.H("addRendererToItemSectionAction");var U82;var PQ=function(){return _.u.apply(this,arguments)||this};
_.c(PQ,_.u);PQ.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],PQ.prototype,"rendererBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],PQ.prototype,"dismissibleItemBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],PQ.prototype,"rendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],PQ.prototype,"data",void 0);PQ=_.f([_.C({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],PQ);
_.D(PQ,"ytd-comment-history-entry-renderer",function(){if(U82!==void 0)return U82;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return U82=a},{mode:1});var Oei;_.pA("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.pA("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Xa=function(){return _.u.apply(this,arguments)||this};
_.c(Xa,_.u);_.t=Xa.prototype;_.t.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.onKeyUp=function(a){if(a.keyCode===13)this.onTap()};
_.t.onTap=function(){this.data.recordClickEndpoint&&_.K().resolve(_.zU).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var a=this.data.navigationEndpoint;a&&_.A(a,_.eT)&&_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}})};
_.t.readChanged=function(){var a;_.mh(this.hostElement,"unread",!((a=this.data)==null?0:a.read))};
_.t.dataChanged=function(){this.data&&_.mh(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.t.computeThumbnailSize=function(){var a;return((a=this.data)==null?0:a.highPriorityNotification)?32:48};
_.t.getEndpointURL=function(a){return a&&!_.A(a,_.eT)?this.componentBehavior.computeHref_(a):null};
_.t.getEndpointData=function(a){return a&&!_.A(a,_.eT)?a:null};
Xa.prototype.computeThumbnailSize=Xa.prototype.computeThumbnailSize;Xa.prototype.dataChanged=Xa.prototype.dataChanged;Xa.prototype.readChanged=Xa.prototype.readChanged;Xa.prototype.onKeyUp=Xa.prototype.onKeyUp;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Xa.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Xa.prototype,"data",void 0);_.f([_.b({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.z("design:type",Number)],Xa.prototype,"thumbnailSize",void 0);_.f([_.E6("keyup"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],Xa.prototype,"onKeyUp",null);
_.f([_.a5("data.read"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xa.prototype,"readChanged",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xa.prototype,"dataChanged",null);_.f([_.a5("data.highPriorityNotification"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xa.prototype,"computeThumbnailSize",null);
Xa=_.f([_.C({is:"ytd-notification-renderer",disableElementRegistration:!0})],Xa);
_.D(Xa,"ytd-notification-renderer",function(){if(Oei!==void 0)return Oei;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Oei=a},{mode:1});var SZI;var vQ=function(){return _.u.apply(this,arguments)||this};
_.c(vQ,_.u);vQ.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"}}}};
vQ.prototype.computeActionButtonClass=function(a){return!a.actionButtons||a.actionButtons.length<=1?"single-button":a.description?"vertical-buttons":"horizontal-buttons"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vQ.prototype,"data",void 0);vQ=_.f([_.C({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],vQ);
_.D(vQ,"ytd-playlist-show-metadata-renderer",function(){if(SZI!==void 0)return SZI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return SZI=a},{mode:1});var YZa;_.pA("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var gW=function(){return _.u.apply(this,arguments)||this};
_.c(gW,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],gW.prototype,"data",void 0);gW=_.f([_.C({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],gW);
_.D(gW,"ytd-purchase-item-renderer",function(){if(YZa!==void 0)return YZa;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return YZa=a},{mode:1});var TrI;var KwI={};KwI.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"}};_.pA("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var ob=function(){return _.u.apply(this,arguments)||this};
_.c(ob,_.u);ob.prototype.onYtNavigate=function(a){var W=this.openPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);W&&(a.stopPropagation(),this.openPopupBehavior.openPopup(W))};
ob.prototype.onYtNavigate=ob.prototype.onYtNavigate;_.f([_.R(KwI.YtSimpleTextSectionBehavior),_.z("design:type",Object)],ob.prototype,"ytSimpleTextSectionBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],ob.prototype,"openPopupBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ob.prototype,"data",void 0);
_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ob.prototype,"onYtNavigate",null);ob=_.f([_.C({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],ob);
_.D(ob,"ytd-simple-text-section-renderer",function(){if(TrI!==void 0)return TrI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return TrI=a},{mode:1});var pj2;_.pA("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var kz=function(){return _.u.apply(this,arguments)||this};
_.c(kz,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kz.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kz.prototype,"data",void 0);kz=_.f([_.C({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],kz);
_.D(kz,"ytd-unlimited-page-feature-info-renderer",function(){if(pj2!==void 0)return pj2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return pj2=a},{mode:1});var rTk;var AT2;var Ug=function(){return _.u.apply(this,arguments)||this};
_.c(Ug,_.u);Ug.prototype.dataChanged=function(){if(this.data){var a=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);a&&(a=_.G$(a,screen.width),this.hostElement.style.backgroundImage="url("+a+")")}};
Ug.prototype.dataChanged=Ug.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ug.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ug.prototype,"dataChanged",null);Ug=_.f([_.C({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],Ug);
_.D(Ug,"ytd-post-redemption-section-renderer",function(){if(AT2!==void 0)return AT2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return AT2=a},{mode:1});var hQ9;var Og=function(){return _.u.apply(this,arguments)||this};
_.c(Og,_.u);Og.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Og.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Og.prototype,"data",void 0);Og=_.f([_.C({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Og);
_.D(Og,"ytd-ypc-post-redemption-renderer",function(){if(hQ9!==void 0)return hQ9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return hQ9=a},{mode:1});_.pA("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Sq=function(){var a=_.u.apply(this,arguments)||this;a.MIN_CODE_LENGTH=12;a.MAX_CODE_LENGTH=24;return a};
_.c(Sq,_.u);_.t=Sq.prototype;_.t.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.t.created=function(){this.riskService=new _.FWv;this.loadPaymentThenable=_.Rcm(_.LF("YPC_MB_URL"))};
_.t.ready=function(){var a=this;this.code.addEventListener("keypress",function(W){a.onCodeInputKeypress(W)})};
_.t.dataChanged=function(){var a=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(W){W=_.l(W);for(var w=W.next();!w.done;w=W.next())w=w.value,w.type==="attributes"&&w.attributeName==="dark"&&a.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.t.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+")")}};
_.t.computeRedeemButton=function(a){(a=this.get("redeemButton.buttonRenderer",a))&&(a=Object.assign({},a,{serviceEndpoint:void 0}));return a};
_.t.onRedeemButtonTap=function(a){a.stopPropagation();IeI();this.redeemCode()};
_.t.redeemCode=function(){var a=this;this.isLoading=!0;var W=this.riskService.init();_.rD([W,this.loadPaymentThenable]).then(function(){var w=a.data.redeemButton.buttonRenderer.serviceEndpoint,Z=_.MPS(),N=payments.business.integration.ClientTokenFactory.createClientToken(_.A(w,_.AbJ).countryCode,Z);Z={c:a.code.value.trim(),rd:window.btoa(Z),ctk:N};w&&_.K().resolve(_.zU).resolveCommand(w,{form:Object.assign({},Z,{element:a.hostElement})})},function(){a.showGenericError();
Ib("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Ff(Error("Sl"))})};
_.t.onYtServiceRequestCompleted=function(a){a.stopPropagation();this.isLoading=!1;var W,w;this.errorMessage=(W=a.detail)==null?void 0:(w=W.data)==null?void 0:w.errorMessage;var Z,N;this.postRedemptionRenderer=(Z=a.detail)==null?void 0:(N=Z.data)==null?void 0:N.renderer;var B,I;if(a=(B=a.detail)==null?void 0:(I=B.data)==null?void 0:I.redirectEndpoint)this.isLoading=!0,_.E$(this.hostElement,"yt-navigate",{endpoint:a});this.errorMessage?Ib("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
a)&&_.ez("ypcRedeemFlowSucceeded")};
_.t.onYtServiceRequestError=function(a){a.stopPropagation();this.isLoading=!1;if(a=this.get("detail.error.message",a))this.errorMessage=_.b8(a);Ib("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.t.onInvokeInstrumentManagerActionCompleted=function(a){a.stopPropagation();this.redeemCode()};
_.t.onInvokeInstrumentManagerActionError=function(a){a.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",a)){case "instrumentManagerLoadError":this.showGenericError();Ib("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Ib("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.ez("ypcRedeemFlowCancelled")}};
_.t.onInput=function(){var a=this;_.eK(this,"onInput",function(){var W=a.code.value.trim();a.redeemButtonDisabled=W.length<a.MIN_CODE_LENGTH||W.length>a.MAX_CODE_LENGTH},200)};
_.t.onCodeInputKeypress=function(a){a.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(IeI(),this.redeemCode())};
_.t.computeImageUrl=function(a){return a?_.G$(a.thumbnails,600):null};
_.t.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Sq.prototype.onInvokeInstrumentManagerActionError=Sq.prototype.onInvokeInstrumentManagerActionError;Sq.prototype.onInvokeInstrumentManagerActionCompleted=Sq.prototype.onInvokeInstrumentManagerActionCompleted;Sq.prototype.onYtServiceRequestError=Sq.prototype.onYtServiceRequestError;Sq.prototype.onYtServiceRequestCompleted=Sq.prototype.onYtServiceRequestCompleted;Sq.prototype.dataChanged=Sq.prototype.dataChanged;
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Sq.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Sq.prototype,"isLoading",void 0);_.f([_.b(),_.z("design:type",Boolean)],Sq.prototype,"redeemButtonDisabled",void 0);
_.f([_.b(),_.z("design:type",Object)],Sq.prototype,"errorMessage",void 0);_.f([_.b(),_.z("design:type",Object)],Sq.prototype,"postRedemptionRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],Sq.prototype,"observer",void 0);_.f([_.w$("#code"),_.z("design:type",HTMLInputElement)],Sq.prototype,"code",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sq.prototype,"dataChanged",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Sq.prototype,"onYtServiceRequestCompleted",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Sq.prototype,"onYtServiceRequestError",null);
_.f([_.E6("yt-invoke-instrument-manager-action-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Sq.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.f([_.E6("yt-invoke-instrument-manager-action-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Sq.prototype,"onInvokeInstrumentManagerActionError",null);Sq=_.f([_.C({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Sq);
_.D(Sq,"ytd-redeem-code-renderer",function(){if(rTk!==void 0)return rTk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return rTk=a},{mode:1});var iei;_.pA("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Yz=function(){var a=_.u.apply(this,arguments)||this;a.businessEmailDisplayState="HIDE_SECTION";return a};
_.c(Yz,_.u);_.t=Yz.prototype;_.t.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}}}}}};
_.t.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"};
_.t.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.t.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.MM("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.t.onYtServiceRequestCompleted=function(a){var W;if((W=a.detail.data)==null?0:W.businessEmail)this.businessEmail=a.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var w;if((w=a.detail.data)==null?0:w.errorMessage)this.businessEmailErrorMessage=a.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.t.computeEmailHref=function(a){return"mailto:"+a};
_.t.computeSafeUrl=function(a){if(a)return _.SB(a)};
_.t.onBusinessEmailCaptchaSubmit=function(){var a;(a=this.data)!=null&&a.onBusinessEmailRevealClickCommand&&(a=this.JSC$18981_captchaTextarea.value)&&(a={recaptcha_response_token:a,channel_id:this.data.channelId},_.K().resolve(_.zU).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},a,{element:this.hostElement})}))};
_.t.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.dU.Object.defineProperties(Yz.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,W;return!((a=this.data)==null||!a.primaryLinks)&&!((W=this.data)==null?0:W.links)&&this.data.primaryLinks.every(function(w){return w.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var a,W;return!((a=this.data)==null||!a.primaryLinks)&&!((W=this.data)==null?0:W.links)&&!this.shouldShowNewLinks}}});
Yz.prototype.onYtServiceRequestCompleted=Yz.prototype.onYtServiceRequestCompleted;Yz.prototype.dataChanged=Yz.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Yz.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Yz.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.w$("#g-recaptcha-response"),_.z("design:type",HTMLTextAreaElement)],Yz.prototype,"JSC$18981_captchaTextarea",void 0);_.f([_.b(),_.z("design:type",Object)],Yz.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],Yz.prototype,"businessEmailDisplayState",void 0);_.f([_.b(),_.z("design:type",String)],Yz.prototype,"businessEmail",void 0);_.f([_.b(),_.z("design:type",String)],Yz.prototype,"businessEmailErrorMessage",void 0);
_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yz.prototype,"hideDetailsSection",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yz.prototype,"dataChanged",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yz.prototype,"shouldShowNewLinks",null);_.f([_.Q("data","shouldShowLinks"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yz.prototype,"shouldShowLegacyLinks",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Yz.prototype,"onYtServiceRequestCompleted",null);Yz=_.f([_.C({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Yz);
_.D(Yz,"ytd-channel-about-metadata-renderer",function(){if(iei!==void 0)return iei;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return iei=a},{mode:1});var cTd;_.pA("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Tj=function(){return _.u.apply(this,arguments)||this};
_.c(Tj,_.u);Tj.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Tj.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Tj.prototype,"data",void 0);Tj=_.f([_.C({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Tj);
_.D(Tj,"ytd-channel-featured-content-renderer",function(){if(cTd!==void 0)return cTd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return cTd=a},{mode:1});var eQk;_.pA("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Ks=function(){var a=_.u.apply(this,arguments)||this;a.roundContainer=!0;a.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return a};
_.c(Ks,_.u);_.t=Ks.prototype;_.t.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.t.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)};
_.t.computeSource=function(a){return a.secondarySource?_.sd(a.secondarySource):_.sd(a.source)};
_.t.computeClarifyStyle=function(a){return a?a.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.t.isLargeStyle=function(a){return a==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.t.computeBackgroundStyle=function(a){return a?a.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.t.computeHasActionButton=function(a){return!!a.actionButton};
_.t.computeHasBottomSection=function(a){return!!a.ctaHasBottomSection};
_.t.computeIsSourceMissing=function(a){return a.ctaHasBottomSection===!1?!0:a&&this.computeSource(a)?!1:!0};
_.t.computeSecondaryEndpoint=function(a){return a.secondaryEndpoint||a.endpoint};
Ks.prototype.dataChanged=Ks.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ks.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Number)],Ks.prototype,"imageWidth",void 0);_.f([_.b(),_.z("design:type",Number)],Ks.prototype,"imageHeight",void 0);
_.f([_.b({computed:"computeSecondaryEndpoint(data)"}),_.z("design:type",Object)],Ks.prototype,"secondaryEndpoint",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.z("design:type",Boolean)],Ks.prototype,"hasActionButton",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.z("design:type",Boolean)],Ks.prototype,"hasBottomSection",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.z("design:type",Boolean)],Ks.prototype,"missingSource",void 0);_.f([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],Ks.prototype,"icon",void 0);_.f([_.b({computed:"computeIcon_(data.secondaryIcon)"}),_.z("design:type",String)],Ks.prototype,"secondaryIcon",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.z("design:type",String)],Ks.prototype,"clarifyStyle",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.z("design:type",String)],Ks.prototype,"backgroundStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ks.prototype,"roundContainer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ks.prototype,"amsterdamEnabled",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ks.prototype,"dataChanged",null);
Ks=_.f([_.C({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Ks);
_.D(Ks,"ytd-clarification-renderer",function(){if(eQk!==void 0)return eQk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return eQk=a},{mode:1});var nYE;var jR2;var ps=function(){var a=_.u.apply(this,arguments)||this;a.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return a};
_.c(ps,_.u);_.t=ps.prototype;_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.t.computeIcon=function(a){return a?"yt-icons:"+a.toLowerCase():null};
_.t.computeUseContacts=function(a){return!!a.contacts&&a.contacts.length>0};
_.t.computePhoneContact=function(a){var W,w;return(W=a.contacts)==null?void 0:(w=W.find(function(Z){var N;return(Z==null?void 0:(N=Z.icon)==null?void 0:N.iconType)==="PHONE"}))==null?void 0:w.actionText};
_.t.computeSmsContact=function(a){var W,w;return(W=a.contacts)==null?void 0:(w=W.find(function(Z){var N;return(Z==null?void 0:(N=Z.icon)==null?void 0:N.iconType)==="SMS"}))==null?void 0:w.actionText};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ps.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ps.prototype,"amsterdamEnabled",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.z("design:type",Boolean)],ps.prototype,"useContacts",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.z("design:type",String)],ps.prototype,"phoneContact",void 0);ps=_.f([_.C({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],ps);
_.D(ps,"ytd-single-action-emergency-support-renderer",function(){if(jR2!==void 0)return jR2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return jR2=a},{mode:1});_.pA("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var rW=function(){var a=_.u.apply(this,arguments)||this;a.roundedContainer=!0;a.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return a};
_.c(rW,_.u);rW.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"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],rW.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rW.prototype,"roundedContainer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],rW.prototype,"amsterdamEnabled",void 0);
rW=_.f([_.C({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],rW);
_.D(rW,"ytd-emergency-onebox-renderer",function(){if(nYE!==void 0)return nYE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return nYE=a},{mode:1});var Lw2;_.pA("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var AX=function(){return _.u.apply(this,arguments)||this};
_.c(AX,_.u);AX.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],AX.prototype,"data",void 0);AX=_.f([_.C({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],AX);
_.D(AX,"ytd-exploratory-results-renderer",function(){if(Lw2!==void 0)return Lw2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Lw2=a},{mode:1});var JT9;_.pA("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var hX=function(){var a=_.u.apply(this,arguments)||this;a.messageData=null;return a};
_.c(hX,_.u);_.t=hX.prototype;_.t.onServiceRequestCompleted=function(a,W){a=W.actions||[];W=0;for(var w=a.length;W<w;W++){var Z=a[W],N=void 0,B=void 0;if((N=_.A(Z,_.Yc))==null?0:(B=N.item)==null?0:B.messageRenderer)this.messageData=_.A(Z,_.Yc).item.messageRenderer}};
_.t.dataChanged=function(){var a=this.data;this.hostElement.hidden=!1;_.mh(this.hostElement,"is-channel",a&&!a.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.t.computeThumbnailWidth=function(a){return a?126:56};
_.t.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.t.onSubmitTap=function(){var a=this.data,W=this.selectedResponseIndex;a!==void 0&&W!==void 0&&(a=a.responses[W],a.responseData&&_.K().resolve(_.zU).resolveCommand(a.responseData,{form:{element:this.hostElement}}))};
_.t.onDismissTap=function(){this.hostElement.hidden=!0;var a=this.data;a!==void 0&&a.dismissalEndpoint&&_.K().resolve(_.zU).resolveCommand(a.dismissalEndpoint,{form:{element:this.hostElement}})};
_.t.updateSelectedResponseIndexFromBinding=function(a){this.selectedResponseIndex=a.detail.value};
hX.prototype.onSelectedResponseIndexChange=hX.prototype.onSelectedResponseIndexChange;hX.prototype.dataChanged=hX.prototype.dataChanged;hX.prototype.onServiceRequestCompleted=hX.prototype.onServiceRequestCompleted;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],hX.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],hX.prototype,"messageData",void 0);
_.f([_.b(),_.z("design:type",Number)],hX.prototype,"selectedResponseIndex",void 0);_.f([_.w$("#submit-button"),_.z("design:type",HTMLButtonElement)],hX.prototype,"submitButton",void 0);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],hX.prototype,"onServiceRequestCompleted",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hX.prototype,"dataChanged",null);
_.f([_.a5("selectedResponseIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hX.prototype,"onSelectedResponseIndexChange",null);hX=_.f([_.C({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],hX);
_.D(hX,"ytd-feedback-elicitation-single-question-renderer",function(){if(JT9!==void 0)return JT9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return JT9=a},{mode:1});var Fw0;var im=function(){return _.u.apply(this,arguments)||this};
_.c(im,_.u);im.prototype.computeThumbnailWidth=function(a){return a?602:428};
im.prototype.updateWideFromBinding=function(a){this.wide=a.detail.value};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],im.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],im.prototype,"wide",void 0);im=_.f([_.C({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],im);
_.D(im,"ytd-newspaper-hero-video-renderer",function(){if(Fw0!==void 0)return Fw0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Fw0=a},{mode:1});var MuE;var cQ=function(){return _.u.apply(this,arguments)||this};
_.c(cQ,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],cQ.prototype,"rendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],cQ.prototype,"data",void 0);cQ=_.f([_.C({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],cQ);
_.D(cQ,"ytd-newspaper-mini-video-renderer",function(){if(MuE!==void 0)return MuE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return MuE=a},{mode:1});var RQ0;_.pA("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var eq=function(){return _.u.apply(this,arguments)||this};
_.c(eq,_.u);eq.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"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],eq.prototype,"data",void 0);eq=_.f([_.C({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],eq);
_.D(eq,"ytd-newspaper-renderer",function(){if(RQ0!==void 0)return RQ0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return RQ0=a},{mode:1});var qZK;_.pA("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var ns=function(){var a=_.u.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};
_.c(ns,_.u);_.t=ns.prototype;_.t.attached=function(){_.K();var a;(a=_.K().resolve(_.Vv(_.bt)))!=null&&(a.playlistVideoListElement=this.hostElement)};
_.t.detached=function(){var a;(a=_.K().resolve(_.Vv(_.bt)))!=null&&(a.playlistVideoListElement=void 0);a=_.K().resolve(_.Vv(_.mf));_.r("web_enable_voting_animation")&&a&&(a.parentElem=void 0,a.videos=[],a.continuationsPresent=!1,a.showRefreshPill=!1)};
_.t.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"}}}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.t.dataChanged=function(){var a=_.K().resolve(_.Vv(_.mf));if(_.r("web_enable_voting_animation")&&this.data&&a){var W=_.M(this.hostElement).querySelector("#contents");W&&(a.parentElem=W);a.addVideos(this.data.contents)}_.b1h(this.ytReorderableBehavior)};
_.t.onRendererstamperFinished=function(){this.canReorder&&_.sBA(this.ytReorderableBehavior,_.M(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.t.onPlaylistReloading=function(){this.isReloading=!0};
_.t.onUpdateSetVideoId=function(a){if(a.detail&&this.data&&this.data.contents){var W=a.detail;a=this.data.contents.findIndex(function(N){var B;return((B=N.playlistVideoRenderer)==null?void 0:B.videoId)===W.videoId});
if(!(a<0)&&W.setVideoId&&(this.set("data.contents."+a+".playlistVideoRenderer.setVideoId",W.setVideoId),_.r("web_enable_voting_animation"))){var w;if(a=_.A((w=this.data.contents[a].playlistVideoRenderer)==null?void 0:w.engagementBar,_.tP9)){var Z;(Z=a.actions)==null||Z.forEach(function(N){if(N=_.A(N,_.$GD))N.itemId=W.setVideoId})}(w=_.K().resolve(_.Vv(_.mf)))&&PIE(w,W.videoId,W.setVideoId)}}};
_.t.computeContentsClass=function(a){return a?"reloading":""};
_.t.computeIsSortable=function(a,W){return a&&W>0&&!this.isSegment&&!_.r("shorts_in_playlists_web")};
_.t.computeIsEditable=function(a){return a};
_.t.computeCanReorder=function(a){return a};
_.t.handlePlaylistRemoveVideosAction=function(a){if(this.get("playlistRemoveVideosAction.setVideoIds",a)&&this.data&&this.data.contents){a=_.A(a,_.sNl).setVideoIds;for(var W=this.data.contents.length-1;W>=0;){var w=this.data.contents[W].playlistVideoRenderer;w&&w.setVideoId&&a.includes(w.setVideoId)&&this.splice("data.contents",W,1);W--}_.aV(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.t.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",_.b8(String(a+1)))};
_.t.handleDrop=function(a){a=a.currDragItem;var W=_.DD(a.parentNode.childNodes,a),w=this.data.contents.splice(Number(_.sd(a.data.index))-1,1)[0];this.data.contents.splice(W,0,w);W=W?this.get("contents."+(W-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();a=this.buildReorderServiceEndpoint(a.data.setVideoId,W);this.ytComponentBehavior.resolveCommand(a)};
_.t.buildReorderServiceEndpoint=function(a,W){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",a),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",W),this.data.onReorderEndpoint):null};
_.t.handleUpdatePlaylistAction=function(a){var W;(a=_.A((W=_.A(a,_.uDA))==null?void 0:W.updatedRenderer,_.Nl$))&&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)};
_.t.handleAddRendererToItemSectionAction=function(a){var W,w=(W=_.A(a,k3f))==null?void 0:W.renderer,Z;w&&((Z=_.A(a,k3f))==null?void 0:Z.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,w),a=_.K().resolve(_.Vv(_.mf)),_.r("web_enable_voting_animation")&&a&&(w&&(W=_.NvD(w))&&a.recommendedVideos.push({itemId:W,videoId:_.Bv7(w),voteCount:_.lyI(w),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.t.isVotingEnabledOnPlaylist=function(a){if(!a)return!1;a=_.l(a);for(a=a.next();!a.done;a=a.next()){var W=void 0;return!!_.A((W=a.value.playlistVideoRenderer)==null?void 0:W.engagementBar,_.tP9)}return!1};
_.t.onAppendContinuationItemsActionFinished=function(){var a;this.isVotingEnabledOnPlaylist((a=this.data)==null?void 0:a.contents)&&(this.updateIndices(),a=_.K().resolve(_.Vv(_.mf)),_.r("web_enable_voting_animation")&&a&&this.data&&a.addVideos(this.data.contents))};
_.t.updateVideoData=function(a){if(a.detail&&this.data&&this.data.contents){var W=a.detail;a=W.toIdx;var w=W.itemId,Z=W.newVoteCount,N=W.voteStatus;W=W.hideItem;var B,I,X=(B=this.data)==null?void 0:(I=B.contents)==null?void 0:I.findIndex(function(S){return _.NvD(S)===w});
if(!(X<0)){B=this.data.contents[X];var v;if((v=B.playlistVideoRenderer)==null?0:v.voteCount)B.playlistVideoRenderer.voteCount=Z;var U;if(v=_.A((U=B.playlistVideoRenderer)==null?void 0:U.engagementBar,_.tP9)){var O;(O=v.actions)==null||O.forEach(function(S){(S=_.A(S,_.$GD))&&S.initialState&&(S.initialState.votes=Z,S.initialState.status=N)})}this.data.contents.splice(X,1);
W||this.data.contents.splice(a,0,B);this.updateIndices()}}};
ns.prototype.updateVideoData=ns.prototype.updateVideoData;ns.prototype.onAppendContinuationItemsActionFinished=ns.prototype.onAppendContinuationItemsActionFinished;ns.prototype.onUpdateSetVideoId=ns.prototype.onUpdateSetVideoId;ns.prototype.onPlaylistReloading=ns.prototype.onPlaylistReloading;ns.prototype.onRendererstamperFinished=ns.prototype.onRendererstamperFinished;ns.prototype.dataChanged=ns.prototype.dataChanged;
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],ns.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.Lf.YtNextContinuationBehavior),_.z("design:type",Object)],ns.prototype,"ytNextContinuationBehavior",void 0);
_.f([_.R(_.u56),_.z("design:type",Object)],ns.prototype,"ytReorderableBehavior",void 0);_.f([_.R(_.j8),_.z("design:type",Object)],ns.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ns.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ns.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],ns.prototype,"isReloading",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ns.prototype,"isSegment",void 0);_.f([_.b({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.z("design:type",Boolean)],ns.prototype,"isSortable",void 0);_.f([_.b({computed:"computeIsEditable(data.isEditable)"}),_.z("design:type",Boolean)],ns.prototype,"isEditable",void 0);_.f([_.b({computed:"computeCanReorder(data.canReorder)"}),_.z("design:type",Boolean)],ns.prototype,"canReorder",void 0);
_.f([_.b({value:101}),_.z("design:type",Number)],ns.prototype,"scrollMargin",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ns.prototype,"dataChanged",null);_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ns.prototype,"onRendererstamperFinished",null);
_.f([_.E6("yt-playlist-reloading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ns.prototype,"onPlaylistReloading",null);_.f([_.E6("yt-update-set-video-id"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ns.prototype,"onUpdateSetVideoId",null);
_.f([_.E6("yt-append-continuation-items-action-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ns.prototype,"onAppendContinuationItemsActionFinished",null);_.f([_.E6("yt-update-video-data-voting-animation"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ns.prototype,"updateVideoData",null);ns=_.f([_.C({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],ns);
_.D(ns,"ytd-playlist-video-list-renderer",function(){if(qZK!==void 0)return qZK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return qZK=a},{mode:_.Vn("kevlar_poly_si_batch_j047")?1:2});var QRD;var jq=function(){return _.u.apply(this,arguments)||this};
_.c(jq,_.u);jq.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"}}}}};
jq.prototype.onTextWrapperTap=function(a){var W=this.data&&this.data.navigationEndpoint;W&&!_.b5(_.qj(a),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.E$(this.hostElement,"yt-navigate",{endpoint:W})};
jq.prototype.dataChanged=function(){var a=this.get("data.offerButton.buttonRenderer.serviceEndpoint");a&&a.commandMetadata&&_.A(a.commandMetadata,_.h4)&&_.A(a.commandMetadata,_.h4).fireAutomatically&&_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}})};
jq.prototype.dataChanged=jq.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],jq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.qv),_.z("design:type",Object)],jq.prototype,"ytdLockupBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],jq.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],jq.prototype,"useBiggerThumbs",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.Et("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],jq.prototype,"biggerThumbsStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],jq.prototype,"leftAligned",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jq.prototype,"dataChanged",null);jq=_.f([_.C({disableElementRegistration:!0,is:"ytd-movie-renderer"})],jq);
_.D(jq,"ytd-movie-renderer",function(){if(QRD!==void 0)return QRD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return QRD=a},{mode:1});var x8k;var Ls=function(){var a=_.u.apply(this,arguments)||this;a.rounded=!0;a.pageAttachedTo=void 0;a.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return a};
_.c(Ls,_.u);Ls.prototype.attached=function(){this.pageAttachedTo=_.K().resolve(_.Gw).getCurrentPage();_.E$(this.hostElement,"yt-player-attached",this.player)};
Ls.prototype.detached=function(){var a;if((a=this.pageAttachedTo)==null?0:a.hostElement)_.E$(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Ls.prototype.dataChanged=function(){var a;if((a=this.data)==null?0:a.videoId)a={video_id:this.data.videoId,autoplay:!0},!_.r("miniplayer_stop_channel_video_autoplay_killswitch")&&_.K().resolve(_.bV).isMiniplayerActive()&&(a.pause_at_start=!0,a.autoplay=!1),this.player.loadVideoWithPlayerVars(a)};
Ls.prototype.handleSignalActionPausePlayer=function(){_.d2().pause()};
Ls.prototype.dataChanged=Ls.prototype.dataChanged;_.f([_.b(),_.z("design:type",Object)],Ls.prototype,"data",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Ls.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ls.prototype,"rounded",void 0);_.f([_.w$("#player"),_.z("design:type",Object)],Ls.prototype,"player",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ls.prototype,"dataChanged",null);Ls=_.f([_.C({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Ls);
_.D(Ls,"ytd-channel-video-player-renderer",function(){if(x8k!==void 0)return x8k;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return x8k=a},{mode:1});var bef;var sR0;var usn;var JX=function(){var a=_.u.apply(this,arguments)||this;a.playing=!1;a.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.lA(a);a.active=!1;return a};
_.c(JX,_.u);_.t=JX.prototype;_.t.detached=function(){this.stop()};
_.t.play=function(){var a=this,W,w,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return a.active=!0,W=a.get("data.inlinePlaybackEndpoint.watchEndpoint"),w=W.videoId||a.data.videoId,Z=W.startTimeSeconds||0,N=W.playerParams||null,_.r("kevlar_player_update_killswitch")?_.g(I,a.playerEl.update({args:{video_id:w,startSeconds:Z,player_params:N}}),2):(a.playerEl.loadVideoWithPlayerVars({video_id:w,startSeconds:Z,player_params:N,autoplay:!0}),I.jumpTo(2));if(I.nextAddress!=4)return _.g(I,a.playerEl.getPlayerPromise(),
4);B=I.yieldResult;B.unloadModule("annotations_module");B.addEventListener("onStateChange",function(X){a.onPlayerStateChange(X)});
_.Xd(I)})};
_.t.onPlayerStateChange=function(a){if(this.active)switch(this.playing=a===1,a){case 1:_.E$(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.E$(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.t.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.t.resize=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,a.playerEl.getPlayerPromise(),2);W=w.yieldResult;W.setSize(NaN,NaN);_.Xd(w)})};
_.f([_.b(),_.z("design:type",Object)],JX.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],JX.prototype,"playing",void 0);_.f([_.b(),_.z("design:type",Object)],JX.prototype,"playerId",void 0);_.f([_.w$("#player"),_.z("design:type",Object)],JX.prototype,"playerEl",void 0);JX=_.f([_.C({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],JX);
_.D(JX,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(usn!==void 0)return usn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return usn=a},{mode:1});var CI2;var G3E;var Fa=function(){var a=_.u.apply(this,arguments)||this;a.width=0;return a};
_.c(Fa,_.u);_.t=Fa.prototype;_.t.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.yV(this,this.onEnded));this.mp4El.addEventListener("error",_.yV(this,this.onError))};
_.t.detached=function(){this.videoEl.removeEventListener("ended",_.yV(this,this.onEnded));this.mp4El.removeEventListener("error",_.yV(this,this.onError))};
_.t.play=function(){var a=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var W=this.videoEl.play();W?W.then(function(){a.handleVideoStartPlaying()}).catch(function(){_.E$(a.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.E$(this.hostElement,"yt-video-thumbnail-not-playing")};
_.t.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.t.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.t.dataChanged=function(){var a;if((a=this.data)==null?0:a.thumbnailPlaceholder)a=_.G$(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+a+")";this.stop();this.autoplay&&this.play()};
_.t.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.t.onEnded=function(){this.stop();_.E$(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.t.onError=function(){_.E$(this.hostElement,"yt-video-thumbnail-error")};
_.t.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.t.getVideoThumbnail=function(a){if(a&&a.length)return a[0]};
Fa.prototype.dataChanged=Fa.prototype.dataChanged;_.f([_.b(),_.z("design:type",Object)],Fa.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Fa.prototype,"animatePlaceholderOnEntrance",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Fa.prototype,"autoplay",void 0);_.f([_.b({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.z("design:type",Object)],Fa.prototype,"videoThumbnail",void 0);
_.f([_.b(),_.z("design:type",Boolean)],Fa.prototype,"loop",void 0);_.f([_.b(),_.z("design:type",Boolean)],Fa.prototype,"isVideoPlaying",void 0);_.f([_.b(),_.z("design:type",Object)],Fa.prototype,"width",void 0);_.f([_.w$("#mp4"),_.z("design:type",HTMLElement)],Fa.prototype,"mp4El",void 0);_.f([_.w$("#placeholder"),_.z("design:type",HTMLElement)],Fa.prototype,"placeholderEl",void 0);_.f([_.w$("#video"),_.z("design:type",HTMLVideoElement)],Fa.prototype,"videoEl",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fa.prototype,"dataChanged",null);Fa=_.f([_.TD({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Fa);
_.D(Fa,"yt-video-as-thumbnail-details",function(){if(G3E===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;CI2===void 0&&(CI2=document.createElement("template"));var Z=CI2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);G3E=a}a=G3E;return a},{mode:2});var Mu=function(){var a=_.u.apply(this,arguments)||this;a.disableGridStateAware=!1;a.animationEnabled=_.r("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};
_.c(Mu,_.u);_.t=Mu.prototype;_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.t.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)};
_.t.attached=function(){this.onWindowResized()};
_.t.detached=function(){this.clearTimeouts()};
_.t.onWindowResized=function(){this.updateSize()};
_.t.computePanelLayout=function(a){return a&&a.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.t.playVideo=function(){var a;this.video&&((a=this.data)==null?0:a.videoThumbnail)&&this.video.play();var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.play()};
_.t.stopVideo=function(){var a;this.video&&((a=this.data)==null?0:a.videoThumbnail)&&this.video.stop();var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.stop()};
_.t.transitionOut=function(){var a=this;this.transitioningOut=!0;return new Promise(function(W){var w=function(){_.M(a.hostElement).querySelector("#action-button").removeEventListener("animationend",w);_.hF.cancelJob(Z);W();a.transitioningOut=!1};
var Z=_.TP(_.hF,w,1E3);_.M(a.hostElement).querySelector("#action-button").addEventListener("animationend",w);a.player&&(a.player.playing=!1)})};
_.t.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"};
_.t.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.t.computeAvatarSize=function(a){return a&&a.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.t.onContentClick=function(a){if(!_.b5(_.qj(a),this.hostElement,["A".toString(),"BUTTON".toString()])){var W;if((W=this.data)==null?0:W.navigationEndpoint){var w;this.componentBehavior.resolveCommand((w=this.data)==null?void 0:w.navigationEndpoint)}}};
_.t.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.t.setBackgroundImage=function(a){if(a=this.getBackgroundImageUrl(a))_.M(this.hostElement).querySelector("#hero").style.backgroundImage="url("+a+")"};
_.t.setScrimLayer=function(a){var W=this.getScrimLayerColorStops(a);a=((a==null?void 0:a.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(a=180);_.LF("HTML_DIR")==="rtl"&&(a=-a);W&&(_.M(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+a+"deg, "+W+")")};
_.t.isNarrower=function(){return this.hostElement.clientWidth<Mu.NARROW_VERSION_SIZE};
_.t.getScrimLayerColorStops=function(){var a,W=(a=this.data)==null?void 0:a.scrimColorValues;if(!W)return null;if(W.length===1)return a=_.pC(W[0]),a+" 0%, "+a+" 100%";if(W.length===3){var w=[0,72,98];return W.map(function(Z,N){return _.pC(Z)+" "+w[N]+"%"}).join(",")}return null};
_.t.getBackgroundImageUrl=function(a){return a&&a.largeFormFactorBackgroundThumbnail?_.G$((a.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||a.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.t.onPlaying=function(){this.startVideoTimeout()};
_.t.onEnded=function(){this.rotate()};
_.t.startPanelTimeout=function(){var a=this;if(!this.panelTimeoutJobId){var W=this.get("data.minPanelDisplayDurationMs");W&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.TP(_.hF,function(){a.rotate()},W))}};
_.t.startVideoTimeout=function(){var a=this;if(!this.videoTimeoutJobId){_.hF.cancelJob(this.panelTimeoutJobId);var W=Date.now()-this.panelTimeoutJobStartMs;W=Math.max(0,this.get("data.minPanelDisplayDurationMs")-W);W=Math.max(this.get("data.minVideoPlayDurationMs")||0,W);this.videoTimeoutJobId=_.TP(_.hF,function(){a.rotate()},W)}};
_.t.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.hF.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.hF.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.t.rotate=function(){this.clearTimeouts();_.E$(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.dU.Object.defineProperties(Mu.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.M(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.M(this.hostElement).querySelector("#video")}}});
_.dU.Object.defineProperties(Mu,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Mu.prototype.onEnded=Mu.prototype.onEnded;Mu.prototype.onPlaying=Mu.prototype.onPlaying;Mu.prototype.dataChanged=Mu.prototype.dataChanged;_.f([_.R(_.Lg),_.z("design:type",Object)],Mu.prototype,"ytdGridStateAwareBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Mu.prototype,"componentBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],Mu.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.R(_.CoL),_.z("design:type",Object)],Mu.prototype,"ytBooleanLogicBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Mu.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Mu.prototype,"disableGridStateAware",void 0);_.f([_.b(),_.z("design:type",Object)],Mu.prototype,"data",void 0);_.f([_.b({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.z("design:type",String)],Mu.prototype,"panelLayout",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Mu.prototype,"animationEnabled",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Mu.prototype,"transitioningOut",void 0);
_.f([_.b({computed:"computeMetadataOrder(data)"}),_.z("design:type",Boolean)],Mu.prototype,"metadataOrder",void 0);_.f([_.b({computed:"computeByline(data)"}),_.z("design:type",Object)],Mu.prototype,"byline",void 0);_.f([_.b({computed:"computeAvatarSize(data)"}),_.z("design:type",Number)],Mu.prototype,"avatarSize",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Mu.prototype,"narrow",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Mu.prototype,"narrower",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Mu.prototype,"layoutStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Mu.prototype,"isCarouselInFeed",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mu.prototype,"dataChanged",null);_.f([_.E6("yt-default-promo-panel-renderer-playing"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mu.prototype,"onPlaying",null);
_.f([_.E6("yt-default-promo-panel-renderer-ended"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mu.prototype,"onEnded",null);Mu=_.f([_.C({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Mu);
_.D(Mu,"ytd-default-promo-panel-renderer",function(){if(sR0!==void 0)return sR0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return sR0=a},{mode:1});_.pA("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Rb=function(){var a=_.u.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};
_.c(Rb,_.u);_.t=Rb.prototype;_.t.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]]"}}}}}};
_.t.attached=function(){document.addEventListener("yt-page-type-changed",_.yV(this,this.onPageTypeChange));this.currentPageSubtype=_.Bu(location.pathname);this.onWindowResized()};
_.t.detached=function(){this.jobId&&_.hF.cancelJob(this.jobId);this.updateSizeJobId&&_.hF.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.yV(this,this.onPageTypeChange))};
_.t.onPageTypeChange=function(a){this.active=a.detail.newPageSubtype===this.currentPageSubtype};
_.t.onWindowResized=function(){this.updateSize()};
_.t.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.t.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.t.setCarouselItem=function(a){a>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.hF.cancelJob(this.jobId);var W=this.getCurrentPanelElement();W&&W.stopVideo();this.currentItemIndex=a%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(W||(W=this.getCurrentPanelElement()),W.playVideo()):this.startRotationJob()};
_.t.scrollThumbnails=function(a){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var W=this.getCurrentPaginationElement();if(W){var w=_.M(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?w.style.transform="translateX(0)":(W=W.offsetWidth+8,w.style.transform="translateX(-"+W*(a-Math.ceil(Math.floor(this.overlay.offsetWidth/W)/2)+1)+"px)")}}};
_.t.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=_.rP(_.hF,function(){a.getCurrentPanelElement().updateSize();a.updateSize()}))};
_.t.getCurrentPanelElement=function(){return _.M(_.M(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.t.getCurrentPaginationElement=function(){return _.M(_.M(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.t.getNavigationClass=function(a,W){return a===W?"selected":""};
_.t.getNavigationDurationStyle=function(a){return"animation-duration:"+(this.get("data.carouselItems."+a+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.t.onNavigationTap=function(a){var W=this,w=a.model.index;w!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){W.setCarouselItem(w)}),this.autorotateActive=!1)};
_.t.onVideoThumbnailEnded=function(){var a=this;if(this.shouldRotate()){var W=this.getCurrentPaginationElement();W&&(W.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){W.classList.remove("finished");a.setNextCarouselItem()}))}};
_.t.onVideoThumbnailError=function(){this.startRotationJob()};
_.t.onVideoNotPlaying=function(){this.startRotationJob()};
_.t.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.t.startRotationJob=function(){var a=this;_.hF.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.hF.addLowPriorityJob(function(){a.getCurrentPanelElement().transitionOut().then(function(){a.setNextCarouselItem()})},this.rotationTimeout))};
_.t.computeDotMenuVisible=function(a,W){return!!a&&!!a.carouselItems&&a.carouselItems.length>1&&!a.paginationThumbnails||!!W};
_.t.computePaginationThumbnailsVisible=function(a,W){var w,Z;return((Z=a==null?void 0:(w=a.paginationThumbnails)==null?void 0:w.length)!=null?Z:0)>1&&!W};
_.t.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.t.computePaginatorAlignment=function(a){return(a==null?void 0:a.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.t.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.t.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.t.isNarrower=function(a){return(a!=null?a:0)<Mu.NARROW_VERSION_SIZE};
Rb.prototype.activeChanged=Rb.prototype.activeChanged;Rb.prototype.onVideoNotPlaying=Rb.prototype.onVideoNotPlaying;Rb.prototype.onVideoThumbnailError=Rb.prototype.onVideoThumbnailError;Rb.prototype.onVideoThumbnailEnded=Rb.prototype.onVideoThumbnailEnded;Rb.prototype.onDataChanged=Rb.prototype.onDataChanged;_.f([_.R(_.Lg),_.z("design:type",Object)],Rb.prototype,"ytdGridStateAwareBehavior",void 0);
_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],Rb.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Rb.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Rb.prototype,"currentItem",void 0);
_.f([_.b(),_.z("design:type",Number)],Rb.prototype,"currentItemIndex",void 0);_.f([_.b(),_.z("design:type",Number)],Rb.prototype,"rotationTimeout",void 0);_.f([_.b(),_.z("design:type",Number)],Rb.prototype,"loopCount",void 0);_.f([_.b({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.z("design:type",String)],Rb.prototype,"paginatorAlignment",void 0);_.f([_.b(),_.z("design:type",Number)],Rb.prototype,"jobId",void 0);
_.f([_.b(),_.z("design:type",Number)],Rb.prototype,"updateSizeJobId",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Rb.prototype,"isCarouselInFeed",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Rb.prototype,"narrower",void 0);_.f([_.b({computed:"computeDotMenuVisible(data, narrower)"}),_.z("design:type",Object)],Rb.prototype,"dotMenuVisible",void 0);
_.f([_.b({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.z("design:type",Object)],Rb.prototype,"paginationThumbnailsVisible",void 0);_.f([_.b({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.z("design:type",String)],Rb.prototype,"layoutType",void 0);_.f([_.b({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],Rb.prototype,"autorotateActive",void 0);_.f([_.b(),_.z("design:type",Object)],Rb.prototype,"active",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Rb.prototype,"disableGridStateAware",void 0);_.f([_.w$("#overlay"),_.z("design:type",HTMLElement)],Rb.prototype,"overlay",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rb.prototype,"onDataChanged",null);
_.f([_.E6("yt-video-thumbnail-ended"),_.E6("yt-default-promo-panel-renderer-rotate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rb.prototype,"onVideoThumbnailEnded",null);_.f([_.E6("yt-video-thumbnail-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rb.prototype,"onVideoThumbnailError",null);
_.f([_.E6("yt-video-thumbnail-not-playing"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rb.prototype,"onVideoNotPlaying",null);_.f([_.lO("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rb.prototype,"activeChanged",null);Rb=_.f([_.C({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Rb);
_.D(Rb,"ytd-carousel-item-renderer",function(){if(bef!==void 0)return bef;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return bef=a},{mode:2});var D8d;var fe0;var d8z;var m8K;var qu=function(){var a=_.u.apply(this,arguments)||this;a.originalQuery=null;a.originalEndpoint=null;return a};
_.c(qu,_.u);qu.prototype.computeShowOriginalQueryWithoutEndpoint_=function(a,W){return!(!a||W)};
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],qu.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],qu.prototype,"correctedText",void 0);_.f([_.b(),_.z("design:type",Object)],qu.prototype,"correctedQuery",void 0);_.f([_.b(),_.z("design:type",Object)],qu.prototype,"correctedEndpoint",void 0);_.f([_.b(),_.z("design:type",Object)],qu.prototype,"originalText",void 0);_.f([_.b(),_.z("design:type",Object)],qu.prototype,"originalQuery",void 0);
_.f([_.b(),_.z("design:type",Object)],qu.prototype,"originalEndpoint",void 0);_.f([_.b({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.z("design:type",Boolean)],qu.prototype,"showOriginalQueryWithoutEndpoint",void 0);qu=_.f([_.TD({is:"yt-search-query-correction",disableElementRegistration:!0})],qu);
_.D(qu,"yt-search-query-correction",function(){if(m8K===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;d8z===void 0&&(d8z=document.createElement("template"));var Z=d8z;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);m8K=a}a=m8K;return a},{mode:2});_.pA("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var QN=function(){return _.u.apply(this,arguments)||this};
_.c(QN,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],QN.prototype,"data",void 0);QN=_.f([_.TD({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],QN);
_.D(QN,"yt-did-you-mean-renderer",function(){if(fe0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;D8d===void 0&&(D8d=document.createElement("template"));var Z=D8d;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);fe0=a}a=fe0;return a},{mode:2});var Vu0;var zQn;_.pA("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var xz=function(){return _.u.apply(this,arguments)||this};
_.c(xz,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xz.prototype,"data",void 0);xz=_.f([_.TD({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],xz);
_.D(xz,"yt-including-results-for-renderer",function(){if(zQn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Vu0===void 0&&(Vu0=document.createElement("template"));var Z=Vu0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);zQn=a}a=zQn;return a},{mode:2});var He0;var yTd;_.pA("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var bm=function(){return _.u.apply(this,arguments)||this};
_.c(bm,_.u);bm.prototype.computeExtraClasses_=function(a,W){var w="";a&&(w+=" "+a.toLowerCase().replace(/_/g,"-"));W&&(w+=" "+W.toLowerCase().replace(/_/g,"-"));return w};
bm.prototype.computeUrlImg_=function(){var a=this.data;a.image&&(_.M(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.G$(a.image.thumbnails,Number.MAX_VALUE)+")")};
bm.prototype.computeUrlImg_=bm.prototype.computeUrlImg_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],bm.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bm.prototype,"computeUrlImg_",null);bm=_.f([_.TD({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],bm);
_.D(bm,"yt-music-pass-feature-info-renderer",function(){if(yTd===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;He0===void 0&&(He0=document.createElement("template"));var Z=He0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);yTd=a}a=yTd;return a},{mode:2});var EYa;var axk;_.pA("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var sg=function(){return _.u.apply(this,arguments)||this};
_.c(sg,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sg.prototype,"data",void 0);sg=_.f([_.TD({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],sg);
_.D(sg,"yt-no-results-found-showing-results-for-renderer",function(){if(axk===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;EYa===void 0&&(EYa=document.createElement("template"));var Z=EYa;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);axk=a}a=axk;return a},{mode:2});var WDE;var wCz;_.pA("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var um=function(){return _.u.apply(this,arguments)||this};
_.c(um,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],um.prototype,"data",void 0);um=_.f([_.TD({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],um);
_.D(um,"yt-results-without-quotes-renderer",function(){if(wCz===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;WDE===void 0&&(WDE=document.createElement("template"));var Z=WDE;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);wCz=a}a=wCz;return a},{mode:2});var ZZf;var NHE;_.pA("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Cs=function(){return _.u.apply(this,arguments)||this};
_.c(Cs,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Cs.prototype,"data",void 0);Cs=_.f([_.TD({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],Cs);
_.D(Cs,"yt-search-no-results-renderer",function(){if(NHE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;ZZf===void 0&&(ZZf=document.createElement("template"));var Z=ZZf;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);NHE=a}a=NHE;return a},{mode:2});var tzK;var $Wa;_.pA("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Gj=function(){return _.u.apply(this,arguments)||this};
_.c(Gj,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Gj.prototype,"data",void 0);Gj=_.f([_.TD({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Gj);
_.D(Gj,"yt-showing-results-for-renderer",function(){if($Wa===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;tzK===void 0&&(tzK=document.createElement("template"));var Z=tzK;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);$Wa=a}a=$Wa;return a},{mode:2});var BHX;var lxk;var Ixd;var PZX;var D1=function(){var a=_.u.apply(this,arguments)||this;a.answerExpanded=!1;return a};
_.c(D1,_.u);D1.prototype.toggleAnswer_=function(a){var W=_.QV(a);W&&W.classList.contains("yt-simple-endpoint")||(a.preventDefault(),a.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
D1.prototype.toggleAnswer_=D1.prototype.toggleAnswer_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],D1.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],D1.prototype,"answerExpanded",void 0);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],D1.prototype,"toggleAnswer_",null);
D1=_.f([_.TD({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],D1);
_.D(D1,"yt-generic-faq-question-renderer",function(){if(PZX===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Ixd===void 0&&(Ixd=document.createElement("template"));var Z=Ixd;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);PZX=a}a=PZX;return a},{mode:2});_.pA("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var fs=function(){return _.u.apply(this,arguments)||this};
_.c(fs,_.u);fs.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],fs.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],fs.prototype,"data",void 0);fs=_.f([_.TD({is:"yt-faq-section-renderer",disableElementRegistration:!0})],fs);
_.D(fs,"yt-faq-section-renderer",function(){if(lxk===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;BHX===void 0&&(BHX=document.createElement("template"));var Z=BHX;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);lxk=a}a=lxk;return a},{mode:2});var XCn;var vLn;_.pA("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var dW=function(){return _.u.apply(this,arguments)||this};
_.c(dW,_.u);
dW.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"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],dW.prototype,"data",void 0);dW=_.f([_.TD({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],dW);
_.D(dW,"yt-offer-item-expanded-renderer",function(){if(vLn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;XCn===void 0&&(XCn=document.createElement("template"));var Z=XCn;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);vLn=a}a=vLn;return a},{mode:2});var gL2;var oLE;_.pA("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var mE=function(){return _.u.apply(this,arguments)||this};
_.c(mE,_.u);
mE.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"}}}}};
mE.prototype.computeFullWidthMode=function(a){return!(!a||!a.fullWidthMode)};
mE.prototype.computeBorderlessMode=function(a){return!(!a||!a.borderlessMode)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],mE.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],mE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],mE.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.z("design:type",Boolean)],mE.prototype,"fullWidthMode",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.z("design:type",Boolean)],mE.prototype,"borderlessMode",void 0);mE=_.f([_.TD({is:"yt-offer-item-renderer",disableElementRegistration:!0})],mE);
_.D(mE,"yt-offer-item-renderer",function(){if(oLE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;gL2===void 0&&(gL2=document.createElement("template"));var Z=gL2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);oLE=a}a=oLE;return a},{mode:2});var k7f;var UWX;_.pA("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var VN=function(){return _.u.apply(this,arguments)||this};
_.c(VN,_.u);VN.prototype.computeAriaLevel_=function(a){return this.getLevelID_(a)};
VN.prototype.getLevelID_=function(a){return(a=a.match(/[0-9]+$/))&&a.length==1?a[0]:"1"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],VN.prototype,"data",void 0);_.f([_.b({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.z("design:type",String)],VN.prototype,"ariaLevel",void 0);_.f([_.b({value:"heading",reflectToAttribute:!0}),_.z("design:type",String)],VN.prototype,"role",void 0);
_.f([_.b({value:-1,reflectToAttribute:!0}),_.z("design:type",Number)],VN.prototype,"tabindex",void 0);VN=_.f([_.TD({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],VN);
_.D(VN,"yt-subscription-product-header-renderer",function(){if(UWX===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;k7f===void 0&&(k7f=document.createElement("template"));var Z=k7f;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);UWX=a}a=UWX;return a},{mode:2});var OZk;var SGa;_.pA("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var zj=function(){return _.u.apply(this,arguments)||this};
_.c(zj,_.u);zj.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:_.r2("menuRenderer"),events:!0}}};
zj.prototype.onStampFinished_=function(){_.M(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
zj.prototype.onStampFinished_=zj.prototype.onStampFinished_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],zj.prototype,"data",void 0);_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zj.prototype,"onStampFinished_",null);
zj=_.f([_.TD({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],zj);
_.D(zj,"yt-subscription-product-renderer",function(){if(SGa===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;OZk===void 0&&(OZk=document.createElement("template"));var Z=OZk;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);SGa=a}a=SGa;return a},{mode:2});var YGd;var THa;_.pA("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var HQ=function(){return _.u.apply(this,arguments)||this};
_.c(HQ,_.u);HQ.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
HQ.prototype.imageScrimColorValuesChanged_=function(){var a,W=(a=this.data)==null?void 0:a.imageScrimColorValues;_.M(this.hostElement).querySelector("#scrim").style.backgroundColor=W?_.pC(W[0]):"transparent"};
HQ.prototype.imageScrimColorValuesChanged_=HQ.prototype.imageScrimColorValuesChanged_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],HQ.prototype,"data",void 0);
_.f([_.a5("data.imageScrimColorValues"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HQ.prototype,"imageScrimColorValuesChanged_",null);HQ=_.f([_.TD({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],HQ);
_.D(HQ,"yt-subscription-product-upsell-offer-renderer",function(){if(THa===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;YGd===void 0&&(YGd=document.createElement("template"));var Z=YGd;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);THa=a}a=THa;return a},{mode:2});var KDa;var pC0;var r$9;var A$i;var hUi;var iZ9;var yN=function(){return _.u.apply(this,arguments)||this};
_.c(yN,_.u);yN.prototype.onYtServiceRequestError_=function(a){_.W6(this.hostElement,a.detail.error.message)};
yN.prototype.onYtServiceRequestError_=yN.prototype.onYtServiceRequestError_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],yN.prototype,"data",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],yN.prototype,"collapsible",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],yN.prototype,"isManageRed",void 0);
_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],yN.prototype,"onYtServiceRequestError_",null);yN=_.f([_.TD({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],yN);
_.D(yN,"yt-single-ypc-offer-renderer",function(){if(iZ9===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;hUi===void 0&&(hUi=document.createElement("template"));var Z=hUi;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);iZ9=a}a=iZ9;return a},{mode:2});var Eg=function(){return _.u.apply(this,arguments)||this};
_.c(Eg,_.u);Eg.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Eg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Eg.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Eg.prototype,"isManageRed",void 0);Eg=_.f([_.TD({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Eg);
_.D(Eg,"yt-single-ypc-offer-list-renderer",function(){if(A$i===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;r$9===void 0&&(r$9=document.createElement("template"));var Z=r$9;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);A$i=a}a=A$i;return a},{mode:2});var c$K;var eU0;_.pA("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var ao=function(){return _.u.apply(this,arguments)||this};
_.c(ao,_.u);ao.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ao.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],ao.prototype,"isManageRed",void 0);ao=_.f([_.TD({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],ao);
_.D(ao,"yt-ypc-offers-list-renderer",function(){if(eU0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;c$K===void 0&&(c$K=document.createElement("template"));var Z=c$K;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);eU0=a}a=eU0;return a},{mode:2});_.pA("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Wf=function(){return _.u.apply(this,arguments)||this};
_.c(Wf,_.u);
Wf.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}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Wf.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Wf.prototype,"data",void 0);Wf=_.f([_.TD({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Wf);
_.D(Wf,"yt-unlimited-manage-subscription-page-renderer",function(){if(pC0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;KDa===void 0&&(KDa=document.createElement("template"));var Z=KDa;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);pC0=a}a=pC0;return a},{mode:2});var nLz;var jWn;var wG=function(){return _.u.apply(this,arguments)||this};
_.c(wG,_.u);_.t=wG.prototype;_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.t.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.onKeypress_=function(a){a.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.t.handleHeaderTap_=function(a){a.preventDefault();a.stopPropagation();this.expandOffers_()};
_.t.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.t.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
wG.prototype.dataChanged_=wG.prototype.dataChanged_;_.f([_.R(_.YS),_.z("design:type",Object)],wG.prototype,"ironA11yKeysBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],wG.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],wG.prototype,"offersVisible_",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wG.prototype,"dataChanged_",null);wG=_.f([_.TD({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],wG);
_.D(wG,"yt-collapsible-ypc-offer-renderer",function(){if(jWn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;nLz===void 0&&(nLz=document.createElement("template"));var Z=nLz;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);jWn=a}a=jWn;return a},{mode:2});var LD2;var J$0;_.pA("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Z0=function(){return _.u.apply(this,arguments)||this};
_.c(Z0,_.u);_.t=Z0.prototype;_.t.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.t.dataChanged_=function(){if(this.data.backgroundImage){var a=_.G$(this.data.backgroundImage.thumbnails,screen.width),W=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=W?"linear-gradient(180deg, "+W+"), url("+a+")":"url("+a+")";this.data.gtmId&&_.g4(this.data.gtmId,_.LF("GL",""))}};
_.t.onYtServiceRequestError_=function(a){_.W6(this.hostElement,a.detail.error.message)};
_.t.getScrimLayerColorStops_=function(){var a,W,w=(a=this.data.unlimitedHeaderV2Data)==null?void 0:(W=a.unlimitedHeaderV2Data)==null?void 0:W.scrimLayerColors;if(!w)return null;var Z=100/w.length;return w.map(function(N,B){B*=Z;return _.pC(N)+" "+B+"%"}).join(",")};
_.t.computeLogoWithPadding=function(a){var W,w,Z;return(a=(W=a.unlimitedLogoImage)==null?void 0:(w=W.thumbnails)==null?void 0:(Z=w[0])==null?void 0:Z.height)&&a%31===0?!0:!1};
Z0.prototype.onYtServiceRequestError_=Z0.prototype.onYtServiceRequestError_;Z0.prototype.dataChanged_=Z0.prototype.dataChanged_;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Z0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Z0.prototype,"ytRendererBehavior",void 0);_.f([_.b({computed:"computeLogoWithPadding(data)"}),_.z("design:type",Boolean)],Z0.prototype,"logoWithPadding",void 0);
_.f([_.b(),_.z("design:type",Object)],Z0.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Z0.prototype,"dataChanged_",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Z0.prototype,"onYtServiceRequestError_",null);Z0=_.f([_.TD({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Z0);
_.D(Z0,"yt-unlimited-page-header-renderer",function(){if(J$0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;LD2===void 0&&(LD2=document.createElement("template"));var Z=LD2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);J$0=a}a=J$0;return a},{mode:2});var FD0;var Mzz;_.pA("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var NZ=function(){return _.u.apply(this,arguments)||this};
_.c(NZ,_.u);NZ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],NZ.prototype,"data",void 0);NZ=_.f([_.TD({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],NZ);
_.D(NZ,"yt-unlimited-user-notification-renderer",function(){if(Mzz===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;FD0===void 0&&(FD0=document.createElement("template"));var Z=FD0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Mzz=a}a=Mzz;return a},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Pna=_.xQ(function(a){var W=_.Qn(a,{numberOfChips:5}).numberOfChips;return _.k("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.k(_.k6,{each:function(){return Array(W==null?void 0:W())}},function(){return _.k("div",{class:"ytGhostChipShelfChip"})}))},"cg");_.XI2=_.xQ(function(a){var W=_.Ns(),w=_.K().resolve(_.Fm);_.pF(function(){requestAnimationFrame(function(){var N;(N=W.lottieEl)==null||N.addEventListener("DOMLoaded",function(){var B;(B=a.onLottieLoaded)==null||B.call(a)})})});
var Z={};return _.k("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var N;return((N=a.data)==null?void 0:N.call(a).targetId)||""}},_.k(_.w2,{className:_.W$((Z.ytChatLoadingViewModelRtl=w==="rtl",Z)),
animationName:"YOUCHAT_LOADER",data:function(){var N;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((N=a.data)==null?void 0:N.call(a).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:W}))},"dg");
}catch(e){_._DumpException(e)}
try{
var Fkk,M39,RB0,qTn,Qvz,xqz,bYf,VU,z7,uu0,Cfa,G5X,fZ0,afK,HC,Eg0,V3k,yvn,HY9,zBK,mqd,WHn,wMn,Zrn,Nha,yU,tka,$Fd,BhX,v3z,XMz,PJD,lfd,If0,g30,o30,kOi,UFX,Or9,KHn,AKf,hY2,ir0,eYi,j$9,JKk,FHI,MkD,RYI,Q$d,xF9,brD,s$d,uhX,CJz,GO0,ff0,zYz,VkI,dFk,Hrk,mFf,yKE,wan,W$k,E3K,aTd,W8,Zaf,tQz,lTk,o1k,kvD,Ukf,OaK,SiX,Yik,TjE,K$k,paD,rof,hGI,iaf,co2,svd,Xan;
_.dH=function(a){var W=new _.Uw("Error accessing DB");return _.xL7().then(function(w){return new Promise(function(Z,N){try{var B=w.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(a);B.onsuccess=function(){var I=B.result;Z(I?I.value:null)};
B.onerror=function(){W.params={key:a,source:"onerror"};N(W)}}catch(I){W.params={key:a,
thrownError:String(I)},N(W)}})},function(){return null})};
_.Jv2=function(a,W){var w=_.UoH(W);w!=="javascript:"&&w!=="data:"&&a.setAttribute("href",W)};
Fkk=function(a,W){return _.tG(a.entities,"flowStateEntity",W)};
M39=function(a){return(a=a.getOption("captions","track"))?!!a.displayName:!1};
RB0=function(a,W){W=W.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(W==null||!W.length)return a;var w=W.filter(function(I){return I});
W=a.filter(function(I){return I.languageCode.startsWith("en")});
w=_.l(w);for(var Z=w.next();!Z.done;Z=w.next())if(Z=Z.value,W.length){var N=W[0],B=Object.assign({},N);N.languageCode!==Z.languageCode&&(B.displayName=N.languageName+" >> "+Z.languageName,B.translationLanguage=Z,a.push(B))}return a};
qTn=function(a){var W,w=(W=a.getOption("captions","tracklist",{includeAsr:!0}))!=null?W:[];_.r("mweb_watch_captions_enable_auto_translate")&&(w=RB0(w,a));return w};
Qvz=function(a){return _.be(a,function(W){return W.languageCode==="en"})};
xqz=function(a){var W=mD;if(M39(a))a.setOption("captions","stickyLoading",{}),a.setOption("captions","track",{});else{var w=_.be(qTn(a),function(Z){return Z.displayName===W});
a.setOption("captions","track",w)}};
bYf=function(a){if(!a)return 0;var W=a.getPresentingPlayerType(),w=a.getVideoData();return w&&w.isLive?(a=a.getProgressState(W),a.seekableEnd-a.seekableStart):a.getDuration(W)};
VU=function(a,W){_.RI(W,a,function(){return svd[W]},function(w){svd[W]=w;
if(!_.r("mweb_player_ve_show_ks")){var Z=_.nS(0);Z&&w&&_.q1(Z,w)}})};
z7=function(a){(a=svd[a])&&_.BE(_.$J(),a)};
uu0=function(a,W){for(var w=_.l(Object.keys(a)),Z=w.next();!Z.done;Z=w.next())if(Z=Z.value,a[Z]!==W[Z])return!1;return!0};
Cfa=function(){return document.getElementById("player-control-overlay")};
G5X=function(a){a!==-1&&!_.r("player_controls_log_creation_killswitch")&&Cfa()&&(_.Ak("pcu_cs",a),_.Ak("pcu_ce"))};
fZ0=function(a){return _.k("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(a.subscribeButton?[a.subscribeButton,a.channelAccess]:[a.channelAccess]).map(function(W){return _.k("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.k("div",{class:"yt-profile-identity-info-view-model-wiz--button"},DqE(W)))}))};
_.dqK=function(a){var W=a.data;a=a.hideDivider;var w={};w=(w["yt-profile-identity-info-view-model-wiz__frame"]=!0,w["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!W.channelBanner,w);w={class:_.ZK(w)};var Z,N={imageBannerViewModel:{image:(Z=W.channelBanner)==null?void 0:Z.image,style:"IMAGE_BANNER_STYLE_INSET"}};Z=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},W.channelBanner?_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
DqE(N,{imageBannerViewModel:{isPositionRelative:!0}})):null);N=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},DqE(W.avatar));var B;var I=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},W.channelDisplayName),W.verifiedOrOacBadge?_.k("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.k(_.qw,{data:{thumbnails:[{url:(B=W.verifiedOrOacBadge)==null?void 0:B.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);B=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},I,DqE(W.threeDotMenu));I=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.k("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.k("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},W.channelHandle),W.channelPronouns&&W.channelHandle?_.k("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.k("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},W.channelPronouns)),_.k("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.k("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},W.leftOfBulletInfo),W.leftOfBulletInfo&&W.rightOfBulletInfo?_.k("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.k("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},W.rightOfBulletInfo)));B=_.k("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},B,I);return _.k("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.k("div",w,Z,_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},N,B),W.channelDescription?_.k("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},W.channelDescription):
null,fZ0(W),a?null:_.k("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
afK=function(a,W){var w=_.qt(a,{}),Z=mqd("top",W),N=mqd("bottom",W),B=mqd("left",W),I=mqd("right",W);return _.It({top:function(){return HC(w().position,Z)},
bottom:function(){return HC(w().position,N)},
left:function(){return HC(w().position,B)},
right:function(){return HC(w().position,I)},
position:function(){return HC(w().positionType,V3k)},
height:function(){return HC(w().height,yU)},
width:function(){return HC(w().width,yU)},
"min-width":function(){return HC(w().minWidth,yU)},
"min-height":function(){return HC(w().minHeight,yU)},
"max-width":function(){return HC(w().maxWidth,yU)},
"max-height":function(){return HC(w().maxHeight,yU)},
"aspect-ratio":function(){return HC(w().aspectRatio,String)},
"margin-top":function(){return HC(w().margin,Z)},
"margin-bottom":function(){return HC(w().margin,N)},
"margin-left":function(){return HC(w().margin,B)},
"margin-right":function(){return HC(w().margin,I)},
"padding-top":function(){return HC(w().padding,Z)},
"padding-bottom":function(){return HC(w().padding,N)},
"padding-left":function(){return HC(w().padding,B)},
"padding-right":function(){return HC(w().padding,I)},
"flex-direction":function(){return HC(w().flexDirection,zBK)},
"justify-content":function(){return HC(w().justifyContent,HY9)},
"align-items":function(){return HC(w().alignItems,yvn)},
"flex-grow":function(){return HC(w().flexGrow,String)},
"flex-shrink":function(){return HC(w().flexShrink,String)},
"flex-basis":function(){return HC(w().flexBasis,yU)},
"align-self":function(){return HC(w().alignSelf,yvn)},
"flex-wrap":function(){return HC(w().flexWrap,Eg0)},
"align-content":function(){return HC(w().alignContent,yvn)}})};
HC=function(a,W){return a!==void 0?W(a):void 0};
Eg0=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"}};
V3k=function(a){switch(a){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
yvn=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"}};
HY9=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"}};
zBK=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"}};
mqd=function(a,W){var w=W==="rtl";switch(a){case "top":var Z=WHn;break;case "bottom":Z=wMn;break;case "left":Z=Zrn;break;default:Z=Nha}return function(N){return HC(Z(N,w),yU)}};
WHn=function(a){var W=a.top;var w=a.vertical;a=a.all;var Z;return(Z=W!=null?W:w)!=null?Z:a};
wMn=function(a){var W=a.bottom;var w=a.vertical;a=a.all;var Z;return(Z=W!=null?W:w)!=null?Z:a};
Zrn=function(a,W){var w=a.left;var Z=a.end;var N=a.start;var B=a.horizontal;a=a.all;var I,X;return(X=(I=w!=null?w:W?Z:N)!=null?I:B)!=null?X:a};
Nha=function(a,W){var w=a.right;var Z=a.end;var N=a.start;var B=a.horizontal;a=a.all;var I,X;return(X=(I=w!=null?w:W?N:Z)!=null?I:B)!=null?X:a};
yU=function(a){var W=a.value;switch(a.unit){case "YPC_DIMENSION_UNIT_POINT":return W+"px";case "YPC_DIMENSION_UNIT_FRACTION":return W+"%";default:return""+W}};
tka=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"}};
$Fd=function(a){var W=a!=null?a:{};a=W.fontRole;var w=W.fontSize;W=W.fontWeight;if(a!==null&&w!==null)switch(a){case "YPC_FONT_ROLE_DISPLAY":switch(w){case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(w){case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return W===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(w){case "YPC_FONT_SIZE_XL":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
BhX=function(a,W){return _.tG(a.entities,"pdpStateEntity",W)};
v3z=function(a,W,w){function Z(U){return Object.values(U).map(function(O){var S=O.productId;O=O.pricingOptionIndex;return lfd(N(S).pricingOptions,O).pricingOptionId})}
function N(U){return X().get(U)}
function B(U){U=Z(U);w(U)}
var I=If0([a,W],function(U,O){var S=U==null?void 0:U.selectedPricingOptions;U={};var T=!0;if(S&&O.length)for(var p=_.l(O),h=p.next();!h.done;h=p.next()){h=h.value;var L=PJD(h.pricingOptions,function(F){a:{F=F.pricingOptionId;for(var x=_.l(S),G=x.next();!G.done;G=x.next())if(G.value===F){F=!0;break a}F=!1}return F});
L>=0&&(T=!1,U[h.groupId]={productId:h.productId,pricingOptionIndex:L})}T&&O.length&&(U[O[0].groupId]={productId:O[0].productId,pricingOptionIndex:0});return U}),X=If0([W],function(U){return new Map(U.map(function(O){return[O.productId,
O]}))}),v=If0([W],function(U){var O=new Map;
U=_.l(U);for(var S=U.next();!S.done;S=U.next()){var T=S.value;S=T.groupId;var p=T.productId;T=_.l(XMz(T.pricingOptions));for(var h=T.next();!h.done;h=T.next()){var L=_.l(h.value);h=L.next().value;L=L.next().value;O.set(L.pricingOptionId,{groupId:S,productId:p,index:h,pricingOption:L})}}return O});
return{getProductById:N,isProductSelected:function(U){var O=N(U);if(!O)return!1;var S;return((S=I()[O.groupId])==null?void 0:S.productId)===U},
getSelectedPricingOptions:function(){return Object.values(I()).map(function(U){var O=U.productId;U=U.pricingOptionIndex;return lfd(N(O).pricingOptions,U)})},
getSelectedProductByGroupId:function(U){var O;return(U=(O=I()[U])==null?void 0:O.productId)?N(U):void 0},
onProductSelected:function(U){var O=N(U);if(O){var S=I(),T;if(((T=S[O.groupId])==null?void 0:T.productId)!==U){var p,h;T=(h=(p=S[O.groupId])==null?void 0:p.pricingOptionIndex)!=null?h:0;p=0;for(h=O.pricingOptions[Symbol.iterator]();!h.next().done;)++p;p<=T&&(T=0);p={};B(Object.assign({},S,(p[O.groupId]={productId:U,pricingOptionIndex:T},p)))}}},
onPricingOptionSelected:function(U){var O=v().get(U);if(O){U=O.groupId;var S=O.productId;O=O.index;var T=I(),p,h;if(((p=T[U])==null?void 0:p.productId)!==S||((h=T[U])==null?void 0:h.pricingOptionIndex)!==O)p={},B(Object.assign({},T,(p[U]={productId:S,pricingOptionIndex:O},p)))}},
onClearGroupSelected:function(U){var O=I();O[U]&&(O=Object.fromEntries(Object.entries(O).filter(function(S){return _.l(S).next().value!==U})),B(O))}}};
XMz=function(a){return function w(){var Z,N,B,I,X;return _.QbS(w,function(v){switch(v.nextAddress){case 1:_.lb(v,2),Z=0,N=_.l(a),B=N.next();case 4:if(B.done){v.jumpTo(2);break}I=B.value;X=_.xuH;return _.g(v,[Z++,I],7);case 7:X(v.yieldResult);B=N.next();v.jumpTo(4);break;case 2:_.$8(v),_.In(v,0)}})}()};
PJD=function(a,W){a=_.l(XMz(a));for(var w=a.next();!w.done;w=a.next()){var Z=_.l(w.value);w=Z.next().value;Z=Z.next().value;if(W(Z))return w}return-1};
lfd=function(a,W){a=_.l(XMz(a));for(var w=a.next();!w.done;w=a.next()){var Z=_.l(w.value);w=Z.next().value;Z=Z.next().value;if(w===W)return Z}};
If0=function(a,W){var w,Z;return function(){for(var N=a.map(function(I){return I()}),B=0;B<N.length;B++)if(!w||N[B]!==w[B]){w=N;
Z=W.apply(null,_.K8(N));break}return Z}};
g30=function(a){var W;return!!(a.productId&&a.groupId&&((W=a.pricingOptions)==null?0:W.length)&&a.pricingOptions.every(function(w){return w.pricingOptionId}))};
o30=function(a,W,w){return v3z(a,If0([W],function(Z){return Z.filter(g30)}),w)};
kOi=function(a,W){return W.length===0?[a]:[a.slice(0,W[0]),a.slice(W[0])].filter(function(w){return w.length>0})};
UFX=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""}};
Or9=function(a,W,w,Z){Z=Object.assign({},Z);_.Sx(Z,EG,{selectedOptionId:a,primaryButtonOverride:w});_.FM().dispatch(_.oL("flowStateEntity",W,Z))};
_.Thz=function(){if(!SWX){var a=_.l(_.$1(new Map,void 0,"UJImUe"));SWX=a.next().value;YWE=a.next().value}return SWX};
KHn=function(a){if(a)return _.Thz()().get(a)};
_.pM9=function(a,W){if(a&&W){var w=_.Thz();w().set(a,W);a=w();YWE(new Map(a))}};
_.rKf=function(a){return{onSubmit:function(){var W;(W=KHn(a()))==null||W.onSubmit()},
isValid:function(){var W=KHn(a());return W?W.isValid():!0},
isSubmitting:function(){var W,w;return!!((W=KHn(a()))==null?0:(w=W.isSubmitting)==null?0:w.call(W))}}};
AKf=function(a,W){return _.tG(a.entities,"contextNoteFeedEntityPayload",W)};
hY2=function(a){a.style.height="auto";a.style.height=a.scrollHeight+"px"};
ir0=function(a){return[a.syncStep,a.asyncStep].filter(function(W){return W!==void 0})};
eYi=function(a){var W,w,Z;if(a=(W=a.structuredContextNoteFormSchema)==null?void 0:(w=W.fieldSchemas)==null?void 0:(Z=w.noteBody)==null?void 0:Z.validationSchema)for(W=_.l(ir0(a)),w=W.next();!w.done;w=W.next()){w=w.value.rules;if(!w)break;w=_.l(w);for(w=w.next();!w.done;w=w.next())return _.A(w.value,_.cKD)}};
j$9=function(a){if(a){a=_.l(ir0(a));for(var W=a.next();!W.done;W=a.next()){W=W.value.rules;if(!W)break;W=_.l(W);for(W=W.next();!W.done;W=W.next())return _.A(W.value,n3d)}}};
JKk=function(a){if(a){a=_.l(ir0(a));for(var W=a.next();!W.done;W=a.next()){W=W.value.rules;if(!W)break;W=_.l(W);for(W=W.next();!W.done;W=W.next())return _.A(W.value,LHf)}}};
FHI=function(a){a=/^https?:\/\//.test(a)?a:"http://"+a;try{var W=_.MF(a)}catch(w){return!1}if(W.toString()!==a)return!1;a=W.JSC$7940_domain_.split(".");return a.length>1&&a.every(function(w){return!!w})};
MkD=function(a,W,w,Z){var N;Z=(N=Z.structuredContextNoteData)==null?void 0:N.createCommentEndpoint;if(N=_.A(Z,_.bll))return N.commentText=_.b8(a),N.videoPositionMention=W,N.sources=w,Z};
RYI=function(a){return a==null?void 0:a.stringValue};
Q$d=function(a,W,w){a=a.map(function(Z,N){return{listItemViewModel:{title:Z.title,subtitle:Z.subtitle,leadingImage:Z.leadingImage,trailingImage:N===W?qW0:void 0,rendererContext:{commandContext:{onTap:Z.onTap}}}}});
return Object.assign({},w&&{header:{panelHeaderViewModel:{title:w}}},{content:{listViewModel:{listItems:a}}})};
xF9=function(a,W){if(a&&W)switch(W){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}};
brD=function(a){var W;a=(W=a.options)==null?void 0:W.findIndex(function(w){return w.isSelected});
return a===void 0?-1:a};
s$d=function(a,W,w){var Z=function(){return a().label},N={},B=_.W$("ytDropdownViewModelLabel",(N.ytDropdownViewModelLabelError=W,N));
return _.k(_.Y,{cond:function(){return a().label&&!(w()===-1&&a().label&&!a().placeholderText)},
then:function(){return _.k("div",{class:B},_.k(_.k_,{text:Z}))}})};
uhX=function(a,W){var w={};w=_.W$("ytDropdownViewModelTitle",(w.ytDropdownViewModelTitlePlaceholder=function(){return W()===-1},w));
return _.k("div",{class:w},_.k(_.k_,{text:function(){var Z=a();var N=W();if(N===-1)Z=Z.placeholderText?Z.placeholderText:Z.label;else{var B,I;Z=(B=Z.options)==null?void 0:(I=B[N])==null?void 0:I.title}return Z}}))};
CJz=function(a,W){var w=function(){return a().hint};
return _.k(_.Ha,null,_.k(_.Y,{cond:function(){return w()&&!W()},
then:function(){return _.k("div",{class:_.W$("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.k(_.k_,{text:w,className:"ytDropdownViewModelSupportText"}))}}),_.k(_.Y,{cond:W,
then:function(){return _.k("div",{id:"dropdown-view-model-error",role:"alert",class:_.W$("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.k(_.P$,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.k(_.k_,{text:W,className:"ytDropdownViewModelSupportText"}))}}))};
GO0=function(a,W){var w=_.K().resolve(_.Lp_);_.AS(function(){var Z=a().id;Z&&w!=null&&w.dropdownMap.set(Z,W)})};
ff0=function(a){a=_.A(a.scheduleButton,DF9);a=_.A(a==null?void 0:a.primaryButton,_.hx);a=_.A(a==null?void 0:a.onTap,_.pt);var W,w,Z=((w=_.A(a,_.$7))==null?void 0:w.commands)||[a];w=_.l(Z);for(a=w.next();!a.done&&!(W=_.A(a.value,_.CwV));a=w.next());var N;W=(N=W)==null?void 0:N.createBroadcastRequest;if(!W)throw Error("Gj");return W};
zYz=function(a,W,w){w=w===void 0?{}:w;var Z,N;return _.P(function(B){if(Z=dFk(W))return B.return(Z);(N=mFf(a,W,w))&&VkI(W,N);return B.return(N)})};
VkI=function(a,W){var w=Hrk(a);w&&W.then(function(Z){_.K().resolve(_.W3).put(w,new _.wy({innertubeResponse:Z}))})};
dFk=function(a){if(a=Hrk(a)){var W=_.K().resolve(_.W3);if(W.has(a))return W.get(a).then(function(w){return w==null?void 0:_.PN(w)})}return null};
Hrk=function(a){var W=_.A(a.endpoint,_.u6);if(W!=null&&W.videoId)return W={videoId:W.videoId},_.r("web_imp_player_mute_params")&&(W.mutedAtStart=a.startPlaybackInMutedState),_.s$("inline_playback",W)};
mFf=function(a,W,w){a=_.MX(a,W.endpoint,yKE(W,w)).then(function(Z){return Z});
return Promise.resolve(a)};
yKE=function(a,W){W=_.r("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!a.startPlaybackInMutedState},W):Object.assign({},{vis:5,autonav:"1"},W);var w;W={contentPlaybackContext:_.o1(W,(w=_.A(a.endpoint.commandMetadata,_.mm))==null?void 0:w.url,window.location.href)};_.r("web_imp_player_mute_params")&&(W.overrideMutedAtStart=!a.startPlaybackInMutedState);return W};
wan=function(a,W){var w=window.MutationObserver;w&&(af=new w(function(Z,N){Z=_.l(Z);for(var B=Z.next();!B.done;B=Z.next()){B=B.value;var I;if(I=B.type==="childList"&&B.target)a:{I=a;B=E3K(B.target);I=E3K(I);for(var X=null,v=0;v<B.length;v++)if(I.includes(B[v])){if(v===0){I=!1;break a}X=B[v];break}X?(B=aTd(B,X),I=aTd(I,X),I=B<I):I=!1}if(I){W();N.disconnect();break}}}),(w=W$k())&&af.observe(w,{childList:!0,
subtree:!0}))};
W$k=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};
E3K=function(a){for(var W=[];a;)W.push(a),a=a.parentElement;return W};
aTd=function(a,W){var w=Array.from(W.children);W=a.indexOf(W);return W>0?w.indexOf(a[W-1]):-1};
W8=function(a,W,w){w=w===void 0?{}:w;return _.P_(a,w,W)};
Zaf=function(a){return a==null?void 0:a.filter(function(W){return W.premiereTrailerBadgeRenderer})};
tQz=function(a){var W,w=a==null?void 0:(W=a.find(function(O){return O.thumbnailOverlayTimeStatusRenderer}))==null?void 0:W.thumbnailOverlayTimeStatusRenderer,Z;
if(w==null?0:(Z=w.icon)==null?0:Z.iconType){var N;return{icon:w==null?void 0:(N=w.icon)==null?void 0:N.iconType}}var B,I;var X=(a=(B=a==null?void 0:(X=a.find(function(O){return O.thumbnailBottomOverlayViewModel}))==null?void 0:X.thumbnailBottomOverlayViewModel)==null?void 0:(I=B.badges)==null?void 0:I.find(function(O){var S,T;
return((S=_.A(O,NjK))==null?void 0:(T=S.inlinePlaybackBadgeData)==null?void 0:T.replicateAsTimestamp)===!0}))?_.A(a,NjK):void 0;
if(X==null?0:X.icon){var v,U;if(X=(v=_.L9e(X==null?void 0:X.icon))==null?void 0:(U=v.clientResource)==null?void 0:U.imageName)return{icon:X}}return{}};
lTk=function(a,W){var w="",Z="";switch(a){case -1:case 0:w=W?"VOLUME_OFF":"VOLUME_OFF_FILLED";Z=$k0;break;case 1:w=W?"VOLUME_UP_OUTLINE":"VOLUME_UP";Z=Bj0;break;default:_.l9(a)}return{iconName:w,ariaLabel:Z}};
o1k=function(a,W){var w=ITK,Z=_.l(_.$1(PkE(new Xan(function(){},w,W)),void 0,"PAnyd")),N=Z.next().value,B=Z.next().value,I=new Xan(function(X){B(X)},w,W);
_.Ka(function(){Promise.resolve().then(function(){var X,v=(X=a())!=null?X:{};I.playerControlsData=v;_.r("player_controls_skip_double_signal_old")&&(I.lastSeenPlayerApi=_.xX(v.playerApi));_.r("player_controls_skip_double_signal_old")||(I.lastSeenPlayerApi=_.xX(v.playerApi));v1n(I)});
_.Ao(function(){g1a(I)})});
_.Ao(function(){g1a(I)});
return function(){return N()}};
kvD=function(a){return function(W){var w=a(),Z={playerState:W};if(W===1){var N;(N=w.playerApi)==null||N.loadModule("captions")}if(W===0){var B;(B=w.playerApi)==null||B.unloadModule("captions")}(W!==-1||_.r("web_imp_controls_set_player_state_killswitch"))&&w.setState(Z)}};
Ukf=function(a){return function(W){a().setState({playbackRate:W})}};
OaK=function(a){return function(W){var w=a(),Z=w.playerApi,N=Z==null?void 0:Z.getVideoData(),B=(N==null?void 0:N.isLive)||!1;N=N==null?void 0:N.video_id;B={videoDuration:bYf(Z||void 0),isLive:B,videoId:N};B.videoId!==w.videoId&&(B=Object.assign({},_.GTU(Z),B));if(W==null?0:W.playertype)B.playerType=W.playertype;if(Z){B.captionsAvailable=!!Z.getOptions("captions");W=B;var I;N=(I=Z.getStoryboardLevel(Z.getNumberOfStoryboardLevels()-1))==null?void 0:I.intervalMs;W.storyboardInterval=N?N/1E3:void 0;B.captionsAvailable&&
(B.captionsEnabled=M39(Z))}B.volumeMuted=!(Z==null||!Z.isMuted());w.setState(B)}};
SiX=function(a){return function(W){var w=a(),Z=w.playerApi;if(Z){var N=Z.getPresentingPlayerType();W={playedTime:W||0,percentLoaded:Z.getVideoLoadedFraction(),playerType:N};w.playerState===0&&(W.playedTime=w.videoDuration);w.isLive&&(N=Z.getProgressState(N),W.playedTime-=N.seekableStart,W.videoDuration=bYf(Z));if(w.playerType===1)Z=!1;else{var B;if((B=w.uxConfig)==null?0:B.showCuedOverlay){var I;Z=!((I=w.playerApi)==null?0:I.getPlayerStateObject(w.playerType).isDomPaused)}else Z=!0}Z&&delete W.playedTime;
w.setState(W)}}};
Yik=function(a){return function(){var W=a(),w,Z,N,B={volume:(N=(w=W.playerApi)==null?void 0:w.getVolume())!=null?N:0,volumeMuted:!((Z=W.playerApi)==null||!Z.isMuted())};W.setState(B)}};
TjE=function(a){return function(){var W=a(),w=W.playerApi;if(w){var Z={captionsAvailable:!!w.getOptions("captions")};Z.captionsAvailable&&(Z.captionsEnabled=M39(w));W.setState(Z)}}};
K$k=function(a){return function(){var W=a();if(W.playerApi&&!(W.volumeMuted||W.controlsVisible&&W.isProbablyAScreenreaderUser)){W.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var w;(w=document.querySelector(".player-control-play-pause-icon"))==null||w.focus()}}};
paD=function(a){return{appApi:Object.assign({},_.qOH(),{showCaptionsToggleToast:function(W){var w,Z;(Z=(w=a()).showCaptionsToggleToast)==null||Z.call(w,W)},
openInMiniplayer:function(){var W,w;(w=(W=a()).openInMiniplayer)==null||w.call(W)}})}};
rof=function(a,W){var w,Z,N;return!!(a==null?0:(w=a.playerResponse)==null?0:(Z=w.playerConfig)==null?0:(N=Z.inlinePlaybackConfig)==null?0:N.showScrubbingControls)&&!(W==null?0:W.hideScrubbingControls)};
_.AoK=function(a){var W=!a.miniplayerIsActive;return[5,2,0].includes(a.miniplayerPlaybackState)||W};
hGI={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};iaf=function(a,W){var w,Z,N,B,I;_.P(function(X){if(!W.length)return X.return([]);w=[];Z=_.l(W);for(N=Z.next();!N.done;N=Z.next())B=N.value,(I=a.resolveIcon(B))&&!a.iconCache[I.url]&&w.push(_.CA0(a,I).then(function(){}).catch(function(){}));
return X.return(Promise.all(w))})};
co2=function(a,W){var w=[];W=(new Set(W)).values();W=_.l(W);for(var Z=W.next();!Z.done;Z=W.next()){Z=Z.value;for(var N=_.l(Object.values(hGI)),B=N.next();!B.done;B=N.next())w.push({iconName:Z,iconStyle:B.value})}iaf(a.iconManager,w)};
_.eG9=function(a,W,w){var Z=w!=null?w:a.iconsToFetch;Z!=null&&Z.length?W!==void 0&&W>=0?_.TP(_.hF,function(){co2(a,Z)},W):co2(a,Z):Promise.resolve()};
svd={};
Xan=function(a,W,w){var Z=this;this.renderFn=a;this.listeners=W;this.context=w;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var N;this.lastSeenPlayerApi=_.xX((N=this.playerControlsData)==null?void 0:N.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.GTU(),void 0);_.r("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){PkE(Z).setState({playerState:-1});Z.resetRecentlyNavigatedJobId&&_.hF.cancelJob(Z.resetRecentlyNavigatedJobId);Z.recentlyNavigated=
!0;Z.resetRecentlyNavigatedJobId=_.hF.addJob(function(){Z.recentlyNavigated=!1},8,1E4)})};
Xan.prototype.setState=function(a){if(!_.r("mweb_player_skip_no_op_state_changes")||!uu0(a,this.state))if(this.state=Object.assign({},this.state,a),!_.r("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)a=-1,_.r("player_controls_log_creation_killswitch")||Cfa()||(a=(0,_.mG)()),_.Ak("pcu_s"),_.Ak("pcu_se"),_.Ak("pcu_rs"),this.renderFn(PkE(this)),_.Ak("pcu_re"),G5X(a),_.hF.addJob(function(){_.Ak("pcu_ap")},8)};
var PkE=function(a){var W;var w=_.xX((W=a.playerControlsData)==null?void 0:W.playerApi);return Object.assign({},a.state,{setState:a.boundSetState,domMeasurements:{progressBarLineRect:a.progressBarLineRect},playerApi:w,appApi:a.context.appApi,playerContainer:a.context.playerContainer,playerControlContainer:a.context.playerControlContainer,uxConfig:a.context.uxConfig})},v1n=function(a){a.listeners.forEach(function(W){a.eventListenerCleanupFunctions.push(W.register(function(){return PkE(a)},function(){return a.getData()}))})},
g1a=function(a){a.eventListenerCleanupFunctions.forEach(function(W){W()});
a.eventListenerCleanupFunctions.length=0};
Xan.prototype.getData=function(){return this.playerControlsData};
var wV=new _.H("abuseReportFlowState");var n12=new _.H("feedbackFormFlowState");var jun=new _.H("inputBoxViewModel");var L$d=new _.H("flowNextStepCommand");var Joa=new _.H("flowPrevStepCommand");var F$9=new _.H("updateFlowCommand");_.MQI=new _.H("flowStepRenderer");_.cKD=new _.H("lengthValidationRule");var n3d=new _.H("regexValidationRule");var LHf=new _.H("selectedValidationRule");var RG0=new _.H("talkToRecsViewModel");var qi9=new _.H("creatorGoalSetUpFlowDropdownItemViewModel");var Quk=new _.H("creatorGoalSetUpFlowDropdownViewModel");var NjK=new _.H("thumbnailBadgeViewModel");_.xkK=new _.H("radioButtonGroupViewModel");var DF9=new _.H("panelFooterViewModel");var ban=new _.H("ypcCancelRecurrenceCommand");var suE=new _.H("cancellationFlowState");var EG=new _.H("premiumPurchaseFlowState");var uTz=new _.H("surveyAnswerCardRenderer");var Ck9=new _.H("showMoreButtonRenderer");var Gv0;var Dk2,fTK=function(){if(Dk2!==void 0)return Dk2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;Gv0===void 0&&(Gv0=document.createElement("template"));var Z=Gv0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return Dk2=a};var Zn=function(){var a=_.u.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};
_.c(Zn,_.u);_.t=Zn.prototype;_.t.getGoalDropdownItems=function(){var a,W;return(W=_.A((a=this.data)==null?void 0:a.purchaseTargetDropdown,Quk))==null?void 0:W.dropdownItems};
_.t.getTimerDropdownItems=function(){var a,W;return(W=_.A((a=this.data)==null?void 0:a.timerDropdown,Quk))==null?void 0:W.dropdownItems};
_.t.getColorDropdownItems=function(){var a,W;return(W=_.A((a=this.data)==null?void 0:a.colorDropdown,Quk))==null?void 0:W.dropdownItems};
_.t.getDropdownItemText=function(a){var W;return(W=_.A(a,qi9))==null?void 0:W.itemLabel};
_.t.getDropdownItemValue=function(a){a=_.A(a,qi9);return(a==null?void 0:a.timeLimit)||(a==null?void 0:a.purchaseTarget)||(a==null?void 0:a.eligiblePurchaseType)};
_.t.updateFlowState=function(a){_.aV(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:a}])};
_.t.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.t.updateGoalValue=function(a){this.goal=a.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.t.onTextValueChanged=function(a){this.goalDescription=a.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.t.updateTimerValue=function(a){this.timer=a.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.t.updateTierValue=function(a){this.tier=a.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.t.getButtonViewModel=function(a){a=(a==null?void 0:a.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var W,w=_.A((W=this.data)==null?void 0:W.startGoalButton,_.hx);return Object.assign({},w,{state:a})};
_.dU.Object.defineProperties(Zn,{template:{configurable:!0,enumerable:!0,get:function(){return fTK()}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Zn.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Zn.prototype,"goal",void 0);_.f([_.b(),_.z("design:type",Object)],Zn.prototype,"goalDescription",void 0);_.f([_.b(),_.z("design:type",Object)],Zn.prototype,"timer",void 0);_.f([_.b(),_.z("design:type",Object)],Zn.prototype,"tier",void 0);
_.f([_.b(),_.z("design:type",Object)],Zn.prototype,"startButtonId",void 0);_.f([_.b(),_.z("design:type",Object)],Zn.prototype,"exampleButtonId",void 0);Zn=_.f([_.TD({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Zn);_.D(Zn,"yt-creator-goal-set-up-flow-view-model",function(){return fTK()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var dkK;var mkX;var VQ2;var NU=function(){return _.u.apply(this,arguments)||this};
_.c(NU,_.u);_.f([_.b(),_.z("design:type",Object)],NU.prototype,"data",void 0);NU=_.f([_.TD({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],NU);
_.D(NU,"yt-survey-answer-card-renderer",function(){if(VQ2===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;mkX===void 0&&(mkX=document.createElement("template"));var Z=mkX;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);VQ2=a}a=VQ2;return a},{mode:2});var zG2;var Ha9;var tW=function(){return _.u.apply(this,arguments)||this};
_.c(tW,_.u);_.t=tW.prototype;_.t.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.t.selectedItemChanged=function(a){_.aV(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[a.feedbackToken||""]}])};
_.t.surveyAnswerCardRendererClicked=function(a){if(a.target&&_.A(a.model.item,uTz)){var W=a.target;a=_.A(a.model.item,uTz);a.onTapCommand?_.N1(W,[a.onTapCommand],W):this.data.onTapCommand&&_.N1(W,[this.data.onTapCommand],W);this.selectedItemChanged(a)}};
_.t.checkIsCancellationStyle=function(a){return a==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.t.updateSelectedItemFromBinding=function(a){this.selectedItem=a.detail.value};
tW.prototype.onSelectedItemChanged=tW.prototype.onSelectedItemChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],tW.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],tW.prototype,"selectedItem",void 0);_.f([_.b({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.z("design:type",Boolean)],tW.prototype,"isCancellationStyle",void 0);
_.f([_.a5("selectedItem"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tW.prototype,"onSelectedItemChanged",null);tW=_.f([_.TD({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],tW);
_.D(tW,"yt-survey-flow-step-renderer",function(){if(Ha9===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;zG2===void 0&&(zG2=document.createElement("template"));var Z=zG2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Ha9=a}a=Ha9;return a},{mode:2});var $A=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return a};
_.c($A,_.u);$A.prototype.handleSurveyFlowStepOptionChanged=function(a){this.ytdReduxBehavior.dispatch(_.E_({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:a}));_.aV(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:a}}])};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],$A.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],$A.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$A.prototype,"data",void 0);$A=_.f([_.C({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],$A);
_.D($A,"ytd-survey-flow-step-renderer",function(){if(dkK!==void 0)return dkK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return dkK=a},{mode:1});var DqE;DqE=_.T9({avatarViewModel:_.c6,buttonViewModel:_.F7,subscribeButtonViewModel:_.oLe,imageBannerViewModel:_.EzL});_.yoK=_.NX(_.dqK);_.En(_.dqK);var E1k;var B8=function(){return _.u.apply(this,arguments)||this};
_.c(B8,_.u);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],B8.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],B8.prototype,"data",void 0);B8=_.f([_.C({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],B8);
_.D(B8,"ytd-channel-history-renderer",function(){if(E1k!==void 0)return E1k;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return E1k=a},{mode:1});var a7K;var l4=function(){return _.u.apply(this,arguments)||this};
_.c(l4,_.u);_.f([_.b(),_.z("design:type",Object)],l4.prototype,"data",void 0);l4=_.f([_.C({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],l4);
_.D(l4,"ytd-feature-enablement-info-renderer",function(){if(a7K!==void 0)return a7K;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return a7K=a},{mode:1});var WBk;var wS0;var If=function(){var a=_.u.apply(this,arguments)||this;a.textBoxMaxLength=_.r("enable_tvod_campaign_code_integration")?15:12;return a};
_.c(If,_.u);_.t=If.prototype;_.t.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.t.onSubmit=function(){var a=this.data.serviceEndpoint,W=_.A(a,_.Nm);W&&a&&(W.couponCode=this.userInput,_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}}))};
_.t.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=_.r("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.t.computeStyle=function(a){return a};
_.t.computeShowValidationBelowInput=function(a){return a!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.t.updateUserInputFromBinding=function(a){this.userInput=a.currentTarget.value};
_.t.updateShowErrorMessageFromBinding=function(a){this.showErrorMessage=a.detail.value};
_.dU.Object.defineProperties(If.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
If.prototype.dataChanged=If.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],If.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],If.prototype,"userInput",void 0);_.f([_.b(),_.z("design:type",Boolean)],If.prototype,"disableApplyButton",void 0);_.f([_.b(),_.z("design:type",Boolean)],If.prototype,"hideApplyButton",void 0);
_.f([_.b(),_.z("design:type",Boolean)],If.prototype,"hideErrorMessage",void 0);_.f([_.b(),_.z("design:type",Boolean)],If.prototype,"showTick",void 0);_.f([_.b(),_.z("design:type",Boolean)],If.prototype,"showErrorMessage",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],If.prototype,"couponStyle",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.z("design:type",Boolean)],If.prototype,"showValidationBelowInput",void 0);_.f([_.b(),_.z("design:type",Object)],If.prototype,"textBoxMaxLength",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],If.prototype,"dataChanged",null);
_.f([_.Q("showTick","showErrorMessage","userInput"),_.z("design:type",String),_.z("design:paramtypes",[])],If.prototype,"validationState",null);If=_.f([_.C({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],If);
_.D(If,"ytd-ypc-coupon-renderer",function(){if(wS0!==void 0)return wS0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return wS0=a},{mode:1});var P8=function(){return _.u.apply(this,arguments)||this};
_.c(P8,_.u);P8.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"}}}};
P8.prototype.computeStyle=function(a){return a};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],P8.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],P8.prototype,"buttonStyle",void 0);P8=_.f([_.C({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],P8);
_.D(P8,"ytd-flow-bottom-bar-renderer",function(){if(WBk!==void 0)return WBk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return WBk=a},{mode:1});var ZFK;var Nwk;var tmD;var Xg=function(){return _.u.apply(this,arguments)||this};
_.c(Xg,_.u);Xg.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Xg.prototype.focus=function(a){this.title&&_.un(this.title,a)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Xg.prototype,"data",void 0);_.f([_.w$("#title"),_.z("design:type",HTMLElement)],Xg.prototype,"title",void 0);Xg=_.f([_.C({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Xg);
_.D(Xg,"ytd-flow-top-bar-renderer",function(){if(tmD!==void 0)return tmD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return tmD=a},{mode:1});var $xX;var BwE;var l7f;var v8=function(){return _.u.apply(this,arguments)||this};
_.c(v8,_.u);v8.prototype.freeTextValueChanged=function(){_.aV(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
v8.prototype.updateFreeTextValueFromBinding=function(a){this.freeTextValue=a.detail.value};
_.dU.Object.defineProperties(v8.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var a,W,w=(W=(a=this.data)==null?void 0:a.responseMaxLength)!=null?W:500,Z;return((Z=this.freeTextValue)!=null?Z:"").length>=w?"maxed-out":""}}});
v8.prototype.freeTextValueChanged=v8.prototype.freeTextValueChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],v8.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],v8.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],v8.prototype,"freeTextValue",void 0);_.f([_.w$("#user-input"),_.z("design:type",HTMLTextAreaElement)],v8.prototype,"input",void 0);
_.f([_.Q("freeTextValue"),_.z("design:type",Object),_.z("design:paramtypes",[])],v8.prototype,"characterLimitClass",null);_.f([_.a5("freeTextValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],v8.prototype,"freeTextValueChanged",null);v8=_.f([_.TD({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],v8);
_.D(v8,"yt-free-text-input-flow-step-renderer",function(){if(l7f===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;BwE===void 0&&(BwE=document.createElement("template"));var Z=BwE;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);l7f=a}a=l7f;return a},{mode:2});var gV=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return a};
_.c(gV,_.u);gV.prototype.handleFreeTextFlowStepInputChanged=function(a){_.aV(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:a}}])};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],gV.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],gV.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],gV.prototype,"data",void 0);gV=_.f([_.C({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],gV);
_.D(gV,"ytd-free-text-input-flow-step-renderer",function(){if($xX!==void 0)return $xX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return $xX=a},{mode:1});var I7d;var PG9;var of=function(){return _.u.apply(this,arguments)||this};
_.c(of,_.u);_.f([_.b(),_.z("design:type",Object)],of.prototype,"data",void 0);of=_.f([_.C({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],of);
_.D(of,"ytd-metadata-line-renderer",function(){if(PG9!==void 0)return PG9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return PG9=a},{mode:1});var kA=function(){return _.u.apply(this,arguments)||this};
_.c(kA,_.u);kA.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kA.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],kA.prototype,"isMasthead",void 0);kA=_.f([_.C({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],kA);
_.D(kA,"ytd-media-product-renderer",function(){if(I7d!==void 0)return I7d;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return I7d=a},{mode:1});var XSX;var U7=function(){return _.u.apply(this,arguments)||this};
_.c(U7,_.u);U7.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
U7.prototype.onBillboardImageLoaded=function(){_.E$(this.hostElement,"yt-refit")};
U7.prototype.onBillboardImageLoaded=U7.prototype.onBillboardImageLoaded;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],U7.prototype,"data",void 0);_.f([_.w$("#billboardImage"),_.z("design:type",Object)],U7.prototype,"billboardImage",void 0);_.f([_.E6("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],U7.prototype,"onBillboardImageLoaded",null);
U7=_.f([_.C({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],U7);
_.D(U7,"ytd-billboard-masthead-renderer",function(){if(XSX!==void 0)return XSX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return XSX=a},{mode:1});var v6n;var O7=function(){var a=_.u.apply(this,arguments)||this;a.smallSize=!1;return a};
_.c(O7,_.u);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],O7.prototype,"ytComponentBehaviorType",void 0);_.f([_.b(),_.z("design:type",Object)],O7.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],O7.prototype,"smallSize",void 0);O7=_.f([_.C({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],O7);
_.D(O7,"ytd-bullet-formatted-string",function(){if(v6n!==void 0)return v6n;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return v6n=a},{mode:1});var g60;var So=function(){return _.u.apply(this,arguments)||this};
_.c(So,_.u);So.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],So.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],So.prototype,"data",void 0);So=_.f([_.C({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],So);
_.D(So,"ytd-offer-detail-renderer",function(){if(g60!==void 0)return g60;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return g60=a},{mode:1});var o6I;var YA=function(){return _.u.apply(this,arguments)||this};
_.c(YA,_.u);YA.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],YA.prototype,"data",void 0);YA=_.f([_.C({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],YA);
_.D(YA,"ytd-offer-detail-step-renderer",function(){if(o6I!==void 0)return o6I;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return o6I=a},{mode:1});var kUz;var Tt=function(){var a=_.u.apply(this,arguments)||this;a.isInOfferModule=!1;return a};
_.c(Tt,_.u);_.t=Tt.prototype;_.t.computeHasEndpoint=function(){var a;return!((a=this.data)==null||!a.onClickCommand)};
_.t.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")};
_.t.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)};
_.t.handleClickEvent=function(){var a;if((a=this.data)==null?0:a.onClickCommand){var W;this.componentBehavior.resolveCommand((W=this.data)==null?void 0:W.onClickCommand)}};
_.t.onContentKeyDown=function(a){a.key==="Enter"?this.handleClickEvent(a):a.key===" "&&a.preventDefault()};
_.t.onContentKeyUp=function(a){a.key===" "&&this.handleClickEvent(a)};
Tt.prototype.dataChanged=Tt.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Tt.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Tt.prototype,"data",void 0);_.f([_.b({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Tt.prototype,"hasEndpoint",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Tt.prototype,"isInOfferModule",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Tt.prototype,"dataChanged",null);Tt=_.f([_.C({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Tt);
_.D(Tt,"ytd-channel-masthead-renderer",function(){if(kUz!==void 0)return kUz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return kUz=a},{mode:1});var Uxk;var Kc=function(){var a=_.u.apply(this,arguments)||this;a.thumbnailObjectFit="CONTAIN";a.thumbnailObjectPosition="LEFT";a.isExpanded=!1;return a};
_.c(Kc,_.u);_.t=Kc.prototype;_.t.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.t.dataChanged=function(){this.resetStates()};
_.t.computeisTapOnOfferInfoContainerEnabled=function(){var a;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.t.onExpandBtnClick=function(){var a,W=_.A((a=this.data)==null?void 0:a.showMoreButtonRenderer,Ck9);W&&_.lM(_.$J(),W.trackingParams);this.isExpanded=!this.isExpanded};
_.t.onOfferInfoClick=function(a){this.isTapOnOfferInfoContainerEnabled&&(_.b5(_.qj(a)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.sb(_.qj(a)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.t.onBottomBarClick=function(){this.executeTapCommand()};
_.t.executeTapCommand=function(){var a,W=(a=this.data)==null?void 0:a.tapCommand;W&&this.ytComponentBehavior.resolveCommand(W)};
_.t.resetStates=function(){this.isExpanded=!1};
_.dU.Object.defineProperties(Kc.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),W,w,Z;return((W=this.data)==null?void 0:W.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&a&&!!((w=this.data)==null?0:(Z=w.benefits)==null?0:Z.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,W,w;return((W=_.A((a=this.data)==null?void 0:a.showMoreButtonRenderer,Ck9))==null?void 0:W.showMoreButtonTitle)||((w=this.data)==null?void 0:w.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return((W=_.A((a=this.data)==null?void 0:a.showMoreButtonRenderer,Ck9))==null?void 0:W.showLessButtonTitle)||((w=this.data)==null?void 0:w.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var a;return(a=this.showLessButtonTitle)!=null?a:""}var W;return(W=this.showMoreButtonTitle)!=null?W:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((W=this.data)==null?0:W.footerTitle)||((w=this.data)==null?0:w.footerSubtitle))}}});
Kc.prototype.dataChanged=Kc.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Kc.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Kc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",String)],Kc.prototype,"thumbnailObjectFit",void 0);
_.f([_.b(),_.z("design:type",String)],Kc.prototype,"thumbnailObjectPosition",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.z("design:type",Boolean)],Kc.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.f([_.b(),_.z("design:type",Object)],Kc.prototype,"isExpanded",void 0);_.f([_.b(),_.z("design:type",Object)],Kc.prototype,"data",void 0);_.f([_.b({computed:"computeIcon_(data.footerIcon)"}),_.z("design:type",String)],Kc.prototype,"icon",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Kc.prototype,"dataChanged",null);_.f([_.Q("data.thumbnail"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Kc.prototype,"hasThumbnail",null);_.f([_.Q("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Kc.prototype,"enableExpandButton",null);
_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Kc.prototype,"enableOfferContentIcon",null);_.f([_.Q("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.z("design:type",Object),_.z("design:paramtypes",[])],Kc.prototype,"showMoreButtonTitle",null);_.f([_.Q("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.z("design:type",Object),_.z("design:paramtypes",[])],Kc.prototype,"showLessButtonTitle",null);
_.f([_.Q("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.z("design:type",String),_.z("design:paramtypes",[])],Kc.prototype,"expandedBtnText",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Kc.prototype,"enableBottomBar",null);Kc=_.f([_.C({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Kc);
_.D(Kc,"ytd-offer-card-renderer",function(){if(Uxk!==void 0)return Uxk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Uxk=a},{mode:1});var OFE;var pc=function(){return _.u.apply(this,arguments)||this};
_.c(pc,_.u);pc.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"}}}};
pc.prototype.onClick=function(a){if(!_.b5(a.composedPath()||[],this.hostElement,["A".toString()])){var W,w;if((a=(w=_.A((W=this.data)==null?void 0:W.actionButton,_.J4))==null?void 0:w.command)&&!this.ytComponentBehavior.resolveCommand(a)){var Z;(Z=_.$J())==null||Z.clickCommand(a);_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}})}}};
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],pc.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],pc.prototype,"data",void 0);pc=_.f([_.C({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],pc);
_.D(pc,"ytd-offer-content-renderer",function(){if(OFE!==void 0)return OFE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return OFE=a},{mode:1});var StD;var rV=function(){return _.u.apply(this,arguments)||this};
_.c(rV,_.u);rV.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.dU.Object.defineProperties(rV.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var a,W;return!((a=this.data)==null||!a.title)||!((W=this.data)==null||!W.description)}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],rV.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],rV.prototype,"hasHeaderData",null);rV=_.f([_.C({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],rV);
_.D(rV,"ytd-offer-section-renderer",function(){if(StD!==void 0)return StD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return StD=a},{mode:1});var Ytf;var AW=function(){return _.u.apply(this,arguments)||this};
_.c(AW,_.u);
AW.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"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],AW.prototype,"data",void 0);AW=_.f([_.C({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],AW);
_.D(AW,"ytd-offer-selection-step-renderer",function(){if(Ytf!==void 0)return Ytf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Ytf=a},{mode:1});var Twi;var hW=function(){return _.u.apply(this,arguments)||this};
_.c(hW,_.u);hW.prototype.computeStyle=function(a){return a};
hW.prototype.computeImageWidth=function(a){return a==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.f([_.b({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.z("design:type",String)],hW.prototype,"containerStyle",void 0);_.f([_.b({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.z("design:type",String)],hW.prototype,"imageWidth",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],hW.prototype,"data",void 0);
hW=_.f([_.C({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],hW);
_.D(hW,"ytd-confirmation-masthead-renderer",function(){if(Twi!==void 0)return Twi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Twi=a},{mode:1});var KBD;var i4=function(){return _.u.apply(this,arguments)||this};
_.c(i4,_.u);i4.prototype.computeStyle=function(a){return a};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],i4.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.z("design:type",String)],i4.prototype,"containerStyle",void 0);i4=_.f([_.C({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],i4);
_.D(i4,"ytd-purchase-complete-detail-renderer",function(){if(KBD!==void 0)return KBD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return KBD=a},{mode:1});var pSn;var c8=function(){var a=_.u.apply(this,arguments)||this;a.scriptsAppended=!1;return a};
_.c(c8,_.u);c8.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"}}}};
c8.prototype.onDataChanged=function(){var a=this.get("data.gtmId");a&&(_.g4(a,_.LF("GL","")),this.setupConversionTracking())};
c8.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}};
c8.prototype.onDataChanged=c8.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],c8.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],c8.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],c8.prototype,"scriptsAppended",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],c8.prototype,"onDataChanged",null);c8=_.f([_.C({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],c8);
_.D(c8,"ytd-purchase-complete-step-renderer",function(){if(pSn!==void 0)return pSn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return pSn=a},{mode:1});var rSX;var eo=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(eo,_.u);eo.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],eo.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],eo.prototype,"darkerDarkTheme",void 0);eo=_.f([_.C({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],eo);
_.D(eo,"ytd-ypc-transaction-error-message-renderer",function(){if(rSX!==void 0)return rSX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return rSX=a},{mode:1});var AS9;var hqX;var nc=function(){var a=_.u.apply(this,arguments)||this;a.handlePhoneVerificationSuccess=function(W){if(a.isValidPhoneVerificationCompletionMessageEvent(W)){var w;((w=a.data)==null?0:w.nextStepCommand)&&a.ytComponentBehavior.resolveCommand(a.data.nextStepCommand)}};
return a};
_.c(nc,_.u);nc.prototype.isValidPhoneVerificationCompletionMessageEvent=function(a){if(a.data!=="yt-phone-verification-complete")return!1;a=_.D7(a.origin);return a!==null&&a.includes("youtube.com")};
nc.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
nc.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],nc.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],nc.prototype,"data",void 0);nc=_.f([_.TD({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],nc);
_.D(nc,"yt-feature-enablement-soft-entry-renderer",function(){if(hqX===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;AS9===void 0&&(AS9=document.createElement("template"));var Z=AS9;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);hqX=a}a=hqX;return a},{mode:1});var iF0;var cSd;var eqa;var n6X;var jo=function(){return _.u.apply(this,arguments)||this};
_.c(jo,_.u);_.f([_.b(),_.z("design:type",Object)],jo.prototype,"data",void 0);jo=_.f([_.TD({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],jo);
_.D(jo,"yt-benefits-item-renderer",function(){if(n6X===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;eqa===void 0&&(eqa=document.createElement("template"));var Z=eqa;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);n6X=a}a=n6X;return a},{mode:2});var jTn;var LB0;var Lc=function(){return _.u.apply(this,arguments)||this};
_.c(Lc,_.u);Lc.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Lc.prototype.computeisWithoutPadding=function(){var a;return((a=this.data)==null?void 0:a.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Lc.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.z("design:type",Boolean)],Lc.prototype,"isWithoutPadding",void 0);Lc=_.f([_.TD({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Lc);
_.D(Lc,"yt-benefits-section-renderer",function(){if(LB0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;jTn===void 0&&(jTn=document.createElement("template"));var Z=jTn;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);LB0=a}a=LB0;return a},{mode:2});var JW=function(){return _.u.apply(this,arguments)||this};
_.c(JW,_.u);JW.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
JW.prototype.computeisUsingLargeWidth=function(){var a;return((a=this.data)==null?void 0:a.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],JW.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.z("design:type",Boolean)],JW.prototype,"isUsingLargeWidth",void 0);JW=_.f([_.TD({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],JW);
_.D(JW,"yt-benefits-flow-step-renderer",function(){if(cSd===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;iF0===void 0&&(iF0=document.createElement("template"));var Z=iF0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);cSd=a}a=cSd;return a},{mode:2});var JSf;var FB0;var Fg=function(){return _.u.apply(this,arguments)||this};
_.c(Fg,_.u);Fg.prototype.checkIsUsingLargeWidth=function(){var a;return((a=this.data)==null?void 0:a.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.f([_.b(),_.z("design:type",Object)],Fg.prototype,"data",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.f([_.b({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.z("design:type",Boolean)],Fg.prototype,"isUsingLargeWidth",void 0);Fg=_.f([_.TD({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Fg);
_.D(Fg,"yt-confirmation-flow-step-renderer",function(){if(FB0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;JSf===void 0&&(JSf=document.createElement("template"));var Z=JSf;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);FB0=a}a=FB0;return a},{mode:2});var MmE;var Rqd;var MU=function(){return _.u.apply(this,arguments)||this};
_.c(MU,_.u);_.f([_.b(),_.z("design:type",Object)],MU.prototype,"data",void 0);MU=_.f([_.TD({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],MU);
_.D(MU,"yt-info-flow-step-renderer",function(){if(Rqd===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;MmE===void 0&&(MmE=document.createElement("template"));var Z=MmE;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Rqd=a}a=Rqd;return a},{mode:2});var qt0;var QTX;var Rf=function(){return _.u.apply(this,arguments)||this};
_.c(Rf,_.u);_.f([_.b(),_.z("design:type",Object)],Rf.prototype,"data",void 0);Rf=_.f([_.TD({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Rf);
_.D(Rf,"yt-info-list-flow-step-renderer",function(){if(QTX===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;qt0===void 0&&(qt0=document.createElement("template"));var Z=qt0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);QTX=a}a=QTX;return a},{mode:2});var xxk=_.xQ(function(a){var W=a.data;return _.k("styled-text-view-model",{class:_.W$("ytStyledTextViewModelHost",function(){return $Fd(W().fontAttributes)},function(){return tka(W().color)})},_.k(_.k_,{text:function(){return W().text},
ariaLabel:function(){var w,Z,N;return(N=(w=W().accessibility)==null?void 0:(Z=w.accessibilityData)==null?void 0:Z.label)!=null?N:""}}))},"Re");
xxk.idomCompat=!0;var bFk=_.xQ(function(a){var W=function(){var N,B,I,X;return(X=(I=(N=a.alt)==null?void 0:N.call(a))!=null?I:(B=a.data().accessibilityData)==null?void 0:B.label)!=null?X:""},w=function(){return a.data().imageWidth},Z=function(){return a.data().imageHeight};
return _.k("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.k(_.Y,{cond:function(){var N=a.data();if(N){var B,I,X;var v=((B=_.K().resolve(_.Vv(_.Lt)))==null?0:B())?(I=N.imageDark)!=null?I:N.imageLight:(X=N.imageLight)!=null?X:N.imageDark}else v=void 0;return v},
then:function(N){return _.k(_.qw,Object.assign({},a,{data:N,alt:W,targetWidth:w,targetHeight:Z,preserveHeight:!0,preserveWidth:!0}))}}))},"Se");
bFk.idomCompat=!0;var qU=_.xQ(function(a){var W=a.data;a=_.qt(function(){return W().slots},[]);
var w=_.qt(function(){return W().layoutProperties},{}),Z=_.K().resolve(_.Fm);
return _.k("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:afK(w,Z)},_.k(_.k6,{each:a,keyBy:"INDEX"},function(N){return _.k("div",{class:"ytContainerLayoutViewModelSlot",style:afK(function(){return N().layoutProperties},Z)},_.k(_.Ax,{data:function(){return N().contents}},{containerLayoutViewModel:qU,
badgeViewModel:_.DU,buttonViewModel:_.F7,styledTextViewModel:xxk,contentPreviewImageViewModel:function(B){return _.k(_.fd,{data:B.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(B){return _.k(bFk,{data:B.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Te");
qU.idomCompat=!0;var sT0=_.xQ(function(a){var W=a.data;var w=a.stateFns;var Z=function(){var U=W(),O=U.productId;return!(!U.clearGroupId&&!O)},N=function(){var U=W(),O=U.clearGroupId;
return(U=U.productId)?w().isProductSelected(U):O?w().getSelectedProductByGroupId(O)==null:!1},B=function(){var U=W(),O=U.clearGroupId;
if(U=U.productId)w().onProductSelected(U);else if(O)w().onClearGroupSelected(O)},I=function(){var U=W(),O=U.clearGroupId;
if(U=U.productId){var S;return"group:"+(((S=w().getProductById(U))==null?void 0:S.groupId)||"")}return O?"group:"+O:""},X=_.qt(function(){return W().header},[]),v=_.qt(function(){return W().body},[]);
return _.k("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.k(_.Y,{cond:function(){return X().length>0||Z()},
then:function(){return _.k("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.k("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.k(_.Ax,{data:X},{containerLayoutViewModel:function(U){return _.k("div",{class:"ytPdpCardSectionViewModelContentItem"},_.k(qU,{data:U.data}))},
styledTextViewModel:function(U){return _.k("div",{class:"ytPdpCardSectionViewModelContentItem"},_.k(xxk,{data:U.data}))}})),_.k(_.Y,{cond:Z,
then:function(){return _.k("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.k(_.Sb,{checked:N,name:I,onChange:B}))}}))}}),_.k(_.Y,{cond:function(){return v().length>0},
then:function(){return _.k("div",null,_.k(_.Ax,{data:v},{containerLayoutViewModel:function(U){return _.k("div",{class:"ytPdpCardSectionViewModelContentItem"},_.k(qU,{data:U.data}))}}))}}))},"Ue");
sT0.idomCompat=!0;var ufD=_.xQ(function(a){var W=a.data;var w=a.stateFns;return _.k("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.k(_.Y,{cond:function(){return W().banner},
then:function(Z){return _.k("div",{class:"ytPdpCardViewModelBanner"},_.k(_.k_,{text:Z}))}}),_.k(_.Ax,{data:function(){return W().sections}},{pdpCardSectionViewModel:function(Z){Z=Z.data;
var N={};return _.k("div",{class:_.W$("ytPdpCardViewModelSectionContainer",(N.ytPdpCardViewModelShowDividers=function(){return W().showDividers},N))},_.k(sT0,{data:Z,
stateFns:w}))}}))},"Ve");
ufD.idomCompat=!0;var CG0=_.xQ(function(a){var W=a.data;var w=a.isOverlay;a={};return _.k("pdp-masthead-view-model",{class:_.W$("ytPdpMastheadViewModelHost",(a.ytPdpMastheadViewModelIsOverlay=w,a))},_.k(_.Ax,{data:function(){return W().image}},{contentPreviewImageViewModel:_.fd,
themedImageViewModel:function(Z){return _.k(bFk,{data:Z.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.k(_.Y,{cond:function(){return W().title},
then:function(Z){return _.k("h1",{class:"ytPdpMastheadViewModelHeading"},_.k(_.k_,{text:Z,isOverlay:w}))}}),_.k(_.k6,{each:function(){var Z;
return(Z=W().finePrint)!=null?Z:[]}},function(Z){return _.k("div",{class:"ytPdpMastheadViewModelFinePrint"},_.k(_.k_,{text:Z,
isOverlay:w}))}))},"We");
CG0.idomCompat=!0;var GUa=_.xQ(function(a){var W=a.data;var w=a.stateFns;return _.k("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.k(_.k6,{each:function(){var Z=w().getSelectedPricingOptions().map(function(B){return B.pricingOptionId}),N=w().getSelectedProductByGroupId(W().groupId);
return N?N.pricingOptions.map(function(B){return{pricingOption:B,isSelected:Z.includes(B.pricingOptionId)}}):(_.nH(Error("Fj`"+W().groupId)),[])},
keyBy:"INDEX"},function(Z){return _.k("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.k("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.k(_.Ax,{data:function(){return Z().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:qU})),_.k("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.k(_.Sb,{checked:function(){return Z().isSelected},
onClick:function(){w().onPricingOptionSelected(Z().pricingOption.pricingOptionId);var N=Z().pricingOption.onSelectPricingOption;if(N=_.rJ(N)){var B;(B=_.K().resolve(_.zU))==null||B.resolveCommand(N)}}})))}))},"Xe");
GUa.idomCompat=!0;var Dxn=_.xQ(function(a){var W=a.data;var w=a.stateFns;return _.k("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.k(_.Ax,{data:function(){var Z,N;return(N=(Z=w().getSelectedPricingOptions()[0])==null?void 0:Z.primaryButton)!=null?N:W().emptyStateButton}},{buttonViewModel:_.F7}))},"Ye");
Dxn.idomCompat=!0;var f79=_.xQ(function(a){var W=a.stateFns;return _.k("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.k(_.Ax,{data:function(){return W().getSelectedPricingOptions().flatMap(function(w){return w.summaryLines}).filter(function(w){return!!w})}},{containerLayoutViewModel:function(w){return _.k("div",{class:"ytPdpSummaryViewModelLineItem"},_.k(qU,{data:w.data}))}}))},"Ze");
f79.idomCompat=!0;var dxi=_.xQ(function(a){function W(F){var x=I();_.R5(_.e4("pdpStateEntity",x,{key:x,selectedPricingOptions:F}))}
var w=a.data;var Z=a.internalScrolling;var N=a.stateFnsForTesting;var B=_.qt(function(){return w().allProducts},[]),I=_.qt(function(){return w().pdpStateEntityKey},""),X=_.X7(BhX,I),v=_.XT(function(){_.ik(!0);
var F;return(F=N==null?void 0:N())!=null?F:o30(X,B,W)},void 0,"POBqwe"),U=_.qt(function(){return w().body},[]),O=_.qt(function(){return w().columnBreakHints},[]),S=function(){return w().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},T=function(){return S()||w().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},p=_.XT(function(){var F=_.He(w().background),x;
if(F==null?0:(x=F.sources)==null?0:x.length){var G=G===void 0?!0:G;F=_.Mb9(void 0,F.sources,void 0,G,G?1E3:void 0,G?void 0:1E3)}else F=null;return F},void 0,"BkCmEd");
a=_.It({"--pdp-view-model-background":function(){return p()?"url("+p()+")":void 0}});
var h={};Z=_.W$("ytPdpViewModelHost",(h.ytPdpViewModelHasBackground=function(){return T()||!!p()},h.ytPdpViewModelHasDarkBackground=T,h.ytPdpViewModelHasScrim=S,h.ytPdpViewModelInternalScrolling=_.qt(Z,!1),h));
var L=function(F){var x={};return _.W$("ytPdpViewModelItem",(x.ytPdpViewModelFullBleed=function(){return _.iZe(F())==="dividerViewModel"||_.iZe(F())==="sectionHeaderViewModel"},x.ytPdpViewModelNoVerticalPadding=function(){return _.iZe(F())==="sectionHeaderViewModel"},x))};
_.AS(function(){var F=w().onStartCommand;if(F&&(F=_.rJ(F))){var x;(x=_.K().resolve(_.zU))==null||x.resolveCommand(F)}});
return _.k("pdp-view-model",{class:Z,style:a},_.k("div",{class:"ytPdpViewModelColumnContainer"},_.k(_.k6,{each:function(){return kOi(U(),O())},
keyBy:"INDEX"},function(F){return _.k("div",{class:"ytPdpViewModelColumn"},_.k(_.Ax,{data:F},{containerLayoutViewModel:function(x,G){x=x.data;return _.k("div",{class:L(function(){return F()[G()]})},_.k(qU,{data:x}))},
dividerViewModel:function(x,G){x=x.data;return _.k("div",{class:L(function(){return F()[G()]})},_.k(_.WEy,{data:x}))},
pdpCardViewModel:function(x,G){x=x.data;return _.k("div",{class:L(function(){return F()[G()]})},_.k(ufD,{data:x,
stateFns:v}))},
pdpMastheadViewModel:function(x,G){x=x.data;return _.k("div",{class:L(function(){return F()[G()]})},_.k(CG0,{data:x,
isOverlay:T}))},
pdpPricingOptionSelectorViewModel:function(x,G){x=x.data;return _.k("div",{class:L(function(){return F()[G()]})},_.k(GUa,{data:x,
stateFns:v}))},
pdpPrimaryButtonViewModel:function(x,G){x=x.data;return _.k("div",{class:L(function(){return F()[G()]})},_.k(Dxn,{data:x,
stateFns:v}))},
pdpSummaryViewModel:function(x,G){x=x.data;return _.k("div",{class:L(function(){return F()[G()]})},_.k(f79,{data:x,
stateFns:v}))},
sectionHeaderViewModel:function(x,G){x=x.data;return _.k("div",{class:L(function(){return F()[G()]})},_.k(_.yR,{data:x}))}}))})))},"$e");
dxi.idomCompat=!0;_.Ct(dxi,"pdp-view-model",{props:{data:_.qR,stateFnsForTesting:_.ux,internalScrolling:_.ux}});var mxk=_.xQ(function(a){var W=a.data;var w=a.className;var Z=_.X7(_.tN,function(){return W().flowStateEntityKey});
return _.k("ytm-premium-purchase-button-renderer",{class:_.W$("yt-premium-purchase-button-renderer",w)},_.k(_.Ax,{data:function(){var N;return(N=_.A(Z(),EG))==null?void 0:N.primaryButtonOverride}},{buttonRenderer:function(N){return _.k(_.F0,{data:N.data,
className:w})},
buttonViewModel:function(N){return _.k(_.F7,{data:N.data,className:w})}}))},"af");
mxk.idomCompat=!0;var VmK=_.xQ(function(a){var W=a.data;var w=function(){return UFX(W().style)},Z=_.W$("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",w),N=_.W$("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",w);
return _.k("yt-flow-bottom-bar-renderer",{class:_.W$("yt-flow-bottom-bar-renderer",a.className,w)},_.k(_.Ax,{data:function(){return W().secondaryButton}},{buttonRenderer:function(B){return _.k(_.F0,{data:B.data,
className:N})},
buttonViewModel:function(B){return _.k(_.F7,{data:B.data,className:N})},
premiumPurchaseButtonRenderer:function(B){return _.k(mxk,{data:B.data,className:N})}}),_.k(_.Ax,{data:function(){return W().primaryButton}},{buttonRenderer:function(B){return _.k(_.F0,{data:B.data,
className:Z})},
buttonViewModel:function(B){return _.k(_.F7,{data:B.data,className:Z})},
premiumPurchaseButtonRenderer:function(B){return _.k(mxk,{data:B.data,className:Z})}}))},"bf");
VmK.idomCompat=!0;_.Ct(VmK,"yt-flow-bottom-bar-renderer",{props:{data:_.qR,className:_.qR}});var zqI=_.xQ(function(a){return _.k("yt-offer-summary-renderer",{class:_.W$(a.className,"ytOfferSummaryRendererHost")},_.k("div",{class:"ytOfferSummaryRendererTextContainer"},_.k("div",{class:"ytOfferSummaryRendererEyebrowText"},_.k(_.k_,{text:function(){return a.data().eyebrowText}})),_.k("div",{class:"ytOfferSummaryRendererTitle"},_.k(_.k_,{text:function(){return a.data().title}})),_.k("div",{class:"ytOfferSummaryRendererSubtitle"},_.k(_.k_,{text:function(){return a.data().subtitle}})),_.k("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.k(_.k6,{each:function(){var W;
return(W=a.data().featureListData)!=null?W:[]}},function(W){var w;
return _.k("div",{class:"ytOfferSummaryRendererFeatureList"},_.k(_.P$,{icon:(w=W.icon)==null?void 0:w.iconType,className:W.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.k("div",{class:"ytOfferSummaryRendererFeatureListText"},_.k(_.k_,{text:W.text})))})),_.k("div",{class:"ytOfferSummaryRendererDescription"},_.k(_.k_,{text:function(){return a.data().description}}))))},"cf");_.Ct(_.xQ(function(a){var W={};W=_.W$("ytOfferSummaryFlowStepRendererHost",(W.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=a.shouldDisableHeaderTopMargin,W));return _.k("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:W},_.k("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.k("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.k(_.k_,{text:function(){return a.data().header}})),_.k("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.k(_.k_,{text:function(){return a.data().subtitle}}))),_.k("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.k(_.Ax,{data:function(){return a.data().offerSummary}},{offerSummaryRenderer:function(w){return _.k(zqI,{data:w.data,
className:a.flowClassName})}})))},"df"),"yt-offer-summary-flow-step-renderer",{props:{data:_.ux,
flowClassName:_.ux,flowStateEntityKey:_.ux,shouldDisableHeaderTopMargin:_.ux}});var HF2=_.xQ(function(a){var W=a.data;var w=a.className;var Z=a.flowStateEntityKey;var N=a.selectionStepStyle;a=_.$_(function(v){var U=W(),O=Z==null?void 0:Z();v.target&&(v.stopPropagation(),v=O||"",O=_.tN(_.FM().getState(),v),U=Object.assign({},O,{premiumPurchaseFlowState:{selectedOptionId:U.optionId,primaryButtonOverride:U.primaryButtonOverride}}),_.FM().dispatch(_.oL("flowStateEntity",v,U)));return!1});
var B=function(){return(Z==null?void 0:Z())||""},I=_.X7(_.tN,B);
_.AS(function(){var v=W(),U=B(),O=I();!_.A(O,EG)&&v.defaultSelected&&U!==""&&v.primaryButtonOverride&&Or9(v.optionId||"",U,v.primaryButtonOverride,O)});
var X={};return _.k("ytm-option-item-renderer",{"on:click":a,class:_.W$(w,"ytm-option-item-renderer",(X["ytm-option-item-renderer--lp2-style"]=function(){return(N==null?void 0:N())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},X))},_.k("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.k("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var v=W(),U=B(),O=I();O=_.A(O,EG);return(O?(O==null?void 0:O.selectedOptionId)||"":v.defaultSelected&&U!==""?(v==null?void 0:v.optionId)||"":"")===W().optionId},
name:("input"+_.Lw(_.Jy)).toString()})),_.k("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.k(_.Y,{cond:function(){return W().eyebrowText},
then:function(){return _.k("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.k(_.k_,{text:function(){return W().eyebrowText}}))}}),_.k("div",{class:"ytm-option-item-renderer__option-item-title"},_.k(_.k_,{text:function(){return W().title}})),_.k("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.k(_.k_,{text:function(){return W().subtitle}})),_.k("div",{class:"ytm-option-item-renderer__option-item-description"},_.k(_.k_,{text:function(){return W().description}}))))},
"ef");var ySX=_.xQ(function(a){var W=a.data;var w=a.flowClassName;var Z=a.flowStateEntityKey;var N=a.selectionStepStyle;return _.k("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.k("div",{class:"yt-option-section-renderer__option-section-header-section"},_.k("div",{class:"yt-option-section-renderer__option-section-header"},_.k(_.k_,{text:function(){return W().title}}),_.k(_.Ax,{data:function(){return W().titleBadge}},{badgeViewModel:function(B){return _.k(_.DU,
{data:B.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.k(_.Y,{cond:function(){return W().subtitle},
then:function(){return _.k("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.k(_.k_,{text:function(){return W().subtitle}}))}}),_.k(_.Y,{cond:function(){return W().featureListData},
then:function(B){return _.k("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.k(_.k6,{each:B},function(I){var X;return _.k("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.k(_.P$,{icon:(X=I.icon)==null?void 0:X.iconType,className:I.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.k("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.k(_.k_,{text:I.text})))}))}}),_.k(_.k6,{each:function(){return W().sectionDisclaimers||[]}},function(B){return _.k("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.k(_.k_,{text:B}))})),_.k(_.Ax,{data:function(){return W().optionItems}},{optionItemRenderer:function(B){return _.k("div",{class:"yt-option-section-renderer__option-item"},_.k(HF2,{data:B.data,
className:w,flowStateEntityKey:Z,selectionStepStyle:N}))}}),_.k(_.Y,{cond:function(){return W().offerText},
then:function(){return _.k("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.k(_.k_,{text:function(){return W().offerText}}))}}))},"ff");
ySX.idomCompat=!0;var E6z=_.xQ(function(a){var W=a.data;var w=a.flowClassName;var Z=a.flowStateEntityKey;a=a.isDesktop;var N=function(){var U;return(U=W().flowStateEntityKey)!=null?U:Z==null?void 0:Z()},B=function(){return(N==null?void 0:N())||""},I=function(){return W().style},X=_.X7(_.tN,B);
_.AS(function(){var U=W(),O=B(),S=X();!_.A(S,EG)&&U.noPreselect&&O!==""&&U.defaultButtonOverride&&Or9("default",O,U.defaultButtonOverride,S)});
var v={};return _.k("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.W$("ytm-option-selection-flow-step-renderer",(v["ytm-option-selection-flow-step-renderer--desktop"]=a,v["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return W().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},v))},_.k("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"},
_.k("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.k(_.k_,{text:function(){return W().header}})),_.k("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.k(_.k_,{text:function(){return W().subtitle}}))),_.k(_.Ax,{data:function(){return W().optionItems||[]}},{optionItemRenderer:function(U){return _.k("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.k(HF2,{data:U.data,
className:w,flowStateEntityKey:N,selectionStepStyle:I}))},
optionSectionRenderer:function(U){return _.k("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.k(ySX,{data:U.data,flowClassName:w,flowStateEntityKey:N,selectionStepStyle:I}))}}))},"gf");
E6z.idomCompat=!0;_.Ct(E6z,"yt-option-selection-flow-step-renderer",{props:{data:_.qR,flowClassName:_.qR,flowStateEntityKey:_.qR,isDesktop:_.qR}});var SWX,YWE;_.Qi=_.xQ(function(a){var W=_.Qn(a,{type:1,disablePadding:!1,disablePrimaryButton:!1}),w=W.data,Z=W.type;a=W.disablePadding;var N=W.disablePrimaryButton,B=W.onClickPrimaryButton,I=function(){return w().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},X=function(){return{disabled:N(),
state:N()?"disabled":"active"}},v=function(){return w().leadingLabel||w().trailingLabel};
W={};return _.k("yt-panel-footer-view-model",{class:_.W$("yt-panel-footer-view-model-wiz",(W["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return w().shouldHideDivider},W["yt-panel-footer-view-model-wiz--disable-padding"]=a,W))},_.k(_.Y,{cond:v,
then:function(){var U={},O={};return _.k("div",{class:_.W$("yt-panel-footer-view-model-wiz__text-row",(U["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var S=w();return!(!S.leadingLabel&&!S.trailingLabel||!S.primaryButton&&!S.secondaryButton)},U))},_.k(_.k_,{text:function(){return w().leadingLabel},
className:_.W$((O["yt-panel-footer-view-model-wiz--text-padding"]=v,O))}),_.k(_.k_,{text:function(){return w().trailingLabel}}))}}),_.k(_.Y,{cond:I,
then:function(){var U={};return _.k("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.k("div",{class:_.W$("yt-panel-footer-view-model-wiz__primary-button",(U["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return w().secondaryButton},U))},_.k(_.Ax,{data:function(){return w().primaryButton}},{buttonViewModel:function(O){return _.k(_.F7,{data:O.data,
buttonOverrides:X,onClick:B})}})),_.k(_.Ax,{data:function(){return w().secondaryButton}},{buttonViewModel:_.F7}))}}),_.k(_.Y,{cond:function(){return!I()},
then:function(){var U={},O={},S={};return _.k("div",{class:_.W$("yt-panel-footer-view-model-wiz__button-row",(U["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===Z()},U))},_.k("div",{class:_.W$("yt-panel-footer-view-model-wiz__button-row--left-button",(O["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===Z()},O["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!w().secondaryButton||0===Z()},O["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===Z()},O))},_.k(_.Ax,{data:function(){return w().secondaryButton}},{buttonViewModel:_.F7})),_.k("div",{class:_.W$("yt-panel-footer-view-model-wiz__primary-button",(S["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===Z()||1===Z()},S["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===Z()},S))},_.k(_.Ax,{data:function(){return w().primaryButton}},{buttonViewModel:function(T){return _.k(_.F7,{data:T.data,
buttonOverrides:X,onClick:B})}})))}}))},"hf");
_.Qi.idomCompat=!0;_.ap9=_.xQ(function(a){a=_.Qn(a,{disablePadding:!1});var W=a.data,w=a.disablePadding;a=_.rKf(function(){return W().formId});
var Z=a.onSubmit,N=a.isValid,B=a.isSubmitting;return _.k("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.k(_.Ax,{data:function(){return W().panelFooter}},{panelFooterViewModel:function(I){return _.k(_.Qi,{data:I.data,
onClickPrimaryButton:function(){Z()},
disablePrimaryButton:function(){return!N()||B()},
disablePadding:w})}}))},"jf");_.Ct(_.ap9,"yt-form-footer-view-model",{props:{data:_.qR,disablePadding:_.qR}});_.Ct(_.xQ(function(a){return _.k("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.k("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.k(_.Y,{cond:function(){var W;return(W=a.data())==null?void 0:W.image},
then:function(W){return _.k(_.qw,{data:W,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.k("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.k(_.k_,{text:function(){var W;
return(W=a.data())==null?void 0:W.title}})),_.k("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.k(_.k_,{text:function(){var W;
return(W=a.data())==null?void 0:W.subtitle}})),_.k("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.k(_.Ax,{data:function(){var W;
return(W=a.data())==null?void 0:W.viewTipsButton}},{buttonViewModel:_.F7}))))},"kf"),"yt-contributor-zero-state-view-model",{props:{data:_.qR}});var WGz=_.xQ(function(a){var W=_.X7(AKf,_.qt(function(){var w;return(w=a.data())==null?void 0:w.noteFeedEntityKey},""));
return _.k("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.k("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.k("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.k(_.Y,{cond:function(){var w,Z;return(w=a.data())==null?void 0:(Z=w.noteData)==null?void 0:Z.isPinned},
then:function(){return _.k(_.P$,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.k(_.k_,{text:function(){var w,Z;
return(w=a.data())==null?void 0:(Z=w.noteData)==null?void 0:Z.headerText}}),_.k("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.k(_.k_,{text:function(){var w,Z;
return(w=a.data())==null?void 0:(Z=w.noteData)==null?void 0:Z.delimiter}})),_.k(_.k_,{text:function(){var w,Z;
return(w=W())==null?void 0:(Z=w.contributorNote)==null?void 0:Z.publishedTimeText}})),_.k(_.Ax,{data:function(){var w,Z,N,B=(w=a.data())==null?void 0:w.noteData;
w=(Z=W())==null?void 0:(N=Z.contributorNote)==null?void 0:N.deleteAction;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:B.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:B.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:B.deleteDialogTitle}]},dialogMessages:[{runs:[{text:B.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:B.deleteActionText}]},command:{performCommentActionEndpoint:{action:w}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:B.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(w){return _.k(_.F7,{data:w.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.k("div",{class:"ytNoteViewModelNoteContent"},_.k(_.k_,{text:function(){var w,Z;
return(w=W())==null?void 0:(Z=w.contributorNote)==null?void 0:Z.text}})))},"lf");
WGz.idomCompat=!0;_.Ct(WGz,"yt-note-view-model",{props:{data:_.qR}});var xA=_.xQ(function(a){var W=_.Qn(a,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),w=W.label,Z=W.text,N=W.placeholder,B=W.hint;a=W.rows;var I=W.overflowStyle,X=W.outline,v=W.disabled,U=W.disableNewLines,O=W.characterLimit,S=W.validation,T=W.onInput,p=_.D8();W=_.l(_.l5(function(){return Z()}));
var h=W.next().value,L=W.next().value;W=_.l(_.$1(!1,void 0,"fXvinf"));var F=W.next().value,x=W.next().value,G=function(){x(!0)},V=function(){x(!1)};
_.AS(function(){var G8=p.value,QF=I(),vl=h();QF==="expand-vertically"&&vl&&hY2(G8);p.value.addEventListener("focusin",G);p.value.addEventListener("focusout",V)});
_.Ao(function(){p.value.removeEventListener("focusin",G);p.value.removeEventListener("focusout",V)});
var d=function(){var G8;return(G8=S())==null?void 0:G8.validate(h())},ZD=function(){return O()&&!d()&&h().length>O().maxChars},aC=function(){return!!d()||ZD()};
W=_.$_(function(G8){if(!G8.currentTarget)return!1;G8=G8.currentTarget;L(G8.value);I()==="expand-vertically"&&hY2(G8);T==null||T(G8.value);return!0});
var Bv=_.$_(function(G8){U()&&G8.key==="Enter"&&G8.preventDefault();return!1}),Am=_.$_(function(){p.value.focus()}),e9=function(){return N()||w()},cv={},C7={},RC={};
return _.k("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.k("div",{class:_.W$("ytStandardsTextareaShapeTextareaContainer",(cv.ytStandardsTextareaShapeTextareaContainerOutline=X,cv.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=v,cv.ytStandardsTextareaShapeTextareaContainerOutlineError=aC,cv)),"on:click":Am},_.k("label",{class:_.W$("ytStandardsTextareaShapeLabel",(C7.ytStandardsTextareaShapeLabelFocused=F,C7.ytStandardsTextareaShapeLabelDisabled=v,C7.ytStandardsTextareaShapeLabelError=
function(){return aC()&&!v()},C7.ytStandardsTextareaShapeLabelHidden=function(){return!F()&&!h()&&!!e9()},C7))},w),_.k("div",{class:_.W$("ytStandardsTextareaShapePlaceholder",(RC.ytStandardsTextareaShapePlaceholderVisible=function(){return!F()&&!h()},RC)),
"aria-hidden":"true"},e9),_.k("textarea",{el:p,class:"ytStandardsTextareaShapeTextarea",rows:a,disabled:v,placeholder:e9,"on:input":W,"on:keydown":Bv},h)),_.k(_.Y,{cond:function(){return B()&&!aC()},
then:function(){var G8={};return _.k("div",{class:_.W$("ytStandardsTextareaShapeHint",(G8.ytStandardsTextareaShapeHintDisabled=v,G8))},_.k("div",{class:"ytStandardsTextareaShapeHintHintMessage"},B))}}),_.k(_.Y,{cond:d,
then:function(){return _.k(wid,{disabled:v},_.k("div",{class:"ytStandardsTextareaShapeErrorMessage"},d))}}),_.k(_.Y,{cond:O,
then:function(G8){return _.k(_.Y,{cond:ZD,then:function(){return _.k(wid,{disabled:v},_.k("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return G8().errorMessage}),_.k("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return h().length+"/"+G8().maxChars}))}})}}))},"mf");
xA.idomCompat={callbacks:{onInput:!0}};var wid=_.xQ(function(a){var W={};return _.k("div",{class:_.W$("ytStandardsTextareaShapeError",(W.ytStandardsTextareaShapeErrorDisabled=a.disabled,W)),role:"alert"},_.k(_.P$,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),a.children)},"nf");_.Z3z=_.xQ(function(a){var W=a.data;return _.k("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.k(xA,{text:a.text,label:function(){var w;return(w=W().contentProperties)==null?void 0:w.labelText},
placeholder:function(){var w;return(w=W().contentProperties)==null?void 0:w.placeholderText},
hint:function(){var w;return(w=W().contentProperties)==null?void 0:w.hintText},
outline:function(){var w;return!((w=W().displayProperties)==null?0:w.hideBorder)},
overflowStyle:function(){var w;return((w=W().displayProperties)==null?0:w.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:a.disabled,disableNewLines:function(){var w;return(w=W().displayProperties)==null?void 0:w.disableNewLines},
onInput:a.onInput,characterLimit:a.characterLimit,validation:a.validation,rows:function(){var w;return(w=W().displayProperties)==null?void 0:w.rows}}))},"of");_.Nzf=_.xQ(function(a){var W=a.data;return _.k("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.k(xA,{text:a.text,label:function(){var w;return(w=W().contentProperties)==null?void 0:w.labelText},
placeholder:function(){var w;return(w=W().contentProperties)==null?void 0:w.placeholderText},
hint:function(){var w;return(w=W().contentProperties)==null?void 0:w.hintText},
outline:function(){var w;return!((w=W().displayProperties)==null?0:w.hideBorder)},
overflowStyle:function(){var w;return((w=W().displayProperties)==null?0:w.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var w;return(w=W().displayProperties)==null?void 0:w.disableNewLines},
onInput:a.onInput,characterLimit:a.characterLimit,validation:a.validation,rows:function(){var w;return(w=W().displayProperties)==null?void 0:w.rows}}))},"pf");var tgX=_.xQ(function(a){var W=_.l(_.l5(function(){var e9,cv;return((e9=a.data().structuredContextNoteFormSchema)==null?0:(cv=e9.initialValues)==null?0:cv.noteBody)?a.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),w=W.next().value,Z=W.next().value;
W=_.l(_.l5(function(){a.data();return!1}));
var N=W.next().value,B=W.next().value;W=_.l(_.l5(function(){a.data();return!1}));
var I=W.next().value,X=W.next().value;W=_.l(_.l5(function(){var e9,cv;return((e9=a.data().structuredContextNoteFormSchema)==null?0:(cv=e9.initialValues)==null?0:cv.timestamp)?a.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var v=W.next().value,U=W.next().value;W=_.l(_.l5(function(){a.data();return!1}));
var O=W.next().value,S=W.next().value;W=_.l(_.l5(function(){var e9,cv;return((e9=a.data().structuredContextNoteFormSchema)==null?0:(cv=e9.initialValues)==null?0:cv.sources)?[a.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var T=W.next().value,p=W.next().value;W=_.l(_.l5(function(){a.data();return!1}));
var h=W.next().value,L=W.next().value;W=_.l(_.l5(function(){return!1}));
var F=W.next().value,x=W.next().value;_.AS(function(){var e9;_.pM9((e9=a.data().structuredContextNoteFormSchema)==null?void 0:e9.id,{isSubmitting:F,onSubmit:function(){x(!0);var cv=MkD(w(),v(),T(),a.data()),C7=_.K().resolve(_.zU);cv&&C7&&C7.resolveCommand(cv,{commandController:{onSuccess:function(){x(!1)}}})},
isValid:function(){return N()&&!I()&&!O()&&!h()}})});
var G=function(e9){if(e9!==void 0&&(Z(e9),!N()&&e9.length>0&&B(!0),N())){var cv=eYi(a.data());if(cv){var C7=cv.minLength;cv=cv.maxLength;C7&&e9.length<C7?X(!0):cv&&e9.length>cv?X(!0):X(!1)}}},V=function(e9){if(e9!==void 0){U(e9);
if(e9.length>0){var cv,C7,RC,G8,QF=j$9((cv=a.data())==null?void 0:(C7=cv.structuredContextNoteFormSchema)==null?void 0:(RC=C7.fieldSchemas)==null?void 0:(G8=RC.timestamp)==null?void 0:G8.validationSchema);if(QF&&(cv=QF.regex)&&!(new RegExp(cv)).test(e9)){S(!0);return}}S(!1)}},d=function(e9){if(e9!==void 0){var cv=e9.split(/[ \n]/).map(function(C7){return C7.trim()});
p(cv);if(e9.length>0)for(e9=_.l(cv),cv=e9.next();!cv.done;cv=e9.next())if(!FHI(cv.value)){L(!0);return}L(!1)}},ZD=function(){return{validate:function(e9){if(N()){var cv=eYi(a.data());
if(cv){var C7=cv.minLength;cv=cv.translations;if(C7&&e9.length<C7)return cv==null?void 0:cv.minLengthErrorMessage}}}}},aC=function(){var e9=eYi(a.data()),cv=e9==null?void 0:e9.maxLength,C7;
e9=e9==null?void 0:(C7=e9.translations)==null?void 0:C7.maxLengthErrorMessage;if(cv&&e9)return{maxChars:cv,errorMessage:e9}},Bv=function(){return{validate:function(e9){if(e9){var cv,C7,RC,G8,QF=j$9((cv=a.data())==null?void 0:(C7=cv.structuredContextNoteFormSchema)==null?void 0:(RC=C7.fieldSchemas)==null?void 0:(G8=RC.timestamp)==null?void 0:G8.validationSchema);
if(QF&&(cv=QF.regex,QF=QF.translations,cv&&!(new RegExp(cv)).test(e9)))return QF==null?void 0:QF.regexErrorMessage}}}},Am=function(){return{validate:function(e9){if(e9){var cv,C7,RC,G8,QF=JKk((cv=a.data())==null?void 0:(C7=cv.structuredContextNoteFormSchema)==null?void 0:(RC=C7.fieldSchemas)==null?void 0:(G8=RC.sources)==null?void 0:G8.validationSchema);
if(QF&&(cv=QF.translations,cv==null?0:cv.selectedErrorMessage))for(e9=e9.split(/[ \n]/).map(function(vl){return vl.trim()}),e9=_.l(e9),C7=e9.next();!C7.done;C7=e9.next())if(!FHI(C7.value))return e9=void 0,(e9=cv)==null?void 0:e9.selectedErrorMessage}}}};
return _.k("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.k("div",{class:"ytStructuredContextNoteViewModelTextField"},_.k(_.Ax,{data:function(){var e9;return(e9=a.data())==null?void 0:e9.noteContents}},{textFormFieldViewModel:function(e9){return _.k(_.Nzf,{data:e9.data,
onInput:G,validation:ZD,characterLimit:aC})},
textFieldViewModel:function(e9){return _.k(_.Z3z,{data:e9.data,onInput:G,validation:ZD,characterLimit:aC})}})),_.k("div",{class:"ytStructuredContextNoteViewModelTextField"},_.k(_.Ax,{data:function(){var e9;
return(e9=a.data())==null?void 0:e9.noteTimestamp}},{textFormFieldViewModel:function(e9){return _.k(_.Nzf,{data:e9.data,
onInput:V,validation:Bv})},
textFieldViewModel:function(e9){return _.k(_.Z3z,{data:e9.data,onInput:V,validation:Bv})}})),_.k("div",{class:"ytStructuredContextNoteViewModelTextField"},_.k(_.Ax,{data:function(){var e9;
return(e9=a.data())==null?void 0:e9.noteSources}},{textFormFieldViewModel:function(e9){return _.k(_.Nzf,{data:e9.data,
onInput:d,validation:Am})},
textFieldViewModel:function(e9){return _.k(_.Z3z,{data:e9.data,onInput:d,validation:Am})}})))},"qf");
tgX.idomCompat=!0;_.Ct(tgX,"yt-structured-context-note-view-model",{props:{data:_.qR}});var $Yk=_.xQ(function(a){var W=_.l(_.l5(function(){var B;if((B=a.controlled)==null?0:B.call(a))return[];var I;return(((I=a.data())==null?void 0:I.chips)||[]).map(function(X){X=_.A(X,_.qa);if(X==null?0:X.selected)return RYI(X.chipValue)}).filter(function(X){return X!==void 0})})),w=W.next().value,Z=W.next().value,N=function(B){var I=RYI(B.chipValue);
if(I!==void 0){var X;if((X=a.controlled)==null?0:X.call(a))return void a.controlled().onTap(I);B=w().includes(I)?[].concat(_.K8(w().filter(function(U){return U!==I}))):[].concat(_.K8(w()),[I]);
Z(B);var v;if((v=a.uncontrolled)==null?0:v.call(a))a.uncontrolled().onUpdate(B)}};
return _.k("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.k(_.k6,{each:function(){return a.data().chips||[]}},function(B){return _.k("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.k(_.EWl,{data:function(){return _.A(B,_.qa)},
selected:function(){var I;if(I=_.A(B,_.qa)){var X=RYI(I.chipValue);if(X!==void 0){var v;I=((v=a.controlled)==null?0:v.call(a))?a.controlled().selectedValues.includes(X):w().includes(X)}else I=void 0}else I=!1;return I},
callback:N}))}))},"rf");var Bzz=_.xQ(function(a){var W=a.data;var w=function(){var X;return((X=W())==null?void 0:X.flowStateKey)||""},Z=_.X7(_.tN,w),N=function(){var X;
return(X=_.A(Z(),n12))==null?void 0:X.chips},B=function(X){if(X!==void 0){var v=N()||[];
v=v.find(function(U){return U===X})?v.filter(function(U){return U!==X}):[].concat(_.K8(v),[X]);
v=Object.assign({},Z(),{feedbackFormFlowState:Object.assign({},_.A(Z(),n12),{chips:v})});_.R5(_.oL("flowStateEntity",w(),v))}},I=function(){var X;
return _.A((X=W())==null?void 0:X.inputBox,jun)};
a=_.T6(function(X){var v=I();v=!(v==null?0:v.maxChars)||X.length<=v.maxChars;X=Object.assign({},Z(),{feedbackFormFlowState:Object.assign({},_.A(Z(),n12),{detail:X}),abuseReportFlowState:Object.assign({},_.A(Z(),wV),{navigationEnabled:v})});_.R5(_.oL("flowStateEntity",w(),X))},150);
return _.k("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.k("div",{class:"ytFeedbackFormViewModelChips"},_.k(_.Ax,{data:function(){var X;return(X=W())==null?void 0:X.chipSelection}},{chipSelectionFormFieldViewModel:function(X){return _.k($Yk,{data:X.data,
controlled:function(){return{selectedValues:N()||[],onTap:B}}})}})),_.k("div",{class:"ytFeedbackFormViewModelInputBox"},_.k(xA,{text:function(){var X;
return(X=_.A(Z(),n12))==null?void 0:X.detail},
placeholder:function(){var X;return((X=I())==null?void 0:X.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var X=I();if(X&&X.maxChars)return{maxChars:X.maxChars,errorMessage:X.maxCharsExceededErrorMessage||""}},
onInput:a})),_.k("div",{class:"ytFeedbackFormViewModelFooterText"},_.k(_.k_,{text:function(){return W().footerText}})))},"sf");
Bzz.idomCompat=!0;_.Ct(Bzz,"yt-feedback-form-view-model",{props:{data:_.qR}});var lpd=_.xQ(function(a){var W=a.data;var w=function(){return W().flowStateKey||""},Z=_.X7(Fkk,w),N=function(){return _.A(Z(),wV)},B=function(){if(_.r("enable_gff_accessibility_fix")){var I=!0,X;
if((X=N())==null?0:X.navigationEnabled){var v;_.cX((v=N())==null?void 0:v.navigationCommand);I=!1}X=Object.assign({},Z(),{abuseReportFlowState:Object.assign({},N(),{isReportFormDirty:I})});_.R5(_.oL("flowStateEntity",w(),X))}else _.cX((I=N())==null?void 0:I.navigationCommand)};
return _.k("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.k("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.k(_.Ax,{data:function(){return W().cancelButton}},{buttonViewModel:function(I){return _.k(_.F7,{data:I.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:B})}}),_.k(_.Ax,{data:function(){var I;
if(W().navButton){var X=Object;var v=X.assign,U=_.A(W().navButton,_.hx),O=((I=N())==null?0:I.navigationEnabled)||_.r("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",S,T;I=_.A((S=N())==null?void 0:S.navigationCommand,_.pt);S=(T=_.A(I,_.ba))==null?void 0:T.url;X={buttonViewModel:v.call(X,{},U,{state:O,iconName:S?"OPEN_IN_NEW":""})}}else X=void 0;return X}},{buttonViewModel:function(I){return _.k(_.F7,{data:I.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:B})}})))},"tf");
lpd.idomCompat=!0;_.Ct(lpd,"yt-report-form-bottom-bar-view-model",{props:{data:_.qR}});var IpE=_.xQ(function(a){var W=a.nextStep;return _.k("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.k("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.k(_.P$,{icon:function(){return W().iconName||""}})),_.k("div",null,_.k(_.k_,{text:function(){return W().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"uf"),Pd2=_.xQ(function(a){var W=a.data;
var w,Z=(w=_.K().resolve(_.Vv(_.Lt)))==null?void 0:w(),N=_.X7(_.tN,function(){return W().flowStateKey||""});
return _.k("yt-report-form-confirmation-page-view-model",{class:function(){var B;return((B=_.A(N(),wV))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.k("div",{class:function(){var B;
return((B=_.A(N(),wV))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.k(_.qw,{data:function(){return Z&&W().imageDark?W().imageDark:W().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.k("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.k("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return W().confirmationHeader}),_.k("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.k(_.k_,{text:function(){return W().confirmationText}})),_.k("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.k(_.k_,{text:function(){return W().lawEnforcementText}})),
_.k("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return W().whatToExpectHeader}),_.k(_.Y,{cond:function(){return W().nextSteps},
then:function(B){return _.k("div",null,_.k(_.k6,{each:B},function(I){return _.k(IpE,{nextStep:I})}))}}),_.k(_.Y,{cond:function(){return W().legalReportText},
then:function(B){return _.k("div",null,_.k(_.k_,{text:B,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"vf");
Pd2.idomCompat=!0;_.Ct(Pd2,"yt-report-form-confirmation-page-view-model",{props:{data:_.qR}});var Xiz=_.xQ(function(a){var W=a.data;var w=function(){var B;return((B=_.A(W().inputBox,jun))==null?void 0:B.maxChars)||500},Z=function(){return W().flowStateKey||""},N=_.X7(_.tN,Z);
a=_.T6(function(B){B=Object.assign({},N(),{flowFormState:{isValid:B.length<=w()},abuseReportFlowState:{userComments:B,navigationEnabled:!(B.length>w()),isReportFormDirty:!0}});_.FM().dispatch(_.e4("flowStateEntity",Z(),B))},150);
_.AS(function(){var B=Object.assign({},N(),{flowFormState:{isValid:!0}});_.FM().dispatch(_.e4("flowStateEntity",Z(),B))});
return _.k("yt-report-form-details-page-view-model",{class:function(){var B;return((B=_.A(N(),wV))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.k("h1",{class:function(){var B;
return((B=_.A(N(),wV))==null?void 0:B.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return W().detailsPageHeader}),_.k("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.k(_.k_,{text:function(){return W().bodyText}})),_.k("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.k(xA,{label:function(){var B;
return((B=_.A(W().inputBox,jun))==null?void 0:B.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var B;return{errorMessage:((B=_.A(W().inputBox,jun))==null?void 0:B.maxCharsExceededErrorMessage)||"",maxChars:w()}},
onInput:a})))},"wf");
Xiz.idomCompat=!0;_.Ct(Xiz,"yt-report-form-details-page-view-model",{props:{data:_.qR}});var vqK=_.xQ(function(a){var W=a.data;var w=a.selectedKey;var Z=a.onSelected;var N=a.groupName;var B=function(){return W().text},I=function(){return W().attributedText},X=function(){return W().subtext},v=function(){return W().attributedSubtext},U=_.k("div",{class:"ytRadioButtonItemViewModelLabel"},_.k(_.Y,{cond:B,
then:function(){return _.k("div",null,B)}}),_.k(_.Y,{cond:I,
then:function(){return _.k(_.k_,{text:I})}}),_.k(_.Y,{cond:X,
then:function(){return _.k("div",{class:"ytRadioButtonItemViewModelSubText"},X)}}),_.k(_.Y,{cond:v,
then:function(){return _.k("div",{class:"ytRadioButtonItemViewModelSubText"},_.k(_.k_,{text:v}))}})),O=function(){if(I()){var T;
return(T=I())==null?void 0:T.content}return B()},S=function(){if(v()){var T;
return(T=v())==null?void 0:T.content}return X()};
a={};return _.k("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.k(_.Sb,{name:N,checked:function(){return!(w==null||!w()||W().key!==(w==null?void 0:w()))},
onChange:function(T){Z==null||Z(T.target,W(),N==null?void 0:N())},
labelRenderable:function(){return U},
ariaLabel:function(){return S()?O()+", "+S():O()},
className:_.W$((a.ytRadioButtonItemViewModelSubTitle=function(){return!!W().subtext},a))}))},"xf");_.gq2=_.xQ(function(a){var W=a.data;var w=a.onSelected;var Z=a.selectedKey;var N=a.groupName;return _.k("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.k("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.k(_.Ax,{data:function(){return W().radioButtons}},{radioButtonItemViewModel:function(B){return _.k(vqK,{data:B.data,
onSelected:w,selectedKey:Z,groupName:function(){return(N==null?void 0:N())||W().key}})}})))},"yf");var oqa=_.xQ(function(a){var W=a.data;var w=_.fH(),Z=function(){return W().flowStateKey||""},N=_.X7(_.tN,Z),B=function(){return _.A(N(),wV)};
_.Ka(function(){var I,X;if(((I=B())==null?0:I.isReportFormDirty)&&((X=B())==null||!X.navigationEnabled)&&_.r("enable_gff_accessibility_fix")){var v;if(((v=B())==null?void 0:v.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var U;(U=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||U.scrollIntoView()}else{var O;(O=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||O.scrollIntoView()}}});
return _.k("yt-report-form-reason-select-page-view-model",{class:function(){var I;return((I=B())==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.k("h1",{class:function(){var I;
return((I=B())==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return W().pageHeader}),_.k("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.k(_.k_,{text:function(){return W().bodyText}})),_.k("div",{class:function(){var I;
return((I=B())==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.k(_.Y,{cond:function(){var I,X;
return((I=B())==null?void 0:I.isReportFormDirty)&&!((X=B())==null?0:X.navigationEnabled)&&_.r("enable_gff_accessibility_fix")},
then:function(){return _.k("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:w},_.k(_.P$,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.k("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return W().emptyReasonSelectErrorMessage}))}}),_.k(_.gq2,{data:function(){return _.A(W().radioButtonGroup,_.xkK)},
onSelected:function(I,X){I=Object.assign({},N(),{abuseReportFlowState:Object.assign({},B(),{reasonKey:X.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:X.command})});_.R5(_.oL("flowStateEntity",Z(),I))},
selectedKey:function(){var I;return(I=B())==null?void 0:I.reasonKey},
groupName:"report-form-reason-select-page"})))},"zf");
oqa.idomCompat=!0;_.Ct(oqa,"yt-report-form-reason-select-page-view-model",{props:{data:_.qR}});var k4d=_.xQ(function(a){var W=a.data;var w,Z=(w=_.K().resolve(_.Vv(_.Lt)))==null?void 0:w();return _.k("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.k("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.k(_.qw,{data:function(){return Z&&W().imageDark?W().imageDark:W().image},
alt:""})),_.k("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.k("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return W().header}),_.k(_.k_,{text:function(){return W().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Af");
k4d.idomCompat=!0;_.Ct(k4d,"yt-report-form-sign-in-page-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;var w=function(){var U;return(U=W().textInputPlaceholder)==null?void 0:U.content},Z=function(U){U=U.target.value.trim();
var O=W().onUpdateText;O&&_.cX(O,{form:{userQuery:U}});W().userQuery=U},N=_.T6(function(U){Z(U)},150),B=_.$_(function(U){N(U);
return!1}),I=_.$_(function(U){U.key==="Enter"&&(Z(U),(U=W().onNextStepCommand)&&_.cX(U,{}));
return!1}),X=_.D8(),v=function(){if(_.r("web_hide_explore_hub_until_user_navigates_back_to_home")){var U,O,S;
(S=(O=(U=X.value)==null?void 0:U.closest("ytd-flow-step-renderer"))==null?void 0:O.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||S.click()}};
return _.k("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:X},_.k("div",{class:"ytwTalkToRecsTopCornerButton"},_.k(_.Ax,{data:function(){return W().topCornerButton}},{buttonViewModel:_.F7})),_.k("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.k("div",{class:"ytwTalkToRecsTitle"},_.k(_.k_,{text:function(){return W().title}})),_.k("div",{class:"ytwTalkToRecsSubtitle"},_.k(_.k_,{text:function(){return W().subtitle}})),_.k("div",{class:"ytwTalkToRecsChipsShelf"},_.k(_.Ax,{data:function(){return W().answersShelf}},
{chipsShelfViewModel:function(U){return _.k(_.l1R,{data:U.data,
callback:v})}})),_.k(_.Y,{cond:function(){return W().showOpenTextInput&&!_.r("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.k("div",{class:"ytwTalkToRecsUserInputBox"},_.k("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:w,value:function(){return W().userQuery},
"on:input":B,"on:keyup":I}))}})))},"Bf"),"yt-talk-to-recs-view-model",{props:{data:_.qR}});var qW0={sources:[{clientResource:{imageName:"CHECK"}}]};_.UYX=_.xQ(function(a){var W=_.D8();a=_.Qn(a,{error:void 0});var w=a.data,Z=a.error,N=a.onSelected;a=_.l(_.l5(function(){return brD(w())}));
var B=a.next().value,I=a.next().value;GO0(w,function(S){I(S);var T,p,h=xF9((T=w().options)==null?void 0:(p=T[S])==null?void 0:p.value,w().type);N==null||N(h);W.value.focus()});
a=_.$_(function(){if(!w().disabled){var S=w(),T=B(),p=W.value;S.options&&(S=Q$d(S.options,T,S.label),_.K().resolve(_.Yt).openSheet({viewModel:S},p))}});
var X=_.q78(),v=function(){return!!Z()},U=function(){return!!w().disabled},O={};
O=_.W$("ytDropdownViewModelDropdownContainer",(O.ytDropdownViewModelDropdownContainerErrorBorder=v,O.ytDropdownViewModelDropdownContainerDisabled=U,O));return _.k("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.k("div",{class:O,"on:click":a,el:W,role:"combobox",tabindex:0,"on:keydown":X,"aria-invalid":v,"aria-disabled":U,"aria-describedby":function(){return v()?"dropdown-view-model-error":void 0}},_.k("div",{class:"ytDropdownViewModelText"},s$d(w,v,B),uhX(w,B)),_.k("div",{class:"ytDropdownViewModelChevronDown"},
_.k(_.P$,{icon:"CHEVRON_DOWN"}))),CJz(w,Z))},"Cf");_.Ct(_.xQ(function(a){var W=a.data;var w=function(N){var B=ff0(W());B.videoMetadata||(B.videoMetadata={});B.videoMetadata.sponsorshipsMetadata||(B.videoMetadata.sponsorshipsMetadata={});B.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(N)},Z=function(N){var B=ff0(W());
B.scheduledRedirectMetadata||(B.scheduledRedirectMetadata={});B.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(N)};
return _.k("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.k("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.k("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.k(_.k_,{text:function(){return W().title}}),_.k(_.P$,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.k(_.k_,{text:function(){return W().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.k(_.Ax,{data:function(){return W().tierChoices}},{dropdownViewModel:function(N){return _.k("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.k(_.UYX,{data:N.data,
onSelected:w}))}}),_.k(_.Ax,{data:function(){return W().startTimeChoices}},{dropdownViewModel:function(N){return _.k("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.k(_.UYX,{data:N.data,
onSelected:Z}))}}),_.k(_.k_,{text:function(){return W().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.k("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.k(_.Ax,{data:function(){return W().scheduleButton}},{panelFooterViewModel:_.Qi})))},"Df"),"ytfz-schedule-fanzone-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;a=a.className===void 0?"":a.className;var w=_.X7(Fkk,function(){return W().flowStateEntityKey||""}),Z={};
Z=_.W$("ytFlowBottomBarViewModelFlowBottomBarButtons",(Z.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},Z));
var N={},B=_.W$("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",Z,(N.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},N.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},N));
N={};var I=_.W$("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",Z,(N.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},N.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},N));
Z={};Z=_.W$("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
Z));
return _.k("yt-flow-bottom-bar-view-model",{class:_.W$("ytFlowBottomBarViewModelHost",a)},_.k(_.Y,{cond:function(){var X;return(X=W())==null?void 0:X.textSection},
then:function(X){return _.k("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.k(_.k_,{text:X}))}}),_.k("div",{class:Z},_.k(_.Ax,{data:function(){return W().secondaryButton}},{buttonViewModel:function(X){return _.k(_.F7,{data:X.data,
className:I})}}),_.k(_.Ax,{data:function(){return W().primaryButton}},{buttonViewModel:function(X){return _.k(_.F7,{data:X.data,
className:B,buttonOverrides:function(){var v;return{disabled:!((v=w())==null||!v.primaryButtonDisabled)}}})}})))},"Ef"),"yt-flow-bottom-bar-view-model",{props:{data:_.qR,
className:_.ux}});var O3D="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),b4=function(){var a=_.u.apply(this,arguments)||this;a.enableScrollingFix=!0;a.bottomBar=!1;a.hideBottomBar=!1;a.fitContent=!1;return a};
_.c(b4,_.u);_.t=b4.prototype;_.t.ready=function(){_.r("enable_pdp_icon_prefetch")&&_.eG9(_.K().resolve(_.t$),0,O3D)};
_.t.focus=function(a){this.topBar?_.un(this.topBar,a):this.paperDialog.focus(a)};
_.t.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16754_scroller&&(this.JSC$16754_scroller.dialogElement=this.paperDialog,this.JSC$16754_scroller.attached&&typeof this.JSC$16754_scroller.attached==="function"&&this.JSC$16754_scroller.attached())};
_.t.onDataChanged=function(){var a;this.fitContent=!((a=this.data)==null||!a.fitContent);var W;this.bottomBar=!((W=this.data)==null||!W.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.t.onProgressChanged=function(){var a,W,w=((W=(a=this.data)==null?void 0:a.progress)!=null?W:0)*100;this.progressElement.style.width=w+"%"};
_.t.isProgressHidden=function(){var a;return!((a=this.data)==null?0:a.progress)};
_.t.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(a){return _.r("enable_wiz_next_lp2_msof")&&a&&!a.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.dU.Object.defineProperties(b4.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var a;return _.r("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.A((a=this.data)==null?void 0:a.content,RG0)}}});
b4.prototype.onProgressChanged=b4.prototype.onProgressChanged;b4.prototype.onDataChanged=b4.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],b4.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],b4.prototype,"enableScrollingFix",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],b4.prototype,"bottomBar",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],b4.prototype,"hideBottomBar",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],b4.prototype,"containsExploreHub",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],b4.prototype,"fitContent",void 0);_.f([_.w$("#progress"),_.z("design:type",HTMLElement)],b4.prototype,"progressElement",void 0);
_.f([_.w$("#scroller"),_.z("design:type",Object)],b4.prototype,"JSC$16754_scroller",void 0);_.f([_.w$("ytd-flow-top-bar-renderer"),_.z("design:type",HTMLElement)],b4.prototype,"topBar",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],b4.prototype,"onDataChanged",null);_.f([_.a5("data.progress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],b4.prototype,"onProgressChanged",null);
b4=_.f([_.C({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],b4);
_.D(b4,"ytd-flow-step-renderer",function(){if(Nwk!==void 0)return Nwk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Nwk=a},{mode:1});var SwX=function(a){this.resolveCommand=a;this.steps={}},Ywi=function(a,W){W=_.l(W||[]);
for(var w=W.next();!w.done;w=W.next()){w=w.value;var Z=Object.values(w)[0],N=void 0;if((N=Z)==null?0:N.stepId)a.steps[Z.stepId]=w}},pi2=function(a,W){var w,Z,N,B,I;
return _.P(function(X){if((w=a.state)==null||!w.currentStepId)return X.return(void 0);Z=Tzf(a);if(!Z)return X.return(KGK(a));if(N=_.A(Z,_.MQI)){var v;((v=N.screenLoggingData)==null?0:v.screenVeType)&&_.NJ(_.$J(),N.screenLoggingData.screenVeType);((B=N)==null?0:B.onStepStartCommand)&&a.resolveCommand((I=N)==null?void 0:I.onStepStartCommand,{})}if(N&&W){v=N;var U,O,S,T;((U=W.flowLoggingData)==null?0:U.eventNamespace)&&((O=v.flowEventData)==null?0:O.eventType)&&((S=v.flowEventData)==null?0:S.eventMetadata)&&
((T=W.flowLoggingData)==null?0:T.flowType)&&(U=_.Z3(W.flowLoggingData.eventNamespace,v.flowEventData.eventType,v.flowEventData.eventMetadata),_.Nj(_.t7(),U,W.flowLoggingData.flowType));W.steps&&!W.steps.includes(Z)&&W.steps.push(Z)}return X.return(Z)})};
SwX.prototype.back=function(){var a;(a=this.state)!=null&&a.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
SwX.prototype.handleUpdateFlowCommand=function(a){a.steps&&Ywi(this,a.steps);a.entityUpdateCommand&&this.resolveCommand(a.entityUpdateCommand,{});a.flowContinuationCommand&&(a=a.flowContinuationCommand)&&(this.getFlowContinuationCommand=a);this.awaitFlowContinuation&&(this.awaitFlowContinuation(Tzf(this)),this.awaitFlowContinuation=void 0)};
SwX.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var KGK=function(a){return _.P(function(W){return a.getFlowContinuationCommand?W.return(new Promise(function(w){a.awaitFlowContinuation=w;a.getFlowContinuationCommand&&a.resolveCommand(a.getFlowContinuationCommand,{flow_state:a.state})})):W.return(Promise.resolve(void 0))})},Tzf=function(a){var W;
if((W=a.state)!=null&&W.currentStepId)return a.steps[a.state.currentStepId]};var s7=function(){var a=_.u.apply(this,arguments)||this;a.flowState=new SwX(function(W,w){w=w===void 0?{}:w;_.WX.instance.resolveCommand(W,{form:{form:w,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};
_.c(s7,_.u);_.t=s7.prototype;_.t.onPopupClosed=function(a){a&&this.hostElement!==a.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.t.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"}}}};
_.t.focus=function(a){var W=this;_.cA(function(){var w=_.M(W.hostElement).querySelector("ytd-flow-step-renderer");w.topBar?w.focus(a):W.topBar&&_.un(W.topBar,a)},1)};
_.t.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.t.computeTopBarHidden=function(a){var W;return!((W=_.A(a,_.MQI))==null||!W.topBarOverride)};
_.t.dataChanged=function(){var a=this,W,w;return _.P(function(Z){if(Z.nextAddress==1){((W=a.data)==null?0:W.steps)&&Ywi(a.flowState,a.data.steps);if((w=a.data)==null?0:w.flowContinuationCommand){var N=a.flowState,B=a.data.flowContinuationCommand;B&&(N.getFlowContinuationCommand=B)}return _.g(Z,pi2(a.flowState,a.data),2)}a.currentFlowStep=Z.yieldResult;_.Xd(Z)})};
_.t.flowChanged=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1){if(!a.flow)return w.return();a.flowState.state=a.flow;a.isLoading=!0;return _.g(w,pi2(a.flowState,a.data),2)}W=w.yieldResult;if(!W||a.flow.isLoading)return w.return();a.currentFlowStep=W;a.initialState=!1;a.isLoading=!1;a.autofocusAndRefit();_.Xd(w)})};
_.t.autofocusAndRefit=function(){var a=this,W=_.K().resolve(_.Vv(_.S4)),w=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),Z=document.querySelector("yt-report-form-confirmation-page-view-model"),N=document.querySelector("yt-report-form-details-page-view-model"),B=document.querySelector("yt-report-form-reason-select-page-view-model"),I=document.querySelector("yt-contributor-zero-state-view-model"),
X=document.querySelector("yt-structured-context-note-view-model"),v=document.querySelector("yt-note-view-model");(!w&&W&&W.isKeyBoardInUse()||Z||!w&&N||!w&&B||I||X||v)&&_.CJ(this.hostElement);_.DW(this,function(){_.E$(a.hostElement,"yt-refit")})};
_.t.handleUpdateFlowCommand=function(a){this.data&&(a=_.A(a,F$9),a.targetId===this.data.targetId&&(a.flowContinuationCommand&&(this.data.flowContinuationCommand=a.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(a),this.autofocusAndRefit()))};
_.t.handleFlowNextStepCommand=function(a){this.data&&this.flow&&this.flow.key&&(a=_.A(a,L$d),a.targetId===this.data.targetId&&(a=a.stepId||"",this.ytdReduxBehavior.dispatch(_.e4("flowStateEntity",this.flow.key,{currentStepId:a,stepIdStack:(this.flow.stepIdStack||[]).concat(a)}))))};
_.t.handleFlowPrevStepCommand=function(a){if(this.data&&this.flow&&this.flow.key&&(a=_.A(a,Joa),a.targetId===this.data.targetId)){var W=[].concat(_.K8(this.flow.stepIdStack||[]));W.length>1?(W.pop(),this.ytdReduxBehavior.dispatch(_.e4("flowStateEntity",this.flow.key,{currentStepId:W[W.length-1],stepIdStack:W}))):a.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(a.onFirstStepCommand)}};
_.t.handleYpcCancelRecurrenceCommand=function(a){if(this.data&&this.flow&&this.flow.key&&(a=_.A(a,ban),a.targetId===this.data.targetId&&a.endpointCommand)){var W=_.A(this.flow,suE);W&&_.A(a.endpointCommand,_.T4R)&&(_.A(a.endpointCommand,_.T4R).feedbackData=W.surveyFeedback);this.ytComponentBehavior.resolveCommand(a.endpointCommand)}};
_.t.handlePartialUpdateFlowStateEntity=function(a){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.e4("flowStateEntity",this.flow.key,a,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
s7.prototype.flowChanged=s7.prototype.flowChanged;s7.prototype.dataChanged=s7.prototype.dataChanged;s7.prototype.onPopupClosed=s7.prototype.onPopupClosed;_.f([_.R(_.ij),_.z("design:type",Object)],s7.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],s7.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],s7.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],s7.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],s7.prototype,"initialState",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],s7.prototype,"isLoading",void 0);_.f([_.b(),_.z("design:type",Object)],s7.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],s7.prototype,"currentFlowStep",void 0);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],s7.prototype,"onPopupClosed",null);_.f([_.b({selectorArgs:["data.flowStateEntityKey"],selector:Fkk}),_.z("design:type",Object)],s7.prototype,"flow",void 0);_.f([_.w$("ytd-flow-top-bar-renderer"),_.z("design:type",HTMLElement)],s7.prototype,"topBar",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],s7.prototype,"dataChanged",null);_.f([_.lO("flow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],s7.prototype,"flowChanged",null);s7=_.f([_.C({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],s7);
_.rwE=_.mV()(s7,"ytd-flow-root-renderer",function(){if(ZFK!==void 0)return ZFK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ZFK=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var Aw0;var af=null;_.Ct(_.xQ(function(a){return _.k("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.k("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.k(_.k_,{text:function(){return a.data().text}}),_.k("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ff"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.qR}});var h8D=_.xQ(function(a){var W=a.playerControlsProps;var w=a.isShortsPage;return _.k("yt-bigboard",null,_.k(_.Y,{cond:function(){return W().isDragging},
then:function(){return _.k("div",{class:"ytBigboardStoryboardHost"},_.k(_.gf2,{progressBarProps:W,isShortsPage:w}))}}))},"Gf");
h8D.idomCompat=!0;_.u4={ACCOUNT_LABEL:W8("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:W8("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:W8("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:W8("AD_BADGE_HINT"),AD_BADGE_TEXT:W8("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:W8("ALL_CHANNELS_LABEL"),AMBIENT_MODE:W8("AMBIENT_MODE"),AMBIENT_MODE_OFF:W8("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:W8("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:W8("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:W8("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:W8("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:W8("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:W8("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:W8("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:W8("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:W8("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:W8("AUTOPLAY_UP_NEXT_IN"),BACK:W8("BACK"),CANCEL:W8("CANCEL"),CHANNEL_SWITCHER_LABEL:W8("CHANNEL_SWITCHER_LABEL"),CLOSE:W8("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:W8("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:W8("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:W8("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:W8("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:W8("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:W8("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:W8("COMMENT_MODAL_CONTENT"),CONFIRM_OK:W8("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:W8("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:W8("COPIED_TO_CLIPBOARD"),COPY:W8("COPY"),COPY_DEBUG_INFO:W8("COPY_DEBUG_INFO"),COPY_EMBED_CODE:W8("COPY_EMBED_CODE"),COPY_LINK_LABEL:W8("COPY_LINK_LABEL"),
COPY_VIDEO_URL:W8("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:W8("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:W8("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:W8("DELETE_FROM_DOWNLOADS"),DIALOG:W8("DIALOG"),DONE:W8("DONE"),DOWNLOAD:W8("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:W8("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:W8("FLAG_CONFIRM"),FLAG_CONTENT:W8("FLAG_CONTENT"),FLAG_LABEL:W8("FLAG_LABEL"),FLAG_TITLE:W8("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:W8("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:W8("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:W8("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:W8("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:W8("HIDE_SEARCH_FILTERS_LABEL"),HOME:W8("HOME","Home"),INVALID_RESPONSE_RECEIVED:W8("INVALID_RESPONSE_RECEIVED"),LIBRARY:W8("LIBRARY","Library"),LISTENING:W8("LISTENING"),LOADING:W8("LOADING"),LONG_PRESS_MIC_TO_SPEAK:W8("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:W8("LOOP"),MENU_DESKTOP:W8("MENU_DESKTOP"),MENU_EXIT:W8("MENU_EXIT"),
MENU_FEEDBACK:W8("MENU_FEEDBACK"),MENU_HELP:W8("MENU_HELP"),MENU_IMPRESSUM:W8("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:W8("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:W8("MENU_SETTINGS"),MENU_SIGN_IN:W8("MENU_SIGN_IN"),MENU_TITLE:W8("MENU_TITLE"),MENU_YOUR_DATA:W8("MENU_YOUR_DATA"),MORE_INFO:W8("MORE_INFO"),MORE_OPTIONS:W8("MORE_OPTIONS"),MUTE_VOLUME:W8("MUTE_VOLUME"),NEW_PLAYLIST:W8("NEW_PLAYLIST"),NEXT_VIDEO:W8("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:W8("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:W8("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:W8("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:W8("NOT_FOUND_TITLE"),NO_DOWNLOADS:W8("NO_DOWNLOADS"),NO_MIC_INPUT:W8("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:W8("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:W8("OOPS_MESSAGE"),OPEN_APP:W8("OPEN_APP"),OPEN_YOUTUBE:W8("OPEN_YOUTUBE"),PAUSE:W8("PAUSE"),PLAY:W8("PLAY"),PLAYER_CAPTION:W8("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:W8("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:W8("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:W8("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:W8("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:W8("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:W8("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:W8("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:W8("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:W8("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:W8("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:W8("PLAYER_MINIMIZE"),PLAYER_NEXT:W8("PLAYER_NEXT"),PLAYER_PAUSE:W8("PLAYER_PAUSE"),PLAYER_PLAY:W8("PLAYER_PLAY"),
PLAYER_PREVIOUS:W8("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:W8("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:W8("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:W8("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:W8("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:W8("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:W8("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:W8("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:W8("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:W8("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:W8("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:W8("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:W8("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:W8("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:W8("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:W8("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:W8("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:W8("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:W8("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:W8("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:W8("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:W8("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:W8("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:W8("PLAY_ALL"),PLEASE_FIX_ERRORS:W8("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:W8("PREVIOUS_VIDEO"),PRIVACY_POLICY:W8("PRIVACY_POLICY"),RELOAD:W8("RELOAD"),REQUIRED_LABEL:W8("REQUIRED_LABEL"),SAVE_PLAYLIST:W8("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:W8("SCRUB_SLIDE_USER_EDU"),SEARCH:W8("SEARCH","Search"),SEARCH_APPEND_LABEL:W8("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:W8("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:W8("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:W8("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:W8("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:W8("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:W8("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:W8("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:W8("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:W8("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:W8("SEEK_SLIDER"),SETTINGS_LABEL:W8("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:W8("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:W8("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:W8("SHOW_LESS"),SHOW_MORE:W8("SHOW_MORE"),SHOW_PLAYER_CONTROLS:W8("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:W8("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:W8("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:W8("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:W8("SIGN_IN_ON_WEB"),STABLE_VOLUME:W8("STABLE_VOLUME"),
STABLE_VOLUME_OFF:W8("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:W8("STABLE_VOLUME_ON"),STATS_FOR_NERDS:W8("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:W8("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:W8("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:W8("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:W8("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:W8("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:W8("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:W8("TIMESTAMP_SECONDS"),TOGGLE_OFF:W8("TOGGLE_OFF"),
TOGGLE_ON:W8("TOGGLE_ON"),TRENDING:W8("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:W8("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:W8("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:W8("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:W8("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:W8("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:W8("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:W8("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:W8("VIDEO_LINK_LABEL")};var i32=_.xQ(function(a){var W=a.playerApi;a=_.D8(function(N){VU(N,36843)});
var w=W8("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),Z=_.$_(function(){z7(36843);W&&W().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.k("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.k("button",{el:a,class:"ytPlayerControlsJumpForwardButtonButton",title:w,"aria-label":w,"on:click":Z},_.k("span",null,_.k(_.P$,{icon:"FAST_FORWARD"}))))},"Hf");var cw2=_.xQ(function(a){var W=a.appApi;a=_.D8(function(N){VU(N,62946)});
var w=W8("OPEN_IN_MINIPLAYER"),Z=_.$_(function(){z7(62946);var N,B;(B=(N=W()).openInMiniplayer)==null||B.call(N);return!1});
return _.k("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.k("button",{el:a,class:"ytMiniplayerButtonButton",title:w,"aria-label":w,"on:click":Z},_.k(_.P$,{icon:"PICTURE_IN_PICTURE",active:!1})))},"If");var e8I=_.xQ(function(a){var W=a.playerApi;a=_.D8(function(I){VU(I,142812)});
var w=_.l(_.$1(!1,void 0,"I3VCyb")),Z=w.next().value,N=w.next().value;w=function(){return W8("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(Z()?1:2)})};
var B=_.$_(function(){z7(142812);if(W){var I=W(),X=Z();I.setPlaybackRate(X?1:2);N(!Z())}return!1});
return _.k("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.k("button",{el:a,class:"ytPlaybackSpeedButtonButton",title:w,"aria-label":w,"on:click":B},_.k("span",null,_.k(_.P$,{icon:function(){return Z()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Jf");var nqD=_.xQ(function(a){var W=a.title;var w=a.ariaLabel;var Z=a.icon;var N=a.command;var B=a.veType;a=_.D8(function(X){B&&VU(X,B())});
var I=_.$_(function(){B&&z7(B());N&&_.K().resolve(_.zU).resolveCommand(N())});
return _.k("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.k("button",{el:a,class:"ytdThumbnailOverlayButtonButton",title:W,"aria-label":w,"on:click":I},_.k(_.P$,{icon:Z})))},"Kf");var j09=["en-CA","en","es-MX","fr-CA"];var LGa=_.xQ(function(a){var W=_.Qn(a,{isOverlay:!1}),w=W.captionIconType,Z=W.onClick;a=W.ariaLabel;var N=W.ariaPressed,B=W.isOverlay;W=_.D8(function(v){VU(v,127299)});
var I=_.$_(function(v){z7(127299);Z==null||Z(v);return!1}),X={};
return _.k("ytm-closed-captioning-button",{class:_.W$("ytmClosedCaptioningButtonHost",(X.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return w()===-1&&B()},X.ytmClosedCaptioningButtonIconDisabled=function(){return w()===-1&&!B()},X))},_.k("button",{el:W,
class:"ytmClosedCaptioningButtonButton",title:a,"aria-label":a,"aria-pressed":N,"on:click":I},_.k(_.P$,{icon:function(){var v="";var U=_.gS().get("hl");U=!U||j09.includes(U)?"CLOSED_CAPTION":"SUBTITLES";var O=w();switch(O){case -1:case 0:v=U;break;case 1:v=U+"_FILLED";break;default:_.l9(O)}return v}})))},"Lf");
LGa.idomCompat={callbacks:{onClick:!0}};var mD="";var Jwi=_.xQ(function(a){var W=a.playerControlsProps,w=a.onClickFn;a=_.XT(function(){var B=W(),I=-1;B.captionsAvailable&&(I=B.captionsEnabled?1:0);return I},void 0,"WecR8e");
var Z=_.XT(function(){var B=W();return B.captionsAvailable?_.P_(B.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.P_("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),N=_.XT(function(){var B=W();
B=B.captionsAvailable?B.captionsEnabled:void 0;return B},void 0,"Q17ly");
return _.k("yt-closed-captions-toggle-button",null,_.k(LGa,{captionIconType:a,ariaLabel:Z,ariaPressed:N,onClick:function(B){var I=W();if(I.captionsAvailable){var X=I.playerApi;if(X){var v=I.playerApi;if(v){var U=mD;if(U){v=v.getOption("captions","track");var O;mD=(O=v?v.displayName:null)!=null?O:U}else v.getOptions("captions")?(U=qTn(v),mD=U.length?(O=Qvz(U))?O.displayName:U[0].displayName:""):mD=""}xqz(X);_.r("mweb_disable_set_state_captions_killswitch")&&I.setState({captionsEnabled:!I.captionsEnabled})}}var S,
T;(T=(S=I.appApi).showCaptionsToggleToast)==null||T.call(S,I);w==null||w(B)},
isOverlay:!0}))},"Mf");var FG9=_.xQ(function(a){var W=a.data;return _.k("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.k(_.z9,{data:function(){return{type:16,text:_.jpm(W().label)}}}))},"Nf");var MgD=_.xQ(function(a){var W=_.W$("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 _.k("animated-seek-arrows",{class:_.W$("ytPlayerControlsAnimatedSeekArrowsHost")},_.k("span",{class:W}),_.k("span",{class:W}),_.k("span",{class:W}))},"Of");
MgD.idomCompat=!0;var R8E=_.xQ(function(){var a=_.P_("PLAYER_SECONDS",{seconds_placeholder:"30"}),W=_.l(_.$1(!1,void 0,"Yj8msb")),w=W.next().value,Z=W.next().value,N=_.l(_.$1(!1,void 0,"r9Z50e"));W=N.next().value;var B=N.next().value;N={};var I=_.W$("jumpForwardOverlayOverlay",(N.jumpForwardOverlayOverlayHidden=W,N));_.AS(function(){var X=null,v=null,U=function(){X!==null&&_.n4().cancelJob(X);v!==null&&_.n4().cancelJob(v);B(!0);Z(!0);_.mY(_.n4(),function(){B(!1)});
X=_.mY(_.n4(),function(){B(!0);v=_.mY(_.n4(),function(){Z(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",U);_.Ao(function(){window.removeEventListener("jump-forward-clicked",U)})});
return _.k("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.k(_.Y,{cond:w,then:function(){return _.k("div",{class:I},_.k(MgD,{direction:1,size:"large"}),_.k("div",null,a))}}))},"Pf");var Bj0=_.u4.MUTE_VOLUME,$k0=_.u4.UNMUTE_VOLUME,qwK=_.xQ(function(a){var W=a.muteIconType;var w=a.onClick;var Z=a.useOutlineIcon;a=_.D8(function(I){VU(I,28662)});
var N=function(){return lTk(W(),Z==null?void 0:Z()).ariaLabel},B=_.$_(function(I){z7(28662);
w==null||w(I);return!1});
return _.k("ytm-mute-button",{class:"ytmMuteButtonHost"},_.k("button",{el:a,class:"ytmMuteButtonButton",title:N,"aria-label":N,"on:click":B},_.k("span",null,_.k(_.P$,{icon:function(){return lTk(W(),Z==null?void 0:Z()).iconName}}))))},"Qf");var Q0n=_.xQ(function(a){var W=a.volumeProps;var w=a.onClickFn;var Z=a.useOutlineIcon;return _.k("yt-mute-toggle-button",null,_.k(qwK,{muteIconType:function(){var N=W(),B=!_.r("mweb_treat_zero_volume_as_muted_killswitch")&&N.volume===0;return N.volumeMuted||B?0:1},
onClick:function(N){var B=W().playerApi;B&&(B.isMuted()?B.unMute():B.mute(!1));w==null||w(N)},
useOutlineIcon:function(){return!(Z==null||!Z())}}))},"Rf");
Q0n.idomCompat=!0;var xY0=_.xQ(function(a){var W=a.data;var w=_.D8();a=_.$_(function(){w.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.k("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:w,"on:animationend":a},_.k(_.ot,{command:function(){return W().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.k(_.Y,{cond:function(){var Z;return(Z=W().icon)==null?void 0:Z.iconType},
then:function(){return _.k("span",null,_.k(_.P$,{icon:function(){var Z;return(Z=W().icon)==null?void 0:Z.iconType}}))}}),_.k("div",{class:"ytmPaidContentOverlayText"},_.k(_.k_,{text:function(){return W().text}})),_.k(_.Y,{cond:function(){return W().navigationEndpoint},
then:function(){return _.k(_.P$,{icon:"CHEVRON_RIGHT"})}})))},"Sf");
xY0.idomCompat=!0;var ITK=[].concat(_.K8([{register:function(a){var W=Yik(a),w;(w=a().playerApi)==null||w.addEventListener("onVolumeChange",W);return function(){}}},
{register:function(a){var W=TjE(a);a=a().playerApi;a==null||a.addEventListener("captionschanged",W);a==null||a.addEventListener("captionssettingschanged",W);a==null||a.addEventListener("onCaptionsTrackListChanged",W);return function(){}}},
{register:function(a){if(!_.r("mweb_screenreader_accessible_player"))return function(){};
var W=K$k(a),w=document.querySelector("video");w==null||w.addEventListener("touchend",W);return function(){w==null||w.removeEventListener("touchend",W)}}},
{register:function(a){if(!_.r("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var W=K$k(a),w=document.querySelector("video");w==null||w.addEventListener("focus",W);return function(){w==null||w.removeEventListener("focus",W)}}}]),[{register:function(a){var W=kvD(a),w;
(w=a().playerApi)==null||w.addEventListener("onStateChange",W);return function(){}}},
{register:function(a){var W=Ukf(a),w;(w=a().playerApi)==null||w.addEventListener("onPlaybackRateChange",W);return function(){}}},
{register:function(a){var W=OaK(a),w;(w=a().playerApi)==null||w.addEventListener("onVideoDataChange",W);return function(){}}},
{register:function(a){var W=SiX(a),w,Z;(w=a())==null||(Z=w.playerApi)==null||Z.addEventListener("onVideoProgress",W);return function(){}}}]);var b3D=_.xQ(function(a){var W=a.data;var w=function(){return _.P_("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+W().playbackRate})};
return _.k(_.Y,{cond:function(){return W().playbackRate&&W().playbackRate!==1},
then:function(){return _.k("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.k("div",{class:"ytPlaybackRateOverlayOverlay"},_.k(MgD,{direction:1,size:"small"}),_.k("div",{class:"ytPlaybackRateOverlayLabel"},w)))}})},"Tf");var s0f=_.xQ(function(a){var W=a.data;return _.k("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.k(_.Y,{cond:function(){var w,Z=(w=W())==null?void 0:w.playerResponse,N;return Z==null?void 0:(N=Z.paidContentOverlay)==null?void 0:N.paidContentOverlayRenderer},
then:function(w){return _.k(xY0,{data:w})}}))},"Vf"),uQX=_.xQ(function(a){var W=a.props;
var w=a.data;var Z=a.options;var N=function(){var U,O,S,T;return(U=w())==null?void 0:(O=U.playerResponse)==null?void 0:(S=O.playerConfig)==null?void 0:(T=S.inlinePlaybackConfig)==null?void 0:T.showAudioControls},B=function(){var U,O;
if(N()&&((U=Z())==null?void 0:(O=U.additionalButton)==null?void 0:O.button)!==void 0){var S,T,p;U=(S=w())==null?void 0:(T=S.playerApi)==null?void 0:(p=T.getSize())==null?void 0:p.height;if(!(U===void 0||U<184)){var h,L;return(h=Z())==null?void 0:(L=h.additionalButton)==null?void 0:L.button}}},I=function(){var U,O;
return(U=Z())==null?void 0:(O=U.additionalButton)==null?void 0:O.thumbnailOverlayButtonRenderers},X=function(){var U,O;
return(U=Z())==null?void 0:(O=U.additionalButton)==null?void 0:O.thumbnailOverlayButtonViewModels},v=function(){var U=[_.k(Q0n,{volumeProps:W}),
_.k(Jwi,{playerControlsProps:W})];B()===1&&U.push(_.k(i32,{playerApi:function(){return W().playerApi}}));
B()===2&&U.push(_.k(cw2,{appApi:function(){return W().appApi}}));
B()===3&&U.push(_.k(e8I,{playerApi:function(){return W().playerApi}}));
var O=I();if(B()===4&&O){O=_.l(O);for(var S=O.next(),T={};!S.done;T={tooltip$jscomp$2:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$54:void 0,command$jscomp$568:void 0},S=O.next()){S=S.value;T.tooltip$jscomp$2=S.tooltip;var p=void 0,h=void 0;T.ariaLabel$jscomp$21=((p=S.accessibility)==null?void 0:(h=p.accessibilityData)==null?void 0:h.label)||T.tooltip$jscomp$2;p=void 0;T.icon$jscomp$54=(p=S.icon)==null?void 0:p.iconType;T.command$jscomp$568=S.command;T.tooltip$jscomp$2&&T.ariaLabel$jscomp$21&&T.icon$jscomp$54&&
U.push(_.k(nqD,{title:function(L){return function(){return L.tooltip$jscomp$2}}(T),
ariaLabel:function(L){return function(){return L.ariaLabel$jscomp$21}}(T),
icon:function(L){return function(){return L.icon$jscomp$54}}(T),
command:function(L){return function(){return L.command$jscomp$568}}(T)}))}}O=X();
if(B()===4&&O)for(O=_.l(O),S=O.next(),T={};!S.done;T={tooltip$jscomp$3:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$55:void 0,command$jscomp$569:void 0},S=O.next())S=S.value,T.tooltip$jscomp$3=S.title,T.ariaLabel$jscomp$22=S.accessibilityText||T.tooltip$jscomp$3,T.icon$jscomp$55=S.iconName,T.command$jscomp$569=_.rJ(S.onTap),T.tooltip$jscomp$3&&T.ariaLabel$jscomp$22&&T.icon$jscomp$55&&U.push(_.k(nqD,{title:function(L){return function(){return L.tooltip$jscomp$3}}(T),
ariaLabel:function(L){return function(){return L.ariaLabel$jscomp$22}}(T),
icon:function(L){return function(){return L.icon$jscomp$55}}(T),
command:function(L){return function(){return L.command$jscomp$569}}(T)}));
return U};
return _.k(_.Y,{cond:N,then:function(){return _.k("div",{class:"ytInlinePlayerControlsTopRightControls"},_.k(_.k6,{each:v},function(U){return _.k("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.k("div",{class:"ytInlinePlayerControlsButtonIcon"},U))}))}})},"Wf"),DYf=_.xQ(function(a){var W=a.props;
var w=a.data;var Z=a.options;a={};a=_.W$("ytInlinePlayerControlsBottomRightControls",(a.ytInlinePlayerControlsBottomRightControlsHidden=function(){var N;return rof(w(),Z())&&((N=Z())==null?void 0:N.insetProgressBar)&&(W().isHovering||W().isDragging)},a));
return _.k("div",{class:a},_.k(Cdk,{data:w}),_.k(_.Y,{cond:function(){var N;return!((N=Z())==null?0:N.hideTimeDisplay)},
then:function(){return _.k(G4n,{props:W,data:w})}}))},"Xf"),Cdk=_.xQ(function(a){var W=a.data;
return _.k(_.Ax,{data:function(){var w;return Zaf((w=W())==null?void 0:w.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:FG9})},"Yf"),G4n=_.xQ(function(a){var W=a.props;
var w=a.data;return _.k(_.Y,{cond:function(){return W().isLive},
then:function(){return _.k(fpz,null)},
else:function(){return _.k(dYD,{props:W,data:w})}})},"Zf"),dYD=_.xQ(function(a){var W=a.props;
var w=a.data;var Z=_.XT(function(){var N;return tQz((N=w())==null?void 0:N.thumbnailOverlays)},void 0,"kUmuA");
return _.k("div",{class:_.W$("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.u4.PLAYER_TIME_ELAPSED+" "+_.vPF(W().playedTime)}},_.k(_.z9,{data:function(){var N=_.vPF(W().videoDuration-W().playedTime);
return Object.assign({},{type:16,text:N},Z())}}))},"$f"),fpz=_.xQ(function(){return _.k("div",{class:_.W$("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.k(_.z9,{data:{type:17,
text:_.u4.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"ag"),mYI=_.xQ(function(a){var W=a.props;
var w=a.data;var Z=a.options;return _.k(_.Y00,{progressBarProps:W,config:function(){var N,B=_.A((N=w())==null?void 0:N.multiMarkersPlayerBar,_.fJV),I;N=((I=Z())==null?0:I.insetProgressBar)?2:1;var X;I=(X=Z())==null?void 0:X.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:N,chapterData:B,isInlinePlayback:!0,doSeekOnClick:I,playheadDotBehavior:I?1:0}}})},"bg");_.Ct(_.xQ(function(a){var W=a.data;var w=a.appApi;var Z=a.options;var N=o1k(W,paD(w));a={};w={};return _.k("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.k("div",{class:_.W$("ytInlinePlayerControlsDarkenedOverlay",(a.ytInlinePlayerControlsDarkenedOverlayShow=function(){return N().isHovering},a))}),_.k(R8E,null),_.k(b3D,{data:N}),_.k(s0f,{data:W}),_.k(h8D,{playerControlsProps:N,
isShortsPage:!1}),_.k("div",{class:_.W$((w.ytInlinePlayerControlsControlsHidden=function(){return N().isDragging},w))},_.k(uQX,{props:N,
data:W,options:Z}),_.k(DYf,{props:N,data:W,options:Z})),_.k(_.Y,{cond:function(){return rof(W(),Z())},
then:function(){return _.k(mYI,{props:N,data:W,options:Z})}}))},"Uf"),"yt-inline-player-controls",{props:{data:_.qR,
appApi:_.ux,options:_.qR}});var Cc=function(){var a=_.u.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$16812_playerPromise=null;a.player=null;a.enableAudioControls=!1;a.hasBeenUnmuted=!1;a.captionsHaveBeenTurnedOff=!1;a.JSC$16812_playerEvents=new Map;a.videoPreviewFetchRequest=null;a.scheduledPreviewEndJobId=null;a.JSC$16812_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};
_.c(Cc,_.u);_.t=Cc.prototype;
_.t.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.r("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"}}}};
_.t.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16812_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16812_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16812_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16812_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.yV(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.yV(this,this.onScroll))};
_.t.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.yV(this,this.onScroll))};
_.t.onPageTypeChange=function(){this.deactivate()};
_.t.onWindowResized=function(){this.deactivate()};
_.t.onCaptionsChanged=function(a){a=!!a.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!a);this.setCaptionSize()};
_.t.setCaptionSize=function(){var a;if(this.active&&!this.captionsHaveBeenTurnedOff&&((a=this.player)==null?0:a.getCaptionWindowContainerId())){var W;(W=this.player)==null||W.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.t.currentPageAllowed=function(){return!this.isWatchPage};
_.t.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var a=this.positionData,W=a.initialTopPosition,w=a.initialHorizontalPosition;_.Hu(this.hostElement,{"--ytd-video-preview-translate-left":a.finalHorizontalPosition-w+"px","--ytd-video-preview-translate-top":a.finalTopPosition-W+"px","--ytd-video-preview-original-top-position":W+"px","--ytd-video-preview-original-horizontal-position":w+"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};
_.t.handleOpenVideoPreviewAction=function(a){var W=this,w;return _.P(function(Z){if(!W.currentPageAllowed())return Z.return(0);W.opts=a;return(w=W.alignVideoPreviewForAnimation(a.thumbnail))?Z.return(W.activate()):Z.return(0)})};
_.t.onMouseLeave=function(a){this.shouldDeactivateOnMouseLeave(a)&&this.deactivate()};
_.t.onScroll=function(){var a,W;((a=this.opts)==null?0:a.isAutoplay)&&((W=this.opts)==null?0:W.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.t.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.hF.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.t.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.t.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Cc.JSC$16811_DEFAULT_CLICK_LOCATION_BEHAVIOR,Cc.JSC$16811_CLICK_LOCATION_ID_MAP)};
_.t.shouldDeactivateOnMouseLeave=function(a){a=a.relatedTarget;if(!a)return!0;var W;return(W=this.opts)!=null&&W.mediaRenderer?!_.di(this.opts.mediaRenderer).contains(a):!0};
_.t.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.t.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$16812_preventProgressSaveTimer=
_.mY(_.hF,function(){a.resetPreventProgressSaveTimer()},1E4);
var W;if((W=this.opts)==null?0:W.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.mY(_.hF,function(){a.hasMultipleVideoPreviews()?a.startPlaybackForNextVideo():a.deactivate()},this.opts.videoPreviewDurationMs);
var w;this.player.setGlobalCrop(((w=this.opts)==null?0:w.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.t.getRoundedCornersSize=function(){var a;if((a=this.opts)==null?0:a.roundedCornersSize){var W;return(W=this.opts)==null?void 0:W.roundedCornersSize}var w;if((w=this.opts)==null?0:w.enableRounding){var Z;if(((Z=this.opts)==null?void 0:Z.thumbnailSize)==="small")return 1;var N;if(((N=this.opts)==null?void 0:N.thumbnailSize)==="medium")return 2;var B;if(((B=this.opts)==null?void 0:B.thumbnailSize)==="large")return 3}return _.r("web_imp_inset_progress_bar")?3:0};
_.t.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.t.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.t.onMediaContainerClick=function(a){this.isShortcutClick(a)||(this.navigateToWatch(a),a.preventDefault(),a.stopPropagation())};
_.t.activate=function(){var a=this,W,w,Z,N,B,I,X,v,U;return _.P(function(O){switch(O.nextAddress){case 1:if(!a.currentPageAllowed())return O.return(0);w=(W=a.videoPreviewData)==null?void 0:W.inlinePlaybackEndpoint;Z=_.Ju.instance;if(!w||!Z)return O.return(0);a.playbackIntentTriggered=!0;((N=a.opts)==null?0:N.mediaRenderer)&&((B=a.opts)==null||!B.isAutoplay)&&wan(a.opts.mediaRenderer,function(){a.deactivate()});
_.DW(a,function(){a.revealPreviewUi()});
I={};_.r("enable_unknown_lact_fix_on_html5")&&(_.K().resolve(_.Y_),I.lact=_.HI());a.videoPreviewFetchRequest=zYz(Z,a.getInlinePlaybackRequestData(a.videoPreviewData),I);_.tq(O,2);return _.g(O,a.videoPreviewFetchRequest,4);case 4:X=O.yieldResult;if(((v=X)==null?void 0:(U=v.playabilityStatus)==null?void 0:U.status)==="OK")return O.return(a.handlePlayerResponse(X));throw Error("Hj");case 2:_.Pb(O),a.deactivate();case 3:return O.return(1)}})};
_.t.getInlinePlaybackRequestData=function(a){var W,w=_.r("web_imp_player_mute_params")?((W=this.opts)==null?void 0:W.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:a.inlinePlaybackEndpoint,startPlaybackInMutedState:w}};
_.t.handlePlayerResponse=function(a){var W=this,w,Z,N,B,I,X,v,U,O,S;return _.P(function(T){if(T.nextAddress==1){w=W.getInlinePlaybackVideoId();if(!(((Z=a)==null?0:(N=Z.videoDetails)==null?0:N.videoId)&&W.currentPageAllowed()&&W.playbackIntentTriggered&&W.opts&&w))return W.deactivate(),T.return(0);if(a.videoDetails.videoId!==w)return T.return(0);W.enableAudioControls=!!((B=a.playerConfig)==null?0:(I=B.inlinePlaybackConfig)==null?0:I.showAudioControls);a.trackingParams=W.getInlinePlaybackTrackingParams();
if(!W.inlinePlayer)return T.return(0);X={};if(U=_.A((v=W.videoPreviewData)==null?void 0:v.inlinePlaybackEndpoint,_.u6))X.watch_endpoint=U;if(W.videoPreviewData){var p,h=(p=_.A(W.videoPreviewData.inlinePlaybackEndpoint,_.u6))==null?void 0:p.startTimeSeconds;h!==void 0&&(a.playerConfig||(a.playerConfig={}),a.playerConfig.playbackStartConfig||(a.playerConfig.playbackStartConfig={}),a.playerConfig.playbackStartConfig.startPosition||(a.playerConfig.playbackStartConfig.startPosition={}),a.playerConfig.playbackStartConfig.startSeconds=
h,a.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(h*1E3))}W.inlinePlayer.loadVideoWithPlayerResponse(a,X);if(W.JSC$16812_playerPromise)return T.jumpTo(2);W.JSC$16812_playerPromise=W.inlinePlayer.getPlayerPromise();return _.g(T,W.JSC$16812_playerPromise,3)}T.nextAddress!=2&&(O=T.yieldResult,O.setInlinePreview(!0),O.setSizeStyle(!1,!0),W.ytPlayerListenerBehavior.listenToPlayerEvents(O,W.JSC$16812_playerEvents),W.player=O,_.E$(W.hostElement,"player-api-ready"));((S=W.opts)==
null?0:S.showPlayerControls)&&W.videoPreviewData&&W.player&&(W.playerControlsData={playerResponse:a,isInlinePlayback:!0,thumbnailOverlays:W.videoPreviewData.thumbnailOverlays,playerApi:W.player},W.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!W.unroundCornersForPlayback,additionalButton:W.getAdditionalButtonType(W.videoPreviewData.thumbnailOverlays)});return T.return(2)})};
_.t.revealPreviewUi=function(){var a=this;this.playbackIntentTriggered&&_.DmC(this,function(){a.hasThumbnailPositionChangedSinceTriggered()||(a.updateActiveState(!0),a.noAnimation=!1)})};
_.t.hasThumbnailPositionChangedSinceTriggered=function(){var a=this.positionData,W=this.getThumbnailPositionData();return(a==null?void 0:a.initialTopPosition)!==(W==null?void 0:W.initialTopPosition)||(a==null?void 0:a.initialHorizontalPosition)!==(W==null?void 0:W.initialHorizontalPosition)};
_.t.getThumbnailPositionData=function(){var a,W;if((W=this.opts)==null||!W.thumbnail)return null;W=this.opts.thumbnail;var w=((a=this.opts)==null?0:a.cropPlayerToFillThumbnailHorizontally)?!1:!0;var Z=W.getBoundingClientRect();a=Z.width;W=Z.height;var N=Z.top+window.scrollY;Z=Z.left+window.scrollX;var B=w?Math.ceil(a):a;w=w?Math.ceil(W):W;var I=a/B;a={initialScale:I,initialTopPosition:N-12*I,finalTopPosition:N-12-(w-W)/2,initialHorizontalPosition:Z-(12+(B-a)/2),finalHorizontalPosition:Z-12-(B-a)/
2,videoPreviewWidth:B,videoPreviewHeight:w};return a};
_.t.updateActiveState=function(a){this.active=a;this.ytdReduxBehavior.dispatch(_.E_({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:a}))};
_.t.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&&(_.hF.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.t.deactivate=function(a){a=a===void 0?{}:a;a=a.resetWatchEndpointStartTime===void 0?!1:a.resetWatchEndpointStartTime;af&&(af.disconnect(),af=null);this.stopPlayer({resetWatchEndpointStartTime:a});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.t.isValidThumbnailOverlayButton=function(a,W){a=a.thumbnailOverlayButtonRenderer;var w;return!!a&&!!a.tooltip&&!((w=a.icon)==null||!w.iconType)&&W.includes(a.icon.iconType)};
_.t.isValidThumbnailOverlayButtonViewModel=function(a,W){var w;a=_.A((w=a.thumbnailOverlayButtonViewModel)==null?void 0:w.overlayButton,_.hx);return!!a&&!!a.title&&!!a.iconName&&W.includes(a.iconName)};
_.t.getAdditionalButtonType=function(a){var W=this;if(_.r("web_imp_fastforward_button"))return{button:1};if(_.r("web_imp_miniplayer_button"))return{button:2};if(_.r("web_imp_playback_speed_button"))return{button:3};var w=["AUTO_AWESOME"],Z=(a||[]).filter(function(B){return W.isValidThumbnailOverlayButton(B,w)}).map(function(B){return B.thumbnailOverlayButtonRenderer});
if(Z.length)return{button:4,thumbnailOverlayButtonRenderers:Z};var N=["AUTO_AWESOME"];a=(a||[]).filter(function(B){return W.isValidThumbnailOverlayButtonViewModel(B,N)}).map(function(B){return _.A(B.thumbnailOverlayButtonViewModel.overlayButton,_.hx)});
if(a.length)return{button:4,thumbnailOverlayButtonViewModels:a}};
_.t.allowCaptions=function(){var a;return!((a=this.opts)==null?0:a.forceCaptionsOff)};
_.t.allowUnmuting=function(){var a;return this.enableAudioControls&&!((a=this.opts)==null?0:a.forceMutedVolume)};
_.t.beginStartTimeUpdater=function(){var a=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Zp(function(){a.updateWatchEndpointStartTime()},1E3)};
_.t.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.t.resetPreventProgressSaveTimer=function(){this.JSC$16812_preventProgressSaveTimer!==null&&(_.hF.cancelJob(this.JSC$16812_preventProgressSaveTimer),this.JSC$16812_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.t.updateWatchEndpointStartTime=function(a){var W=this.videoPreviewData;if(this.player&&W!=null&&W.inlinePlaybackEndpoint&&!this.JSC$16812_preventProgressSaveTimer){a=a?0:Math.floor(this.player.getCurrentTime());var w=_.A(W.navigationEndpoint,_.u6);w&&(w.startTimeSeconds=a);if(W=_.A(W.inlinePlaybackEndpoint,_.u6))W.startTimeSeconds=a}};
_.t.isShortcutClick=function(a){return!!a&&(a.ctrlKey||a.shiftKey||a.metaKey)};
_.t.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.t.openInMiniplayer=function(){var a=this,W,w;return _.P(function(Z){if(Z.nextAddress==1){w=(W=a.videoPreviewData)==null?void 0:W.navigationEndpoint;if(!w)return Z.return();_.vE().lockupActivation=!0;return _.g(Z,_.Cse(_.K().resolve(_.bV),w),2)}_.vE().userActivation=!0;_.Xd(Z)})};
_.t.navigateToWatch=function(a){var W,w=(W=this.videoPreviewData)==null?void 0:W.navigationEndpoint;if(w){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(w,a,!0);else{if(_.r("web_thumbnail_to_watch_transition")){var Z,N;(Z=this.opts)==null||(N=Z.onNavigateToWatchCallback)==null||N.call(Z)}_.E$(this.hostElement,"yt-navigate",{endpoint:w})}this.deactivate()}};
_.t.getInlinePlaybackVideoId=function(){var a,W;return(W=_.A((a=this.videoPreviewData)==null?void 0:a.inlinePlaybackEndpoint,_.u6))==null?void 0:W.videoId};
_.t.getInlinePlaybackTrackingParams=function(){var a,W;return(a=this.videoPreviewData)==null?void 0:(W=a.inlinePlaybackEndpoint)==null?void 0:W.clickTrackingParams};
_.t.hasMultipleVideoPreviews=function(){var a;return!!(((a=this.opts)==null?0:a.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.t.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())};
_.dU.Object.defineProperties(Cc.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 W;return(W=this.opts)==null?void 0:W.videoPreviewData[this.videoPreviewDataIndex]}var w;return(w=this.opts)==null?void 0:w.videoPreviewData}}});
Cc.prototype.onIsAdsVideoChange=Cc.prototype.onIsAdsVideoChange;Cc.prototype.onInlinePreviewIsEnabledChange=Cc.prototype.onInlinePreviewIsEnabledChange;Cc.prototype.optsChanged=Cc.prototype.optsChanged;Cc.prototype.onMouseLeave=Cc.prototype.onMouseLeave;Cc.JSC$16811_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);Cc.JSC$16811_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"}];
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Cc.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],Cc.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Cc.prototype,"componentBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Cc.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.m7.YtSparklesClickLocationBehavior),_.z("design:type",Object)],Cc.prototype,"ytSparklesClickLocationBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Cc.prototype,"opts",void 0);_.f([_.b(),_.z("design:type",Object)],Cc.prototype,"playerControlsData",void 0);
_.f([_.b(),_.z("design:type",Object)],Cc.prototype,"playerControlsAppApi",void 0);_.f([_.b(),_.z("design:type",Object)],Cc.prototype,"playerControlsOptions",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Cc.prototype,"noAnimation",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Cc.prototype,"hidden",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Cc.prototype,"active",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Cc.prototype,"playing",void 0);_.f([_.b({selector:_.LFH}),_.z("design:type",Boolean)],Cc.prototype,"inlinePreviewIsEnabled",void 0);_.f([_.b(),_.z("design:type",String)],Cc.prototype,"pagePath",void 0);_.f([_.b({selector:_.i8}),_.z("design:type",Boolean)],Cc.prototype,"isWatchPage",void 0);_.f([_.Q("videoPreviewData"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cc.prototype,"thumbnailData",null);
_.f([_.Q("opts","active"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cc.prototype,"hidePlayerControls",null);_.f([_.Q("opts"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cc.prototype,"isAdsVideo",null);_.f([_.Q("opts"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cc.prototype,"roundedCornersSmall",null);
_.f([_.Q("opts"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cc.prototype,"roundedCornersMedium",null);_.f([_.Q("opts"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cc.prototype,"roundedCornersLarge",null);_.f([_.Q("opts"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cc.prototype,"unroundCornersForPlayback",null);
_.f([_.Q("opts","videoPreviewDataIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cc.prototype,"videoPreviewData",null);_.f([_.b(),_.z("design:type",Object)],Cc.prototype,"videoPreviewDataIndex",void 0);_.f([_.w$("#inline-player"),_.z("design:type",Object)],Cc.prototype,"inlinePlayer",void 0);_.f([_.E6("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[MouseEvent]),_.z("design:returntype")],Cc.prototype,"onMouseLeave",null);
_.f([_.lO("opts"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cc.prototype,"optsChanged",null);_.f([_.lO("inlinePreviewIsEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cc.prototype,"onInlinePreviewIsEnabledChange",null);_.f([_.a5("isAdsVideo"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cc.prototype,"onIsAdsVideoChange",null);
Cc=_.f([_.C({is:"ytd-video-preview",disableElementRegistration:!0})],Cc);
_.D(Cc,"ytd-video-preview",function(){if(Aw0!==void 0)return Aw0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Aw0=a},{mode:2});
}catch(e){_._DumpException(e)}
try{
var mOK;var Vni;/*

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
*/
_.kQ({_template:function(){if(Vni!==void 0)return Vni;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;mOK===void 0&&(mOK=document.createElement("template"));var Z=mOK;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return Vni=a},
is:"tp-yt-paper-checkbox",behaviors:[_.UmA],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.DW(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var a=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),W="px",w=a.match(/[A-Za-z]+$/);w!==null&&(W=w[0]);a=parseFloat(a);w=8/3*a;W==="px"&&(w=Math.floor(w),w%2!==a%2&&w++);this.updateStyles({"--paper-checkbox-ink-size":w+
W})}})},
_computeCheckboxClass:function(a,W){var w="";a&&(w+="checked ");W&&(w+="invalid");return w},
_computeCheckmarkClass:function(a){return a?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.oBT._createRipple.call(this)}});var zsa=new _.H("radioButtonSurveyOptionRenderer"),H8f=new _.H("checkboxSurveyOptionRenderer");var yqa;var E80;var aZ9=0,J$=function(){var a=_.u.call(this)||this;a.selected=!1;a.isOverlay=!1;a.inputId="toggle-option-"+aZ9;aZ9++;return a};
_.c(J$,_.u);J$.prototype.onTap=function(){_.E$(this.hostElement,"ytd-toggle-option-clicked")};
_.f([_.b(),_.z("design:type",String)],J$.prototype,"label",void 0);_.f([_.b(),_.z("design:type",String)],J$.prototype,"inputId",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],J$.prototype,"selected",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],J$.prototype,"isOverlay",void 0);J$=_.f([_.C({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.z("design:paramtypes",[])],J$);
_.D(J$,"ytd-toggle-option-renderer",function(){if(E80!==void 0)return E80;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return E80=a},{mode:1});var F1=function(){var a=_.u.apply(this,arguments)||this;a.isToggleOption=!1;a.isOverlay=!1;return a};
_.c(F1,_.u);F1.prototype.onTap=function(a){a.preventDefault();this.data&&(a=!this.data.checked,this.set("data.checked",a),_.E$(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:a,value:this.data.value}))};
_.dU.Object.defineProperties(F1.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
F1.prototype.onTap=F1.prototype.onTap;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],F1.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],F1.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],F1.prototype,"isToggleOption",void 0);_.f([_.b(),_.z("design:type",Object)],F1.prototype,"isOverlay",void 0);_.f([_.Q("data.responseText"),_.z("design:type",String),_.z("design:paramtypes",[])],F1.prototype,"label",null);
_.f([_.E6("ytd-toggle-option-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],F1.prototype,"onTap",null);F1=_.f([_.C({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],F1);
_.D(F1,"ytd-checkbox-survey-option-renderer",function(){if(yqa!==void 0)return yqa;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return yqa=a},{mode:1});var WkK;var wh0;var MW=function(){var a=_.u.apply(this,arguments)||this;a.checked=!1;a.isToggleOption=!1;return a};
_.c(MW,_.u);MW.prototype.onTap=function(){this.data&&(this.checked?_.aV(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.aV(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
MW.prototype.onTap=MW.prototype.onTap;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],MW.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],MW.prototype,"checked",void 0);_.f([_.b(),_.z("design:type",Object)],MW.prototype,"isToggleOption",void 0);_.f([_.E6("ytd-toggle-option-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],MW.prototype,"onTap",null);
MW=_.f([_.C({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],MW);
_.D(MW,"ytd-radio-button-survey-option-renderer",function(){if(wh0!==void 0)return wh0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return wh0=a},{mode:1});var RW=function(){var a=_.u.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=_.r("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};
_.c(RW,_.u);_.t=RW.prototype;
_.t.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"}}}}};
_.t.attached=function(){var a=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(w){var Z;if((Z=w[0])!=null&&Z.isIntersecting){_.Nw().reportShown(a.hostElement);var N;(N=a.intersectionObserver)==null||N.unobserve(a.hostElement)}},{rootMargin:"0px",
threshold:.6});var W;(W=this.intersectionObserver)==null||W.observe(this.hostElement)};
_.t.onDarkModeToggledAction=function(a){this.isDarkMode=a};
_.t.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 W;((W=this.data)==null?void 0:W.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var w,Z,N,B;this.darkColorPalette=(w=this.data)==null?void 0:(Z=w.inlineContent)==null?void 0:(N=Z.compactVideoRenderer)==null?void 0:(B=N.thumbnail)==null?
void 0:B.darkColorPalette;var I,X,v,U;this.lightColorPalette=(I=this.data)==null?void 0:(X=I.inlineContent)==null?void 0:(v=X.compactVideoRenderer)==null?void 0:(U=v.thumbnail)==null?void 0:U.lightColorPalette;var O,S;if(((O=this.data)==null?0:(S=O.inlineContent)==null?0:S.compactVideoRenderer)&&this.isShortsStyle){var T,p,h,L;a=_.Dg((T=this.data)==null?void 0:(p=T.inlineContent)==null?void 0:(h=p.compactVideoRenderer)==null?void 0:(L=h.thumbnail)==null?void 0:L.thumbnails);_.Hu(this.hostElement,
{"--yt-background-url":"url("+a+")"})}};
_.t.handleRequestCompletion=function(){this.hostElement.hidden&&_.E$(this.hostElement,"yt-dismissible-item-dismissed")};
_.t.onPopupClosed=function(a){var W;((W=a.detail)==null?void 0:W.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.aV(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.t.handleInlineSurveyRatingSelect=function(a,W){var w=this;this.selectedRatingEndpoint=a;this.followUpSurveyCommand=W;this.expanded=!!a;this.getOptionRenderers().forEach(function(Z,N){w.notifyPath("followUpSurveyCommand.followUpOptions."+N+".checkboxSurveyOptionRenderer.checked");w.set("followUpSurveyCommand.followUpOptions."+N+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),a=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.aV(this.hostElement,"yt-reel-non-video-content-dismissal-command",[a]))};
_.t.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.aV(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var a,W=(a=this.data)==null?void 0:a.dismissalEndpoint;W&&this.ytComponentBehavior.resolveCommand(W)}};
_.t.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.aV(this.hostElement,"yt-close-popup-action"))};
_.t.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(Z){return Z.checked});
if(a.length===0)return;a=a.map(function(Z){return Z.responseEndpoint})}var W=[];
a.forEach(function(Z,N){N!==0&&(Z=_.A(Z,_.F2))&&Z.feedbackToken&&W.push(Z.feedbackToken)});
if(a=a[0]){var w={};W.length>0&&(w.extra_feedback_tokens=W);this.ytComponentBehavior.resolveCommand(a,{form:w})}}};
_.t.getOptionRenderers=function(){var a=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(W){a.isSingleSelect=!!_.A(W,zsa);return a.isSingleSelect?_.A(W,zsa):_.A(W,H8f)}):[]};
_.t.handleInlineSurveyOptionSelect=function(a){a=this.optionSelector.indexOf(a);a!==-1&&this.optionSelector.selectIndex(a)};
_.t.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.t.maybeGetBackgroundColor=function(a){return this.isDarkMode?a.section2Color:a.section3Color};
_.t.colorPaletteChanged=function(){var a=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;a=a&&this.maybeGetBackgroundColor(a);this.dismissibleEl.style.backgroundColor=!a||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.KC(a)};
_.dU.Object.defineProperties(RW.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
RW.prototype.colorPaletteChanged=RW.prototype.colorPaletteChanged;RW.prototype.onPopupClosed=RW.prototype.onPopupClosed;RW.prototype.handleRequestCompletion=RW.prototype.handleRequestCompletion;RW.prototype.dataChanged=RW.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],RW.prototype,"actionHandlerBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],RW.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],RW.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.w$("#follow-up-survey-options"),_.z("design:type",Object)],RW.prototype,"optionSelector",void 0);_.f([_.b(),_.z("design:type",Object)],RW.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],RW.prototype,"disableAnimation",void 0);_.f([_.b(),_.z("design:type",Object)],RW.prototype,"isToggleOption",void 0);_.f([_.b(),_.z("design:type",Object)],RW.prototype,"followUpSurveyCommand",void 0);_.f([_.b(),_.z("design:type",Object)],RW.prototype,"selectedRatingEndpoint",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],RW.prototype,"expanded",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],RW.prototype,"isSlimlineSurveyFollowUp",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],RW.prototype,"isShortsStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],RW.prototype,"styleOverrideAttribute",void 0);_.f([_.b(),_.z("design:type",Boolean)],RW.prototype,"isSingleSelect",void 0);_.f([_.b(),_.z("design:type",Object)],RW.prototype,"isDarkMode",void 0);
_.f([_.b(),_.z("design:type",Object)],RW.prototype,"lightColorPalette",void 0);_.f([_.b(),_.z("design:type",Object)],RW.prototype,"darkColorPalette",void 0);_.f([_.Q("selectedRatingEndpoint","isShortsStyle"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],RW.prototype,"isOptionSelected",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],RW.prototype,"roundedContainer",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],RW.prototype,"improveShortsResponseRate",void 0);_.f([_.w$("#dismissible"),_.z("design:type",HTMLElement)],RW.prototype,"dismissibleEl",void 0);_.f([_.w$("#dismiss-button yt-icon-button"),_.z("design:type",HTMLElement)],RW.prototype,"dismissButtonEl",void 0);_.f([_.w$("#inline-survey-header yt-icon-button"),_.z("design:type",HTMLElement)],RW.prototype,"inlineHeaderDismissButtonEl",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RW.prototype,"dataChanged",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RW.prototype,"handleRequestCompletion",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],RW.prototype,"onPopupClosed",null);
_.f([_.a5("darkColorPalette","lightColorPalette","isDarkMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RW.prototype,"colorPaletteChanged",null);RW=_.f([_.C({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],RW);
_.D(RW,"ytd-inline-survey-renderer",function(){if(WkK!==void 0)return WkK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return WkK=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Ubn,O5K,SC0;Ubn=function(a){return _.r("kevlar_watch_cinematics_invisible")||a.fullscreen&&_.r("kevlar_watch_cinematics_invisible_in_fullscreen")||a.theater&&!a.fullscreen&&_.r("kevlar_watch_cinematics_invisible_in_theater")};
O5K=function(){var a=document.createElement("canvas"),W=a.getContext("2d");if(!W)throw Error("Wl");_.RN(a,{position:"absolute",width:"100%",height:"100%"});return{element:a,context:W}};
SC0=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.r("kevlar_watch_cinematics_css_blur")};
_.YCI=function(a,W,w){return Math.abs(a-W)<=(w||1E-6)};
_.Tcz=function(a,W){return a==W?!0:a&&W?a.width==W.width&&a.height==W.height:!1};_.Kt9=new _.H("notificationActionRenderer");var pWD=function(a){var W=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.wi;this.element.addEventListener("load",function(){W.loaded=!0;W.resolver.resolve(W.element)});
this.element.addEventListener("error",function(){W.failed=!0});
this.element.src=a};var rOX=function(a,W){this.image=a;this.frame=W};
rOX.prototype.drawToCanvas=function(a,W){var w=this.frame.width/this.frame.columns,Z=this.frame.height/this.frame.rows,N=W.offsetX,B=W.offsetY;Ubn(W)?(a.fillStyle=W.fullscreen?"#000":"#0f0f0f",a.fillRect(N,B,(W==null?void 0:W.width)||w,(W==null?void 0:W.height)||Z)):a.drawImage(this.image,this.frame.column*w,this.frame.row*Z,w,Z,N,B,(W==null?void 0:W.width)||w,(W==null?void 0:W.height)||Z)};
var AOD=function(a){this.color=a};
AOD.prototype.drawToCanvas=function(a,W){var w=W.offsetX,Z=W.offsetY,N=W.width,B=W.height;a.fillStyle=Ubn(W)?W.fullscreen?"#000":"#0f0f0f":this.color;a.fillRect(w,Z,N,B)};var Ez=function(a,W){_.my.call(this);this.playerApi=W;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Bh(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();h19(this,a);i5X(this);this.update()};
_.c(Ez,_.my);Ez.prototype.addEventListeners=function(){var a=this,W=function(){a.update()},w=function(N){a.paused||(N.type==="newdata"&&(a.mosaics.clear(),cOI(a),aG(a)),i5X(a),a.update())},Z=function(){a.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",W);this.playerApi.addEventListener("onVideoDataChange",w);this.playerApi.addEventListener("onStateChange",Z);this.addOnDisposeCallback(function(){a.playerApi.removeEventListener("onVideoProgress",W);a.playerApi.removeEventListener("onVideoDataChange",w);a.playerApi.removeEventListener("onStateChange",Z)})};
var h19=function(a,W){a.cinematicContainerRenderer!==W&&(a.cinematicContainerRenderer=W,cOI(a),aG(a),a.colorStoreUpdateJobId=_.hF.addLowPriorityJob(function(){var w;if((w=a.cinematicContainerRenderer.colorStore)!=null&&w.sampledColors){w=Infinity;for(var Z=_.l(a.cinematicContainerRenderer.colorStore.sampledColors),N=Z.next();!N.done;N=Z.next()){N=N.value;var B=Number(N.key);B!==0&&B<w&&(w=B);B=_.pC(N.value);a.colorStore.set(N.key,B)}a.colorStoreTimeInterval=w}}))},cOI=function(a){a.colorStoreUpdateJobId&&
(_.hF.cancelJob(a.colorStoreUpdateJobId),a.colorStoreUpdateJobId=void 0);
a.colorStore.clear();a.currentStoryboardColor=void 0},e1E=function(a,W){var w;
return(w=a.getStoryboardFrame(W))==null?void 0:w.url};
Ez.prototype.onPlayerStateChange=function(){this.update()};
Ez.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var i5X=function(a){var W=a.getStoryboardFrame(0);W&&(W=new _.Bh(W.width/W.columns,W.height/W.rows),_.Tcz(a.currentStoryboardSize,W)||(a.currentStoryboardSize=W,a.publish("STORYBOARD_SIZE_CHANGED",a.currentStoryboardSize)))},n09=function(a,W){a.currentStoryboardIndex=W;
a.pendingStoryboardIndex=NaN;W=a.getStoryboardFrame(a.currentStoryboardIndex);a.currentStoryboard=new rOX(a.mosaics.get(W.url).element,W);a.publish("STORYBOARD_CHANGED",a.currentStoryboard);a.lastUpdateTime=(0,_.mG)()};
Ez.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var aG=function(a){a.currentStoryboardIndex=NaN;a.pendingStoryboardIndex=NaN;a.currentStoryboard&&(a.currentStoryboard=void 0,a.publish("STORYBOARD_CHANGED",void 0));a.lastUpdateTime=NaN};
Ez.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)aG(this);else{var a=this.playerApi.getPlayerState(1);if(a===-1||a===5||a===0)aG(this);else if(isNaN(this.lastUpdateTime)||!((0,_.mG)()<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 W=this.colorStore.get(a);W?W!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=W,this.currentStoryboard=new AOD(W),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.mG)()):(_.jJ(new _.Uw("Could not find color for timestamp: "+a,this.cinematicContainerRenderer)),aG(this))}else aG(this);else jFD(this,a)}};
var jFD=function(a,W){var w=a.getStoryboardFrameIndex(W);if(w!==a.currentStoryboardIndex&&w!==a.pendingStoryboardIndex){W=e1E(a,w);var Z=a.mosaics.get(W);Z?Z.loaded&&n09(a,w):(a.pendingStoryboardIndex=w,w=new pWD(W),a.mosaics.set(W,w),w.resolver.promise.then(function(){if(!a.isDisposed()&&!a.paused&&!isNaN(a.pendingStoryboardIndex)){var N=e1E(a,a.pendingStoryboardIndex);if(N){var B;(B=a.mosaics.get(N))!=null&&B.loaded&&n09(a,a.pendingStoryboardIndex)}else aG(a)}}))}};
Ez.prototype.getStoryboardFrameIndex=function(a){var W=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(a,W)};
Ez.prototype.getStoryboardFrame=function(a){var W=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,w,Z;return((Z=(w=this.playerApi).getStoryboardFrame)==null?void 0:Z.call(w,a,W))||null};
Ez.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var wA=function(a,W,w,Z){Z=Z===void 0?!1:Z;_.OW.call(this);this.cinematicContainerRenderer=W;this.playerApi=w;this.theater=this.fullscreen=!1;var N;this.ambientLightThemeEnabled=!Z&&!!(W==null?0:(N=W.config)==null?0:N.enableInLightTheme);this.ambientFullscreenEnabled=Z&&_.r("web_cinematic_fullscreen");this.container=document.createElement("div");a.appendChild(this.container);var B;if(_.r("web_cinematic_theater_mode")||_.r("web_cinematic_fullscreen")||(W==null?0:(B=W.config)==null?0:B.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);LtI(this);a=this.ambientV2Container||this.container;this.backCanvas=O5K();this.frontCanvas=O5K();a.appendChild(this.backCanvas.element);a.appendChild(this.frontCanvas.element);this.storyboardManager=new Ez(W,this.playerApi);_.$3(this,this.storyboardManager);this.addEventListeners();JOI(this)?FtX(this,100+Wr(this)*3*2,100+Wr(this)*3*2):MC0(this);R12(this,this.storyboardManager.currentStoryboard)};
_.c(wA,_.OW);var LtI=function(a){a.ambientV2Container?qCf(a):(_.RN(a.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+QFI(a)+", "+xbk(a)+")"}),SC0()&&_.RN(a.container,"filter","blur("+_.yv("cinematic_watch_css_filter_blur_strength",40)+"px)"))},qCf=function(a){if(a.ambientV2Container){var W=a.playerApi.getVideoAspectRatio();
_.RN(a.container,{"aspect-ratio":""+W,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.RN(a.ambientV2Container,{"aspect-ratio":""+W,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+QFI(a)+", "+xbk(a)+")"});SC0()&&_.RN(a.ambientV2Container,"filter","blur("+_.yv("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
wA.prototype.setFullscreen=function(a,W){this.fullscreen=a;this.theater=!!W;LtI(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),a=this.storyboardManager.currentStoryboard,b5K(this),a&&sFD(this,a)};
wA.prototype.addEventListeners=function(){var a=this,W=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(N){R12(a,N)}),w=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){MC0(a)});
this.addOnDisposeCallback(function(){a.storyboardManager.unsubscribeByKey(W);a.storyboardManager.unsubscribeByKey(w)});
if(this.ambientV2Container){var Z=function(){qCf(a)};
this.playerApi.addEventListener("onVideoDataChange",Z);this.addOnDisposeCallback(function(){a.playerApi.removeEventListener("onVideoDataChange",Z)})}};
var MC0=function(a){if(!JOI(a)){var W=a.storyboardManager.currentStoryboardSize;isNaN(W.width)||isNaN(W.height)||FtX(a,Number(W.width)+Wr(a)*3*2,Number(W.height)+Wr(a)*3*2)}},FtX=function(a,W,w){a.backCanvas.element.width=W;
a.backCanvas.element.height=w;a.frontCanvas.element.width=W;a.frontCanvas.element.height=w},JOI=function(a){return a.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},R12=function(a,W,w){w=w===void 0?!1:w;
var Z=a.frontCanvas.element.getAnimations()[0];Z?(Z.pause(),a.backCanvas.context.globalAlpha=Number(getComputedStyle(a.frontCanvas.element).opacity),a.frontCanvas.element.style.opacity="0",Z.finish()):a.backCanvas.context.globalAlpha=1;a.backCanvas.context.drawImage(a.frontCanvas.element,0,0,a.backCanvas.element.width,a.backCanvas.element.height);b5K(a);W&&sFD(a,W);W=W?a.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.yv("cinematic_watch_fade_out_duration",500);Z=_.yv("cinematic_watch_transition_frame_rate")/
1E3;var N={};Z&&(N={easing:"steps("+Math.round(W*Z)+")"});(w===void 0?0:w)||a.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:W,iterations:1},N));a.frontCanvas.element.style.opacity="1"},b5K=function(a){var W=a.ambientLightThemeEnabled,w=a.ambientLightThemeEnabled||a.ambientFullscreenEnabled&&!_.r("web_cinematic_fullscreen_v2");
a.frontCanvas.context.fillStyle=a.theater&&W||a.fullscreen&&w?"#000":"#0f0f0f";SC0()||(a.frontCanvas.context.filter="blur(0)");a.frontCanvas.context.fillRect(0,0,a.frontCanvas.element.width,a.frontCanvas.element.height)},sFD=function(a,W){SC0()||(a.frontCanvas.context.filter="blur("+Wr(a)+"px)");
a.frontCanvas.context.globalAlpha=_.yv("cinematic_watch_effect_opacity",.4);var w={offsetX:Wr(a)*3,offsetY:Wr(a)*3,theater:a.theater,fullscreen:a.fullscreen};JOI(a)&&(w.width=100,w.height=100);W.drawToCanvas(a.frontCanvas.context,w);a.frontCanvas.context.globalAlpha=1},Wr=function(a){var W;
return(W=a.cinematicContainerRenderer.config.blurStrength)!=null?W:5},QFI=function(a){var W,w;
if((a.fullscreen||a.theater)&&((W=a.cinematicContainerRenderer.config)==null?0:(w=W.watchFullscreenConfig)==null?0:w.colorSourceWidthMultiplier))return a.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var Z;return(Z=a.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?Z:a.cinematicContainerRenderer.config.colorSourceSizeMultiplier},xbk=function(a){var W,w;
if((a.fullscreen||a.theater)&&((W=a.cinematicContainerRenderer.config)==null?0:(w=W.watchFullscreenConfig)==null?0:w.colorSourceHeightMultiplier))return a.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var Z;return(Z=a.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?Z:a.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
wA.prototype.disposeInternal=function(){_.OW.prototype.disposeInternal.call(this);this.container.remove()};
wA.prototype.clear=function(){R12(this,void 0,!0)};
wA.prototype.pause=function(){this.storyboardManager.pause()};var uFd;uFd=_.Y2(function(){var a,W,w=!((W=(a=document.createElement("canvas")).getContext)==null||!W.call(a,"2d")),Z;a=!((Z=CSS)==null||!Z.supports("filter: blur(0)"));Z=!!Element.prototype.animate&&!!Element.prototype.getAnimations;W=_.r("web_cinematic_fullscreen")||_.r("web_cinematic_theater_mode")||_.r("web_cinematic_light_theme")||!1;var N;return w&&a&&Z&&(!W||!((N=CSS)==null||!N.supports("aspect-ratio: 1 / 1")))});
_.Z_=function(a,W){_.my.call(this);this.container=a;this.playerApi=W;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=CXX(this);this.update()};
_.c(_.Z_,_.my);_.GoD=function(a){var W=document.documentElement.hasAttribute("dark");a.isDarkModeEnabled=W;a.update()};
_.Dbk=function(a,W){a.settingEnabled=W;a.update()};
_.Z_.prototype.setFullscreen=function(a,W){this.fullscreen=a;this.theater=!!W;this.update()};
_.fzE=function(a,W){a.cinematicContainerRenderer=W;a.cinematicContainerRenderer&&(a.cinematicsVe=_.Ob(a.isShorts()?227858:159022),_.tc(_.$J(),a.cinematicsVe),a.loggingClientData={watchCinematicContainerData:{presentationStyle:a.cinematicContainerRenderer.presentationStyle}});a.update()};
_.Z_.prototype.isShorts=function(){var a,W;return((a=this.cinematicContainerRenderer)==null?void 0:(W=a.config)==null?void 0:W.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Z_.prototype.isAllowed=function(){var a;if(a=uFd()){var W,w,Z;a=((w=this.cinematicContainerRenderer)==null?void 0:w.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((Z=this.cinematicContainerRenderer)==null||!Z.colorStore)||((W=this.cinematicContainerRenderer)==null?void 0:W.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(a)if(_.r("web_cinematics_pausing")){var N,B;a=this.isDarkModeEnabled||!!((N=this.cinematicContainerRenderer)==
null?0:(B=N.config)==null?0:B.enableInLightTheme)}else{var I,X;N=!!((I=this.cinematicContainerRenderer)==null?0:(X=I.config)==null?0:X.enableInLightTheme)&&(_.LF("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);a=this.isDarkModeEnabled||N}if(I=a){var v,U;I=!((U=(v=this.prefersReducedMotionQuery)==null?void 0:v.matches)!=null&&U)}return I};
_.dbn=function(a){(a=a.currentCinematicEffect)!=null&&(a=a.storyboardManager,a.paused=!1,i5X(a),a.update())};
_.Z_.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var CXX=function(a){if(!_.r("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var W=window.matchMedia("(prefers-reduced-motion: reduce)"),w=function(){a.update()};
W.addListener(w);a.addOnDisposeCallback(function(){W.removeListener(w)});
return W}};
_.Z_.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 wA(this.container,a,this.playerApi,this.isDarkModeEnabled),_.$3(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var W=this.currentCinematicEffect;W.cinematicContainerRenderer!==
a&&(W.cinematicContainerRenderer=a,h19(W.storyboardManager,a),LtI(W));a=_.gS();_.oV(0,194,!0);a.save();a=_.nS();this.cinematicsVe&&a&&_.Qw(a,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(a=_.nS(),this.cinematicsVe&&a&&_.x7(a,[this.cinematicsVe],!1,this.loggingClientData),_.d3(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.dU.Object.defineProperties(_.Z_.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var fkI;var dpk;_.kQ({_template:function(){if(dpk!==void 0)return dpk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=
a.content,w=W.insertBefore;fkI===void 0&&(fkI=document.createElement("template"));var Z=fkI;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return dpk=a},
is:"tp-yt-iron-pages",behaviors:[_.eG,_.jK],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var q70;_.Qfa=function(){if(_.r("kevlar_home_skeleton")&&!q70){var a=document.querySelector("#home-page-skeleton");a&&(_.Ak("hgcr"),_.Xh(a),q70=!0)}};
q70=!1;_.Ya=new _.H("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var qG0,QWD,xWi,bZI,sW0,u1f,DW0,dWD,mWk,fxX,CZX,G70,HZX,y$k;_.RUz=function(a,W,w){W=W===void 0?5:W;if(W!==0){var Z=typeof a==="function"?a():document.querySelector(a);Z?(w==null?0:w.enableSmartFocus)?_.l7E(Z):Z.focus():setTimeout(function(){_.RUz(a,W-1,w)},500)}};
qG0=function(a){return _.IHm(_.lHx(a&16777215))<.5};
QWD=function(a,W,w){var Z=w.minimumRowsOfVideosBetweenSections===void 0?1:w.minimumRowsOfVideosBetweenSections;return a<(w.minimumRowsOfVideosAtStart===void 0?2:w.minimumRowsOfVideosAtStart)||W!==null&&a-W<=Z?!1:!0};
xWi=function(a,W){var w=0,Z=0;a=_.l(a);for(var N=a.next();!N.done;N=a.next()){var B=N.value;if(B.richItemRenderer)B.richItemRenderer.rowIndex=Z,B.richItemRenderer.colIndex=w++,w===W&&(w=0,Z++);else if(B.richGroupRenderer&&B.richGroupRenderer.numColumns!==void 0)B.richGroupRenderer.rowIndex=Z,B.richGroupRenderer.colIndex=w,w+=B.richGroupRenderer.numColumns,w===W&&(w=0,Z++);else if(B.richSectionRenderer){var I=N=void 0;if(B=_.A((N=B)==null?void 0:(I=N.richSectionRenderer)==null?void 0:I.content,_.TDE))B.rowIndex=
Z++}}};
bZI=function(a,W){var w=W.contentElement;W=W.rendererToTagNameMap;if(w&&W&&W.size!==0){for(var Z=new Map,N=_.l(w.children),B=N.next();!B.done;B=N.next()){B=B.value;var I=B.tagName.toLowerCase(),X=Z.get(I);X||(X=[],Z.set(I,X));X.push(B)}if(Z.size!==0)for(N=Math.min(a.length,w.children.length),B=new Map,I=0;I<N;I++){X=Object.keys(a[I])[0];X=W.get(X);if(!X)break;var v=B.get(X);v===void 0&&(v=0,B.set(X,v));var U=Z.get(X);if(!U||v>=U.length)break;B.set(X,v+1);X=U[v];v=w.children[I];v!==X&&(_.veH=!0,_.gex.set(X,
!0),w.insertBefore(X,v),_.gex.delete(X),_.veH=!1)}}};
sW0=function(a,W,w,Z,N,B,I){Z=Z===void 0?{}:Z;if(!a||!a.length)return[];a=a.slice();var X=[],v=[];N=null;for(var U=0,O=function(x){v.sort(function(d,ZD){return ZD.skippedOnRow-d.skippedOnRow});
for(var G,V=(G=v.shift())==null?void 0:G.content;V;)!V.richSectionRenderer&&x||X.push(V),G=void 0,V=(G=v.shift())==null?void 0:G.content},S=[];a.length>0||v.length>0;){for(var T=[],p=W;p>0;){var h=void 0,L=void 0,F=(L=v[0]&&v[0].skippedOnRow<U?(h=v.shift())==null?void 0:h.content:void 0)!=null?L:a.shift();
if(!F)break;if(F.richItemRenderer)h=F.richItemRenderer.targetId,L=void 0,h&&((L=I)==null?0:L.has(h))&&S.push(I.get(h)),T.push(F),p--;else if(F.richGroupRenderer&&F.richGroupRenderer.numColumns!==void 0)F.richGroupRenderer.numColumns<=p?(T.push(F),p-=F.richGroupRenderer.numColumns):p===W&&F.richGroupRenderer.numColumns>W?(T.push({richGroupRenderer:Object.assign({},F.richGroupRenderer,{numColumns:W})}),p=0):v.push({content:F,skippedOnRow:U});else if(F.richSectionRenderer)if(QWD(U,N,Z)&&p===W){X.push(F);
N=U;U++;continue}else v.push({content:F,skippedOnRow:U});else if(F.continuationItemRenderer){O(!0);X.push(F);p=0;break}if(p===0)X.push.apply(X,_.K8(T));else if(!w&&a.length===0){O(!1);X.push.apply(X,_.K8(T));p=0;break}}U++;S=_.l(S);for(T=S.next();!T.done;T=S.next())X.push(T.value),U++;S=[]}xWi(X,W);B&&bZI(X,B);return X};
u1f=function(a){return a.talkToRecs};
DW0=function(a,W){if(W){var w=_.Cx().getState().entities.flowStateEntity,Z=CZX(a),N=[W];Z&&Z!==W&&N.push(Z);var B=!0,I;if(w&&a.flowStateEntityKey&&((I=w[a.flowStateEntityKey])==null?void 0:I.primaryButtonDisabled)!==void 0){var X;B=!((X=w[a.flowStateEntityKey])==null||!X.primaryButtonDisabled)}G70(a,Z!=null?Z:W,N,B)}};
dWD=function(a){return _.oX(_.Cx(),function(W){return W.entities.flowStateEntity},function(W,w){if(a.flowStateEntityKey){var Z,N=W==null?void 0:(Z=W[a.flowStateEntityKey])==null?void 0:Z.currentStepId,B;
w=w==null?void 0:(B=w[a.flowStateEntityKey])==null?void 0:B.currentStepId;B=_.Cx().getState().talkToRecs;if(N&&N!==w){var I;W=(W==null?void 0:(I=W[a.flowStateEntityKey])==null?void 0:I.stepIdStack)||Object.keys(B.stepStates);I=!fxX(B==null?void 0:B.stepStates[N]);G70(a,N,W,I)}}})};
mWk=function(a){return _.oX(_.Cx(),u1f,function(W){var w=CZX(a);if(w){var Z=Object.keys(W.stepStates);W=!fxX(W==null?void 0:W.stepStates[w]);G70(a,w,Z,W)}})};
fxX=function(a){var W=Object.keys((a==null?void 0:a.selectionStates)||{}).reduce(function(B,I){return B||(a==null?void 0:a.selectionStates[I].isSelected)},!1),w,Z,N=!!(a==null?0:(w=a.userQuery)==null?0:(Z=w.userQuery)==null?0:Z.trim());
return W||N};
CZX=function(a){if(a.flowStateEntityKey){var W,w,Z=(W=_.Cx().getState().entities.flowStateEntity)==null?void 0:(w=W[a.flowStateEntityKey])==null?void 0:w.currentStepId;if(Z)return Z}};
G70=function(a,W,w,Z){_.Cx().dispatch(_.oL("flowStateEntity",a.flowStateEntityKey,{currentStepId:W,stepIdStack:w,key:a.flowStateEntityKey,primaryButtonDisabled:Z}))};
_.Vzn=function(a,W){return _.tG(a.entities,"youchatPendingResponseEntity",W)};
_.zUX=function(a){return function(W){_.R5(_.oL("youchatPendingResponseEntity",a,{entityKey:a,isPendingResponse:W}))}};
HZX=function(a){a==null||a.addEventListener("DOMLoaded",function(){a.goToAndPlay(a.totalFrames-48,!0)})};var ELX;_.kQ({_template:function(){if(ELX!==void 0)return ELX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
var W=a.content,w=W.insertBefore;y$k===void 0&&(y$k=document.createElement("template"));var Z=y$k;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return ELX=a},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var ani=new _.H("talkToRecsFlowRenderer");var Wyk=new _.H("flowRootRenderer");var w8E=new _.H("chipsShelfViewModel");var Zcf=new _.H("horizontalShelfViewModel");_.NVa=new _.H("engagementPanelSectionListRenderer");var to2=new _.H("conversationResourceViewModel");var $UD=function(){this.horizontal=!1},BV0=function(a,W){a.horizontal=W};
$UD.prototype.position=function(a,W,w,Z){Z=Z===void 0?1:Z;a=this.delta(a)*Z+W;Z=Math.max(W,w);return a>=Math.min(W,w)&&a<=Z?a:w};
$UD.prototype.axis=function(a){a=this.direction(a);return a==="up"||a==="down"?"Y":"X"};var tB=function(a,W,w){W=W===void 0?_.tb():W;this.target=a;this.manager=W;this.touchAction=w;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
tB.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(_.K8(this.events)));for(var a=_.l(this.events),W=a.next();!W.done;W=a.next())this.listen(W.value)}};
tB.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.K8(this.events)));for(var a=_.l(this.events),W=a.next();!W.done;W=a.next())this.unlisten(W.value)}};
tB.prototype.listen=function(a){this.eventMap[a]&&this.target.addEventListener(a,this.eventMap[a])};
tB.prototype.unlisten=function(a){this.eventMap[a]&&this.target.removeEventListener(a,this.eventMap[a])};var $a=function(){$UD.apply(this,arguments)};
_.c($a,$UD);$a.prototype.direction=function(a){var W=a.detail;a=W.deltaY;W=W.deltaX;return a&&!this.horizontal?a>0?"down":"up":W&&this.horizontal?W>0?"right":"left":"none"};
$a.prototype.distance=function(a){return Math.abs(this.delta(a))};
$a.prototype.delta=function(a){var W=this.direction(a),w=a.detail;a=w.deltaX;w=w.deltaY;return W==="up"||W==="down"?w||0:a||0};
$a.prototype.velocity=function(a){var W=this.direction(a),w=a.detail;a=w.velocityX;w=w.velocityY;return Math.abs(W==="up"||W==="down"?w||0:a||0)};_.Bf=function(a,W,w,Z,N,B){N=N===void 0?new $a:N;B=B===void 0?_.tb():B;tB.call(this,W,B,Z);var I=this;this.element=a;this.target=W;this.config=w;this.input=N;this.manager=B;this.events=["panstart","panmove","panend"];this.onPanStart=function(){I.config.draggingClass&&I.element.classList.add(I.config.draggingClass);I.config.startAction&&I.config.startAction()};
this.onPanMove=function(X){var v=lnK(I,X);if(v){I.move(X,v);v.fade&&I.fade(X,v);var U=I.input.direction(X);v.moveAction&&v.moveAction(InE(I,X,v),U)}};
this.onPanEnd=function(X){var v,U,O,S,T,p;return _.P(function(h){if(h.nextAddress==1){I.animationRequestId&&cancelAnimationFrame(I.animationRequestId);I.animationRequestId=void 0;v=lnK(I,X);if(!v)return h.return();U=v;O=U.triggerAction;S=U.fade;T=U.disableFinish;p=U.translateBack;var L=I.input.velocity(X),F=I.input.distance(X),x=I.threshold(v);return L>.3&&F>10||F>x?T?h.jumpTo(6):S?_.g(h,P4D(I,X),6):_.g(h,X8d(I,X,v),6):p?_.g(h,I.translateBack(X),3):h.jumpTo(3)}h.nextAddress!=3&&O&&O();I.config.draggingClass&&
I.element.classList.remove(I.config.draggingClass);I.reset();_.Xd(h)})};
a=Object.keys(w.triggers);this.directions=new Set(a);BV0(this.input,this.directions.has("right")||this.directions.has("left"))};
_.c(_.Bf,tB);_.Bf.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var lnK=function(a,W){W=a.input.direction(W);return a.config.triggers[W]};
_.Bf.prototype.move=function(a,W){var w=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var Z=w.input.axis(a),N=w.input.position(a,w.config.startPosition,W.endPosition,W.moveRatio||1);w.element.style.transform="translate"+Z+"("+N+"px)";w.animationRequestId=void 0}))};
var InE=function(a,W,w){var Z=w.moveRatio||1;w=Math.abs(a.config.startPosition-w.endPosition);return Math.min(a.input.distance(W)*Z,w)/w};
_.Bf.prototype.fade=function(a,W){var w=W.endOpacity;a=InE(this,a,W);a>0&&(this.element.style.opacity=""+(((w||0)-1)*a+1))};
_.Bf.prototype.threshold=function(a){return a.threshold?a.threshold:Math.abs(a.endPosition-this.config.startPosition)/3};
var X8d=function(a,W,w){var Z,N,B,I,X,v,U;return _.P(function(O){if(O.nextAddress==1)return Z=a.input.delta(W)+a.config.startPosition,N=a.input.axis(W),B=w,I=B.endPosition,X=B.transitionEndPosition,U=(v=X)!=null?v:I,_.g(O,a.element.animate([{transform:"translate"+N+"("+Z+"px)"},{transform:"translate"+N+"("+U+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);a.element.style.transform="translate"+N+"("+U+"px)";_.Xd(O)})};
_.Bf.prototype.translateBack=function(a){var W=this,w,Z;return _.P(function(N){if(N.nextAddress==1){if(!W.element.style.transform)return N.return();w=W.input.axis(a);Z=W.config.startPosition;return _.g(N,W.element.animate([{transform:W.element.style.transform},{transform:"translate"+w+"("+Z+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}W.element.style.transform="translate"+w+"("+Z+"px)";_.Xd(N)})};
var P4D=function(a,W){var w,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return w=a.input.delta(W)+a.config.startPosition,Z=a.input.axis(W),N=w+70,B=a.element.style.opacity===""?1:a.element.style.opacity,_.g(I,a.element.animate([{transform:"translate"+Z+"("+w+"px)",opacity:B},{transform:"translate"+Z+"("+N+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);a.element.style.transform="translate"+Z+"("+N+"px)";a.element.style.opacity="0";_.Xd(I)})};var ly=function(){var a=_.Nt.apply(this,arguments)||this;a._noAccessors=!0;a.scrollRate=3;a.autoScrollAnimationStart=0;a.autoScrollPaused=!1;a.autoScrollRafId=0;return a};
_.c(ly,_.Nt);_.t=ly.prototype;_.t.created=function(){var a=this;this.boundAutoScrollHandler=function(W){a.autoScroll(W)}};
_.t.detached=function(){this.hostElement.removeEventListener("mouseout",_.yV(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.yV(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.yV(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.t.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.yV(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.yV(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.yV(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.yV(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.yV(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.yV(this,this.endAutoScroll)),this.endAutoScroll())};
_.t.autoScroll=function(a){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=a);var W;if(W=!this.autoScrollPaused&&this.scrollTarget)W=this.scrollTarget,W=W.scrollHeight-W.scrollTop!==W.clientHeight;W&&(W=1E3/this.scrollRate,a-=this.autoScrollAnimationStart,a>W&&(this.scrollTarget.scrollTop+=Math.ceil(a/W),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.t.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.t.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
ly.prototype.autoScrollEnabledChanged=ly.prototype.autoScrollEnabledChanged;_.f([_.b(),_.z("design:type",Object)],ly.prototype,"scrollRate",void 0);_.f([_.b(),_.z("design:type",Object)],ly.prototype,"scrollTarget",void 0);_.f([_.b(),_.z("design:type",Boolean)],ly.prototype,"autoScrollEnabled",void 0);_.f([_.a5("autoScrollEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ly.prototype,"autoScrollEnabledChanged",null);ly=_.f([_.BA()],ly);_.vAk=[ly.prototype];var gAi;var Io=function(){var a=_.u.apply(this,arguments)||this;a.buttonUpdate=_.r("web_button_rework");a.dismissButtonOverrides=_.r("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};
_.c(Io,_.u);_.t=Io.prototype;_.t.computeUrlImg=function(a){if(a)return _.Dg(a.thumbnails)};
_.t.getLogoHeight=function(a){return this.logoWithPadding(a)?"31":"24"};
_.t.getLogoClassName=function(a){return this.logoWithPadding(a)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.t.logoWithPadding=function(a){var W,w;return(a=(W=a.thumbnails)==null?void 0:(w=W[0])==null?void 0:w.height)&&a%31===0?!0:!1};
_.t.sendImpressionEndpoints=function(a){a.impressionEndpoints&&_.Z9(this.hostElement,a.impressionEndpoints)};
_.t.observeBasicPalette=function(){var a,W,w=(a=this.data)==null?void 0:(W=a.colorData)==null?void 0:W.basicColorPaletteData;w?_.Tw(this.hostElement,w):_.Tw(this.hostElement,{})};
_.t.observeDataChanged=function(){var a;this.dynamicTextHeight=((a=this.data)==null?0:a.supplementalText)?74:94;var W;this.hasSupplementalText=!((W=this.data)==null||!W.supplementalText);if(_.r("web_button_rework")){var w,Z,N,B;a=(w=this.data)==null?void 0:(Z=w.actionButton)==null?void 0:(N=Z.buttonRenderer)==null?void 0:(B=N.colorData)==null?void 0:B.basicColorPaletteData;var I,X,v;if(!((I=this.data)==null?0:(X=I.actionButton)==null?0:(v=X.buttonRenderer)==null?0:v.style)&&a){this.computeIsInfeedModernization(this.data)||
(a.borderColor=a.foregroundTitleColor);var U,O;this.set("data.actionButton.buttonRenderer",_.T5.unsafeClone((U=this.data)==null?void 0:(O=U.actionButton)==null?void 0:O.buttonRenderer))}}};
_.t.observeDataForCounterfactual=function(){if(_.r("kevlar_banner_cf_extra_logging")){var a;((a=this.data)==null?0:a.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.t.computeSupplementalStyle=function(){var a;if((a=this.data)!=null&&a.supplementalText){var W,w,Z;if((W=this.data)==null?0:(w=W.colorData)==null?0:(Z=w.basicColorPaletteData)==null?0:Z.foregroundActivatedColor)return a=_.KC(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;"}};
_.t.computeForcedDarkTheme=function(){var a,W,w,Z=(a=this.data)==null?void 0:(W=a.actionButton)==null?void 0:(w=W.buttonRenderer)==null?void 0:w.style,N,B,I;a=qG0(((N=this.data)==null?void 0:(B=N.colorData)==null?void 0:(I=B.basicColorPaletteData)==null?void 0:I.backgroundColor)||0);return Z&&a};
_.t.computeForcedLightTheme=function(){var a,W,w,Z=(a=this.data)==null?void 0:(W=a.actionButton)==null?void 0:(w=W.buttonRenderer)==null?void 0:w.style,N,B,I;a=!qG0(((N=this.data)==null?void 0:(B=N.colorData)==null?void 0:(I=B.basicColorPaletteData)==null?void 0:I.backgroundColor)||0);return Z&&a};
_.t.computeHasOverflowButton=function(a){return!!a.overflowButton};
_.t.computeHasTitle=function(a){return!!a.title};
_.t.computeTitleMaxFontSize=function(a){return this.computeHasOverflowButton(a)?28:64};
_.t.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.t.computeIsInfeedModernization=function(){var a,W,w,Z,N=(a=this.data)==null?void 0:(W=a.actionButton)==null?void 0:(w=W.buttonRenderer)==null?void 0:(Z=w.colorData)==null?void 0:Z.basicColorPaletteData;return(N==null?void 0:N.backgroundColor)===452984831||(N==null?void 0:N.backgroundColor)===218103808};
Io.prototype.observeDataForCounterfactual=Io.prototype.observeDataForCounterfactual;Io.prototype.observeDataChanged=Io.prototype.observeDataChanged;Io.prototype.observeBasicPalette=Io.prototype.observeBasicPalette;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],Io.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],Io.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Io.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Io.prototype,"buttonUpdate",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Io.prototype,"hasSupplementalText",void 0);_.f([_.b(),_.z("design:type",Object)],Io.prototype,"dismissButtonOverrides",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.z("design:type",Boolean)],Io.prototype,"hasTitle",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.z("design:type",Object)],Io.prototype,"forceDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.z("design:type",Object)],Io.prototype,"forceLightTheme",void 0);_.f([_.b(),_.z("design:type",Object)],Io.prototype,"dynamicTextHeight",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.z("design:type",Object)],Io.prototype,"hasOverflowButton",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.z("design:type",Object)],Io.prototype,"isInfeedModernization",void 0);_.f([_.a5("data.colorData.basicColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Io.prototype,"observeBasicPalette",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Io.prototype,"observeDataChanged",null);_.f([_.a5("data.isVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Io.prototype,"observeDataForCounterfactual",null);Io=_.f([_.C({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Io);
_.D(Io,"ytd-banner-promo-renderer",function(){if(gAi!==void 0)return gAi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return gAi=a},{mode:1});var oAK;var kt0;var UU0;var Pf=function(){return _.u.apply(this,arguments)||this};
_.c(Pf,_.u);_.f([_.b(),_.z("design:type",Object)],Pf.prototype,"data",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);Pf=_.f([_.C({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Pf);
_.D(Pf,"ytd-hashtag-grid-tile-renderer",function(){if(UU0!==void 0)return UU0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return UU0=a},{mode:1});var X3=function(){return _.u.apply(this,arguments)||this};
_.c(X3,_.u);X3.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
X3.prototype.updateRichGridTrendingHashtagsVisibility=function(){var a,W;if(((a=this.data)==null||!a.isExpanded)&&(W=this.data)!=null&&W.tiles){a=this.data.tiles.length;W=a>this.richGridItemsPerRow?this.richGridItemsPerRow+1:a;var w=Math.ceil(a/W);this.fullyVisibleRows=a%W===1&&w===2?1:Math.min(w,2);this.isShowMoreVisible=this.fullyVisibleRows<w}};
X3.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
X3.prototype.updateRichGridTrendingHashtagsVisibility=X3.prototype.updateRichGridTrendingHashtagsVisibility;_.f([_.b(),_.z("design:type",Object)],X3.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Number)],X3.prototype,"fullyVisibleRows",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],X3.prototype,"isShowMoreVisible",void 0);_.f([_.b({selector:_.AG,value:0}),_.z("design:type",Number)],X3.prototype,"richGridItemsPerRow",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],X3.prototype,"ytdReduxBehavior",void 0);_.f([_.a5("data","richGridItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X3.prototype,"updateRichGridTrendingHashtagsVisibility",null);
X3=_.f([_.C({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],X3);
_.D(X3,"ytd-hashtag-grid-shelf-renderer",function(){if(kt0!==void 0)return kt0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return kt0=a},{mode:1});var Oc0;var S7k;var vf=function(){var a=_.u.apply(this,arguments)||this;a.visibleVideos=[];a.hiddenVideos=[];a.modern=_.r("web_modern_buttons");a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.c(vf,_.u);_.t=vf.prototype;_.t.attached=function(){var a=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.onDarkModeToggledAction(a)};
_.t.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"}}}};
_.t.dataChanged=function(){var a=this;this.requestElementsPerRow();var W,w;this.currentColorPalette=this.isDarkTheme?(W=this.data)==null?void 0:W.darkColorData:(w=this.data)==null?void 0:w.lightColorData;var Z;if((Z=this.currentColorPalette)==null?0:Z.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.DW(this,function(){a.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.t.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.t.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.t.computeIsFirstFeedItem=function(a){return a};
_.t.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a);this.data&&(this.currentColorPalette=a?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.t.getCurrentLogo=function(a,W){if(a)return W?a.darkLogoImage:a.lightLogoImage};
_.t.computeTitleStyle=function(a){var W;if((W=this.data)!=null&&W.title&&a&&a.textPrimary!==void 0)return"color:"+_.KC(a.textPrimary)+";"};
_.t.computeSubtitleStyle=function(a){var W;if((W=this.data)!=null&&W.subtitle&&a&&a.textSecondary!==void 0)return"color:"+_.KC(a.textSecondary)+";"};
_.t.computeDismissIconStyle=function(a){if(this.data&&this.data.dismissButton&&a&&a.textPrimary!==void 0)return"--yt-button-color:"+_.KC(a.textPrimary)+";"};
_.t.computeOverflowButtonStyle=function(a){if(this.data&&this.data.overflowButton&&a&&a.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.KC(a.textPrimary)+";--yt-spec-icon-active-other:"+_.KC(a.textPrimary)+";"};
_.t.computeBackgroundStyle=function(a){if(a&&this.data){var W="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var w=_.Dg((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);w&&(W+='background-image:url("'+w+'");')}a.backgroundColor!==void 0&&(W+="background-color:"+_.pC(a.backgroundColor)+";");return W}};
_.t.computeButton=function(){var a,W=Object.assign({},_.A((a=this.data)==null?void 0:a.showMoreButton,_.J4));if(this.modern&&W){W.style="STYLE_MONO_OUTLINE";var w;if(a=(w=this.currentColorPalette)==null?void 0:w.textPrimary)W.colorData={basicColorPaletteData:{foregroundTitleColor:a,borderColor:a}}}return W};
_.t.shouldShowBottomButton=function(a,W){return!(a==null?0:a.header)&&!(a==null||!a.primaryButton)&&W<3};
_.t.checkExpanded=function(a){this.isExpanded=a&&a.content?this.hiddenVideos.length===0:!0};
_.t.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.t.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"};
_.t.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"};
_.t.computeHasSectionHeader=function(a){return!!a.header};
_.t.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 W;((W=this.data.dismissButton)==null?0:W.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var w,Z;((w=this.data)==null?0:(Z=w.primaryButton)==null?0:Z.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.t.setVisibleVideos=function(a){if(this.data&&this.data.content)if(this.data.content.length){var W=this.data.content.length;this.data.header?a?(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.slimItemsPerRow),W)):(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow),W)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(W,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow),W)):(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow-1),W))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.t.setHasMovieRenderer=function(){var a;if((a=this.data)!=null&&a.content){var W;this.hasMovieRenderer=!!_.A((W=this.data)==null?void 0:W.content[0],_.zxJ)}else this.hasMovieRenderer=!1};
_.t.requestElementsPerRow=function(){_.E$(this.hostElement,"yt-request-elements-per-row")};
_.t.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var a=_.l(this.hiddenMediaRenderers),W=a.next();!W.done;W=a.next())W.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(a=_.M(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&a.focus()}};
_.t.updateTitleSpec=function(){var a;(a=this.data)!=null&&a.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.t.logoWithPadding=function(a){var W,w,Z;return(a=(W=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(w=W.thumbnails)==null?void 0:(Z=w[0])==null?void 0:Z.height)&&a%31===0?!0:!1};
_.t.onUpdateElementsPerRowAction=function(a,W,w){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a);w&&this.slimItemsPerRow!==w&&(this.slimItemsPerRow=w)};
vf.prototype.slimItemsPerRowChanged=vf.prototype.slimItemsPerRowChanged;vf.prototype.elementsPerRowChanged=vf.prototype.elementsPerRowChanged;vf.prototype.dataChanged=vf.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],vf.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],vf.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],vf.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vf.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],vf.prototype,"currentColorPalette",void 0);_.f([_.b(),_.z("design:type",Array)],vf.prototype,"visibleVideos",void 0);_.f([_.b(),_.z("design:type",Array)],vf.prototype,"hiddenVideos",void 0);
_.f([_.b(),_.z("design:type",Object)],vf.prototype,"primaryButton",void 0);_.f([_.b({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],vf.prototype,"elementsPerRow",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],vf.prototype,"isDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],vf.prototype,"isExpanded",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],vf.prototype,"largeTitle",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],vf.prototype,"hasMovieRenderer",void 0);_.f([_.b(),_.z("design:type",Number)],vf.prototype,"slimItemsPerRow",void 0);_.f([_.b(),_.z("design:type",Boolean)],vf.prototype,"showLightVideoMetadata",void 0);_.f([_.b(),_.z("design:type",Boolean)],vf.prototype,"showDarkVideoMetadata",void 0);_.f([_.b(),_.z("design:type",Number)],vf.prototype,"videoMetadataColor",void 0);
_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],vf.prototype,"miniMode",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.z("design:type",Boolean)],vf.prototype,"isFirstFeedItem",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.z("design:type",Boolean)],vf.prototype,"hasSectionHeader",void 0);
_.f([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],vf.prototype,"roundedContainer",void 0);_.f([_.ZC("#visible-video-container ytd-rich-grid-media"),_.z("design:type",Array)],vf.prototype,"visibleMediaRenderers",void 0);_.f([_.ZC("#hidden-video-container ytd-rich-grid-media"),_.z("design:type",Array)],vf.prototype,"hiddenMediaRenderers",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vf.prototype,"modern",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vf.prototype,"dataChanged",null);_.f([_.a5("elementsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vf.prototype,"elementsPerRowChanged",null);_.f([_.a5("slimItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vf.prototype,"slimItemsPerRowChanged",null);
vf=_.f([_.C({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],vf);
_.D(vf,"ytd-brand-video-shelf-renderer",function(){if(S7k!==void 0)return S7k;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return S7k=a},{mode:1});var Y7i;var gG=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.c(gG,_.u);_.t=gG.prototype;_.t.attached=function(){var a=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.onDarkModeToggledAction(a)};
_.t.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"}}}};
_.t.dataChanged=function(){this.requestElementsPerRow();var a,W;this.currentColorPalette=this.isDarkTheme?(a=this.data)==null?void 0:a.darkColorData:(W=this.data)==null?void 0:W.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.t.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.t.computeIsFirstFeedItem=function(a){return a};
_.t.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())};
_.t.shouldShowThumbnailInMetadata=function(a){return a<=1};
_.t.computeVideoMetadataColor=function(){if(this.data){var a;if((a=this.currentColorPalette)==null?0:a.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.t.computeTitleStyle=function(a){var W;if((W=this.data)!=null&&W.title&&a&&a.textPrimary!==void 0)return"color:"+_.KC(a.textPrimary)+";"};
_.t.computeSubtitleStyle=function(a){var W;if((W=this.data)!=null&&W.subtitle&&a&&a.textSecondary!==void 0)return"color:"+_.KC(a.textSecondary)+";"};
_.t.computeOverflowButtonStyle=function(a){var W;if(this.data&&this.data.overflowButton&&(a==null?0:(W=a.dismissButtonColorData)==null?0:W.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.KC(a.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.KC(a.dismissButtonColorData.foregroundTitleColor)+";"};
_.t.computeBackgroundStyle=function(a){if(a&&this.data){var W="";a.backgroundColor!==void 0&&(W+="background-color:"+_.pC(a.backgroundColor)+";");return W}};
_.t.computeHasOverflowButton=function(a){return!!a.overflowButton};
_.t.updateButtonPalette=function(){if(this.data){var a;if((a=this.data.primaryButton)==null?0:a.buttonRenderer){var W;if((W=this.currentColorPalette)==null?0:W.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var w;((w=this.currentColorPalette)==null?0:w.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)})}}};
_.t.requestElementsPerRow=function(){_.E$(this.hostElement,"yt-request-elements-per-row")};
_.t.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")};
_.t.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
gG.prototype.elementsPerRowChanged=gG.prototype.elementsPerRowChanged;gG.prototype.dataChanged=gG.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],gG.prototype,"ytdDismissibleItemBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],gG.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],gG.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],gG.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],gG.prototype,"currentColorPalette",void 0);_.f([_.b(),_.z("design:type",Object)],gG.prototype,"primaryButton",void 0);
_.f([_.b({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],gG.prototype,"elementsPerRow",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],gG.prototype,"isDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],gG.prototype,"titleSize",void 0);_.f([_.b(),_.z("design:type",Number)],gG.prototype,"videoMetadataColor",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],gG.prototype,"miniMode",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.z("design:type",Boolean)],gG.prototype,"isFirstFeedItem",void 0);_.f([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],gG.prototype,"roundedContainer",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.z("design:type",Boolean)],gG.prototype,"hasOverflowButton",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gG.prototype,"dataChanged",null);_.f([_.a5("elementsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gG.prototype,"elementsPerRowChanged",null);gG=_.f([_.C({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],gG);
_.D(gG,"ytd-brand-video-singleton-renderer",function(){if(Y7i!==void 0)return Y7i;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Y7i=a},{mode:_.Vn("kevlar_poly_si_batch_j070")?1:2});var TVX;var Kyf=_.xQ(function(a){var W=a.data;return _.k(_.qw,{data:function(){return W().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(W().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var w=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":w=88;break a;default:w=88}return w},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return W().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"ei"),rWn=_.xQ(function(a){var W=a.metadataRow;
var w=a.delimiter;return _.k(_.k6,{each:function(){return W().textParts||[]},
keyBy:"INDEX"},function(Z,N){return _.k(_.Ha,null,_.k(_.k_,{text:Z,noWrap:!0,userInput:!0}),_.k(p8I,{delimiter:w,max:function(){return W().textParts.length},
index:N}))})},"fi"),p8I=_.xQ(function(a){var W=a.delimiter;
var w=a.max;var Z=a.index;return _.k(_.Y,{cond:function(){return(W==null?void 0:W())&&w()-1>Z()},
then:function(){return _.k("span",null,W)}})},"gi"),AWX=_.xQ(function(a){var W=a.data;
a={};return _.k("yt-profile-page-header-information-view-model",{class:_.W$("profile-page-header-information-view-model-wiz",(a["profile-page-header-information-view-model-wiz--mobile"]=!1,a))},_.k(_.Y,{cond:function(){return W().onTap},
then:function(){return _.k(_.ot,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.rJ(W().onTap)}},_.k(_.Ax,{data:function(){return W().thumbnail}},{profilePageHeaderThumbnailViewModel:Kyf}))},
else:function(){return _.k("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.k(_.Ax,{data:function(){return W().thumbnail}},{profilePageHeaderThumbnailViewModel:Kyf}))}}),_.k("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.k(_.Y,{cond:function(){return W().onTap},
then:function(){return _.k(_.Ax,{data:function(){return W().title}},{profilePageHeaderTitleViewModel:function(w){var Z=w.data;
return _.k(_.ot,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.rJ(Z().onTap)}},_.k(_.k_,{text:function(){return Z().title}}))}})},
else:function(){return _.k(_.Ax,{data:function(){return W().title}},{profilePageHeaderTitleViewModel:function(w){var Z=w.data;
return _.k(_.k_,{text:function(){return Z().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.k(_.Ax,{data:function(){return W().metadata}},{profilePageHeaderMetadataViewModel:function(w){var Z=w.data;
return _.k(_.Y,{cond:function(){return Z().metadataRows},
then:function(N){return _.k("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.k(_.k6,{each:N,keyBy:"INDEX"},function(B,I){return _.k(_.Ha,null,_.k(rWn,{metadataRow:B,delimiter:" \u2022 "}),_.k(p8I,{delimiter:" \u2022 ",max:function(){return N().length},
index:I}))}))}})}})))},"hi");
AWX.idomCompat=!0;_.Ct(AWX,"yt-profile-page-header-information-view-model",{props:{data:_.qR}});var oo=function(){return _.u.apply(this,arguments)||this};
_.c(oo,_.u);oo.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],oo.prototype,"data",void 0);oo=_.f([_.C({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],oo);
_.D(oo,"ytd-effect-pivot-header-view-model",function(){if(TVX!==void 0)return TVX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return TVX=
a},{mode:1});var hbk;var ka=function(){return _.u.apply(this,arguments)||this};
_.c(ka,_.u);ka.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ka.prototype,"data",void 0);ka=_.f([_.C({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],ka);
_.D(ka,"ytd-source-pivot-header-renderer",function(){if(hbk!==void 0)return hbk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return hbk=a},{mode:1});_.icf=_.xQ(function(a){var W=a.data;a=_.D8();_.Cj(a,function(){return W().rendererContext});
var w=function(){var Z;return _.sB((Z=W())==null?void 0:Z.rendererContext)};
return _.k("content-list-item-view-model",{el:a,class:"ytContentListItemViewModelHost",role:function(){return w()?"listitem":void 0},
tabindex:function(){return w()?0:void 0}},_.k("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.k("div",{class:"ytContentListItemViewModelImageContainer"},_.k(_.Y,{cond:function(){return W().image},
then:function(Z){return _.k(_.qw,{data:Z,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.k(_.Ax,{data:function(){var Z;
return(Z=W())==null?void 0:Z.avatar}},{avatarViewModel:_.c6})),_.k("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.k("div",{class:"ytContentListItemViewModelTitle"},_.k(_.k_,{text:function(){return W().title}})),_.k("div",{class:"ytContentListItemViewModelMetadata"},_.k(_.Ax,{data:function(){return W().metadata}},{contentMetadataViewModel:function(Z){return _.k(_.zFL,{data:Z.data,
layout:1})}})))),_.k("div",{class:"ytContentListItemViewModelActionButton"},_.k(_.Ax,{data:function(){var Z;
return(Z=W())==null?void 0:Z.actionButton}},{buttonViewModel:_.F7,
toggleButtonViewModel:_.ce})))},"ii");_.Ct(_.xQ(function(a){var W={},w={},Z={},N={};return _.k("yt-card-view-model",{class:_.W$("ytCardViewModelHost",a.className,(W.ytCardViewModelOutline=function(){return a.data().cardStyle==="CARD_STYLE_OUTLINE"},W),(w.ytCardViewModelRaised=function(){return a.data().cardStyle==="CARD_STYLE_RAISED"||a.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},w),(Z.ytCardViewModelTonal=function(){return a.data().cardStyle==="CARD_STYLE_TONAL"},Z),(N.ytCardViewModelInverted=function(){return a.data().cardStyle===
"CARD_STYLE_INVERSE"},N))},_.k(_.Ax,{data:function(){return a.data().background}},{cinematicContainerViewModel:function(B){return _.k(_.GjE,{data:B.data})}}),_.k("div",{class:"ytCardViewModelContentWrapper"},_.k(_.Ax,{data:function(){return a.data().content}},{contentListItemViewModel:function(B){return _.k(_.icf,{data:B.data})}})),_.k(_.Ax,{data:function(){return a.data().dismissAction}},{buttonViewModel:function(B){return _.k(_.F7,{data:B.data})}}))},"ji"),"yt-card-view-model",{props:{data:_.qR,
className:_.qR}});_.Ct(_.xQ(function(a){var W=function(){return _.A(a.data().flowRoot,Wyk)};
_.AS(function(){var w=W(),Z=function(){},N=function(){};
if(w){var B,I,X=(I=_.A((B=w.steps)==null?void 0:B[0],_.MQI))==null?void 0:I.stepId;DW0(w,X||"");Z=dWD(w);N=mWk(w)}_.Ao(function(){Z();Z=function(){};
N();N=function(){}})});
return _.k("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.k(_.WcT,{contentId:function(){return a.data().contentId}},function(){return _.k("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.k(_.Y,{cond:W,
then:function(w){return _.k(_.rwE,{data:w})}}))}))},"ki"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.qR}});_.Ct(_.xQ(function(){return _.k("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.k("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.k("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.k(_.Pna,null)),_.k(_.NcH,{data:{rows:1},isExploreHub:!0}))},"li"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Ct(_.xQ(function(a){var W=a.data;var w=a.standardUnitMinWidth;a=_.D8();var Z=_.l((0,_.lzh)(W)),N=Z.next().value,B=Z.next().value,I=function(){var v,U=(v=N())==null?void 0:v.contents;return U==null||U.length===0},X=function(){B(Object.assign({},N(),{contents:[]}))};
_.yz(a,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var v=_.A(W().chipsShelf,w8E);if(v!=null&&v!=null&&v.autoselectChipOnVisible){var U,O,S=_.A(v==null?void 0:(U=v.contents)==null?void 0:U[(O=v.autoselectedChipIndex)!=null?O:0],_.qa);S&&S.tapCommand&&_.cX(S.tapCommand)}}});
return _.k("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:a},_.k(_.WcT,{contentId:function(){return W().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.k("div",null,_.k("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.k(_.Ax,{data:function(){return W().header}},{sectionHeaderViewModel:function(v){return _.k(_.yR,{data:v.data,
disableHorizontalPadding:!0})}})),_.k("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.k(_.Ax,{data:function(){return W().chipsShelf}},{chipsShelfViewModel:function(v){return _.k(_.l1R,{data:v.data,
callback:X,enableSingleChipSelection:!0})}})),_.k("div",null,_.k(_.Y,{cond:I,
then:function(){return _.k("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.k(_.NcH,{data:{rows:1},isExploreHub:!0}))}}),_.k(_.Ax,{data:function(){var v;
return(v=N())==null?void 0:v.contents}},{richShelfRenderer:function(v){return _.k(_.BB6,{data:v.data,
isInnerShelf:!0,standardUnitMinWidth:w})}})))}))},"mi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.qR,
standardUnitMinWidth:_.qR}});var UO=function(){return _.u.apply(this,arguments)||this};
_.c(UO,_.u);
UO.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}}};
UO.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.f([_.R(_.ij),_.z("design:type",Object)],UO.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.j8),_.z("design:type",Object)],UO.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],UO.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Number)],UO.prototype,"standardUnitMinWidth",void 0);UO=_.f([_.C({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],UO);
_.D(UO,"ytd-rich-section-renderer",function(){if(Oc0!==void 0)return Oc0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Oc0=a},{mode:_.Vn("kevlar_poly_si_batch_j029")?
1:2});_.Ct(_.yoK,"yt-profile-identity-info-view-model",{props:{data:_.qR,hideDivider:_.qR}});_.Ct(_.WSe,"yt-page-header-view-model",{props:{data:_.qR,noPadding:_.qR,enableBanner:_.qR,cinematicContainerTopbarOffset:_.qR,allowCinematicContainerOverflow:_.qR,displayAsSidebar:_.qR,displayAsPanel:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;var w=function(){var N;return(N=W().numColumns)!=null?N:2},Z=function(){return w()>1?3:2};
a={};return _.k("ytd-rich-grid-group",{class:_.W$("ytdRichGridGroupHost",(a.ytdRichGridGroupHostFirstColumn=function(){return W().colIndex===0},a)),
style:_.It({"--ytd-rich-grid-group-num-columns":w,"--ytd-rich-grid-items-per-group":Z})},_.k("div",{class:"ytdRichGridGroupContents"},_.k(_.Ax,{data:function(){var N;return(N=W().contents)==null?void 0:N.slice(0,Z())}},{richItemRenderer:function(N){return _.k(_.t_$,{data:N.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ni"),"ytd-rich-grid-group",{props:{data:_.qR}});var OO=function(){var a=_.u.apply(this,arguments)||this;a.resizeOnObserverInit=!1;a.isInlinePreviewDisabled=_.r("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.shouldRenderDownloadsBanner=!1;a.hasOptedIntoSmartDownloads=!1;a.elementsPerRow=4;a.typographyBump=!1;a.showGnomeContents=
!1;a.showExploreHubContents=!1;a.slimItemsPerRow=1;a.pageLoadingFromNavigation=!1;a.loggingRefactor=_.r("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(W){var w=_.l(W);W=w.next().value;w=w.next().value;return[W,w.component]}));
a.insertedContent=new Map;return a};
_.c(OO,_.u);_.t=OO.prototype;_.t.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var a=_.l(_.M(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),W=a.next();!W.done;W=a.next())W.value.useCompactList=this.useCompactList};
_.t.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var a=_.l(_.M(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),W=a.next();!W.done;W=a.next())W=W.value,W.sizing=this.sizing,W.typographyBump=this.typographyBump};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.t.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]]"}}}};
_.t.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}}};
_.t.attached=function(){document.addEventListener("yt-page-type-changed",_.yV(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.yP(this.resizeObserved,_.yv("rich_grid_resize_delay_ms",50),this)};
_.t.detached=function(){var a;(a=this.resizeObserver)==null||a.disconnect();document.removeEventListener("yt-page-type-changed",_.yV(this,this.onPageChange))};
_.t.insertRichSection=function(a){var W=a.richItemTargetId;a=a.richSectionRendererToInsert;W&&a&&(this.insertedContent.set(W,a),this.reflowContent())};
_.t.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.t.computeIsInlinePreviewEnabled=function(a,W,w){return _.r("web_disable_inline_preview")?!1:!w&&_.AoK({miniplayerIsActive:a,miniplayerPlaybackState:W})};
_.t.computeSizing=function(){var a=_.$pe(this.data);if(a||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return a?this.useCompactList?"COMPACT":a:this.miniMode?"COMPACT":_.r("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.t.updateItemMinAndMaxWidth=function(){var a=_.yv("rich_grid_max_item_width",500);a>0&&_.Hu(this.hostElement,{"--ytd-rich-grid-item-max-width":a+"px"});var W;a=this.getRichItemMinWidth((W=this.hostElement)==null?void 0:W.clientWidth);a>0&&_.Hu(this.hostElement,{"--ytd-rich-grid-item-min-width":a+"px"})};
_.t.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.t.resizeObserved=function(){_.W_(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.t.navigateBackToHome=function(){_.r("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.r("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var a=_.K().resolve(_.Gw).isOnWatch(),W,w=((W=_.Bu(location.pathname))==null?void 0:W.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(w)||a)&&this.gnomeContents&&_.r("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);a&&this.exploreHubContents&&_.r("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Cx().dispatch(_.E_({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.t.onPageChange=function(){var a=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.r("disable_chip_select_on_nav")||_.W_(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.hF.addJob(function(){a.pageLoadingFromNavigation=!1;_.r("disable_chip_select_on_nav")&&_.r("h5_reset_cache_and_filter_before_update_masthead")&&a.resetCacheAndIsFilteredFeed();a.setMasthead();a.maybeSetBigYoodle();a.forceRefreshAndLog();a.terminateVideoPreview();_.r("web_hide_gnome_until_user_navigates_back_to_home")&&
(a.dataChanged(),_.DW(a,function(){if(a.showGnomeContents){var W=Array.from(_.M(a.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(Z){Z=_.M(Z).querySelector("ytd-rich-shelf-renderer");return!!Z&&Z.isGnomeShelf()});
if(W){W=W.offsetTop-a.contentsElement.offsetTop;var w=_.K().resolve(_.Gw).getCurrentPage();w&&w.getPageScrollingElement().scrollTo({top:W,behavior:"smooth"})}}}));
_.r("web_hide_explore_hub_until_user_navigates_back_to_home")&&(a.dataChanged(),_.DW(a,function(){if(a.showExploreHubContents&&!_.r("web_explore_hub_no_scroll")){var W=Array.from(_.M(a.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(Z){return!!Z.querySelector("ytd-talk-to-recs-flow-renderer")});
if(W){W=W.offsetTop-a.contentsElement.offsetTop;var w=_.K().resolve(_.Gw).getCurrentPage();w&&w.getPageScrollingElement().scrollTo({top:W,behavior:"smooth"})}}}))},8)):((_.r("web_hide_gnome_until_user_navigates_back_to_home")||_.r("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.t.dataChanged=function(){var a=this,W=_.yv("web_rich_grid_row_margin",0);W>0&&_.Hu(this.hostElement,{"--ytd-rich-grid-row-margin":W+"px"});_.W_(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.DW(this,function(){a.updateRichItemGridPositions();a.contentsElement&&_.Hu(a.hostElement,{"--ytd-rich-grid-content-offset-top":a.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.t.initResizeObserver=function(){var a=this;if(window.ResizeObserver){var W;(W=this.resizeObserver)==null||W.disconnect();var w=!1;this.resizeObserver=new ResizeObserver(function(){if(w){var Z;(Z=a.resizeObserver)==null||Z.disconnect();var N;(N=a.throttledOnResize)==null||N.fire();requestAnimationFrame(function(){var I;(I=a.throttledOnResize)==null||I.fire();a.initResizeObserver()})}else if(w=!0,a.resizeOnObserverInit){var B;
(B=a.throttledOnResize)==null||B.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.t.contentLengthChanged=function(){if(_.r("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.W_(this.hostElement,"ytd-rich-item-index-update-action")};
_.t.updateElementsPerRow=function(){_.W_(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.E_({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.E_({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.t.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.t.onRichShelfRendererCollapse=function(a){if(this.shownItems){var W=a.detail;a=this.shownItems.findIndex(function(Z){var N,B;return((B=_.A(Z==null?void 0:(N=Z.richSectionRenderer)==null?void 0:N.content,_.TDE))==null?void 0:B.trackingParams)===W});
var w=a+1;a<0||w>=this.contentsElement.children.length||!this.shownItems[w].richItemRenderer||this.contentsElement.children[w].scrollIntoView({behavior:"smooth",block:"start"})}};
_.t.onSoftReloadPage=function(){this.scrollUpToTop()};
_.t.handleRerenderDownloadsData=function(){_.r("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.t.handlePlaylistRemoveVideosAction=function(a){var W;if(((W=_.A(a,_.sNl))==null?0:W.setVideoIds)&&this.data&&this.data.contents){a=_.A(a,_.sNl).setVideoIds;for(W=this.data.contents.length-1;W>=0;){var w=_.A(this.data.contents[W],_.iH);(w=w&&_.A(w.content,_.Lz))&&w.setVideoId&&a.includes(w.setVideoId)&&this.splice("data.contents",W,1);W--}this.updateIndices()}};
_.t.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",_.b8(String(a+1)))};
_.t.hasTopRowInlinePlayableVideoWithEndorsement=function(a){var W;return!((W=a.slice(0,this.getItemsPerRow()))==null||!W.some(function(w){var Z;w=_.A(w==null?void 0:(Z=w.richItemRenderer)==null?void 0:Z.content,_.Ma);var N;return(w==null?void 0:w.inlinePlaybackEndpoint)&&(w==null?void 0:(N=w.thumbnailOverlays)==null?void 0:N.some(function(B){return B.thumbnailOverlayEndorsementRenderer}))}))};
_.t.refreshGridLayoutNew=function(a,W,w,Z){var N=Z.postsPerRow;var B=Z.slimItemsPerRow;var I=Z.gameCardsPerRow;Z=Z.miniGameCardsPerRow;var X;if((X=this.data)==null||!X.contents||!this.containerWidth)return!1;var v;if((v=this.data.responsiveContainerConfiguration)==null?0:v.responsiveSize){var U=_.wVv(this.data.responsiveContainerConfiguration,this.containerWidth),O;X=_.VP(Object.assign({},U,{standardUnitMinWidth:(O=this.data)==null?void 0:O.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&U.isCompactList)}else X=_.VP({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=X.typographyBump;O=!1;if(a||this.elementsPerRow!==X.numItems||this.postsPerRow!==N||this.slimItemsPerRow!==B||this.gameCardsPerRow!==
I||this.miniGameCardsPerRow!==Z||this.gutter!==X.gutter)O=this.elementsPerRow!==X.numItems,this.elementsPerRow=X.numItems,this.postsPerRow=N,this.slimItemsPerRow=B,this.gameCardsPerRow=I,this.miniGameCardsPerRow=Z,this.gutter=X.gutter,this.itemWidth=X.itemWidth,this.reflowContent(W),_.Hu(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":X.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(w);this.ytdReduxBehavior.dispatch(_.E_({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:X.maxContainerWidth}));return O};
_.t.refreshGridLayout=function(a,W){var w,Z=(w=this.hostElement)==null?void 0:w.clientWidth;this.containerWidth=this.adjustRichGridWidth(Z,!0);var N;if((N=this.data)==null||!N.contents||!this.containerWidth)return a&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.r("rg_pending_reflow_ks")&&(a=!0,this.pendingForceReflow=!1);w=this.getRichItemMinWidth(Z);var B=this.isShortsPanel?146:194,I=this.getMiniGameCardMinWidth(),X=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
Z=w=this.calcElementsPerRow(w,X);(N=w<=3&&this.miniModeAllowed())&&(w=this.calcElementsPerRow(240,4));var v=this.calcMaxSlimElementsPerRow(w,X,this.isDefaultGrid);X=this.calcElementsPerRow(B,v);var U=this.calcElementsPerRow(this.isCompactGrid?B:154,v);B=this.calcElementsPerRow(this.isCompactGrid?B:I,v);I=!1;if(this.sizing)return this.refreshGridLayoutNew(a,W,N,{postsPerRow:Z,slimItemsPerRow:X,gameCardsPerRow:U,miniGameCardsPerRow:B});if(a||this.elementsPerRow!==w||this.postsPerRow!==Z||this.slimItemsPerRow!==
X||this.gameCardsPerRow!==U||this.miniGameCardsPerRow!==B)I=this.elementsPerRow!==w,this.elementsPerRow=w,this.postsPerRow=Z,this.slimItemsPerRow=X,this.gameCardsPerRow=U,this.miniGameCardsPerRow=B,this.reflowContent(W),this.updateElementsPerRow(),_.Hu(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)&&_.Hu(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(N);_.W_(this.hostElement,"yt-rich-grid-layout-refreshed");return I};
_.t.getRichItemMinWidth=function(a){var W=_.yv("rich_grid_min_item_width",310);if(!_.r("kevlar_disable_min_width_override")){var w,Z;W=(Z=(w=this.data)==null?void 0:w.minItemWidth)!=null?Z:W}return W+_.EF8(a)};
_.t.calcMaxSlimElementsPerRow=function(a,W,w){return(w===void 0?0:w)?a===1?2:a%2===0?_.r("web_shorts_2_by_3_reduce_items_per_row")&&a>=4?a/2*3-1:a/2*3:_.r("web_shorts_2_by_3_reduce_items_per_row")&&a>=3?a+1:a+2:W*2};
_.t.adjustRichGridWidth=function(a,W){var w=_.r("disable_rich_grid_guide_compensation");if(!this.isWatch&&!w){w=_.K().resolve(_.Vv(_.Je));var Z=w==null?void 0:w.guideElement;if(!(!w||w.getData()||Z!=null&&Z.opened||w.getMiniGuideVisible()))if(w.canFitPersistentGuide(a)&&w.getGuideExpandsAutomatically()){var N,B,I=Number((N=window.getComputedStyle(this.hostElement))==null?void 0:(B=N.getPropertyValue("--app-drawer-width"))==null?void 0:B.replace("px",""));a-=I||0}else if(w.canFitMiniGuide(a)){var X;
N=Number((I=window.getComputedStyle(this.hostElement))==null?void 0:(X=I.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:X.replace("px",""));a-=N||0}}a>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(a-=W?32:48));return a};
_.t.calcElementsPerRow=function(a,W){var w=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),Z=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((w+Z)/(a+Z))||1,W)};
_.t.reflowContent=function(a){var W=this;if(!this.isReflowing){this.isReflowing=!0;var w,Z,N=!!((w=this.data)==null?0:(Z=w.contents)==null?0:Z.some(function(p){return _.A(p,_.BN)}));
w=this.getItemsPerRow();var B;Z=(B=this.data)==null?void 0:B.reflowOptions;a&&(_.Ak("rgr_s"),_.DW(this,function(){_.Ak("rgr_nrf")}));
a={};(B=_.M(this.hostElement).querySelector("#contents"))&&(a={contentElement:B,rendererToTagNameMap:this.rendererToTagNameMap});B=(B=this.data.contents)?B.slice():[];var I=(_.r("web_hide_gnome_behind_feed_filter_chip")||_.r("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,X=_.r("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,v=-1,U=-1;if(this.isHomePage&&X){for(X=0;X<B.length;X++){var O=void 0,S=void 0;_.A((O=B[X])==null?void 0:
(S=O.richSectionRenderer)==null?void 0:S.content,ani)&&(U=X)}U>-1&&(this.exploreHubContents=B.splice(U,1))}if(this.isHomePage&&I){for(U=0;U<B.length;U++)S=O=void 0,(X=_.A((O=B[U])==null?void 0:(S=O.richSectionRenderer)==null?void 0:S.content,_.TDE))&&I&&(S=O=void 0,X=_.A((O=X)==null?void 0:(S=O.contents)==null?void 0:S[0],_.iH),O=void 0,_.A((O=X)==null?void 0:O.content,_.py6)&&(v=U));v>-1&&(this.gnomeContents=B.splice(v,1))}var T=sW0(B,w,N,Z,this.getRichGridStyle(),a,this.insertedContent);N=function(){W.shownItems=
T;W.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(T),_.DW(this,N)):N()}};
_.t.getFirstRowItems=function(a){for(var W=[],w=0;w<a.length;w++){var Z=void 0,N=void 0,B=void 0,I=void 0,X=void 0,v=void 0;if(((Z=a[w])==null?void 0:(N=Z.richItemRenderer)==null?void 0:N.rowIndex)===0||((B=a[w])==null?void 0:(I=B.richGroupRenderer)==null?void 0:I.rowIndex)===0||((X=a[w])==null?void 0:(v=X.richSectionRenderer)==null?void 0:v.rowIndex)===0)W.push(a[w]);else break}return W};
_.t.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.t.handleChipCloudChipSelectAction=function(a,W){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.r("web_hide_gnome_behind_feed_filter_chip")&&(W?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.t.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.r("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.t.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.r("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.t.terminateVideoPreview=function(){_.W_(this.hostElement,"yt-terminate-video-preview-action")};
_.t.updateRichItemGridPositions=function(){var a={gridData:{gridColumnCount:this.elementsPerRow}},W;if((W=this.data)==null?0:W.trackingParams)this.loggingRefactor?_.$J().stateChanged(this.data.trackingParams,a):(W=_.nS())&&_.u0(W,_.PX(this.data.trackingParams),a);_.W_(this.hostElement,"ytd-rich-item-index-update-action")};
_.t.miniModeAllowed=function(){return _.r("disable_channels_mini_mode")?!1:this.isChannelPage};
_.t.getMiniGameCardMinWidth=function(){return 154};
_.t.updateMiniMode=function(a){this.miniMode=this.miniModeAllowed()&&a;this.ytdReduxBehavior.dispatch(_.E_({type:"SET_RICH_GRID_MINI_MODE",payload:a}))};
_.t.isCurrentPage=function(){return location.pathname===this.pagePath};
_.t.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var a=_.K().resolve(_.Gw).getCurrentPage();a&&a.setScrollTop(0)}};
_.t.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.t.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.t.maybeSetBigYoodle=function(){var a,W=(a=this.data)==null?void 0:a.bigYoodle;this.bigYoodleData!==W&&(this.bigYoodleData=W)};
_.t.setMasthead=function(){var a;((a=this.data)==null?0:a.masthead)?this.mastheadData=this.data.masthead:_.r("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.t.getRichGridStyle=function(){var a,W;return(W=(a=this.data)==null?void 0:a.style)!=null?W:"RICH_GRID_STYLE_UNKNOWN"};
_.t.onIsShortsGridChange=function(){var a=this.ytdReduxBehavior,W=a.dispatch,w=this.getRichGridStyle();W.call(a,_.E_({type:"SET_RICH_GRID_STYLE",payload:w}))};
_.dU.Object.defineProperties(OO.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=_.K().resolve(_.Gw).getCurrentPage(),W,w,Z;return(((W=this.data)==null?void 0:W.targetId)==="browse-feedFEsfv_audio_pivot"||_.r("web_enable_channel_pivot_panel")&&((w=this.data)==null?void 0:w.targetId)==="browse-feedFEsfv_channel_pivot"||_.r("web_enable_effect_pivot_panel")&&((Z=this.data)==null?void 0:Z.targetId)==="browse-feedFEsfv_effect_pivot")&&(a==null?void 0:a.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.r("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=_.K().resolve(_.Gw).getCurrentPage())==null?void 0:a.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=_.K().resolve(_.Gw).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"&&_.r("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"&&!_.r("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return((a=this.data)==null?0:a.enableContentSpecificAspectRatio)||((W=this.data)==null?0:(w=W.responsiveContainerConfiguration)==null?0:w.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.yv("web_continuation_handler_margin",0):0}}});
OO.prototype.onIsShortsGridChange=OO.prototype.onIsShortsGridChange;OO.prototype.onReloadContinuationFinish=OO.prototype.onReloadContinuationFinish;OO.prototype.reflowContent=OO.prototype.reflowContent;OO.prototype.handleRerenderDownloadsData=OO.prototype.handleRerenderDownloadsData;OO.prototype.onRichShelfRendererCollapse=OO.prototype.onRichShelfRendererCollapse;OO.prototype.onRequestElementsPerRow=OO.prototype.onRequestElementsPerRow;OO.prototype.contentLengthChanged=OO.prototype.contentLengthChanged;
OO.prototype.dataChanged=OO.prototype.dataChanged;OO.prototype.onSizingChange=OO.prototype.onSizingChange;OO.prototype.onUseCompactListChange=OO.prototype.onUseCompactListChange;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.eG),_.z("design:type",Object)],OO.prototype,"ironResizableBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],OO.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.j8),_.z("design:type",Object)],OO.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],OO.prototype,"componentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],OO.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],OO.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],OO.prototype,"miniMode",void 0);_.f([_.b({value:[]}),_.z("design:type",Array)],OO.prototype,"shownItems",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],OO.prototype,"isReflowing",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],OO.prototype,"isFilteredFeed",void 0);_.f([_.b({selector:_.c49}),_.z("design:type",Boolean)],OO.prototype,"guideIsExpanded",void 0);
_.f([_.b({selectorArgs:["entitySelectorType"],selector:function(a,W){if(_.r("kevlar_modern_downloads_page")&&W&&W!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(W){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var w=a.entities;W=_.TC(w);var Z=_.Kx(w),N=_.flF(a),B=_.DaE(a);a=_.da7(a);var I=_.Yjv(w),X=_.kp(W);w=_.px(w);return _.VsC(W,Z,I,N,B,X,w,a);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return W=_.TC(a.entities),_.HLS(W);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return W=
_.kzm(a.entities),_.y57(W);default:_.jJ(new _.Uw("Error: entitySelectorType defined but not matched in selector.",a,W))}}}),
_.z("design:type",Object)],OO.prototype,"entityDrivenRichGridData",void 0);_.f([_.b(),_.z("design:type",Object)],OO.prototype,"resizeOnObserverInit",void 0);_.f([_.b(),_.z("design:type",Object)],OO.prototype,"bigYoodleData",void 0);_.f([_.b(),_.z("design:type",Object)],OO.prototype,"mastheadData",void 0);_.f([_.b(),_.z("design:type",Boolean)],OO.prototype,"isInlinePreviewDisabled",void 0);_.f([_.b(),_.z("design:type",Object)],OO.prototype,"disableStickyFilterBar",void 0);
_.f([_.b(),_.z("design:type",Object)],OO.prototype,"transparentBackgroundChipsBar",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],OO.prototype,"hideChipsBar",void 0);_.f([_.b(),_.z("design:type",Object)],OO.prototype,"isWatchDefaultLayout",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],OO.prototype,"continuationShowButton",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],OO.prototype,"rowReducedHorizontalMargin",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],OO.prototype,"useCompactList",void 0);_.f([_.b({selector:function(a){return _.Kx(a.entities).length>0}}),
_.z("design:type",Object)],OO.prototype,"manualDownloadsPresent",void 0);_.f([_.b({selector:function(a){return _.TC(a.entities).length>0}}),
_.z("design:type",Object)],OO.prototype,"smartDownloadsPresent",void 0);_.f([_.b({selector:_.DaE}),_.z("design:type",Object)],OO.prototype,"shouldRenderDownloadsBanner",void 0);_.f([_.b({selector:_.flF}),_.z("design:type",Object)],OO.prototype,"hasOptedIntoSmartDownloads",void 0);_.f([_.a5("useCompactList"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OO.prototype,"onUseCompactListChange",null);
_.f([_.a5("sizing","typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OO.prototype,"onSizingChange",null);_.f([_.b({selector:_.J4E}),_.z("design:type",Number)],OO.prototype,"miniplayerPlaybackState",void 0);_.f([_.b({selector:_.hG}),_.z("design:type",Boolean)],OO.prototype,"miniplayerIsActive",void 0);
_.f([_.b({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.z("design:type",Boolean)],OO.prototype,"isInlinePreviewEnabled",void 0);_.f([_.b({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.z("design:type",String)],OO.prototype,"sizing",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],OO.prototype,"elementsPerRow",void 0);
_.f([_.b(),_.z("design:type",Object)],OO.prototype,"typographyBump",void 0);_.f([_.b(),_.z("design:type",Number)],OO.prototype,"itemWidth",void 0);_.f([_.w$("#header"),_.z("design:type",HTMLElement)],OO.prototype,"headerElement",void 0);_.f([_.w$("#contents"),_.z("design:type",HTMLElement)],OO.prototype,"contentsElement",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OO.prototype,"dataChanged",null);
_.f([_.lO("data.contents.length"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OO.prototype,"contentLengthChanged",null);_.f([_.E6("yt-request-elements-per-row"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OO.prototype,"onRequestElementsPerRow",null);
_.f([_.E6("yt-rich-shelf-renderer-collapse"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],OO.prototype,"onRichShelfRendererCollapse",null);_.f([_.lO("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OO.prototype,"handleRerenderDownloadsData",null);
_.f([_.Q("data"),_.z("design:type",String),_.z("design:paramtypes",[])],OO.prototype,"entitySelectorType",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"isSub",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"isWatch",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"isShortsPanel",null);_.f([_.b({reflectToAttribute:!0}),_.Q("isWatch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"reducedTopMargin",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data","isWatch","isWatchDefaultLayout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"noTopMargin",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("isInlinePreviewEnabled","shownItems"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"topRowEndorsement",null);_.f([_.Q("data.header"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"hideHeader",null);_.f([_.E6("yt-rich-grid-reflow"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean]),_.z("design:returntype")],OO.prototype,"reflowContent",null);
_.f([_.E6("yt-reload-continuation-finish"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OO.prototype,"onReloadContinuationFinish",null);_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"isSlimGrid",null);_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"isShortsGrid",null);
_.f([_.Q("data","isSlimGrid","isShortsGrid"),_.b(),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"noRichItemGutterMargins",null);_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"isShortsGridSlim",null);_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"isCompactGrid",null);
_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"isDefaultGrid",null);_.f([_.Q("data.targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"hideChipsBarOnHome",null);_.f([_.Q("data.targetId"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"hideChipsBarOnWatch",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OO.prototype,"onIsShortsGridChange",null);_.f([_.Q("data.enableContentSpecificAspectRatio"),_.b(),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OO.prototype,"force16By9ThumbnailAspectRatio",null);_.f([_.Q("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],OO.prototype,"continuationTriggerOffset",null);OO=_.f([_.C({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],OO);
_.D(OO,"ytd-rich-grid-renderer",function(){if(oAK!==void 0)return oAK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return oAK=a},{mode:2});var cWk=_.xQ(function(a){var W=a.thumbsUp;a=a.thumbsDown;var w=_.l(_.$1(!1,void 0,"OxPsH")),Z=w.next().value,N=w.next().value;w=_.l(_.$1(!1,void 0,"V5vWne"));var B=w.next().value,I=w.next().value;return _.k("div",{class:"ytwThumbsUpDownThumbs"},_.k(_.ce,{data:W,onToggle:function(X){N(X);B()&&I(!1)},
buttonShapeOverrides:function(){return{toggled:Z()}}}),_.k(_.ce,{data:a,
onToggle:function(X){I(X);Z()&&N(!1)},
buttonShapeOverrides:function(){return{toggled:B()}}}))},"oi");
cWk.idomCompat=!0;var nA9=_.xQ(function(a){var W=function(){return a.data().pendingStateEntityKey||""},w=_.X7(_.Vzn,W),Z=function(){var N;
if(!(N=a.disabled())){var B;N=!((B=w())==null||!B.isPendingResponse)}return N};
return _.k("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.k(_.k6,{each:function(){return a.data().chipData||[]},
keyBy:"REFERENCE"},function(N){return _.k(ebf,{data:N,disabled:Z,pendingStateKey:W,onError:a.onError})}))},"pi"),ebf=_.xQ(function(a){var W=_.D8(),w=_.l(_.$1(!0,void 0,"HBREAe")),Z=w.next().value,N=w.next().value,B=function(){return a.data().text.content},I=_.$_(function(X){var v,U,O,S,T,p,h,L;
return _.P(function(F){switch(F.nextAddress){case 1:X.stopPropagation();if(a.disabled())return F.return();U=String(Math.floor(((v=_.ZB())==null?void 0:v.getCurrentTime())||0)*1E3);O="youchat-"+Date.now();S=function(){_.AQ(a.data().onClick||{});var x={continuationCommand:{token:a.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},G={inputComposerFormData:{clientMessageId:O,playerOffsetMs:U}};return new Promise(function(V,d){_.AQ(x,{form:{formData:G},commandController:{onSuccess:function(ZD,
aC){V(aC)},
onServerError:function(ZD,aC){d(aC.error)}}})})};
T=_.zUX(a.pendingStateKey());T(!0);_.RUz("#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");N(!1);_.tq(F,2);return _.g(F,S(),4);case 4:_.qY(F,3);break;case 2:p=_.Pb(F),(L=(h=a).onError)==null||L.call(h,p);case 3:T(!1),_.Xd(F)}})});
return _.k(_.Y,{cond:Z,then:function(){return _.k("div",{class:"ytwYouChatChipsDataChipWrapper"},_.k("button",{el:W,class:"ytwYouChatChipsDataChip","data-disabled":a.disabled,"on:click":I,tabindex:0},B))}})},"qi");var jfI=_.xQ(function(a){var W=a.data;return _.k("yt-conversation-resource-view-model",{class:_.W$("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.k(_.Y,{cond:function(){var w;return(w=W().conversationResourceData)==null?void 0:w.learningGuideData},
then:function(w){return _.k(_.k6,{each:function(){return w().sectionData||[]}},function(Z){return _.k("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.k(_.k_,{text:function(){return Z.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.k("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.k(_.k_,{text:function(){return Z.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.k(_.k_,{text:function(){return Z.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"ri");
jfI.idomCompat=!0;var Lyz=_.xQ(function(a){var W=function(){var x;return(x=a.data().text)==null?void 0:x.content},w=function(){var x,G;
return(x=a.data().webData)==null?void 0:(G=x.textResult)==null?void 0:G.content},Z=_.K().resolve(_.Fm),N=_.Ns(),B=function(){return a.data().chatResponseStyle},I=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"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"}}},X=function(){var x;
return a.data().webData||((x=a.data().text)==null?void 0:x.content)||a.data().videoResultsData||a.data().conversationResourceViewModel},v=function(){var x;
return(x=a.data().videoResultsData)==null?void 0:x.videoShelf},U=function(){var x;
return _.A(((x=a.data().videoResultsData)==null?void 0:x.videoShelf)||{},Zcf)},O=function(){var x;
return(x=a.data().webData)==null?void 0:x.sourcesShelf},S=function(){var x;
return _.A(((x=a.data().webData)==null?void 0:x.sourcesShelf)||{},Zcf)},T=function(){return _.A(a.data().conversationResourceViewModel||{},to2)},p=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||B()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:a.data().thumbsDownViewModel&&a.data().thumbsUpViewModel},h=function(){return _.A(a.data().thumbsUpViewModel,_.iK)},L=function(){return _.A(a.data().thumbsDownViewModel,_.iK)};
_.pF(function(){requestAnimationFrame(function(){var x;(x=a.shouldAnimateIcon)!=null&&x.call(a)&&HZX(N.lottieEl)})});
var F={};return _.k("you-chat-item-view-model",{class:_.W$("ytwYouChatItemViewModelYouChatItemViewModel",(F.ytwYouChatItemViewModelHostNoPadding=function(){return!1},F)),
"data-target-id":function(){return a.data().id||""}},_.k(_.Y,{cond:X,
then:function(){var x={};return _.k("div",{"aria-hidden":"true"},_.k(_.w2,{className:_.W$("ytwYouChatItemViewModelIcon",(x.ytwYouChatItemViewModelRtl=Z==="rtl",x.ytwYouChatItemViewModelHidden=function(){return!(a.data().hideIcon||B()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||B()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:X())},x)),
animationName:"YOUCHAT_ICON",data:I,animationRef:N}))}}),_.k(_.Y,{cond:X,
then:function(){var x={};return _.k("div",{class:_.W$("ytwYouChatItemViewModelHost",(x.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},x.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},x.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return B()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},x)),
role:"alert"},_.k(_.Y,{cond:W,then:function(G){return _.k(_.rs,{text:G})}}),_.k(_.Y,{cond:w,
then:function(G){return _.k(_.rs,{text:G})}}),_.k(_.Y,{cond:v,
then:function(){return _.k("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.k(_.pO,{data:U,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.k(_.Y,{cond:O,
then:function(){return _.k("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.k(_.pO,{data:S,hasPeek:!0,disableArrows:!1}))}}),_.k(_.Y,{cond:T,
then:function(){return _.k(jfI,{data:T})}}),_.k(_.Y,{cond:p,
then:function(){return _.k(cWk,{thumbsUp:h,thumbsDown:L})}}))}}),_.k(_.Y,{cond:function(){return a.data().chipsData},
then:function(x){return _.k(nA9,{data:x,disabled:a.pending,onError:a.onError})}}))},"si");
Lyz.idomCompat={callbacks:{onError:!0,onSend:!0}};var JWi=_.xQ(function(a){var W=function(){return a.data().choiceSelectedText};
return _.k("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.k(_.Y,{cond:W,then:function(){return _.k("div",{class:"ytYouChatUserTurnChoiceSelected"},_.k(_.k_,{text:W}))}}),_.k("div",{class:"ytYouChatUserTurnUserMessage"},function(){return a.data().text}))},"ti");var FyX=_.xQ(function(a){var W=_.l((0,_.XW_)(a.data)).next().value;return _.k("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return a.data().targetId||""}},_.k(_.Ax,{data:function(){return a.data().header}},{chipBarViewModel:_.a1V}),_.k(_.Ax,{data:function(){return W().contents}},{accordionViewModel:_.QbR,
alertBannerViewModel:_.BW_,chatLoadingViewModel:_.XI2,chatUserTurnViewModel:JWi,learningJourneyLoaderViewModel:_.FEl,lockupViewModel:_.zn,youChatItemViewModel:function(w){return _.k(Lyz,{data:w.data,pending:!1})}}))},"ui");_.Ct(_.xQ(function(a){var W=_.l((0,_.XW_)(a.data)).next().value;return _.k("yt-section-list-renderer",{class:_.W$("ytSectionListRendererHost",a.className),"data-target-id":function(){return a.data().targetId||""}},_.k(_.Ax,{data:function(){return W().contents}},{itemSectionRenderer:FyX}))},"vi"),"yt-section-list-renderer",{props:{data:_.qR,
className:_.ux}});var MoD;var Rb9;var Sp=function(){return _.u.apply(this,arguments)||this};
_.c(Sp,_.u);_.f([_.b(),_.z("design:type",Object)],Sp.prototype,"data",void 0);Sp=_.f([_.TD({is:"yt-alert-renderer",disableElementRegistration:!0})],Sp);
_.D(Sp,"yt-alert-renderer",function(){if(Rb9===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;MoD===void 0&&(MoD=document.createElement("template"));var Z=MoD;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Rb9=a}a=Rb9;return a},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.MnX=function(a,W){var w,Z;W=W===void 0?{}:W;var N,B,I,X,v,U,O,S,T,p,h,L;return _.P(function(F){switch(F.nextAddress){case 1:N=W;B=N.shouldWrap===void 0?!0:N.shouldWrap;I=N.skipTransitionTimeoutMs===void 0?300:N.skipTransitionTimeoutMs;X=N.beforeTransition;v=N.afterTransition;if(!B||!document.startViewTransition||document.visibilityState==="hidden")return F.return(a());w=window.innerWidth;Z=window.innerHeight;U=!1;(O=X)==null||O();_.tq(F,2);S=document.startViewTransition(a);T=setTimeout(function(){S.skipTransition();
U=!0},I);
return _.g(F,S.ready,4);case 4:return clearTimeout(T),_.g(F,S.finished,5);case 5:clearTimeout(T);(p=v)==null||p();_.qY(F,0);break;case 2:h=_.Pb(F),(L=v)==null||L(),h&&!U&&document.visibilityState!=="hidden"&&w===window.innerWidth&&Z===window.innerHeight&&_.eJ(h),_.Xd(F)}})};
_.A$=function(a){return a.watch.isTheaterMode};
_.Rs9=function(a){var W=_.PM("DIV");a&&(W.className=a);W.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=_.PM("DIV");_.RD_(a,"200px","200px");W.appendChild(a);document.body.appendChild(W);a=W.offsetWidth-W.clientWidth;_.Xh(W);return a};
_.h$=function(){for(var a=Array(36),W=0,w,Z=0;Z<36;Z++)Z==8||Z==13||Z==18||Z==23?a[Z]="-":Z==14?a[Z]="4":(W<=2&&(W=33554432+Math.random()*16777216|0),w=W&15,W>>=4,a[Z]=_.xXe[Z==19?w&3|8:w]);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 qKI=_.ma(['<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>']),
QnX=_.iDJ(qKI);QnX.setAttribute("style","display: none;");document.head.appendChild(QnX.content);_.iZ=_.jTU(_.Rs9);var xOz;var b80;var cC=function(){var a=_.u.apply(this,arguments)||this;a.icon=null;return a};
_.c(cC,_.u);cC.prototype.dismiss=function(){_.E$(this.hostElement,"yt-live-chat-error-message-dismiss")};
cC.prototype.computeIcon=function(a){return a&&a.iconType?"yt-icons:"+a.iconType.toLowerCase():"yt-icons:close"};
_.f([_.b(),_.z("design:type",Object)],cC.prototype,"data",void 0);_.f([_.b({computed:"computeIcon(data.icon)"}),_.z("design:type",Object)],cC.prototype,"icon",void 0);cC=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],cC);
_.D(cC,"yt-live-chat-error-message-renderer",function(){if(b80===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;xOz===void 0&&(xOz=document.createElement("template"));var Z=xOz;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);b80=a}a=b80;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var sp0,ulE,C2a,GJi,zJ0,HLI,y5K,EuK,aN2,h_,W2I,wV2,iW,Zyn,Npk,tcz,$e0,BpK,lN9,INn,PUz,XVa,v9d,g9z,o9k,kEz,Uek,Oy2,SkK,Ykn,Tp0,K20,cr,pVD,ra0,Aad,caK,ekK,n9I,j_0,L2D,Jaz,hkd,iyi,McE,Rk2,qkf,Q_a,xef,F22,s_d;sp0=function(a,W){return _.tG(a.entities,"timedMarkersListSyncEntity",W)};
ulE=function(a,W){return _.tG(a.entities,"liveReactionsDataEntity",W)};
C2a=function(a,W){a=_.tG(a.entities,"booleanEntity",W);return!(!a||!a.value)};
GJi=function(a,W){var w=_.nS();w&&a&&_.M1(w,_.PX(a),W)};
_.DgE=function(){_.r("web_watch_log_theater_mode")&&_.AWx("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.fcK=function(a,W,w){if(!a.includes("START_TIME_PLACEHOLDER")||!a.includes("END_TIME_PLACEHOLDER"))return a;var Z=new Date(0),N=new Date(0);Z.setUTCMilliseconds(W);N.setUTCMilliseconds(w);return a.replace("START_TIME_PLACEHOLDER",_.Mn(Z,7)).replace("END_TIME_PLACEHOLDER",_.Mn(N,7))};
_.dgI=function(a){return a.watch.isWatchActive};
_.rA=function(a){return a!=null&&a.watch?a.watch.isWatchFullscreen:!1};
_.mgX=function(a){return _.A$(a)||_.rA(a)||_.nAe(a)};
_.VsE=function(a){return!_.mgX(a)};
_.A_=function(a){return a.watch.watchScrollTop};
zJ0=function(a){return a.watch.isLiveChatCollapsed};
HLI=function(a){return a.watch.openEngagementPanels};
y5K=function(a,W){return _.tG(a.entities,"booleanEntity",W)};
EuK=function(){return function(a){_.R5(_.oL("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:a}))}};
aN2=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}};
h_=function(a,W,w){var Z=_.rJ(w);a&&W&&Z&&a.getPlayerPromise().then(function(N){_.xfU(Z)&&_.cZ();(new _.vd(N)).executeCommand(Z,W);_.r("continue_playback_on_desktop_companion_click")||N.pauseVideo()})};
W2I=function(a){var W=_.fA(),w;if(w=_.RT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;w=(Z=w())==null?void 0:Z.layoutId}else w=null;h_(W,w,a)};
wV2=function(a){var W=_.fA(),w;if(w=_.RT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;w=(Z=w())==null?void 0:Z.layoutId}else w=null;h_(W,w,a)};
iW=function(a,W){var w=a<0?"-":"";a=Math.abs(a);var Z=Math.floor(a/3600),N=Math.floor(a)%3600,B=Math.floor(N/60);N=Math.floor(N)%60;var I="";(W===void 0?0:W)&&(I="."+Math.round((a-Math.floor(a))*10));return Z>0?w+Z+":"+(B<10?"0"+B:""+B)+":"+(N<10?"0"+N:""+N)+I:w+B+":"+(N<10?"0"+N:""+N)+I};
Zyn=function(a){var W=a.match(/[^0-9:\.]/g);if(W&&W.length>0)return null;a=a.split(":");if(a.length===0||a.length>3)return null;W=1;for(var w=0;a.length>0;){var Z=a.pop();if(Z===void 0)break;var N=Number(Z);if(Z===""||isNaN(N))return null;w+=N*W;W*=60}return w};
Npk=function(a,W,w,Z){a=Math.max(w,a);W=Math.min(W,Z-w);a+W>Z?(w=Z,a=w-W):w=a+W;return{start:a,end:w}};
tcz=function(a,W,w,Z,N,B){a<w?a=w:a+N>Z&&(a=Z-N);W>Z&&(W=Z);W=Math.min(a+B,Math.max(a+N,W));return{start:a,end:W}};
$e0=function(a,W,w,Z,N,B){W>Z?W=Z:W-N<w&&(W=w+N);a<w&&(a=w);a=Math.min(W-N,Math.max(W-B,a));return{start:a,end:W}};
BpK=function(a){return _.r("web_transcript_cue_id_killswitch")?String(a):"ytd-transcript-renderer_"+a};
lN9=function(a){return _.r("web_transcript_cue_id_killswitch")?!0:a.startsWith("ytd-transcript-renderer")};
INn=function(a){var W=_.fA(),w;if(w=_.RT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;w=(Z=w())==null?void 0:Z.layoutId}else w=null;h_(W,w,a)};
PUz=function(a){a.style.height="auto";a.style.height=Math.min(a.scrollHeight||20,80)+"px"};
XVa=function(a,W){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:W}}],insertByPositionInSection:{sectionTargetId:a,position:"INSERTION_POSITION_LAST"}}}]}}}};
v9d=function(a){var W=_.fA(),w;w=(w=_.RT("yt.www.ads.eventcache.getLastCompanionData"))?(w=w())&&w.layoutId:null;h_(W,w,a)};
g9z=function(a){var W=_.fA(),w;w=(w=_.RT("yt.www.ads.eventcache.getLastCompanionData"))?(w=w())&&w.layoutId:null;h_(W,w,a)};
o9k=function(a,W){W=W===void 0?!1:W;if(a.simpleText)a=[{text:a.simpleText}];else{var w;a=((w=a.runs)!=null?w:[]).map(function(Z){return Object.assign({},Z)})}if(W)for(W=_.l(a),w=W.next();!w.done;w=W.next())w.value.bold=!0;
return a};
kEz=function(a){var W=a.startEndTimeTemplate,w=a.startTimeUtcMillis;a=a.endTimeUtcMillis;if(W&&w&&a)return _.b8(_.fcK(_.sd(W),Number(w),Number(a)))};
Uek=function(a,W){var w,Z,N=a==null?void 0:(w=a.viewCount)==null?void 0:(Z=w.videoViewCountRenderer)==null?void 0:Z.shortViewCount;if(!W&&N)return N;var B,I;return a==null?void 0:(B=a.viewCount)==null?void 0:(I=B.videoViewCountRenderer)==null?void 0:I.viewCount};
Oy2=function(a,W){var w=a==null?void 0:a.relativeDateText;return!W&&w?[w,!0]:[a==null?void 0:a.dateText,!1]};
SkK=function(a,W,w,Z,N){Z=Z===void 0?!0:Z;N=N===void 0?"":N;var B=Uek(a,W),I=_.l(Oy2(a,W)),X=I.next().value;I=I.next().value;W=W?a==null?void 0:a.sponsorsOnlyFirstTimeLongText:a==null?void 0:a.sponsorsOnlyFirstTimeShortText;var v=[];w&&B&&v.push(B);!w&&I||!X||v.push(X);a=[].concat(_.K8(v),[W,a==null?void 0:a.stationName,a==null?void 0:a.rating,a?kEz(a):void 0,a==null?void 0:a.upNextProgramText,a==null?void 0:a.superTitleLink]).filter(function(U){return!!U});
w={runs:[]};for(B=0;B<a.length;B++)w.runs.push.apply(w.runs,_.K8(o9k(a[B],Z))),B<a.length-1&&w.runs.push({text:" "+N+" ",bold:Z});return w};
Ykn=function(a){if(a)return{runs:[{text:a,bold:!0}]}};
Tp0=function(a){var W,w,Z,N;if(a=a==null?void 0:(W=a.contents)==null?void 0:(w=W.twoColumnWatchNextResults)==null?void 0:(Z=w.results)==null?void 0:(N=Z.results)==null?void 0:N.contents){var B,I;return(I=(B=a.find(function(X){return!!X.videoPrimaryInfoRenderer}))==null?void 0:B.videoPrimaryInfoRenderer)==null?void 0:I.updatedMetadataEndpoint}};
K20=function(a,W){var w;return(w=a.sourceConfigs)==null?void 0:w.find(function(Z){return Z.videoId===W})};
cr=function(a){return a==="End of video"||a==="End of playlist"};
pVD=function(a){var W,w,Z,N;return(W=a.getWatchNextResponse())==null?void 0:(w=W.contents)==null?void 0:(Z=w.twoColumnWatchNextResults)==null?void 0:(N=Z.playlist)==null?void 0:N.playlist};
ra0=function(a){var W,w,Z,N,B,I;return(W=pVD(a))==null?void 0:(w=W.playlistButtons)==null?void 0:(Z=w.menuRenderer)==null?void 0:(N=Z.topLevelButtons)==null?void 0:(B=N[0])==null?void 0:(I=B.playlistLoopButtonRenderer)==null?void 0:I.playlistLoopStateEntityKey};
Aad=function(a){var W=_.K().resolve(_.LB),w;return(W=(w=_.A(W.getAutoplayEndpoint(),_.u6))==null?void 0:w.playlistId)&&W===a};
caK=function(a,W,w,Z,N){function B(){_.hF.cancelJob(eh);var I=hkd(W,w/a.getPlaybackRate()),X=I.hours,v=I.minutes;I=(I.seconds*1E3||6E4)/a.getPlaybackRate();a.setVideoTimeLeft(iyi(X,v));Z&&a.getPlayerState()!==0&&a.setSleepTimerTimeLeft(iyi(X,v,!0));(X>0||v>0)&&!N&&(eh=_.OB(_.hF,B,I))}
_.hF.cancelJob(eh);eh=_.OB(_.hF,B)};
ekK=function(a,W,w){function Z(){_.hF.cancelJob(nn);var N=hkd(W,w),B=N.hours;N=N.minutes;var I=6E4/a.getPlaybackRate();if(B>0||N>0)a.setSleepTimerTimeLeft(iyi(B,N,!0)),nn=_.OB(_.hF,Z,I)}
_.hF.cancelJob(nn);nn=_.OB(_.hF,Z)};
n9I=function(a,W){var w=a.getVolume()/(W/500),Z=function(N){_.hF.cancelJob(jh);var B=Math.floor(N-w);a.setVolume(B,!1);B>0&&(jh=_.OB(_.hF,function(){Z(B)},500))};
_.hF.cancelJob(jh);jh=_.OB(_.hF,function(){Z(a.getVolume())})};
j_0=function(a,W){_.hF.cancelJob(jh);W&&a.syncVolume()};
L2D=function(){var a={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.P_("SLEEP_TIMER_DISRUPTED")}}}}};_.K().resolve(_.zU).resolveCommand(a)};
Jaz=function(a){return(a.getDuration()-a.getProgressState().current)*1E3};
hkd=function(a,W){a=a+W-(0,_.mG)();if(a<=0)return{hours:0,minutes:0,seconds:0};var w=new F22(0,0,0,0,0,0,a);a=w.getHours();W=w.getMinutes();w=w.getSeconds();w!==0&&W++;W!==0&&W%60===0&&(a++,W=0);return{hours:a,minutes:W,seconds:w}};
iyi=function(a,W,w){return a>0&&W>0?w?_.P_("TIME_LEFT_HOURS_MINUTES",{hours:a.toString(),minutes:W.toString()}):_.P_("TIME_HOURS_MINUTES",{hours:a.toString(),minutes:W.toString()}):a>0?w?_.Xz("TIME_LEFT_HOURS",a):_.Xz("TIME_HOURS",a):w?_.P_("TIME_LEFT_MINUTES",{minutes:W.toString()}):_.P_("TIME_MINUTES",{minutes:W.toString()})};
McE=function(a,W){if(a.timelyActions)return a.timelyActions.find(function(w){var Z;return((Z=_.A(w,Ln))==null?void 0:Z.cueRangeId)===W})};
Rk2=function(a){var W=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.By(a);a.keyMap_.forEach(function(w,Z){_.f7(W,Z)||this.remove(Z)},a)};
qkf=function(a,W){a.reloadContinuationItemsCommandMatcher=W};
_.J_=function(a,W){a.insertBefore(W,a.childNodes[0]||null)};
Q_a=function(a){if(a>=48&&a<=57||a>=96&&a<=106||a>=65&&a<=90||_.Pz&&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 _.IY;default:return!1}};
xef=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=112&&a.keyCode<=123)return!1;if(Q_a(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!_.IY;default:return a.keyCode<166||a.keyCode>183}};
F22=function(a,W,w,Z,N,B,I){this.date=typeof a==="number"?new Date(a,W||0,w||1,Z||0,N||0,B||0,I||0):new Date(a&&a.getTime?a.getTime():_.ZL())};
_.NT(F22,_.KU);_.t=F22.prototype;_.t.getHours=function(){return this.date.getHours()};
_.t.getMinutes=function(){return this.date.getMinutes()};
_.t.getSeconds=function(){return this.date.getSeconds()};
_.t.getMilliseconds=function(){return this.date.getMilliseconds()};
_.t.getUTCDay=function(){return this.date.getUTCDay()};
_.t.getUTCHours=function(){return this.date.getUTCHours()};
_.t.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.t.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.t.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.t.setHours=function(a){this.date.setHours(a)};
_.t.setMinutes=function(a){this.date.setMinutes(a)};
_.t.setSeconds=function(a){this.date.setSeconds(a)};
_.t.setMilliseconds=function(a){this.date.setMilliseconds(a)};
_.t.setUTCHours=function(a){this.date.setUTCHours(a)};
_.t.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
_.t.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};
_.t.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};
_.t.add=function(a){_.KU.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)};
_.t.JSC$9142_toIsoString=function(a){var W=_.KU.prototype.JSC$9142_toIsoString.call(this,a);return a?W+"T"+_.ZA(this.getHours(),2)+":"+_.ZA(this.getMinutes(),2)+":"+_.ZA(this.getSeconds(),2):W+"T"+_.ZA(this.getHours(),2)+_.ZA(this.getMinutes(),2)+_.ZA(this.getSeconds(),2)};
_.t.equals=function(a){return this.getTime()==a.getTime()};
_.t.toString=function(){return this.JSC$9142_toIsoString()};
_.t.clone=function(){var a=new F22(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
_.by2=function(a){return _.E_({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:a}})};
s_d=new _.H("imageTileRenderer");var uAK=new _.H("adGridCardCollectionViewModel");var CUd=new _.H("carouselTitleViewModel");var GEd=new _.H("ctaCarouselItemViewModel");var De0=new _.H("textFieldViewModel");_.fNd=new _.H("engagementPanelHeaderShowNavigationButtonCommand");var de9=new _.H("hideEngagementPanelScrimAction");var me0=new _.H("setActivePanelItemAction");var Vca=new _.H("showEngagementPanelScrimAction");var zk0=new _.H("updateEngagementPanelAction");var Hy0=new _.H("updateSearchInVideoResultsAction");var yak=new _.H("transcriptCueGroupRenderer");var E90=new _.H("transcriptCueRenderer");var aF0=new _.H("transcriptFooterRenderer");var Wgd=new _.H("engagementPanelAdSubtitleRenderer");var wF2=new _.H("videoDescriptionFantasySectionViewModel");var ZQK=new _.H("deleteClipEngagementPanelCommand");var NLK=new _.H("loopCommand");var tIK=new _.H("changeCreatorEndscreenVisibilityCommand");var $Bz=new _.H("liveChatCallForQuestionsRenderer");var BL2=new _.H("updateTimedMarkersSyncObserverCommand");var Ln=new _.H("timelyActionViewModel");var lFk=new _.H("timelyActionsOverlayViewModel");var IFI=new _.H("repeatChapterCommand");var Ppa=new _.H("watchPlayerOverflowMenuCommand");var XFK=new _.H("compositeVideoOverlayRenderer");var vCn=new _.H("sortFilterSubMenuRenderer");var gCz=new _.H("switchListItemViewModel");var oCd=new _.H("inputComposerViewModel");var kQI=new _.H("transcriptEditSegmentCommand");var UB0=new _.H("transcriptUpdateSegmentTextCommand");var OQE=new _.H("transcriptSearchBoxRenderer");var S3a=new _.H("transcriptSegmentListRenderer");var Y3E=new _.H("transcriptSegmentRenderer");_.TLI=new _.H("updateDateTextAction");var Kg9=new _.H("updateTitleAction");var pFz=new _.H("updateViewershipAction");var rZX=new _.H("carouselLockupRenderer");var AZ2=new _.H("expandableVideoDescriptionBodyRenderer");var hVE=new _.H("videoDescriptionYouchatSectionViewModel");_.FB=_.yv("kevlar_watch_page_horizontal_margin",24);_.iQd=_.yv("kevlar_watch_page_columns_top_padding",24);_.cZn=426+_.FB*2;_.MN=_.yv("kevlar_watch_two_column_width_threshold",1E3);_.RG=_.FB*2;_.qN=_.yv("kevlar_watch_secondary_width",402);_.eV0=_.yv("kevlar_watch_secondary_max_width",600);_.nCI=_.yv("kevlar_watch_max_player_width",1280);_.j9E=_.yv("kevlar_watch_flexy_metadata_height",136);_.LgI=_.RG+310+_.FB;_.JZf=_.RG+360+_.FB;var Fg0={PAUSE_CHAT:18};var MI9;var RVn;var Qg=function(){return _.u.apply(this,arguments)||this};
_.c(Qg,_.u);Qg.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Qg.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var a=_.A(this.data.button,_.hx);a&&(a.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.dU.Object.defineProperties(Qg,{template:{configurable:!0,enumerable:!0,get:function(){if(RVn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;MI9===void 0&&(MI9=document.createElement("template"));var Z=MI9;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);RVn=a}a=RVn;return a}}});
_.f([_.R(_.ii),_.z("design:type",Object)],Qg.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b({selectorArgs:["data.enabledEntityKey"],selector:C2a,observer:"onEnabledChange"}),_.z("design:type",Boolean)],Qg.prototype,"enabled",void 0);_.f([_.b(),_.z("design:type",Object)],Qg.prototype,"data",void 0);Qg=_.f([_.TD({is:"yt-disableable-button-view-model",noInjection:!0})],Qg);var q32;var Q90;var xBX=["transVert01","transVert02","transVert03"],bQi="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),xn=function(){var a=_.u.apply(this,arguments)||this;a.emojiManager=_.eD;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};a.reactionBuckets=[];a.noEmojiIdentifier="NO_EMOJI";return a};
_.c(xn,_.u);_.t=xn.prototype;_.t.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.t.desktopFountainEmojiSizePxChanged=function(){_.Hu(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.t.createUserReactionAnimation=function(a){this.createEmojiAnimation(a,!0)};
_.t.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var a;((a=this.data)==null?0:a.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.oL("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.K8(this.emojiContainer.children)).forEach(function(W){W.remove()})};
_.t.detached=function(){this.cleanupFountain()};
_.t.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var a;this.reactionBuckets=_.T5.unsafeClone((a=this.emojiFountainData)==null?void 0:a.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.t.processEmojiBucket=function(a){var W=this;if(this.reactionBuckets&&!(a>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var w=this.reactionBuckets[a];this.generateEmojiAnimations(w);if(a<this.reactionBuckets.length-1){var Z;if(w==null?0:(Z=w.duration)==null?0:Z.seconds)this.emojiBucketTimerId=setTimeout(function(){W.processEmojiBucket(a+1)},Number(w.duration.seconds)*1E3)}}};
_.t.generateEmojiAnimations=function(a){var W=this,w=this.getRandomEmojiIdFromBucketWithOverride(a);if(w&&w!==this.noEmojiIdentifier){var Z=0;a.targetEps?(Z=this.linearInterpolateBounded(1,20,100,12,a.emojiSizeIndex||0),this.createEmojiAnimation(w,!1,a.emojiAnimationMs,Z),Z=this.getEmojiDelayMsFromTargetEps(a.targetEps)):(this.createEmojiAnimation(w),Z=this.getEmojiDelayMsFromDistribution(a.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){W.generateEmojiAnimations(a)},Z)}};
_.t.getRandomEmojiIdFromBucketWithOverride=function(a){if(!(a&&a.reactionsData&&a.reactionsData.length&&a.totalReactions))return this.noEmojiIdentifier;for(var W=a.totalReactions,w=1,Z=_.l(a.reactionsData),N=Z.next();!N.done;N=Z.next())N=N.value,(N.reactionWeightOverride||N.reactionWeightOverride===0)&&N.reactionCount&&(W-=N.reactionCount,w-=N.reactionWeightOverride);Z=!0;w<0&&(Z=!1,W=a.totalReactions,w=1);if(Z&&w>0&&W===0)if(w===1){N=0;for(var B=_.l(a.reactionsData),I=B.next();!I.done;I=B.next())I=
I.value,I.reactionCount&&I.reactionCount>0&&N++;N=1/N;B=_.l(a.reactionsData);for(I=B.next();!I.done;I=B.next())I.value.reactionWeightOverride=N}else for(N=1/(1-w),B=_.l(a.reactionsData),I=B.next();!I.done;I=B.next())I=I.value,I.reactionWeightOverride&&(I.reactionWeightOverride*=N);N=Math.random();B=0;I=_.l(a.reactionsData);for(var X=I.next();!X.done;X=I.next())if(X=X.value,X.reactionCount&&(B=(X.reactionWeightOverride||X.reactionWeightOverride===0)&&Z?B+X.reactionWeightOverride:B+w*X.reactionCount/
W,B>N&&(X.reactionCount--,a.totalReactions--,X=this.reactionItemToEmojiString(X),X!==this.noEmojiIdentifier)))return X;return this.noEmojiIdentifier};
_.t.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};
_.t.createEmojiAnimation=function(a,W,w,Z){W=W===void 0?!1:W;this.lastEmojiRequestedForTesting=a;var N=a.startsWith("yt-icons:"),B=_.iN(this.emojiManager,a);if(B||N){var I=document.createElement("emoji");I.classList.add("yt-emoji-fountain-view-model");I.classList.add(xBX[Math.floor(Math.random()*xBX.length)]);var X=document.createElement("div");X.classList.add("yt-emoji-fountain-view-model");X.classList.add("horizontal-container");X.classList.add(bQi[Math.floor(Math.random()*bQi.length)]);W?(w=document.createElement("div"),
w.classList.add("user-reaction-bubble"),w.classList.add("yt-emoji-fountain-view-model"),X.appendChild(w)):(w&&(I.style.animationDuration=w+"ms",X.style.animationDuration=w+"ms"),Z&&(I.style.width=Z+"px",I.style.height=Z+"px"));N?(N=document.createElement("yt-icon"),N.polymerController.icon=a,Z&&(N.style.width=Z+"px",N.style.height=Z+"px"),a=N):a=this.emojiManager.createEmoji(B,!1);a.classList.add("yt-emoji-fountain-view-model");X.appendChild(a);I.appendChild(X);this.emojiContainer.appendChild(I);
I.addEventListener("animationend",function(){I.remove()});
var v,U;if((v=this.data)==null?0:(U=v.loggingDirectives)==null?0:U.trackingParams)W=W?_.Ob(183501):_.Ob(183500),GJi(this.data.loggingDirectives.trackingParams,W),_.m2H(W);setTimeout(function(){I&&I.remove()},2E3)}};
_.t.getEmojiDelayMsFromDistribution=function(a){return Math.random()*(a||1)*1E3};
_.t.getEmojiDelayMsFromTargetEps=function(a){return Math.random()*2*(1/a)*1E3};
_.t.linearInterpolateBounded=function(a,W,w,Z,N){N=Math.min(Math.max(N,a),w);return(W*(w-N)+Z*(N-a))/(w-a)};
xn.prototype.onEmojiFountainDataEntityUpdate=xn.prototype.onEmojiFountainDataEntityUpdate;xn.prototype.desktopFountainEmojiSizePxChanged=xn.prototype.desktopFountainEmojiSizePxChanged;xn.prototype.isActiveChanged=xn.prototype.isActiveChanged;_.f([_.b(),_.z("design:type",_.hp)],xn.prototype,"emojiManager",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ii),_.z("design:type",Object)],xn.prototype,"ytLiveChatReduxBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],xn.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xn.prototype,"data",void 0);_.f([_.b({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(a,W){return _.tG(a.entities,"emojiFountainDataEntity",W)}}),
_.z("design:type",Object)],xn.prototype,"emojiFountainData",void 0);_.f([_.b(),_.z("design:type",Boolean)],xn.prototype,"isActive",void 0);_.f([_.a5("isActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xn.prototype,"isActiveChanged",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],xn.prototype,"isDarkTheme",void 0);_.f([_.b(),_.z("design:type",String)],xn.prototype,"lastEmojiRequestedForTesting",void 0);
_.f([_.b({value:function(){return _.yv("desktop_fountain_emoji_size_px",20)}}),
_.z("design:type",Number)],xn.prototype,"desktopFountainEmojiSizePx",void 0);_.f([_.a5("desktopFountainEmojiSizePx"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xn.prototype,"desktopFountainEmojiSizePxChanged",null);_.f([_.w$("#emoji-container"),_.z("design:type",HTMLElement)],xn.prototype,"emojiContainer",void 0);
_.f([_.a5("emojiFountainData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xn.prototype,"onEmojiFountainDataEntityUpdate",null);xn=_.f([_.TD({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],xn);
_.D(xn,"yt-emoji-fountain-view-model",function(){if(Q90===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;q32===void 0&&(q32=document.createElement("template"));var Z=q32;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Q90=a}a=Q90;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var s9E;var ueE;var bW=function(){return _.u.apply(this,arguments)||this};
_.c(bW,_.u);bW.prototype.onChoiceChanged=function(){this.data&&_.Hu(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
bW.prototype.onChoiceChanged=bW.prototype.onChoiceChanged;_.f([_.b(),_.z("design:type",Object)],bW.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bW.prototype,"onChoiceChanged",null);bW=_.f([_.C({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],bW);
_.D(bW,"yt-live-chat-banner-poll-choice",function(){if(ueE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;s9E===void 0&&(s9E=document.createElement("template"));var Z=s9E;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);ueE=a}a=ueE;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var CpD;var GQ0;var sv=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("web_button_rework_with_live");a.small=!1;return a};
_.c(sv,_.u);sv.prototype.computeIsSmall=function(){var a;return((a=this.buttonOverrides)==null?void 0:a.size)==="S"};
sv.prototype.computeId=function(){return this.data&&this.data.targetId};
_.f([_.R(_.c7.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],sv.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.f([_.b({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",String)],sv.prototype,"id",void 0);_.f([_.b(),_.z("design:type",Object)],sv.prototype,"buttonOverrides",void 0);_.f([_.b(),_.z("design:type",Object)],sv.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sv.prototype,"modern",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.z("design:type",Object)],sv.prototype,"small",void 0);sv=_.f([_.C({disableElementRegistration:!0,is:"yt-live-chat-button"})],sv);
_.D(sv,"yt-live-chat-button",function(){if(GQ0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;CpD===void 0&&(CpD=document.createElement("template"));var Z=CpD;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);GQ0=a}a=GQ0;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var DBi;var fFi;var uW=function(){var a=_.u.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};
_.c(uW,_.u);_.t=uW.prototype;_.t.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]]"}}}}}};
_.t.onContextMenuButtonClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
_.t.onYtRendererstamperFinished=function(){this.menuButton=_.M(this.hostElement).querySelector("#menu-button")};
_.t.dataChanged=function(){var a,W;if((W=_.A((a=this.data)==null?void 0:a.overflowMenuButton,_.J4))==null?0:W.command)this.data.contextMenuEndpoint=_.A(this.data.overflowMenuButton,_.J4).command};
_.t.onButtonClick=function(){var a,W=_.A((a=this.data)==null?void 0:a.askQuestionButton,_.J4);if(W){if(W.trackingParams&&(a=_.PX(W.trackingParams))){var w=_.nS();w&&_.b0(w,a)}_.E$(this.hostElement,"innertube-command",W.command)}};
uW.prototype.onYtRendererstamperFinished=uW.prototype.onYtRendererstamperFinished;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],uW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ii),_.z("design:type",Object)],uW.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],uW.prototype,"ytLiveChatItemBehavior",void 0);_.f([_.b({observer:"dataChanged"}),_.z("design:type",Object)],uW.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uW.prototype,"inCollapsedBanner",void 0);_.f([_.b(),_.z("design:type",Object)],uW.prototype,"buttonOverrides",void 0);_.f([_.b(),_.z("design:type",Object)],uW.prototype,"questionButtonOverrides",void 0);_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uW.prototype,"onYtRendererstamperFinished",null);
uW=_.f([_.C({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],uW);
_.D(uW,"yt-live-chat-call-for-questions-renderer",function(){if(fFi===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;DBi===void 0&&(DBi=document.createElement("template"));var Z=DBi;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);fFi=a}a=fFi;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var dBX={};dBX.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 W=_.V4y(a.hostElement);W.length&&W[W.length-1].focus()})},
isAttachedChanged_:function(a,W){a?this.focusChild_():W&&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||_.qj(a).indexOf(this.hostElement)!==-1||(a.stopPropagation(),this.focusChild_())}};var mB0;var VIk;var Cn=function(){return _.u.apply(this,arguments)||this};
_.c(Cn,_.u);Cn.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Cn.prototype.onClick=function(a){a.target!==this.confirmButton&&a.target!==this.cancelButton&&(this.hidden=!0)};
_.f([_.w$("#confirm_button"),_.z("design:type",Object)],Cn.prototype,"confirmButton",void 0);_.f([_.w$("#cancel_button"),_.z("design:type",Object)],Cn.prototype,"cancelButton",void 0);_.f([_.b(),_.z("design:type",zVi)],Cn.prototype,"data",void 0);_.f([_.b({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],Cn.prototype,"hidden",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(dBX.YtLiveChatDialogBehavior),_.z("design:type",Object)],Cn.prototype,"ytLiveChatDialogBehavior",void 0);Cn=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Cn);
var zVi=_.D(Cn,"yt-live-chat-dialog-renderer",function(){if(VIk===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;mB0===void 0&&(mB0=document.createElement("template"));var Z=mB0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);VIk=a}a=VIk;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var HQI;var yZX,EC9=function(){if(yZX!==void 0)return yZX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;HQI===void 0&&(HQI=document.createElement("template"));var Z=HQI;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return yZX=a};var aM0;var WLf;var GL=function(){var a=_.u.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};
_.c(GL,_.u);_.t=GL.prototype;
_.t.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,_.zX)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var W;if((W=this.data)==null?0:W.disabled)this.disabled=!0};
_.t.computeId=function(a){return a};
_.t.computeIcon=function(a,W){if(!a)return"";if(this.useToggledActiveState)return"yt-icons:"+a.toLowerCase();var w,Z;return W&&((w=this.data)==null?0:(Z=w.toggledIcon)==null?0:Z.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+a.toLowerCase()};
_.t.logPDGEntryPoint=function(){_.oZx(_.Z3("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")};
_.t.immediatelyShowTooltip=function(){var a=_.M(this.hostElement).querySelector("#tooltip");a.animationDelay=0;a.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};a.show()};
_.t.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.t.onClick=function(a){var W;((W=this.data)==null?0:W.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(),_.E$(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.t.computeShowTooltip=function(a,W){return!!(a&&a.tooltip&&W)};
_.t.maybeUpdateTooltipText=function(){var a=this,W;if((W=this.data)==null?0:W.tooltip){var w=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.zX)(a.tooltip).textContent=w},250)}};
_.t.handleLiveChatActions=function(a){var W=this;a.length&&(this.id!=="creator"&&this.id!=="product-picker"||a.forEach(function(w){(w=W.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",w))&&w.durationSec===w.fullDurationSec&&W.startBubble(W.colorFromDecimal(w.startBackgroundColor))}))};
_.t.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.t.startBubble=function(a){_.Hu(this.hostElement,{"--yt-live-chat-monetization-button-glow":a});this.hostElement.setAttribute("bubble","")};
_.t.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.t.colorFromDecimal=function(a){typeof a==="string"&&(a=Number(a));return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
GL.prototype.onAnimationEnd=GL.prototype.onAnimationEnd;GL.prototype.disabledChanged=GL.prototype.disabledChanged;GL.prototype.dataChanged=GL.prototype.dataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],GL.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.c7.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],GL.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],GL.prototype,"data",void 0);_.f([_.b({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",Object)],GL.prototype,"id",void 0);_.f([_.b({notify:!0,reflectToAttribute:!0}),_.z("design:type",Object)],GL.prototype,"active",void 0);
_.f([_.b({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.z("design:type",Object)],GL.prototype,"icon",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],GL.prototype,"disabled",void 0);_.f([_.b({computed:"computeShowTooltip(data, disabled)"}),_.z("design:type",Object)],GL.prototype,"showTooltip",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],GL.prototype,"useToggledActiveState",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GL.prototype,"dataChanged",null);_.f([_.a5("disabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GL.prototype,"disabledChanged",null);_.f([_.E6("animationend"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],GL.prototype,"onAnimationEnd",null);
GL=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],GL);
_.D(GL,"yt-live-chat-icon-toggle-button-renderer",function(){if(WLf===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;aM0===void 0&&(aM0=document.createElement("template"));var Z=aM0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);WLf=a}a=WLf;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var wq9;var Zi9;var D_=function(){return _.u.apply(this,arguments)||this};
_.c(D_,_.u);D_.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.f([_.b(),_.z("design:type",Object)],D_.prototype,"data",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);D_=_.f([_.C({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],D_);
_.D(D_,"yt-live-chat-message-input-prompt-header-renderer",function(){if(Zi9===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;wq9===void 0&&(wq9=document.createElement("template"));var Z=wq9;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Zi9=a}a=Zi9;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var NBX;var t_X;var $00;var BBK;var lM0;var IMd;var fn=function(){return _.u.apply(this,arguments)||this};
_.c(fn,_.u);_.f([_.b(),_.z("design:type",Object)],fn.prototype,"data",void 0);fn=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],fn);
_.D(fn,"yt-live-chat-message-subtext-renderer",function(){if(IMd===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;lM0===void 0&&(lM0=document.createElement("template"));var Z=lM0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);IMd=a}a=IMd;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var dA=function(){var a=_.u.apply(this,arguments)||this;a.subtextOnBottom=!1;a.buttonOverrides={style:"mono",type:"tonal"};return a};
_.c(dA,_.u);dA.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],dA.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dA.prototype,"subtextOnBottom",void 0);_.f([_.b(),_.z("design:type",Object)],dA.prototype,"buttonOverrides",void 0);
dA=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],dA);
_.D(dA,"yt-live-chat-message-renderer",function(){if(BBK===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;$00===void 0&&($00=document.createElement("template"));var Z=$00;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);BBK=a}a=BBK;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var PsD;var Xqd;var mC=function(){var a=_.u.apply(this,arguments)||this;a.isRemovable=!1;a.hasPrefilledText=!1;a.isInputDirty=!1;a.overCharacterLimit=!1;a.underCharacterLimit=!1;a.showErrorMessage=!1;return a};
_.c(mC,_.u);_.t=mC.prototype;_.t.computeId=function(){return this.data.id};
_.t.computeInputData=function(){return this.data.inputData};
_.t.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.t.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.t.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.t.getLiveChatRichMessageInput=function(){return _.M(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.t.clearInput=function(){_.M(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.t.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.t.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.t.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.t.handleTextInputCharCountChanged=function(a){a=a.detail&&a.detail.characterCount;a!==void 0&&(this.characterCount=a,a!==0&&(this.isInputDirty=!0))};
_.t.onInputFocusOut=function(){this.isInputDirty=!0};
_.t.onClickCloseButton=function(){_.E$(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
mC.prototype.handleTextInputCharCountChanged=mC.prototype.handleTextInputCharCountChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],mC.prototype,"data",void 0);_.f([_.b({computed:"computeId(data.id)"}),_.z("design:type",String)],mC.prototype,"id",void 0);_.f([_.b({computed:"computeInputData(data.inputData)"}),_.z("design:type",Object)],mC.prototype,"inputData",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.z("design:type",Object)],mC.prototype,"isRemovable",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.z("design:type",Object)],mC.prototype,"hasPrefilledText",void 0);_.f([_.b({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.z("design:type",Number)],mC.prototype,"charactersRemaining",void 0);
_.f([_.b(),_.z("design:type",Number)],mC.prototype,"characterCount",void 0);_.f([_.b(),_.z("design:type",Object)],mC.prototype,"isInputDirty",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.z("design:type",Object)],mC.prototype,"overCharacterLimit",void 0);_.f([_.b({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.z("design:type",Object)],mC.prototype,"underCharacterLimit",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.z("design:type",Object)],mC.prototype,"showErrorMessage",void 0);_.f([_.E6("yt-live-chat-text-input-field-renderer-character-count-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],mC.prototype,"handleTextInputCharCountChanged",null);
mC=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],mC);
_.D(mC,"yt-live-chat-poll-editor-input",function(){if(Xqd===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;PsD===void 0&&(PsD=document.createElement("template"));var Z=PsD;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Xqd=a}a=Xqd;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var vkI;var gkD;var okd={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Vg=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("web_button_rework_with_live");a.closeButtonOverrides={iconPosition:"icon-only"};a.startButtonOverrides={style:"mono",type:"filled"};a.addOptionButtonOverrides={style:"mono",type:"text"};return a};
_.c(Vg,_.u);_.t=Vg.prototype;
_.t.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"}}}}};
_.t.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var a;_.A((a=this.data)==null?void 0:a.startButton,_.J4)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.t.computeId=function(){return this.data&&this.data.id||""};
_.t.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.t.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.t.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.t.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.t.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var a=0;a<this.pollEditorInfoWithDefaults.minPollOptions;a++)this.addPollOptionData()};
_.t.getIsValidPoll=function(){var a=this;if(!this.pollEditorInfoWithDefaults)return!1;var W=this.pollEditorInfoWithDefaults,w=W.minPollOptionChars,Z=W.maxPollOptionChars,N=W.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>W.maxPollQuestionChars)return!1;W=_.M(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(W).every(function(B,I){B=B.characterCount;!B&&N[I]&&(B=a.ytRendererBehavior.getSimpleString(N[I]).length);return B!==void 0&&B>=w&&B<=Z})};
_.t.isValidPollChanged=function(){var a;_.A((a=this.data)==null?void 0:a.startButton,_.J4)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.t.addPollOptionData=function(){var a=this.pollEditorInfoWithDefaults,W=a.maxPollOptionChars,w=a.optionPlaceholderText,Z=a.customOptionPlaceholderText,N=a.pollOptionData;this.currentNumPollOptions>=a.maxPollOptions||(a={liveChatPollOptionInput:{inputData:{placeholder:Z[this.currentNumPollOptions]||w,maxCharacterLimit:W},maxCharacterLimit:W,minCharacterLimit:a.minPollOptionChars,hasPrefilledText:!!Z[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=a.minPollOptions}},N.charCountErrorText&&
(a.liveChatPollOptionInput.charCountErrorText=N.charCountErrorText),N.charsRemainingAltLabel&&(a.liveChatPollOptionInput.charsRemainingAltLabel=N.charsRemainingAltLabel),N.removeOptionAltText&&(a.liveChatPollOptionInput.removeOptionAltText=N.removeOptionAltText),this.push("pollOptionsData",a),N=Array.from(_.M(_.M(this.hostElement).querySelector("#poll-options")).children),N.forEach(function(B,I){B.polymerController.set("data.id",I)}),_.M(N[N.length-1]).querySelector("#input").focus())};
_.t.getPollOptionInputValues=function(){var a=this,W=[],w=_.M(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),Z=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(w).forEach(function(N,B){var I=null;N=N.getLiveChatRichMessageInput();var X;(N==null?0:(X=N.textSegments)==null?0:X.length)?I=_.nA(N):Z[B]&&(I=a.formattedStringToLiveChatRichMessageInput(Z[B]));W.push(I)});
return W};
_.t.requestCreateAndStartPoll=function(a){var W=this.getPollOptionInputValues();if(!W.some(function(Z){return!Z})){W={optionText:W};
var w=_.M(_.M(this.hostElement).querySelector("#poll-question")).firstChild;w&&w.liveChatRichMessageInput&&(W.questionText=_.nA(w.liveChatRichMessageInput));_.Z9(this.hostElement,[a,W])}};
_.t.selectedChanged=function(){if(this.selected){var a=_.M(_.M(this.hostElement).querySelector("#start-button")).firstElementChild;if(a){var W;(W=_.M(a).querySelector("#button")||_.di(a).querySelector("button"))==null||W.focus()}}};
_.t.handleTextInputChanged=function(a){var W;((W=a.target)==null?void 0:W.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=a.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.t.handleStartButtonAction=function(a){a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),(a=a.detail.args[1])&&this.requestCreateAndStartPoll(a))};
_.t.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.t.handleServiceRequestCompleted=function(a){this.createPollRequestInFlight=!1;(a=a.detail&&a.detail.data)&&a.success&&(_.E$(this.hostElement,"picker-cancelled"),_.aV(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.t.onCloseClick=function(){_.E$(this.hostElement,"picker-cancelled");_.aV(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.t.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.t.handlePollEditorInputClosed=function(a){var W=this.pollOptionsData.findIndex(function(w){return w.liveChatPollOptionInput.id===a.detail.id});
this.splice("pollOptionsData",W,1);this.isValidPoll=this.getIsValidPoll()};
_.t.onPickerCancelled=function(){this.reset()};
_.t.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var a=_.M(_.M(this.hostElement).querySelector("#poll-question")).firstChild;a&&a.setLiveChatRichMessageInput(null);if(a=_.M(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){a=_.l(Array.from(a));for(var W=a.next();!W.done;W=a.next())W.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.t.formattedStringToLiveChatRichMessageInput=function(a){return a.simpleText?{text_segments:[a.simpleText]}:{text_segments:a.runs}};
_.dU.Object.defineProperties(Vg.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(okd,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Vg.prototype.onPickerCancelled=Vg.prototype.onPickerCancelled;Vg.prototype.handlePollEditorInputClosed=Vg.prototype.handlePollEditorInputClosed;Vg.prototype.handleServiceRequestCompleted=Vg.prototype.handleServiceRequestCompleted;Vg.prototype.handleServiceRequestSent=Vg.prototype.handleServiceRequestSent;Vg.prototype.handleTextInputChanged=Vg.prototype.handleTextInputChanged;Vg.prototype.selectedChanged=Vg.prototype.selectedChanged;Vg.prototype.isValidPollChanged=Vg.prototype.isValidPollChanged;
Vg.prototype.shouldInitializePollChanged=Vg.prototype.shouldInitializePollChanged;Vg.prototype.dataChanged=Vg.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Vg.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Vg.prototype,"modern",void 0);
_.f([_.b(),_.z("design:type",Object)],Vg.prototype,"closeButtonOverrides",void 0);_.f([_.b(),_.z("design:type",Object)],Vg.prototype,"startButtonOverrides",void 0);_.f([_.b(),_.z("design:type",Object)],Vg.prototype,"addOptionButtonOverrides",void 0);_.f([_.b({computed:"computeId(data.id)",reflectToAttribute:!0}),_.z("design:type",String)],Vg.prototype,"id",void 0);_.f([_.b({value:function(){return[]}}),
_.z("design:type",Array)],Vg.prototype,"pollOptionsData",void 0);_.f([_.Q("pollEditorInfoWithDefaults"),_.z("design:type",Object),_.z("design:paramtypes",[])],Vg.prototype,"pollQuestionData",null);_.f([_.b({value:0}),_.z("design:type",Number)],Vg.prototype,"pollQuestionCharacterCount",void 0);_.f([_.Q("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.z("design:type",Object),_.z("design:paramtypes",[])],Vg.prototype,"pollQuestionCharactersRemaining",null);
_.f([_.b({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.z("design:type",Boolean)],Vg.prototype,"overQuestionCharacterLimit",void 0);_.f([_.Q("data.pollEditorInfo"),_.z("design:type",Object),_.z("design:paramtypes",[])],Vg.prototype,"pollEditorInfoWithDefaults",null);_.f([_.b({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.z("design:type",Number)],Vg.prototype,"currentNumPollOptions",void 0);
_.f([_.b({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Vg.prototype,"hasMaxNumPollOptions",void 0);_.f([_.Q("pollEditorInfoWithDefaults","pollOptionsData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Vg.prototype,"shouldInitializePoll",null);_.f([_.b(),_.z("design:type",Object)],Vg.prototype,"isValidPoll",void 0);
_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Vg.prototype,"createPollRequestInFlight",void 0);_.f([_.b(),_.z("design:type",Object)],Vg.prototype,"selected",void 0);_.f([_.b({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.z("design:type",Boolean)],Vg.prototype,"showQuestionErrorMessage",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vg.prototype,"dataChanged",null);_.f([_.a5("shouldInitializePoll"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vg.prototype,"shouldInitializePollChanged",null);_.f([_.a5("isValidPoll"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vg.prototype,"isValidPollChanged",null);
_.f([_.a5("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vg.prototype,"selectedChanged",null);_.f([_.E6("yt-live-chat-text-input-field-renderer-character-count-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Vg.prototype,"handleTextInputChanged",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vg.prototype,"handleServiceRequestSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Vg.prototype,"handleServiceRequestCompleted",null);
_.f([_.E6("yt-live-chat-poll-editor-input-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Vg.prototype,"handlePollEditorInputClosed",null);_.f([_.E6("picker-cancelled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vg.prototype,"onPickerCancelled",null);Vg=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Vg);
_.D(Vg,"yt-live-chat-poll-editor-panel-renderer",function(){if(gkD===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;vkI===void 0&&(vkI=document.createElement("template"));var Z=vkI;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);gkD=a}a=gkD;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var ky0;var U02;var zL=function(){return _.u.apply(this,arguments)||this};
_.c(zL,_.u);zL.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
zL.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.dU.Object.defineProperties(zL.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var a,W;return(a=this.data)==null?void 0:(W=a.title)==null?void 0:W.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 _.rJ((a=this.data)==null?void 0:a.onTapCommand)}}});
_.f([_.R(_.wn.YtEndpointBehavior),_.z("design:type",Object)],zL.prototype,"ytEndpointBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],zL.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],zL.prototype,"itemId",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],zL.prototype,"hasPromotion",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],zL.prototype,"innertubeCommand",null);zL=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],zL);
_.D(zL,"yt-live-chat-product-picker-panel-item-view-model",function(){if(U02===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;ky0===void 0&&(ky0=document.createElement("template"));var Z=ky0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);U02=a}a=U02;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Oi9;var SUE;var Hr=function(){var a=_.u.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};
_.c(Hr,_.u);_.t=Hr.prototype;_.t.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.t.observeSelected=function(){this.selected&&this.hostElement.focus();var a=_.M(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");a.length&&a[0].focus()};
_.t.onCloseBuyFlow=function(){_.E$(this.hostElement,"picker-cancelled")};
_.t.onCloseClick=function(){_.E$(this.hostElement,"picker-cancelled");var a;((a=this.data)==null?0:a.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.A(this.data.closeButton,_.hx))};
_.t.onCloseEngageWithAudienceEditorPanels=function(){_.E$(this.hostElement,"picker-cancelled")};
Hr.prototype.observeSelected=Hr.prototype.observeSelected;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Hr.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Hr.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hr.prototype,"id",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hr.prototype,"selected",void 0);_.f([_.b(),_.z("design:type",Object)],Hr.prototype,"closeButtonId",void 0);_.f([_.a5("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hr.prototype,"observeSelected",null);
Hr=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Hr);
_.D(Hr,"yt-live-chat-product-picker-panel-view-model",function(){if(SUE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Oi9===void 0&&(Oi9=document.createElement("template"));var Z=Oi9;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);SUE=a}a=SUE;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var YUk;var TB9;var yg=function(){var a=_.u.apply(this,arguments)||this;a.iconId="";a.icon="";a.disabled=!1;a.systemIcons=_.r("kevlar_system_icons");return a};
_.c(yg,_.u);_.t=yg.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.t.computeIconId=function(a){return a&&a.icon&&a.icon.iconType?a.icon.iconType.toLowerCase():""};
_.t.computeIcon=function(a){return a&&a.icon&&a.icon.iconType?(a=a.icon.iconType.toLowerCase(),(a.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+a):""};
_.t.computeDisabled=function(a){return!!a};
_.t.computeCommand=function(a,W){return W?void 0:a};
_.t.computeTooltip=function(a,W){return W&&a?a:""};
_.t.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.f([_.R(_.wn.YtEndpointBehavior),_.z("design:type",Object)],yg.prototype,"ytEndpointBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],yg.prototype,"data",void 0);_.f([_.b({computed:"computeIconId(data)",reflectToAttribute:!0}),_.z("design:type",Object)],yg.prototype,"iconId",void 0);
_.f([_.b({computed:"computeIcon(data)",reflectToAttribute:!0}),_.z("design:type",Object)],yg.prototype,"icon",void 0);_.f([_.b({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.z("design:type",Object)],yg.prototype,"disabled",void 0);_.f([_.b({computed:"computeCommand(data.command, disabled)"}),_.z("design:type",Object)],yg.prototype,"command",void 0);_.f([_.b({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.z("design:type",String)],yg.prototype,"tooltip",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yg.prototype,"systemIcons",void 0);yg=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],yg);
_.D(yg,"yt-live-chat-product-button-renderer",function(){if(TB9===void 0){var a=document.createElement("template");_.n(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" disabled$="[[disabled]]" 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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;YUk===void 0&&(YUk=document.createElement("template"));var Z=YUk;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);TB9=a}a=TB9;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var KL2;var pqK;var Ev=function(){var a=_.u.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"};return a};
_.c(Ev,_.u);_.t=Ev.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.computeId=function(a){return a.id||""};
_.t.onCloseClick=function(){_.E$(this.hostElement,"picker-cancelled")};
_.t.observeSelected=function(){this.selected&&this.hostElement.focus();var a=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");a.length&&a[0].focus()};
_.t.onCloseBuyFlow=function(){_.E$(this.hostElement,"picker-cancelled")};
_.t.onCloseEngageWithAudienceEditorPanels=function(){_.E$(this.hostElement,"picker-cancelled")};
Ev.prototype.observeSelected=Ev.prototype.observeSelected;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Ev.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ev.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ev.prototype,"data",void 0);
_.f([_.b({computed:"computeId(data)",reflectToAttribute:!0}),_.z("design:type",String)],Ev.prototype,"id",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ev.prototype,"selected",void 0);_.f([_.a5("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ev.prototype,"observeSelected",null);Ev=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],Ev);
_.D(Ev,"yt-live-chat-product-picker-renderer",function(){if(pqK===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;KL2===void 0&&(KL2=document.createElement("template"));var Z=KL2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);pqK=a}a=pqK;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var rg0;var AgE;var hmn;var ii9;var al=function(){return _.u.apply(this,arguments)||this};
_.c(al,_.u);al.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()};
al.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
al.prototype.created=function(){this.ids={background:_.h$(),maskOne:_.h$(),maskTwo:_.h$(),gradient:_.h$(),largeBackground:_.h$(),largeGradientOne:_.h$(),largeGradientTwo:_.h$(),largeGradientPath:_.h$()}};
al.prototype.maybeLoadAnimationBackground=al.prototype.maybeLoadAnimationBackground;_.f([_.b({value:!1}),_.z("design:type",Boolean)],al.prototype,"useLargeBackground",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],al.prototype,"useAnimationBackground",void 0);_.f([_.b({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.z("design:type",Boolean)],al.prototype,"useRegularBackground",void 0);
_.f([_.b(),_.z("design:type",Object)],al.prototype,"ids",void 0);_.f([_.b(),_.z("design:type",Object)],al.prototype,"lottieAnimation",void 0);_.f([_.w$("#animation-background"),_.z("design:type",HTMLDivElement)],al.prototype,"animationBackground",void 0);_.f([_.a5("useAnimationBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],al.prototype,"maybeLoadAnimationBackground",null);
al=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],al);
_.D(al,"yt-live-interactivity-component-background",function(){if(ii9===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;hmn===void 0&&(hmn=document.createElement("template"));var Z=hmn;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);ii9=a}a=ii9;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var WU=function(){var a=_.u.apply(this,arguments)||this;a.characterCount=0;a.showInputErrorMessage=!1;a.startQnaRequestInFlight=!1;a.modern=_.r("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};
_.c(WU,_.u);_.t=WU.prototype;
_.t.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]]"}}}}}};
_.t.onCharacterCountChanged=function(a){var W,w,Z,N,B=(w=_.A(this==null?void 0:(W=this.data)==null?void 0:W.creatorCallForQuestions,$Bz))==null?void 0:(Z=w.inputField)==null?void 0:(N=Z.liveChatTextInputFieldRenderer)==null?void 0:N.maxCharacterLimit,I,X;B!=null&&(a==null?void 0:(I=a.detail)==null?void 0:I.characterCount)!=null&&_.A(this==null?void 0:(X=this.data)==null?void 0:X.startButton,_.J4)&&(W=a.detail.characterCount>B,this.set("data.startButton.buttonRenderer.isDisabled",a.detail.characterCount===
0||W),this.showInputErrorMessage=W)};
_.t.onCloseClick=function(){_.E$(this.hostElement,"picker-cancelled");_.aV(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.t.onPickerCancelled=function(){var a=_.M(this.hostElement).querySelector("#qna-creator-text-input-field");a&&a.setLiveChatRichMessageInput(null)};
_.t.handleOpenQnaStartPanel=function(){var a=_.M(this.hostElement).querySelector("#qna-creator-text-input-field");a&&a.focus()};
_.t.handleStartButtonAction=function(a){var W=this;if(a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),a=a.detail.args[1])){var w=_.M(this.hostElement).querySelector("#qna-creator-text-input-field"),Z;(w==null?0:(Z=w.liveChatRichMessageInput)==null?0:Z.textSegments)&&w.liveChatRichMessageInput.textSegments.length!==0&&(Z={rich_message:_.nA(w.liveChatRichMessageInput)},_.Z9(this.hostElement,[a,Z]).then(function(){_.E$(W.hostElement,"picker-cancelled")}))}};
_.t.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.t.handleServiceRequestCompleted=function(a){var W;a=a==null?void 0:(W=a.detail)==null?void 0:W.data;(a==null?0:a.actions)&&a.actions.length>0?this.startQnaRequestInFlight=!1:_.aV(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.t.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
WU.prototype.handleServiceRequestError=WU.prototype.handleServiceRequestError;WU.prototype.handleServiceRequestCompleted=WU.prototype.handleServiceRequestCompleted;WU.prototype.handleServiceRequestSent=WU.prototype.handleServiceRequestSent;WU.prototype.onPickerCancelled=WU.prototype.onPickerCancelled;WU.prototype.onCharacterCountChanged=WU.prototype.onCharacterCountChanged;_.f([_.b(),_.z("design:type",Object)],WU.prototype,"characterCount",void 0);
_.f([_.b(),_.z("design:type",Object)],WU.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],WU.prototype,"showInputErrorMessage",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],WU.prototype,"startQnaRequestInFlight",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],WU.prototype,"modern",void 0);_.f([_.b(),_.z("design:type",Object)],WU.prototype,"buttonOverrides",void 0);
_.f([_.b(),_.z("design:type",Object)],WU.prototype,"closeButtonOverrides",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],WU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ii),_.z("design:type",Object)],WU.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.R(_.n0.YtLiveChatItemBehavior),_.z("design:type",_.jD)],WU.prototype,"ytLiveChatItemBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],WU.prototype,"ytActionHandlerBehavior",void 0);_.f([_.E6("yt-live-chat-text-input-field-renderer-character-count-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],WU.prototype,"onCharacterCountChanged",null);_.f([_.E6("picker-cancelled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WU.prototype,"onPickerCancelled",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WU.prototype,"handleServiceRequestSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],WU.prototype,"handleServiceRequestCompleted",null);
_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],WU.prototype,"handleServiceRequestError",null);WU=_.f([_.C({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],WU);
_.D(WU,"yt-live-chat-qna-start-panel-renderer",function(){if(AgE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;rg0===void 0&&(rg0=document.createElement("template"));var Z=rg0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);AgE=a}a=AgE;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var cgX;var emn;var wg=function(){return _.u.apply(this,arguments)||this};
_.c(wg,_.u);wg.prototype.dismiss=function(){_.E$(this.hostElement,"yt-live-chat-error-message-dismiss")};
wg.prototype.edit=function(){_.E$(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.f([_.b(),_.z("design:type",Object)],wg.prototype,"data",void 0);wg=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],wg);
_.D(wg,"yt-live-chat-text-actions-error-message-renderer",function(){if(emn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;cgX===void 0&&(cgX=document.createElement("template"));var Z=cgX;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);emn=a}a=emn;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var nkf;var jQ0;var LLd;var JgI;var Z6=function(){var a=_.u.apply(this,arguments)||this;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.newnessDotEligible=!1;return a};
_.c(Z6,_.u);Z6.prototype.sendReaction=function(){var a,W,w=((a=this.data)==null?void 0:a.emojiId)||((W=this.data)==null?void 0:W.emoteId),Z;w&&((Z=this.data)==null?0:Z.shouldTriggerAnimation)&&_.aV(this.hostElement,"yt-create-user-reaction-animation",[w]);var N;(a=_.rJ((N=this.data)==null?void 0:N.onTap))&&_.wJ(a,this.hostElement);this.showNewnessDot&&_.aV(this.hostElement,"yt-hide-newness-dot")};
Z6.prototype.onClick=function(a){(!a||a.clientX||a.clientY)&&this.sendReaction()};
Z6.prototype.onKeyDown=function(a){a.key!=="Enter"&&a.key!==" "||a.repeat||this.sendReaction()};
_.dU.Object.defineProperties(Z6.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,W;return!!(((a=this.data)==null?0:a.emojiId)||((W=this.data)==null?0:W.emoteId))}}});
_.f([_.b(),_.z("design:type",Object)],Z6.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Z6.prototype,"isDarkTheme",void 0);_.f([_.b(),_.z("design:type",Object)],Z6.prototype,"newnessDotEligible",void 0);_.f([_.Q("data.maybeShowNewnessDot"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Z6.prototype,"showNewnessDot",null);_.f([_.Q("data.emojiId","data.emoteId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Z6.prototype,"useYtImage",null);
Z6=_.f([_.TD({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Z6);
_.D(Z6,"yt-reaction-control-panel-button-view-model",function(){if(JgI===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;LLd===void 0&&(LLd=document.createElement("template"));var Z=LLd;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);JgI=a}a=JgI;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var FL0;var M_I;var NV=function(){var a=_.u.apply(this,arguments)||this;a.reactionControlPanelExpanded=!1;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.newnessDotEligible=!1;return a};
_.c(NV,_.u);_.t=NV.prototype;_.t.expandedButtonsChanged=function(){var a,W;_.Hu(this.hostElement,{"--expanded-buttons-height":((W=(a=this.expandedButtonsData)==null?void 0:a.length)!=null?W:0)*36+"px"})};
_.t.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}}};
_.t.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.t.onMouseLeave=function(){var a=this;this.collapseTimer=setTimeout(function(){a.reactionControlPanelExpanded=!1},500)};
_.t.onFocusIn=function(){this.onMouseEnter()};
_.t.onFocusOut=function(){this.onMouseLeave()};
_.t.onCollapsedButtonFocusIn=function(){var a=this;setTimeout(function(){var W;(W=a.expandedButtons.querySelector("button"))==null||W.focus()},100)};
_.t.onCollapsedButtonFocusOut=function(a){a.stopPropagation()};
_.dU.Object.defineProperties(NV.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var a,W;return _.T5.unsafeClone((a=this.liveReactionsData)==null?void 0:a.emojiButtonData)||((W=this.data)==null?void 0:W.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var a;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((a=this.data)==null||!a.maybeShowNewnessDot)}}});
NV.prototype.expandedButtonsChanged=NV.prototype.expandedButtonsChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ii),_.z("design:type",Object)],NV.prototype,"ytLiveChatReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],NV.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],NV.prototype,"reactionControlPanelExpanded",void 0);_.f([_.b({selectorArgs:["data.liveReactionsDataEntityKey"],selector:ulE}),_.z("design:type",Object)],NV.prototype,"liveReactionsData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],NV.prototype,"isDarkTheme",void 0);_.f([_.b(),_.z("design:type",Object)],NV.prototype,"newnessDotEligible",void 0);
_.f([_.Q("liveReactionsData","data.expandedButtons"),_.z("design:type",Object),_.z("design:paramtypes",[])],NV.prototype,"expandedButtonsData",null);_.f([_.Q("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.b({reflectToAttribute:!0}),_.z("design:type",Object),_.z("design:paramtypes",[])],NV.prototype,"showNewnessDot",null);_.f([_.w$("#expanded-buttons"),_.z("design:type",HTMLElement)],NV.prototype,"expandedButtons",void 0);
_.f([_.a5("expandedButtonsData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NV.prototype,"expandedButtonsChanged",null);NV=_.f([_.TD({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],NV);
_.D(NV,"yt-reaction-control-panel-view-model",function(){if(M_I===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;FL0===void 0&&(FL0=document.createElement("template"));var Z=FL0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);M_I=a}a=M_I;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var ti=new _.LJ("yt-live-chat"),Rmk=Date.parse("2024-7-24"),$r=function(){var a=_.u.apply(this,arguments)||this;a.emojiManager=_.eD;a.newnessDotEligible=!1;a.newnessDotImpressionCounted=!1;a.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return a};
_.c($r,_.u);_.t=$r.prototype;_.t.emojiCustomizationEnabledChanged=function(){var a;((a=this.data)==null?0:a.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((a=ti.getCreationTime("emoji-customization-count"))&&a<Rmk&&ti.set("emoji-customization-count","0"),a=Number(ti.get("emoji-customization-count"))||0,a<3&&(this.newnessDotEligible=!0,ti.set("emoji-customization-count",(a+1).toString())),this.newnessDotImpressionCounted=!0)};
_.t.hideNewnessDot=function(){this.newnessDotEligible=!1;ti.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.t.handleReactionsMute=function(a){var W=_.nS(),w=_.Ob(206221),Z={checkboxData:{state:a?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};W&&_.b0(W,w,Z);this.reactionsMuted=a};
_.t.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.t.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}}};
_.dU.Object.defineProperties($r.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var a;return(!((a=this.liveReactionsData)==null||!a.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
$r.prototype.liveReactionsSettingChanged=$r.prototype.liveReactionsSettingChanged;$r.prototype.emojiCustomizationEnabledChanged=$r.prototype.emojiCustomizationEnabledChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ii),_.z("design:type",Object)],$r.prototype,"ytLiveChatReduxBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],$r.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$r.prototype,"data",void 0);_.f([_.b(),_.z("design:type",_.hp)],$r.prototype,"emojiManager",void 0);_.f([_.b(),_.z("design:type",Object)],$r.prototype,"newnessDotEligible",void 0);_.f([_.b(),_.z("design:type",Object)],$r.prototype,"newnessDotImpressionCounted",void 0);
_.f([_.b({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:C2a}),_.z("design:type",Boolean)],$r.prototype,"liveReactionsSetting",void 0);_.f([_.b({selectorArgs:["data.liveReactionsDataEntityKey"],selector:ulE}),_.z("design:type",Object)],$r.prototype,"liveReactionsData",void 0);_.f([_.b({value:function(){var a=_.r("enable_lwe_web_mute"),W=ti.get("allow-reactions");return W===void 0?!1:!W&&a}}),
_.z("design:type",Boolean)],$r.prototype,"reactionsMuted",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$r.prototype,"liveReactionsEnabled",null);_.f([_.a5("data.emojiCustomizationEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$r.prototype,"emojiCustomizationEnabledChanged",null);
_.f([_.a5("liveReactionsEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$r.prototype,"liveReactionsSettingChanged",null);$r=_.f([_.TD({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],$r);
_.D($r,"yt-reaction-control-panel-overlay-view-model",function(){if(jQ0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;nkf===void 0&&(nkf=document.createElement("template"));var Z=nkf;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);jQ0=a}a=jQ0;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var qU9={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(a){var W=this.$.pickers.selected;if(W){_.M(this.hostElement).removeAttribute(W+"-open");var w="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(w="#picker-buttons",W==="emoji"&&_.M(this.hostElement).querySelector("#emoji-picker-button")&&(w="#emoji-picker-button"));if(w=_.M(this.hostElement).querySelector(w).querySelector("#"+W))w.active=!1}w=a;W==a&&(w=null);W!=a&&
_.M(this.hostElement).setAttribute(a+"-open","");this.$.pickers.selected=w;_.aV(this.hostElement,"yt-live-chat-picker-changed",[w])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var BU=function(){var a=_.u.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=_.r("kevlar_system_icons");a.tallerEmojiPicker=_.r("live_chat_taller_emoji_picker");
a.blockSendMessageWithCountdown=!_.r("live_chat_enable_send_button_in_slow_mode");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};
_.c(BU,_.u);_.t=BU.prototype;
_.t.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"}}}};
_.t.attached=function(){window.addEventListener("resize",this.onResize)};
_.t.detached=function(){window.removeEventListener("resize",this.onResize)};
_.t.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.t.sendMessage=function(){var a=this,W,w,Z,N;return _.P(function(B){if(a.sendDisabled)return B.return();a.isTooltipVisible&&_.aV(a.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(a.data.sendButton&&a.data.sendButton.buttonRenderer){a.input.completeEmojis();W=a.data.sendButton.buttonRenderer.serviceEndpoint;if(!W)return B.return();Z=((w=_.A(W,_.f$T))==null?void 0:w.clientIdPrefix)||"";N={client_message_id:Z+String(a.numSentMessages++),rich_message:_.nA(a.input.liveChatRichMessageInput)};
a.pendingMessageId=N.client_message_id;a.inReplyPanel&&(a.sendReplyMessageInFlight=!0);_.Z9(a.hostElement,[W,N]);a.input.setLiveChatRichMessageInput(null)}_.Xd(B)})};
_.t.handleSendButtonAction=function(a){a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),this.sendMessage())};
_.t.onSendCompleted=function(a,W){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(a=this.get("timeoutDurationUsec",W.data))&&this.handleTimeout(Number(a)/1E3);this.errorMessage=this.get("errorMessage",W.data);this.pendingMessageId=""};
_.t.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.aV(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.t.handlePickerButtonToggle=function(a){a=a.detail.targetId;this.ytPickerBehavior.togglePicker_(a);if(a==="emoji")this.input.focus();else if(a==="qna-start-panel"){var W,w;(W=_.M(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(w=W.querySelector("#qna-creator-text-input-field"))==null||w.focus()}};
_.t.onComponentReplaced=function(a){var W,w;a.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((W=a.replacement.liveChatMessageInputRenderer)==null?0:(w=W.headerRenderer)==null?0:w.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.t.onEmojiSelect=function(a){this.input.focus();this.input.insertEmoji(a.detail)};
_.t.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.t.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.aV(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.aV(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.t.onOpenPopupAction=function(a,W){var w=this;W===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.aV(w.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.t.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.t.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.t.focusChanged=function(){this.maybeToggleCharacterCount()};
_.t.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};
_.t.computeId=function(){return this.data&&this.data.targetId||""};
_.t.computeSendDisabled=function(a,W,w,Z){a=!!(this.blockSendMessageWithCountdown&&w||!a||W&&a>W||Z);(W=_.M(this.hostElement).querySelector("#send-button"))&&W.children.length&&(W.children[0].disabled=a);return a};
_.t.handleTimeout=function(a){this.timeoutDurationMs=this.timeoutMs=a;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.t.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};
_.t.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.t.onErrorMessageEdit=function(a){this.input.setLiveChatRichMessageInput(a.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.t.errorMessageChanged=function(){var a=this;_.cA(function(){_.aV(a.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.t.computeAuthorNameColor=function(a){var W;if(_.r("live_chat_author_name_color_usernames")&&(a==null?0:(W=a.authorName)==null?0:W.simpleText))return _.RAU(_.qrS(a.authorName.simpleText));if(_.r("live_chat_seed_color_usernames")&&(a==null?0:a.authorSeedColorArgb))return _.RAU(_.HA(a.authorSeedColorArgb));if(_.r("live_chat_colored_usernames"))return"#cc0000";var w;return _.r("live_chat_simple_color_usernames")&&(a==null?0:(w=a.authorName)==null?0:w.simpleText)&&(a==null?0:a.authorUsernameColorLight)&&
(a==null?0:a.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.HA(a.authorUsernameColorDark):_.HA(a.authorUsernameColorLight):""};
_.t.onIsTooltipVisibleChanged=function(){var a=_.M(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){a.hidden=!1;a.setAttribute("role","alert")},0):(a.hidden=!0,a.removeAttribute("role"))};
_.t.onFocusedChanged=function(a){this.inputFocused=a.detail.value};
_.dU.Object.defineProperties(BU.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,W;return((a=this.data)==null?void 0:(W=a.pickers)==null?void 0:W.find(function(w){return w.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)}}});
BU.prototype.onIsTooltipVisibleChanged=BU.prototype.onIsTooltipVisibleChanged;BU.prototype.errorMessageChanged=BU.prototype.errorMessageChanged;BU.prototype.onErrorMessageEdit=BU.prototype.onErrorMessageEdit;BU.prototype.onErrorMessageDismiss=BU.prototype.onErrorMessageDismiss;BU.prototype.focusChanged=BU.prototype.focusChanged;BU.prototype.characterCountChanged=BU.prototype.characterCountChanged;BU.prototype.onEmojiSelect=BU.prototype.onEmojiSelect;BU.prototype.handlePickerButtonToggle=BU.prototype.handlePickerButtonToggle;
BU.prototype.onSendError=BU.prototype.onSendError;BU.prototype.onSendCompleted=BU.prototype.onSendCompleted;BU.prototype.sendMessage=BU.prototype.sendMessage;BU.prototype.dataChanged=BU.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],BU.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(qU9.YtPickerBehavior),_.z("design:type",Object)],BU.prototype,"ytPickerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],BU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.c7.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],BU.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],BU.prototype,"hasFiredInitialFocusActions",void 0);
_.f([_.b(),_.z("design:type",Object)],BU.prototype,"isBeforeFocusEnabled",void 0);_.f([_.b(),_.z("design:type",Object)],BU.prototype,"data",void 0);_.f([_.b({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",Object)],BU.prototype,"id",void 0);_.f([_.b(),_.z("design:type",Object)],BU.prototype,"characterCount",void 0);_.f([_.b(),_.z("design:type",Object)],BU.prototype,"maxCharacterLimit",void 0);
_.f([_.b(),_.z("design:type",Object)],BU.prototype,"remainingCharacterCount",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BU.prototype,"inputExpanded",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],BU.prototype,"inputFocused",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],BU.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.f([_.b(),_.z("design:type",_.Fj)],BU.prototype,"participantsManager",void 0);
_.f([_.b(),_.z("design:type",Object)],BU.prototype,"buttonOverrides",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BU.prototype,"inReplyPanel",void 0);_.f([_.Q("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BU.prototype,"sendDisabled",null);_.f([_.b(),_.z("design:type",Object)],BU.prototype,"countdownRatio",void 0);
_.f([_.Q("countdownRatio"),_.z("design:type",Number),_.z("design:paramtypes",[])],BU.prototype,"countdownStrokeDashOffset",null);_.f([_.Q("countdownRatio"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BU.prototype,"countdownActive",null);_.f([_.Q("data.interactionMessage"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BU.prototype,"hasInteractionMessage",null);
_.f([_.Q("data.emojiPickerButton"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BU.prototype,"hasEmojiPickerButton",null);_.f([_.Q("data, characterCount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BU.prototype,"showAvatar",null);_.f([_.Q("data.pickers"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BU.prototype,"hasProductPickerPanelViewModel",null);
_.f([_.b(),_.z("design:type",Object)],BU.prototype,"errorMessage",void 0);_.f([_.b(),_.z("design:type",Object)],BU.prototype,"genericErrorMessage",void 0);_.f([_.b(),_.z("design:type",Object)],BU.prototype,"isTooltipVisible",void 0);_.f([_.b(),_.z("design:type",Object)],BU.prototype,"tooltipTimeout",void 0);_.f([_.Q("data.onInitialFocusCommand"),_.z("design:type",String),_.z("design:paramtypes",[])],BU.prototype,"tooltipMessage",null);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BU.prototype,"systemIcons",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BU.prototype,"tallerEmojiPicker",void 0);_.f([_.Q("data"),_.z("design:type",String),_.z("design:paramtypes",[])],BU.prototype,"authorNameColor",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BU.prototype,"blockSendMessageWithCountdown",void 0);_.f([_.b(),_.z("design:type",Object)],BU.prototype,"sendReplyMessageInFlight",void 0);
_.f([_.w$("#input"),_.z("design:type",_.tjV)],BU.prototype,"input",void 0);_.f([_.w$("#count"),_.z("design:type",HTMLElement)],BU.prototype,"count",void 0);_.f([_.w$("#input-container"),_.z("design:type",HTMLElement)],BU.prototype,"inputContainer",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BU.prototype,"dataChanged",null);
_.f([_.E6("yt-live-chat-send-message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],BU.prototype,"sendMessage",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[Event,_.x_]),_.z("design:returntype")],BU.prototype,"onSendCompleted",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BU.prototype,"onSendError",null);
_.f([_.E6("yt-live-chat-icon-toggle-button-renderer-toggle"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],BU.prototype,"handlePickerButtonToggle",null);_.f([_.E6("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],BU.prototype,"onEmojiSelect",null);
_.f([_.a5("characterCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BU.prototype,"characterCountChanged",null);_.f([_.a5("inputFocused"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BU.prototype,"focusChanged",null);_.f([_.E6("yt-live-chat-error-message-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BU.prototype,"onErrorMessageDismiss",null);
_.f([_.E6("yt-live-chat-error-message-edit"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],BU.prototype,"onErrorMessageEdit",null);_.f([_.a5("errorMessage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BU.prototype,"errorMessageChanged",null);_.f([_.a5("isTooltipVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BU.prototype,"onIsTooltipVisibleChanged",null);
BU=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],BU);
_.D(BU,"yt-live-chat-message-input-renderer",function(){if(t_X===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;NBX===void 0&&(NBX=document.createElement("template"));var Z=NBX;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);t_X=a}a=t_X;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var QQz;var x0E;var lz=function(){var a=_.u.apply(this,arguments)||this;a.systemIcons=_.r("kevlar_system_icons");a.firedOnClickCommand=!1;a.inReplyPanel=!1;return a};
_.c(lz,_.u);
lz.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"}}}};
lz.prototype.onButtonToggle=function(a){a.target.disabled||this.ytPickerBehavior.togglePicker_(a.detail.targetId)};
lz.prototype.onClick=function(){var a=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.aV(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return a.firedOnClickCommand=!1},5E3))};
_.dU.Object.defineProperties(lz.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.data)==null?void 0:(W=a.panels)==null?void 0:W.find(function(w){return w.liveChatProductPickerPanelViewModel}))!==void 0}}});
lz.prototype.onButtonToggle=lz.prototype.onButtonToggle;_.f([_.R(qU9.YtPickerBehavior),_.z("design:type",Object)],lz.prototype,"ytPickerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],lz.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lz.prototype,"systemIcons",void 0);_.f([_.b({reflectToAttribute:!1}),_.z("design:type",Object)],lz.prototype,"firedOnClickCommand",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lz.prototype,"inReplyPanel",void 0);_.f([_.Q("data.pickers"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],lz.prototype,"hasProductPickerPanelViewModel",null);
_.f([_.E6("yt-live-chat-icon-toggle-button-renderer-toggle"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],lz.prototype,"onButtonToggle",null);lz=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],lz);
_.D(lz,"yt-live-chat-restricted-participation-renderer",function(){if(x0E===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;QQz===void 0&&(QQz=document.createElement("template"));var Z=QQz;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);x0E=a}a=x0E;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Il=function(){var a=_.u.apply(this,arguments)||this;a.genericErrorMessage=_.b8("Error, try again.");a.inReplyPanel=!1;a.hideBorder=!1;return a};
_.c(Il,_.u);Il.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}}}}}};
_.dU.Object.defineProperties(Il,{template:{configurable:!0,enumerable:!0,get:function(){return EC9()}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Il.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Il.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Il.prototype,"genericErrorMessage",void 0);_.f([_.b(),_.z("design:type",Object)],Il.prototype,"inReplyPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Il.prototype,"hideBorder",void 0);
Il=_.f([_.TD({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Il);_.D(Il,"yt-live-chat-engagement-panel-input-renderer",function(){return EC9()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var bi0,sQD;bi0=_.Ob(115994);sQD=_.Ob(115993);_.PU=function(a,W,w){var Z=this;var N=w.dragDownAction;this.layer=0;this.JSC$19825_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.JSC$19825_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.fullscreen=!1;var B=_.$J();_.$V(B,bi0,this.layer);_.$V(B,sQD,this.layer);this.dragDownAction=function(){N();_.LA(B,{visualElement:Z.fullscreen?bi0:sQD})};
this.gesture=new _.Bf(a,W,this.JSC$19825_watchConfig,"pandown");this.attach()};
_.PU.prototype.attach=function(){this.gesture.attach()};
_.PU.prototype.detach=function(){this.gesture.detach()};
_.PU.prototype.update=function(a){this.fullscreen=a;this.gesture.config=a?this.JSC$19825_watchFullScreenConfig:this.JSC$19825_watchConfig};var uEI={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(a){if(a&&a.length==1&&Array.isArray(a[0].loggingUrls)){a=_.T5.unsafeClone(a[0]);var W=this.macros||{},w=this.getAdModuleClient_();if(!w)return _.tk();a.loggingUrls.forEach(function(Z){if(Z.baseUrl){var N=Z.baseUrl;var B=W;B=B===void 0?{}:B;N=w.getOptions().includes("replaceUrlMacros")?_.nMR(w,"replaceUrlMacros",{url:N,additionalMapping:B}):N;Z.baseUrl=N}},this);
a=[a]}return _.Z9(this.hostElement,a)},
getAdModuleClient_:function(){var a=_.fA(this);return a?(a=a.getPlayer())?new _.vd(a):null:null}}]};var CsE;var Xp=function(){var a=_.u.apply(this,arguments)||this;a.isCollapsed=!1;a.modernPanels=_.r("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};
_.c(Xp,_.u);_.t=Xp.prototype;_.t.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.onDonateTap=function(){var a=this.get("data.donateButton.buttonRenderer.command");if(a){var W=_.nS(),w=this.get("data.donateButton.buttonRenderer.trackingParams");W&&w&&_.b0(W,_.PX(w));this.ytOpenPopupBehavior.openPopup(a)}};
_.t.onShowMore=function(){this.isCollapsed=!1;var a=_.nS(),W=this.get("data.expandButton.buttonRenderer.trackingParams");a&&W&&_.b0(a,_.PX(W))};
_.t.onShowLess=function(){this.isCollapsed=!0};
_.t.dataChanged=function(){_.Hu(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.t.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.t.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()};
_.t.handleOpenPopupAction=function(a){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",a)&&_.aV(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.t.computeHeaderBackgroundUrl=function(a,W){if(a)return W?a.headerBackgroundDarkUrl:a.headerBackgroundUrl};
_.t.isProgressBarVisible=function(a){return!(!a||a.progress===void 0)};
_.t.headerBackgroundClass=function(){return _.LF("HTML_DIR")==="rtl"?"flip":""};
Xp.prototype.dataChanged=Xp.prototype.dataChanged;_.f([_.R(_.Ww.YtOpenPopupBehavior),_.z("design:type",Object)],Xp.prototype,"ytOpenPopupBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Xp.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Xp.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Xp.prototype,"isCollapsed",void 0);_.f([_.b({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.z("design:type",String)],Xp.prototype,"headerBackgroundUrl",void 0);_.f([_.b(),_.z("design:type",Boolean)],Xp.prototype,"isDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Xp.prototype,"modernPanels",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xp.prototype,"dataChanged",null);Xp=_.f([_.C({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Xp);
_.D(Xp,"ytd-donation-shelf-renderer",function(){if(CsE!==void 0)return CsE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return CsE=a},{mode:1});var GyK;var vU=function(){return _.u.apply(this,arguments)||this};
_.c(vU,_.u);_.f([_.b(),_.z("design:type",Object)],vU.prototype,"data",void 0);vU=_.f([_.C({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],vU);
_.D(vU,"ytd-donation-unavailable-renderer",function(){if(GyK!==void 0)return GyK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return GyK=a},{mode:1});var D0f;var gg=function(){return _.u.apply(this,arguments)||this};
_.c(gg,_.u);gg.prototype.computeIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],gg.prototype,"data",void 0);gg=_.f([_.C({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],gg);
_.D(gg,"ytd-limited-state-message-renderer",function(){if(D0f!==void 0)return D0f;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return D0f=a},{mode:1});var fMa;var ol=function(){return _.u.apply(this,arguments)||this};
_.c(ol,_.u);ol.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
ol.prototype.onTap=function(a){var W=this.data&&this.data.endpoint;W&&!_.b5(_.qj(a),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.E$(this.hostElement,"yt-navigate",{endpoint:W})};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ol.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ol.prototype,"data",void 0);ol=_.f([_.C({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],ol);
_.D(ol,"ytd-autotagging-metadata-renderer",function(){if(fMa!==void 0)return fMa;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return fMa=a},{mode:1});var d00;var kr=function(){return _.u.apply(this,arguments)||this};
_.c(kr,_.u);kr.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kr.prototype,"data",void 0);kr=_.f([_.C({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],kr);
_.D(kr,"ytd-autotagging-metadata-row-renderer",function(){if(d00!==void 0)return d00;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return d00=a},{mode:1});var m0D;var V_d;var UE=function(){var a=_.u.apply(this,arguments)||this;a.engagementPanelContent=!1;return a};
_.c(UE,_.u);UE.prototype.computeHasDividerLine=function(a,W){return a&&!W};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],UE.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.z("design:type",Boolean)],UE.prototype,"hasDividerLine",void 0);_.f([_.b(),_.z("design:type",Object)],UE.prototype,"engagementPanelContent",void 0);
UE=_.f([_.C({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],UE);
_.D(UE,"ytd-metadata-row-header-renderer",function(){if(V_d!==void 0)return V_d;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return V_d=a},{mode:1});var zmf;var OE=function(){return _.u.apply(this,arguments)||this};
_.c(OE,_.u);OE.prototype.computeHasDividerLine=function(a){return a};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],OE.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.z("design:type",Boolean)],OE.prototype,"hasDividerLine",void 0);OE=_.f([_.C({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],OE);
_.D(OE,"ytd-metadata-row-renderer",function(){if(zmf!==void 0)return zmf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return zmf=a},{mode:1});var HiI;var SR=function(){return _.u.apply(this,arguments)||this};
_.c(SR,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],SR.prototype,"data",void 0);SR=_.f([_.C({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],SR);
_.D(SR,"ytd-metadata-with-image-row-renderer",function(){if(HiI!==void 0)return HiI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return HiI=a},{mode:1});var ygI;var Yr=function(){var a=_.u.apply(this,arguments)||this;a.rounded=!0;a.fixie=!1;a.fullWidth=!1;return a};
_.c(Yr,_.u);_.t=Yr.prototype;_.t.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.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(W){a.onEndpointLinkKeyPress(W)}))};
_.t.onEndpointLinkKeyPress=function(a){a.target===this.endpointLink&&a.keyCode===13&&_.E$(this.hostElement,"click")};
_.t.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var a;if((a=this.data)==null?0:a.endpoint)_.N1(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.t.onYtNavigate=function(a){this.endpointHref||(a.stopPropagation(),a.preventDefault())};
_.t.onInformationButtonContainerClick=function(a){a.target.id!=="information-button-container"&&(a.stopPropagation(),a.preventDefault())};
_.t.computeStyle=function(a){return a};
_.t.computeIsThumbnailStyle=function(a){return a==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.t.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}};
_.t.computeThumbnailObjectFit=function(a){switch(a){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.dU.Object.defineProperties(Yr.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}}});
Yr.prototype.onYtNavigate=Yr.prototype.onYtNavigate;Yr.prototype.onClick=Yr.prototype.onClick;Yr.prototype.onDataChanged=Yr.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Yr.prototype,"componentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Yr.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],Yr.prototype,"componentStyle",void 0);_.f([_.b({computed:"computeIsThumbnailStyle(data.style)"}),_.z("design:type",Boolean)],Yr.prototype,"isThumbnailStyle",void 0);_.f([_.b({computed:"computeThumbnailObjectFit(data.style)"}),_.z("design:type",String)],Yr.prototype,"thumbnailObjectFit",void 0);
_.f([_.b({computed:"computeThumbnailWidth(data.style)"}),_.z("design:type",Number)],Yr.prototype,"thumbnailWidth",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Yr.prototype,"rounded",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Yr.prototype,"fixie",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Yr.prototype,"fullWidth",void 0);_.f([_.w$("#endpoint-link"),_.z("design:type",HTMLAnchorElement)],Yr.prototype,"endpointLink",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yr.prototype,"onDataChanged",null);_.f([_.Q("data.endpoint"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yr.prototype,"endpointHref",null);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Yr.prototype,"onClick",null);
_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Yr.prototype,"onYtNavigate",null);Yr=_.f([_.C({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Yr);
_.D(Yr,"ytd-rich-metadata-renderer",function(){if(ygI!==void 0)return ygI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ygI=a},{mode:_.Vn("kevlar_poly_si_batch_j075")?1:2});var EkK;var TM=function(){var a=_.u.apply(this,arguments)||this;a.fixie=!1;a.fullWidth=!1;return a};
_.c(TM,_.u);TM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
TM.prototype.computeHasDividerLine=function(a){return a};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],TM.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.z("design:type",Boolean)],TM.prototype,"hasDividerLine",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],TM.prototype,"fixie",void 0);_.f([_.b(),_.z("design:type",Object)],TM.prototype,"fullWidth",void 0);
TM=_.f([_.C({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],TM);
_.D(TM,"ytd-rich-metadata-row-renderer",function(){if(EkK!==void 0)return EkK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return EkK=a},{mode:1});var Ku=function(){var a=_.u.apply(this,arguments)||this;a.engagementPanelContent=!1;a.fixie=!1;a.fullWidth=!1;return a};
_.c(Ku,_.u);
Ku.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"}}}};
Ku.prototype.computeCollapsibleItems=function(a,W,w){return a===void 0||W===void 0||w===void 0||w?[]:a.slice(W)};
Ku.prototype.computeAlwaysShownItems=function(a,W){return a&&a.length?a.slice(0,W):[]};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ku.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Ku.prototype,"collapsed",void 0);
_.f([_.b({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.z("design:type",Array)],Ku.prototype,"alwaysShownItems",void 0);_.f([_.b({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.z("design:type",Array)],Ku.prototype,"collapsibleItems",void 0);_.f([_.b(),_.z("design:type",Object)],Ku.prototype,"engagementPanelContent",void 0);_.f([_.b(),_.z("design:type",Object)],Ku.prototype,"fixie",void 0);
_.f([_.b(),_.z("design:type",Object)],Ku.prototype,"fullWidth",void 0);Ku=_.f([_.C({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Ku);
_.D(Ku,"ytd-metadata-row-container-renderer",function(){if(m0D!==void 0)return m0D;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return m0D=a},{mode:1});var ay2;var pu=function(){var a=_.u.apply(this,arguments)||this;a.currentPageUrl="";a.baseUrl="";a.isHiddenByUser=null;a.hidden=!1;a.showAboveScrim=!1;a.watchNextGrid=_.r("kevlar_watch_grid");a.modernButtons=_.r("web_modern_buttons");a.roundedContainer=!0;a.noBorder=!1;a.roundBackground=!_.r("live_chat_round_background_killswitch");a.overflowHideChat=_.r("live_chat_overflow_hide_chat");a.forceDarkTheme=!1;a.theaterWatchWhile=!1;a.isListeningForPlayerProgress=!1;a.JSC$19861_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};
_.c(pu,_.u);_.t=pu.prototype;_.t.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.W_(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.t.created=function(){var a=this;this.handleIframeEventListener=function(W){a.handleIframeEvent(W)};
this.handleKeyboardEventListener=function(W){a.handleKeyboardEvent(W)};
this.JSC$19861_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19861_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19861_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19861_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19861_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.t.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()};
_.t.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};
_.t.computeBaseUrl=function(a){var W="/live_chat";this.isChatReplay()&&(W="/live_chat_replay");return _.wI(_.Wy(_.aZ(_.MF(a),W),null),"").toString()};
_.t.dataChanged=function(){_.r("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.t.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var a=this.url;if(this.isChatReplay()&&this.player){var W=Math.floor(this.player.getProgressState().current*1E3);a=_.qF(_.MF(a),"playerOffsetMs",W.toString()).toString()}W=this.chatframe;try{var w=a==="about:blank"?_.xHH:_.SB(a),Z=W.contentDocument.location,N=_.r5(w);N!==void 0&&Z.replace(N)}catch(B){W.src=a}}};
_.t.collapsedChanged=function(){_.E$(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.t.handleIframeEvent=function(a){if(a&&this.baseUrl.startsWith(a.origin)&&a.source===this.chatframe.contentWindow&&_.tL(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 W=_.K().resolve(_.Vv(_.rih));if(W){var w=a.ports,Z;w&&w.length&&(Z=function(){w[0].postMessage({})});
a=a.data["yt-show-feedback-dialog"];W.showFeedbackDialog(a.customProductData,a.feedbackContent,Z,a.bucket)}}else if(a.data["yt-show-survey"])_.E$(this.hostElement,"yt-show-survey",a.data["yt-show-survey"]);else if(a.data["yt-purchase-membership"])_.K().resolve(_.zU).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"])_.zK();
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&&(W={cpn:this.player.getVideoData().cpn},_.ia("liveChatBeingModerated",W))};
_.t.attachLiveChatResponseVeTrackingParams=function(a){a=_.PX(a);var W=_.nS(),w=_.RT("liveChatRenderer.trackingParams",this.data);W&&w&&_.M1(W,_.PX(w),a)};
_.t.handleBuyflowMessages=function(a){var W=a.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,w=a.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,Z=a.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.xGF(_.lV(_.R1),W.replace(/-/g,"+").replace(/_/g,"/"),function(N){a.ports[0].postMessage({success:!0,buyFlowResponse:N})},void 0,function(N){a.ports[0].postMessage({success:!1,
error:N&&N.message||"Buyflow rejected without error."})},_.gS().get("hl"),void 0,function(){a.ports[0].postMessage({closed:!0})},w,Z)};
_.t.setupPlayerProgressRelay=function(){var a=this;if(!this.isListeningForPlayerProgress){var W=_.d2();W!=null&&W.getPlayerPromise&&(W.getPlayerPromise().then(function(w){a.playerApiReady(w)}),this.isListeningForPlayerProgress=!0)}};
_.t.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.t.playerApiReady=function(a){this.setPlayer(a)};
_.t.playerProgressHandler=function(){if(this.player){var a=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":a.current})}};
_.t.playerAdStartHandler=function(a){this.postToContentWindow({"yt-player-ad-start":a})};
_.t.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.t.playerStateChangeHandler=function(a){this.postToContentWindow({"yt-player-state-change":a})};
_.t.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19861_playerEvents);a&&(this.player=a,this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19861_playerEvents),_.E$(this.hostElement,"player-api-ready"))};
_.t.liveChatPageUrl=function(a,W,w,Z){return!w||W?"about:blank":w.liveChatRenderer?(W=_.MF(this.currentPageUrl).JSC$7940_queryData_,Rk2(W),a=_.MF(a),W.add("continuation",w.liveChatRenderer.continuations[0].reloadContinuationData.continuation),w=_.eM()==="USER_INTERFACE_THEME_DARK",(Z||w)&&W.add("dark_theme","true"),_.Wy(a,W),Z=_.MF(a.toString()),w=Z.JSC$7940_queryData_,"SESSION_INDEX"in _.nF&&(w.add("authuser",_.LF("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.nF&&w.add("pageId",_.LF("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.nF&&w.add("sdc",_.LF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),Z.toString()):""};
_.t.isCollapsed=function(a,W){return W!==null?W:this.isChatReplay()||a&&a.conversationBarRenderer&&a.conversationBarRenderer.availabilityMessage?!0:a?a.liveChatRenderer?a.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.r("live_chat_hide_premiere_replay_message")||a.conversationBarRenderer&&a.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.t.isHidden=function(a,W,w){var Z=W&&W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage,N=W&&W.liveChatRenderer&&W.liveChatRenderer.showHideButton,B=W&&W.liveChatRenderer&&W.liveChatRenderer.showButton;return w&&a&&!Z&&!B||!w&&a&&!Z&&!N?!0:W&&W.liveChatRenderer&&W.liveChatRenderer.initialDisplayState?W.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.t.computeButtonOverride=function(a,W){if(a&&W)return{type:"outline"}};
_.t.setCollapsedState=function(a){_.A(a,_.L1h)&&(this.isHiddenByUser=!!_.A(a,_.L1h).collapsed,!this.isHiddenByUser&&_.r("enable_teaser_framework_web_client")&&_.aV(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.t.forwardReduxActionToIframe=function(a){this.postToContentWindow({"yt-live-chat-forward-redux-action":a})};
_.t.onLoopRangeChange=function(a){this.showAboveScrim=!(a==null||!a.postId)};
_.t.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.t.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.t.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.t.sendDarkThemePostMessage=function(a){this.postToContentWindow({"yt-live-chat-set-dark-theme":a})};
_.t.onLiveChatBuyFlowCallback=function(a){this.postToContentWindow({"yt-live-chat-buy-flow-callback":a})};
_.t.handleKeyboardEvent=function(a){(0,_.T5.containsValue)(Fg0,a.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:a.type,keyCode:a.keyCode}})};
_.t.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.t.postToContentWindow=function(a){if(this.isFrameReady)try{var W=window.location.protocol+"//"+window.location.host,w;(w=this.chatframe)!=null&&w.contentWindow?this.chatframe.contentWindow.postMessage(a,W):_.jJ(new _.Uw("Tried posting a message to an iframe with no content window",a))}catch(Z){_.eJ(Z)}};
_.t.shouldHideChatFrame=function(a){return a&&_.r("hide_live_chat_button_when_collapsed")};
_.dU.Object.defineProperties(pu.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.r("live_chat_overflow_hide_chat")||_.r("web_watch_chat_hide_button_killswitch"))return _.r("live_chat_overflow_hide_chat");var a,W,w,Z;return!!((a=this.data)==null?0:(W=a.liveChatRenderer)==null?0:(w=W.header)==null?0:(Z=w.liveChatHeaderRenderer)==null?0:Z.collapseButton)}}});
pu.prototype.collapsedChanged=pu.prototype.collapsedChanged;pu.prototype.urlChanged=pu.prototype.urlChanged;pu.prototype.dataChanged=pu.prototype.dataChanged;pu.prototype.onShowHideChat=pu.prototype.onShowHideChat;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],pu.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],pu.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],pu.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.R(_.Ww.YtOpenPopupBehavior),_.z("design:type",Object)],pu.prototype,"ytOpenPopupBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],pu.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],pu.prototype,"currentPageUrl",void 0);
_.f([_.b({computed:"computeBaseUrl(currentPageUrl,data)"}),_.z("design:type",Object)],pu.prototype,"baseUrl",void 0);_.f([_.b({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.z("design:type",String)],pu.prototype,"url",void 0);_.f([_.b(),_.z("design:type",Object)],pu.prototype,"isHiddenByUser",void 0);_.f([_.b({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.z("design:type",Object)],pu.prototype,"hidden",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.z("design:type",Boolean)],pu.prototype,"collapsed",void 0);_.f([_.b({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.z("design:type",Boolean)],pu.prototype,"hideChatFrame",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pu.prototype,"showAboveScrim",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pu.prototype,"watchNextGrid",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],pu.prototype,"modernButtons",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pu.prototype,"roundedContainer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pu.prototype,"noBorder",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],pu.prototype,"roundBackground",void 0);
_.f([_.b({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.z("design:type",Object)],pu.prototype,"toggleButtonOverride",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],pu.prototype,"overflowHideChat",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pu.prototype,"forceDarkTheme",void 0);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],pu.prototype,"enableShowWithoutHideChatButton",null);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pu.prototype,"theaterWatchWhile",void 0);_.f([_.w$("#chatframe"),_.z("design:type",HTMLIFrameElement)],pu.prototype,"chatframe",void 0);_.f([_.E6("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pu.prototype,"onShowHideChat",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pu.prototype,"dataChanged",null);
_.f([_.a5("url"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pu.prototype,"urlChanged",null);_.f([_.a5("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pu.prototype,"collapsedChanged",null);pu=_.f([_.C({is:"ytd-live-chat-frame",disableElementRegistration:!0})],pu);
_.D(pu,"ytd-live-chat-frame",function(){if(ay2!==void 0)return ay2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ay2=a},{mode:1});var WWf;var rg=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("web_modern_buttons");a.buttonOverrides={style:"call-to-action",type:"filled"};return a};
_.c(rg,_.u);rg.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=_.KC(this.data.backgroundColor)))};
rg.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var a=this.getFormattedStringLoggingDirectives(this.data.headline);a&&this.rendererBehavior.logExplicitClick(a)}};
rg.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var a=this.getFormattedStringLoggingDirectives(this.data.description);a&&this.rendererBehavior.logExplicitClick(a)}};
rg.prototype.getFormattedStringLoggingDirectives=function(a){return a&&a.runs&&a.runs.length>0&&a.runs[0]&&a.runs[0].loggingDirectives?a.runs[0].loggingDirectives:null};
rg.prototype.dataChanged=rg.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],rg.prototype,"rendererBehavior",void 0);_.f([_.R(uEI.YtMacroReplacementBehavior),_.z("design:type",Object)],rg.prototype,"macroReplacementBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],rg.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],rg.prototype,"navigationEndpoint",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],rg.prototype,"enableColors",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rg.prototype,"modern",void 0);_.f([_.b(),_.z("design:type",Object)],rg.prototype,"buttonOverrides",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rg.prototype,"dataChanged",null);rg=_.f([_.C({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],rg);
_.D(rg,"ytd-action-basic-immersive-content-renderer",function(){if(WWf!==void 0)return WWf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return WWf=a},{mode:1});var wx2;var Zqn;var Ai=function(){return _.u.apply(this,arguments)||this};
_.c(Ai,_.u);Ai.prototype.dataChanged=function(){var a;((a=this.data)==null?void 0:a.backgroundColor)!==void 0&&_.Hu(this.hostElement,{"--bgu-color":_.KC(this.data.backgroundColor)})};
Ai.prototype.onImageTileClick=function(){var a;((a=this.data)==null?0:a.navigationEndpoint)&&_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var W;((W=this.data)==null?0:W.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.dU.Object.defineProperties(Ai.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,W,w;if(((a=this.data)==null?void 0:(W=a.detailsLine)==null?void 0:W.texts)!=null&&((w=this.data)==null?void 0:w.detailsLine.texts.length)>0){var Z;return(Z=this.data)==null?void 0:Z.detailsLine.texts.map(function(N){return N.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var a,W,w;if(((a=this.data)==null?void 0:(W=a.optionalDetailsLine)==null?void 0:W.texts)!=null&&((w=this.data)==null?void 0:w.optionalDetailsLine.texts.length)>0){var Z;return(Z=this.data)==null?void 0:Z.optionalDetailsLine.texts.map(function(N){return N.text}).join("")}return null}}});
Ai.prototype.dataChanged=Ai.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ai.prototype,"rendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Ai.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ai.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data.backgroundColor"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ai.prototype,"hasBackgroundColor",null);
_.f([_.Q("data.objectFit"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ai.prototype,"getObjectFit",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.tileRenderingStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ai.prototype,"hasTileMetadata",null);_.f([_.Q("data.detailsLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ai.prototype,"getSecondaryDetails",null);
_.f([_.Q("data.optionalDetailsLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ai.prototype,"getOptionalDetails",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ai.prototype,"dataChanged",null);Ai=_.f([_.C({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Ai);
_.D(Ai,"ytd-image-tile-renderer",function(){if(Zqn!==void 0)return Zqn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Zqn=a},{mode:1});var Nva;var hi=function(){return _.u.apply(this,arguments)||this};
_.c(hi,_.u);hi.prototype.getOpenLinkIcon=function(){return _.r("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
hi.prototype.onSitelinkTap=function(){_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.r("kevlar_command_handler_migration_killswitch"))_.N1(this.hostElement,this.data.clickCommands,this.hostElement);else for(var a=_.l(this.data.clickCommands),W=a.next();!W.done;W=a.next())this.ytComponentBehavior.resolveCommand(W.value)};
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],hi.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],hi.prototype,"rendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],hi.prototype,"data",void 0);hi=_.f([_.C({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],hi);
_.D(hi,"ytd-sitelink-renderer",function(){if(Nva!==void 0)return Nva;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Nva=a},{mode:1});var iz=function(){var a=_.u.apply(this,arguments)||this;a.paddingFix=_.r("enable_ads_web_ep_buenos_aires_and_padding_fix");return a};
_.c(iz,_.u);iz.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"}}}};
iz.prototype.dataChanged=function(){var a=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;a.ytMacroReplacementBehavior.sendServiceRequestAction([W])})};
iz.prototype.shouldHideFooter=function(a){return!(a&&_.r("use_ads_engagement_panel_desktop_footer_cta"))};
_.dU.Object.defineProperties(iz.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.data)==null?void 0:a.imageTileRenderers)===void 0||((W=this.data)==null?void 0:W.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(w){var Z;return(Z=_.A(w,s_d))==null?void 0:Z.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.data)==null?void 0:a.imageTileRenderers)===void 0||((W=this.data)==null?void 0:W.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(w){var Z;return((Z=_.A(w,s_d))==null?void 0:Z.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
iz.prototype.dataChanged=iz.prototype.dataChanged;_.f([_.R(uEI.YtMacroReplacementBehavior),_.z("design:type",Object)],iz.prototype,"ytMacroReplacementBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],iz.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],iz.prototype,"paddingFix",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data.imageTileRenderers"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],iz.prototype,"removeBorderFromImageTiles",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.imageTileRenderers"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],iz.prototype,"useFooteredMetadataRenderingStyle",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iz.prototype,"dataChanged",null);iz=_.f([_.C({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],iz);
_.D(iz,"ytd-action-engagement-panel-content-renderer",function(){if(wx2!==void 0)return wx2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return wx2=a},{mode:1});var tP0;var $Ga=_.xQ(function(a){var W=a.data;var w=a.customCommandResolver;a=_.D8();_.m5(a,function(){return W().interaction},w);
_.yz(a,{visibilityCallback:function(Z){var N,B=(N=W().interaction)==null?void 0:N.onFirstVisible;Z&&B&&_.cX(B)},
showOption:_.uC});return _.k("ad-grid-card-image-full-metadata-view-model",{class:function(){var Z;return((Z=W().interaction)==null?0:Z.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:a,"aria-label":function(){var Z,N;return(Z=W().interaction)==null?void 0:(N=Z.accessibility)==null?void 0:N.label}},_.k("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.k(_.Ax,{data:function(){return W().adImage}},{adImageViewModel:function(Z){return _.k(_.w_,{data:Z.data,
customCommandResolver:w})}})),_.k("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.k(_.Y,{cond:function(){return W().headline},
then:function(Z){return _.k(_.k_,{text:Z,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.k(_.Y,{cond:function(){return W().detailsLine},
then:function(Z){return _.k("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.k(_.Ax,{data:Z},{adDetailsLineViewModel:function(N){return _.k(_.VO,{data:N.data,customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.k(_.Y,{cond:function(){return W().secondaryDetailsLine},
then:function(Z){return _.k("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.k(_.Ax,{data:Z},{adDetailsLineViewModel:function(N){return _.k(_.VO,{data:N.data,customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Bi");var BvK=_.xQ(function(a){var W=a.data;var w=a.customCommandResolver;a=_.D8();_.m5(a,function(){return W().interaction},w);
_.yz(a,{visibilityCallback:function(Z){var N,B=(N=W().interaction)==null?void 0:N.onFirstVisible;Z&&B&&_.cX(B)},
showOption:_.uC});return _.k("ad-grid-card-image-view-model",{class:function(){var Z;return((Z=W().interaction)==null?0:Z.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:a,"aria-label":function(){var Z,N;return(Z=W().interaction)==null?void 0:(N=Z.accessibility)==null?void 0:N.label}},_.k(_.Ax,{data:function(){return W().adImage}},{adImageViewModel:function(Z){return _.k(_.w_,{data:Z.data,
customCommandResolver:w})}}),_.k("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.k(_.Ax,{data:function(){return W().adCardBadge}},{adCardBadgeViewModel:_.yOl})))},"Ci");var lyd=_.xQ(function(a){var W=a.data;var w=a.customCommandResolver;a=_.D8();_.m5(a,function(){return W().interaction},w);
_.yz(a,{visibilityCallback:function(Z){var N,B=(N=W().interaction)==null?void 0:N.onFirstVisible;Z&&B&&_.cX(B)},
showOption:_.uC});return _.k("ad-grid-card-text-view-model",{class:function(){var Z;return((Z=W().interaction)==null?0:Z.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:a,"aria-label":function(){var Z,N;return(Z=W().interaction)==null?void 0:(N=Z.accessibility)==null?void 0:N.label}},_.k("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.k(_.Y,{cond:function(){return W().title},
then:function(Z){return _.k(_.k_,{text:Z,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.k("div",{class:function(){return _.r("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.k(_.k6,{each:function(){var Z;
return((Z=W())==null?void 0:Z.descriptions)||[]},
keyBy:"INDEX"},function(Z){return _.k(_.k_,{text:Z,className:function(){return _.r("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.k("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.k(_.Ax,{data:function(){return W().moreInfoButton}},{adButtonViewModel:function(Z){return _.k(_.Gn,{data:Z.data,
customCommandResolver:w})}})))},"Di");var IyI=_.xQ(function(a){var W=a.data;var w=a.customCommandResolver;var Z=a.adGridCardCollectionStyle;a=_.D8();_.yz(a,{visibilityCallback:function(N){var B,I=(B=W().interaction)==null?void 0:B.onFirstVisible;N&&I&&_.cX(I)},
showOption:_.uC});return _.k("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:a,style:function(){return"grid-template-columns: repeat("+aN2(Z?Z():W().style)+", minmax(0, 1fr));"}},_.k(_.Ax,{data:function(){var N;
return(N=W())==null?void 0:N.gridCards}},{adGridCardImageViewModel:function(N){return _.k(BvK,{data:N.data,
customCommandResolver:w})},
adGridCardImageFullMetadataViewModel:function(N){return _.k($Ga,{data:N.data,customCommandResolver:w})},
adGridCardTextViewModel:function(N){return _.k(lyd,{data:N.data,customCommandResolver:w})}}))},"Ei");_.Ct(_.xQ(function(a){var W=a.data;a=_.D8();_.m5(a,function(){return W().interaction},W2I);
_.yz(a,{visibilityCallback:function(w){var Z,N=(Z=W().interaction)==null?void 0:Z.onFirstVisible;w&&N&&_.cX(N)},
showOption:_.uC});return _.k("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:a},_.k("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.k(_.Y,{cond:_.S3D("(min-width: "+((0,_.iZ)()+_.MN)+"px)"),then:function(){return _.k(_.Ax,{data:function(){return W().adGridCardCollection}},{adGridCardCollectionViewModel:function(w){return _.k(IyI,{data:w.data,
customCommandResolver:W2I})}})},
else:function(){return _.k(_.Ax,{data:function(){return W().adGridCardCollection}},{adGridCardCollectionViewModel:function(w){return _.k(IyI,{data:w.data,
customCommandResolver:W2I,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.k("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.k(_.Ax,{data:function(){return W().adButton}},{adButtonViewModel:function(w){return _.k(_.Gn,{data:w.data,
customCommandResolver:W2I})}})))},"Fi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;a=_.D8();_.m5(a,function(){return W().interaction},wV2);
_.yz(a,{visibilityCallback:function(w){var Z,N=(Z=W().interaction)==null?void 0:Z.onFirstVisible;w&&N&&_.cX(N)},
showOption:_.uC});return _.k("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:a},_.k("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.k(_.Ax,{data:function(){if(_.S3D("(min-width: "+((0,_.iZ)()+_.MN)+"px)")())var w=W().adGridCardCollection;else{w=Object.assign({},_.A(W().adGridCardCollection,uAK));var Z;w.gridCards!==void 0&&((Z=w.gridCards)==null?void 0:Z.length)>1?w.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":w.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";w={adGridCardCollectionViewModel:w}}return w}},{adGridCardCollectionViewModel:function(w){return _.k(IyI,{data:w.data,
customCommandResolver:wV2})}})),_.k("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.k(_.Ax,{data:function(){return W().adButton}},{adButtonViewModel:function(w){return _.k(_.Gn,{data:w.data,
customCommandResolver:wV2})}})))},"Gi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.qR}});var cU=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return a};
_.c(cU,_.u);_.t=cU.prototype;_.t.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"}}}};
_.t.attached=function(){this.getDataFromPlayerAndRender()};
_.t.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.t.getDataFromPlayerAndRender=function(){var a=this,W=_.fA(this.hostElement);W&&W.getPlayerPromise().then(function(w){a.getCachedDataAndListen(w)})};
_.t.getCachedDataAndListen=function(a){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=a)};
_.t.resolveCachedActions=function(){var a=_.RT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(a=a&&a())&&!_.T5.isEmpty(a)&&this.sendUpdateEngagementPanelAction(a);(a=(a=_.RT("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&a())&&!_.T5.isEmpty(a)&&this.sendChangeEngagementPanelVisibilityAction(a);(a=(a=_.RT("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&a())&&!_.T5.isEmpty(a)&&this.sendScrollToEngagementPanelCommand(a)};
_.t.sendUpdateEngagementPanelAction=function(a){var W;_.aV(this.hostElement,"yt-update-engagement-panel-action",[(W=_.T5.get(a,"action"))!=null?W:a])};
_.t.sendChangeEngagementPanelVisibilityAction=function(a){_.aV(this.hostElement,"yt-change-engagement-panel-visibility-action",[a])};
_.t.sendScrollToEngagementPanelCommand=function(a){_.aV(this.hostElement,"yt-scroll-to-engagement-panel-command",[a])};
_.t.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.r("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.jJ(Error("fm"))};
cU.prototype.dataChanged=cU.prototype.dataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],cU.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],cU.prototype,"componentBehavior",void 0);_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],cU.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],cU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],cU.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],cU.prototype,"player",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cU.prototype,"dataChanged",null);cU=_.f([_.C({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],cU);
_.D(cU,"ytd-ads-engagement-panel-content-renderer",function(){if(tP0!==void 0)return tP0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
return tP0=a},{mode:1});var PPa;var eR=function(){var a=_.u.apply(this,arguments)||this;a.player=null;a.JSC$19898_playerEvents=new Map;a.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return a};
_.c(eR,_.u);_.t=eR.prototype;_.t.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]]"}}}}}};
_.t.created=function(){this.player=null;this.JSC$19898_playerEvents=new Map;this.JSC$19898_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19898_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19898_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19898_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.t.attached=function(){var a=this,W=_.fA();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));W&&W.getPlayerPromise().then(function(w){a.setPlayer(w);a.set("isPageLoad",!1)})};
_.t.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19898_playerEvents);this.set("player",a);a&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19898_playerEvents),a.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.t.onLoopRangeChange=function(a){var W=_.K().resolve(_.Vv(_.Gw));if((!W||W.isOnWatch())&&this.hostElement.clientHeight){var w;!a&&((w=this.data)==null?0:w.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.t.onVideoProgress=function(a){var W,w,Z=((W=this.player)==null?void 0:(w=W.getPresentingPlayerType)==null?void 0:w.call(W))===2;this.isAdPlaying!==Z&&this.set("isAdPlaying",Z);var N;if(!Z&&(N=this.player)!=null&&N.getLoopRange()){w=this.player.getLoopRange();W=w.startTimeMs;w=w.endTimeMs;Z=this.player.getProgressState(1).seekableStart;var B;W<Z*1E3&&((B=this.data)==null?0:B.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
a=w<a*1E3;var I;((I=this.player)==null?0:I.getLoopRange())&&a&&this.player.seekTo(W/1E3)}};
_.t.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.t.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.t.onYtDeleteClipEngagementPanelCommand=function(a){_.A(a,ZQK).command&&this.ytComponentBehavior.resolveCommand(_.A(a,ZQK).command)};
_.dU.Object.defineProperties(eR.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.b8("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)}}});
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],eR.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],eR.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],eR.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],eR.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],eR.prototype,"isAdPlaying",void 0);_.f([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],eR.prototype,"isPageLoad",void 0);_.f([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],eR.prototype,"isDarkTheme",void 0);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],eR.prototype,"voteCount",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],eR.prototype,"channelEndpoint",null);_.f([_.Q("channelEndpoint"),_.z("design:type",Object),_.z("design:paramtypes",[])],eR.prototype,"channelHref",null);eR=_.f([_.C({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],eR);
_.D(eR,"ytd-clip-attribution-renderer",function(){if(PPa!==void 0)return PPa;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return PPa=a},{mode:1});var XxK;var nu=function(){var a=_.u.apply(this,arguments)||this;a.player=null;a.JSC$19903_playerEvents=new Map;return a};
_.c(nu,_.u);_.t=nu.prototype;_.t.created=function(){this.player=null;this.JSC$19903_playerEvents=new Map;this.JSC$19903_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19903_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19903_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.t.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.t.attached=function(){var a=this,W=_.fA();W&&W.getPlayerPromise().then(function(w){a.setPlayer(w);a.set("isPageLoad",!1)})};
_.t.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19903_playerEvents);this.set("player",a);if(a){this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19903_playerEvents);var W;(a==null?void 0:(W=a.getPresentingPlayerType)==null?void 0:W.call(a))===2&&this.playerAdStartHandler()}};
_.t.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.t.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.t.onVideoProgress=function(){var a,W,w=((a=this.player)==null?void 0:(W=a.getPresentingPlayerType)==null?void 0:W.call(a))===2;this.isAdPlaying!==w&&this.set("isAdPlaying",w)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],nu.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],nu.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],nu.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],nu.prototype,"isAdPlaying",void 0);
_.f([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],nu.prototype,"isPageLoad",void 0);nu=_.f([_.C({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],nu);
_.D(nu,"ytd-clip-section-footer-renderer",function(){if(XxK!==void 0)return XxK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return XxK=a},{mode:1});var vWa;var gWK;var jR=function(){return _.u.apply(this,arguments)||this};
_.c(jR,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],jR.prototype,"data",void 0);jR=_.f([_.C({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],jR);
_.D(jR,"ytd-clip-ad-state-renderer",function(){if(gWK!==void 0)return gWK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return gWK=a},{mode:1});var oWd;var Lu=function(){var a=_.u.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};
_.c(Lu,_.u);_.t=Lu.prototype;_.t.detached=function(){this.userChangedValue=!1};
_.t.handleKeyDown=function(a){if(_.IY)var W=13;else _.zZF&&_.Pz?W=13:W=13;a.keyCode===W&&a.preventDefault()};
_.t.handleInput=function(){var a=_.M(this.hostElement).querySelector("#title");if(a){var W=(a.value||"").replace(/\r|\n/g," ");this.set("value",W);a.value=W;this.valid=a.validate();this.userChangedValue=!0}};
_.t.handleBlur=function(){this.valid=_.M(this.hostElement).querySelector("#title").validate()};
_.t.onValueChanged=function(){_.E$(this.hostElement,"title-changed",{title:this.value})};
_.t.onValidChanged=function(){_.E$(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.t.setInput=function(a,W){var w=_.M(this.hostElement).querySelector("#title");w&&(w.value=a,this.handleInput(),W&&(w.invalid=!1,this.valid=!0))};
_.t.onClipCreationDisable=function(){this.set("disabled",!0)};
_.t.onClipCreationEnable=function(){this.set("disabled",!1)};
_.t.onClipCreationVisibilityChange=function(a){var W=this;a.visible?requestAnimationFrame(function(){var w;((w=_.M(W.hostElement).querySelector("#title"))==null?void 0:w.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Lu.prototype.onValidChanged=Lu.prototype.onValidChanged;Lu.prototype.onValueChanged=Lu.prototype.onValueChanged;Lu.prototype.handleBlur=Lu.prototype.handleBlur;Lu.prototype.handleInput=Lu.prototype.handleInput;Lu.prototype.handleKeyDown=Lu.prototype.handleKeyDown;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Lu.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Lu.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Lu.prototype,"value",void 0);_.f([_.b(),_.z("design:type",Object)],Lu.prototype,"valid",void 0);_.f([_.b(),_.z("design:type",Object)],Lu.prototype,"userChangedValue",void 0);_.f([_.b(),_.z("design:type",Object)],Lu.prototype,"disabled",void 0);_.f([_.E6("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],Lu.prototype,"handleKeyDown",null);
_.f([_.E6("input"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lu.prototype,"handleInput",null);_.f([_.E6("blur"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lu.prototype,"handleBlur",null);_.f([_.a5("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lu.prototype,"onValueChanged",null);
_.f([_.a5("valid"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lu.prototype,"onValidChanged",null);Lu=_.f([_.C({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Lu);
_.D(Lu,"ytd-clip-creation-text-input-renderer",function(){if(oWd!==void 0)return oWd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return oWd=a},{mode:1});var kmk;var UGE;var Oq9;var Ss2;var YsD;var Ji=function(){var a=_.u.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};
_.c(Ji,_.u);_.t=Ji.prototype;_.t.attached=function(){var a=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(W){W=_.l(["screen and (min-resolution: "+W+")","screen and (max-resolution: "+W+")"]);for(var w=W.next();!w.done;w=W.next()){w=w.value;var Z=window.matchMedia(w);Z&&(a.mediaListeners_[w]=a.updatePixelRatio_.bind(a),Z.addEventListener?Z.addEventListener("change",a.mediaListeners_[w]):Z.addListener?Z.addListener(a.mediaListeners_[w]):delete a.mediaListeners_[w])}})};
_.t.detached=function(){this.setPlayer(null);for(var a=_.l(Object.keys(this.mediaListeners_)),W=a.next();!W.done;W=a.next()){var w=W.value;W=this.mediaListeners_[w];(w=window.matchMedia(w))&&(w.removeEventListener?w.removeEventListener("change",W):w.removeListener&&w.removeListener(W))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.t.onVisibilityChangedAction_=function(a){var W=this;a.visible&&!this.player_&&(a=_.fA())&&a.getPlayerPromise().then(function(w){W.setPlayer(w)})};
_.t.setPlayer=function(a){a&&this.set("player_",a)};
_.t.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.t.setUpCanvas_=function(){var a=this.rulerWidth,W=this.devicePixelRatio_,w=this.visible;this.set("canvasReady_",!1);if(w&&W!==0){w=this.aboveRulerHeight+this.rulerHeight;var Z=_.M(this.hostElement).querySelector("#ticks");Z.width=a*W;Z.height=w*W;Z.style.width=a+"px";Z.style.height=w+"px";Z.getContext("2d").scale(W,W);this.set("canvasReady_",!0)}};
_.t.drawRuler_=function(a,W,w,Z,N,B,I,X,v,U,O,S){a&&w&&W&&(a=_.M(this.hostElement).querySelector("#ticks"),W=a.getContext("2d"),W.clearRect(0,0,a.width,a.height),W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),W.lineWidth=2,W.beginPath(),W.moveTo(0,this.aboveRulerHeight),W.lineTo(a.width,this.aboveRulerHeight),W.moveTo(0,a.height),W.lineTo(a.width,a.height),W.stroke(),this.drawRulerTicks_(a,B,N,Z),this.drawStoryboardImages_(a,w,B,N,Z),W.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
W.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(I-B,Z,!1),this.rulerHeight),w=this.timeToPixels_(X-B,Z,!1),W.fillRect(w,this.aboveRulerHeight,a.width-w,this.rulerHeight),this.drawSpeedLines_(a,B,S))};
_.t.drawRulerTicks_=function(a,W,w,Z){var N=a.getContext("2d");N.save();N.lineWidth=1;for(var B=Math.floor(Math.max(0,W-this.tickLabelInterval));B<W+w;B++){N.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var I=(B-W)*Z;N.beginPath();N.moveTo(I,a.height);var X=this.smallTickHeight;B%this.largeTickInterval===0?X=this.largeTickHeight:B%this.mediumTickInterval===0&&(X=this.mediumTickHeight);N.lineTo(I,a.height-X);N.stroke();B%this.tickLabelInterval===0&&(N.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),N.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),N.fillText(iW(B),I+4,12),N.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),N.moveTo(I,0),N.lineTo(I,this.aboveRulerHeight),N.stroke())}N.restore()};
_.t.percentToHex_=function(a){a=Math.round(a*255).toString(16);a.length<2&&(a="0"+a);return a};
_.t.drawSpeedLines_=function(a,W,w){var Z=a.getContext("2d");Z.save();var N=Math.min(25,Math.abs(w)-15)/25,B=a.width*.3*N,I=a.width*-.3,X=a.width*1.3,v=this.aboveRulerHeight;a=a.height;var U=Math.round(4*N),O=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");O.length<7&&(O="#"+O.substring(1,4).repeat(2));var S=this.percentToHex_(.5+N/2);S=O+S;O+="00";if(N>0)for(N=0;N<U;N++){var T=I+Math.random()*(X-I),p=v+Math.random()*(a-v),h=B+W%B,L=Z.createLinearGradient(T,p,T+h,p);
w<0?(L.addColorStop(0,S),L.addColorStop(.4,S),L.addColorStop(.9,O)):(L.addColorStop(.1,O),L.addColorStop(.6,S),L.addColorStop(1,S));Z.strokeStyle=L;Z.lineWidth=1;Z.beginPath();Z.moveTo(T,p);Z.lineTo(T+h,p);Z.stroke()}Z.restore()};
_.t.getStoryboardForTime_=function(a,W,w){w===void 0&&(w=W.getNumberOfStoryboardLevels()-1);a=W.getStoryboardFrameIndex(a,w);return W.getStoryboardFrame(a,w)};
_.t.drawStoryboardImages_=function(a,W,w,Z,N){if(!this.disabled){a=a.getContext("2d");var B=this.getStoryboardForTime_(0,W);if(B){var I=B.width/B.columns;B=B.height/B.rows;var X=I/B,v=this.rulerHeight*X;v=this.tickLabelInterval*(X<this.tickLabelInterval*N/this.rulerHeight?1/Math.floor(this.tickLabelInterval*N/v):Math.round(v/(this.tickLabelInterval*N)));var U=v*N,O=this.rulerHeight,S=U/this.rulerHeight,T=Math.floor(Math.max(0,w-v));for(T-=T%v;T<w+Z;T+=v){var p=this.getStoryboardForTime_(T,W),h=this.getPreloadedStoryboard_(p.url);
if(h){var L=(T-w)*N,F=this.aboveRulerHeight,x=p.column*I,G=p.row*B;if(X<S){var V=O/(U/X);p=I;V*=B;G+=(B-V)/2}else p=U/(O*X)*I,V=B,x+=(I-p)/2;a.drawImage(h,x,G,p,V,L,F,U,O)}else this.fetchStoryboardImage_(p)}}}};
_.t.getPreloadedStoryboard_=function(a){return this.storyboardImages_.find(function(W){if(W.src==a)return!0;var w=W.src.indexOf(a);return w!=-1&&w==W.src.length-a.length})};
_.t.fetchStoryboardImage_=function(a){var W=this,w=this.getPreloadedStoryboard_(a.url),Z=this.pendingStoryboardImages_[a.url];w||Z!==void 0||(w=new Promise(function(N){var B=new Image(a.width,a.height);B.src=a.url;B.onload=function(){N(B)};
B.onerror=function(){N(null)}}),this.pendingStoryboardImages_[a.url]=w,w.then(function(N){N&&W.push("storyboardImages_",N);
return N}).finally(function(){delete W.pendingStoryboardImages_[a.url]}))};
_.t.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.t.timeToPixels_=function(a,W,w){a*=W;return w===void 0||w?a+"px":a};
_.t.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Ji.prototype.drawRuler_=Ji.prototype.drawRuler_;Ji.prototype.setUpCanvas_=Ji.prototype.setUpCanvas_;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Ji.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],Ji.prototype,"start",void 0);_.f([_.b({value:30}),_.z("design:type",Number)],Ji.prototype,"end",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],Ji.prototype,"visible",void 0);_.f([_.b(),_.z("design:type",Object)],Ji.prototype,"player_",void 0);_.f([_.b(),_.z("design:type",Number)],Ji.prototype,"tickSpacing",void 0);_.f([_.b(),_.z("design:type",Number)],Ji.prototype,"windowSizeSec",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],Ji.prototype,"rulerWidth",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],Ji.prototype,"rulerShift",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],Ji.prototype,"canvasReady_",void 0);_.f([_.b({value:function(){return[]}}),
_.z("design:type",Array)],Ji.prototype,"storyboardImages_",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Ji.prototype,"disabled",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],Ji.prototype,"forceRender_",void 0);_.f([_.b({value:1}),_.z("design:type",Number)],Ji.prototype,"devicePixelRatio_",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],Ji.prototype,"windowSpeed",void 0);
_.f([_.a5("visible","devicePixelRatio_","rulerWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ji.prototype,"setUpCanvas_",null);
_.f([_.a5("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.z("design:returntype")],Ji.prototype,"drawRuler_",null);Ji=_.f([_.TD({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Ji);
_.D(Ji,"yt-clip-creation-scrubber-canvas",function(){if(YsD===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);YsD=a}a=YsD;return a},
{mode:2});var Tv9;var KW0;var Fp=function(){var a=_.u.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};
_.c(Fp,_.u);_.t=Fp.prototype;
_.t.created=function(){var a=this;this.JSC$19916_playerEvents=new Map;this.JSC$19916_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19916_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19916_playerEvents.set("onStateChange",this.onStateChange_);var W={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(W).forEach(function(w){a.boundHandlers_[w]=W[w].bind(a)})};
_.t.attached=function(){this.activeLoopRange_=!1;_.M(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.M(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Ob(156731)};
_.t.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.M(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.M(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.t.onVisibilityChangedAction_=function(a){var W=this;a.visible&&!this.player_&&(a=_.fA())&&a.getPlayerPromise().then(function(w){W.setPlayer(w)})};
_.t.setPlayer=function(a){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19916_playerEvents);a&&(this.set("player_",a),this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19916_playerEvents))};
_.t.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.t.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.t.beginHandleDrag_=function(a){this.disabled||(a.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=a.clientX,a.target===_.M(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():a.target===_.M(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.t.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.t.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.t.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.t.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_())};
_.t.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.t.beginWindowScroll_=function(){var a=this;this.scrollInterval_=setInterval(function(){var W=a.windowSlideSpeed;if(W=_.YCI(a.start,a.boundedRulerStartLimit_())?W-.1:_.YCI(a.end,a.boundedRulerEndLimit_())?W+.1:0){var w=a.capRulerOffset_(a.rulerShift_+W);w==a.rulerShift_?W=0:(a.set("rulerShift_",w),_.E$(a.hostElement,"set-fixed-length-range",{start:a.start+W,duration:a.end-a.start}))}a.set("windowSlideSpeed",W)},33)};
_.t.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.t.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))};
_.t.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.t.updateRulerSize_=function(){this.set("rulerWidth_",_.M(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.t.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))};
_.t.handleRulerDrag_=function(a){a=this.pixelsToTime_(a.clientX-this.rulerDragMouseStart_);a=this.capRulerOffset_(this.rulerDragRulerStart_-a);this.set("rulerShift_",a);var W=this.rulerDragStartTime_-(this.rulerDragRulerStart_-a);_.E$(this.hostElement,"set-fixed-length-range",{start:W,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-a)-W})};
_.t.handleWindowDrag_=function(a){var W=a.clientX-this.dragMouseLastX_;this.dragMouseLastX_=a.clientX;a=this.pixelsToTime_(W);_.E$(this.hostElement,"set-fixed-length-range",{start:this.start+a,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.t.capRulerOffset_=function(a){var W=this.seekableStart-this.pixelsToTime_(16),w=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(W,a),w)};
_.t.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.t.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.t.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.t.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.t.handleWindowHandleDrag_=function(a){var W=a.clientX-this.dragMouseLastX_;this.dragMouseLastX_=a.clientX;a=this.pixelsToTime_(W);if(this.draggingLeft_){var w=this.start+a;var Z=this.end}else this.draggingRight_&&(w=this.start,Z=this.end+a);_.E$(this.hostElement,"set-range",{start:w,end:Z,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.t.onVideoProgress_=function(a){this.disabled||(a=this.timeToPixels_(a-this.rulerShift_,this.tickSpacing_),_.M(this.hostElement).querySelector("#playhead").style.transform="translateX("+a+")")};
_.t.onClipCreationDisable_=function(){this.endDrag_()};
_.t.timeToPixels_=function(a,W,w){a*=W;return w===void 0||w?a+"px":a};
_.t.pixelsToTime_=function(a){return a/this.tickSpacing_};
_.t.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.t.centerRuler_=function(a,W,w){this.set("rulerShift_",this.capRulerOffset_(a+(W-a)/2-w/2))};
_.t.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.t.updateLoopRange_=function(a,W,w,Z,N,B,I){a&&(W&&Z&&!w?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(a.pauseVideo(),a.seekTo(N,!1,void 0,void 0,50)):this.draggingRight_?(a.pauseVideo(),a.seekTo(B-.1,!1,void 0,void 0,50)):(I!==void 0?a.seekTo(I,!0,void 0,void 0,50):(W=a.getCurrentTime(),W<N||W>B?a.seekTo(N,!0,void 0,void 0,50):a.seekTo(W,!0,void 0,void 0,50)),a.playVideo()),a.setLoopRange({startTimeMs:N*1E3,endTimeMs:B*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(a.getCurrentTime())):
this.activeLoopRange_&&(a.setLoopRange(null),this.activeLoopRange_=!1))};
_.t.updateHandles_=function(){_.M(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.M(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.t.updateRuler_=function(){var a=this.end,W=this.start,w=this.draggableStartLimit_(),Z=this.draggableEndLimit_();(W<w-.001||a>Z+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.t.computeDurationLabel_=function(a,W){return a?a.replace("$clip_length",parseFloat(W).toFixed(1)):""};
_.t.computeDuration_=function(a,W){return this.isValidTime_(a)&&this.isValidTime_(W)&&a<W?W-a:0};
_.t.isValidTime_=function(a){return isNaN(parseFloat(a))||a<0?!1:this.player_?a>=this.seekableStart&&a<=this.seekableEnd:!0};
_.t.computeWindowSizeSec_=function(a,W,w){return Math.min((a||12E4)/1E3,w-W)};
_.t.computeTickSpacing_=function(a,W){return W?W/a:1};
_.t.onDragStateChanged_=function(){_.E$(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.t.centerRangeOnTime_=function(a){var W=this.duration;a=Npk(a-W/2,W,this.seekableStart,this.seekableEnd);_.E$(this.hostElement,"set-fixed-length-range",{start:a.start,duration:a.end-a.start})};
_.t.nearlyLessThan_=function(a,W,w){return a+(w===void 0?1E-6:w)<W};
_.t.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)}};
_.t.onStateChange_=function(a){this.visible&&!this.disabled&&a==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.t.computeDragState_=function(a,W,w,Z){return a?"left":W?"right":w?"ruler":Z?"window":"none"};
_.t.logClick=function(){var a=_.nS(),W=_.eH();a&&W&&this.scrubberVe_&&(_.r("combine_ve_grafts")?_.tc(_.$J(),this.scrubberVe_,W):_.M1(a,W,this.scrubberVe_),_.b0(a,this.scrubberVe_))};
Fp.prototype.onDragStateChanged_=Fp.prototype.onDragStateChanged_;Fp.prototype.updateRuler_=Fp.prototype.updateRuler_;Fp.prototype.updateHandles_=Fp.prototype.updateHandles_;Fp.prototype.onUpdateLoopRange=Fp.prototype.onUpdateLoopRange;Fp.prototype.onInitializedChanged_=Fp.prototype.onInitializedChanged_;Fp.prototype.onVisibleChanged_=Fp.prototype.onVisibleChanged_;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Fp.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",Object)],Fp.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"start",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"end",void 0);_.f([_.b({computed:"computeDuration_(start, end)"}),_.z("design:type",Number)],Fp.prototype,"duration",void 0);
_.f([_.b(),_.z("design:type",String)],Fp.prototype,"lengthTemplate",void 0);_.f([_.b({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.z("design:type",String)],Fp.prototype,"durationLabel",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"visible",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"player_",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"draggingLeft_",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"draggingRight_",void 0);
_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"draggingRuler_",void 0);_.f([_.b({value:!1}),_.z("design:type",Object)],Fp.prototype,"draggingWindow_",void 0);_.f([_.b({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.z("design:type",Number)],Fp.prototype,"tickSpacing_",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"seekableStart",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"seekableEnd",void 0);
_.f([_.b(),_.z("design:type",Number)],Fp.prototype,"windowSizeMs",void 0);_.f([_.b({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.z("design:type",Number)],Fp.prototype,"windowSizeSec_",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"rulerWidth_",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"rulerShift_",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"windowSlideSpeed",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Fp.prototype,"disabled",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"initialized",void 0);_.f([_.b(),_.z("design:type",Object)],Fp.prototype,"durationAccessibilityLabel",void 0);_.f([_.b({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.z("design:type",String)],Fp.prototype,"dragState",void 0);
_.f([_.a5("visible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fp.prototype,"onVisibleChanged_",null);_.f([_.a5("initialized"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fp.prototype,"onInitializedChanged_",null);_.f([_.a5("player_","visible","disabled","initialized","start","end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fp.prototype,"onUpdateLoopRange",null);
_.f([_.a5("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fp.prototype,"updateHandles_",null);_.f([_.a5("start","end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fp.prototype,"updateRuler_",null);
_.f([_.a5("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fp.prototype,"onDragStateChanged_",null);Fp=_.f([_.TD({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Fp);
_.D(Fp,"yt-clip-creation-scrubber-view",function(){if(KW0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Tv9===void 0&&(Tv9=document.createElement("template"));var Z=Tv9;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);KW0=a}a=KW0;return a},{mode:2});var MV=function(){var a=_.u.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};
_.c(MV,_.u);_.t=MV.prototype;_.t.attached=function(){var a=this;this.startInput.addEventListener("input",function(W){return a.handleStartInput_(W)});
this.endInput.addEventListener("input",function(W){return a.handleEndInput_(W)});
this.startInput.addEventListener("focusout",function(W){return a.handleStartBlur_(W)});
this.endInput.addEventListener("focusout",function(W){return a.handleEndBlur_(W)})};
_.t.setPlayer=function(a){this.set("player_",a)};
_.t.onSetFixedLengthRange_=function(a){var W=a.detail;a=W.start;var w=W.duration,Z=W.startLimit;W=W.endLimit;Z||(Z=this.seekableStart_);W||(W=this.seekableEnd_);a=Npk(a,w,Z,W);this.start=a.start;this.end=a.end};
_.t.onSetRange_=function(a){var W=a.detail;a=W.start;var w=W.end,Z=W.startLimit;W=W.endLimit;Z||(Z=this.seekableStart_);W||(W=this.seekableEnd_);if(a=tcz(a,w,Z,W,this.minLengthSec,this.maxLengthSec))this.start=a.start,this.end=a.end};
_.t.updateInputs_=function(){var a=this.end,W=this.start;this.startInput.focused||(this.startInput.value=iW(W,!0));this.endInput.focused||(this.endInput.value=iW(a,!0))};
_.t.handleStartInput_=function(a){a=Zyn(a.target.value);if(a===null)this.set("startValid",!1);else{var W=this.end,w=tcz(a,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);w?(this.set("endWillUpdate",w.end!==W),this.set("startValid",w.start===a)):this.set("startValid",!1)}};
_.t.handleEndInput_=function(a){a=Zyn(a.target.value);if(a===null)this.set("endValid",!1);else{var W=this.start,w=$e0(this.start,a,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);w?(this.set("startWillUpdate",w.start!==W),this.set("endValid",w.end===a)):this.set("endValid",!1)}};
_.t.handleStartBlur_=function(a){a=Zyn(a.target.value);a===null?this.startInput.value=iW(this.start,!0):this.forceUpdateInputs_(tcz(a,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.t.handleEndBlur_=function(a){a=Zyn(a.target.value);a===null?this.endInput.value=iW(this.end,!0):this.forceUpdateInputs_($e0(this.start,a,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.t.forceUpdateInputs_=function(a){a&&(this.start=a.start,this.end=a.end);this.startInput.value=iW(this.start,!0);this.endInput.value=iW(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.t.initializeClipRange_=function(){var a=this.seekableEnd_,W=this.seekableStart_,w=this.visible_,Z=this.player_;if(!Z||!w||W===null||!a)this.set("initialized",!1);else if(!this.initialized){var N=Z.getCurrentTime(),B=this.getDefaultLengthSec_();w=Z.getVideoData();var I=Z.getPlayerState()==1,X=w.isLive;B=Math.min(B,a-W);N=Math.max(0,N);a=X?$e0(N-B,N,W,a,this.minLengthSec,this.maxLengthSec):I?Npk(N-B/2,B,W,a):Npk(N,B,W,a);this.start=a.start;this.end=a.end;this.set("initialized",!0);w.isLive&&Z.seekTo(a.start);
this.startInput.value=iW(this.start,!0);this.endInput.value=iW(this.end,!0)}};
_.t.onStartChanged_=function(){var a=this;_.E$(this.hostElement,"start-changed",{start:this.start});var W;isNaN((W=this.oldStart)!=null?W:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){a.set("highlightStart",!1);a.startHighlightTimeout=0;a.oldStart=a.start},3E3))};
_.t.onEndChanged_=function(){var a=this;_.E$(this.hostElement,"end-changed",{end:this.end});var W;isNaN((W=this.oldEnd)!=null?W:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){a.set("highlightEnd",!1);a.endHighlightTimeout=0;a.oldEnd=a.end},3E3))};
_.t.onVisibilityChangedAction_=function(a){var W=this;this.set("visible_",a.visible);this.visible_&&!this.player_&&(a=_.fA())&&a.getPlayerPromise().then(function(w){W.setPlayer(w)})};
_.t.computeMinLengthSec_=function(a){return a/1E3||5};
_.t.computeMaxLengthSec_=function(a){return a/1E3||60};
_.t.computeDefaultLengthSec_=function(a){return a/1E3};
_.t.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.t.computeSeekableStart_=function(a,W){return a&&W?a.getProgressState(1).seekableStart:0};
_.t.computeSeekableEnd_=function(a,W){return a&&W?a.getProgressState(1).seekableEnd:0};
_.t.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.t.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.t.onDragState_=function(a){this.set("highlightStart",a.detail.startChanging);this.set("highlightEnd",a.detail.endChanging)};
MV.prototype.onDragState_=MV.prototype.onDragState_;MV.prototype.onEndChanged_=MV.prototype.onEndChanged_;MV.prototype.onStartChanged_=MV.prototype.onStartChanged_;MV.prototype.initializeClipRange_=MV.prototype.initializeClipRange_;MV.prototype.updateInputs_=MV.prototype.updateInputs_;MV.prototype.onSetRange_=MV.prototype.onSetRange_;MV.prototype.onSetFixedLengthRange_=MV.prototype.onSetFixedLengthRange_;
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],MV.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],MV.prototype,"data",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],MV.prototype,"start",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],MV.prototype,"startValid",void 0);
_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],MV.prototype,"startWillUpdate",void 0);_.f([_.b({value:30}),_.z("design:type",Number)],MV.prototype,"end",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],MV.prototype,"endValid",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],MV.prototype,"endWillUpdate",void 0);_.f([_.b({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.z("design:type",Number)],MV.prototype,"minLengthSec",void 0);
_.f([_.b({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.z("design:type",Number)],MV.prototype,"maxLengthSec",void 0);_.f([_.b({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.z("design:type",Number)],MV.prototype,"defaultLengthSec",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],MV.prototype,"visible_",void 0);_.f([_.b(),_.z("design:type",Object)],MV.prototype,"player_",void 0);
_.f([_.b({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.z("design:type",Number)],MV.prototype,"seekableStart_",void 0);_.f([_.b({computed:"computeSeekableEnd_(player_, visible_)"}),_.z("design:type",Number)],MV.prototype,"seekableEnd_",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],MV.prototype,"initialized",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],MV.prototype,"disabled",void 0);
_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],MV.prototype,"highlightStart",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],MV.prototype,"highlightEnd",void 0);_.f([_.w$("#start"),_.z("design:type",HTMLInputElement)],MV.prototype,"startInput",void 0);_.f([_.w$("#end"),_.z("design:type",HTMLInputElement)],MV.prototype,"endInput",void 0);
_.f([_.E6("set-fixed-length-range"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],MV.prototype,"onSetFixedLengthRange_",null);_.f([_.E6("set-range"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],MV.prototype,"onSetRange_",null);_.f([_.a5("start","end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MV.prototype,"updateInputs_",null);
_.f([_.a5("player_","visible_","seekableStart_","seekableEnd_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MV.prototype,"initializeClipRange_",null);_.f([_.a5("start"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MV.prototype,"onStartChanged_",null);_.f([_.a5("end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MV.prototype,"onEndChanged_",null);
_.f([_.E6("clips-drag-state"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],MV.prototype,"onDragState_",null);MV=_.f([_.TD({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],MV);
_.D(MV,"yt-clip-creation-scrubber-renderer",function(){if(Ss2===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Oq9===void 0&&(Oq9=document.createElement("template"));var Z=Oq9;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Ss2=a}a=Ss2;return a},{mode:2});var Rl=function(){var a=_.u.apply(this,arguments)||this;a.player_=null;a.JSC$19930_playerEvents=new Map;a.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return a};
_.c(Rl,_.u);_.t=Rl.prototype;_.t.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"}}}};
_.t.created=function(){this.JSC$19930_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19930_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19930_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19930_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.t.detached=function(){this.setPlayer(null)};
_.t.onVisibilityChangedAction_=function(a){var W=this,w;if((w=this.data)==null?0:w.externalVideoId){var Z;this.videoId=(Z=this.data)==null?void 0:Z.externalVideoId}this.getPlayer().then(function(N){if(a.visible)W.returnTime=N.getCurrentTime(),W.isAtLiveHead=N.getProgressState().isAtLiveHead;else{var B=W.returnTime;W.isAtLiveHead&&(B=Number.POSITIVE_INFINITY);N.seekTo(B,void 0,void 0,void 0,51)}})};
_.t.getPlayer=function(){var a=this;if(!this.player_){var W=_.fA();if(W)return W.getPlayerPromise().then(function(w){a.setPlayer(w);return w})}return Promise.resolve(this.player_)};
_.t.setPlayer=function(a){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19930_playerEvents);if(a){this.player_=a;var W;((W=this.data)==null?0:W.externalVideoId)||this.set("videoId",a.getVideoData().video_id||"");var w;(a==null?void 0:(w=a.getPresentingPlayerType)==null?void 0:w.call(a))===2&&(this.set("isAdPlaying",!0),_.aV(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19930_playerEvents)}};
_.t.ready=function(){_.M(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.t.onTitleChanged_=function(a){this.set("titleValue",a.detail.title)};
_.t.onStartChanged_=function(a){this.set("start",a.detail.start)};
_.t.onEndChanged_=function(a){this.set("end",a.detail.end)};
_.t.onTitleValidChanged_=function(a){this.set("titleValid",a.detail.valid)};
_.t.onStartValidChanged_=function(a){this.set("startValid",a.detail.valid)};
_.t.onEndValidChanged_=function(a){this.set("endValid",a.detail.valid)};
_.t.onVideoDataChange_=function(){var a;if((a=this.data)==null||!a.externalVideoId){var W;this.set("videoId",((W=this.player_)==null?void 0:W.getVideoData().video_id)||"")}};
_.t.computeFormValid_=function(a,W,w,Z){return!!(a&&W&&w&&Z)};
_.t.computeCancelButton_=function(a,W,w){return a&&_.A(a,_.J4)?{buttonRenderer:Object.assign({},_.A(a,_.J4),{isDisabled:W||w})}:null};
_.t.computeSubmitButton_=function(a,W,w){return a&&_.A(a,_.J4)?{buttonRenderer:Object.assign({},_.A(a,_.J4),{command:void 0,isDisabled:!this.formValid||W||w})}:null};
_.t.computeSubmitCommand_=function(a){return a||null};
_.t.onSubmit_=function(a){var W=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),_.Z9(this.hostElement,[this.submitCommand_,a]).then(function(){W.set("isLoading_",!1)},function(){W.set("isLoading_",!1)}))};
_.t.playerAdStartHandler_=function(){_.aV(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.t.playerAdEndHandler_=function(){_.aV(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.t.onVideoProgress_=function(){var a=this;this.getPlayer().then(function(W){var w,Z=(W==null?void 0:(w=W.getPresentingPlayerType)==null?void 0:w.call(W))===2;a.isAdPlaying!==Z&&(Z?a.playerAdStartHandler_():a.playerAdEndHandler_())})};
Rl.prototype.onEndValidChanged_=Rl.prototype.onEndValidChanged_;Rl.prototype.onStartValidChanged_=Rl.prototype.onStartValidChanged_;Rl.prototype.onTitleValidChanged_=Rl.prototype.onTitleValidChanged_;Rl.prototype.onEndChanged_=Rl.prototype.onEndChanged_;Rl.prototype.onStartChanged_=Rl.prototype.onStartChanged_;Rl.prototype.onTitleChanged_=Rl.prototype.onTitleChanged_;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Rl.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",Object)],Rl.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Rl.prototype,"data",void 0);_.f([_.b({value:""}),_.z("design:type",String)],Rl.prototype,"titleValue",void 0);
_.f([_.b({value:!1}),_.z("design:type",Boolean)],Rl.prototype,"titleValid",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],Rl.prototype,"start",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],Rl.prototype,"startValid",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],Rl.prototype,"end",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],Rl.prototype,"endValid",void 0);_.f([_.b({value:""}),_.z("design:type",String)],Rl.prototype,"videoId",void 0);
_.f([_.b({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.z("design:type",Boolean)],Rl.prototype,"formValid",void 0);_.f([_.b({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.z("design:type",Object)],Rl.prototype,"submitButton_",void 0);_.f([_.b({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.z("design:type",Object)],Rl.prototype,"submitCommand_",void 0);
_.f([_.b({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.z("design:type",Object)],Rl.prototype,"cancelButton_",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Rl.prototype,"isLoading_",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Rl.prototype,"isAdPlaying",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],Rl.prototype,"returnTime",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Rl.prototype,"isAtLiveHead",void 0);
_.f([_.E6("title-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Rl.prototype,"onTitleChanged_",null);_.f([_.E6("start-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Rl.prototype,"onStartChanged_",null);_.f([_.E6("end-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Rl.prototype,"onEndChanged_",null);
_.f([_.E6("title-valid-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Rl.prototype,"onTitleValidChanged_",null);_.f([_.E6("start-valid-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Rl.prototype,"onStartValidChanged_",null);_.f([_.E6("end-valid-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Rl.prototype,"onEndValidChanged_",null);
Rl=_.f([_.TD({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Rl);
_.D(Rl,"yt-clip-creation-renderer",function(){if(UGE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;kmk===void 0&&(kmk=document.createElement("template"));var Z=kmk;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);UGE=a}a=UGE;return a},{mode:2});var qV=function(){return _.u.apply(this,arguments)||this};
_.c(qV,_.u);qV.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"}}}};
qV.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(a){return a.hasOwnProperty("clipCreationRenderer")})&&_.aV(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
qV.prototype.onPanelContentVisibleChanged=qV.prototype.onPanelContentVisibleChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.LN.YtVisibilityBehavior),_.z("design:type",Object)],qV.prototype,"ytVisibilityBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],qV.prototype,"ytdReduxBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],qV.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],qV.prototype,"panelContentVisible",void 0);_.f([_.a5("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qV.prototype,"onPanelContentVisibleChanged",null);qV=_.f([_.C({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],qV);
_.D(qV,"ytd-clip-section-renderer",function(){if(vWa!==void 0)return vWa;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return vWa=a},{mode:1});var pxi;var QQ=function(){return _.u.apply(this,arguments)||this};
_.c(QQ,_.u);_.t=QQ.prototype;
_.t.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=_.M9(this.highlightedIndex,-1,this.snippetElements.length);a=this.snippetElements.length;var W=this.highlightedIndex%a;this.highlightedIndex=W*a<0?W+a:W;a=this.snippetElements[this.highlightedIndex];this.highlightSnippet(a);this.ensureVisible(a)}};
_.t.onKeyUp=function(a){var W=this;xef(a)&&(a.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.hF.cancelJob(this.inputTimerId),this.inputTimerId=_.hF.addLowPriorityJob(function(){W.typedValue&&(W.fetchSnippets(W.typedValue),W.logInputGesture(W.data))},1E3))};
_.t.onClick=function(a){(a=_.Lny(a.target,null,"snippet-item"))&&this.selectSnippet(a)};
_.t.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.t.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.t.ready=function(){var a=this;this.inputElement.addEventListener("focus",function(){a.snippetsWrapper.style.removeProperty("display")})};
_.t.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.t.getSourceTimelines=function(){if(!this.data)return[];var a=[];if(this.data.searchInVideoSources)for(var W=_.l(this.data.searchInVideoSources),w=W.next();!w.done;w=W.next())w=w.value,w==="SEARCH_IN_VIDEO_SOURCE_ASR"?a.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):w==="SEARCH_IN_VIDEO_SOURCE_OCR"&&a.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return a};
_.t.fetchSnippets=function(a){var W=_.aV(this.hostElement,"yt-get-current-video-id-action")[0],w=this.getSourceTimelines();a={getSearchInVideoCommand:{externalVideoId:W,query:a!=null?a:"",sourceTimelines:w},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}})};
_.t.filterSnippets=function(a,W){var w=this;if(W){this.filteredSnippets=(0,_.T5.unsafeClone)(a);var Z=RegExp(_.yD7(W),"i");this.filteredSnippets=this.filteredSnippets.filter(function(I){return Z.test(w.ytRendererBehavior.getSimpleString(I.snippet))});
a=_.l(this.filteredSnippets);for(var N=a.next();!N.done;N=a.next()){N=N.value;var B=this.ytRendererBehavior.getSimpleString(N.snippet);N.snippet={runs:[{text:B.substring(0,B.toLowerCase().indexOf(W))},{text:B.substring(B.toLowerCase().indexOf(W),B.toLowerCase().indexOf(W)+W.length),bold:!0},{text:B.substring(B.toLowerCase().indexOf(W)+W.length,B.length)}]}}}else this.filteredSnippets=a};
_.t.onUpdateSearchInVideoResults=function(a){if(!(this.snippets.length>0)){var W,w,Z;if((Z=(W=_.A(a,Hy0))==null?void 0:(w=W.results)==null?void 0:w.length)!=null&&Z){var N;this.filteredSnippets=this.snippets=((N=_.A(a,Hy0))==null?void 0:N.results).map(function(B){var I,X,v;return{startMs:B==null?void 0:(I=B.searchInVideoResultRenderer)==null?void 0:I.startMs,startTimeText:B==null?void 0:(X=B.searchInVideoResultRenderer)==null?void 0:X.startTimeText,snippet:B==null?void 0:(v=B.searchInVideoResultRenderer)==
null?void 0:v.snippet}})}}};
_.t.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};
_.t.highlightSnippet=function(a){a.classList.add("highlighted")};
_.t.removeSnippetHighlight=function(a){a.classList.remove("highlighted")};
_.t.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)};
_.t.ensureVisible=function(a){var W=this.snippetsWrapper.scrollTop,w=W+this.snippetsWrapper.clientHeight,Z=a.offsetTop-this.snippetsWrapper.offsetTop;a=Z+a.clientHeight;Z<W?this.snippetsWrapper.scrollTop-=W-Z:a>w&&(this.snippetsWrapper.scrollTop+=a-w)};
_.t.seekPlayer=function(a){var W,w;return _.P(function(Z){if(Z.nextAddress==1){if(!a)return Z.jumpTo(0);W=Number(a.dataset.startOffset);return _.g(Z,_.d2().getPlayerPromise(),3)}w=Z.yieldResult;w.seekTo(W/1E3,!0);w.wakeUpControls();_.Xd(Z)})};
_.t.logInputGesture=function(a){var W=_.nS();W&&(a==null?0:a.trackingParams)&&_.s_(W,_.PX(a.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.t.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("typed-value-changed",this.typedValue))};
_.t.updateTypedValueFromBinding=function(a){this.typedValue=a.currentTarget.value};
QQ.prototype.typedValueChangedForBinding=QQ.prototype.typedValueChangedForBinding;QQ.prototype.dataChanged=QQ.prototype.dataChanged;QQ.prototype.panelContentVisibleChanged=QQ.prototype.panelContentVisibleChanged;QQ.prototype.onClick=QQ.prototype.onClick;QQ.prototype.onKeyUp=QQ.prototype.onKeyUp;QQ.prototype.onKeyDown=QQ.prototype.onKeyDown;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],QQ.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],QQ.prototype,"data",void 0);_.f([_.b({value:[]}),_.z("design:type",Array)],QQ.prototype,"snippets",void 0);_.f([_.b({value:[]}),_.z("design:type",Array)],QQ.prototype,"filteredSnippets",void 0);_.f([_.b({value:[]}),_.z("design:type",Array)],QQ.prototype,"snippetElements",void 0);
_.f([_.w$("#siv-input"),_.z("design:type",HTMLElement)],QQ.prototype,"inputElement",void 0);_.f([_.w$("#siv-snippets-wrapper"),_.z("design:type",HTMLElement)],QQ.prototype,"snippetsWrapper",void 0);_.f([_.b(),_.z("design:type",String)],QQ.prototype,"typedValue",void 0);_.f([_.b({value:-1}),_.z("design:type",Number)],QQ.prototype,"highlightedIndex",void 0);_.f([_.E6("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[_.Ul]),_.z("design:returntype")],QQ.prototype,"onKeyDown",null);
_.f([_.E6("keyup"),_.z("design:type",Function),_.z("design:paramtypes",[_.Ul]),_.z("design:returntype")],QQ.prototype,"onKeyUp",null);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],QQ.prototype,"onClick",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],QQ.prototype,"panelContentVisible",void 0);
_.f([_.a5("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QQ.prototype,"panelContentVisibleChanged",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QQ.prototype,"dataChanged",null);_.f([_.a5("typedValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QQ.prototype,"typedValueChangedForBinding",null);
QQ=_.f([_.C({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],QQ);
_.D(QQ,"ytd-search-in-video-renderer",function(){if(pxi!==void 0)return pxi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return pxi=a},{mode:1});var rnI;var xr=function(){return _.u.apply(this,arguments)||this};
_.c(xr,_.u);xr.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
xr.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]]"}}}}}};
xr.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var a,W,w,Z,N=(W=_.A((a=this.data)==null?void 0:a.onClickCommand,_.xTT))==null?void 0:(w=W.item)==null?void 0:(Z=w.notificationTextRenderer)==null?void 0:Z.successResponseText;N&&_.tCx(this.hostElement,N)}};
_.dU.Object.defineProperties(xr.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,W,w,Z;return this.isProductPlaceholder&&((a=this.data)==null?void 0:(W=a.hiddenProductOptions)==null?void 0:W.showDropCountdown)&&!!((w=this.data)==null?0:(Z=w.hiddenProductOptions)==null?0:Z.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,W;return!((a=this.data)==null?0:a.priceReplacementText)&&!((W=this.data)==null||!W.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],xr.prototype,"componentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xr.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("isProductPlaceholder"),_.z("design:type",Object),_.z("design:paramtypes",[])],xr.prototype,"useCenterLayoutContainer",null);_.f([_.b({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],xr.prototype,"buttonOverride",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],xr.prototype,"isProductPlaceholder",null);
_.f([_.Q("isProductPlaceholder"),_.z("design:type",Object),_.z("design:paramtypes",[])],xr.prototype,"showDropCountdown",null);_.f([_.Q("isProductPlaceholder","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],xr.prototype,"showBrandName",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],xr.prototype,"showPriceReplacementText",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],xr.prototype,"showPrice",null);
_.f([_.Q("isProductPlaceholder"),_.z("design:type",Object),_.z("design:paramtypes",[])],xr.prototype,"showMetadata",null);xr=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],xr);
_.D(xr,"ytd-product-list-item-renderer",function(){if(rnI!==void 0)return rnI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return rnI=a},{mode:1});var Ank;var bz=function(){return _.u.apply(this,arguments)||this};
_.c(bz,_.u);bz.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
bz.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
bz.prototype.panelContentVisibleChanged=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return a.playerApi?w.jumpTo(2):_.g(w,_.d2().getPlayerPromise(),3);w.nextAddress!=2&&(a.playerApi=w.yieldResult);(W=a.playerApi)==null||W.productsInVideoVisibilityUpdated(!!a.panelContentVisible);_.Xd(w)})};
bz.prototype.panelContentVisibleChanged=bz.prototype.panelContentVisibleChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],bz.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],bz.prototype,"panelContentVisible",void 0);_.f([_.b(),_.z("design:type",Object)],bz.prototype,"data",void 0);
_.f([_.a5("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],bz.prototype,"panelContentVisibleChanged",null);bz=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],bz);
_.D(bz,"ytd-product-list-renderer",function(){if(Ank!==void 0)return Ank;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Ank=a},{mode:1});var hc0;var sE=function(){var a=_.u.apply(this,arguments)||this;a.hideTimestamps=!!_.B7("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};
_.c(sE,_.u);_.t=sE.prototype;_.t.hideTimestampsChanged=function(){_.$H("hide-transcript-timestamps",this.hideTimestamps)};
_.t.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.t.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.t.dataChanged=function(){var a;if((a=this.data)!=null&&a.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;a=_.l(this.data.cueGroups);for(var W=a.next();!W.done;W=a.next()){W=_.l(_.A(W.value,yak).cues);for(var w=W.next();!w.done;w=W.next())this.flatCues.push(Number(_.A(w.value,E90).startOffsetMs))}}};
_.t.onYtPlayerTimeChanged=function(a){if(!(a<0)){for(var W=this.currentCueIndex,w=W;;){var Z=w>=0?this.flatCues[w]/1E3:-1;if(a+.5<Z)--w;else if(Z=w+1<this.flatCues.length?this.flatCues[w+1]/1E3:Infinity,a+.5>Z)w+=1;else break}w!==W&&(W>=0&&((a=this.getCueElement(W))&&a.classList.remove("active"),(W=this.getCueGroupElement(W))&&W.classList.remove("active")),(W=this.getCueElement(w))&&W.classList.add("active"),(W=this.getCueGroupElement(w))&&W.classList.add("active"),this.currentCueIndex=w,this.isHovered||
this.scrollElementToTop(w))}};
_.t.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)};
_.t.getCueElement=function(a){return _.M(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[a]+'"]')};
_.t.getCueGroupElement=function(a){return(a=this.getCueElement(a))&&a.parentElement?a.parentElement.parentElement:null};
_.t.onTap=function(a){var W=_.QV(a);a.target.classList.contains("cue")&&this.seekCueElement(W)};
_.t.onKeyPress=function(a){a.keyCode==13&&(a=_.Lny(a.target,null,"cue"))&&this.seekCueElement(a)};
_.t.seekCueElement=function(a){a=Number(a.getAttribute("start-offset"));_.aV(this.hostElement,"yt-transcript-player-seek",[a/1E3])};
_.t.onMouseEnter=function(){this.isHovered=!0};
_.t.onMouseLeave=function(){this.isHovered=!1};
sE.prototype.onMouseLeave=sE.prototype.onMouseLeave;sE.prototype.onMouseEnter=sE.prototype.onMouseEnter;sE.prototype.onKeyPress=sE.prototype.onKeyPress;sE.prototype.onTap=sE.prototype.onTap;sE.prototype.dataChanged=sE.prototype.dataChanged;sE.prototype.hideTimestampsChanged=sE.prototype.hideTimestampsChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],sE.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sE.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sE.prototype,"hideTimestamps",void 0);_.f([_.b(),_.z("design:type",Boolean)],sE.prototype,"isHovered",void 0);_.f([_.a5("hideTimestamps"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"hideTimestampsChanged",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"dataChanged",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],sE.prototype,"onTap",null);_.f([_.E6("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],sE.prototype,"onKeyPress",null);
_.f([_.E6("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"onMouseEnter",null);_.f([_.E6("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"onMouseLeave",null);sE=_.f([_.C({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],sE);
_.D(sE,"ytd-transcript-body-renderer",function(){if(hc0!==void 0)return hc0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return hc0=a},{mode:1});var iqK;var uz=function(){var a=_.u.apply(this,arguments)||this;a.darkerPanels=_.r("web_watch_darker_panels");return a};
_.c(uz,_.u);uz.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],uz.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uz.prototype,"darkerPanels",void 0);uz=_.f([_.C({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],uz);
_.D(uz,"ytd-transcript-footer-renderer",function(){if(iqK!==void 0)return iqK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return iqK=a},{mode:1});var cnd;var eck;var Cu=function(){var a=_.u.apply(this,arguments)||this;a.systemIcons=_.r("kevlar_system_icons");a.showClearButton=!1;return a};
_.c(Cu,_.u);_.t=Cu.prototype;_.t.handleInput=function(a){var W=this;a.target.value.length?_.eK(this,"ytdTranscriptSearchBoxSearch",function(){W.emitSearchEvent(a)},500):(_.CQC(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=a.target.value.length>0};
_.t.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.t.handleClick=function(){var a,W=(a=this.data)==null?void 0:a.trackingParams;W&&_.lM(_.$J(),W)};
_.t.handleClear=function(){_.CQC(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var a,W,w=(W=_.A((a=this.data)==null?void 0:a.clearButton,_.J4))==null?void 0:W.trackingParams;w&&_.lM(_.$J(),w);this.clear()};
_.t.emitSearchEvent=function(a){_.E$(this.hostElement,"yt-transcript-search-box-search",{query:a.target.value});var W,w;(a=(w=_.A((W=this.data)==null?void 0:W.searchButton,_.J4))==null?void 0:w.trackingParams)&&_.lM(_.$J(),a)};
_.t.emitClearEvent=function(){_.E$(this.hostElement,"yt-transcript-search-box-clear")};
_.dU.Object.defineProperties(Cu.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.M(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Cu.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Cu.prototype,"systemIcons",void 0);Cu=_.f([_.C({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Cu);
_.D(Cu,"ytd-transcript-search-box-renderer",function(){if(eck!==void 0)return eck;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return eck=a},{mode:1});var nWd;var jOz;var GM=function(){return _.u.apply(this,arguments)||this};
_.c(GM,_.u);GM.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var a,W;this.sectionHeaderAriaLabel=(a=this.data)==null?void 0:(W=a.accessibility)==null?void 0:W.accessibilityData.label}};
GM.prototype.fireSelectedEvent=function(a){_.E$(this.hostElement,"ytd-transcript-section-header",{startMs:a})};
GM.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
GM.prototype.handleKeyPress=function(a){this.data&&a.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.dU.Object.defineProperties(GM.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var a,W;return(W=(a=this.data)==null?void 0:a.enableTappableTranscriptHeader)!=null?W:!1}}});
GM.prototype.dataChanged=GM.prototype.dataChanged;_.f([_.b(),_.z("design:type",Object)],GM.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],GM.prototype,"sectionHeaderAriaLabel",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],GM.prototype,"enableTappableTranscriptHeader",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GM.prototype,"dataChanged",null);
GM=_.f([_.C({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],GM);
_.D(GM,"ytd-transcript-section-header-renderer",function(){if(jOz!==void 0)return jOz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return jOz=a},{mode:1});var LWd;var Jnn;var D6=function(){var a=_.u.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:_.P_("suggest_correction",void 0,"Edit caption"),suggested_caption:_.P_("suggested_caption",void 0,"Suggested caption"),submit_correction:_.P_("submit_correction",void 0,"Submit for review"),cancel_correction:_.P_("cancel_correction",
void 0,"Cancel"),replay_segment:_.P_("replay_segment",void 0,"Re-play segment"),delete_correction:_.P_("delete_correction",void 0,"Delete correction")};a.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return a};
_.c(D6,_.u);_.t=D6.prototype;_.t.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)};
_.t.handleDelete=function(a){if(this.deleteCaptionCorrectionPopupCommand){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);W&&this.ytdOpenPopupBehavior.openPopup(W);a.stopPropagation()}};
_.t.handleSubmit=function(a){if(this.data&&this.data.submitCaptionCorrectionCommand&&(a.stopPropagation(),this.textChanged)){var W;a=(W=_.A(this.data.submitCaptionCorrectionCommand,_.QXJ))==null?void 0:W.params;W=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:a,correctionText:String(this.ironTextAreaElement.value),originalText:_.sd(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(W);this.isEditMode=!1}};
_.t.handleUpdateSegmentText=function(a){(a=_.A(a,UB0))&&a.targetId&&this.data&&a.targetId===this.data.targetId&&(a.userCorrection&&(this.editedText=a.userCorrection),a.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.sd(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))};
_.t.handleCancel=function(a){this.isEditMode=!1;a.stopPropagation();this.logClientVe(159409)};
_.t.handleEditSegmentCommand=function(a){(a=_.A(a,kQI))&&a.targetId&&this.data&&a.targetId===this.data.targetId&&this.handleEdit()};
_.t.handleEditButtonClick=function(a){this.data&&(this.handleEdit(),a.stopPropagation())};
_.t.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)}};
_.t.handleMouseEnter=function(){this.mouseOver=!0};
_.t.handleMouseLeave=function(){this.mouseOver=!1};
_.t.handleReplay=function(a){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),a.stopPropagation(),this.logClientVe(159408))};
_.t.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()))};
_.t.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))};
_.t.handleTextboxClick=function(a){a.stopPropagation()};
_.t.handleTextboxKeydown=function(a){this.isControlEnterPress(a)?this.handleSubmit(a):a.key==="Escape"&&this.handleCancel(a)};
_.t.handleTextboxKeyup=function(){this.textChanged=_.sd(this.latestText)!==String(this.ironTextAreaElement.value)};
_.t.fireSelectedEvent=function(a){_.E$(this.hostElement,"yt-transcript-segment-selected",{startMs:a})};
_.t.fireReplayEvent=function(a,W){_.E$(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(a-100,0),endMs:W})};
_.t.fireEditEvent=function(a,W){_.E$(this.hostElement,"yt-transcript-segment-edit",{startMs:a,endMs:W})};
_.t.isEnterPress=function(a){return a.key==="Enter"||a.code==="Enter"||a.code==="NumpadEnter"||a.keyCode===13?!0:!1};
_.t.isControlEnterPress=function(a){var W=a.key==="Enter"||a.code==="Enter"||a.code==="NumpadEnter"||a.keyCode===13;return(a.ctrlKey||a.metaKey)&&W};
_.t.isCopyPress=function(a){var W=a.ctrlKey;return a.key==="c"&&W};
_.t.logClick=function(){var a,W=(a=this.data)==null?void 0:a.trackingParams;W&&_.lM(_.$J(),W)};
_.t.logClientVe=function(a){_.BE(_.$J(),_.Ob(a))};
_.dU.Object.defineProperties(D6.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}}});
D6.prototype.handleMouseLeave=D6.prototype.handleMouseLeave;D6.prototype.handleMouseEnter=D6.prototype.handleMouseEnter;D6.prototype.dataChanged=D6.prototype.dataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],D6.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],D6.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],D6.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],D6.prototype,"isEditMode",void 0);_.f([_.b(),_.z("design:type",Object)],D6.prototype,"touchCaptionsEnabled",void 0);_.f([_.b(),_.z("design:type",Object)],D6.prototype,"editedText",void 0);_.f([_.b(),_.z("design:type",Object)],D6.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.f([_.b(),_.z("design:type",Object)],D6.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.f([_.b(),_.z("design:type",String)],D6.prototype,"segmentAriaLabel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],D6.prototype,"roundedContainer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],D6.prototype,"mouseOver",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],D6.prototype,"textChanged",void 0);_.f([_.b(),_.z("design:type",Object)],D6.prototype,"messages",void 0);
_.f([_.w$("#suggestion"),_.z("design:type",Object)],D6.prototype,"ironTextAreaElement",void 0);_.f([_.Q("data","editedText"),_.z("design:type",Object),_.z("design:paramtypes",[])],D6.prototype,"latestText",null);_.f([_.Q("touchCaptionsEnabled","isEditMode"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],D6.prototype,"enableEditButton",null);
_.f([_.Q("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],D6.prototype,"enableUndoButton",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],D6.prototype,"dataChanged",null);_.f([_.E6("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],D6.prototype,"handleMouseEnter",null);
_.f([_.E6("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],D6.prototype,"handleMouseLeave",null);D6=_.f([_.C({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],D6);
_.D(D6,"ytd-transcript-segment-renderer",function(){if(Jnn!==void 0)return Jnn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Jnn=a},{mode:1});var fu=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};a.isError=!1;a.darkerPanels=_.r("web_watch_darker_panels");a.segmentOffsets=[];a.segmentIndex=-1;return a};
_.c(fu,_.u);_.t=fu.prototype;_.t.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"}}}}};
_.t.segmentsChanged=function(){this.updateOffsets()};
_.t.onYtPlayerTimeChanged=function(a){for(var W=this.segmentIndex,w=W;;){if(w>=0){var Z=this.segmentOffsets[w].start;var N=this.segmentOffsets[w].isAutoScrollable}else Z=-1,N=!0;var B=a+.5;if(!N){Z=w+1<this.segmentOffsets.length?this.segmentOffsets[w+1].start:Infinity;if(B>=Z){w+=1;continue}w=-1;break}if(B<Z)Z=w-1>=0&&this.segmentOffsets[w-1].isAutoScrollable,N=w===0||Z?1:2,w-=N;else if(N=w+1<this.segmentOffsets.length&&this.segmentOffsets[w+1].isAutoScrollable?1:2,Z=w+N<this.segmentOffsets.length?
this.segmentOffsets[w+N].start:Infinity,B>Z)w+=N;else{if(w<0)break;w<this.segmentOffsets.length&&B>this.segmentOffsets[w].end&&(w=-1);break}}if(W!==w){if(W>=0){var I;(I=this.getSegmentElement(W))==null||I.classList.remove("active")}this.segmentIndex=w;if(!(w<0)){var X;(X=this.getSegmentElement(w))==null||X.classList.add("active");this.isHovered||this.scrollElementToTop(w)}}};
_.t.handleSegmentEdit=function(a){a.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=a.target,_.aV(this.hostElement,"yt-transcript-player-edit",[a.detail.startMs/1E3,a.detail.endMs/1E3]))};
_.t.handleSegmentSelected=function(a){_.aV(this.hostElement,"yt-transcript-player-seek",[a.detail.startMs/1E3])};
_.t.handleSegmentReplay=function(a){_.aV(this.hostElement,"yt-transcript-player-replay",[a.detail.startMs/1E3,a.detail.endMs/1E3])};
_.t.handleSectionHeaderSelected=function(a){_.aV(this.hostElement,"yt-transcript-player-seek",[a.detail.startMs/1E3])};
_.t.onMouseEnter=function(){this.isHovered=!0};
_.t.onMouseLeave=function(){this.isHovered=!1};
_.t.onRetryButtonClick=function(){_.E$(this.hostElement,"transcript-retry-button-click")};
_.t.getSegmentElement=function(a){return _.M(this.hostElement).querySelector(":nth-child("+(a+1)+")")};
_.t.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)};
_.t.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(a){var W,w=(W=a.transcriptSegmentRenderer)!=null?W:a.transcriptSectionHeaderRenderer;return{start:Number(w.startMs)/1E3,end:Number(w.endMs)/1E3,isAutoScrollable:a.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.t.clearHighlightedSegments=function(){var a=_.M(this.hostElement);a=_.l(a.querySelectorAll("ytd-transcript-segment-renderer"));for(var W=a.next();!W.done;W=a.next())W.value.classList.remove("active")};
_.dU.Object.defineProperties(fu.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.data)==null?void 0:a.searchResultSegments)||((W=this.data)==null?void 0:W.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
fu.prototype.onMouseLeave=fu.prototype.onMouseLeave;fu.prototype.onMouseEnter=fu.prototype.onMouseEnter;fu.prototype.handleSectionHeaderSelected=fu.prototype.handleSectionHeaderSelected;fu.prototype.handleSegmentReplay=fu.prototype.handleSegmentReplay;fu.prototype.handleSegmentSelected=fu.prototype.handleSegmentSelected;fu.prototype.handleSegmentEdit=fu.prototype.handleSegmentEdit;fu.prototype.segmentsChanged=fu.prototype.segmentsChanged;
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],fu.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],fu.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],fu.prototype,"isError",void 0);
_.f([_.b(),_.z("design:type",Object)],fu.prototype,"noResultLabel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],fu.prototype,"darkerPanels",void 0);_.f([_.Q("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],fu.prototype,"segments",null);_.f([_.Q("segments","noResultLabel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],fu.prototype,"displayNoResults",null);
_.f([_.a5("segments"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fu.prototype,"segmentsChanged",null);_.f([_.E6("yt-transcript-segment-edit"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],fu.prototype,"handleSegmentEdit",null);_.f([_.E6("yt-transcript-segment-selected"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],fu.prototype,"handleSegmentSelected",null);
_.f([_.E6("yt-transcript-segment-replay"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],fu.prototype,"handleSegmentReplay",null);_.f([_.E6("ytd-transcript-section-header"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],fu.prototype,"handleSectionHeaderSelected",null);_.f([_.E6("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fu.prototype,"onMouseEnter",null);
_.f([_.E6("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fu.prototype,"onMouseLeave",null);fu=_.f([_.C({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],fu);
_.D(fu,"ytd-transcript-segment-list-renderer",function(){if(LWd!==void 0)return LWd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return LWd=a},{mode:1});var dg=function(){var a=_.u.apply(this,arguments)||this;a.hideTimestamps=!!_.B7("hide-transcript-timestamps");a.isLoadingTranscripts=!1;a.darkerPanels=_.r("web_watch_darker_panels");a.isError=!1;a.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return a};
_.c(dg,_.u);_.t=dg.prototype;_.t.headerChanged=function(){var a,W;this.baseGetTranscriptsCommand=(W=_.A((a=this.data)==null?void 0:a.header,OQE))==null?void 0:W.onTextChangeCommand};
_.t.bodyChanged=function(){var a=this.getBodyRenderer();a&&(a.initialSegments&&(this.initialTranscriptsRenderer=a),a.noResultLabel&&(this.noResultLabel=a.noResultLabel),a.retryLabel&&(this.retryLabel=a.retryLabel))};
_.t.detached=function(){this.clearSearchBoxText()};
_.t.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.t.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"}}}};
_.t.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.t.fireSearch=function(a){var W=this;if(a){var w=a.detail.query;if(this.baseGetTranscriptsCommand){var Z;a=(Z=_.A(this.baseGetTranscriptsCommand,_.cdA))==null?void 0:Z.params;var N;Z=_.A((N=this.data)==null?void 0:N.footer,aF0);var B;if((N=(B=_.A(Z==null?void 0:Z.languageMenu,vCn))==null?void 0:B.subMenuItems)&&N.length>0&&(B=N.find(function(v){return v.selected}))){var I,X;
a=(I=B.continuation)==null?void 0:(X=I.reloadContinuationData)==null?void 0:X.continuation}I=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:a,searchQuery:w}});this.ytComponentBehavior.resolveCommand(I,{commandController:{onServerError:function(){W.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});qkf(this.ytContinuationHandlerBehavior,function(){return w===W.getCurrentSearchBoxText()})}}};
_.t.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.t.onRetryButtonClick=function(){this.isError=!1;var a={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:a}))};
_.t.hideTimestampsChanged=function(){_.$H("hide-transcript-timestamps",this.hideTimestamps)};
_.t.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.t.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.t.handleSignalActionCopyTranscript=function(){var a=this,W=this.getBodyRenderer();W&&(W=((W==null?void 0:W.searchResultSegments)||(W==null?void 0:W.initialSegments)||[]).map(function(w){return _.A(w,Y3E)}).filter(function(w){return!!w}).map(function(w){return{snippet:w.snippet||{runs:[{text:""}]},
startTimeText:w.startTimeText||{simpleText:""}}}).map(function(w){var Z=(w.snippet.runs||[]).reduce(function(N,B){return N+B.text},"");
return a.hideTimestamps?Z:w.startTimeText.simpleText+" "+Z}).join("\n"),this.copyToClipboard(W))};
_.t.copyToClipboard=function(a){navigator.clipboard&&navigator.clipboard.writeText(a)};
_.t.getCurrentSearchBoxText=function(){var a;return(a=this.searchBox)==null?void 0:a.value};
_.t.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.t.getBodyRenderer=function(){var a;return _.A((a=this.data)==null?void 0:a.body,S3a)};
_.t.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.dU.Object.defineProperties(dg.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.M(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
dg.prototype.hideTimestampsChanged=dg.prototype.hideTimestampsChanged;dg.prototype.searchCleared=dg.prototype.searchCleared;dg.prototype.fireSearch=dg.prototype.fireSearch;dg.prototype.onReloadContinuationFinish=dg.prototype.onReloadContinuationFinish;dg.prototype.bodyChanged=dg.prototype.bodyChanged;dg.prototype.headerChanged=dg.prototype.headerChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],dg.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],dg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.j8),_.z("design:type",Object)],dg.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],dg.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dg.prototype,"hideTimestamps",void 0);
_.f([_.b(),_.z("design:type",Object)],dg.prototype,"isLoadingTranscripts",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dg.prototype,"darkerPanels",void 0);_.f([_.b(),_.z("design:type",Object)],dg.prototype,"isError",void 0);_.f([_.a5("data.header"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dg.prototype,"headerChanged",null);
_.f([_.lO("data.body"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dg.prototype,"bodyChanged",null);_.f([_.E6("yt-reload-continuation-finish"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dg.prototype,"onReloadContinuationFinish",null);_.f([_.E6("yt-transcript-search-box-search"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],dg.prototype,"fireSearch",null);
_.f([_.E6("yt-transcript-search-box-clear"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dg.prototype,"searchCleared",null);_.f([_.a5("hideTimestamps"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dg.prototype,"hideTimestampsChanged",null);dg=_.f([_.C({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],dg);
_.D(dg,"ytd-transcript-search-panel-renderer",function(){if(nWd!==void 0)return nWd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return nWd=a},{mode:1});var m3=function(){var a=_.u.apply(this,arguments)||this;a.player=null;a.playerPollJobId=0;return a};
_.c(m3,_.u);_.t=m3.prototype;_.t.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.t.onLoadReloadContinuation=function(a){_.r("enable_att_for_transcript_request_on_web_client")?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}}},_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}}))};
_.t.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"}}}};
_.t.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.t.attached=function(){this.updatePlayerListening()};
_.t.detached=function(){this.updatePlayerListening()};
_.t.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.t.startPlayerListening=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return(W=_.fA())?_.g(w,W.getPlayerPromise(),2):w.return();a.player=w.yieldResult;a.playerPollJobId=_.hF.addLowPriorityJob(function(){a.getPlayerVideoProgress()},1E3);
a.player.addEventListener("onCueRangeEnter",function(Z){a.onCueRangeEnter(Z)});
a.player.addEventListener("onCueRangeExit",function(Z){a.onCueRangeExit(Z)});
a.player.addEventListener("onStateChange",function(Z){a.onPlayerStateChange(Z)});
a.player.addEventListener("SEEK_TO",function(Z){a.onPlayerSeek(Z)});
_.Xd(w)})};
_.t.getPlayerVideoProgress=function(){var a=this;_.hF.cancelJob(this.playerPollJobId);if(this.player){var W=this.player.getCurrentTime();_.aV(this.hostElement,"yt-player-time-changed",[W])}this.playerPollJobId=_.hF.addLowPriorityJob(function(){a.getPlayerVideoProgress()},1E3)};
_.t.stopPlayerListening=function(){this.player=null;_.hF.cancelJob(this.playerPollJobId)};
_.t.onPlayerStateChange=function(a){a===2&&this.removePendingCue()};
_.t.onPlayerSeek=function(a){var W;if(W=this.pendingReplayCueId)W=this.pendingReplayCueId,W=a===(_.r("web_transcript_cue_id_killswitch")?Number(W):Number(W.split("_")[1]));W||this.removePendingCue()};
_.t.onCueRangeEnter=function(a){lN9(a)&&(this.pendingReplayCueId=a)};
_.t.onCueRangeExit=function(a){lN9(a)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.t.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.t.onYtTranscriptPlayerSeek=function(a){this.player&&this.player.seekTo(a,!0)};
_.t.onYtTranscriptPlayerReplay=function(a,W){this.player&&(this.player.addCueRange(BpK(a),a,W),this.player.seekTo(a,!0),this.player.playVideo())};
_.t.onYtTranscriptPlayerEdit=function(a,W){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(BpK(a),a,W),this.player.seekTo(a,!0))};
m3.prototype.onLoadReloadContinuation=m3.prototype.onLoadReloadContinuation;m3.prototype.panelContentVisibleChanged=m3.prototype.panelContentVisibleChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],m3.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],m3.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],m3.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],m3.prototype,"panelContentVisible",void 0);_.f([_.a5("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m3.prototype,"panelContentVisibleChanged",null);
_.f([_.E6("yt-load-reload-continuation"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],m3.prototype,"onLoadReloadContinuation",null);m3=_.f([_.C({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],m3);
_.D(m3,"ytd-transcript-renderer",function(){if(cnd!==void 0)return cnd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return cnd=a},{mode:1});var FW2;var MPI;var VQ=function(){return _.u.apply(this,arguments)||this};
_.c(VQ,_.u);VQ.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.N1(this.hostElement,[this.data.clickCommand],this.hostElement))};
VQ.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.iZ)()+_.MN)+"px)"};
VQ.prototype.updateShouldHideFromBinding=function(a){this.shouldHide=a.detail.value};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],VQ.prototype,"rendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],VQ.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],VQ.prototype,"shouldHide",void 0);VQ=_.f([_.C({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],VQ);
_.D(VQ,"ytd-ad-engagement-panel-banner-renderer",function(){if(MPI!==void 0)return MPI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return MPI=a},{mode:_.Vn("kevlar_poly_si_batch_j070")?1:2});var Rcz;var zM=function(){var a=_.u.apply(this,arguments)||this;a.modernPanels=_.r("kevlar_watch_modern_panels");a.buttonUpdate=_.r("web_modern_buttons");a.adsSemanticText=_.r("enable_ads_web_ep_buenos_aires_and_padding_fix");return a};
_.c(zM,_.u);zM.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.f([_.b(),_.z("design:type",Object)],zM.prototype,"data",void 0);_.f([_.b({computed:"computeHideDefaultAdBadge(data)"}),_.z("design:type",Boolean)],zM.prototype,"hideDefaultAdBadge",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],zM.prototype,"modernPanels",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],zM.prototype,"buttonUpdate",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],zM.prototype,"adsSemanticText",void 0);
zM=_.f([_.C({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],zM);
_.D(zM,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Rcz!==void 0)return Rcz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Rcz=a},{mode:1});var qs0;var HU=function(){var a=_.u.apply(this,arguments)||this;a.darkerPanels=_.r("web_watch_darker_panels");a.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");a.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");a.modernPanels=_.r("kevlar_watch_modern_panels");a.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return a};
_.c(HU,_.u);_.t=HU.prototype;_.t.computeAdsInfoButton=function(){if(_.r("web_modern_buttons")){var a,W;return(W=_.A((a=this.data)==null?void 0:a.subtitleComplex,Wgd))==null?void 0:W.adInfoRenderer}};
_.t.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}}}}}};
_.t.collapsedChanged=function(){var a;(a=this.data)!=null&&a.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.r("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.t.focus=function(a){this.titleElement&&_.un(this.titleElement,a)};
_.t.computeTitleAriaLabel=function(a){var W=[];if(a.title){var w,Z;W.push(this.ytRendererBehavior.getSimpleString(a.title)||((w=a.title.accessibility)==null?void 0:(Z=w.accessibilityData)==null?void 0:Z.label))}a.contextualInfo&&W.push(this.ytRendererBehavior.getSimpleString(a.contextualInfo));return W.join(" ")};
_.t.onHeaderClick=function(a){this.shouldTriggerHeaderClick(a)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.N1(this.hostElement,[this.data.onClickCommand],this.hostElement)):(a=this.getVisibilityToggleButton())&&a.click())};
_.t.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var a=_.A(this.data.visibilityButton,_.J4)||_.A(this.data.visibilityButton,_.F8);a&&this.ytRendererBehavior.logExplicitClick(a)}};
_.t.getVisibilityToggleButton=function(){var a=_.M(this.hostElement).querySelector("#visibility-button").firstElementChild;return(a==null?void 0:a.is)==="ytd-toggle-button-renderer"?a:null};
_.t.shouldTriggerHeaderClick=function(a){return!_.b5(_.qj(a),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.t.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(a){a=_.A(a,_.fNd);this.targetId&&(a==null?void 0:a.targetId)===this.targetId&&(a=a.navigationButton)&&this.set("data.navigationButton",a)};
_.dU.Object.defineProperties(HU.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.r("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)}}});
HU.prototype.collapsedChanged=HU.prototype.collapsedChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],HU.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],HU.prototype,"ytdReduxBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],HU.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],HU.prototype,"targetId",void 0);_.f([_.b(),_.z("design:type",Boolean)],HU.prototype,"collapsed",void 0);_.f([_.b(),_.z("design:type",Boolean)],HU.prototype,"hideActionButton",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],HU.prototype,"shortsPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],HU.prototype,"liveChatEngagementPanel",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HU.prototype,"darkerPanels",void 0);_.f([_.w$("#title"),_.z("design:type",HTMLElement)],HU.prototype,"titleElement",void 0);_.f([_.b({computed:"computeAdsInfoButton(data)"}),_.z("design:type",Object)],HU.prototype,"adsInfoButton",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HU.prototype,"enableSqueezebackPanels",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HU.prototype,"enableAnchoredPanel",void 0);_.f([_.b({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(a,W){return _.tG(a.entities,"engagementPanelTitleHeaderEntity",W)}}),
_.z("design:type",Object)],HU.prototype,"entity",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HU.prototype,"modernPanels",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HU.prototype,"adsSemanticText",null);_.f([_.lO("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HU.prototype,"collapsedChanged",null);
_.f([_.Q("entity","hideActionButton"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HU.prototype,"isActionButtonHidden",null);HU=_.f([_.C({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],HU);
_.D(HU,"ytd-engagement-panel-title-header-renderer",function(){if(qs0!==void 0)return qs0;var a=document.createElement("template");_.n(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" on-click="onHeaderClick" 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(_.y().content.cloneNode(!0),
a.content.firstChild);return qs0=a},{mode:1});var QO9;var yQ=function(){return _.u.apply(this,arguments)||this};
_.c(yQ,_.u);yQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],yQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],yQ.prototype,"data",void 0);yQ=_.f([_.C({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],yQ);
_.D(yQ,"ytd-macro-markers-info-item-renderer",function(){if(QO9!==void 0)return QO9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return QO9=a},{mode:1});var xGk;var uRf=function(a,W,w,Z,N,B){_.OW.call(this);var I=this;this.JSC$20032_containerElement=a;this.hostElement=W;this.supportedSyncItems=w;this.syncEntityKey=Z;this.options=N;this.renderLazyListItems=B;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;bq0(this);sOD(this);this.JSC$20032_scrollAnimation=new _.i1(function(X){a.scrollTop=X});
_.$3(this,this.JSC$20032_scrollAnimation);this.addOnDisposeCallback(function(){I.exitBrowsingMode(!1);I.activeItem&&I.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.c(uRf,_.OW);var bq0=function(a){var W=_.oX(_.K().resolve(_.Ab),function(w){return w.entities.markersEngagementPanelSyncEntity||{}},function(w,Z){var N;
w[a.syncEntityKey]!==Z[a.syncEntityKey]&&((N=w[a.syncEntityKey])==null?void 0:N.activeItemIndex)!==void 0&&a.updatePanelActiveItem(w[a.syncEntityKey].activeItemIndex)});
a.unsubscribeFromTimedMarkersListSyncEntity=W;a.addOnDisposeCallback(W);CPI(a)},CPI=function(a){var W=_.K().resolve(_.Ab);
W=_.C1v(W.getState(),a.syncEntityKey);(W==null?void 0:W.activeItemIndex)!==void 0&&(W=a.getItemByIndex(W.activeItemIndex))&&a.setActiveItem(W)},sOD=function(a){var W=new _.yP(a.onScroll,50,a);
_.$3(a,W);var w=function(){W.fire()};
a.JSC$20032_containerElement.addEventListener("scroll",w);a.addOnDisposeCallback(function(){a.JSC$20032_containerElement.removeEventListener("scroll",w)})};
_.t=uRf.prototype;
_.t.updatePanelActiveItem=function(a){var W=this.getItemByIndex(a);if(W){if(this.setActiveItem(W),this.contentVisible)if(this.browsingMode){var w;((w=this.options)==null?void 0:w.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(a=Gmk(this),W.offsetTop<this.JSC$20032_containerElement.clientHeight+this.JSC$20032_containerElement.scrollTop&&a&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));DGn(this)}else this.scrollToItem(W)}else _.jJ(new _.Uw("Could not find "+this.supportedSyncItems+
" sync child to set active.",a,this.JSC$20032_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.t.getItemByIndex=function(a){var W;(W=this.renderLazyListItems)==null||W.call(this,a);W=this.JSC$20032_containerElement.querySelectorAll(this.supportedSyncItems);if(W.length>a)return W[a]};
_.t.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};
_.t.scrollToItem=function(a){a=this.getScrollPositionForItem(a);this.JSC$20032_containerElement.scrollTop!==a&&this.JSC$20032_scrollAnimation.start(this.JSC$20032_containerElement.scrollTop,a,300)};
_.t.getScrollPositionForItem=function(a){if(this.JSC$20032_containerElement.querySelectorAll(this.supportedSyncItems)[0]===a)return 0;var W,w=((W=this.options)==null?0:W.percentOffset)?this.JSC$20032_containerElement.clientHeight*this.options.percentOffset:0;a=_.nY(a).y+this.JSC$20032_containerElement.scrollTop-(_.nY(this.JSC$20032_containerElement).y+w);return Math.max(0,Math.min(a,this.JSC$20032_containerElement.scrollHeight-this.JSC$20032_containerElement.offsetHeight))};
_.t.onScroll=function(){this.activeItemBelowSyncPosition=Gmk(this);if(this.activeItem&&!this.JSC$20032_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20032_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(!fy0(this));DGn(this);break;default:this.enterBrowsingMode(!0)}}};
_.t.enterBrowsingMode=function(a){var W=this,w,Z;return _.P(function(N){if(N.nextAddress==1){if(W.browsingMode)return N.return();W.browsingMode=!0;a&&W.hostElement.classList.add("browsing-mode");W.playerExitBrowsingModeListener=function(){W.exitBrowsingMode(!1)};
return _.g(N,_.wP(),2)}w=N.yieldResult;(Z=w)==null||Z.addEventListener("SEEK_TO",W.playerExitBrowsingModeListener);_.Xd(N)})};
_.t.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())};
_.t.removePlayerSeekListener=function(){var a=this,W,w;return _.P(function(Z){if(Z.nextAddress==1)return a.playerExitBrowsingModeListener?_.g(Z,_.wP(),3):Z.jumpTo(0);W=Z.yieldResult;(w=W)==null||w.removeEventListener("SEEK_TO",a.playerExitBrowsingModeListener);a.playerExitBrowsingModeListener=void 0;_.Xd(Z)})};
var DGn=function(a){var W;((W=a.options)==null?void 0:W.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(fy0(a)?a.hostElement.classList.remove("browsing-mode"):a.activeItem&&a.hostElement.classList.add("browsing-mode"))},Gmk=function(a){if(!a.activeItem)return!1;
var W,w=((W=a.options)==null?0:W.percentOffset)?a.JSC$20032_containerElement.clientHeight*a.options.percentOffset:0;return a.activeItem.offsetTop>=a.JSC$20032_containerElement.scrollTop+w},fy0=function(a){if(!a.activeItem)return!1;
var W=a.activeItem.offsetTop+14<=a.JSC$20032_containerElement.scrollTop+a.JSC$20032_containerElement.clientHeight;return a.activeItem.offsetTop+a.activeItem.clientHeight-14>=a.JSC$20032_containerElement.scrollTop&&W};
uRf.prototype.panelContentVisibleChanged=function(a){(this.contentVisible=a)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var dGK=function(a,W){a.syncEntityKey=W;var w;(w=a.unsubscribeFromTimedMarkersListSyncEntity)==null||w.call(a);bq0(a)},mG2=function(a,W){a.options=W};var EE=function(){var a=_.u.apply(this,arguments)||this;a.browsingMode=!1;a.modern=_.r("web_button_rework");a.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return a};
_.c(EE,_.u);_.t=EE.prototype;_.t.activeItemChanged=function(){if(!_.r("synced_panel_scrolling_controller")){var a;((a=this.syncEntity)==null?void 0:a.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.t.created=function(){var a=this;_.r("synced_panel_scrolling_controller")||(this.JSC$20036_scrollAnimation=new _.i1(function(W){a.contents.scrollTop=W}),this.boundExitBrowsingMode=function(){a.exitBrowsingMode(!1)})};
_.t.detached=function(){if(_.r("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.t.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"}}}};
_.t.dataChanged=function(){var a=this;_.r("synced_panel_scrolling_controller")?_.DW(this,function(){if(a.scrollController){var W;(W=a.scrollController)==null||W.exitBrowsingMode(!1);var w,Z,N;(Z=a.scrollController)==null||dGK(Z,(N=(w=a.data)==null?void 0:w.syncModelEntityKey)!=null?N:"default-macro-markers-list-renderer-entity-key");var B,I,X;(X=a.scrollController)==null||mG2(X,{percentOffset:(B=a.data)==null?void 0:B.selectedItemAlignmentPercentOffset,floatingPillType:(I=a.data)==null?void 0:I.floatingPillType})}else{var v,
U,O,S;a.scrollController=new uRf(a.contents,a.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(S=(v=a.data)==null?void 0:v.syncModelEntityKey)!=null?S:"default-macro-markers-list-renderer-entity-key",{percentOffset:(U=a.data)==null?void 0:U.selectedItemAlignmentPercentOffset,floatingPillType:(O=a.data)==null?void 0:O.floatingPillType},function(T){a.renderLazyListItems(T)})}a.scrollController.panelContentVisibleChanged(!!a.panelContentVisible)}):this.exitBrowsingMode()};
_.t.computeButtonShape=function(){var a=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){a.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.t.computeSyncEnabled=function(a){return!(a==null||!a.syncButtonLabel)};
_.t.renderLazyListItems=function(a){for(var W=this.contents.children,w=0,Z=0;Z<W.length;Z++){var N=void 0;(N=W[Z].ytLazyListBehavior)==null||N.fillRemainingListItems();var B=void 0,I=void 0;N=_.A((B=this.data)==null?void 0:(I=B.contents)==null?void 0:I[Z],_.KW9);I=B=void 0;if((B=N)==null?0:(I=B.contents)==null?0:I.length)w+=N.contents.length;if(w>=a)break}};
_.t.getItemByIndex=function(a){this.renderLazyListItems(a);var W=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(W.length>a)return W[a]};
_.t.setActiveItem=function(a){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);a.active!==void 0&&(a.active=!0);this.currentActiveItem=a};
_.t.handleSetActivePanelItemAction=function(a){if((a=_.A(a,me0))&&this.panelTargetId===a.panelTargetId){a=a.itemIndex;if(_.r("synced_panel_scrolling_controller")){var W,w;var Z=(w=(W=this.data)==null?void 0:W.syncModelEntityKey)!=null?w:"default-macro-markers-list-renderer-entity-key"}else{var N;Z=(N=this.data)==null?void 0:N.syncModelEntityKey}if(Z){var B;((B=this.syncEntity)==null?void 0:B.activeItemIndex)!==a&&this.ytdReduxBehavior.dispatch(_.oL("markersEngagementPanelSyncEntity",Z,{key:Z,activeItemIndex:a}))}else this.updatePanelActiveItem(a)}};
_.t.updatePanelActiveItem=function(a){var W=this.getItemByIndex(a);W?(this.setActiveItem(W),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(W)):_.jJ(new _.Uw("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))};
_.t.scrollToItem=function(a){a=this.getScrollPositionForItem(a);this.contents.scrollTop!==a&&this.JSC$20036_scrollAnimation.start(this.contents.scrollTop,a,300)};
_.t.getScrollPositionForItem=function(a){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===a)return 0;a=_.nY(a).y+this.contents.scrollTop-_.nY(this.contents).y-this.getStickyHeaderHeight(a);return Math.min(a,this.contents.scrollHeight-this.contents.offsetHeight)};
_.t.getStickyHeaderHeight=function(a){if(a.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var W,w,Z;return(Z=(W=a.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(w=W.header)==null?void 0:w.offsetHeight)!=null?Z:0}return 0};
_.t.onScroll=function(){_.r("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20036_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.t.enterBrowsingMode=function(){var a=this;return _.P(function(W){if(W.nextAddress==1){if(a.browsingMode)return W.return();a.browsingMode=!0;return _.g(W,_.d2().getPlayerPromise(),2)}a.player=W.yieldResult;a.player.addEventListener("SEEK_TO",a.boundExitBrowsingMode);_.Xd(W)})};
_.t.exitBrowsingMode=function(a){this.browsingMode&&(this.browsingMode=!1,(a===void 0||a)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.t.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.t.onSyncClick=function(){if(_.r("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.exitBrowsingMode()}else this.exitBrowsingMode()};
_.t.panelContentVisibleChanged=function(){if(_.r("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)};
EE.prototype.panelContentVisibleChanged=EE.prototype.panelContentVisibleChanged;EE.prototype.dataChanged=EE.prototype.dataChanged;EE.prototype.activeItemChanged=EE.prototype.activeItemChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],EE.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],EE.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],EE.prototype,"data",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],EE.prototype,"useCustomColors",void 0);_.f([_.b({computed:"computeSyncEnabled(data)"}),_.z("design:type",Boolean)],EE.prototype,"syncEnabled",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],EE.prototype,"panelTargetId",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],EE.prototype,"panelContentVisible",void 0);_.f([_.w$("#contents"),_.z("design:type",HTMLElement)],EE.prototype,"contents",void 0);_.f([_.w$("#sync-container"),_.z("design:type",HTMLElement)],EE.prototype,"syncContainer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],EE.prototype,"browsingMode",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],EE.prototype,"modern",void 0);_.f([_.b({selectorArgs:["data.syncModelEntityKey"],selector:_.C1v}),_.z("design:type",Object)],EE.prototype,"syncEntity",void 0);_.f([_.a5("syncEntity.activeItemIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EE.prototype,"activeItemChanged",null);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EE.prototype,"dataChanged",null);_.f([_.a5("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EE.prototype,"panelContentVisibleChanged",null);EE=_.f([_.C({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],EE);
_.D(EE,"ytd-macro-markers-list-renderer",function(){if(xGk!==void 0)return xGk;var a=document.createElement("template");_.n(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  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
a.content.insertBefore(_.y().content.cloneNode(!0),a.content.firstChild);return xGk=a},{mode:1});var VP0;var az=function(){return _.u.apply(this,arguments)||this};
_.c(az,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],az.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],az.prototype,"data",void 0);az=_.f([_.C({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],az);
_.D(az,"ytd-error-corrections-section-item-renderer",function(){if(VP0!==void 0)return VP0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return VP0=a},{mode:1});var zcD;var WB=function(){return _.u.apply(this,arguments)||this};
_.c(WB,_.u);WB.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],WB.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],WB.prototype,"data",void 0);WB=_.f([_.C({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],WB);
_.D(WB,"ytd-error-corrections-section-renderer",function(){if(zcD!==void 0)return zcD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return zcD=a},{mode:1});var HqX;var wu=function(){return _.u.apply(this,arguments)||this};
_.c(wu,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],wu.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],wu.prototype,"data",void 0);wu=_.f([_.C({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],wu);
_.D(wu,"ytd-topic-link-renderer",function(){if(HqX!==void 0)return HqX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return HqX=a},{mode:1});var ynf;var Z5=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("kevlar_modern_sd_v2");a.modernLockupV2=_.r("modernize_structured_description_playlist_lockups_v2");a.modernTypography=_.r("web_modern_typography");return a};
_.c(Z5,_.u);Z5.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Z5.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Z5.prototype,"modern",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Z5.prototype,"modernLockupV2",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Z5.prototype,"modernTypography",void 0);Z5=_.f([_.C({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Z5);
_.D(Z5,"ytd-video-description-course-section-renderer",function(){if(ynf!==void 0)return ynf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ynf=a},{mode:1});var EW2;var NI=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("kevlar_modern_sd_v2");a.modernTypography=_.r("web_modern_typography");return a};
_.c(NI,_.u);NI.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],NI.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],NI.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],NI.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],NI.prototype,"modern",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],NI.prototype,"modernTypography",void 0);
NI=_.f([_.C({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],NI);
_.D(NI,"ytd-video-description-files-section-renderer",function(){if(EW2!==void 0)return EW2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return EW2=a},{mode:1});var a10;var th=function(){return _.u.apply(this,arguments)||this};
_.c(th,_.u);th.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],th.prototype,"data",void 0);th=_.f([_.C({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],th);
_.D(th,"ytd-video-description-gaming-section-renderer",function(){if(a10!==void 0)return a10;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return a10=a},{mode:1});var WEi;var $N=function(){var a=_.u.apply(this,arguments)||this;a.isExpanded=!1;return a};
_.c($N,_.u);$N.prototype.computeHasDefaultMetadataEndpoint=function(a){var W;a=a==null?void 0:(W=a.defaultMetadata)==null?void 0:W.runs;return!(!a||a.length!==1||!a[0].navigationEndpoint)};
$N.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.dU.Object.defineProperties($N.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)}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$N.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$N.prototype,"isExpanded",void 0);_.f([_.b({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],$N.prototype,"hasDefaultMetadataEndpoint",void 0);
_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$N.prototype,"isExpandable",null);_.f([_.Q("data","isExpandable","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$N.prototype,"showExpandedMetadata",null);$N=_.f([_.C({is:"ytd-info-row-renderer",disableElementRegistration:!0})],$N);
_.D($N,"ytd-info-row-renderer",function(){if(WEi!==void 0)return WEi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return WEi=a},{mode:1});var wQf;var BB=function(){var a=_.u.apply(this,arguments)||this;a.currentIndex=0;a.supportComponentResize=!0;a.modern=_.r("kevlar_modern_sd_v2");a.JSC$20062_lastScrollContainerWidth=NaN;return a};
_.c(BB,_.u);_.t=BB.prototype;
_.t.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"}}}};
_.t.getItemsPath=function(){return"videoLockups"};
_.t.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.t.onIronResize=function(){this.updateVideoLockupStyles()};
_.t.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.t.updateVideoLockupStyles=function(){var a;this.JSC$20062_scrollContainer!==void 0&&(a=this.videoLockups)!=null&&a.length&&(a=this.JSC$20062_scrollContainer.clientWidth,a!==this.JSC$20062_lastScrollContainerWidth&&(this.JSC$20062_lastScrollContainerWidth=a,_.Hu(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(a*.8,415)+"px"}),_.E$(this.hostElement,"iron-resize")))};
_.dU.Object.defineProperties(BB.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var a=[],W;if((W=this.data)==null||!W.carouselLockups)return a;W=_.l(this.data.carouselLockups);for(var w=W.next();!w.done;w=W.next()){w=w.value;var Z=void 0;((Z=_.A(w,rZX))==null?0:Z.videoLockup)&&a.push(_.A(w,rZX).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=[],W;if((W=this.data)==null||!W.carouselLockups)return a;var w;return(w=_.A(this.data.carouselLockups[this.scrollCount],rZX))==null?void 0:w.infoRows}}});
BB.prototype.dataChanged=BB.prototype.dataChanged;BB.prototype.onIronResize=BB.prototype.onIronResize;BB.prototype.hiddenChanged=BB.prototype.hiddenChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],BB.prototype,"componentBehavior",void 0);_.f([_.R(_.zd.YtdHorizontalListBehavior),_.z("design:type",Object)],BB.prototype,"ytdHorizontalListBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],BB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],BB.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],BB.prototype,"inlineStructuredDescription",void 0);_.f([_.b({value:2}),_.z("design:type",Number)],BB.prototype,"initialCount",void 0);_.f([_.b(),_.z("design:type",Object)],BB.prototype,"currentIndex",void 0);
_.f([_.b(),_.z("design:type",Number)],BB.prototype,"scrollCount",void 0);_.f([_.b(),_.z("design:type",Object)],BB.prototype,"supportComponentResize",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],BB.prototype,"contentHidden",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BB.prototype,"modern",void 0);_.f([_.w$("#scroll-container"),_.z("design:type",HTMLDivElement)],BB.prototype,"JSC$20062_scrollContainer",void 0);
_.f([_.a5("contentHidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BB.prototype,"hiddenChanged",null);_.f([_.Q("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],BB.prototype,"videoLockups",null);_.f([_.Q("videoLockups"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BB.prototype,"hasVideoLockups",null);
_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BB.prototype,"onIronResize",null);_.f([_.Q("data","scrollCount"),_.z("design:type",Object),_.z("design:paramtypes",[])],BB.prototype,"infoRows",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BB.prototype,"dataChanged",null);BB=_.f([_.C({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],BB);
_.D(BB,"ytd-video-description-music-section-renderer",function(){if(wQf!==void 0)return wQf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return wQf=a},{mode:_.Vn("kevlar_poly_si_batch_j081")?1:2});var Zsf;var l_=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("kevlar_modern_sd_v2");a.modernTypography=_.r("web_modern_typography");return a};
_.c(l_,_.u);l_.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.f([_.b({}),_.z("design:type",Object)],l_.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],l_.prototype,"modern",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],l_.prototype,"modernTypography",void 0);
l_=_.f([_.C({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],l_);
_.D(l_,"ytd-video-description-transcript-section-renderer",function(){if(Zsf!==void 0)return Zsf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Zsf=a},{mode:1});var NWX;_.Ct(_.xQ(function(a){var W=_.X7(_.X8I,function(){return a.data().firstProviderLinkStatusEntityKey}),w=_.X7(_.X8I,function(){return a.data().secondProviderLinkStatusEntityKey}),Z=function(){var N,B;
return((N=W())==null?void 0:N.linked)||((B=w())==null?void 0:B.linked)};
return _.k("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.k(_.k_,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return a.data().sectionTitle}}),_.k(_.k_,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return Z()?a.data().connectedMessage:a.data().notConnectedMessage}}),_.k(_.Y,{cond:Z,
then:function(){return _.k(_.Ax,{data:function(){return a.data().connectedButton}},{buttonViewModel:function(N){return _.k(_.F7,{data:N.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.k(_.Y,{cond:function(){return!Z()},
then:function(){return _.k(_.Ax,{data:function(){return a.data().notConnectedButton}},{buttonViewModel:function(N){return _.k(_.F7,{data:N.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Hi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;return _.k("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.k("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.k(_.k_,{text:function(){return W().sectionTitle}})),_.k("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.k(_.k_,{text:function(){return W().bodyHeader}})),_.k("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.k(_.k_,{text:function(){return W().bodyText}})),_.k(_.Y,
{cond:function(){return W().attributionText},
then:function(){return _.k("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.k(_.k_,{text:function(){return W().attributionText}}))}}))},"Ii"),"how-this-was-made-section-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){return _.k("yt-video-description-youchat-section-view-model",{class:_.W$("ytVideoDescriptionYouchatSectionViewModelHost")},_.k("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.k(_.k_,{text:function(){return a.data().sectionTitle}})),_.k("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.k(_.k_,{text:function(){return a.data().subHeaderText}})),_.k("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.k(_.F7,{data:function(){return _.A(a.data().primaryButton,
_.hx)}})))},"Ji"),"yt-video-description-youchat-section-view-model",{props:{data:_.qR}});var Iz=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("kevlar_modern_sd_v2");a.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return a};
_.c(Iz,_.u);_.t=Iz.prototype;
_.t.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}}}}}};
_.t.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.t.dataChanged=function(){var a,W;this.hasDescriptionOnly=!(((a=this.data)==null?void 0:(W=a.items)==null?void 0:W.length)!==1||!_.A(this.data.items[0],AZ2))};
_.t.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.t.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.t.autoFocusDescription=function(){var a;((a=_.K().resolve(_.Vv(_.S4)))==null?0:a.isKeyBoardInUse())&&this.description&&_.CJ(this.description)};
_.t.resize=function(){if(_.r("kevlar_disable_sd_resize"))this.JSC$20070_cardList&&_.E$(this.JSC$20070_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.E$(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.E$(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.t.scrollToSection=function(a){if(a=this.getSectionElement(a))_.aV(this.hostElement,"yt-scroll-to-watch-element",[a]),a.focus()};
_.t.getSectionElement=function(a){switch(a){case "infocards-item-section":var W;return(W=this.infocardsSection)!=null?W:null;case "transcript-item-section":var w;return(w=this.transcriptSection)!=null?w:null;case "how-this-was-made-section-item-section":var Z;return(Z=this.howThisWasMadeSection)!=null?Z:null;case "files-item-section":var N;return(N=this.filesSection)!=null?N:null;default:return null}};
_.t.handleSetActiveItemAction=function(a){var W=_.A(a,me0),w=W&&(W==null?void 0:W.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20070_cardList;if(W&&w){a=this.currentActiveChapter;var Z=this.currentActiveProblem;W=w==null?void 0:w.getItemByIndex(W.itemIndex);var N=w=!0;W&&(W.active=!0,W.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(w=a!==W,N=!1,this.currentActiveChapter=W):(W==null?void 0:W.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(w=!1,N=Z!==W,this.currentActiveProblem=W));a&&w&&(a.active=!1);Z&&N&&(Z.active=!1)}};
_.dU.Object.defineProperties(Iz.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Iz.prototype.onYtExpanderMoreTapped=Iz.prototype.onYtExpanderMoreTapped;Iz.prototype.onHiddenChanged=Iz.prototype.onHiddenChanged;Iz.prototype.dataChanged=Iz.prototype.dataChanged;Iz.prototype.panelContentVisibleChanged=Iz.prototype.panelContentVisibleChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Iz.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.eG),_.z("design:type",Object)],Iz.prototype,"ironResizableBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Iz.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],Iz.prototype,"panelContentVisible",void 0);_.f([_.b(),_.z("design:type",Boolean)],Iz.prototype,"hasDescriptionOnly",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Iz.prototype,"inlineStructuredDescription",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Iz.prototype,"hidden",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Iz.prototype,"shortsPanel",void 0);_.f([_.b(),_.z("design:type",Object)],Iz.prototype,"videoSummary",void 0);_.f([_.b(),_.z("design:type",Object)],Iz.prototype,"merchShelf",void 0);
_.f([_.Q("videoSummary"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Iz.prototype,"showVideoSummary",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Iz.prototype,"modern",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Iz.prototype,"engagementPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Iz.prototype,"watchWhileSdp",void 0);
_.f([_.w$("ytd-expandable-video-description-body-renderer"),_.z("design:type",Object)],Iz.prototype,"description",void 0);_.f([_.w$("ytd-horizontal-card-list-renderer"),_.z("design:type",Object)],Iz.prototype,"JSC$20070_cardList",void 0);_.f([_.w$("ytd-horizontal-card-list-renderer[center-items]"),_.z("design:type",Object)],Iz.prototype,"problemWalkthroughCardList",void 0);_.f([_.w$("ytd-shelf-renderer"),_.z("design:type",Object)],Iz.prototype,"shelfSection",void 0);
_.f([_.w$("ytd-video-description-music-section-renderer"),_.z("design:type",Object)],Iz.prototype,"musicMetadataSection",void 0);_.f([_.w$("ytd-video-description-infocards-section-renderer"),_.z("design:type",Object)],Iz.prototype,"infocardsSection",void 0);_.f([_.w$("ytd-video-description-transcript-section-renderer"),_.z("design:type",Object)],Iz.prototype,"transcriptSection",void 0);
_.f([_.w$("how-this-was-made-section-view-model"),_.z("design:type",Object)],Iz.prototype,"howThisWasMadeSection",void 0);_.f([_.w$("ytd-video-description-files-section-renderer"),_.z("design:type",Object)],Iz.prototype,"filesSection",void 0);_.f([_.a5("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Iz.prototype,"panelContentVisibleChanged",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Iz.prototype,"dataChanged",null);_.f([_.a5("hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Iz.prototype,"onHiddenChanged",null);_.f([_.E6("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Iz.prototype,"onYtExpanderMoreTapped",null);
Iz=_.f([_.C({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Iz);
_.D(Iz,"ytd-structured-description-content-renderer",function(){if(NWX!==void 0)return NWX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return NWX=a},{mode:2});var tqK;var $uX;var PB=function(){return _.u.apply(this,arguments)||this};
_.c(PB,_.u);PB.prototype.computeAriaLabel=function(a){var W,w;return(a==null?void 0:(W=a.accessibility)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label)||_.P_("LOADING",void 0,"Loading")};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],PB.prototype,"data",void 0);_.f([_.b({computed:"computeAriaLabel(data)"}),_.z("design:type",String)],PB.prototype,"ariaLabel",void 0);PB=_.f([_.TD({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],PB);
_.D(PB,"yt-content-loading-renderer",function(){if($uX===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;tqK===void 0&&(tqK=document.createElement("template"));var Z=tqK;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);$uX=a}a=$uX;return a},{mode:_.Vn("kevlar_poly_si_batch_j043")?1:2});_.Ct(_.xQ(function(a){var W=_.l(_.$1(!1,void 0,"WbYeXc")),w=W.next().value,Z=W.next().value;W=_.l(_.$1(!1,void 0,"msXkzc"));var N=W.next().value,B=W.next().value;_.AS(function(){var v=_.A(a.data().collaboratePlaylistCollaborationSetting,gCz);v&&Z(v.switchedOnByDefault);var U=_.A(a.data().allowNewCollaboratorsPlaylistCollaborationSetting,gCz);U&&B(U.switchedOnByDefault);if(!v&&!U||!v&&a.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")Z(!0),B(!0)});
var I=function(v){Z(v);B(v);var U=a.data().playlistCollaborationEntityKey||"";var O=_.FM().getState();(O=_.tG(O.entities,"playlistCollaborationEntity",U))&&(O==null?void 0:O.isCollaborative)===v||_.FM().dispatch(_.oL("playlistCollaborationEntity",U,Object.assign({},O,{isCollaborative:v})))},X=function(v){B(v)};
return _.k("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.k("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.k(_.Ax,{data:function(){return a.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(v){return _.k(_.Ta,{data:v.data,
onSwitch:I})}})),_.k(_.Y,{cond:w,
then:function(){return _.k("div",null,_.k("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.k(_.Ax,{data:function(){return a.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(v){return _.k(_.Ta,{data:v.data,
onSwitch:X,overrideDisabled:!1})}})),_.k(_.Y,{cond:N,
then:function(){return _.k("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.k(_.Ax,{data:function(){return a.data().copyLinkButton}},{buttonViewModel:_.F7}))}}),_.k("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.k(_.Ax,{data:function(){return a.data().playlistCollaborators}},{contentListItemViewModel:_.icf})))}}))},"Ki"),"playlist-collaboration-view-model",{props:{data:_.qR}});var BWk=_.xQ(function(a){var W=a.data;var w=a.customCommandResolver;return _.k(_.Ha,null,_.k("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.k(_.Ax,{data:function(){return W().adAvatar}},{adAvatarViewModel:function(Z){return _.k(_.wsL,{data:Z.data,
customCommandResolver:w})}})),_.k("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.k(_.Y,{cond:function(){return W().headline},
then:function(Z){return _.k(_.k_,{text:Z,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.k("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.k(_.Ax,{data:function(){return W().adBadge}},{adBadgeViewModel:function(Z){return _.k(_.mR,{data:Z.data,
hasDot:function(){return W().primaryDetailsLine!==void 0},
customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.k(_.Ax,{data:function(){return W().primaryDetailsLine}},{adDetailsLineViewModel:function(Z){return _.k(_.VO,{data:Z.data,
customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Li"),l1d=_.xQ(function(a){var W=a.data;
var w=a.customCommandResolver;a=_.D8();_.m5(a,function(){return W().interaction},w);
_.yz(a,{visibilityCallback:function(Z){var N,B=(N=W().interaction)==null?void 0:N.onFirstVisible;Z&&B&&_.cX(B)},
showOption:_.uC});return _.k("ad-avatar-lockup-view-model",{class:function(){var Z;return((Z=W().interaction)==null?0:Z.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:a,"aria-label":function(){var Z,N;return(Z=W().interaction)==null?void 0:(N=Z.accessibility)==null?void 0:N.label}},_.k(_.Y6,null,_.k(_.Ut,{when:function(){return W().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.k(BWk,{data:W,
customCommandResolver:w})}),_.k(_.Sm,null,function(){return null})))},"Mi");_.Ct(_.xQ(function(a){var W=a.data;var w=a.panelContentVisibility;a=_.D8();_.m5(a,function(){return W().interaction},INn);
_.yz(a,{visibilityCallback:function(N){var B,I=(B=W().interaction)==null?void 0:B.onFirstVisible;N&&I&&_.cX(I)},
showOption:_.uC});_.pa(function(){var N,B;if(B=_.RT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var I;B=(I=B())==null?void 0:I.onLayoutVisibleCallback}else B=null;(N=B)==null||N()});
var Z=function(){return w()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.k("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:a},_.k("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.k("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.k(_.Y,{cond:_.S3D("(min-width: "+((0,_.iZ)()+_.MN)+"px) or (max-width: 600px)"),then:function(){return _.k(_.Ax,{data:function(){return W().adImage}},{adImageViewModel:function(N){return _.k(_.w_,{data:N.data,
targetHeight:80,customCommandResolver:INn})}})}})),_.k("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.k("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.k(_.Ax,{data:function(){return W().adAvatarLockup}},{adAvatarLockupViewModel:function(N){return _.k(l1d,{data:N.data,
customCommandResolver:INn})}})),_.k(_.Y,{cond:Z,
then:function(){return _.k(_.Ax,{data:function(){return W().adButton}},{adButtonViewModel:function(N){return _.k(_.Gn,{data:N.data,
customCommandResolver:INn})}})},
else:function(){return _.k(_.Ax,{data:function(){return W().menu}},{buttonViewModel:_.F7})}}),_.k("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.k(_.Ax,{data:function(){var N=_.A(W().toggleButton,_.iK);
return{toggleButtonViewModel:Object.assign({},N,{isTogglingDisabled:!0,isToggled:Z()})}}},{toggleButtonViewModel:_.ce})))))},"Ni"),"panel-ad-header-image-lockup-view-model",{props:{data:_.qR,
panelContentVisibility:_.qR}});_.Ct(_.xQ(function(a){var W=function(){return _.A(a.data().inputComposerViewModel,oCd)},w=function(){var F;
return((F=W())==null?void 0:F.youchatPendingResponseEntityKey)||""},Z=_.X7(_.Vzn,w),N=function(){var F;
return!((F=Z())==null||!F.isPendingResponse)},B=_.l(_.$1(!0,void 0,"DR0q1d")),I=B.next().value,X=B.next().value,v=function(){return W().sectionTargetId||"youchat_messages_section"};
B=_.fH();var U=_.D8(),O=_.X7(y5K,"chat_input_view_model_state"),S=EuK(),T=function(){var F;return!((F=O())==null||!F.value)};
_.AS(function(){var F;!T()&&((F=W())==null?0:F.welcomeFeatureContinuation)&&(F={continuationCommand:{token:W().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.AQ(F),S(!0));var x=v(),G;(G=_.K().resolve(_.Vv(_.Zh)))==null||G.addEventListener("yt-navigate-start",function(){_.Kj.remove(x);S(!1)},{once:!0})});
var p=_.$_(function(F){var x=N()||!1;PUz(U.value);x||F.key!=="Enter"||F.shiftKey||(F.preventDefault(),L());return!1}),h=_.$_(function(){X(U.value.value.length===0);
return!1}),L=function(){var F,x,G,V,d,ZD,aC,Bv,Am;
return _.P(function(e9){F=U.value.value;U.value.value="";PUz(U.value);x=XVa(v(),F);_.AQ(x);G=_.zUX(w());_.cX(((V=W())==null?void 0:V.onSubmitCommand)||{});G(!0);ZD=String(Math.floor(((d=_.ZB())==null?void 0:d.getCurrentTime())||0)*1E3);Bv={continuationCommand:{token:(aC=W())==null?void 0:aC.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};Am={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:F,playerOffsetMs:ZD}};_.AQ(Bv,{form:{formData:Am},commandController:{onSuccess:function(){G(!1)},
onServerError:function(){var cv=v();_.AQ({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:cv}}]}}});G(!1)}}});
_.Xd(e9)})};
return _.k("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:B},_.k("div",{class:"chatInputViewModelChatInputWrapper"},_.k("form",{class:"chatInputViewModelChatInputForm"},_.k("textarea",{class:"chatInputViewModelChatInput",el:U,"on:keydown":p,"on:keyup":h,placeholder:function(){var F,x;var G=_.A((x=W())==null?void 0:x.inputFormField,De0);return G==null?void 0:(F=G.contentProperties)==null?void 0:F.placeholderText},
rows:1}),_.k(_.F7,{data:function(){return _.A(a.data().sendButton,_.hx)},
onClick:function(F){F.preventDefault();L();X(U.value.value.length===0)},
buttonOverrides:function(){return{disabled:I()||N()}}})),_.k(_.k_,{className:"chatInputViewModelChatDisclaimer",
text:function(){var F;return(F=_.A(a.data().disclaimer,_.nST))==null?void 0:F.text}})))},"Oi"),"yt-chat-input-view-model",{props:{data:_.qR}});var I1z=["engagement-panel-clip-create","engagement-panel-clip-view"],Pm0=0,X_=function(){var a=_.u.apply(this,arguments)||this;var W;a.headerData=(W=a.data)==null?void 0:W.header;a.darkerPanels=_.r("web_watch_darker_panels");a.matchContentTheme=_.r("web_watch_panel_content_match_theme");a.disableAutoFill=!1;a.isFullscreen=!1;a.isTheaterMode=!1;a.modernPanels=_.r("kevlar_watch_modern_panels");a.liveChatReplyPanel=!1;a.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");a.disableBackdropFilter=
_.r("web_disable_backdrop_filter");a.trackEngagementPanelVisibility=_.r("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};
_.c(X_,_.u);_.t=X_.prototype;
_.t.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},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 W;
if((a==null?void 0:(W=a.webComponentHint)==null?void 0:W.componentVersion)==="WEB_COMPONENT_VERSION_SHARED")return"yt-section-list-renderer";a=a==null?void 0:a.contents;if(!a||a.length<1)return"ytd-section-list-renderer";var w,Z;a=(w=a[0])==null?void 0:(Z=w.itemSectionRenderer)==null?void 0:Z.contents;if(!a||a.length<1)return"ytd-section-list-renderer";var N;return((N=a[0])==null?0:N.youChatItemViewModel)?"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"}}}};
_.t.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)};
_.t.detached=function(){this.updateTheaterDisablement()};
_.t.showPanel=function(){var a=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.hF.addJob(function(){a.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.t.maybeScrollToItemSection=function(a){var W=this,w,Z=a==null?void 0:(w=a.sectionListEngagementPanelExtras)==null?void 0:w.scrollToItemSectionIdentifier;Z&&_.hF.addJob(function(){var N;(N=W.sectionListRendererElement)==null||N.scrollToItemSection(Z)},8)};
_.t.hidePanel=function(){var a=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.hF.addJob(function(){a.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.t.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.t.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.t.updatePanel=function(a,W,w,Z){var N=this;if((a=a==null?void 0:a.engagementPanelSectionListRenderer)||Z){if(a){Z=a.header;var B=a.content,I=a.footer;(a=a.targetId)&&this.set("data.targetId",a);Z&&this.set("data.header",Z);B&&this.set("data.content",B);I&&this.set("data.footer",I)}else Z&&(a=Z.content,B=Z.secondaryHeaderContent,(Z=Z.targetId)&&this.set("data.targetId",Z),a&&this.set("data.content",a),B&&(this.secondaryHeaderData=B));this.updateChildVisibilityProperties();if(W){var X;_.r("kevlar_update_panel_focus_scroll_killswitch")||
(X={preventScroll:!0});this.focus(X)}_.DW(this,function(){_.E$(N.hostElement,"yt-refit");N.maybeScrollToItemSection(w)})}};
_.t.computeHeaderData=function(){var a,W=(0,_.T5.unsafeClone)((a=this.data)==null?void 0:a.header);if(W){a=new _.H(Object.keys(W)[0]);var w=_.A(W,a),Z=_.A(this.secondaryHeaderData,a);Z&&_.Sx(W,a,Object.assign({},Z,w))}return W};
_.t.getReloadContinuation=function(){var a,W,w,Z=_.l(((a=this.data)==null?void 0:(W=a.content)==null?void 0:(w=W.sectionListRenderer)==null?void 0:w.continuations)||[]);for(a=Z.next();!a.done;a=Z.next())if(a=a.value,a.reloadContinuationData)return a.reloadContinuationData.continuation};
_.t.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)};
_.t.forwardPopupClosedToFlowRootRenderer=function(){var a=_.M(this.hostElement).querySelector("ytd-flow-root-renderer");if(a)a.onPopupClosed()};
_.t.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var a=_.r("web_watch_imax_theater_mode")&&this.isTheaterMode;a=_.r("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||a;if(_.r("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||a){var W;this.visibility=
(W=this.data)==null?void 0:W.visibility;var w;this.trackEngagementPanelVisibility&&((w=this.data)==null?void 0:w.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var Z,N,B,I;this.contentEmpty=!!(((Z=this.data)==null?0:(N=Z.content)==null?0:N.structuredDescriptionContentRenderer)&&Object.keys((B=this.data)==null?void 0:(I=B.content)==null?void 0:I.structuredDescriptionContentRenderer).length===0);(W=_.K().resolve(_.SO))&&W.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.t.isTheaterModeChanged=function(){_.r("web_watch_imax_theater_mode")&&this.hidePanel()};
_.t.isFullscreenChanged=function(){_.r("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.t.focus=function(a){if(this.header)this.header.focus(a);else{var W;(W=_.M(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||W.focus(a)}};
_.t.visibilityChanged=function(){if(!_.r("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var a=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",N=Z||!this.lastVisibility,B,I,X=(B=this.data)==null?void 0:(I=B.identifier)==null?void 0:I.tag,
v;if(((v=this.data)==null?0:v.onShowCommands)&&a&&N)_.N1(this.hostElement,this.data.onShowCommands,this.hostElement),X&&_.Cx().dispatch(_.E_({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:X}}));else{var U;((U=this.data)==null?0:U.onHideCommands)&&W&&w&&(_.N1(this.hostElement,this.data.onHideCommands,this.hostElement),X&&_.Cx().dispatch(_.E_({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:X}})))}a&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*Pm0++));_.r("kevlar_watch_focus_on_engagement_panels")&&
a&&Z&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.t.notifyVisibilityChanged=function(a){var W;_.W_(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,a,(W=this.data)==null?void 0:W.targetId])};
_.t.updateTheaterDisablement=function(){if(!_.r("kevlar_watch_theater_disablement_killswitch")){var a=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&I1z.includes(a)&&!_.r("watch_next_grid_ignore_disallowed_panels")){var W=_.A$(_.Cx().getState()),w=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";a!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():w?(this.originalTheaterState===void 0&&(this.originalTheaterState=W,this.theaterDisablementPanelIdentifier=
a),W&&_.aV(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.t.clearTheaterDisablement=function(){_.aV(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.t.updateChildVisibilityProperties=function(){this.hostElement||_.r("kevlar_panel_property_init_killswitch")||this._enableProperties();var a=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=a);var W,w=(W=this.headerElement)==null?void 0:W.firstElementChild;if(w&&!this.adHeaderImageLockupViewModel){W=a==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";w.collapsed=W;w=_.M(w).querySelector("#visibility-button");if(!w)return;(w=w.firstElementChild)&&
w.polymerController.is==="ytd-toggle-button-renderer"&&w.polymerController.data.isToggled!==W&&w.polymerController.set("data.isToggled",W)}var Z;if(W=(Z=this.contentElement)==null?void 0:Z.firstElementChild)if(a&&a!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")W.removeAttribute("panel-content-visible");else{W.setAttribute("panel-content-visible","");var N;(N=W.markDirty)==null||N.call(W)}};
_.t.onYtChangeEngagementPanelVisibilityAction=function(a){var W=this,w,Z=(w=this.data)==null?void 0:w.targetId,N,B,I;w=((N=this.data)==null?void 0:(B=N.identifier)==null?void 0:B.tag)||((I=this.data)==null?void 0:I.panelIdentifier);var X=_.A(a,_.QNe),v;a=Z&&(X==null?void 0:X.targetId)===Z||w&&(X==null?void 0:(v=X.panelIdentifier)==null?void 0:v.tag)===w;this.dialog&&a&&(X==null?void 0:X.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(Z==="engagement-panel-comments-section"?_.aV(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.aV(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",w]));!_.r("kevlar_use_engagement_panel_management_component")&&a&&(Z=X.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!Z?_.hF.addJob(function(){W.visibility=X.visibility},2,this.hideDelayMs):this.visibility=X.visibility,X.visibility&&this.notifyVisibilityChanged(X.visibility))};
_.t.onYtScrollToEngagementPanelCommand=function(a){var W,w=(W=this.data)==null?void 0:W.targetId,Z,N,B;W=((Z=this.data)==null?void 0:(N=Z.identifier)==null?void 0:N.tag)||((B=this.data)==null?void 0:B.panelIdentifier);a=_.A(a,_.V5$);var I;(w&&(a==null?void 0:a.targetId)===w||W&&(a==null?void 0:(I=a.panelIdentifier)==null?void 0:I.tag)===W)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.aV(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.t.attachVEs=function(a){var W,w;(a==null?0:(W=a.content)==null?0:(w=W.productListRenderer)==null?0:w.trackingParams)&&_.$J().graftServerVe(a.content.productListRenderer.trackingParams);var Z,N;(a==null?0:(Z=a.content)==null?0:(N=Z.transcriptRenderer)==null?0:N.trackingParams)&&_.$J().graftServerVe(a.content.transcriptRenderer.trackingParams)};
_.t.onYtUpdateEngagementPanelAction=function(a){var W,w=(W=this.data)==null?void 0:W.targetId;a=_.A(a,zk0);w&&(a==null?void 0:a.targetId)===w&&(this.updatePanel({engagementPanelSectionListRenderer:{header:a==null?void 0:a.header,content:a==null?void 0:a.content}},!1),this.attachVEs(a))};
_.t.onYtShowEngagementPanelScrimAction=function(a){var W,w=(W=this.data)==null?void 0:W.targetId;a=_.A(a,Vca);w&&(a==null?void 0:a.engagementPanelTargetId)===w&&(this.scrimmed=!0)};
_.t.onYtHideEngagementPanelScrimAction=function(a){var W,w=(W=this.data)==null?void 0:W.targetId;a=_.A(a,de9);w&&(a==null?void 0:a.engagementPanelTargetId)===w&&(this.scrimmed=!1)};
_.t.getIdentifier=function(){var a,W,w;return((a=this.data)==null?void 0:a.panelIdentifier)||((W=this.data)==null?void 0:(w=W.identifier)==null?void 0:w.tag)};
_.t.getSurface=function(){var a,W;return(a=this.data)==null?void 0:(W=a.identifier)==null?void 0:W.surface};
_.dU.Object.defineProperties(X_.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"}}});
X_.prototype.visibilityChanged=X_.prototype.visibilityChanged;X_.prototype.isFullscreenChanged=X_.prototype.isFullscreenChanged;X_.prototype.isTheaterModeChanged=X_.prototype.isTheaterModeChanged;X_.prototype.dataChanged=X_.prototype.dataChanged;X_.prototype.forwardPopupClosedToFlowRootRenderer=X_.prototype.forwardPopupClosedToFlowRootRenderer;X_.prototype.onYtRendererstamperFinished=X_.prototype.onYtRendererstamperFinished;
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],X_.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],X_.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],X_.prototype,"ytEventForwardingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],X_.prototype,"data",void 0);
_.f([_.b({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.z("design:type",Object)],X_.prototype,"headerData",void 0);_.f([_.b(),_.z("design:type",Object)],X_.prototype,"secondaryHeaderData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"visibility",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],X_.prototype,"contentEmpty",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],X_.prototype,"scrimmed",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],X_.prototype,"dialog",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],X_.prototype,"dropdown",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"darkerPanels",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"matchContentTheme",void 0);_.f([_.b(),_.z("design:type",Object)],X_.prototype,"disableAutoFill",void 0);
_.f([_.b({reflectToAttribute:!0,value:_.r("optimal_reading_width_comments_ep")}),_.z("design:type",Boolean)],X_.prototype,"optimalReadingWidthComments",void 0);_.f([_.b(),_.z("design:type",Number)],X_.prototype,"hideDelayMs",void 0);_.f([_.b({selector:_.rA,reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"isFullscreen",void 0);_.f([_.b({selector:_.A$,reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"isTheaterMode",void 0);
_.f([_.b(),_.z("design:type",Number)],X_.prototype,"showDelayMs",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data.targetId"),_.z("design:type",Object),_.z("design:paramtypes",[])],X_.prototype,"targetId",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],X_.prototype,"webSize",null);_.f([_.b(),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],X_.prototype,"hideFooterBorder",null);
_.f([_.b(),_.z("design:type",Object)],X_.prototype,"isWatch",void 0);_.f([_.b(),_.z("design:type",Object)],X_.prototype,"originalTheaterState",void 0);_.f([_.b(),_.z("design:type",Object)],X_.prototype,"theaterDisablementPanelIdentifier",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"modernPanels",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],X_.prototype,"isWatchWhilePanel",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],X_.prototype,"shortsPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],X_.prototype,"liveChatEngagementPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"liveChatReplyPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"enableAnchoredPanel",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"disableBackdropFilter",void 0);_.f([_.b(),_.z("design:type",Object)],X_.prototype,"trackEngagementPanelVisibility",void 0);_.f([_.w$("#header"),_.z("design:type",HTMLElement)],X_.prototype,"headerElement",void 0);_.f([_.w$("#header > *"),_.z("design:type",HTMLElement)],X_.prototype,"header",void 0);_.f([_.w$("ytd-section-list-renderer"),_.z("design:type",Object)],X_.prototype,"sectionListRendererElement",void 0);
_.f([_.w$("panel-ad-header-image-lockup-view-model"),_.z("design:type",HTMLElement)],X_.prototype,"adHeaderImageLockupViewModel",void 0);_.f([_.w$("#content"),_.z("design:type",HTMLElement)],X_.prototype,"contentElement",void 0);_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X_.prototype,"onYtRendererstamperFinished",null);
_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X_.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.f([_.lO("data","isFullscreen","isTheaterMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X_.prototype,"dataChanged",null);_.f([_.a5("isTheaterMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X_.prototype,"isTheaterModeChanged",null);
_.f([_.a5("isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X_.prototype,"isFullscreenChanged",null);_.f([_.a5("visibility"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X_.prototype,"visibilityChanged",null);X_=_.f([_.C({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],X_);
_.D(X_,"ytd-engagement-panel-section-list-renderer",function(){if(FW2!==void 0)return FW2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return FW2=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var XQ9;var vB=function(){var a=_.u.apply(this,arguments)||this;a.lastRenderedPanelIds=new Set;a.visiblePanels=[];a.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return a};
_.c(vB,_.u);_.t=vB.prototype;_.t.dataChanged=function(){if(this.data){for(var a=[],W=_.l(this.data),w=W.next();!w.done;w=W.next()){w=w.value;var Z=void 0,N=void 0,B=(Z=w)==null?void 0:(N=Z.engagementPanelSectionListRenderer)==null?void 0:N.visibility;N=Z=void 0;((Z=w)==null?0:(N=Z.engagementPanelSectionListRenderer)==null?0:N.targetId)&&B!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&a.push(w)}this.visiblePanels=a}else this.visiblePanels=[]};
_.t.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}}};
_.t.withoutVisiblePanelById=function(a){return this.visiblePanels.filter(function(W){var w;return((w=W.engagementPanelSectionListRenderer)==null?void 0:w.targetId)!==a})};
_.t.onYtChangeEngagementPanelVisibilityAction=function(a){var W=this,w=_.A(a,_.QNe);if(this.data&&(w==null?0:w.targetId)&&(w==null?0:w.visibility)){var Z,N=(Z=this.data.find(function(I){var X;return((X=I.engagementPanelSectionListRenderer)==null?void 0:X.targetId)===w.targetId}))==null?void 0:Z.engagementPanelSectionListRenderer;
if(N){var B=this.withoutVisiblePanelById(w.targetId);w.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(a=this.data.find(function(I){var X;return((X=I.engagementPanelSectionListRenderer)==null?void 0:X.targetId)===w.targetId}))&&(B=[a].concat(_.K8(B)));
this.hideDelayMs&&w.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&B.length===0?_.hF.addJob(function(){N.visibility=w.visibility;W.visiblePanels=B},10,this.hideDelayMs):(N.visibility=w.visibility,this.visiblePanels=B);
_.W_(this.hostElement,"yt-engagement-panels-visible-changed",[B])}}};
_.t.onRendererstamperFinished=function(){var a=new Set(this.visiblePanels.map(function(W){var w;return(w=W.engagementPanelSectionListRenderer)==null?void 0:w.targetId}));
this.handlePanelVisibilityChange(a,this.lastRenderedPanelIds);this.lastRenderedPanelIds=a};
_.t.handlePanelVisibilityChange=function(a,W){a=a===void 0?new Set:a;W=W===void 0?new Set:W;if(this.data)for(var w=_.l(this.data),Z=w.next();!Z.done;Z=w.next()){Z=Z.value;var N=void 0,B=void 0,I=(N=Z)==null?void 0:(B=N.engagementPanelSectionListRenderer)==null?void 0:B.targetId;if(I&&(N=W.has(I),B=a.has(I),I=void 0,!N&&B?(B=N=void 0,I=(N=Z)==null?void 0:(B=N.engagementPanelSectionListRenderer)==null?void 0:B.onShowCommands):N&&!B&&(B=N=void 0,I=(N=Z)==null?void 0:(B=N.engagementPanelSectionListRenderer)==
null?void 0:B.onHideCommands),I))for(Z=_.l(I),I=Z.next();!I.done;I=Z.next())this.ytComponentBehavior.resolveCommand(I.value)}};
vB.prototype.onRendererstamperFinished=vB.prototype.onRendererstamperFinished;vB.prototype.dataChanged=vB.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],vB.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],vB.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vB.prototype,"lastRenderedPanelIds",void 0);_.f([_.b(),_.z("design:type",Number)],vB.prototype,"hideDelayMs",void 0);_.f([_.b(),_.z("design:type",Array)],vB.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Array)],vB.prototype,"visiblePanels",void 0);_.f([_.b(),_.z("design:type",Boolean)],vB.prototype,"isWatchWhilePanel",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vB.prototype,"dataChanged",null);_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vB.prototype,"onRendererstamperFinished",null);vB=_.f([_.C({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],vB);
_.D(vB,"ytd-watch-engagement-panels",function(){if(XQ9!==void 0)return XQ9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return XQ9=a},{mode:1});var vz9;var gu=function(){return _.u.apply(this,arguments)||this};
_.c(gu,_.u);gu.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.xf(_.M(this.hostElement).querySelector("#text"),_.fEJ(_.VV$,this.data.companionLegalText))};
gu.prototype.computeAutoScrollEnabled=function(a,W){return a&&!W};
gu.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
gu.prototype.onToggleTap=function(){this.expanded=!this.expanded};
gu.prototype.expandedChanged=gu.prototype.expandedChanged;gu.prototype.dataChanged=gu.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.vAk),_.z("design:type",Object)],gu.prototype,"ytdAutoScrollBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],gu.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],gu.prototype,"expanded",void 0);
_.f([_.b({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.z("design:type",Boolean)],gu.prototype,"autoScrollEnabled",void 0);_.f([_.b(),_.z("design:type",String)],gu.prototype,"expanderIcon",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gu.prototype,"dataChanged",null);
_.f([_.a5("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gu.prototype,"expandedChanged",null);gu=_.f([_.C({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],gu);
_.D(gu,"ytd-companion-legal-text-renderer",function(){if(vz9!==void 0)return vz9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return vz9=a},{mode:1});var gzD;var oz=function(){var a=_.u.apply(this,arguments)||this;a.buttonUpdate=_.r("web_modern_buttons");a.kevlarWatchGrid=_.r("kevlar_watch_grid");a.centerAlignDescription=_.r("action_companion_center_align_description");a.truncateDomain=_.r("action_companion_truncate_domain");return a};
_.c(oz,_.u);_.t=oz.prototype;_.t.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.t.getOnLayoutVisibleCallback=function(){var a=_.RT("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.t.getLayoutId=function(){var a=_.RT("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.t.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",oz.JSC$20116_DEFAULT_AD_BADGE_RENDERER);var a=this.getOnLayoutVisibleCallback();a&&a()}};
_.t.getButtonRenderer=function(a){return a.actionButton&&_.A(a.actionButton,_.J4)?(delete _.A(a.actionButton,_.J4).navigationEndpoint,_.A(a.actionButton,_.J4)):{}};
_.t.onClick=function(a){var W=this;if((!_.r("web_modern_buttons")||!_.b5(_.qj(a),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){a=_.fA();var w=this.getLayoutId();a&&w&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(Z){(new _.vd(Z)).executeCommand(W.data.navigationEndpoint,w)}):_.r("kevlar_companion_resolve_command_killswitch")?_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.aV(this.hostElement,"yt-companion-ad-clicked",["action-companion",w])}};
_.dU.Object.defineProperties(oz.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return((a=this.data)==null?0:(W=a.detailsLine)==null?0:(w=W.adRating)==null?0:w.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,W,w,Z;return((a=this.data)==null?0:(W=a.detailsLine)==null?0:(w=W.adRating)==null?0:(Z=w.ratingIcon)==null?0:Z.iconType)?_.EN(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z;return((a=this.data)==null?0:(W=a.detailsLine)==null?0:(w=W.texts)==null?0:(Z=w[0])==null?0:Z.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,W;return((a=this.data)==null?0:(W=a.description)==null?0:W.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=_.RT("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}}});
oz.prototype.onClick=oz.prototype.onClick;oz.prototype.dataChanged=oz.prototype.dataChanged;oz.JSC$20116_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.P_("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],oz.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],oz.prototype,"rendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],oz.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oz.prototype,"buttonUpdate",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oz.prototype,"kevlarWatchGrid",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oz.prototype,"centerAlignDescription",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oz.prototype,"truncateDomain",void 0);
_.f([_.b({computed:"computeButtonOverride(buttonUpdate)"}),_.z("design:type",Object)],oz.prototype,"buttonOverride",void 0);_.f([_.Q("data.detailsLine.adRating.ratingText"),_.z("design:type",Object),_.z("design:paramtypes",[])],oz.prototype,"getRating",null);_.f([_.Q("getRating"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oz.prototype,"computeRatingHidden",null);
_.f([_.Q("data.detailsLine.adRating.ratingIcon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],oz.prototype,"iconType",null);_.f([_.Q("data.detailsLine.texts.0.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],oz.prototype,"getDetailsLine",null);_.f([_.Q("getDetailsLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oz.prototype,"computeDetailsLineHidden",null);
_.f([_.Q("data.description.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],oz.prototype,"getDescriptionText",null);_.f([_.Q("getDescriptionText"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oz.prototype,"computeDescriptionTextHidden",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oz.prototype,"interactionLoggingClientData",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oz.prototype,"hideBanner",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oz.prototype,"dataChanged",null);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],oz.prototype,"onClick",null);oz=_.f([_.C({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],oz);
_.D(oz,"ytd-action-companion-ad-renderer",function(){if(gzD!==void 0)return gzD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return gzD=a},{mode:_.Vn("kevlar_poly_si_batch_j067")?1:2});var ozD;var kjD;var kN=function(){var a=_.u.apply(this,arguments)||this;a.buttonUpdate=_.r("web_modern_buttons");a.hideLegacyBanner=_.r("enable_dsa_one_click_ata_translators_infeed_elements");a.adInfoButtonStyle="mono";a.adInfoButtonType="text";a.noDotAdBadge=!0;return a};
_.c(kN,_.u);_.t=kN.prototype;_.t.getOnLayoutVisibleCallback=function(){var a=_.RT("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.t.getLayoutId=function(){var a=_.RT("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.t.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?_.SB(a.url):void 0;this.imageWidth=a.width||0;this.imageHeight=a.height||0}this.data.clickthroughEndpoint&&_.A(this.data.clickthroughEndpoint,_.ba)&&(a=_.A(this.data.clickthroughEndpoint,_.ba).url,_.r("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
a||"":a?(a=_.SB(a),this.clickThroughUrl=_.oJ(a)):this.clickThroughUrl=void 0);(a=this.getOnLayoutVisibleCallback())&&a()}};
_.t.onClick=function(a){_.b5(_.qj(a),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(a)};
_.t.handleClick=function(){var a=this;this.data&&this.data.clickthroughEndpoint&&(_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(W){a.macroReplacementBehavior.sendServiceRequestAction([W])}),_.aV(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.t.onLoad=function(){_.W_(this.hostElement,"yt-refit-popups-action")};
_.dU.Object.defineProperties(kN.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var a=_.RT("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var a=_.RT("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.interactionLoggingClientData:null}}});
kN.prototype.onLoad=kN.prototype.onLoad;kN.prototype.onClick=kN.prototype.onClick;kN.prototype.dataChanged=kN.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kN.prototype,"rendererBehavior",void 0);_.f([_.R(uEI.YtMacroReplacementBehavior),_.z("design:type",Object)],kN.prototype,"macroReplacementBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kN.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kN.prototype,"buttonUpdate",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kN.prototype,"hideLegacyBanner",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kN.prototype,"adInfoButtonStyle",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kN.prototype,"adInfoButtonType",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],kN.prototype,"macros",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],kN.prototype,"interactionLoggingClientData",null);_.f([_.b(),_.z("design:type",String)],kN.prototype,"clickThroughUrl",void 0);_.f([_.b(),_.z("design:type",_.Xr)],kN.prototype,"imageSrc",void 0);_.f([_.b(),_.z("design:type",Number)],kN.prototype,"imageWidth",void 0);_.f([_.b(),_.z("design:type",Number)],kN.prototype,"imageHeight",void 0);_.f([_.b(),_.z("design:type",Object)],kN.prototype,"noDotAdBadge",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kN.prototype,"dataChanged",null);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],kN.prototype,"onClick",null);_.f([_.E6("load"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kN.prototype,"onLoad",null);kN=_.f([_.C({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],kN);
_.D(kN,"ytd-image-companion-renderer",function(){if(kjD!==void 0)return kjD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return kjD=a},{mode:_.Vn("kevlar_poly_si_batch_j067")?1:2});var UuX;var Uc=function(){return _.u.apply(this,arguments)||this};
_.c(Uc,_.u);_.t=Uc.prototype;_.t.dataChanged=function(){this.set("data.adBadge",Uc.JSC$20125_DEFAULT_AD_BADGE_RENDERER);if(this.data){var a=this.getOnLayoutVisibleCallback();a&&a()}};
_.t.getOnLayoutVisibleCallback=function(){var a=_.RT("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.t.getLayoutId=function(){var a=_.RT("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.t.onCompanionClicked=function(a){this.data&&(a.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.aV(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.t.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var a=_.fA(),W=this.getLayoutId(),w=this.data.clickToAdvSiteEndpoint;a&&W&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(Z){(new _.vd(Z)).executeCommand(w,W)}):_.E$(this.hostElement,"yt-navigate",{endpoint:w})}};
_.t.sendTrackingPings=function(a){if(a&&a.length!==0&&a[0].loggingUrls&&(a=a[0].loggingUrls.map(this.getBaseUrl)))for(var W=0;W<a.length;W++)_.qE(a[W])};
_.t.getBaseUrl=function(a){return a.baseUrl||""};
_.dU.Object.defineProperties(Uc.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var a=_.RT("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.interactionLoggingClientData:null}}});
Uc.prototype.onCompanionClicked=Uc.prototype.onCompanionClicked;Uc.prototype.dataChanged=Uc.prototype.dataChanged;Uc.JSC$20125_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.P_("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Uc.prototype,"data",void 0);_.f([_.w$("#title"),_.z("design:type",HTMLElement)],Uc.prototype,"shopTitle",void 0);
_.f([_.lO("data.impressionEndpoints"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Uc.prototype,"dataChanged",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Uc.prototype,"interactionLoggingClientData",null);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Uc.prototype,"onCompanionClicked",null);
Uc=_.f([_.C({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Uc);
_.D(Uc,"ytd-shopping-companion-renderer",function(){if(UuX!==void 0)return UuX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return UuX=a},{mode:1});_.Ct(_.xQ(function(a){var W=a.data;var w=_.D8();_.m5(w,function(){return W().interaction},v9d);
_.yz(w,{visibilityCallback:function(Z){var N,B=(N=W().interaction)==null?void 0:N.onFirstVisible;Z&&B&&_.cX(B)},
showOption:_.uC});_.pa(function(){var Z,N;N=(N=_.RT("yt.www.ads.eventcache.getLastCompanionData"))?(N=N())&&N.onLayoutVisibleCallback:null;(Z=N)==null||Z()});
a=_.$_(function(){_.W_(w.value,"yt-refit-popups-action")});
return _.k("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":a,el:w,"aria-label":function(){var Z,N;return(Z=W().interaction)==null?void 0:(N=Z.accessibility)==null?void 0:N.label}},_.k("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.k(_.Ax,{data:function(){return W().adImage}},{adImageViewModel:function(Z){return _.k(_.w_,{data:Z.data,
targetHeight:80,customCommandResolver:v9d})}})),_.k("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.k("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.k(_.Ax,{data:function(){return W().adBadge}},{adBadgeViewModel:function(Z){return _.k(_.mR,{data:Z.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.k("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.k(_.Ax,{data:function(){return W().menu}},{buttonViewModel:_.F7}))))},"Pi"),"banner-image-layout-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;a=_.D8();_.m5(a,function(){return W().interaction},g9z);
_.yz(a,{visibilityCallback:function(w){var Z,N=(Z=W().interaction)==null?void 0:Z.onFirstVisible;w&&N&&_.cX(N)},
showOption:_.uC});_.pa(function(){var w,Z;Z=(Z=_.RT("yt.www.ads.eventcache.getLastCompanionData"))?(Z=Z())&&Z.onLayoutVisibleCallback:null;(w=Z)==null||w()});
return _.k("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:a},_.k("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.k(_.Ax,{data:function(){return W().adImage}},{adImageViewModel:function(w){return _.k(_.w_,{data:w.data,
targetHeight:80,customCommandResolver:g9z})}})),_.k("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.k("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.k(_.Ax,{data:function(){return W().adAvatarLockup}},{adAvatarLockupViewModel:function(w){return _.k(l1d,{data:w.data,
customCommandResolver:g9z})}})),_.k(_.Ax,{data:function(){return W().adButton}},{adButtonViewModel:function(w){return _.k(_.Gn,{data:w.data,
customCommandResolver:g9z})}}),_.k("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.k(_.Ax,{data:function(){return W().menu}},{buttonViewModel:_.F7}))))},"Qi"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.qR}});var Osz={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"},Oc=function(){var a=_.u.apply(this,arguments)||this;a.updateCompanionDataJobId=0;a.contentVideoId=null;a.player=null;a.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return a};
_.c(Oc,_.u);_.t=Oc.prototype;_.t.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:Osz}}};
_.t.attached=function(){var a=this,W=_.fA();W&&W.getPlayerPromise().then(function(w){a.getCachedDataAndListen(w)})};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.t.updateRendererStamper=function(){var a={};if(this.data)for(var W in Osz)if(this.data[W]){a[W]=this.data[W];break}if(this.oneofRenderer!=void 0||Object.keys(a).length)this.oneofRenderer=a};
_.t.getCachedDataAndListen=function(a){var W=this.retrieveCachedCompanionData();W&&Object.keys(W).length&&this.receiveCompanionData(W);this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=a};
_.t.retrieveCachedCompanionData=function(){return _.NH.yt&&_.NH.yt.www&&_.NH.yt.www.ads&&_.NH.yt.www.ads.eventcache&&_.NH.yt.www.ads.eventcache.getLastCompanionData?_.NH.yt.www.ads.eventcache.getLastCompanionData():null};
_.t.receiveCompanionData=function(a){a&&Object.keys(a).length?(this.contentVideoId=a.contentVideoId,this.setCompanionData(a)):this.setCompanionData(a)};
_.t.setCompanionData=function(a){this.cancelPendingCompanionAdJobs();if(a){this.updateCompanionDataJobId=0;for(var W in Osz)Osz.hasOwnProperty(W)&&(this.data[W]=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),_.W_(this.hostElement,
"yt-hide-unlimited-offer-module"),_.W_(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()}};
_.t.dataChanged=function(){var a=this,W=_.fA();W?W.getPlayerPromise().then(function(w){a.contentVideoId&&w.getVideoUrl().includes("v="+a.contentVideoId)||(a.cancelPendingCompanionAdJobs(),a.updateRendererStamper())}):_.qx(Error("gm"))};
_.t.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.hF.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.t.handleCompanionAdClicked=function(a,W){this.player.onAdUxClicked(a,W);this.player.pauseVideo()};
Oc.prototype.dataChanged=Oc.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Oc.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Oc.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Oc.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],Oc.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Oc.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Oc.prototype,"oneofRenderer",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oc.prototype,"dataChanged",null);Oc=_.f([_.C({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Oc);
_.D(Oc,"ytd-companion-slot-renderer",function(){if(ozD!==void 0)return ozD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return ozD=a},{mode:_.Vn("kevlar_poly_si_batch_j067")?
1:2});var Sgd;var S1=function(){return _.u.apply(this,arguments)||this};
_.c(S1,_.u);S1.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
S1.prototype.dataChanged=S1.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],S1.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],S1.prototype,"companionSlotData",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S1.prototype,"dataChanged",null);
S1=_.f([_.C({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],S1);
_.D(S1,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(Sgd!==void 0)return Sgd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Sgd=a},{mode:1});var Ygk;var YN=function(){var a=_.u.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,_.DW(a,function(){var W=a.COMPACT_EVENT_COUNT-1,w;(w=_.M(a.hostElement).querySelector("#event-"+W))==null||w.focus()}))};
return a};
_.c(YN,_.u);_.t=YN.prototype;_.t.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.t.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.t.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.yV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.yV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.yV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.yV(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.yV(this.infoTooltip,this.infoTooltip.hide))};
_.t.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.yV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.yV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.yV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.yV(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.yV(this.infoTooltip,this.infoTooltip.hide))};
_.t.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)};
_.t.onShowingMoreChanged=function(){var a;this.showingMoreChanged((a=this.showingMore)!=null?a:!1)};
_.t.showingMoreChanged=function(a){var W=this.get("data.events")||[];this.set("restEvents",W.slice(1,a?W.length:this.COMPACT_EVENT_COUNT).map(function(w){return w.ticketEventRenderer}));
W.slice(0,a?W.length:this.COMPACT_EVENT_COUNT).forEach(function(w){var Z=_.nS();w=w.ticketEventRenderer.trackingParams;_.eH()&&Z&&w&&(w=_.PX(w),Z&&_.q1(Z,w))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.t.computeAriaLabel=function(a){return a.subtitle1+", "+a.subtitle2};
_.t.logTap=function(a){_.eH()&&this.ytRendererBehavior.logExplicitClick(a)};
_.t.isKeyboardAction=function(a){return this.get("detail.x",a)===0&&this.get("detail.y",a)===0};
_.t.onFirstEventTap=function(a){a.target&&this.handleTap(a.target,this.firstEvent,this.isKeyboardAction(a))};
_.t.onTicketLinkTap=function(a){a.target&&this.handleTap(a.target,a.model.item,this.isKeyboardAction(a))};
_.t.handleTap=function(a,W,w){if(W.buttonCommand)if(W.hasMultipleOffers)Object.assign(_.A(W.buttonCommand,_.A4),{properties:{source:w?"keyboard":"tap"}}),this.logTap(W),this.popupPositionTarget=a,_.N1(this.hostElement,[W.buttonCommand],this.hostElement);else{var Z;if((Z=_.A(W.buttonCommand,_.ba))==null?0:Z.url)this.logTap(W),_.Lv(window,_.A(W.buttonCommand,_.ba).url)}};
YN.prototype.onShowingMoreChanged=YN.prototype.onShowingMoreChanged;YN.prototype.dataChanged=YN.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],YN.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],YN.prototype,"firstEvent",void 0);_.f([_.b(),_.z("design:type",Object)],YN.prototype,"restEvents",void 0);_.f([_.b(),_.z("design:type",String)],YN.prototype,"imageUrl",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],YN.prototype,"showingMore",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],YN.prototype,"canShowMore",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YN.prototype,"skinnyMode",void 0);_.f([_.b(),_.z("design:type",HTMLElement)],YN.prototype,"popupPositionTarget",void 0);_.f([_.w$("#banner-info-tooltip"),_.z("design:type",Object)],YN.prototype,"infoTooltip",void 0);
_.f([_.w$("#info-container"),_.z("design:type",HTMLElement)],YN.prototype,"infoContainer",void 0);_.f([_.w$("#shelf-toggler"),_.z("design:type",HTMLElement)],YN.prototype,"shelfToggleButton",void 0);_.f([_.w$("#separator"),_.z("design:type",HTMLDivElement)],YN.prototype,"separator",void 0);_.f([_.b(),_.z("design:type",String)],YN.prototype,"shelfTogglerLabelText",void 0);_.f([_.b(),_.z("design:type",String)],YN.prototype,"shelfTogglerIcon",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YN.prototype,"dataChanged",null);_.f([_.lO("showingMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YN.prototype,"onShowingMoreChanged",null);YN=_.f([_.C({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],YN);
_.D(YN,"ytd-ticket-shelf-renderer",function(){if(Ygk!==void 0)return Ygk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Ygk=a},{mode:1});var TWd;var KEX;var TB=function(){return _.u.apply(this,arguments)||this};
_.c(TB,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],TB.prototype,"data",void 0);TB=_.f([_.C({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],TB);
_.D(TB,"ytd-comments-entry-point-message-renderer",function(){if(KEX!==void 0)return KEX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return KEX=a},{mode:1});var pQk;var KW=function(){return _.u.apply(this,arguments)||this};
_.c(KW,_.u);_.dU.Object.defineProperties(KW.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.teaserAvatar)}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],KW.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],KW.prototype,"hasAvatar",null);KW=_.f([_.C({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],KW);
_.D(KW,"ytd-comments-entry-point-teaser-renderer",function(){if(pQk!==void 0)return pQk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return pQk=a},{mode:1});var rXE;var pW=function(){return _.u.apply(this,arguments)||this};
_.c(pW,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],pW.prototype,"data",void 0);pW=_.f([_.C({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],pW);
_.D(pW,"ytd-comments-simplebox-renderer",function(){if(rXE!==void 0)return rXE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return rXE=a},{mode:1});var ru=function(){var a=_.u.apply(this,arguments)||this;a.fullHeight=!_.r("comment_teaser_full_height_kill_switch")&&_.r("kevlar_watch_grid");return a};
_.c(ru,_.u);ru.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"}}}};
ru.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
ru.prototype.onTap=function(){var a=this.tapCommand;a&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(a))};
ru.prototype.onKeyUp=function(a){if(a.keyCode===13)this.onTap()};
_.dU.Object.defineProperties(ru.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.onTap)return this.data.onTap;var W,w;if(((W=this.data)==null?0:W.teaserContent)||((w=this.data)==null?0:w.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}}});
ru.prototype.onKeyUp=ru.prototype.onKeyUp;ru.prototype.onTap=ru.prototype.onTap;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ru.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ru.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ru.prototype,"fullHeight",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ru.prototype,"tapCommand",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ru.prototype,"simpleboxPlaceholder",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ru.prototype,"hasSimpleboxPlaceholder",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ru.prototype,"simpleboxAvatar",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ru.prototype,"teaserContent",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ru.prototype,"hasTeaserContent",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ru.prototype,"teaserAvatar",null);
_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ru.prototype,"hasTeaserAvatar",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ru.prototype,"messageText",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ru.prototype,"contentRenderer",null);_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ru.prototype,"hasContents",null);
_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ru.prototype,"hasContentRenderer",null);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ru.prototype,"onTap",null);_.f([_.E6("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[_.Ul]),_.z("design:returntype")],ru.prototype,"onKeyUp",null);ru=_.f([_.C({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],ru);
_.D(ru,"ytd-comments-entry-point-header-renderer",function(){if(TWd!==void 0)return TWd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return TWd=a},{mode:1});var AX9;_.HX(_.tu,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var ho0=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),is2={numberText:"",heightPx:2*ho0,shouldAnimate:!1},Ah=function(){var a=_.u.apply(this,arguments)||this;a.usingAnimatedComponents=!0;a.wasDetailed=!1;a.JSC$20162_browserSupportsAnimation=_.r("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=is2;a.dateTextProps=
is2;a.metadataBadgesInDescription=_.r("web_metadata_badges_in_description");return a};
_.c(Ah,_.u);_.t=Ah.prototype;_.t.resetAnimationState=function(){this.shouldAnimate=!1};
_.t.updateDynamicMetadata=function(){if(this.JSC$20162_browserSupportsAnimation){if(!this.detailed){var a,W,w,Z;var N=(a=this.videoPrimaryInfoRenderer)==null?void 0:(W=a.viewCount)==null?void 0:(w=W.videoViewCountRenderer)==null?void 0:(Z=w.extraShortViewCount)==null?void 0:Z.simpleText;var B,I,X,v;var U=(B=this.videoPrimaryInfoRenderer)==null?void 0:(I=B.viewCount)==null?void 0:(X=I.videoViewCountRenderer)==null?void 0:(v=X.shortViewCount)==null?void 0:v.simpleText}if(!U){var O,S,T,p;N=(O=this.videoPrimaryInfoRenderer)==
null?void 0:(S=O.viewCount)==null?void 0:(T=S.videoViewCountRenderer)==null?void 0:(p=T.unlabeledViewCountValue)==null?void 0:p.simpleText;var h,L,F,x;U=(h=this.videoPrimaryInfoRenderer)==null?void 0:(L=h.viewCount)==null?void 0:(F=L.videoViewCountRenderer)==null?void 0:(x=F.viewCount)==null?void 0:x.simpleText}var G,V,d;a=Number((G=this.videoPrimaryInfoRenderer)==null?void 0:(V=G.viewCount)==null?void 0:(d=V.videoViewCountRenderer)==null?void 0:d.originalViewCount);var ZD,aC;G=(ZD=this.videoPrimaryInfoRenderer)==
null?void 0:(aC=ZD.relativeDateText)==null?void 0:aC.simpleText;var Bv;ZD=!((Bv=this.videoPrimaryInfoRenderer)==null||!Bv.relativeDateText);if(N&&U&&a&&(G||!ZD)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;Bv=U.split(new RegExp("("+N+")"));N=Ykn(Bv[0]);var Am;U={numberText:(Am=Bv[1])!=null?Am:"",numberValue:a,heightPx:2*ho0,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var e9;Am=((e9=Bv[2])!=null?e9:"")+"  ";this.setViewCount(U,N,
Ykn(Am));if(!this.detailed&&ZD){N=G.split(/(\d+)/);e9=Ykn(N[0]);var cv;Am={numberText:(cv=N[1])!=null?cv:"",heightPx:2*ho0,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var C7;cv=((C7=N[2])!=null?C7:"")+"  ";this.setDateText(Am,e9,Ykn(cv))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.t.setViewCount=function(a,W,w){_.sd(W)!==_.sd(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=W);this.viewCountProps.numberText!==(a==null?void 0:a.numberText)&&(this.viewCountProps=a||is2);_.sd(w)!==_.sd(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=w)};
_.t.setDateText=function(a,W,w){_.sd(W)!==_.sd(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=W);this.dateTextProps.numberText!==(a==null?void 0:a.numberText)&&(this.dateTextProps=a||is2);_.sd(w)!==_.sd(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=w)};
_.t.onYtUpdateViewershipAction=function(a){this.videoPrimaryInfoRenderer&&(_.A(a,pFz).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.A(a,pFz).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.A(a,pFz).viewCount)))};
_.t.onYtUpdateDateTextAction=function(a){if(this.videoPrimaryInfoRenderer){a=_.A(a,_.TLI).dateText;this.shouldAnimate=!0;var W;((W=this.videoPrimaryInfoRenderer)==null?0:W.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",a):this.set("videoPrimaryInfoRenderer.dateText",a)}};
_.dU.Object.defineProperties(Ah.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return SkK(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.sd(SkK(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
hideDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.sd(this.viewCountPreNumberText),this.viewCountProps.numberText,_.sd(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.sd(this.dateTextPreNumberText),this.dateTextProps.numberText,_.sd(this.dateTextPostNumberText)].join("")}}});
Ah.prototype.updateDynamicMetadata=Ah.prototype.updateDynamicMetadata;Ah.prototype.resetAnimationState=Ah.prototype.resetAnimationState;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Ah.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ah.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Ah.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ah.prototype,"videoPrimaryInfoRenderer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ah.prototype,"detailed",void 0);_.f([_.b(),_.z("design:type",Object)],Ah.prototype,"shouldAnimate",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ah.prototype,"viewCountPreNumberText",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ah.prototype,"viewCountProps",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ah.prototype,"viewCountPostNumberText",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ah.prototype,"dateTextPreNumberText",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ah.prototype,"dateTextProps",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ah.prototype,"dateTextPostNumberText",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ah.prototype,"metadataBadgesInDescription",void 0);_.f([_.Q("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ah.prototype,"infoText",null);
_.f([_.Q("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.z("design:type",String),_.z("design:paramtypes",[])],Ah.prototype,"descriptionInfoTooltipText",null);_.f([_.Q("detailed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ah.prototype,"hideDescriptionInfoTooltip",null);
_.f([_.Q("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.z("design:type",String),_.z("design:paramtypes",[])],Ah.prototype,"animatedViewCountAccessibilityLabel",null);_.f([_.Q("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.z("design:type",String),_.z("design:paramtypes",[])],Ah.prototype,"animatedDateTextAccessibilityLabel",null);
_.f([_.a5("videoPrimaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ah.prototype,"resetAnimationState",null);_.f([_.a5("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ah.prototype,"updateDynamicMetadata",null);Ah=_.f([_.C({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Ah);
_.D(Ah,"ytd-watch-info-text",function(){if(AX9!==void 0)return AX9;var a=document.createElement("template");_.n(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 id="view-count-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<tp-yt-paper-tooltip hidden="[[hideDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');
a.content.insertBefore(_.y().content.cloneNode(!0),a.content.firstChild);return AX9=a},{mode:1});var cXE;var eoa=_.xQ(function(a){var W=a.data;var w=a.setTapCommand;_.Ka(function(){var Z=_.rJ(W().onTap);w(Z)});
return _.k("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.k(_.Ax,{data:function(){return W().avatar}},{avatarViewModel:_.c6}),_.k("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.k("span",null,function(){return W().simpleboxText})))},"Ri");var nz0=_.xQ(function(a){return _.k("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.k(_.Y,{cond:function(){return _.A(a.data().avatar,_.fj)},
then:function(W){return _.k(_.c6,{data:W,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.k("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.k(_.k_,{text:function(){return a.data().teaserText}})))},"Si");var jbd=_.xQ(function(a){var W=a.data;var w=a.setTapCommand;_.Ka(function(){var Z=_.rJ(W().onTap);w(Z)});
return _.k("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.k(_.Ax,{data:function(){return W().teasers}},{commentsEntryPointTeaserViewModel:nz0}))},"Ti");var LEf=_.xQ(function(a){var W=a.data;var w=a.setTapCommand;_.Ka(function(){var Z=_.rJ(W().onTap);w(Z)});
return _.k("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.k(_.k_,{text:function(){return W().messageText}}))},"Ui");var JXn=_.xQ(function(a){var W=a.data;var w=a.setTapCommand;var Z=a.isDisabled;_.Ka(function(){var N=(Z==null?0:Z())?void 0:_.rJ(W().onTap);w(N)});
return _.k("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.k(_.P$,{icon:function(){return W().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.k(_.Y,{cond:function(){return W().image},
then:function(N){return _.k(_.qw,{data:N,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.k(_.k_,{text:function(){return W().text},
className:function(){return W().image||W().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.k(_.Ax,{data:function(){return W().button}},{buttonViewModel:function(N){return _.k(_.F7,{data:N.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:Z==null?void 0:Z()}}})}}))},"Vi");var FE2=_.xQ(function(a){var W=a.data;var w=a.itemIndex;var Z=a.selectedIndex;var N=a.indexUpdatedCallback;var B=a.observer;a=a.title;var I=_.D8(),X=function(S){w()===Z()&&N(S)},v=_.Au(zJ0),U=_.Au(HLI),O=function(){var S,T,p;
return((S=W())==null?void 0:S.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!v()||((T=W())==null?void 0:T.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&U().includes("PAposts_by_host")||((p=W())==null?void 0:p.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&U().includes("PAyouchat")};
_.AS(function(){B&&B().observe(I.value)});
return _.k("yt-carousel-item-view-model",{el:I,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":a},_.k(_.Ax,{data:function(){var S,T;return(T=(S=_.A(W().carouselItem,GEd))==null?void 0:S.textCarousel)!=null?T:W().carouselItem}},{textCarouselItemViewModel:function(S){return _.k(JXn,{data:S.data,
setTapCommand:X,isDisabled:O})},
commentTeaserCarouselItemViewModel:function(S){return _.k(jbd,{data:S.data,setTapCommand:X})},
commentInputBoxCarouselItemViewModel:function(S){return _.k(eoa,{data:S.data,setTapCommand:X})},
commentsEntryPointMessageViewModel:function(S){return _.k(LEf,{data:S.data,setTapCommand:X})}}))},"Wi");var MqD=_.xQ(function(a){var W=a.numDots;var w=a.activeIndex;return _.k("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.k(_.k6,{each:function(){return Array.from({length:W()})},
keyBy:"INDEX"},function(Z,N){return _.k("div",{class:function(){var B={};return _.ZK("ytCarouselDotsShapeDot",(B.ytCarouselDotsShapeDotActive=N===w(),B))}})}))},"Xi");var Ron=_.xQ(function(a){var W=a.data;var w=a.handleCarouselNavigation;var Z=a.numItems;var N=a.selectedIndex;var B=function(){return{disabled:N()===0}},I=function(){return{disabled:N()===Z()-1}};
return _.k("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.k("div",null,_.k("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return W().title}),_.k(_.Y,{cond:function(){return W().subtitle},
then:function(X){return _.k("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return W().subtitleAccessibilityText}},X)}})),_.k(_.Y,{cond:function(){return Z()>1},
then:function(){return _.k("div",{class:"ytCarouselTitleViewModelNavigation"},_.k(MqD,{numDots:Z,activeIndex:N}),_.k(_.Y,{cond:function(){return W().previousButton},
then:function(X){return _.k(_.Ax,{data:X},{buttonViewModel:function(v){return _.k(_.F7,{data:v.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return w(-1)},
buttonOverrides:B})}})}}),_.k(_.Y,{cond:function(){return W().nextButton},
then:function(X){return _.k(_.Ax,{data:X},{buttonViewModel:function(v){return _.k(_.F7,{data:v.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return w(1)},
buttonOverrides:I})}})}}))}}))},"Yi");_.Ct(_.xQ(function(a){var W=a.data;var w=_.D8(),Z=_.D8(),N=_.LF("HTML_DIR")==="rtl",B=!1,I=0,X=0;a=_.l(_.$1(0,void 0,"m0dtIf"));var v=a.next().value,U=a.next().value;a=_.l(_.$1(0,void 0,"fL6I6"));var O=a.next().value,S=a.next().value;a=_.l(_.$1(!1,void 0,"ZPrwNb"));var T=a.next().value,p=a.next().value,h=function(){var Bv,Am,e9;return(e9=(Bv=W())==null?void 0:(Am=Bv.carouselTitles)==null?void 0:Am.length)!=null?e9:0},L=function(){Z.value&&Z.value.scrollLeft!==I&&U((N?Z.value.scrollLeft<I:Z.value.scrollLeft>
I)?Math.min(v()+1,h()-1):Math.max(v()-1,0))},F;
window.IntersectionObserver&&(F=new IntersectionObserver(function(Bv){Bv=_.l(Bv);for(var Am=Bv.next();!Am.done;Am=Bv.next())if(Am.value.isIntersecting){if(B){B=!1;break}L()}else U(X)},{threshold:.2}));
_.Ka(function(){if(Z.value){var Bv=(N?-1:1)*(O()/h()+12)*(T()&&F?X:v());typeof Z.value.scrollTo==="function"?Z.value.scrollTo({left:Bv,behavior:"smooth"}):Z.value.scrollLeft=Bv;I=Bv;X=T()&&F?X:v()}});
var x,G=function(Bv){x=Bv};
_.AS(function(){var Bv=function(){var e9=Z.value.offsetWidth*h(),cv=24*(h()-1);S(e9+cv)};
Bv();if(window.ResizeObserver){var Am=new ResizeObserver(Bv);Am.observe(Z.value);_.Ao(function(){Am.disconnect();F&&F.disconnect()})}});
a=_.$_(function(Bv){if(_.QfD(_.xD(Bv),w.value,["BUTTON".toString()])||!x)return!1;_.K().resolve(_.zU).resolveCommand(x,{forceClickLogging:!0});return!1});
var V=function(Bv){Bv=v()+Bv;Bv>=0&&Bv<h()&&(B=!0,U(Bv))},d=_.$_(function(){p(!0);
return!1}),ZD=_.$_(function(){F||L();
p(!1);return!1}),aC={};
return _.k("yt-video-metadata-carousel-view-model",{class:_.W$("ytVideoMetadataCarouselViewModelHost",(aC.ytVideoMetadataCarouselViewModelShortMode=_.r("mweb_video_metadata_carousel_short_mode"),aC)),el:w,"on:click":a,"on:touchstart":d,"on:touchend":ZD,hidden:function(){var Bv,Am;return!((Bv=W())==null?0:(Am=Bv.carouselItems)==null?0:Am.length)}},_.k("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.k(_.Y,{cond:function(){return W().carouselTitles},
then:function(Bv){return _.k(_.Ax,{data:function(){return Bv()[T()&&F?X:v()]}},{carouselTitleViewModel:function(Am){return _.k(Ron,{data:Am.data,
handleCarouselNavigation:V,numItems:h,selectedIndex:v})}})}})),_.k("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Z},_.k("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+O()+"px;"}},_.k(_.Y,{cond:function(){return W().carouselItems},
then:function(Bv){return _.k(_.k6,{each:Bv},function(Am,e9){return _.k(_.Ax,{data:function(){return Am}},{carouselItemViewModel:function(cv){return _.k(FE2,{data:cv.data,
itemIndex:e9,selectedIndex:v,indexUpdatedCallback:G,observer:F,title:function(){a:{var C7=e9();var RC,G8=(RC=W())==null?void 0:RC.carouselTitles;if(G8&&(C7=G8[C7])){var QF;C7=(QF=_.A(C7,CUd))==null?void 0:QF.title;break a}C7=void 0}return C7}})}})})}}))))},"Zi"),"yt-video-metadata-carousel-view-model",{props:{data:_.qR}});var qgI=_.r("web_action_buttons_update_owner_width")?32:12,hh=function(){var a=_.u.apply(this,arguments)||this;a.metadataBadgesInDescription=_.r("web_metadata_badges_in_description");a.descriptionCollapsed=!0;a.useFadedScrimDescription=_.r("kevlar_enable_faded_scrim_on_description");a.skinnyMode=!1;a.playlist=!1;a.isDark=document.documentElement.hasAttribute("dark");a.disableVideoOwnerOnTap=_.r("swatchie_video_owner_on_tap_ks");a.swatcherooDelayLoad=_.r("swatcheroo_enable_ghost_cards");a.primaryMenuWidth=
0;a.videoId="";a.titleHeadlineXs=_.r("web_watch_typography_title_headline_xs");a.titleHeadlineS=_.r("web_watch_typography_title_headline_s");a.titleHeadlineM=_.r("web_watch_typography_title_headline_m");a.titleHashtagBlackLinkified=_.r("web_title_hashtag_black_linkified");a.titleHashtagGreyLinkified=_.r("web_title_hashtag_grey_linkified");a.actionButtonsUpdateOwnerWidth=_.r("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};
_.c(hh,_.u);_.t=hh.prototype;_.t.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.t.updateOwnerAndDescriptionPosition=function(){_.r("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.J_(this.bottomRowElement,this.ownerElement)):(_.J_(this.bottomRowElement,this.descriptionElement),_.J_(this.topRowElement,this.ownerElement)))};
_.t.titleOnTap=function(a){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.b5(_.qj(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||this.handleExpandDescriptionCommands()}};
_.t.videoOwnerOnTap=function(a){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.b5(_.qj(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.t.detached=function(){var a=this,W;return _.P(function(w){(W=a.resizeObserver)==null||W.disconnect();_.Xd(w)})};
_.t.maybeAttachResizeObserver=function(){var a=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.yP(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){a.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.t.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var a=this.hostElement.clientWidth,W=Math.max(this.largerItemWrap?400:350,a/2-qgI);if(_.r("web_action_buttons_update_owner_width")){var w;W=(((w=document.getElementById("owner"))==null?void 0:w.clientWidth)||0)+qgI}this.actionsOnSeparateLine=this.primaryMenuWidth>a-W?!0:!1}};
_.t.stripAttributedDescription=function(a){return{content:a.content.replace(/[\r\n]{2,}/g,"\n")}};
_.t.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.r("web_modern_buttons"),forceIconButton:!_.r("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:_.r("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"}}}};
_.t.videoPrimaryInfoRendererChanged=function(){var a;if((a=this.videoPrimaryInfoRenderer)==null?0:a.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.t.videoSecondaryInfoRendererChanged=function(){var a,W;(W=(a=this.descriptionInlineExpander).collapse)==null||W.call(a);this.descriptionExpandClientVe=_.Ob(110509);this.descriptionCollapseClientVe=_.Ob(110510);a=_.nS();W=_.eH();a&&W&&(_.r("combine_ve_grafts")?(_.tc(_.$J(),this.descriptionExpandClientVe,W),_.tc(_.$J(),this.descriptionCollapseClientVe,W)):_.RV(a,W,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.t.structuredDescriptionContentRendererChanged=function(){_.r("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.t.updateTopLevelIconsOnly=function(){var a=this;_.r("top_level_update_killswitch")||this.menu&&_.hF.addLowPriorityJob(function(){a.menu.topLevelIconsOnly=a.skinnyMode},_.yv("swathceroo_delay_flexible_menu_update",100))};
_.t.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.r("web_action_buttons_minimize_subscribe")};
_.t.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.t.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.t.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.t.onYtTextInlineExpanderExpandedChanged=function(){if(!_.r("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var a,W;(W=(a=this.structuredDescriptionContentRendererElement).resize)==null||W.call(a)}};
_.t.onRenderStamperFinished=function(a){(a==null?void 0:a.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.t.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.t.onYtExpanderLessTapped=function(){var a,W=(a=this.videoSecondaryInfoRenderer)==null?void 0:a.showLessCommand;W&&this.ytComponentBehavior.resolveCommand(W)};
_.t.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.t.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.t.onDescriptionClick=function(a){if(!_.b5(_.qj(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.r("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.t.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.t.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.t.logCollapseClick=function(){var a=_.nS();a&&this.descriptionCollapseClientVe&&_.b0(a,this.descriptionCollapseClientVe)};
_.t.logExpandClick=function(){var a=_.nS();a&&this.descriptionExpandClientVe&&_.b0(a,this.descriptionExpandClientVe)};
_.t.collapseDescription=function(){this.descriptionCollapsed=!0};
_.t.scrollToTopOfContainer=function(){_.aV(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.t.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.t.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.t.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.t.resize=function(){if(this.descriptionInlineExpander){var a,W;(W=(a=this.descriptionInlineExpander).resize)==null||W.call(a)}else _.jJ(new _.Uw("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var w;(w=this.menu)==null||w.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.r("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.t.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var a,W,w,Z,N=_.r("web_action_buttons_update_owner_width")?(w=(a=_.M(this.menu).querySelector("#button-shape"))==null?void 0:a.clientWidth)!=null?w:0:(Z=(W=_.M(this.menu).querySelector("#button"))==null?void 0:W.clientWidth)!=null?Z:0,B,I;a=((I=(B=_.M(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:B.clientWidth)!=null?I:0)+8+N;var X,v;N=(v=(X=_.M(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:X.children.length)!=null?v:2;a<=8*N||(this.primaryMenuWidth=a)}};
_.t.onYtUpdateTitleAction=function(a){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.A(a,Kg9).title)};
_.t.onYtUpdateDescriptionAction=function(a){if(a=_.A(a,_.CMA)){var W,w=!((W=this.videoSecondaryInfoRenderer)==null||!W.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&&(w?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.YJ(a.description)):this.set("videoSecondaryInfoRenderer.description",a.description))}};
_.t.onYtDarkModeToggledAction=function(a){this.isDark=a};
_.t.registerPanel=function(){if(!_.r("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var a=_.r("web_watch_imax_theater_mode")&&this.isTheaterMode;a=_.r("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||a;var W=_.K().resolve(_.SO);W&&!a&&W.registerPanel("engagement-panel-structured-description",this)}};
_.t.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.t.showPanel=function(a){this.expandDescription();var W=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;W.resize();var w,Z=a==null?void 0:(w=a.sectionListEngagementPanelExtras)==null?void 0:w.scrollToItemSectionIdentifier;Z?_.hF.addJob(function(){W==null||W.scrollToSection(Z)},8):this.scrollToTopOfContainer()};
_.t.isVisible=function(){return!this.descriptionCollapsed};
_.t.getReloadContinuation=function(){};
_.t.hidePanel=function(){};
_.t.updatePanel=function(){};
_.dU.Object.defineProperties(hh.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.structuredDescriptionContentRenderer)!=null&&a.items){var W;a=_.l((W=this.structuredDescriptionContentRenderer)==null?void 0:W.items);for(W=a.next();!W.done;W=a.next())if(W=_.A(W.value,_.mKH))return W}}},
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,W,w;return!!((a=this.videoSecondaryInfoRenderer)==null?0:(W=a.owner)==null?0:(w=W.videoOwnerRenderer)==null?0:w.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.r("swatchie_sd_new_line_strip_ks")){var a,W;if((a=this.videoSecondaryInfoRenderer)==null?0:(W=a.attributedDescription)==null?0:W.content){var w,Z;return(Z=this.stripAttributedDescription((w=this.videoSecondaryInfoRenderer)==null?void 0:w.attributedDescription))!=null?Z:{runs:[]}}}var N,B,I,X;return(X=(I=(N=this.videoSecondaryInfoRenderer)==null?void 0:N.description)!=null?I:(B=this.videoSecondaryInfoRenderer)==null?
void 0:B.attributedDescription)!=null?X:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var a,W;return(W=(a=this.videoSecondaryInfoRenderer)==null?void 0:a.headerRuns)!=null?W:[]}},
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?_.yv("swatchie_desc_lines",3):this.hasTeaserCarousel?_.yv("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var a,W,w=Object.assign({},(a=this.videoSecondaryInfoRenderer)==null?void 0:(W=a.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer);if(w&&w.rows&&w.collapsedItemCount!==void 0&&!(w.rows.length<=w.collapsedItemCount))return w.rows=w.rows.slice(w.collapsedItemCount),w.collapsedItemCount=0,w}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var a,W,w=Object.assign({},(a=this.videoSecondaryInfoRenderer)==null?void 0:(W=a.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer);if(w&&w.rows&&w.collapsedItemCount!==void 0)return w.rows=w.rows.slice(0,w.collapsedItemCount),w.collapsedItemCount=w.rows.length,w}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var a,W;return!!((a=this.structuredDescriptionContentRenderer)==null?0:(W=a.items)==null?0:W.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var a;return(a=this.videoSecondaryInfoRenderer)==null?void 0:a.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return((a=this.videoSecondaryInfoRenderer)==null?0:(W=a.owner)==null?0:(w=W.videoOwnerRenderer)==null?0:w.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z;return!!((a=this.videoPrimaryInfoRenderer)==null?0:(W=a.videoActions)==null?0:(w=W.menuRenderer)==null?0:(Z=w.flexibleItems)==null?0:Z.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.JQ(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.JQ(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(_.r("web_title_hashtag_grey_delinkified")){var W,w=_.T5.unsafeClone((W=this.videoPrimaryInfoRenderer)==null?void 0:W.title);(W=w==null?void 0:w.runs)&&W.forEach(function(Z){if(Z==null?0:Z.navigationEndpoint)Z.textColor=4284506208,a.isDark&&(Z.textColor=4289374890)});
return w}return(w=this.videoPrimaryInfoRenderer)==null?void 0:w.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.r("web_title_hashtag_black_delinkified")||_.r("web_title_hashtag_grey_delinkified")}}});
hh.prototype.resetDescriptionState=hh.prototype.resetDescriptionState;hh.prototype.registerPanel=hh.prototype.registerPanel;hh.prototype.onYtExpanderLessTapped=hh.prototype.onYtExpanderLessTapped;hh.prototype.onYtExpanderMoreTapped=hh.prototype.onYtExpanderMoreTapped;hh.prototype.onRenderStamperFinished=hh.prototype.onRenderStamperFinished;hh.prototype.onYtTextInlineExpanderExpandedChanged=hh.prototype.onYtTextInlineExpanderExpandedChanged;hh.prototype.onYtTextInlineExpanderCollapseClicked=hh.prototype.onYtTextInlineExpanderCollapseClicked;
hh.prototype.onYtTextInlineExpanderExpandClicked=hh.prototype.onYtTextInlineExpanderExpandClicked;hh.prototype.moveActionsElement=hh.prototype.moveActionsElement;hh.prototype.updateShouldForceIconOnly=hh.prototype.updateShouldForceIconOnly;hh.prototype.updateTopLevelIconsOnly=hh.prototype.updateTopLevelIconsOnly;hh.prototype.structuredDescriptionContentRendererChanged=hh.prototype.structuredDescriptionContentRendererChanged;hh.prototype.videoSecondaryInfoRendererChanged=hh.prototype.videoSecondaryInfoRendererChanged;
hh.prototype.videoPrimaryInfoRendererChanged=hh.prototype.videoPrimaryInfoRendererChanged;hh.prototype.maybeUpdateActionsOnSeparateLine=hh.prototype.maybeUpdateActionsOnSeparateLine;hh.prototype.updateOwnerAndDescriptionPosition=hh.prototype.updateOwnerAndDescriptionPosition;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],hh.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],hh.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],hh.prototype,"ytdReduxBehavior",void 0);_.f([_.w$("#above-the-fold"),_.z("design:type",HTMLElement)],hh.prototype,"aboveTheFoldContainer",void 0);_.f([_.w$("#menu ytd-menu-renderer"),_.z("design:type",Object)],hh.prototype,"menu",void 0);
_.f([_.w$("#description-inline-expander"),_.z("design:type",Object)],hh.prototype,"descriptionInlineExpander",void 0);_.f([_.w$("#faded-structured-description"),_.z("design:type",Object)],hh.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.f([_.w$("#structured-description"),_.z("design:type",Object)],hh.prototype,"structuredDescriptionContentRendererElement",void 0);_.f([_.w$("#title"),_.z("design:type",HTMLElement)],hh.prototype,"titleElement",void 0);
_.f([_.w$("#description"),_.z("design:type",HTMLElement)],hh.prototype,"descriptionElement",void 0);_.f([_.w$("#description-interaction"),_.z("design:type",Object)],hh.prototype,"descriptionInteraction",void 0);_.f([_.w$("#owner"),_.z("design:type",HTMLElement)],hh.prototype,"ownerElement",void 0);_.f([_.w$("#top-row"),_.z("design:type",HTMLElement)],hh.prototype,"topRowElement",void 0);_.f([_.w$("#bottom-row"),_.z("design:type",HTMLElement)],hh.prototype,"bottomRowElement",void 0);
_.f([_.w$("#actions"),_.z("design:type",HTMLElement)],hh.prototype,"actionsElement",void 0);_.f([_.w$("#bottom-actions"),_.z("design:type",HTMLElement)],hh.prototype,"bottomActionsElement",void 0);_.f([_.w$("#ytd-watch-info-text"),_.z("design:type",Object)],hh.prototype,"watchInfoTextElement",void 0);_.f([_.b(),_.z("design:type",Object)],hh.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],hh.prototype,"videoPrimaryInfoRenderer",void 0);
_.f([_.b(),_.z("design:type",Object)],hh.prototype,"videoSecondaryInfoRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],hh.prototype,"commentsEntryPointHeaderRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],hh.prototype,"videoMetadataCarousel",void 0);_.f([_.b(),_.z("design:type",Object)],hh.prototype,"structuredDescriptionContentRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],hh.prototype,"videoSummary",void 0);
_.f([_.b(),_.z("design:type",Object)],hh.prototype,"merchShelf",void 0);_.f([_.b(),_.z("design:type",Object)],hh.prototype,"infoPanelBelowMetadata",void 0);_.f([_.Q("structuredDescriptionContentRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"productShelf",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"metadataBadgesInDescription",void 0);
_.f([_.Q("videoPrimaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"shouldHideBadges",null);_.f([_.Q("productShelf","descriptionCollapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hh.prototype,"shouldShowProductShelf",null);_.f([_.b(),_.z("design:type",Boolean)],hh.prototype,"isWatchFlexy",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"descriptionCollapsed",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],hh.prototype,"useFadedScrimDescription",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"skinnyMode",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("videoSecondaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"largerItemWrap",null);_.f([_.b(),_.z("design:type",Object)],hh.prototype,"playlist",void 0);_.f([_.b(),_.z("design:type",Object)],hh.prototype,"clarifyBox",void 0);
_.f([_.b(),_.z("design:type",Object)],hh.prototype,"playerAds",void 0);_.f([_.b(),_.z("design:type",Boolean)],hh.prototype,"isDark",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],hh.prototype,"actionsOnSeparateLine",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"disableVideoOwnerOnTap",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"swatcherooDelayLoad",void 0);
_.f([_.b(),_.z("design:type",Boolean)],hh.prototype,"suppressTopLevelMetadataRows",void 0);_.f([_.b(),_.z("design:type",Object)],hh.prototype,"primaryMenuWidth",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"videoId",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"titleHeadlineXs",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"titleHeadlineS",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"titleHeadlineM",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"titleHashtagBlackLinkified",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"titleHashtagGreyLinkified",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.f([_.b(),_.z("design:type",Object)],hh.prototype,"shouldForceIconOnly",void 0);_.f([_.lO("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"updateOwnerAndDescriptionPosition",null);_.f([_.lO("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.f([_.Q("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"descriptionText",null);_.f([_.Q("videoSecondaryInfoRenderer.headerRuns"),_.z("design:type",Array),_.z("design:paramtypes",[])],hh.prototype,"headerRuns",null);_.f([_.b({value:!1}),_.Q("commentsEntryPointHeaderRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"hasTeaser",null);
_.f([_.b({value:!1,reflectToAttribute:!0}),_.Q("videoMetadataCarousel"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"hasTeaserCarousel",null);_.f([_.b({value:3}),_.Q("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"descriptionMaxLines",null);_.f([_.Q("videoSecondaryInfoRenderer.metadataRowContainer"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"collapsibleMetadataRows",null);
_.f([_.Q("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"alwaysVisibleMetadataRows",null);_.f([_.Q("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hh.prototype,"hasInlineStructuredDescription",null);
_.f([_.Q("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hh.prototype,"showInlineStructuredDescription",null);_.f([_.Q("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"descriptionExpandCommand",null);
_.f([_.Q("videoSecondaryInfoRenderer.owner"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"videoOwnerCommand",null);_.f([_.b({reflectToAttribute:!0}),_.Q("videoPrimaryInfoRenderer.videoActions"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hh.prototype,"flexMenuEnabled",null);_.f([_.b({selector:_.rA,reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"isFullscreen",void 0);
_.f([_.b({selector:_.A$,reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"isTheaterMode",void 0);_.f([_.Q("descriptionText","useFadedScrimDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hh.prototype,"showAttributedStringDescription",null);_.f([_.Q("descriptionText","useFadedScrimDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hh.prototype,"showFormattedStringDescription",null);
_.f([_.Q("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hh.prototype,"showFadedStructuredDescription",null);_.f([_.lO("videoPrimaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"videoPrimaryInfoRendererChanged",null);_.f([_.Q("videoPrimaryInfoRenderer.title"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"videoTitle",null);
_.f([_.Q("videoPrimaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],hh.prototype,"noEndpoints",null);_.f([_.lO("videoSecondaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"videoSecondaryInfoRendererChanged",null);
_.f([_.a5("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"structuredDescriptionContentRendererChanged",null);_.f([_.a5("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"updateTopLevelIconsOnly",null);
_.f([_.a5("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"updateShouldForceIconOnly",null);_.f([_.a5("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"moveActionsElement",null);_.f([_.E6("yt-text-inline-expander-expand-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.f([_.E6("yt-text-inline-expander-collapse-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.f([_.E6("yt-text-inline-expander-expanded-changed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],hh.prototype,"onRenderStamperFinished",null);_.f([_.E6("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"onYtExpanderMoreTapped",null);_.f([_.E6("yt-expander-less-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"onYtExpanderLessTapped",null);
_.f([_.a5("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"registerPanel",null);_.f([_.a5("videoSecondaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hh.prototype,"resetDescriptionState",null);hh=_.f([_.C({disableElementRegistration:!0,is:"ytd-watch-metadata"})],hh);
_.D(hh,"ytd-watch-metadata",function(){if(cXE!==void 0)return cXE;var a=document.createElement("template");_.n(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">\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">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" 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="[[structuredDescriptionContentRenderer]]" 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(_.y().content.cloneNode(!0),a.content.firstChild);return cXE=a},{mode:2});_.DuX=function(a){_.OW.call(this);this.JSC$20185_watchApi=a;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;QbI(this);xui(this);bsK(this);sbf(this);ua0(this);Cmi(this);Gja(this)};
_.c(_.DuX,_.OW);var bsK=function(a){var W=function(){_.r("kevlar_is_pupi_enabled")||i_(a)};
a.JSC$20185_watchApi.getRoot().addEventListener("yt-player-updated",W);a.addOnDisposeCallback(function(){a.JSC$20185_watchApi.getRoot().removeEventListener("yt-player-updated",W)})},ua0=function(a){if(_.r("kevlar_endscreen_auto_theater_mode")){var W=a.JSC$20185_watchApi.subscribeToActiveChanged(function(){f1n(a)},!1);
a.addOnDisposeCallback(W)}},QbI=function(a){var W,w,Z,N,B;
_.P(function(I){if(I.nextAddress==1)return _.g(I,a.JSC$20185_watchApi.playerApi,2);W=I.yieldResult;w=function(X){X=!!X;cB(a)&&(X=X?2:1,_.mF.getInstance().setState(X,!0,!1))};
Z=function(X){X&&_.VsE(_.Cx().getState())&&(_.aV(a.JSC$20185_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),a.temporaryTheaterMode=!0)};
N=function(X){_.r("kevlar_player_update_autonav_on_new_data")&&X.type==="newdata"&&(_.r("kevlar_is_pupi_enabled")||i_(a))};
B=function(X){a.onPlayerStateChange(X)};
_.r("kevlar_endscreen_auto_theater_mode")&&W.addEventListener("onAutonavCancelled",Z);W.addEventListener("onAutonavChangeRequest",w);W.addEventListener("onVideoDataChange",N);W.addEventListener("onStateChange",B);a.addOnDisposeCallback(function(){W.removeEventListener("onAutonavChangeRequest",w);W.removeEventListener("onVideoDataChange",N);W.removeEventListener("onStateChange",B);_.r("kevlar_endscreen_auto_theater_mode")&&W.removeEventListener("onAutonavCancelled",Z)});
_.Xd(I)})},xui=function(a){a.JSC$20185_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){a.autonavCancelledBySignal=!0;
_.r("kevlar_is_pupi_enabled")||i_(a)});
a.JSC$20185_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(W,w,Z){w&&i_(a,Z)});
a.JSC$20185_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){cB(a)&&_.mF.getInstance().setState(2,!0,!0)});
a.JSC$20185_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){cB(a)&&_.mF.getInstance().setState(1,!0,!0)});
a.addOnDisposeCallback(function(){a.JSC$20185_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");a.JSC$20185_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");a.JSC$20185_watchApi.unregisterActionHandler("yt-enable-autoplay-command");a.JSC$20185_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},sbf=function(a){var W=a.JSC$20185_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Gja(a)}),w=a.JSC$20185_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Cmi(a)});
a.addOnDisposeCallback(function(){a.JSC$20185_watchApi.unsubscribeByKey(W);a.JSC$20185_watchApi.unsubscribeByKey(w)})},Gja=function(a){a.autonavCancelledBySignal=!1;
_.r("kevlar_is_pupi_enabled")||i_(a)},Cmi=function(a){var W=a.JSC$20185_watchApi.getWatchNextResponse(),w,Z;
var N=(W=(Z=_.A(W==null?void 0:(N=W.playerOverlays)==null?void 0:(w=N.playerOverlayRenderer)==null?void 0:w.autonavToggle,_.DJR))==null?void 0:Z.enabled)?2:1;_.r("kevlar_is_pupi_enabled")?_.mF.getInstance().setState(N,!1,!1):i_(a);_.r("web_persist_server_autonav_state_on_client")&&typeof W==="boolean"&&_.J1v(N===2)},cB=function(a){if(a.autonavCancelledBySignal)return!1;
var W,w,Z,N;return!!((W=a.JSC$20185_watchApi.getWatchNextResponse())==null?0:(w=W.contents)==null?0:(Z=w.twoColumnWatchNextResults)==null?0:(N=Z.autoplay)==null?0:N.autoplay)};
_.DuX.prototype.onPlayerStateChange=function(a){if(a===0){a=!_.mF.getInstance().isAutoplaySetExplicitly();var W=this.JSC$20185_watchApi.getWatchNextResponse(),w,Z,N,B;W=_.A(W==null?void 0:(w=W.contents)==null?void 0:(Z=w.twoColumnWatchNextResults)==null?void 0:(N=Z.autoplay)==null?void 0:(B=N.autoplay)==null?void 0:B.autoplayExplicitChoiceDialogRenderer,_.TlL);cB(this)&&a&&W&&_.WX.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:W},popupType:"DIALOG"}})}else f1n(this)};
var f1n=function(a){a.temporaryTheaterMode&&(a.temporaryTheaterMode=!1,_.aV(a.JSC$20185_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},i_=function(a,W){W=W===void 0?!1:W;
var w;_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20185_watchApi.playerApi,2);w=Z.yieldResult;cB(a)?w.setAutonavState(_.mF.getInstance().getState(),W):w.setAutonavState(1,W);_.Xd(Z)})};var du9={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"};_.VqD=function(a){_.OW.call(this);var W=this;this.JSC$20190_watchApi=a;var w=this.JSC$20190_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){muE(W)});
this.addOnDisposeCallback(function(){W.JSC$20190_watchApi.unsubscribeByKey(w)});
muE(this)};
_.c(_.VqD,_.OW);var muE=function(a){var W=a.JSC$20190_watchApi.getPlayerResponse(),w=a.JSC$20190_watchApi.getWatchNextResponse();if(!_.RoU(W==null?void 0:W.playabilityStatus,w==null?void 0:w.playerOverlays)){var Z;var N=W==null?void 0:(Z=W.playabilityStatus)==null?void 0:Z.errorScreen}a.JSC$20190_watchApi.provideRenderingData("ERROR_SCREEN",N)};var zo0=_.xQ(function(a){var W=a.data;a=_.$_(function(){var w=W().onTap;w&&_.K().resolve(_.zU).resolveCommand(w)});
return _.k("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":a},_.k("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.k(_.k_,{text:function(){return W().title}})),_.k("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.k(_.Ax,{data:function(){return W().channelAvatar}},{avatarViewModel:_.c6}),_.k(_.k_,{text:function(){return W().subtitle}})))},"$i");var HsX=_.xQ(function(a){return _.k("yt-player-quick-action-buttons",{class:_.W$("ytPlayerQuickActionButtonsHost")},_.k(_.k6,{each:a.data},function(W){return _.k(_.Ax,{data:function(){return W}},{buttonViewModel:_.F7,
likeButtonViewModel:function(w){return _.k(_.A8,{data:w.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.ry})}))},"aj");_.Ezz=function(a){_.OW.call(this);var W=this;this.JSC$20193_watchApi=a;a=_.l(_.$1({},void 0,"ufFdVc"));this.quickActionsViewModel=a.next().value;this.setQuickActionsViewModel=a.next().value;a=_.l(_.$1({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=a.next().value;this.setPlayerOverlayVideoDetailsRenderer=a.next().value;var w=this.JSC$20193_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){yXD(W)});
this.addOnDisposeCallback(function(){W.JSC$20193_watchApi.unsubscribeByKey(w)});
yXD(this)};
_.c(_.Ezz,_.OW);
var yXD=function(a){var W,w,Z,N,B,I,X,v,U,O,S,T,p,h;_.P(function(L){if(L.nextAddress==1)return _.g(L,a.JSC$20193_watchApi.playerApi,2);W=L.yieldResult;w=a.JSC$20193_watchApi.getWatchNextResponse();B=(Z=w)==null?void 0:(N=Z.playerOverlays)==null?void 0:N.playerOverlayRenderer;X=_.A((I=B)==null?void 0:I.fullscreenQuickActionsBar,_.W66);(U=(v=a).setQuickActionsViewModel)==null||U.call(v,X||{});X&&a0I(a,W);T=(O=B)==null?void 0:(S=O.videoDetails)==null?void 0:S.playerOverlayVideoDetailsRenderer;(h=(p=
a).setPlayerOverlayVideoDetailsRenderer)==null||h.call(p,T||{});T&&WSE(a,W);_.Xd(L)})},a0I=function(a,W){if(!a.quickActionButtonsContainer){a.quickActionButtonsContainer=document.createElement("div");
W.setFullscreenQuickActions(a.quickActionButtonsContainer);var w=function(){return a.quickActionsViewModel().quickActionButtons||[]},Z=_.KF(a.quickActionButtonsContainer,function(){return _.k(HsX,{data:w})});
a.addOnDisposeCallback(function(){W.setFullscreenQuickActions(void 0);Z()})}},WSE=function(a,W){if(!a.playerOverlayVideoDetailsRendererContainer){a.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
W.setPlayerOverlayVideoDetailsRenderer(a.playerOverlayVideoDetailsRendererContainer);var w=_.KF(a.playerOverlayVideoDetailsRendererContainer,function(){return _.k(zo0,{data:a.playerOverlayVideoDetailsRenderer})});
a.addOnDisposeCallback(function(){W.setPlayerOverlayVideoDetailsRenderer(void 0);w()})}};_.e1=function(a){_.OW.call(this);var W=this;this.JSC$20198_watchApi=a;this.JSC$20198_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;a=_.oX(_.Cx(),_.rA,function(w){wfd(W,w)});
this.addOnDisposeCallback(a);a=_.oX(_.Cx(),_.A_,function(w){W.onWatchScroll(w)});
this.addOnDisposeCallback(a);_.r("kevlar_watch_while_v2")&&(a=_.oX(_.Cx(),_.hG,function(w){ZVz(W,w)}),this.addOnDisposeCallback(a));
NGI(this);tp0(this);$ZD();this.onWatchScroll(_.A_(_.Cx().getState()));_.JS("START_IN_FULL_WINDOW_MODE")&&this.JSC$20198_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.c(_.e1,_.OW);var NGI=function(a){a.JSC$20198_watchApi.registerActionHandler("yt-fullscreen-change-action",function(W){var w=a.JSC$20198_watchApi.isActive();W&&!w||_.Cx().dispatch(_.E_({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!W}}))});
a.addOnDisposeCallback(function(){a.JSC$20198_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},tp0=function(a){var W,w;
_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20198_watchApi.playerApi,2);W=Z.yieldResult;w=function(){a.onFullerscreenEduClicked()};
W.addEventListener("onFullerscreenEduClicked",w);a.addOnDisposeCallback(function(){W.removeEventListener("onFullerscreenEduClicked",w)});
_.Xd(Z)})},wfd=function(a,W){var w;
_.P(function(Z){if(Z.nextAddress==1)return a.isFullscreen=!!_.V3(),_.g(Z,a.JSC$20198_watchApi.playerApi,2);w=Z.yieldResult;a.JSC$20198_miniplayerActive||w.setFauxFullscreen(a.isFullscreen);if(W&&(a.JSC$20198_watchApi.focusOnPlayer(),!a.fullerscreenEduButtonShownThisPlayback)){a.fullerscreenEduButtonShownThisPlayback=!0;var N=_.B7("yt-fullerscreen-edu-button-shown-count")||0;_.$H("yt-fullerscreen-edu-button-shown-count",N+1,31536E3);a.updateFullerscreenEduButtonSubtleModeState()}_.Xd(Z)})},ZVz=function(a,
W){var w;
_.P(function(Z){if(Z.nextAddress==1)return a.JSC$20198_miniplayerActive=W,_.g(Z,a.JSC$20198_watchApi.playerApi,2);w=Z.yieldResult;w.setFauxFullscreen(!a.JSC$20198_miniplayerActive&&a.isFullscreen);_.Xd(Z)})};
_.e1.prototype.onWatchScroll=function(a){var W=this,w,Z;return _.P(function(N){if(N.nextAddress==1)return _.r("external_fullscreen_with_edu")?_.g(N,W.JSC$20198_watchApi.playerApi,2):N.return();w=N.yieldResult;Z=a<=0;W.shouldShowFullerscreenEdu!==Z&&(W.shouldShowFullerscreenEdu=Z,w.updateFullerscreenEduButtonVisibility(!W.shouldShowFullerscreenEdu));_.Xd(N)})};
_.e1.prototype.onFullerscreenEduClicked=function(){this.JSC$20198_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var a=_.B7("yt-fullerscreen-edu-button-click-count")||0;_.$H("yt-fullerscreen-edu-button-click-count",a+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.e1.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var a=this,W,w,Z,N,B,I;return _.P(function(X){if(X.nextAddress==1)return W=_.B7("yt-fullerscreen-edu-button-click-count")||0,w=_.B7("yt-fullerscreen-edu-button-shown-count")||0,Z=_.yv("external_fullscreen_button_click_threshold"),N=_.yv("external_fullscreen_button_shown_threshold"),B=W>=Z||w>=N,_.g(X,a.JSC$20198_watchApi.playerApi,2);I=X.yieldResult;I.updateFullerscreenEduButtonSubtleModeState(B);_.Xd(X)})};
_.e1.prototype.disposeInternal=function(){_.OW.prototype.disposeInternal.call(this);var a=_.V3();_.r("kevlar_exit_fullscreen_leaving_watch")&&a&&_.zq(a)};
var $ZD=function(){if(_.r("web_watch_add_viewport_meta_tag")){var a=document.querySelector("meta[name=viewport]"),W=document.head;W&&!a&&(a=document.createElement("meta"),a.name="viewport",a.content="width=device-width, initial-scale=1.0, viewport-fit=cover",W.appendChild(a))}};_.nW=function(a){_.OW.call(this);var W=this;this.JSC$20202_watchApi=a;this.jobId=0;this.pendingRequestId=void 0;var w=this.JSC$20202_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){BGD(W)});
this.addOnDisposeCallback(function(){W.JSC$20202_watchApi.unsubscribeByKey(w)});
BGD(this)};
_.c(_.nW,_.OW);var l0X=function(a){_.hF.cancelJob(a.jobId);a.pendingRequestId=void 0},BGD=function(a){l0X(a);
var W=Tp0(a.JSC$20202_watchApi.getWatchNextResponse());if(W){var w=250,Z,N=(Z=_.A(W,_.wEH))==null?void 0:Z.initialDelayMs;_.r("web_watch_updated_metadata_server_initial_delay")&&N&&(w=N);a.jobId=_.hF.addLowPriorityJob(function(){return a.fetchUpdatedMetadata(W)},w)}};
_.nW.prototype.fetchUpdatedMetadata=function(a,W){var w=this,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x;return _.P(function(G){switch(G.nextAddress){case 1:W&&(Z={continuation:W});if(!_.r("web_get_updated_metadata_fantasy_panel_continuation_params")){G.jumpTo(2);break}N=_.K().resolve(_.SO);B="PAsports_fantasy";return _.g(G,N.isVisible(B,!0),3);case 3:G.yieldResult&&(U=(X=(I=N).getUpdatePanelContinuationData)==null?void 0:(v=X.call(I,B))==null?void 0:v.updatePanelContinuationRequest)&&(Z||(Z={}),Z.clientParams=
{panelContinuationParams:{panelContinuation:U}});case 2:O=_.K().resolve(_.O6);if(!O)return _.eJ(Error("hm")),G.return();S={};w.pendingRequestId=S;return _.g(G,_.MX(O,a,Z),4);case 4:T=G.yieldResult;if(S!==w.pendingRequestId)return G.return();L=(p=T)==null?void 0:(h=p.continuation)==null?void 0:h.timedContinuationData;((F=L)==null?0:F.continuation)&&((x=L)==null?0:x.timeoutMs)&&(w.jobId=_.hF.addLowPriorityJob(function(){return w.fetchUpdatedMetadata(a,L.continuation)},L.timeoutMs));
_.Xd(G)}})};
_.nW.prototype.disposeInternal=function(){_.OW.prototype.disposeInternal.call(this);l0X(this)};var I00=_.xQ(function(a){var W=_.$_(function(){var Z=a.data().videoId;if(a.active())Z=_.Vw(Z),_.K().resolve(_.zU).resolveCommand(Z);else{var N=a.playerApi(),B=N.getAvailableAudioTracks(),I,X,v=(I=a.sourceVideoConfig().audioTracks)==null?void 0:(X=I.find(function(U){return U.isDefaultForSource}))==null?void 0:X.id;
if(B=B.find(function(U){return U.getLanguageInfo().getId()===v}))N.setAudioTrack(B,!0),N.setCompositeParam({activeVideoId:Z}),a.setActiveSourceId(Z)}}),w={};
return _.k("ytw-composite-source-video-overlay",{class:_.W$("ytwCompositeSourceVideoOverlayHost",(w.ytwCompositeSourceVideoOverlayActive=a.active,w.ytwCompositeSourceVideoOverlayInteracting=a.interacting,w)),style:_.It({left:function(){var Z;return((Z=a.data().topLeftCornerX)!=null?Z:0)*100+"%"},
top:function(){var Z;return((Z=a.data().topLeftCornerY)!=null?Z:0)*100+"%"},
width:function(){var Z;return((Z=a.data().width)!=null?Z:0)*100+"%"},
height:function(){var Z;return((Z=a.data().height)!=null?Z:0)*100+"%"}}),
"on:click":W},_.k("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"bj");var PyE=_.xQ(function(a){var W=_.l(_.l5(function(){var X,v=(X=a.data().sources)==null?void 0:X.find(function(U){return U.isActive});
if(v)return v.videoId})),w=W.next().value,Z=W.next().value;
W=_.l(_.$1(!1,void 0,"WI4BUb"));var N=W.next().value,B=W.next().value;W=_.$_(function(){B(!0)});
var I=_.$_(function(){B(!1)});
return _.k("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":W,"on:mouseout":I},_.k(_.Y,{cond:function(){return a.data().sources},
then:function(X){return _.k(_.k6,{each:X},function(v){return _.k(I00,{data:v,active:function(){return v.videoId===w()},
setActiveSourceId:Z,interacting:N,playerApi:a.playerApi,sourceVideoConfig:function(){return K20(a.compositeVideoConfig(),v.videoId)}})})}}))},"cj");_.gad=function(a){_.OW.call(this);this.JSC$20218_watchApi=a;a=_.l(_.$1({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=a.next().value;this.setCompositeVideoOverlayRenderer=a.next().value;a=_.l(_.$1({},void 0,"U5hcq"));this.compositeVideoConfig=a.next().value;this.setCompositeVideoConfig=a.next().value;Xfn(this);vad(this)};
_.c(_.gad,_.OW);var Xfn=function(a){var W=a.JSC$20218_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){vad(a)});
a.addOnDisposeCallback(function(){a.JSC$20218_watchApi.unsubscribeByKey(W)})},oaK=function(a){var W;
return _.P(function(w){if(w.nextAddress==1)return _.g(w,a.JSC$20218_watchApi.playerApi,2);W=w.yieldResult;W.setCompositeVideoOverlayRendererComponent(a.container);_.Xd(w)})},kT0=function(a){var W;
return _.P(function(w){if(w.nextAddress==1)return _.g(w,a.JSC$20218_watchApi.playerApi,2);W=w.yieldResult;W.setCompositeVideoOverlayRendererComponent(void 0);_.Xd(w)})},UZE=function(a){var W,w;
return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20218_watchApi.playerApi,2);W=Z.yieldResult;a.container=document.createElement("div");w=_.KF(a.container,function(){return _.k(PyE,{data:a.compositeVideoOverlayRenderer,compositeVideoConfig:a.compositeVideoConfig,playerApi:W})});
a.addOnDisposeCallback(w);_.Xd(Z)})},vad=function(a){var W,w,Z,N,B,I,X,v;
_.P(function(U){return U.nextAddress==1?(W=a.JSC$20218_watchApi.getPlayerResponse(),B=_.A((w=W)==null?void 0:(Z=w.overlay)==null?void 0:(N=Z.playerControlsOverlayRenderer)==null?void 0:N.compositeVideoOverlay,XFK),v=(I=W)==null?void 0:(X=I.playerConfig)==null?void 0:X.compositeVideoConfig,B&&a.setCompositeVideoOverlayRenderer(B),v&&a.setCompositeVideoConfig(v),B&&v?a.container?U.jumpTo(6):_.g(U,UZE(a),6):OV9(a)?_.g(U,kT0(a),0):U.jumpTo(0)):OV9(a)?U.jumpTo(0):_.g(U,oaK(a),0)})},OV9=function(a){var W;
return!((W=a.container)==null||!W.parentElement)};
_.gad.prototype.disposeInternal=function(){OV9(this)&&kT0(this);_.OW.prototype.disposeInternal.call(this)};_.pfE=function(a){_.OW.call(this);var W=this;this.JSC$20224_watchApi=a;var w=this.JSC$20224_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var Z=W.JSC$20224_watchApi.getPlayerResponse();if(Z){var N,B;if(Z=_.A((N=Z.endscreen)==null?void 0:(B=N.endscreenRenderer)==null?void 0:B.hideButton,_.iK)){var I;(I=W.setEndscreenHideButton)==null||I.call(W,Z);SOd(W)}}});
this.addOnDisposeCallback(function(){W.JSC$20224_watchApi.unsubscribeByKey(w)});
a=_.l(_.$1({},void 0,"PPHRb"));this.endscreenHideButton=a.next().value;this.setEndscreenHideButton=a.next().value;YO9(this);TGX(this);KSa(this)};
_.c(_.pfE,_.OW);var SOd=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return a.creatorEndscreenHideButtonContainer?Z.return():_.g(Z,a.JSC$20224_watchApi.playerApi,2);W=Z.yieldResult;a.creatorEndscreenHideButtonContainer=document.createElement("div");_.QS(a.creatorEndscreenHideButtonContainer,!1);W.setCreatorEndscreenHideButton(a.creatorEndscreenHideButtonContainer);w=_.KF(a.creatorEndscreenHideButtonContainer,function(){return _.k(_.ce,{data:a.endscreenHideButton,useOutlinedIcon:!0})});
a.addOnDisposeCallback(function(){w();W.setCreatorEndscreenHideButton(void 0)});
_.Xd(Z)})},YO9=function(a){var W,w;
_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20224_watchApi.playerApi,2);W=Z.yieldResult;w=function(){a.creatorEndscreenHideButtonContainer&&_.QS(a.creatorEndscreenHideButtonContainer,!0)};
W.addEventListener("endscreenelementshown",w);a.addOnDisposeCallback(function(){W.removeEventListener("endscreenelementshown",w)});
_.Xd(Z)})},TGX=function(a){var W=function(){a.creatorEndscreenHideButtonContainer&&_.QS(a.creatorEndscreenHideButtonContainer,!1)},w=a.JSC$20224_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",W),Z=a.JSC$20224_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",W);
a.addOnDisposeCallback(function(){a.JSC$20224_watchApi.unsubscribeByKey(w);a.JSC$20224_watchApi.unsubscribeByKey(Z)})},KSa=function(a){a.JSC$20224_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(W){var w=_.A(W,tIK);
a.JSC$20224_watchApi.playerApi.then(function(Z){Z==null||Z.setCreatorEndscreenVisibility(!!w.hide)})});
a.addOnDisposeCallback(function(){a.JSC$20224_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.AB0=function(a){_.OW.call(this);this.JSC$20230_watchApi=a;rBf(this)};
_.c(_.AB0,_.OW);var rBf=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20230_watchApi.playerApi,2);W=Z.yieldResult;w=function(N){_.Cx().dispatch(_.E_({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:N}}))};
W.addEventListener("onRetroModeChanged",w);a.addOnDisposeCallback(function(){W.removeEventListener("onRetroModeChanged",w)});
_.Xd(Z)})};var nn=0,eh=0,jh=0;var h4k;h4k=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.j1=function(a){_.OW.call(this);this.JSC$20243_watchApi=a;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;iVd(this)};
_.c(_.j1,_.OW);
var iVd=function(a){var W,w,Z;_.P(function(N){if(N.nextAddress==1)return _.g(N,a.JSC$20243_watchApi.playerApi,2);W=N.yieldResult;if(a.isDisposed())return N.return();a.sessionStorage=_.Lni("yt-sleep-timer");a.sessionStorage||_.jJ(new _.Uw("SessionStorage for Sleep Timer is undefined."));((w=a.sessionStorage)==null?void 0:w.get("yt-sleep-timer"))==="true"&&(L2D(),(Z=a.sessionStorage)==null||Z.remove("yt-sleep-timer"),W.syncVolume());cBi(a,W);e4I(a,W);nak(a,W);_.Xd(N)})},cBi=function(a,W){var w=function(U){a.onSleepTimerSettingsChanged(U,
W)},Z=function(U){a.onPlayerStateChange(U,W)},N=function(){a.onLoopChange(W)},B=function(){a.onCloseMiniplayer(W)},I=function(){caK(W,(0,_.mG)(),Jaz(W),a.selectedOption==="End of video",W.getPlayerState()!==1)},X=function(){a.onSeekComplete(W)},v=function(){_.hF.cancelJob(eh);
var U=W.getCurrentTime()>=W.getDuration(),O=a.selectedOption==="End of video"||a.selectedOption==="End of playlist"&&!Aad(a.playlistId);U&&O&&joz(a,W)};
W.addEventListener("onSleepTimerSettingsChanged",w);W.addEventListener("onLoopChange",N);W.addEventListener("onLoopRangeChange",N);W.addEventListener("onStateChange",Z);W.addEventListener("onCloseMiniplayer",B);W.addEventListener("onSleepTimerFeatureAvailable",I);W.addEventListener("SEEK_COMPLETE",X);W.addEventListener("onAdStart",v);a.addOnDisposeCallback(function(){W.removeEventListener("onSleepTimerSettingsChanged",w);W.removeEventListener("onLoopChange",N);W.removeEventListener("onLoopRangeChange",
N);W.removeEventListener("onStateChange",Z);W.removeEventListener("onCloseMiniplayer",B);W.removeEventListener("onSleepTimerFeatureAvailable",I);W.removeEventListener("SEEK_COMPLETE",X);W.removeEventListener("onAdStart",v)})},e4I=function(a,W){var w=a.JSC$20243_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var Z=W.getVideoData().video_id,N,B=(N=pVD(a.JSC$20243_watchApi))==null?void 0:N.playlistId;
a.pauseAutonavPlayback&&(W.pauseVideo(),W.syncVolume(),a.pauseAutonavPlayback=!1);if(a.selectedOption==="End of video"&&Z!==a.videoId)LW(a,W);else{if(a.selectedOption==="End of playlist"){N=Aad(a.playlistId);if(B!==a.playlistId){LW(a,W);break a}N?N&&LSa(a,W):JBK(a,W)}a.videoId=Z;a.playlistId=B}}});
a.addOnDisposeCallback(function(){a.JSC$20243_watchApi.unsubscribeByKey(w)})},nak=function(a,W){var w=_.K().resolve(_.Ab),Z=_.oX(w,_.ncF,function(B){B&&a.selectedOption!=="Off"&&LW(a,W)}),N=a.JSC$20243_watchApi.subscribeToActiveChanged(function(B){var I,X;
return _.P(function(v){if(v.nextAddress==1)return _.g(v,_.vE().navigationFinishPromise,2);I=!_.tOl();X=_.K().resolve(_.bV).isMiniplayerActive();B||!cr(a.selectedOption)||X||I||LW(a,W);_.Xd(v)})},!1);
w=_.oX(w,function(B){return B.entities.playlistLoopStateEntity||{}},function(B){B=B===void 0?{}:B;
var I=ra0(a.JSC$20243_watchApi);if(I){var X;((X=B[I])==null?void 0:X.state)==="PLAYLIST_LOOP_STATE_ALL"&&cr(a.selectedOption)&&LW(a,W)}});
a.addOnDisposeCallback(Z);a.addOnDisposeCallback(w);a.addOnDisposeCallback(N)};
_.j1.prototype.onSleepTimerSettingsChanged=function(a,W){switch(a){case "Off":this.selectedOption!=="Off"&&LW(this,W);break;case "End of video":case "End of playlist":FSd(this,a,W);break;default:FSd(this,a,W,h4k.get(a))}};
_.j1.prototype.onLoopChange=function(a){(a.getLoopVideo()||a.getLoopRange())&&cr(this.selectedOption)&&LW(this,a)};
_.j1.prototype.onCloseMiniplayer=function(a){cr(this.selectedOption)&&LW(this,a)};
var FSd=function(a,W,w,Z){MpE(a,w);a.selectedOption=W;a.videoId=w.getVideoData().video_id;a.playlistId="";var N;(N=a.sessionStorage)==null||N.set("yt-sleep-timer","true");a.adjustmentsCount++;caK(w,(0,_.mG)(),Jaz(w),a.selectedOption==="End of video");if(a.selectedOption==="End of video")JBK(a,w),R4i(a,w);else if(a.selectedOption==="End of playlist"){R4i(a,w);var B,I;a.playlistId=(I=(B=pVD(a.JSC$20243_watchApi))==null?void 0:B.playlistId)!=null?I:"";Aad(a.playlistId)||JBK(a,w)}else Z&&(a.presetFadeSchedulerId=
_.OB(_.hF,function(){n9I(w,15E3)},Z-15E3),a.presetPauseSchedulerId=_.OB(_.hF,function(){joz(a,w)},Z),ekK(w,(0,_.mG)(),Z))},joz=function(a,W){if(a.JSC$20243_watchApi.isActive()){var w={dismissDialogEndpoint:{}};
var Z={commandExecutorCommand:{commands:[w,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};w={buttonViewModel:{title:_.P_("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:w}}};Z={buttonViewModel:{title:_.P_("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:Z}}};var N={dialogHeaderViewModel:{headline:{content:_.P_("SLEEP_TIMER_ENDED_TITLE")}}},
B={basicContentViewModel:{paragraphs:[{text:{content:_.P_("SLEEP_TIMER_ENDED_TEXT")}}]}};w={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:N,content:B,footer:{panelFooterViewModel:{primaryButton:w,secondaryButton:Z,shouldHideDivider:!0}}}}}}};_.K().resolve(_.zU).resolveCommand(w,{form:{element:a}})}else L2D();qOi(a,!1);QoD(a,W);W.pauseVideo();_.mF.getInstance().getState()===2&&W.getPlayerState()===5&&(a.pauseAutonavPlayback=!0)},LW=function(a,W){qOi(a,!0);
QoD(a,W);L2D()},QoD=function(a,W){MpE(a,W);
a.selectedOption="Off";a.videoId="";a.playlistId="";a.adjustmentsCount=0;var w;(w=a.sessionStorage)==null||w.remove("yt-sleep-timer");_.hF.cancelJob(nn);W.resetSleepTimerMenuSettings()},qOi=function(a,W){W={timer_length_adjustment_times_during_session:a.adjustmentsCount-1,
is_session_cancelled:W};switch(a.selectedOption){case "Off":W.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":W.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":W.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:W.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",W.option_duration_in_minutes=h4k.get(a.selectedOption)/6E4}_.ia("sleepTimerSessionFinishEvent",W)};
_.j1.prototype.onPlayerStateChange=function(a,W){a===1?caK(W,(0,_.mG)(),Jaz(W),this.selectedOption==="End of video"):a===0?(_.hF.cancelJob(eh),W.setVideoTimeLeft(iyi(0,0))):a===2&&_.hF.cancelJob(eh);this.selectedOption==="End of video"?a===0?joz(this,W):a===2&&j_0(W):this.selectedOption!=="End of playlist"||Aad(this.playlistId)||(a===0?joz(this,W):a===2&&j_0(W))};
_.j1.prototype.onSeekComplete=function(a){a.getPlayerState()===2&&caK(a,(0,_.mG)(),Jaz(a),this.selectedOption==="End of video",!0)};
_.j1.prototype.onCueRangeEnter=function(a,W){a==="sleep-timer-fade-audio"&&n9I(W,(W.getDuration()-W.getProgressState().current)*1E3)};
_.j1.prototype.onCueRangeExit=function(a,W){a==="sleep-timer-fade-audio"&&W.getPlayerState()!==0&&j_0(W,!0)};
var JBK=function(a,W){W.addCueRange("sleep-timer-fade-audio",W.getDuration()-15,W.getDuration());W.addEventListener("onCueRangeEnter",function(w){a.onCueRangeEnter(w,W)});
W.addEventListener("onCueRangeExit",function(w){a.onCueRangeExit(w,W)})},LSa=function(a,W){W.removeCueRange("sleep-timer-fade-audio");
W.removeEventListener("onCueRangeEnter",function(w){a.onCueRangeEnter(w,W)});
W.removeEventListener("onCueRangeExit",function(w){a.onCueRangeExit(w,W)})},MpE=function(a,W){cr(a.selectedOption)?LSa(a,W):(_.hF.cancelJob(a.presetPauseSchedulerId),_.hF.cancelJob(a.presetFadeSchedulerId),a.presetPauseSchedulerId=0,a.presetFadeSchedulerId=0);
j_0(W,!0)},R4i=function(a,W){W.setLoop(!1);
W.setLoopVideo(!1);W.setLoopRange(null);(a=ra0(a.JSC$20243_watchApi))&&_.K().resolve(_.Ab).dispatch(_.oL("playlistLoopStateEntity",a,{key:a,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.u39=function(a){_.OW.call(this);this.JSC$20246_watchApi=a;xZk(this);bVi(this);so0(this);a=a.getRoot();if(a.is==="ytd-watch-flexy"||a.is==="ytd-watch-grid")a.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.DgE();_.r("web_watch_log_theater_mode_cookie_state")&&_.XQ.get("wide","0")==="1"&&_.AWx("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.c(_.u39,_.OW);var xZk=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20246_watchApi.playerApi,2);W=Z.yieldResult;w=function(N){Cy2(a,!!N)};
W.addEventListener("SIZE_CLICKED",w);a.addOnDisposeCallback(function(){W.removeEventListener("SIZE_CLICKED",w)});
_.Xd(Z)})},bVi=function(a){a.JSC$20246_watchApi.registerActionHandler("yt-toggle-theater-mode",function(W,w){Cy2(a,W,w===void 0?!0:w)});
a.addOnDisposeCallback(function(){a.JSC$20246_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.u39.prototype.getState=function(){return _.A$(_.Cx().getState())};
var Cy2=function(a,W,w){w=w===void 0?!0:w;var Z,N,B,I=_.r("enable_player_resize_transition")&&!!a.JSC$20246_watchApi.getWatchNextResponse()&&!((Z=a.JSC$20246_watchApi.getWatchNextResponse())==null?0:(N=Z.contents)==null?0:(B=N.twoColumnWatchNextResults)==null?0:B.conversationBar);_.MnX(function(){_.Cx().dispatch(_.E_({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:W}}));_.r("theater_mode_scroll_to_top_killswitch")||a.JSC$20246_watchApi.scrollWatchTo(0,!1);_.V3()&&_.r("external_fullscreen")&&_.zq(document.documentElement);
so0(a);w&&_.vi("wide",W?"1":"0",-1);_.aV(a.JSC$20246_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);a.JSC$20246_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:W});W&&_.DgE()},{shouldWrap:I})},so0=function(a){var W;
_.P(function(w){if(w.nextAddress==1)return _.g(w,a.JSC$20246_watchApi.playerApi,2);W=w.yieldResult;W.setSizeStyle(!0,a.getState());_.Xd(w)})};var f0D=function(a){_.OW.call(this);var W=this;this.playerApi=a;this.timeToPanelSyncKeyMap={};var w;if(a==null?0:(w=a.isReady)==null?0:w.call(a)){w=_.oX(_.K().resolve(_.Ab),function(N){return N.entities.timedMarkersListSyncEntity||{}},function(N,B){N=N===void 0?{}:N;
B=B===void 0?{}:B;for(var I=_.l(Object.keys(B)),X=I.next();!X.done;X=I.next())X=X.value,N[X]!==B[X]&&GTn(W,B[X]);B=_.l(Object.keys(N));for(I=B.next();!I.done;I=B.next())I=I.value,X=N[I],W.timeToPanelSyncKeyMap[I]&&DZE(W,X)});
this.addOnDisposeCallback(w);var Z=function(N){W.onCueRangeEnter(N)};
a.addEventListener("onCueRangeEnter",Z);this.addOnDisposeCallback(function(){var N;(N=a.removeEventListener)==null||N.call(a,"onCueRangeEnter",Z)})}};
_.c(f0D,_.OW);
var DZE=function(a,W){var w,Z;if((w=a.playerApi)==null?0:(Z=w.isReady)==null?0:Z.call(w)){var N;if((w=W==null?void 0:(N=W.timedListData)==null?void 0:N.sections)&&W!=null&&W.key)for(N=_.l(w),w=N.next();!w.done;w=N.next())if(w=w.value,w.timedSyncDataList&&w.sectionId)for(Z=0;Z<w.timedSyncDataList.length;Z++){var B=w.timedSyncDataList[Z];B.syncItemId&&a.playerApi.addCueRange(w.sectionId+"_"+W.key+"_"+B.syncItemId,Number(B.videoTimeMs)/1E3,Z===w.timedSyncDataList.length-1?0x8000000000000:Number(w.timedSyncDataList[Z+
1].videoTimeMs)/1E3)}}},GTn=function(a,W){var w,Z;
if((w=a.playerApi)==null?0:(Z=w.isReady)==null?0:Z.call(w)){var N;if((w=W==null?void 0:(N=W.timedListData)==null?void 0:N.sections)&&W!=null&&W.key)for(N=_.l(w),w=N.next();!w.done;w=N.next())if(w=w.value,w.timedSyncDataList&&w.sectionId){Z=_.l(w.timedSyncDataList);for(var B=Z.next();!B.done;B=Z.next())B=B.value,B.syncItemId&&a.playerApi.removeCueRange(w.sectionId+"_"+W.key+"_"+B.syncItemId)}}};
f0D.prototype.onCueRangeEnter=function(a){for(var W=_.l(Object.keys(this.timeToPanelSyncKeyMap)),w=W.next();!w.done;w=W.next()){w=w.value;var Z=_.l(a.split("_"+w+"_")),N=Z.next().value;Z=Z.next().value;if(N&&Z){a=_.K().resolve(_.Ab);W=this.timeToPanelSyncKeyMap[w];var B=_.C1v(a.getState(),W);w=dZa(w,N,Z);if(w===-1)break;w={activeSyncId:Z,activeItemIndex:w,activeSectionInfo:{sectionIdentifier:N}};B?a.dispatch(_.e4("markersEngagementPanelSyncEntity",W,w)):a.dispatch(_.oL("markersEngagementPanelSyncEntity",
W,Object.assign({},{key:W},w)));break}}};
var dZa=function(a,W,w){var Z=_.K().resolve(_.Ab),N,B;a=(N=sp0(Z.getState(),a))==null?void 0:(B=N.timedListData)==null?void 0:B.sections;if(!a)return-1;N=0;B=_.l(a);for(a=B.next();!a.done;a=B.next()){a=a.value;Z=a.timedSyncDataList||[];if(a.sectionId===W)return W=Z.findIndex(function(I){return I.syncItemId===w}),W===-1?W:N+W;
N+=Z.length}return-1};_.z4I=function(a){_.OW.call(this);var W=this;this.JSC$20258_watchApi=a;this.unresolvedCommands=[];this.JSC$20258_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(w){mZ0(W,w)});
this.addOnDisposeCallback(function(){W.JSC$20258_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
VpE(this)};
_.c(_.z4I,_.OW);var VpE=function(a){var W;_.P(function(w){if(w.nextAddress==1)return _.g(w,a.JSC$20258_watchApi.playerApi,2);W=w.yieldResult;if(a.isDisposed())return w.return();a.timedSyncObserver=new f0D(W);a.unresolvedCommands.length&&(a.unresolvedCommands.forEach(function(Z){return mZ0(a,Z)}),a.unresolvedCommands=[]);
_.$3(a,a.timedSyncObserver);_.Xd(w)})},mZ0=function(a,W){if(a.timedSyncObserver){var w=_.A(W,BL2);
if(w&&w.timedSyncEntityKey&&w.panelSyncEntityKey){a=a.timedSyncObserver;W=w.timedSyncEntityKey;var Z=w.panelSyncEntityKey;w=!!w.isEnabled;w=w===void 0?!0:w;var N=_.K().resolve(_.Ab);N=sp0(N.getState(),W);w?a.timeToPanelSyncKeyMap[W]||(a.timeToPanelSyncKeyMap[W]=Z,DZE(a,N)):(delete a.timeToPanelSyncKeyMap[W],GTn(a,N))}}else a.unresolvedCommands.push(W)};var HV9=_.xQ(function(a){var W=a.data,w=a.maybeLogSmartSkipClientData,Z=_.D8();_.Cj(Z,function(){return W().rendererContext},{onTap:function(O,S){S({disableClickTracking:!0})}});
var N=null,B=null,I=_.r("web_enable_auto_focus_for_timely_action_button"),X=function(){N=document.activeElement},v=function(){W().smartSkipMetadata&&(N=document.activeElement,_.RUz(function(){return B}))},U=function(O){if(W().smartSkipMetadata&&(!O||O.key!=="Enter")){N&&N.isConnected&&(_.RUz(function(){return N}),N=null);
var S;(S=B)==null||S.blur()}};
a=_.$_(function(){w==null||w(!0,W());return!1});
_.yz(Z,{visibilityCallback:function(O){if(I)O?B&&W().smartSkipMetadata&&(v(),document.addEventListener("focusin",X)):(document.removeEventListener("focusin",X),U());else if(O&&_.r("web_ephemeral_actions")){O=_.bK(W().rendererContext);var S=Number(W().maxVisibleDurationMilliseconds),T,p=(T=_.A(W().rendererContext,_.DB))==null?void 0:T.label;O&&S&&p&&(T={label:p,command:O,durationMs:S},_.K().resolve(_.BC).enqueue(T))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.pF(function(){if(I){var O;if((B=(O=Z.value)==null?void 0:O.querySelector("button"))&&W().smartSkipMetadata){var S;(S=Z.value)==null||S.addEventListener("keydown",U)}}});
_.Ao(function(){I&&(B&&W().smartSkipMetadata&&B.removeEventListener("keydown",U),document.removeEventListener("focusin",X),U())});
return _.k("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:Z,"on:click":a},_.k(_.Ax,{data:function(){return W().content}},{buttonViewModel:_.F7}))},"dj");var yBk=_.xQ(function(a){var W=a.data,w=a.playerApi,Z=_.K().resolve(_.xIl);a=_.l(_.l5(function(){W()}));
var N=a.next().value,B=a.next().value,I=function(){return McE(W(),N())},X=function(U,O){var S,T,p=(S=_.A(O==null?void 0:O.rendererContext,_.WfU))==null?void 0:(T=S.loggingDirectives)==null?void 0:T.trackingParams;
if((O=O==null?void 0:O.smartSkipMetadata)&&O.loggingData&&(T=O.loggingData,O=T.algorithmId,S=T.startMilliseconds,T=T.endMilliseconds,O&&S!==void 0&&T!==void 0)){var h,L;U={smartSkipData:Object.assign({},{versionName:O,startMediaTimeMs:S,endMediaTimeMs:T},U&&{userInteractionMediaTimeMs:(Math.floor(((h=_.fA())==null?void 0:(L=h.getPlayer())==null?void 0:L.getCurrentTime())||0)*1E3).toString()})};h=_.nS();var F;p&&(F=_.PX(p));h&&F&&_.u0(h,F,U)}},v=function(U,O){var S=McE(W(),U);
if(S){var T=_.A(S,Ln),p;if(p=O)p=w(),S=_.A(S,Ln),p=S!=null&&S.smartSkipMetadata?!(p==null?0:p.isSameMarkerTypeVisible((S==null?void 0:S.smartSkipMetadata.markerKey)||"")):!0;if(p){var h,L;(T==null?0:(h=T.smartSkipMetadata)==null?0:(L=h.loggingData)==null?0:L.isCounterfactual)||(X(!1,T),B(U))}else O||N()!==U||B(void 0)}};
_.Ka(function(){var U=W().timelyActions;if(U){U=_.l(U);for(var O=U.next();!O.done;O=U.next()){O=_.A(O.value,Ln);var S=void 0;(S=O)!=null&&S.cueRangeId&&Z.timelyActionsMap.set(O.cueRangeId,v)}_.Ao(function(){Z.timelyActionsMap.clear()})}});
return _.k("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.k(_.Ax,{data:I},{timelyActionViewModel:function(U){return _.k(HV9,{data:U.data,maybeLogSmartSkipClientData:function(){X(!0,_.A(I(),Ln))}})}}))},"ej");_.aRn=function(a){_.OW.call(this);this.JSC$20270_watchApi=a;a=_.l(_.$1({},void 0,"pLDp2"));this.timelyActionsOverlay=a.next().value;this.setTimelyActionsOverlay=a.next().value;EaK(this)};
_.c(_.aRn,_.OW);var EaK=function(a){var W,w,Z,N;_.P(function(B){if(B.nextAddress==1)return WrX(a),wDi(a),a.timelyActionsContainer=document.createElement("div"),_.g(B,a.JSC$20270_watchApi.playerApi,2);W=B.yieldResult;(Z=(w=W).insertTimelyActionUi)==null||Z.call(w,a.timelyActionsContainer);N=_.KF(a.timelyActionsContainer,function(){return _.k(yBk,{data:a.timelyActionsOverlay,playerApi:W})});
a.addOnDisposeCallback(N);_.Xd(B)})},wDi=function(a){var W=a.JSC$20270_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WrX(a)});
a.addOnDisposeCallback(function(){a.JSC$20270_watchApi.unsubscribeByKey(W)})},WrX=function(a){var W=a.JSC$20270_watchApi.getWatchNextResponse();
if(W){var w,Z;if(W=_.A((w=W.playerOverlays)==null?void 0:(Z=w.playerOverlayRenderer)==null?void 0:Z.timelyActionsOverlayViewModel,lFk)){var N;(N=a.setTimelyActionsOverlay)==null||N.call(a,W)}}};_.NRa=function(a){_.OW.call(this);this.JSC$20274_watchApi=a;ZEa(this)};
_.c(_.NRa,_.OW);var ZEa=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20274_watchApi.playerApi,2);W=Z.yieldResult;w=function(N){_.WX.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.A(N,_.Kt9)},popupType:"TOAST"}})};
W.addEventListener("onYtShowToast",w);a.addOnDisposeCallback(function(){W.removeEventListener("onYtShowToast",w)});
_.Xd(Z)})};var tAE,lRE,$4i,BRi,vPk,PoX,XDi,oPk,kIK;tAE=!1;_.IRa=function(a){_.OW.call(this);this.JSC$20277_watchApi=a;this.fullscreen=this.theater=!1;$4i(this);BRi(this);lRE(this)};
_.c(_.IRa,_.OW);lRE=function(a){var W,w,Z;_.P(function(N){if(N.nextAddress==1)return _.g(N,a.JSC$20277_watchApi.playerApi,2);W=N.yieldResult;if(a.isDisposed())return N.return();w=a.JSC$20277_watchApi.getElement("CINEMATICS");if(!w)return N.return();a.JSC$20277_cinematicController=new _.Z_(w,W);_.$3(a,a.JSC$20277_cinematicController);_.GoD(a.JSC$20277_cinematicController);PoX(a,_.cp7());Z=a.JSC$20277_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(B){XDi(a,B)});
a.addOnDisposeCallback(function(){a.JSC$20277_watchApi.unsubscribeByKey(Z)});
vPk(a);XDi(a,a.JSC$20277_cinematicController.isAllowed());_.gP9(a,a.fullscreen,a.theater);oPk(a);_.Xd(N)})};
$4i=function(a){var W=a.JSC$20277_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){vPk(a)});
a.addOnDisposeCallback(function(){a.JSC$20277_watchApi.unsubscribeByKey(W)})};
BRi=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20277_watchApi.playerApi,2);W=Z.yieldResult;w=function(N){PoX(a,N)};
W.addEventListener("cinematicSettingsToggleChange",w);a.addOnDisposeCallback(function(){W.removeEventListener("cinematicSettingsToggleChange",w)});
_.Xd(Z)})};
vPk=function(a){var W=a.JSC$20277_watchApi.getWatchNextResponse(),w;W=_.A(W==null?void 0:(w=W.pageVisualEffects)==null?void 0:w[0],_.Ya);var Z;(Z=a.JSC$20277_cinematicController)==null||_.fzE(Z,W)};
PoX=function(a,W){var w;(w=a.JSC$20277_cinematicController)==null||_.Dbk(w,W);kIK(a)};
XDi=function(a,W){var w;_.P(function(Z){if(Z.nextAddress==1)return _.r("kevlar_watch_cinematics_invisible")&&(W=!1),_.g(Z,a.JSC$20277_watchApi.playerApi,2);w=Z.yieldResult;w.updateCinematicSettings(W);kIK(a);_.Xd(Z)})};
oPk=function(a){var W=_.gS();if(_.r("kevlar_measure_ambient_mode_idle")&&!W.getFlag(192)&&!tAE){tAE=!0;var w=_.TP(_.hF,function(){_.K().resolve(_.ndD).start(1E4)},5E3);
a.addOnDisposeCallback(function(){_.hF.cancelJob(w);_.K().resolve(_.ndD).stop()})}};
_.gP9=function(a,W,w){a.fullscreen=W;a.theater=w;var Z;(Z=a.JSC$20277_cinematicController)==null||Z.setFullscreen(a.fullscreen,a.theater);if(_.r("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(a.theater||a.fullscreen){var N;(N=a.JSC$20277_cinematicController)==null||_.dbn(N)}else if((a=a.JSC$20277_cinematicController)!=null){var B;(B=a.currentCinematicEffect)==null||B.pause()}};
kIK=function(a){if(_.r("web_cinematic_theater_mode")||_.r("web_cinematic_fullscreen")){var W;a.JSC$20277_watchApi.getRoot().toggleCinematicsActive(!((W=a.JSC$20277_cinematicController)==null||!W.isEnabled()))}};_.Yzi=function(a){_.OW.call(this);var W=this;this.JSC$20280_watchApi=a;this.commentsReady=!1;this.setCommentsJobId=0;a=_.oX(_.Cx(),_.A_,function(){U49(W)});
this.addOnDisposeCallback(a);var w=this.JSC$20280_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){OEf(W)}),Z=this.JSC$20280_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){OEf(W)});
this.addOnDisposeCallback(function(){W.JSC$20280_watchApi.unsubscribeByKey(w);W.JSC$20280_watchApi.unsubscribeByKey(Z)});
var N=function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&SzD(W,"false")};
this.JSC$20280_watchApi.getRoot().addEventListener("yt-page-data-will-update",N);this.addOnDisposeCallback(function(){W.JSC$20280_watchApi.getRoot().removeEventListener("yt-page-data-will-update",N)});
OEf(this)};
_.c(_.Yzi,_.OW);var OEf=function(a){a.commentsReady=!1;_.hF.cancelJob(a.setCommentsJobId);a.setCommentsJobId=_.TP(_.hF,function(){U49(a)},1E3)},U49=function(a){if(!a.commentsReady){_.Ak("cmi");
_.hF.cancelJob(a.setCommentsJobId);var W,w,Z,N,B=(W=a.JSC$20280_watchApi.getWatchNextResponse())==null?void 0:(w=W.contents)==null?void 0:(Z=w.twoColumnWatchNextResults)==null?void 0:(N=Z.results)==null?void 0:N.results.contents;W=void 0;if(B&&B.length)for(B=_.l(B),w=B.next();!w.done;w=B.next())if(w=w.value,N=Z=void 0,((Z=w)==null?void 0:(N=Z.itemSectionRenderer)==null?void 0:N.sectionIdentifier)==="comment-item-section"){_.r("web_watch_provide_undefined_comments")?W=w.itemSectionRenderer:a.JSC$20280_watchApi.provideRenderingData("COMMENTS",
w.itemSectionRenderer);SzD(a,"true");break}_.r("web_watch_provide_undefined_comments")&&a.JSC$20280_watchApi.provideRenderingData("COMMENTS",W);a.commentsReady=!0;a.JSC$20280_watchApi.dispatchEvent("yt-watch-comments-ready")}},SzD=function(a,W){var w;
(w=a.JSC$20280_watchApi.getElement("COMMENTS"))==null||w.setAttribute("canScheduleJobs",W)};_.Rz=function(a){_.OW.call(this);var W=this;this.JSC$20283_watchApi=a;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.r("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.r("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.r("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.yv("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)TRK(this);
else{var w=this.JSC$20283_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Jh(W);F_(W)}),Z=this.JSC$20283_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MI(W);
F_(W)});
this.JSC$20283_watchApi.getRoot().is==="ytd-watch-grid"&&_.r("swatcheroo_pbs_load_grid")&&(Kr0(this),pDk(this));this.addOnDisposeCallback(function(){W.JSC$20283_watchApi.unsubscribeByKey(w);W.JSC$20283_watchApi.unsubscribeByKey(Z);_.hF.cancelJob(W.provideRichGridJobId)});
Jh(this);MI(this)}};
_.c(_.Rz,_.OW);var TRK=function(a){var W=a.JSC$20283_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){a.providePlayerJobId=_.rP(_.hF,function(){Jh(a);F_(a)},a.provideAllDataDelayMs)}),w=a.JSC$20283_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a.provideWatchNextJobId=_.rP(_.hF,function(){MI(a);
F_(a)},a.provideAllDataDelayMs)}),Z=a.JSC$20283_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){a.provideWatchNextJobId=_.rP(_.hF,function(){MI(a);
F_(a)},a.provideAllDataDelayMs)});
a.JSC$20283_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.TP(_.hF,function(){Jh(a);MI(a);F_(a)},100)});
a.JSC$20283_watchApi.addPageDisposeJob(function(){_.hF.cancelJob(a.provideWatchNextJobId);_.hF.cancelJob(a.providePlayerJobId)});
a.addOnDisposeCallback(function(){a.JSC$20283_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");a.JSC$20283_watchApi.unsubscribeByKey(W);a.JSC$20283_watchApi.unsubscribeByKey(w);a.JSC$20283_watchApi.unsubscribeByKey(Z);_.hF.cancelJob(a.providePlayerJobId);_.hF.cancelJob(a.provideWatchNextJobId)});
Jh(a);MI(a)},Jh=function(a){var W=a.JSC$20283_watchApi.getPlayerResponse(),w,Z,N=(Z=W==null?void 0:(w=W.playabilityStatus)==null?void 0:w.messageRenderers)!=null?Z:[],B,I;
W=(I=W==null?void 0:(B=W.playabilityStatus)==null?void 0:B.messages)!=null?I:[];B=_.l(W);for(I=B.next();!I.done;I=B.next())N.push({alertRenderer:{text:_.b8(I.value),type:"WARNING"}});a.JSC$20283_watchApi.provideRenderingData("ALERTS",N)},MI=function(a){var W=[],w,Z,N,B=a.JSC$20283_watchApi.getWatchNextResponse(),I,X,v,U,O=B==null?void 0:(I=B.contents)==null?void 0:(X=I.twoColumnWatchNextResults)==null?void 0:(v=X.results)==null?void 0:(U=v.results)==null?void 0:U.contents;
if(O)for(I=_.l(O),X=I.next();!X.done;X=I.next())if(X=X.value,X.videoPrimaryInfoRenderer)var S=X;else if(X.videoSecondaryInfoRenderer){var T=X;U=v=void 0;X=Object.assign({},(v=X.videoSecondaryInfoRenderer)==null?void 0:(U=v.metadataRowContainer)==null?void 0:U.metadataRowContainerRenderer);if(X.rows&&X.collapsedItemCount!==void 0){X.rows=X.rows.slice(0,X.collapsedItemCount).filter(function(DE){return!!DE.richMetadataRowRenderer});
X.collapsedItemCount=X.rows.length;var p={metadataRowContainerRenderer:X}}}else if(X.merchandiseShelfRenderer)var h=X;else if(X.ticketShelfRenderer)var L=X;else if(X.expandableMetadataRenderer)var F=X;else if(X.itemSectionRenderer)if(v=X.itemSectionRenderer.contents,U=void 0,a.directlyProvideComments&&((U=X.itemSectionRenderer)==null?void 0:U.sectionIdentifier)==="comment-item-section")_.Ak("cmi"),a.JSC$20283_watchApi.provideRenderingData("COMMENTS",X.itemSectionRenderer);else if(v)for(X=_.l(v),v=
X.next();!v.done;v=X.next())if(v=v.value,v.commentsEntryPointHeaderRenderer)var x=v;else if(v.clarificationRenderer||v.infoPanelContainerRenderer||v.infoPanelContentRenderer||v.emergencyOneboxRenderer){W.push(v);var G=G||!!T}else v.limitedStateMessageRenderer?Z=v:v.videoMetadataCarouselViewModel&&(N=v);if(_.r("web_watch_merch_in_sd_when_ticket_shelf_present")&&h&&L){var V=h;h=void 0}if(a.provideWatchNextSecondaryResults){var d,ZD,aC;a.JSC$20283_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
B==null?void 0:(d=B.contents)==null?void 0:(ZD=d.twoColumnWatchNextResults)==null?void 0:(aC=ZD.secondaryResults)==null?void 0:aC.secondaryResults)}if(a.JSC$20283_watchApi.getRoot().is==="ytd-watch-grid"){var Bv,Am;a.JSC$20283_watchApi.provideRenderingData("LIVE_CHAT",B==null?void 0:(Bv=B.contents)==null?void 0:(Am=Bv.twoColumnWatchNextResults)==null?void 0:Am.conversationBar)}var e9,cv,C7,RC;(d=B==null?void 0:(e9=B.contents)==null?void 0:(cv=e9.twoColumnWatchNextResults)==null?void 0:(C7=cv.secondaryResults)==
null?void 0:(RC=C7.secondaryResults)==null?void 0:RC.offerModule)&&(d.donationShelfRenderer||d.donationUnavailableRenderer)&&a.JSC$20283_watchApi.getRoot().is!=="ytd-watch-grid"&&(w=d);e9=a.JSC$20283_watchApi.getPlayerResponse();if(!e9||!_.RoU(e9.playabilityStatus,B==null?void 0:B.playerOverlays)){var G8;if(B==null?0:(G8=B.contents)==null?0:G8.singleColumnWatchNextResults){var QF,vl;var Hl=B==null?void 0:(QF=B.contents.singleColumnWatchNextResults.results)==null?void 0:(vl=QF.results)==null?void 0:
vl.contents}else{var SV,Ny,Bl,JL;G8=!!(O==null?0:(SV=O[0])==null?0:(Ny=SV.itemSectionRenderer)==null?0:(Bl=Ny.contents)==null?0:(JL=Bl[0])==null?0:JL.backgroundPromoRenderer);var Pl,W9;SV=!!(B==null?0:(Pl=B.contents)==null?0:(W9=Pl.twoColumnWatchNextResults)==null?0:W9.secondaryResults);G8&&!SV&&(Hl=O)}}O=W[0];Pl=W[1];G&&W.length===1&&(Pl=O,O=void 0);a.JSC$20283_watchApi.provideRenderingData("PRIMARY_INFO",S);a.JSC$20283_watchApi.provideRenderingData("SECONDARY_INFO",T);a.JSC$20283_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
x);a.JSC$20283_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",N);a.JSC$20283_watchApi.provideRenderingData("CLARIFICATION",O);a.JSC$20283_watchApi.provideRenderingData("RICH_METADATA",p);a.JSC$20283_watchApi.provideRenderingData("MERCH_SHELF",h);_.r("web_watch_merch_in_sd_when_ticket_shelf_present")&&a.JSC$20283_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",V);a.JSC$20283_watchApi.provideRenderingData("TICKET_SHELF",L);a.JSC$20283_watchApi.provideRenderingData("LIMITED_STATE",Z);a.JSC$20283_watchApi.getRoot().is!==
"ytd-watch-grid"&&a.JSC$20283_watchApi.provideRenderingData("DONATION_SHELF",w);a.JSC$20283_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Hl);a.JSC$20283_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Pl);a.JSC$20283_watchApi.provideRenderingData("EXPANDABLE_METADATA",F);if(a.swatcherooProvideAllDataOnScheduledJob){var rC,le,rT,Re,u9,eV;S=B==null?void 0:(rC=B.contents)==null?void 0:(le=rC.twoColumnWatchNextResults)==null?void 0:(rT=le.secondaryResults)==null?void 0:(Re=rT.secondaryResults)==
null?void 0:(u9=Re.results)==null?void 0:(eV=u9[0])==null?void 0:eV.richGridRenderer;a.JSC$20283_watchApi.provideRenderingData("RICH_GRID_RENDERER",S)}};
_.Rz.prototype.hasCompanionAds=function(a){var W,w;return(w=a==null?void 0:(W=a.adPlacements)==null?void 0:W.some(function(Z){var N,B,I,X;return(Z==null?void 0:(N=Z.adPlacementRenderer)==null?void 0:(B=N.renderer)==null?void 0:B.actionCompanionAdRenderer)||(Z==null?void 0:(I=Z.adPlacementRenderer)==null?void 0:(X=I.renderer)==null?void 0:X.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?w:!1};
var F_=function(a){if(!_.r("swaterdoo_ps_wn_handle_ks")){a.swatcherooProvideAllDataOnScheduledJob||pDk(a,3E3);var W=a.JSC$20283_watchApi.getPlayerResponse(),w,Z,N,B,I,X=(w=a.JSC$20283_watchApi.getWatchNextResponse())==null?void 0:(Z=w.contents)==null?void 0:(N=Z.twoColumnWatchNextResults)==null?void 0:(B=N.secondaryResults)==null?void 0:(I=B.secondaryResults)==null?void 0:I.offerModule;W=a.hasCompanionAds(W);var v,U;w=(X==null?void 0:(v=X.tvfilmOfferModuleRenderer)==null?void 0:v.clientShouldSuppressIfCompanionAdDisplayed)||
(X==null?void 0:(U=X.unlimitedOfferModuleRenderer)==null?void 0:U.suppressIfCompanionAds);v=W&&w;a.JSC$20283_watchApi.getRoot().is==="ytd-watch-grid"&&a.JSC$20283_watchApi.provideRenderingData("OFFER_MODULE",v?void 0:X)}},pDk=function(a,W){_.r("swatcheroo_pbs_load_grid")&&(a.provideRichGridJobId&&_.hF.cancelJob(a.provideRichGridJobId),a.provideRichGridJobId=_.rP(_.hF,function(){a.provideRichGridJobId=0;
var w,Z,N,B,I,X,v,U=(w=a.JSC$20283_watchApi.getWatchNextResponse())==null?void 0:(Z=w.contents)==null?void 0:(N=Z.twoColumnWatchNextResults)==null?void 0:(B=N.secondaryResults)==null?void 0:(I=B.secondaryResults)==null?void 0:(X=I.results)==null?void 0:(v=X[0])==null?void 0:v.richGridRenderer;U&&a.JSC$20283_watchApi.provideRenderingData("RICH_GRID_RENDERER",U)},W))},Kr0=function(a){var W,w;
_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20283_watchApi.playerApi,2);W=Z.yieldResult;w=function(){a.onPlaybackStart()};
W.addEventListener("onPlaybackStartExternal",w);a.addOnDisposeCallback(function(){W.removeEventListener("onPlaybackStartExternal",w)});
_.Xd(Z)})};
_.Rz.prototype.onPlaybackStart=function(){pDk(this)};_.AUd=function(a){_.OW.call(this);var W=this;this.JSC$20293_watchApi=a;a.playerApi.then(function(w){W.player=w});
this.gestures=new _.PU(this.JSC$20293_watchApi.getRoot(),a.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.dgI(_.Cx().getState())&&_.A_(_.Cx().getState())<=0)if(_.rA(_.Cx().getState())){var w;(w=W.player)==null||w.toggleFullscreen()}else _.aV(W.JSC$20293_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
rU9(this)};
_.c(_.AUd,_.OW);var rU9=function(a){var W=_.oX(_.Cx(),_.rA,function(w){a.gestures&&a.gestures.update(w)});
a.addOnDisposeCallback(W);W=_.oX(_.Cx(),_.A_,function(w){a.gestures&&(w>0?a.gestures.detach():a.gestures.attach())});
a.addOnDisposeCallback(W)};_.iEE=function(a){_.OW.call(this);var W=this;this.JSC$20296_watchApi=a;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(a.subscribeToActiveChanged(function(w){W.onActiveChanged(w)}));
hMi(this)};
_.c(_.iEE,_.OW);var cU0=function(a){if(_.r("swatcheroo_page_dispose_all_watch_data"))a.pageDisposalDataTypes=Object.values(du9).filter(function(w){return w!=="PLAYLIST"});
else if(_.r("swatcheroo_page_dispose_rich_grid")){var W;(W=a.pageDisposalDataTypes)==null||W.push("RICH_GRID_RENDERER")}},hMi=function(a){_.r("swatcheroo_enable_ghost_cards")&&(cU0(a),a.JSC$20296_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.hF.cancelJob(a.clearDataJobId);
a.clearDataJobId=0}),a.runPageDisposeJob=function(){var W=_.K().resolve(_.Gw).getDestinationPageType()==="watch";
a.clearDataJobId=_.rP(_.hF,a.runClearDataJob,W?0:_.yv("web_watch_delay_page_dispose_ms",1E4))},a.runClearDataJob=function(){eMf(a)},a.runOnYtNavigateAwayFinish=function(){a.clearDataJobId&&(_.hF.cancelJob(a.clearDataJobId),a.clearDataJobId=0,eMf(a))},document.addEventListener("yt-navigate-finish",a.runOnYtNavigateAwayFinish),a.JSC$20296_watchApi.addPageDisposeJob(a.runPageDisposeJob),a.addOnDisposeCallback(function(){a.JSC$20296_watchApi.removePageDisposeJob(a.runPageDisposeJob);
a.JSC$20296_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",a.runOnYtNavigateAwayFinish)}))},eMf=function(a){a.pageDisposalDataTypes.forEach(function(W){a.JSC$20296_watchApi.provideRenderingData(W,void 0)});
a.clearDataJobId=0};
_.iEE.prototype.onActiveChanged=function(a){a&&((a=document.querySelector("#watch-page-skeleton"))&&_.Xh(a),nP0(this),document.body.removeAttribute("no-y-overflow"),_.JS("IS_SHELL_LOAD")&&_.Qfa())};
var nP0=function(a){_.P(function(W){if(W.nextAddress==1)return _.g(W,a.JSC$20296_watchApi.playerApi,2);_.y0();_.Xd(W)})};var jhD;jhD=_.r("kevlar_watch_while_counterfactual")?0:.25;_.qI=function(a){_.OW.call(this);this.JSC$20299_watchApi=a;this.JSC$20299_watchWhileEnabled=_.r("kevlar_watch_while_v2");this.pipEnabled=_.r("web_enable_pip_on_miniplayer");Lra(this);JUD(this);FrD(this)};
_.c(_.qI,_.OW);var Lra=function(a){a.JSC$20299_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){MAD(a)});
a.addOnDisposeCallback(function(){a.JSC$20299_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},JUD=function(a){var W,w;
_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20299_watchApi.playerApi,2);W=Z.yieldResult;w=function(){MAD(a)};
W.addEventListener("onCollapseMiniplayer",w);a.addOnDisposeCallback(function(){W.removeEventListener("onCollapseMiniplayer",w)});
_.Xd(Z)})},FrD=function(a){var W=a.JSC$20299_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&W&&a.JSC$20299_watchWhileEnabled&&(a.playerIntersectionObserver=new IntersectionObserver(function(w){a.handleIntersect(w)},{threshold:[jhD]}),a.playerIntersectionObserver.observe(W),a.addOnDisposeCallback(function(){var w;
(w=a.playerIntersectionObserver)==null||w.disconnect()}))},MAD=function(a){var W,w,Z;
_.P(function(N){if(N.nextAddress==1){W=_.K().resolve(_.Gw);w=W.data;Z=_.MpC(w.response,w.playerResponse);_.vE().miniplayerButtonActivation=!0;if(a.pipEnabled)return _.vE().watchPipActivation=!0,N.jumpTo(2);_.K().resolve(_.bV).collapse();return _.g(N,_.vE().navigationFinishPromise,2)}if(N.nextAddress!=4)return _.vE().currentEndpoint=Z.watchEndpoint||null,_.g(N,_.K().resolve(_.bV).activate(a.JSC$20299_watchApi.getElement("PLAYER"),Z,w),4);_.vE().userActivation=!0;_.Xd(N)})};
_.qI.prototype.handleIntersect=function(a){RM0(this,a[a.length-1])};
var RM0=function(a,W){a.watchWhileJobId&&_.hF.cancelJob(a.watchWhileJobId);a.watchWhileJobId=_.hF.addLowPriorityJob(function(){var w,Z;return _.P(function(N){if(N.nextAddress==1)return a.watchWhileJobId=void 0,w=_.K().resolve(_.bV),W.intersectionRatio>jhD?w.isMiniplayerActive()?_.g(N,w.deactivate(),0):N.jumpTo(0):(Z=!w.isMiniplayerActive())?_.g(N,qzX(a),5):N.jumpTo(4);N.nextAddress!=4&&(Z=N.yieldResult);if(!Z)return N.jumpTo(0);_.vE().watchWhileActivation=!0;return _.g(N,QhI(a),0)})},100)},qzX=function(a){return _.P(function(W){return W.nextAddress==
1?_.r("kevlar_watch_while_paused")?W.return(!0):_.g(W,a.isPlayerPlaying(),2):W.return(W.yieldResult)})};
_.qI.prototype.isPlayerPlaying=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,a.JSC$20299_watchApi.playerApi,2);W=w.yieldResult;return w.return(W.getPlayerStateObject().isPlaying)})};
var QhI=function(a){var W,w;return _.P(function(Z){W=_.K().resolve(_.Gw).data;w=_.MpC(W.response,W.playerResponse);_.vE().currentEndpoint=w.watchEndpoint||null;return _.g(Z,_.K().resolve(_.bV).activate(a.JSC$20299_watchApi.getElement("PLAYER"),w,W),0)})};_.sh2=function(a){_.OW.call(this);this.JSC$20303_watchApi=a;x4k(this);bEa(this)};
_.c(_.sh2,_.OW);var bEa=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20303_watchApi.playerApi,2);W=Z.yieldResult;w=function(N){var B;N.sessionData&&N.sessionData.itct&&(B=N.sessionData.itct);var I=N.watchEndpoint;if(I&&N.sessionData&&N.sessionData.autonav)I=_.aOD(I,B);else{var X;I=_.Vw(N.videoId,(X=N.listId)!=null?X:void 0,B)}B={endpoint:I};N.sessionData&&(B.tempData=N.sessionData);a.JSC$20303_watchApi.dispatchEvent("yt-navigate",B)};
W.addEventListener("onPlayVideo",w);a.addOnDisposeCallback(function(){W.removeEventListener("onPlayVideo",w)});
_.Xd(Z)})},x4k=function(a){var W=function(w){a.onYtNavigate(w)};
a.JSC$20303_watchApi.getRoot().addEventListener("yt-navigate",W);a.addOnDisposeCallback(function(){a.JSC$20303_watchApi.getRoot().removeEventListener("yt-navigate",W)})};
_.sh2.prototype.onYtNavigate=function(a){var W=this,w,Z,N,B,I,X,v,U,O;return _.P(function(S){if(S.nextAddress==1){if(!((w=a.detail)==null?0:(Z=w.endpoint)==null?0:Z.watchEndpoint))return S.return();N=a.detail.endpoint.watchEndpoint;B=W.JSC$20303_watchApi.getWatchNextResponse();X=_.A((I=B)==null?void 0:I.currentVideoEndpoint,_.u6);if(!X)return S.return();if(N.videoId!==X.videoId||N.playlistId&&N.playlistId!==X.playlistId||typeof N.startTimeSeconds!=="number")return S.jumpTo(0);a.stopPropagation();
(v=_.r("kevlar_watch_while_v2")&&!_.r("kevlar_watch_while_counterfactual"))&&_.K().resolve(_.bV).isMiniplayerActive()||W.JSC$20303_watchApi.scrollWatchTo(0,!0);return _.g(S,W.JSC$20303_watchApi.playerApi,3)}U=S.yieldResult;O=N.startTimeSeconds;U.seekTo(O,void 0,void 0,void 0,84);U.wakeUpControls();O<U.getDuration()&&U.playVideo();_.Xd(S)})};_.Coz=function(a){_.OW.call(this);var W=this;this.JSC$20306_watchApi=a;var w=this.JSC$20306_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){uOd(W)});
this.addOnDisposeCallback(function(){W.JSC$20306_watchApi.unsubscribeByKey(w)});
uOd(this)};
_.c(_.Coz,_.OW);var uOd=function(a){var W=a.JSC$20306_watchApi.getWatchNextResponse();if(W){var w,Z=[].concat(_.K8((w=W==null?void 0:W.engagementPanels)!=null?w:[]));Z.unshift.apply(Z,_.K8(GIE(W)));a.JSC$20306_watchApi.provideRenderingData("ENGAGEMENT_PANELS",Z)}},D4z=function(a){var W,w,Z,N=(W=a.engagementPanels)==null?void 0:(w=W.find(function(p){var h;
return((h=p.engagementPanelSectionListRenderer)==null?void 0:h.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Z=w.engagementPanelSectionListRenderer.content)==null?void 0:Z.structuredDescriptionContentRenderer,B;
if(_.A(N==null?void 0:(B=N.items)==null?void 0:B.find(function(p){return!!_.A(p,hVE)}),hVE))return!0;
var I,X,v,U;if(a=(((I=a.contents)==null?void 0:(X=I.twoColumnWatchNextResults)==null?void 0:(v=X.results)==null?void 0:(U=v.results)==null?void 0:U.contents)||[]).find(function(p){return p.videoPrimaryInfoRenderer})){var O,S,T;
return(((O=a.videoPrimaryInfoRenderer)==null?void 0:(S=O.videoActions)==null?void 0:(T=S.menuRenderer)==null?void 0:T.flexibleItems)||[]).some(function(p){p=_.A(p,_.pT$);if(!p)return!1;var h,L;p=(h=p.topLevelButton)==null?void 0:(L=h.buttonViewModel)==null?void 0:L.onTap;if(!p)return!1;h=_.rJ(p);if(!h)return!1;var F;return((F=_.A(h,_.JN))==null?void 0:F.panelIdentifier)==="PAyouchat"})}return!1},GIE=function(a){var W=[];
if(!_.r("web_watch_inject_placeholder_fantasy_panel_killswitch")){var w,Z,N,B=(w=a.engagementPanels)==null?void 0:(Z=w.find(function(X){var v;return((v=X.engagementPanelSectionListRenderer)==null?void 0:v.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(N=Z.engagementPanelSectionListRenderer.content)==null?void 0:N.structuredDescriptionContentRenderer,I;
_.A(B==null?void 0:(I=B.items)==null?void 0:I.find(function(X){return!!_.A(X,wF2)}),wF2)&&(w=_.AnF("PAsports_fantasy"),w.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W.push(w))}D4z(a)&&(a=_.AnF("PAyouchat"),a.engagementPanelSectionListRenderer.targetId="PAyouchat",a.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W.push(a));
return W};_.d4X=function(a){_.OW.call(this);this.JSC$20309_watchApi=a;fRd(this)};
_.c(_.d4X,_.OW);var fRd=function(a){a.JSC$20309_watchApi.registerActionHandler("yt-loop-command",function(W){m42(a,W)});
a.JSC$20309_watchApi.registerActionHandler("yt-repeat-chapter-command",function(W){VAn(a,W)});
a.addOnDisposeCallback(function(){a.JSC$20309_watchApi.unregisterActionHandler("yt-loop-command");a.JSC$20309_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},m42=function(a,W){var w;
_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20309_watchApi.playerApi,2);w=Z.yieldResult;_.A(W,NLK).loop?(w.setLoopRange({startTimeMs:Number(_.A(W,NLK).startTimeMs),endTimeMs:Number(_.A(W,NLK).endTimeMs),postId:_.A(W,NLK).postId,type:"clips"}),w.playVideo()):w.setLoopRange(null);_.Xd(Z)})},VAn=function(a,W){var w,Z;
_.P(function(N){if(N.nextAddress==1)return _.g(N,a.JSC$20309_watchApi.playerApi,2);w=N.yieldResult;Z=_.A(W,IFI).repeat;Z==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(w.setLoopRange({startTimeMs:Number(_.A(W,IFI).startTimeMs),endTimeMs:Number(_.A(W,IFI).endTimeMs),type:"repeatChapter"}),w.playVideo()):Z==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&w.setLoopRange(null);_.Xd(N)})};_.HEk=function(a){_.OW.call(this);this.JSC$20314_watchApi=a;zMd(this)};
_.c(_.HEk,_.OW);var zMd=function(a){a.JSC$20314_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(W){yU0(a,W)});
a.addOnDisposeCallback(function(){a.JSC$20314_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},yU0=function(a,W){var w,Z,N,B,I,X,v,U,O,S,T;
_.P(function(p){if(p.nextAddress==1)return _.g(p,a.JSC$20314_watchApi.playerApi,2);w=p.yieldResult;if(B=(N=(Z=_.A(W,Ppa))==null?void 0:Z.highlightedMenuItemKey)!=null?N:"")(X=(I=w).highlightSettingsMenuItem)==null||X.call(I,B);if(O=(U=(v=_.A(W,Ppa))==null?void 0:v.openMenuItemKey)!=null?U:"")(T=(S=w).openSettingsMenuItem)==null||T.call(S,O);_.Xd(p)})};var EPE=_.Nn("/youtube/app/watch/player_state","playerStateEntity");_.WCa=function(a){_.OW.call(this);this.JSC$20317_watchApi=a;a_k(this)};
_.c(_.WCa,_.OW);var wrn=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"}},a_k=function(a){var W,w;
_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20317_watchApi.playerApi,2);W=Z.yieldResult;w=function(N){a.onPlayerStateChange(N)};
W.addEventListener("onStateChange",w);a.addOnDisposeCallback(function(){W.removeEventListener("onStateChange",w)});
_.Xd(Z)})};
_.WCa.prototype.onPlayerStateChange=function(a){var W=this,w,Z;return _.P(function(N){if(N.nextAddress==1)return _.g(N,W.JSC$20317_watchApi.playerApi,2);w=N.yieldResult;Z=w.getVideoData().video_id;_.FM().dispatch(_.oL("playerStateEntity",EPE,{key:EPE,playerState:wrn(a),videoId:Z}));_.Xd(N)})};_.Zni=function(a){_.OW.call(this);var W=this;this.JSC$20321_watchApi=a;_.K().resolve(_.LB).setPlayer(this.JSC$20321_watchApi.getElement("PLAYER"));a=this.JSC$20321_watchApi.subscribeToActiveChanged(function(w){W.onActiveChanged(w)});
this.addOnDisposeCallback(a)};
_.c(_.Zni,_.OW);_.Zni.prototype.onActiveChanged=function(a){var W=this,w=_.K().resolve(_.LB),Z=function(){NAd(W)};
a?(a=this.JSC$20321_watchApi.getElement("PLAYLIST_PANEL"))?(w.setPlaylistComponent(a),w.addEventListener("yt-playlist-data-updated",Z),this.addOnDisposeCallback(function(){w.removeEventListener("yt-playlist-data-updated",Z)}),NAd(this)):_.qx(Error("im")):(w.removeEventListener("yt-playlist-data-updated",Z),w.cancelVideoSkip())};
var NAd=function(a){var W=_.K().resolve(_.LB);a.JSC$20321_watchApi.provideRenderingData("PLAYLIST",W.getPlaylistData())};_.QB=function(a){_.OW.call(this);var W=this;this.JSC$20324_watchApi=a;this.onPageScroll=function(){W.scrollThrottle.fire();W.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.yP(this.onThrottledScroll,200,this);_.$3(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.yP(this.onMastheadThrottledScroll,50,this);_.$3(this,this.mastheadScrollThrottle);this.animation=new _.i1(function(w){W.JSC$20324_watchApi.getRoot().setScrollTop(w)});
a=_.oX(_.Cx(),_.rA,function(){thD(W)});
this.addOnDisposeCallback(a);$Nk(this);BA0(this);this.onThrottledScroll()};
_.c(_.QB,_.OW);
var thD=function(a){var W=a.JSC$20324_watchApi.getRoot();!a.pageScrollElement&&W.pageScrollElement?(a.pageScrollElement=W.pageScrollElement,W.pageScrollElement.addEventListener("scroll",a.onPageScroll),a.addOnDisposeCallback(function(){a.pageScrollElement&&a.pageScrollElement.removeEventListener("scroll",a.onPageScroll)})):a.pageScrollElement&&!W.pageScrollElement&&(a.pageScrollElement.removeEventListener("scroll",a.onPageScroll),a.pageScrollElement=void 0)},$Nk=function(a){window.addEventListener("scroll",a.onPageScroll);
a.addOnDisposeCallback(function(){window.removeEventListener("scroll",a.onPageScroll)})},BA0=function(a){a.JSC$20324_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(W){a:{var w;
if(w=a.JSC$20324_watchApi.getRoot().contains(W)&&!a.animation.isAnimating()){w=W.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var Z,N,B=(W==null?void 0:(Z=W.parentElement)==null?void 0:(N=Z.parentElement)==null?void 0:N.id)==="fixed-secondary";w=!(w&&B)}if(w){if(_.r("kevlar_watch_scroll_manager_absolute_offset_killswitch"))Z=W.offsetTop;else for(Z=0,N=W;N!==null;)Z+=N.offsetTop,Z-=N.scrollTop,N=N.offsetParent;N=Z;Z=N-24;W=N+W.offsetHeight+24;N=a.JSC$20324_watchApi.getRoot().getPageScrollingElement();
w=a.JSC$20324_watchApi.getRoot().getScrollTop();B=w+N.clientHeight-56;if(Z<w+56)W=Z-56;else if(W>B)W-=N.clientHeight;else break a;a.scrollWatchTo(Math.max(0,W),!0)}}});
a.addOnDisposeCallback(function(){a.JSC$20324_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.QB.prototype.onThrottledScroll=function(){var a=_.Cx(),W=a.dispatch,w=this.JSC$20324_watchApi.getRoot().getScrollTop();W.call(a,_.E_({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:w}}))};
_.QB.prototype.onMastheadThrottledScroll=function(){this.JSC$20324_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20324_watchApi.getRoot().getScrollTop())};
_.QB.prototype.scrollWatchTo=function(a,W){(W===void 0?0:W)?this.animation.start(this.JSC$20324_watchApi.getRoot().getScrollTop(),Math.max(0,a),500):this.JSC$20324_watchApi.getRoot().setScrollTop(a)};_.PWa=function(a){_.OW.call(this);var W=this;this.JSC$20327_watchApi=a;var w=this.JSC$20327_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){l_2(W)}),Z=this.JSC$20327_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){I_I(W)});
this.addOnDisposeCallback(function(){W.JSC$20327_watchApi.unsubscribeByKey(w);W.JSC$20327_watchApi.unsubscribeByKey(Z)});
l_2(this);I_I(this)};
_.c(_.PWa,_.OW);
var l_2=function(a){var W,w,Z,N=(Z=(W=a.JSC$20327_watchApi.getPlayerResponse())==null?void 0:(w=W.videoDetails)==null?void 0:w.title)!=null?Z:"";a.JSC$20327_watchApi.dispatchEvent("yt-update-title",N)},I_I=function(a){var W,w,Z,N,B,I,X,v=(X=((I=(W=a.JSC$20327_watchApi.getWatchNextResponse())==null?void 0:(w=W.contents)==null?void 0:(Z=w.twoColumnWatchNextResults)==null?void 0:(N=Z.results)==null?void 0:(B=N.results)==null?void 0:B.contents)!=null?I:[]).find(function(U){return!!U.videoPrimaryInfoRenderer}))==null?
void 0:X.videoPrimaryInfoRenderer;
(W=_.sd(v==null?void 0:v.title))&&a.JSC$20327_watchApi.dispatchEvent("yt-update-title",W)};_.vnD=function(a){_.OW.call(this);this.JSC$20330_watchApi=a;XrE(this)};
_.c(_.vnD,_.OW);var XrE=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$20330_watchApi.playerApi,2);W=Z.yieldResult;w=function(){a.onYpcContentRequest()};
W.addEventListener("onYpcContentRequest",w);a.addOnDisposeCallback(function(){W.removeEventListener("onYpcContentRequest",w)});
_.Xd(Z)})};
_.vnD.prototype.onYpcContentRequest=function(){var a,W,w,Z,N,B=(a=this.JSC$20330_watchApi.getWatchNextResponse())==null?void 0:(W=a.contents)==null?void 0:(w=W.twoColumnWatchNextResults)==null?void 0:(Z=w.secondaryResults)==null?void 0:(N=Z.secondaryResults)==null?void 0:N.offerModule,I,X,v,U;a=(U=(v=(X=(I=B==null?void 0:B.episodeOfferModuleRenderer)!=null?I:B==null?void 0:B.movieOfferModuleRenderer)!=null?X:B==null?void 0:B.unlimitedOfferModuleRenderer)!=null?v:B==null?void 0:B.liveOfferModuleRenderer)!=
null?U:B==null?void 0:B.tvfilmOfferModuleRenderer;var O,S,T;B=(T=B==null?void 0:(O=B.tvfilmOfferModuleRenderer)==null?void 0:(S=O.actionButtons)==null?void 0:S.length)!=null?T:0;S=Math.max(B-1,0);var p,h,L;O=(L=a==null?void 0:(p=a.offerButton)==null?void 0:p.buttonRenderer)!=null?L:a==null?void 0:(h=a.actionButtons)==null?void 0:h[S].buttonRenderer;var F,x;(p=(x=(F=O==null?void 0:O.navigationEndpoint)!=null?F:O==null?void 0:O.serviceEndpoint)!=null?x:O==null?void 0:O.command)&&_.WX.instance.resolveCommand(p)};
}catch(e){_._DumpException(e)}
try{
var WQa,ywn,z8d;_.H3E=function(){var a=_.T5.clone(Vgi),W;return(new _.PZ(function(w,Z){a.onSuccess=function(N){_.sUU(N)?w(new z8d(N)):Z(new _.Gt("Request failed, status="+_.Wi(N),"net.badstatus",N))};
a.onError=function(N){Z(new _.Gt("Unknown request error","net.unknown",N))};
a.onTimeout=function(N){Z(new _.Gt("Request timed out","net.timeout",N))};
W=_.Bi("//googleads.g.doubleclick.net/pagead/id",a)})).thenCatch(function(w){if(w instanceof _.V0){var Z;
(Z=W)==null||Z.abort()}return _.od(w)})};
_.EqX=function(a){a:{var W="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(W="EMBEDDED_PLAYER_MODE_PFL");var w=a.raw_embedded_player_response;if(!w&&(a=a.embedded_player_response))try{w=JSON.parse(a)}catch(N){break a}if(w)b:for(var Z in ywn)if(ywn[Z]==w.embeddedPlayerMode){W=ywn[Z];break b}}return W==="EMBEDDED_PLAYER_MODE_PFL"};
_.aVD=function(){if(_.r("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.g$U())return Error("pf");var a=_.LF("PLAYER_VARS",{});if(_.T5.get(a,"privembed",!1)=="1")return Error("qf");if(_.EqX(a))return Error("rf")};
WQa=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:_.l9(a,"unknown result type")}};
_.wIa=function(a,W,w){W=_.vZe[W];w={detected:a===0,source:W.dPU,detectionResult:WQa(a),contentCpn:w};_.ia("biscottiBasedDetection",w);_.zCR.increment(W.dPU,a);W.nau!==void 0&&_.jm("CATSTAT",_.PN9(a,W))};
_.Dn=function(a,W){var w={};w.key=a;w.value=W;return _.xL7().then(function(Z){return new Promise(function(N,B){try{var I=Z.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(w);I.onsuccess=function(){N()};
I.onerror=function(){B()}}catch(X){B(X)}})})};
_.NoE=function(){var a=_.yv("user_engagement_experiments_rate_limit_ms"),W=ZJi.get("last-user-engagement-exp-trigger-timestamp");return!W||(0,_.mG)()>=W+a?(ZJi.set("last-user-engagement-exp-trigger-timestamp",(0,_.mG)()),!0):!1};
_.fc=function(a,W,w,Z,N){W=W===void 0?null:W;w=w===void 0?null:w;Z=Z===void 0?null:Z;N=N===void 0?null:N;a={youThereEventType:a};w&&(a.lactThresholdMs=w.lactThresholdMs,a.mediaPosSec=w.promptDelaySec,a.lactServerRequestMs=w.lactServerRequestMs,a.triggerReason=w.triggerReason);N!=null&&(a.renderingMediaPosSec=Math.round(N));W||(W=_.nS());W&&(a.clientScreenNonce=W);Z&&(a.clientPlaybackNonce=Z);_.ia("youThere",a)};
ywn={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"};z8d=function(a){this.xhr=a};
_.Gt=function(a,W,w){_.Wv.call(this,a+", errorCode="+W);this.errorCode=W;this.xhr=w;this.name="PromiseAjaxError"};
_.c(_.Gt,_.Wv);var Vgi={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var ZJi=new _.LJ("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.LkE=function(a){return _.E_({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:a})};
}catch(e){_._DumpException(e)}
try{
var u_,r_k,A_f,hZf,inI,nna,xNK,bnd,sGz,c_2,eZK,FCi,J_d,GLK;_.pr0=function(){var a=window.location.hash;a.charAt(0)==="#"&&(a=a.charAt(1)==="!"?a.substring(2):a.substring(1));return _.bG(a)};
u_=function(a,W,w){var Z;return _.P(function(N){if(N.nextAddress==1)return _.g(N,W(),2);Z=N.yieldResult;w(Z,a);_.Xd(N)})};
r_k=function(){return _.P(function(a){return a.nextAddress==1?_.g(a,(_.aVD()!==void 0?_.od(Error("sf")):_.H3E()).then(function(){return 1},function(W){if(W.message==="Biscotti id is disabled")return 3;
_.jJ("Failed fetching bid");return 0}),2):a.return(a.yieldResult)})};
A_f=function(){return _.ybS(_.bM)};
hZf=function(){return _.EHx()===0?0:_.asv()};
inI=function(){return _.GRC(_.T4I([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"]]]))};
nna=function(){for(var a=function(N){return _.YAD(N)},W=[c_2,
eZK],w=2,Z=0;Z<W.length&&(w=_.GRC(_.T4I(W[Z],a)),w!==0);Z++);return w};
_.jG2=function(a){_.P(function(W){switch(W.nextAddress){case 1:return _.g(W,u_("b.f_",r_k,a),2);case 2:return _.g(W,u_("j.s_",_.uiF,a),3);case 3:return _.g(W,u_("r.s_",_.xRU,a),4);case 4:return _.g(W,u_("e.h_",nna,a),5);case 5:if(!_.r("ab_det_sc_inj")){W.jumpTo(6);break}return _.g(W,u_("s.i_",_.zK8,a),6);case 6:if(_.r("ab_deg_unex_thr")){W.jumpTo(8);break}return _.g(W,u_("a.o_",_.mRE,a),8);case 8:if(_.r("ks_get_o_pp")){W.jumpTo(10);break}return _.g(W,u_("g.o_",_.dRF,a),10);case 10:if(_.r("ks_det_gpbl")){W.jumpTo(12);
break}return _.g(W,u_("p.i_",_.fhv,a),12);case 12:return _.g(W,u_("f.i_",_.cbv,a),14);case 14:return _.g(W,u_("a.b_",_.qA7,a),15);case 15:return _.g(W,u_("p.m_",_.jcm,a),16);case 16:if(!_.r("ab_det_el_h_v2")){W.jumpTo(17);break}return _.g(W,u_("n.h_",inI,a),17);case 17:return _.g(W,u_("o.p_",A_f,a),19);case 19:if(_.r("ab_det_apm"))return _.g(W,u_("o.a_",hZf,a),0);W.jumpTo(0)}})};
_.LCI=function(a,W){a={videoId:a};W&&(a.playlistId=W);return a};
_.MhE=function(){if(_.g$U()){var a=_.LF("PLAYER_VARS",{});if(_.T5.get(a,"privembed",!1)!="1"&&!_.EqX(a)){var W=function(){J_d=!0;"google_ad_status"in window?_.jm("DCLKSTAT",1):_.jm("DCLKSTAT",2)};
try{_.MM("//static.doubleclick.net/instream/ad_status.js",W)}catch(w){}FCi.push(_.hF.addLowPriorityJob(function(){if(!(J_d||"google_ad_status"in window)){try{_.tSI("//static.doubleclick.net/instream/ad_status.js",W)}catch(w){}J_d=!0;_.jm("DCLKSTAT",3)}},5E3))}}};
_.RZX=function(a,W){a=a.width-_.Rs9();return Math.max(_.qN,Math.min(_.eV0,_.qN+(a-(_.RG+_.qN+_.FB+2*_.FB+W))))};
_.CW=function(a,W,w){w=w===void 0?!1:w;var Z=Math.max(a.width,_.cZn);if(_.r("kevlar_watch_feed_big_thumbs")&&a.width>=1550-_.iZ()&&a.height>=800)Z-=_.JZf;else if(a.width>=_.MN){var N=_.RG+_.qN+_.FB;_.r("kevlar_watch_feed_big_thumbs")&&(N=_.LgI);Z-=N}else Z-=_.RG;Z=Math.min(Z,_.nCI);N=240;w&&(N=380);W<.5624||(!_.r("kevlar_watch_flexy_disable_small_window_sizing")&&(a.height<630&&a.width>=657||a.height>=630&&a.width>=_.MN&&a.width<1327)?N=360:!_.r("kevlar_watch_flexy_disable_large_window_sizing")&&
a.height>=630&&a.width>=1327&&(N=480));var B=Math.min(Z*W,a.height-(56+_.iQd+_.j9E));B=Math.max(B,N);W<1?Z=B/W:a.width>=_.MN&&(Z=_.CW(a,.5625,w).width);return new _.Bh(Math.round(Z),Math.round(B))};
_.qvE=function(a){var W=0;a.indexOf("h")!=-1&&(a=a.split("h"),W=a[0]*60*60,a=a[1]);a.indexOf("m")!=-1&&(a=a.split("m"),W=a[0]*60+W,a=a[1]);a.indexOf("s")!=-1?(a=a.split("s"),W=a[0]*1+W):W=a*1+W;return W};
_.QG2=function(){_.yv("service_worker_push_logged_out_prompt_watches")!=-1&&_.dH("WatchCount").then(function(a){a>=100||_.Dn("WatchCount",a+1)})};
xNK=function(a){var W=a.externalVideoId||"";return W?(_.r("webfe_watch_shorts_canonical_url_fix")||_.LF("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&a.isShortsEligible?"https://www.youtube.com/shorts/"+W:"https://www.youtube.com/watch?v="+W:""};
bnd=function(a){var W=[];a.viewCount&&W.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:a.viewCount});a.likeCount&&W.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:a.likeCount});return W};
sGz=function(a){var W,w,Z={"@context":"https://schema.org","@type":"VideoObject",description:_.sd(a.description),duration:"PT"+(a.lengthSeconds||"0")+"S",embedUrl:a.embed?a.embed.iframeUrl:"",name:_.sd(a.title),thumbnailUrl:((W=a.thumbnail)==null?void 0:(w=W.thumbnails)==null?void 0:w.map(function(O){return O&&O.url||""}))||[],
uploadDate:a.publishDate};_.r("mweb_video_schema_id_killswitch")||(Z["@id"]=xNK(a));W=bnd(a);W.length&&(Z.interactionStatistic=W);a.category&&(Z.genre=a.category);a.ownerChannelName&&(Z.author=a.ownerChannelName);a.liveBroadcastDetails&&(Z.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:a.liveBroadcastDetails.startTimestamp,endDate:a.liveBroadcastDetails.endTimestamp}]);if(a.learningResource){a=a.learningResource;Z["@type"]=["VideoObject","LearningResource"];var N;if((N=a.learningResourceType)==
null?0:N.length)Z.learningResourceType=a.learningResourceType[0];var B;if((B=a.educationalAlignment)==null?0:B.length)Z.educationalAlignment={"@type":"AlignmentObject",targetName:a.educationalAlignment[0]};var I;if((I=a.educationalLevel)==null?0:I.length){N=a.educationalLevel[0];var X;if((X=a.educationalLevelCountry)==null?0:X.length)N+=" ("+a.educationalLevelCountry+")";Z.educationalLevel=N}var v,U;if(((v=a.learningResourceType)==null?0:v.length)&&a.learningResourceType[0]==="Problem walkthrough"&&
((U=a.problemDescriptions)==null?0:U.length))for(Z.hasPart=[],X=_.l(a.problemDescriptions),v=X.next();!v.done;v=X.next())N=v.value,v=N.problemDescriptionText,U=N.startOffset,N=N.url,v&&U!==void 0&&N&&Z.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:v,text:v,startOffset:U,url:N})}return Z};
_.uBz=function(a){return _.E_({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:a}})};
c_2=[["bWFyeSNpZnducGU4emV4b3hwcmk=",null],[null,["dWx0cy1yZW5kZXJlciM3am5waHBmZTlnc3J5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVz","OGswYWRzdHlsZS1zY29wZSM3Y2ZrOWZo"]],["am0zZjdtYXN0aGVhZC1hZCNqYWZ6MGNn",["aGRxaXNmcHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjNnpqYXc="]],[null,["cHhudjI4ZHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjc3NwdWE=","ZzF3cnJzdHlsZS1zY29wZSNhZXU5OHBz"]],[null,["cHl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjNXU4bW1ybmc0emQ=","b3Y5YWtuMjNzdHlsZS1zY29wZSNqNDQ="]],[null,["ZGtnZDIxZDBmcW95dGQtYWQtc2xvdC1yZW5kZXJlciNu"]]];
eZK=[["YWxjdXE4MmRwbGF5ZXItYWRzI2JtMXg=",null]];FCi=[];J_d=!1;_.CWz=["engagement-panel-ads"];GLK=new _.H("updateSentimentBarStateCommand");_.DNa=new _.H("showSurveyCommand");_.GB=new _.H("changeMarkersVisibilityCommand");var dNX,mNf,y_f,Hnf,zZk,D5;_.f_9=function(a,W){this.playerProvider_=a;this.actionSenderElement_=W;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.f_9.prototype.reset=function(){dNX(this);this.isUserPredictedAbsent_=!1};
dNX=function(a,W){!a.youThereData_||a.showWarningJob_||W!==void 0&&W||(_.fc("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.nS(),a.youThereData_,a.clientPlaybackNonce_),_.cZ());_.hF.cancelJob(a.showWarningJob_);a.showWarningJob_=0;_.hF.cancelJob(a.showBlockingWarningJob_);a.showBlockingWarningJob_=0;_.hF.cancelJob(a.pausePlaybackJob_);a.pausePlaybackJob_=0;a.youThereData_=null;a.clientPlaybackNonce_=void 0;a.inYouThereFlow_=!1};
_.Vh0=function(a,W){var w,Z,N;_.P(function(B){if(B.nextAddress==1)return a.reset(),_.g(B,a.playerProvider_().getPlayerPromise(),2);w=B.yieldResult;a.clientPlaybackNonce_=w.getVideoData().cpn;a.youThereData_=W.configData.youThereData;if(!a.youThereData_)return B.return();if(a.youThereData_.triggerReason&&a.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.NoE())return _.fc("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.nS(),a.youThereData_,a.clientPlaybackNonce_),B.return();Z=a.youThereData_.promptDelaySec;
N=w.getCurrentTime();a.showWarningJob_=_.hF.addLowPriorityJob(function(){return _.P(function(I){a.showWarningJob_=0;return _.g(I,mNf(a),0)})},Math.max(Z-N,0)*1E3);
_.Xd(B)})};
mNf=function(a){var W,w,Z,N,B,I;return _.P(function(X){if(X.nextAddress==1)return _.g(X,a.playerProvider_().getPlayerPromise(),2);if(X.nextAddress!=3)return W=X.yieldResult,w=W.getCurrentTime(),_.g(X,zZk(a),3);Z=X.yieldResult;if(!Z||!a.youThereData_)return X.return();if(_.r("check_user_lact_at_prompt_shown_time_on_web")&&(N=parseInt(a.youThereData_.lactThresholdMs,10),_.HI()<N))return _.fc("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.nS(),a.youThereData_,a.clientPlaybackNonce_),X.return();if(a.youThereData_.playbackPauseDelayMs<=
0)return Hnf(a),X.return();!_.r("external_fullscreen")&&(B=_.V3())&&(a.ignoreFullscreenExitUserActivity_=!0,_.hF.addLowPriorityJob(function(){a.ignoreFullscreenExitUserActivity_=!1},2E3),_.zq(B));
a.youThereData_.showToastWarningPrompt&&(D5(a,a.youThereData_.showWarningActions),a.inYouThereFlow_=!0,_.fc("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.nS(),a.youThereData_,a.clientPlaybackNonce_,w),_.fc("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.nS(),a.youThereData_,a.clientPlaybackNonce_,w));I=0;a.youThereData_.blockingPromptDelayMs&&(I=a.youThereData_.blockingPromptDelayMs);a.showBlockingWarningJob_=_.hF.addLowPriorityJob(function(){return _.P(function(v){a.showBlockingWarningJob_=0;return _.g(v,
y_f(a),0)})},I);
_.Xd(X)})};
y_f=function(a){var W,w,Z;return _.P(function(N){if(N.nextAddress==1)return _.g(N,zZk(a),2);W=N.yieldResult;if(!a.youThereData_)return N.return();W&&(a.youThereData_.showBlockingWarningAction&&(_.fc("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.nS(),a.youThereData_,a.clientPlaybackNonce_),(w=_.A(a.youThereData_.showBlockingWarningAction,_.$7))?D5(a,w.commands):D5(a,[a.youThereData_.showBlockingWarningAction]),a.inYouThereFlow_=!0),Z=a.youThereData_.playbackPauseDelayMs,a.pausePlaybackJob_=
_.hF.addLowPriorityJob(function(){return _.P(function(B){a.pausePlaybackJob_=0;return _.g(B,Hnf(a),0)})},Z));
_.Xd(N)})};
Hnf=function(a){var W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,zZk(a),2);W=w.yieldResult;if(!a.youThereData_)return w.return();W&&(_.fc("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.nS(),a.youThereData_,a.clientPlaybackNonce_),D5(a,a.youThereData_.showPausedActions),a.inYouThereFlow_=!0);_.Xd(w)})};
_.f_9.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var a=_.A(this.youThereData_.userActiveDuringFlowAction,_.$7);a?D5(this,a.commands):D5(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.fc("YOU_THERE_EVENT_TYPE_LACT_RESET",_.nS(),this.youThereData_,this.clientPlaybackNonce_),_.cZ());dNX(this,!0)}_.End(this,!1)};
_.a6I=function(a){_.fc("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.nS(),a.youThereData_,a.clientPlaybackNonce_)};
zZk=function(a){var W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.playerProvider_().getPlayerPromise(),2);W=Z.yieldResult;w=W.getPlayerState();return Z.return(w==-1||w==1||w==3)})};
_.End=function(a,W){var w;_.P(function(Z){if(Z.nextAddress==1){if(a.isUserPredictedAbsent_==W)return Z.jumpTo(0);a.isUserPredictedAbsent_=W;return _.g(Z,a.playerProvider_().getPlayerPromise(),3)}w=Z.yieldResult;w.setUserEngagement(W);W&&_.fc("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.nS(),a.youThereData_,a.clientPlaybackNonce_);_.Xd(Z)})};
D5=function(a,W){if(_.r("handle_service_request_actions")||_.r("kevlar_youthere_service_endpoint_actions_killswitch"))_.N1(a.actionSenderElement_,W,a.actionSenderElement_);else{W=_.l(W);for(var w=W.next();!w.done;w=W.next())w=w.value,w.commandMetadata&&w.commandMetadata.webCommandMetadata&&w.commandMetadata.webCommandMetadata.sendPost?_.Z9(a.actionSenderElement_,[w]):_.N1(a.actionSenderElement_,[w],a.actionSenderElement_)}};var W32;var wUD;var fW=function(){var a=_.u.apply(this,arguments)||this;a.systemIcons=_.r("kevlar_system_icons");a.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return a};
_.c(fW,_.u);fW.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);_.M(this.hostElement).querySelector("#like-bar").style.width=a+"%"}};
fW.prototype.handleUpdateSentimentBarStateCommand=function(a){this.data&&this.set("data.likeStatus",_.A(a,GLK).likeStatus)};
fW.prototype.observeLikeStatus=fW.prototype.observeLikeStatus;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],fW.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],fW.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],fW.prototype,"activated",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],fW.prototype,"systemIcons",void 0);_.f([_.a5("data.likeStatus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fW.prototype,"observeLikeStatus",null);fW=_.f([_.C({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],fW);
_.D(fW,"ytd-sentiment-bar-renderer",function(){if(wUD!==void 0)return wUD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return wUD=a},{mode:1});var ZuK;var du=function(){var a=_.u.apply(this,arguments)||this;a.small=!0;return a};
_.c(du,_.u);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],du.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],du.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],du.prototype,"small",void 0);du=_.f([_.C({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],du);
_.D(du,"ytd-video-view-count-renderer",function(){if(ZuK!==void 0)return ZuK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ZuK=a},{mode:_.Vn("kevlar_poly_si_batch_j080")?1:2});var mp=function(){var a=_.u.apply(this,arguments)||this;a.infoFormattedStrings=[];a.wrapVideoActions=_.r("kevar_watch_wrap_video_actions");a.hideSentimentBar=_.r("kevlar_watch_hide_sentiment_bar");a.actionMap={};return a};
_.c(mp,_.u);_.t=mp.prototype;_.t.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.t.dataChanged=function(){_.r("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.t.computeInfoFormattedStrings=function(a){if(!a)return[];var W=[];a.dateText&&W.push(a.dateText);a.stationName&&W.push(a.stationName);a.rating&&W.push(a.rating);a.startEndTimeTemplate&&a.startTimeUtcMillis&&a.endTimeUtcMillis&&W.push(_.b8(_.fcK(_.sd(a.startEndTimeTemplate),Number(a.startTimeUtcMillis),Number(a.endTimeUtcMillis))));a.upNextProgramText&&W.push(a.upNextProgramText);return W};
_.t.scheduleInitialUpdatedMetadataRequest=function(){var a,W=(a=this.data)==null?void 0:a.updatedMetadataEndpoint;if(W){var w;a=Number((w=_.A(W,_.wEH))==null?void 0:w.initialDelayMs);w=isNaN(a)?250:a;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),w)}};
_.t.setSentimentBarWidth=function(){var a=this;_.DW(this,function(){var W=_.M(a.hostElement).querySelector("ytd-menu-renderer");if(W){W=W.topLevelButtons;for(var w=0,Z=0;Z<W.length;Z++){var N=W[Z],B=a.get("toggleButtonSupportedData.toggleButtonIdData.id",N.data);if(B==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||B==="TOGGLE_BUTTON_ID_TYPE_LIKE")w+=N.clientWidth+8;else break}w&&(a.sentiment.style.width=w-8+" px")}})};
_.t.fetchUpdatedMetadata=function(a){var W;a&&(W={continuation:a});var w;(a=(w=this.data)==null?void 0:w.updatedMetadataEndpoint)&&_.K().resolve(_.zU).resolveCommand(a,{form:Object.assign({},W,{element:this.hostElement})})};
_.t.onYtServiceRequestSent=function(a,W){W.endpoint&&_.A(W.endpoint,_.mI)&&(this.hasUpdateSentimentBarStateCommands()&&!_.r("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.A(W.endpoint,_.mI).status),this.setSentimentBarWidth())};
_.t.hasUpdateSentimentBarStateCommands=function(){var a,W,w,Z,N=(Z=(a=this.data)==null?void 0:(W=a.videoActions)==null?void 0:(w=W.menuRenderer)==null?void 0:w.topLevelButtons)!=null?Z:[];a=_.l(N);for(W=a.next();!W.done;W=a.next()){W=W.value;N=Z=w=void 0;var B=(w=W.toggleButtonRenderer)==null?void 0:(Z=w.toggleButtonSupportedData)==null?void 0:(N=Z.toggleButtonIdData)==null?void 0:N.id;if(B==="TOGGLE_BUTTON_ID_TYPE_LIKE"||B==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){Z=w=void 0;W=(Z=_.A((w=W.toggleButtonRenderer)==
null?void 0:w.defaultServiceEndpoint,_.$7))==null?void 0:Z.commands;if(!W)break;W=_.l(W);for(w=W.next();!w.done;w=W.next())if(_.A(w.value,GLK))return!0}}return!1};
_.t.onYtServiceRequestCompleted=function(a,W){var w;(a=(w=W.data)==null?void 0:w.loggingDirectives)&&_.ln7(_.$J(),a);this.get("continuation.timedContinuationData",W.data)&&this.data&&this.data.updatedMetadataEndpoint&&(W=W.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,W.continuation),W.timeoutMs))};
_.t.computeHasDateText=function(a){return!!a&&!!a.dateText};
_.dU.Object.defineProperties(mp.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z;return!((Z=(a=this.data)==null?void 0:(W=a.videoActions)==null?void 0:(w=W.menuRenderer)==null?void 0:w.flexibleItems)==null||!Z.length)}}});
mp.prototype.onYtServiceRequestCompleted=mp.prototype.onYtServiceRequestCompleted;mp.prototype.onYtServiceRequestSent=mp.prototype.onYtServiceRequestSent;mp.prototype.dataChanged=mp.prototype.dataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],mp.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],mp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ui.YtTaskEmitterBehavior),_.z("design:type",Object)],mp.prototype,"ytTaskEmitterBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],mp.prototype,"data",void 0);_.f([_.b({computed:"computeInfoFormattedStrings(data)"}),_.z("design:type",Array)],mp.prototype,"infoFormattedStrings",void 0);
_.f([_.b({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],mp.prototype,"hasDateText",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mp.prototype,"wrapVideoActions",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mp.prototype,"hideSentimentBar",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mp.prototype,"flexMenuEnabled",null);
_.f([_.w$("#sentiment"),_.z("design:type",Object)],mp.prototype,"sentiment",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mp.prototype,"dataChanged",null);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],mp.prototype,"onYtServiceRequestSent",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],mp.prototype,"onYtServiceRequestCompleted",null);
_.D(mp,"ytd-video-primary-info-renderer",function(){if(W32===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);W32=a}a=W32;return a},{mode:1});var NgI;var VB=function(){var a=_.u.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};
_.c(VB,_.u);_.t=VB.prototype;_.t.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"}}}};
_.t.dataChanged=function(){var a;this.descriptionToggled=!((a=this.data)==null||!a.defaultExpanded);var W;this.collapsed=this.descriptionAlwaysCollapsed||!((W=this.data)==null?0:W.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Ob(110509);this.showLessClientVe=_.Ob(110510);a=_.nS();W=_.eH();a&&W&&_.RV(a,W,[this.showMoreClientVe,this.showLessClientVe])};
_.t.onYtExpanderMoreTapped=function(){var a,W=(a=this.data)==null?void 0:a.showMoreCommand;W&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(W);(a=_.nS())&&this.showMoreClientVe&&_.b0(a,this.showMoreClientVe)};
_.t.onYtExpanderLessTapped=function(){var a=_.nS();a&&this.showLessClientVe&&_.b0(a,this.showLessClientVe);var W;(a=(W=this.data)==null?void 0:W.showLessCommand)&&this.componentBehavior.resolveCommand(a)};
_.t.handleUpdateDateTextAction=function(a){this.data&&this.data.dateText&&this.set("data.dateText",_.A(a,_.TLI).dateText)};
_.t.handleUpdateDescriptionAction=function(a){if(a=_.A(a,_.CMA))a.isEmpty||!a.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.YJ(a.description)):this.set("data.description",a.description)};
_.t.onYtChangeEngagementPanelVisibilityAction=function(a){if(_.r("web_structured_description_show_more")||_.r("web_engagement_panel_open_description")){var W,w=(W=_.A(a,_.QNe))==null?void 0:W.targetId,Z;a=((Z=_.A(a,_.QNe))==null?void 0:Z.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";w==="engagement-panel-structured-description"&&a&&(this.descriptionToggled=!0)}};
_.t.updateCollapsedFromBinding=function(a){this.collapsed=a.detail.value};
_.t.updateDescriptionToggledFromBinding=function(a){this.descriptionToggled=a.detail.value};
_.t.updateCanCollapseFromBinding=function(a){this.canCollapse=a.detail.value};
_.dU.Object.defineProperties(VB.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var a,W,w=(a=this.data)==null?void 0:(W=a.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer;return!!w&&!!w.rows&&w.rows.length>w.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}}});
VB.prototype.onYtExpanderLessTapped=VB.prototype.onYtExpanderLessTapped;VB.prototype.onYtExpanderMoreTapped=VB.prototype.onYtExpanderMoreTapped;VB.prototype.dataChanged=VB.prototype.dataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],VB.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],VB.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],VB.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],VB.prototype,"collapsed",void 0);_.f([_.b(),_.z("design:type",Boolean)],VB.prototype,"descriptionToggled",void 0);
_.f([_.b(),_.z("design:type",Boolean)],VB.prototype,"canCollapse",void 0);_.f([_.b(),_.z("design:type",Object)],VB.prototype,"subscribeButtonData",void 0);_.f([_.b(),_.z("design:type",Number)],VB.prototype,"descriptionCollapsedHeight",void 0);_.f([_.b(),_.z("design:type",Object)],VB.prototype,"structuredDescriptionContentRenderer",void 0);_.f([_.b({value:function(){return _.r("web_watch_description_always_collapsed")}}),
_.z("design:type",Boolean)],VB.prototype,"descriptionAlwaysCollapsed",void 0);_.f([_.w$("#description"),_.z("design:type",HTMLDivElement)],VB.prototype,"description",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VB.prototype,"dataChanged",null);_.f([_.E6("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VB.prototype,"onYtExpanderMoreTapped",null);
_.f([_.E6("yt-expander-less-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VB.prototype,"onYtExpanderLessTapped",null);_.f([_.Q("data.metadataRowContainer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],VB.prototype,"metadataCollapsible",null);_.f([_.Q("data","structuredDescriptionContentRenderer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],VB.prototype,"hasInlineStructuredDescription",null);
_.f([_.Q("data.attributedDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],VB.prototype,"hasAttributedDescription",null);_.f([_.Q("hasInlineStructuredDescription","collapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],VB.prototype,"loadStructuredDescription",null);_.f([_.Q("data","structuredDescriptionContentRenderer","collapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],VB.prototype,"showInlineStructuredDescription",null);
_.f([_.Q("data","hasInlineStructuredDescription","metadataCollapsible"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],VB.prototype,"descriptionAlwaysCollapsible",null);
_.D(VB,"ytd-video-secondary-info-renderer",function(){if(NgI===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);NgI=a}a=NgI;return a},{mode:2});var tR0;var zB=function(){return _.u.apply(this,arguments)||this};
_.c(zB,_.u);zB.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:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
zB.prototype.activate=function(a){a.appendTo(this.player);a.getPlayerPromise().then(function(W){W.setMinimized(!0)});
this.active=!0};
zB.prototype.deactivate=function(){var a=this.player.firstElementChild;a.getPlayerPromise().then(function(W){W.setMinimized(!1)});
this.active=!1;return a};
zB.prototype.onScrollUpTap=function(){var a=_.K().resolve(_.Gw).getCurrentPage();a&&a.setScrollTop(0)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],zB.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],zB.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],zB.prototype,"active",void 0);
_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.z("design:type",Boolean)],zB.prototype,"darkLaunch",void 0);_.f([_.w$("#player"),_.z("design:type",HTMLDivElement)],zB.prototype,"player",void 0);zB=_.f([_.C({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],zB);
_.D(zB,"ytd-miniplayer-bar-renderer",function(){if(tR0!==void 0)return tR0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return tR0=a},{mode:1});_.Ct(_.xQ(function(a){var W=_.D8();_.Ka(function(){var w;if(w=JSON)w=sGz(a.data()),w=_.M_(JSON.stringify(w).replace(/</g,"\\u003C"));var Z=a.data(),N=_.sd(Z.title).trim().length===0,B=!Z.publishDate||Z.publishDate.trim().length===0,I,X,v,U,O=!((I=Z.thumbnail)==null?0:(X=I.thumbnails)==null?0:X.length)||!((v=Z.thumbnail)==null?0:v.thumbnails[0].url)||((U=Z.thumbnail)==null?void 0:U.thumbnails[0].url.trim().length)===0;W.value&&w&&!(N||B||O)&&_.q_(W.value,w)});
return _.k("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.k("script",{el:W,type:"application/ld+json"}))},"fj"),"player-microformat-renderer",{props:{data:_.ux}});
}catch(e){_._DumpException(e)}
try{
var YvK;_.gn2=function(a){return a.watch.watchWindowSize};
_.onf=function(a){return _.E_({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:a}})};
YvK=function(a){_.OW.call(this);var W=this;this.JSC$20334_watchApi=a;a=_.oX(_.Cx(),_.nAe,function(){kLE(W)});
this.addOnDisposeCallback(a);a=_.oX(_.Cx(),_.gn2,function(){kLE(W)});
this.addOnDisposeCallback(a);UNX(this);OnK(this);Sv2()};
_.c(YvK,_.OW);var UNX=function(a){var W=function(Z){_.Cx().dispatch(_.by2(Z.matches))},w=window.matchMedia("(max-width: "+(999+_.iZ())+"px)");
w.addListener(W);a.addOnDisposeCallback(function(){w.removeListener(W)});
W(w)},OnK=function(a){a.JSC$20334_watchApi.registerActionHandler("yt-window-resized",function(){Sv2()});
a.addOnDisposeCallback(function(){a.JSC$20334_watchApi.unregisterActionHandler("yt-window-resized")})},Sv2=function(){var a=_.vu();
_.Cx().dispatch(_.E_({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:a.width,height:a.height}}}))},kLE=function(a){var W;
_.P(function(w){if(w.nextAddress==1)return _.g(w,a.JSC$20334_watchApi.playerApi,2);W=w.yieldResult;W.setSize(NaN,NaN);_.Xd(w)})};_.xN=function(a){_.my.call(this);var W=this;this.rootElement=a;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return W.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(w){W.initOrDisposeActiveModules(w)}));
this.onAttached()};
_.c(_.xN,_.my);_.t=_.xN.prototype;_.t.getRoot=function(){return this.rootElement};
_.t.getElement=function(a){return this.rootElement.getElement(a)};
_.t.setPlayerResponse=function(a){this.playerResponse=a;this.publish("PLAYER_RESPONSE_UPDATED",a)};
_.t.getPlayerResponse=function(){return this.playerResponse};
_.t.setWatchNextResponse=function(a){this.watchNextResponse===a?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=a,this.publish("WATCH_NEXT_RESPONSE_UPDATED",a))};
_.t.getWatchNextResponse=function(){return this.watchNextResponse};
_.t.registerActionHandler=function(a,W){var w=this;if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var Z={};_.ua(_.sn.getInstance(),(Z[a]=W,Z),this.getRoot())}else this.actionHandlers.has(a)||(this.actionHandlers.set(a,[]),Z={},_.ua(_.sn.getInstance(),(Z[a]=function(){var N=_.TH.apply(0,arguments);return(w.actionHandlers.get(a)||[]).map(function(B){return B.apply(null,_.K8(N))})},Z),this.getRoot())),this.actionHandlers.get(a).push(W)};
_.t.unregisterActionHandler=function(a){if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var W={};_.CH(_.sn.getInstance(),(W[a]=!0,W),this.getRoot())}else(W=this.actionHandlers.get(a))?(W.pop(),W.length===0&&(W={},_.CH(_.sn.getInstance(),(W[a]=!0,W),this.getRoot()),this.actionHandlers.delete(a))):_.jJ(new _.Uw("Attempted to unregister an action handler which is not registered.",a))};
_.t.addPageDisposeJob=function(a){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.dE(this.rootElement.pageDisposeJobs,a)};
_.t.removePageDisposeJob=function(a){this.rootElement.pageDisposeJobs&&_.yF(this.rootElement.pageDisposeJobs,a)};
_.t.dispatchEvent=function(a,W){_.E$(this.rootElement,a,W)};
_.t.provideRenderingData=function(a,W){this.rootElement.provideRenderingData(a,W)};
_.t.scrollWatchTo=function(a,W){var w;(w=this.watchScrollManager)==null||w.scrollWatchTo(a,W)};
_.t.focusOnPlayer=function(){var a=this.getElement("PLAYER");_.DW(a,function(){if(a&&a.firstElementChild){var W=a.querySelector(".html5-video-player");W&&(_.fg(_.K().resolve(_.Y_)),W.focus())}else _.jJ(Error("jm"))})};
_.t.updateCinematicFullscreenConfig=function(){var a=!!this.rootElement.theater,W=!!this.rootElement.fullscreen,w;(w=this.watchCinematicManager)==null||_.gP9(w,W,a)};
_.t.subscribeToActiveChanged=function(a,W){W=W===void 0?!0:W;var w=_.oX(_.Cx(),_.dgI,function(Z){a(Z)});
W&&a(_.dgI(_.Cx().getState()));return w};
_.t.isActive=function(){return _.dgI(_.Cx().getState())};
_.t.onAttached=function(){var a=_.r("external_fullscreen");_.r("use_unified_flag_accessor")&&(a=_.K().resolve(_.vd0).retriever.getFlag(_.SW$));(a||_.JS("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var TAa=function(a){return a.getRoot().is==="ytd-watch-flexy"||a.getRoot().is==="ytd-watch-grid"},b_=function(a){return a.getRoot().is==="ytd-watch-fixie"};
_.xN.prototype.initPersistentModules=function(){if(b_(this)||TAa(this)&&_.r("kevlar_watch_flexy_theater_manager")){var a=new _.u39(this);_.$3(this,a)}a=new _.iEE(this);_.$3(this,a);a=new _.e1(this);_.$3(this,a);a=new _.Rz(this);_.$3(this,a);a=new _.WCa(this);_.$3(this,a);a=new _.j1(this);_.$3(this,a);if(b_(this)||TAa(this)&&_.r("kevlar_watch_flexy_playlist_manager"))a=new _.Zni(this),_.$3(this,a)};
_.xN.prototype.initOrDisposeActiveModules=function(a){a?(this.watchScrollManager=new _.QB(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.sh2(this)),this.activeModules.push(new _.DuX(this)),b_(this)&&this.activeModules.push(new YvK(this)),this.activeModules.push(new _.PWa(this)),this.activeModules.push(new _.qI(this)),(b_(this)||_.r("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.VqD(this)),this.activeModules.push(new _.d4X(this)),
(b_(this)||_.r("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.vnD(this)),(b_(this)||_.r("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.NRa(this)),_.r("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.IRa(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.r("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.HEk(this)),_.r("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.AUd(this)),
a=_.r("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.r("kevlar_watch_flexy_comments_manager")&&!a&&this.activeModules.push(new _.Yzi(this)),_.r("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.nW(this)),this.activeModules.push(new _.z4I(this)),this.activeModules.push(new _.Coz(this)),_.r("web_enable_timely_actions")&&this.activeModules.push(new _.aRn(this)),_.r("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.pfE(this)),
_.r("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.gad(this)),_.r("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.Ezz(this)),_.r("web_player_rtr_ctrls")&&this.activeModules.push(new _.AB0(this))):(_.mk(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.xN.prototype.disposeInternal=function(){_.my.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.dU.Object.defineProperties(_.xN.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var bcn,KV,sfd,ugD,Gti,DUz,C4I,fnk;bcn=function(){var a=_.k7();a.info||(a.info={});return a.info};
KV=function(a){return Math.round(_.O_()+a)};
sfd=function(){var a;if(_.r("csi_use_performance_navigation_timing")){var W,w,Z,N=_.U_==null?void 0:(a=_.U_.getEntriesByType)==null?void 0:(W=a.call(_.U_,"navigation"))==null?void 0:(w=W[0])==null?void 0:(Z=w.toJSON)==null?void 0:Z.call(w);N?(N.requestStart=KV(N.requestStart),N.responseEnd=KV(N.responseEnd),N.redirectStart=KV(N.redirectStart),N.redirectEnd=KV(N.redirectEnd),N.domainLookupEnd=KV(N.domainLookupEnd),N.connectStart=KV(N.connectStart),N.connectEnd=KV(N.connectEnd),N.responseStart=KV(N.responseStart),
N.secureConnectionStart=KV(N.secureConnectionStart),N.domainLookupStart=KV(N.domainLookupStart),N.isPerformanceNavigationTiming=!0,a=N):a=_.U_.timing}else a=_.r("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.U_.timing)):_.U_.timing;return a};
ugD=function(){if(_.U_.getEntriesByType){var a=_.U_.getEntriesByType("paint");if(a=_.be(a,function(w){return w.name==="first-paint"}))return KV(a.startTime)}var W;
_.r("csi_use_performance_navigation_timing")?W=_.U_.getEntriesByType("first-paint")[0].startTime:W=_.U_.timing.msFirstPaint;return W?Math.max(0,W):0};
Gti=function(){var a=window.location.protocol,W=_.U_.getEntriesByType("resource");W=_.$T(W,function(w){return w.name.indexOf(a+"//fonts.gstatic.com/s/")===0});
(W=C4I(W,function(w,Z){return Z.duration>w.duration?Z:w}))&&W.startTime>0&&W.responseEnd>0&&(_.SW("wffs",KV(W.startTime)),_.SW("wffe",KV(W.responseEnd)))};
DUz=function(a,W){a=document.querySelector(a);if(!a)return!1;var w="",Z=a.nodeName;Z==="SCRIPT"?(w=a.src,w||(w=a.getAttribute("data-timing-href"))&&(w=window.location.protocol+w)):Z==="LINK"&&(w=a.href);_.JY(document)&&a.setAttribute("nonce",_.JY(document));return w?(a=_.U_.getEntriesByName(w))&&a[0]&&(a=a[0],w=_.O_(),_.SW("rsf_"+W,w+Math.round(a.fetchStart)),_.SW("rse_"+W,w+Math.round(a.responseEnd)),a.transferSize!==void 0&&a.transferSize===0)?!0:!1:!1};
_.pV=function(a,W){_.Mx(function(){_.G_E("").info.actionType=a;W&&_.jm("TIMING_AFT_KEYS",W);_.jm("TIMING_ACTION",a);var w=_.$KI(_.LF("TIMING_INFO",{}));Object.keys(w).length>0&&_.Y7(w);w={isNavigation:!0,actionType:_.dPe(_.LF("TIMING_ACTION"))};var Z=_.LF("PREVIOUS_ACTION");Z&&(w.previousAction=_.dPe(Z));if(Z=_.LF("CLIENT_PROTOCOL"))w.httpProtocol=Z;if(Z=_.LF("CLIENT_TRANSPORT"))w.transportProtocol=Z;(Z=_.nS())&&Z!=="UNDEFINED_CSN"&&(w.clientScreenNonce=Z);Z=_.tiU();if(Z===1||Z===-1)w.isVisible=!0;
Z=_.q19().loadType==="cold";var N=bcn();Z||(Z=N.yt_lt==="cold");if(Z){w.loadType="cold";Z=bcn();N=sfd();var B=_.O_(),I=_.LF("CSI_START_TIMESTAMP_MILLIS",0);I>0&&!_.r("embeds_web_enable_csi_start_override_killswitch")&&(B=I);B&&(_.SW("srt",N.responseStart),Z.prerender!==1&&_.y1x(B));Z=ugD();Z>0&&_.SW("fpt",Z);Z=sfd();Z.isPerformanceNavigationTiming&&_.Y7({performanceNavigationTiming:!0},void 0);_.SW("nreqs",Z.requestStart,void 0);_.SW("nress",Z.responseStart,void 0);_.SW("nrese",Z.responseEnd,void 0);
Z.redirectEnd-Z.redirectStart>0&&(_.SW("nrs",Z.redirectStart,void 0),_.SW("nre",Z.redirectEnd,void 0));Z.domainLookupEnd-Z.domainLookupStart>0&&(_.SW("ndnss",Z.domainLookupStart,void 0),_.SW("ndnse",Z.domainLookupEnd,void 0));Z.connectEnd-Z.connectStart>0&&(_.SW("ntcps",Z.connectStart,void 0),_.SW("ntcpe",Z.connectEnd,void 0));Z.secureConnectionStart>=_.O_()&&Z.connectEnd-Z.secureConnectionStart>0&&(_.SW("nstcps",Z.secureConnectionStart,void 0),_.SW("ntcpe",Z.connectEnd,void 0));_.U_&&"getEntriesByType"in
_.U_&&Gti();Z=[];if(document.querySelector&&_.U_&&_.U_.getEntriesByName)for(var X in fnk)fnk.hasOwnProperty(X)&&(N=fnk[X],DUz(X,N)&&Z.push(N));if(Z.length>0)for(w.resourceInfo=[],X=_.l(Z),Z=X.next();!Z.done;Z=X.next())w.resourceInfo.push({resourceCache:Z.value})}_.Y7(w);w=_.xPI();w.preLoggedGelInfos||(w.preLoggedGelInfos=[]);X=w.preLoggedGelInfos;w=_.b9I();Z=void 0;for(N=0;N<X.length;N++)if(B=X[N],B.loadType){Z=B.loadType;break}if(_.q19().loadType==="cold"&&(w.loadType==="cold"||Z==="cold")){Z=_.QZx();
N=_.xPI();N=N.gelTicks?N.gelTicks:N.gelTicks={};for(var v in Z)if(!(v in N))if(typeof Z[v]==="number")_.SW(v,_.TG(v));else if(_.r("log_repeated_ytcsi_ticks"))for(B=_.l(Z[v]),I=B.next();!I.done;I=B.next())I=I.value,_.SW(v.slice(1),I);v={};Z=!1;X=_.l(X);for(N=X.next();!N.done;N=X.next())Z=N.value,_.bkm(w,Z),_.bkm(v,Z),Z=!0;Z&&_.Y7(v)}_.lt8(!0);v=_.LF("TIMING_ACTION");_.RT("ytglobal.timingready_")&&v&&_.SVD()&&_.BF7()&&_.Zmx()})()};
C4I=function(a,W){return Array.prototype.reduce.call(a,W,{duration:0})};
fnk={'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 dUf={};dUf.YtVisibilityRootBehavior=[_.Q2L.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.d3(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.LF("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var a=_.LF("INNERTUBE_CLIENT_NAME")!=="WEB";_.r("kevlar_use_vimio_behavior")&&a&&_.CjR()}}];_.rG={};_.rG.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}}],
dUf.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Rt();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(a){var W=this;this.pageCount+=1;_.r("kevlar_use_vimio_behavior")&&(_.LF("INNERTUBE_CLIENT_NAME")==="WEB"?_.hF.addJob(function(){W.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(a)},
loadPage_:function(a){this.data=a},
ytPageBehaviorActiveObserver_:function(a){var W=this;_.r("kevlar_use_vimio_behavior")&&(a?_.LF("INNERTUBE_CLIENT_NAME")==="WEB"?_.hF.addJob(function(){W.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(a){if(!this.setScrollTopJobId_){var W=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){W.setScrollTopJobId_=0;var w=_.K().resolve(_.Vv(_.Y_));w&&_.fg(w);this.getPageScrollingElement().scrollTop=a}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.h9(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var xUk;var TT=function(){var a=_.u.apply(this,arguments)||this;a.playerListenerConfig=null;a.actionMap={"yt-show-watch-page-survey":"openSurvey"};return a};
_.c(TT,_.u);_.t=TT.prototype;_.t.dataChanged=function(){var a=this,W=_.fA();W&&W.getPlayerPromise().then(function(Z){a.maybeRemovePlayerListeners(Z)});
var w=this.data&&this.data.survey;w&&((w=(w=w.singleOptionSurveyRenderer||w.checkboxSurveyRenderer||w.multiStageSurveyRenderer)&&w.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(W,w):this.openSurvey())};
_.t.triggerWatchPageSurvey=function(a,W){var w=this,Z,N,B,I,X,v,U,O,S;return _.P(function(T){if(T.nextAddress==1)return a?_.g(T,a.getPlayerPromise(),2):T.return();w.player=T.yieldResult;if(!w.player)return T.return();Z={};N=_.l(W);for(B=N.next();!B.done;B=N.next())I=B.value,X=_.l(w.createEventListenerPair(I)),v=X.next().value,U=X.next().value,O=v,S=U,O&&S&&(Z[O]=S,w.ytPlayerListenerBehavior.listenToPlayerEvent(w.player,O,S));w.playerListenerConfig=Z;_.Xd(T)})};
_.t.createEventListenerPair=function(a){var W=a.playbackEventTrigger;return W?this.handlePlaybackTrigger(W):(a=a.watchTimeTrigger)?this.handleWatchTimeTrigger(a):[void 0,void 0]};
_.t.handleWatchTimeTrigger=function(a){var W=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var w=a.videoWatchFraction,Z=a.watchTimeSec;return Z&&w?["onVideoProgress",function(){W.player&&W.isWatchTimeConditionMet(W.player,w,Z)&&W.showSurvey()}]:[void 0,
void 0]};
_.t.isWatchTimeConditionMet=function(a,W,w){var Z=a.getProgressState(),N=Z.current-this.lastKnownPlaybackPosition;N<5&&(this.accumulatedMediaTime+=N);this.lastKnownPlaybackPosition=Z.current;Z=Math.round(this.accumulatedMediaTime/Z.duration*1E3)/1E3;return a.getPresentingPlayerType&&a.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>w||Z>W)};
_.t.handlePlaybackTrigger=function(a){var W=this;a=a.playbackEvent;if(a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var w="onStateChange";var Z=function(N){N===0&&W.showSurvey()}}else a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(w="onVideoProgress",Z=function(N){W.player&&W.player.getPresentingPlayerType&&W.player.getPresentingPlayerType()===1&&N&&W.showSurvey()}):a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(w="onAdEnd",Z=this.showSurvey);
return[w,Z]};
_.t.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.t.openSurvey=function(){var a=this,W=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.LkE(!!W));_.hF.addJob(function(){a.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:W}})},0,0)};
_.t.maybeRemovePlayerListeners=function(a){if(this.playerListenerConfig){for(var W=_.l(Object.keys(this.playerListenerConfig)),w=W.next();!w.done;w=W.next())w=w.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(a,w,this.playerListenerConfig[w]);this.playerListenerConfig=null}};
TT.prototype.dataChanged=TT.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],TT.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],TT.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],TT.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(_.ij),_.z("design:type",Object)],TT.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],TT.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],TT.prototype,"playerListenerConfig",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],TT.prototype,"lastKnownPlaybackPosition",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],TT.prototype,"accumulatedMediaTime",void 0);_.f([_.b(),_.z("design:type",Object)],TT.prototype,"player",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TT.prototype,"dataChanged",null);TT=_.f([_.C({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],TT);
_.D(TT,"ytd-survey-trigger-renderer",function(){if(xUk!==void 0)return xUk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return xUk=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
var eJX=new _.H("promotedSparklesWebRenderer");var nua=new _.H("relatedChipCommand");var jpz;var LA2;var oG=function(){return _.u.apply(this,arguments)||this};
_.c(oG,_.u);oG.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],oG.prototype,"data",void 0);oG=_.f([_.C({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],oG);
_.D(oG,"ytd-compact-tvfilm-entry-point-renderer",function(){if(LA2!==void 0)return LA2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return LA2=a},{mode:1});var J50;var FAI;var MsE;var kn=function(){return _.u.apply(this,arguments)||this};
_.c(kn,_.u);kn.prototype.ready=function(){this.initializeDefs()};
kn.prototype.initializeDefs=function(){var a=this.meta.byKey("yt-icons"),W=_.M(a).querySelector("#star"),w=_.M(a).querySelector("#star_half");a=_.M(a).querySelector("#star_border");W&&this.defs.appendChild(W.cloneNode(!0));w&&this.defs.appendChild(w.cloneNode(!0));a&&this.defs.appendChild(a.cloneNode(!0))};
kn.prototype.percentChanged=function(){for(var a=this.rating;a.firstChild;)a.removeChild(a.firstChild);var W=Math.round(this.percent/10);a=Math.floor(W/2);W%=2;var w=5-a-W;this.appendStars("star",a,0);this.appendStars("star_half",W,a);this.appendStars("star_border",w,a+W)};
kn.prototype.appendStars=function(a,W,w){for(var Z=0;Z<W;Z++){var N=(18+this.spacing)*(Z+w),B=document.createElementNS("http://www.w3.org/2000/svg","use");_.Jv2(B,"#"+a);B.setAttribute("x",""+N);B.setAttribute("y","0");this.rating.appendChild(B)}};
kn.prototype.percentChanged=kn.prototype.percentChanged;_.f([_.w$("#defs"),_.z("design:type",HTMLElement)],kn.prototype,"defs",void 0);_.f([_.w$("#rating"),_.z("design:type",HTMLElement)],kn.prototype,"rating",void 0);_.f([_.b(),_.z("design:type",Number)],kn.prototype,"percent",void 0);_.f([_.b({value:6}),_.z("design:type",Number)],kn.prototype,"spacing",void 0);_.f([_.b({value:_.Tp.create("iron-meta",{type:"iconset"})}),_.z("design:type",_.AM)],kn.prototype,"meta",void 0);
_.f([_.a5("percent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kn.prototype,"percentChanged",null);kn=_.f([_.C({disableElementRegistration:!0,is:"ytd-ratings"})],kn);
_.D(kn,"ytd-ratings",function(){if(MsE!==void 0)return MsE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return MsE=a},{mode:1});var Uv=function(){return _.u.apply(this,arguments)||this};
_.c(Uv,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Uv.prototype,"data",void 0);Uv=_.f([_.C({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Uv);
_.D(Uv,"ytd-offer-review-renderer",function(){if(FAI!==void 0)return FAI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return FAI=a},{mode:1});var Ov=function(){var a=_.u.apply(this,arguments)||this;a.badges=[{textBadge:{label:_.b8("CC")}}];return a};
_.c(Ov,_.u);_.t=Ov.prototype;_.t.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.t.dataChanged=function(){var a=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(a&&a.commandMetadata&&_.A(a.commandMetadata,_.h4)&&_.A(a.commandMetadata,_.h4).fireAutomatically)_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}});else{var W;a&&((W=_.A(a,_.h4))==null?0:W.fireAutomatically)&&_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}})}};
_.t.isEmptyContent=function(a){return this.isStorefrontEntryPointEmpty(a)&&this.shouldHideOfferModule(a)};
_.t.isStorefrontEntryPointEmpty=function(a){return!a||!a.storefrontEntryPoint};
_.t.shouldHideOfferModule=function(a){return!!a.hideVideoDetails};
_.t.isOfferModuleNavigationInactive=function(a){return!a.navigationEndpoint&&!a.serviceEndpoint};
_.t.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.K().resolve(_.zU).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Ov.prototype.dataChanged=Ov.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ov.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ov.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.z("design:type",Boolean)],Ov.prototype,"hidden",void 0);
_.f([_.b(),_.z("design:type",Object)],Ov.prototype,"badges",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ov.prototype,"dataChanged",null);Ov=_.f([_.C({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Ov);
_.D(Ov,"ytd-movie-offer-module-renderer",function(){if(J50!==void 0)return J50;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return J50=a},{mode:1});var RJE;var Sh=function(){return _.u.apply(this,arguments)||this};
_.c(Sh,_.u);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Sh.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Sh.prototype,"data",void 0);Sh=_.f([_.C({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Sh);
_.D(Sh,"ytd-media-masthead-renderer",function(){if(RJE!==void 0)return RJE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return RJE=a},{mode:1});var qei;_.Ct(_.zoV,"course-metadata-view-model",{props:{data:_.ux,isOverlay:_.ux}});var Yn=function(){var a=_.u.apply(this,arguments)||this;a.isMetadataVisible=!1;a.modernPanels=_.r("kevlar_watch_modern_panels");a.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return a};
_.c(Yn,_.u);_.t=Yn.prototype;
_.t.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"}}}}};
_.t.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.t.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.t.expanderChanged=function(){var a;if((a=this.data)==null?0:a.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.t.isExpandButtonToggled=function(){var a,W;return(W=_.A((a=this.data)==null?void 0:a.expandMetadataButton,_.iK))==null?void 0:W.isToggled};
_.t.onVisibilityButtonClick=function(){var a;if((a=this.data)==null?0:a.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.t.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Yn.prototype.expanderChanged=Yn.prototype.expanderChanged;Yn.prototype.dataChanged=Yn.prototype.dataChanged;Yn.prototype.descriptionChanged=Yn.prototype.descriptionChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R([_.d4.YtActionHandlerBehavior]),_.z("design:type",Object)],Yn.prototype,"actionHandlerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Yn.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Yn.prototype,"isMetadataVisible",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Yn.prototype,"modernPanels",void 0);_.f([_.w$("#expander"),_.z("design:type",Object)],Yn.prototype,"expander",void 0);_.f([_.a5("data.description"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yn.prototype,"descriptionChanged",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yn.prototype,"dataChanged",null);_.f([_.a5("isMetadataVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yn.prototype,"expanderChanged",null);Yn=_.f([_.C({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Yn);
_.D(Yn,"ytd-tvfilm-offer-module-renderer",function(){if(qei!==void 0)return qei;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return qei=a},{mode:2});var Qp0;var TL=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return a};
_.c(TL,_.u);TL.prototype.dataChanged=function(){this.hostElement.hidden=!1};
TL.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
TL.prototype.onThumbnailTap=function(a){this.data&&this.data.serviceEndpoint&&(_.K().resolve(_.zU).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),a.stopPropagation())};
TL.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
TL.prototype.dataChanged=TL.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],TL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],TL.prototype,"rendererBehaviors",void 0);_.f([_.R([_.d4.YtActionHandlerBehavior]),_.z("design:type",Object)],TL.prototype,"actionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],TL.prototype,"data",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TL.prototype,"dataChanged",null);TL=_.f([_.C({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],TL);
_.D(TL,"ytd-unlimited-offer-module-renderer",function(){if(Qp0!==void 0)return Qp0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Qp0=a},{mode:1});var xg2;var bLn;var Kn=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return a};
_.c(Kn,_.u);Kn.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Kn.prototype.handleRelatedChipCommand=function(a){a=_.A(a,nua);var W=a.contents;W?_.W_(this.hostElement,"yt-item-section-replace-action",[W,a.targetSectionIdentifier]):_.W_(this.hostElement,"yt-item-section-continuation-action",[a.continuationData,a.targetSectionIdentifier])};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Kn.prototype,"actionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Kn.prototype,"data",void 0);Kn=_.f([_.TD({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Kn);
_.D(Kn,"yt-related-chip-cloud-renderer",function(){if(bLn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;xg2===void 0&&(xg2=document.createElement("template"));var Z=xg2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);bLn=a}a=bLn;return a},{mode:2});var pn=function(){var a=_.u.apply(this,arguments)||this;a.isTwoColumns=!0;a.hideOfferModules=!1;a.watchFeedBigThumbs=_.r("kevlar_watch_feed_big_thumbs");a.watchNextGridHideChips=_.r("kevlar_watch_grid_hide_chips");a.eligibleToSwitchToGrid=_.r("web_watch_eligible_to_switch_to_grid");a.disableShortsShelfHeightOverride=_.r("web_shorts_wn_shelf_ratio_tuning");a.isWatchNextGrid=!1;a.reuseComponents=!_.r("kevlar_watch_grid");a.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return a};
_.c(pn,_.u);_.t=pn.prototype;
_.t.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.r("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}}};
_.t.getItemsPath=function(){return"data.results"};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.t.created=function(){this.ytLazyListBehavior.initialCount=1};
_.t.ready=function(){_.Hu(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%"})};
_.t.resultsChanged=function(){if(this.data&&this.data.results){for(var a=this.data.results,W=null,w=null,Z=0;Z<a.length;Z++)a[Z].relatedChipCloudRenderer?W=a[Z].relatedChipCloudRenderer:a[Z].itemSectionRenderer&&(w=a[Z].itemSectionRenderer);if(W&&w)for(this.set("data.continuations",[]),a=_.A(W.content,_.huR).chips,W=0;W<a.length;W++)if(Z=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",a[W]),Z.loadCached||!Z.contents){Z.contents=w.contents;break}}};
_.t.dataChanged=function(){var a=this,W;if((W=this.data)!=null&&W.results&&this.hasAllowedInstreamAd(this.playerData)){if(W=this.data.results.filter(function(X){return!!X.promotedSparklesWebRenderer})){for(var w=0;w<W.length;w++){var Z=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",W[w]);
if(Z)for(var N=0;N<Z.length;N++)Z[N]&&Z[N].baseUrl&&_.qE(Z[N].baseUrl)}this.set("data.results",this.data.results.filter(function(X){return!X.promotedSparklesWebRenderer}))}if(W=this.data.results.filter(function(X){return!!a.getSparklesAd(X)})){W=_.l(W);
for(N=W.next();!N.done;N=W.next())if(Z=w=void 0,N=(w=this.getSparklesAd(N.value))==null?void 0:(Z=w.errorCommand)==null?void 0:Z.loggingUrls)for(w=_.l(N),Z=w.next();!Z.done;Z=w.next())(Z=Z.value)&&Z.baseUrl&&_.qE(Z.baseUrl);var B,I;this.set("data.results",(B=this.data)==null?void 0:(I=B.results)==null?void 0:I.filter(function(X){return!X.adSlotRenderer}))}}};
_.t.getSparklesAd=function(a){var W,w;a=_.A((W=a.adSlotRenderer)==null?void 0:(w=W.fulfillmentContent)==null?void 0:w.fulfilledLayout,_.fLH);return _.A(a==null?void 0:a.renderingContent,eJX)};
_.t.hasAllowedInstreamAd=function(a){a=this.get("adPlacements",a)||[];for(var W=0;W<a.length;W++){var w=this.get("adPlacementRenderer.config.adPlacementConfig",a[W]);if(w&&w.suppressDisplayAd)return!0}return!1};
_.t.computeHideUnlimitedOfferModule=function(a,W){return a&&a.offerModule&&W&&a.offerModule.unlimitedOfferModuleRenderer&&a.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(W)?!0:!1};
_.t.hideUnlimitedOfferModuleChanged=function(){var a=_.M(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");a&&(a.hidden=this.hideUnlimitedOfferModule)};
_.t.updateLockupContainerTypes=function(a){if(this.eligibleToSwitchToGrid){var W;(W=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||W.forEach(function(w){w.containerType=a})}};
_.t.computeHideTvfilmOfferModule=function(a,W){var w,Z;return!!((a==null?0:(w=a.offerModule)==null?0:(Z=w.tvfilmOfferModuleRenderer)==null?0:Z.clientShouldSuppressIfCompanionAdDisplayed)&&W&&this.hasCompanionAds(W))};
_.t.hideTvfilmOfferModuleChanged=function(){var a=_.M(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");a&&(a.hidden=this.hideTvfilmOfferModule)};
_.t.hasCompanionAds=function(a){a=this.get("adPlacements",a)||[];for(var W=0;W<a.length;W++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",a[W]))return!0;var w=void 0,Z=void 0,N=void 0;if(!_.r("web_watch_top_banner_companion_check_killswitch")&&((w=a[W])==null?0:(Z=w.adPlacementRenderer)==null?0:(N=Z.renderer)==null?0:N.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.t.hasSuppressedResults=function(a){return a==null?!0:a.filter(function(W){return!W.continuationItemRenderer&&!W.compactPromotedVideoRenderer&&!W.promotedSparklesWebRenderer}).length===0};
_.t.computeShowButton=function(a,W){return this.isWatchNextGrid?a:a||this.hasSuppressedResults(W)};
_.t.showButtonChanged=function(){if(this.isWatchNextGrid){var a=_.M(this.hostElement).querySelector("ytd-rich-grid-renderer");a&&this.showButton!==null&&(a.continuationShowButton=this.showButton)}else{a=_.M(this.hostElement).querySelector("yt-next-continuation");var W=_.M(this.hostElement).querySelector("ytd-continuation-item-renderer"),w=_.M(this.hostElement).querySelector("ytd-item-section-renderer");a&&(a.showButton=this.showButton);W&&(W.showButton=this.showButton);w&&(w.continuationShowButton=
this.showButton)}};
_.t.continuationTap=function(a){var W;if(((W=this.data)==null?void 0:W.continuations)!=null&&a.target.tagName==="TP-YT-PAPER-BUTTON")for(a=this.data.continuations,W=0;W<a.length;W++)a[W].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(a[W].nextContinuationData||{})};
_.t.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("shown-items-changed",this.shownItems))};
_.dU.Object.defineProperties(pn.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.shownItems)==null||!a.some(function(W){return!!W.lockupViewModel}))}}});
pn.prototype.shownItemsChangedForBinding=pn.prototype.shownItemsChangedForBinding;pn.prototype.showButtonChanged=pn.prototype.showButtonChanged;pn.prototype.hideTvfilmOfferModuleChanged=pn.prototype.hideTvfilmOfferModuleChanged;pn.prototype.updateLockupContainerTypes=pn.prototype.updateLockupContainerTypes;pn.prototype.hideUnlimitedOfferModuleChanged=pn.prototype.hideUnlimitedOfferModuleChanged;pn.prototype.dataChanged=pn.prototype.dataChanged;pn.prototype.resultsChanged=pn.prototype.resultsChanged;
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.Vs.YtLazyListBehavior),_.z("design:type",Object)],pn.prototype,"ytLazyListBehavior",void 0);_.f([_.R(_.Lf.YtNextContinuationBehavior),_.z("design:type",Object)],pn.prototype,"ytNextContinuationBehavior",void 0);
_.f([_.R(_.j8),_.z("design:type",Object)],pn.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],pn.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],pn.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],pn.prototype,"playerData",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],pn.prototype,"autoFill",void 0);_.f([_.b({value:60}),_.z("design:type",Number)],pn.prototype,"targetFramerate",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pn.prototype,"isTwoColumns",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pn.prototype,"hideOfferModules",void 0);_.f([_.b(),_.z("design:type",Object)],pn.prototype,"shownItems",void 0);_.f([_.b({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.z("design:type",Boolean)],pn.prototype,"hideUnlimitedOfferModule",void 0);
_.f([_.b({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.z("design:type",Boolean)],pn.prototype,"hideTvfilmOfferModule",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pn.prototype,"watchFeedBigThumbs",void 0);_.f([_.b(),_.z("design:type",Object)],pn.prototype,"watchNextGridHideChips",void 0);_.f([_.b(),_.z("design:type",Object)],pn.prototype,"eligibleToSwitchToGrid",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pn.prototype,"disableShortsShelfHeightOverride",void 0);_.f([_.b({selector:_.RL}),_.z("design:type",Object)],pn.prototype,"isGridViewEnabled",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],pn.prototype,"showMoreButton",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pn.prototype,"isWatchNextGrid",void 0);
_.f([_.b({computed:"computeShowButton(showMoreButton, data.results)"}),_.z("design:type",Boolean)],pn.prototype,"showButton",void 0);_.f([_.lO("data.results.*"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pn.prototype,"resultsChanged",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pn.prototype,"dataChanged",null);
_.f([_.a5("hideUnlimitedOfferModule"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pn.prototype,"hideUnlimitedOfferModuleChanged",null);_.f([_.Q("isGridViewEnabled","containsLockupViewModel","data"),_.b({reflectToAttribute:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],pn.prototype,"lockupContainerType",null);
_.f([_.a5("lockupContainerType","data"),_.z("design:type",Function),_.z("design:paramtypes",[Number]),_.z("design:returntype")],pn.prototype,"updateLockupContainerTypes",null);_.f([_.a5("hideTvfilmOfferModule"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pn.prototype,"hideTvfilmOfferModuleChanged",null);_.f([_.a5("showButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pn.prototype,"showButtonChanged",null);
_.f([_.a5("shownItems"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pn.prototype,"shownItemsChangedForBinding",null);_.f([_.Q("shownItems"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],pn.prototype,"containsLockupViewModel",null);
_.D(pn,"ytd-watch-next-secondary-results-renderer",function(){if(jpz===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);jpz=a}a=jpz;return a},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.$VD={};
_.$VD.YtdWatchBehavior=[_.E.YtRendererBehavior,_.x4.YtPlayerListenerBehavior,_.fN.YtRendererstamperBehavior,_.d4.YtActionHandlerBehavior,_.rG.YtPageBehavior,_.wn.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},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},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 _.JS("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.r("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.r("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 _.JS("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},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.r("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)"},
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, fullscreen, theater)"},richItemMinWidth:{type:Number,value:function(){return _.yv("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.yv("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!_.r("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.r("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 _.r("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.r("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.r("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.r("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("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"}}},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:_.nZ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.nZ(["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"||_.r("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(){_.r("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;_.r("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.r("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.f_9(function(){return _.DK(a)},this.hostElement);
this.pageDisposeJobs.push(function(){a.youThereManager_.reset()});
_.r("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){a.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.$S;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;_.r("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.r("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));_.r("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.yV(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){_.r("kevlar_watch_flexy_theater_manager")&&(this.theater=a,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(a){!_.r("kevlar_watch_while_v2")&&!_.r("web_watch_pip")||a||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(a){this.active!==void 0&&(this.fullscreen=a,_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(a){this.active!==void 0&&(_.E$(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.r("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 W=this;if(a)if(this.data===a){this.onPageLoadWithSameData_();var w;(w=this.watchController)==null||w.setWatchNextResponse(this.data)}else this.data=a;this.playlist&&_.pD({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Ak("nw");this.loading=!1;_.TP(_.hF,function(){W.initDclkstatus_();var Z,N=((Z=W.player)==null?void 0:Z.getVideoData().cpn)||"";_.jG2(function(B,I){_.wIa(B,I,N)})})},
onPageLoadWithSameData_:function(){_.r("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(_.r("kevlar_watch_frame0_loading_state")){var W,w,Z;a=(W=this.loadingData)==null?void 0:(w=W.endpoint)==null?void 0:(Z=w.watchEndpoint)==null?void 0:Z.videoId;var N;a&&(N="https://i.ytimg.com/vi/"+a+"/frame0.jpg");_.M(this.hostElement).querySelector("#player").style.backgroundImage=N?"url("+N+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var a=_.M(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 W,w;(w=(W=this.watchMetadata).updateSentimentBarWidth)==
null||w.call(W);var Z,N;(N=(Z=this.watchMetadata).resize)==null||N.call(Z)}_.r("kevlar_watch_frame0_loading_state")&&(_.M(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(a){var W=_.M(this.hostElement).querySelector(a);W?_.HG(W,!1):_.jJ(new _.Uw("Overscroll monitor not found for component: ",a))},
removeSplitScrollMouseTrap:function(a){var W=_.M(this.hostElement).querySelector(a);W?_.y3(W):_.jJ(new _.Uw("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 W=this;a?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.hF.addLowPriorityJob(function(){W.onWindowResized_(_.vu(!0))})},
updateTheaterModeState_:function(a){if(!_.r("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&&_.DgE()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var a=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.r("external_fullscreen")&&this.fullscreen&&(a=!0);a=a?_.M(this.hostElement).querySelector("#player-full-bleed-container"):_.M(this.hostElement).querySelector("#player-container-inner");var W=this.getPlayerContainer(),w=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip");W.parentElement!==a&&(w&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.DK(this).appendTo(a,
W),a.appendChild(_.M(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var a=this;return _.P(function(W){if(W.nextAddress==1)return _.g(W,_.K().resolve(_.bV).deactivate(),2);a.updatePlayerLocation();_.Xd(W)})},
updateCinematicsLocation:function(){var a=this.getElement("CINEMATICS");if(a){var W=this.getCinematicsLocationContainer();a.parentElement!==W&&W.appendChild(a);var w;(w=this.watchController)==null||w.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.M(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.M(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(a,W){var w=document.documentElement.hasAttribute("dark"),Z=w&&_.r("web_cinematic_theater_mode"),N=w&&_.r("web_cinematic_fullscreen");w=!w&&this.cinematicLightTheme;return a&&Z||W&&N||(W||a)&&w},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var a=this,W;(W=this.watchController)==null||W.setWatchNextResponse(this.data);_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.K().resolve(_.LB).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,_.r("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.hF.addLowPriorityJob(function(){_.W_(a.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.r("web_watch_start_chat_in_theater_mode")){var w,Z,N;if((w=this.data)==null?0:(Z=w.contents)==null?0:(N=Z.twoColumnWatchNextResults)==null?0:N.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var B,I;((B=this.data)==null?0:(I=B.contents)==null?0:I.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(a){var W;(W=this.watchController)==null||W.setPlayerResponse(this.playerData);a&&a.playabilityStatus&&(W=this.isVideoPlayable_(a.playabilityStatus,this.getPlayerOverlays_(this.data)),a=this.isLiveStreamOffline_(a.playabilityStatus),W&&!a||_.DW(this,function(){_.Ak("pbu")}));
this.setPlayerAds_();_.W_(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(a,W){if((_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"))&&this.playerData&&W)return this.playerData.videoDetails},
watchPageActiveChanged_:function(a){_.Cx().dispatch(_.onf(this.active));a?this.activate_():this.deactivate_()},
attached:function(){var a=this;this.watchController=new _.xN(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);_.r("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var W=_.DK(this);_.r("kevlar_disable_prepare_player")||
W.preparePlayer();_.r("kevlar_watch_flexy_playlist_manager")||_.K().resolve(_.LB).setPlayer(W);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();W={"--ytd-watch-flexy-scrollbar-width":_.iZ()+"px"};this.is==="ytd-watch-grid"&&(W["--ytd-watch-flexy-sidebar-width"]=_.qN+"px",W["--ytd-watch-grid-horizontal-page-margins"]=_.FB+"px",W["--ytd-watch-grid-columns-top-margins"]=_.iQd+"px",W["--ytd-watch-grid-min-player-height-medium"]="360px");!_.yv("kv_pl_mx_sz_ks")&&
_.yv("kevlar_watch_max_player_width")&&(W["--ytd-watch-flexy-max-player-width-wide-screen"]=_.nCI+"px");_.yv("kevlar_watch_flexy_metadata_height")&&(W["--ytd-watch-flexy-space-below-player"]=_.j9E+"px");this.safeUpdateStyles(W);_.r("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.PU(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return a.onPlayerTouchPanDown_()}}));
_.r("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.M(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var a=_.iZ(),W=_.MN+a,w=W;this.fixedPanels&&(W+=_.qN);var Z=657+a;a=1327+a;_.M(this.hostElement).querySelector("#two-column-query").query="(min-width: "+W+"px)";_.M(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Z+"px), (min-height: 630px) and (min-width: ")+(W+"px) and (max-width: ")+(a+"px)");_.M(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(a+"px)");_.M(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+w+"px)"},
calculateCurrentPlayerSize_:function(){var a=_.M(this.hostElement).querySelector("#miniplayer-bar").firstChild,W=this.squeezeback&&!_.r("web_watch_squeezeback_player_size_killswitch");return a&&a.active||this.theater||_.r("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||W||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.Bh(NaN,NaN):_.CW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.CW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.d3(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var a=this;this.onWindowResized_(_.vu());_.r("browse_skeleton_removal_on_watch_killswitch")||_.JS("IS_SHELL_LOAD")&&_.Qfa();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var W=_.DK(this);W.addEventListener("yt-player-updated",_.yV(this,this.onPlayerUpdated_));W.getPlayerPromise().then(function(w){a.playerApiReady_(w)});
_.r("kevlar_watch_flexy_playlist_manager")||(W=_.K().resolve(_.LB),_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&W.addEventListener("yt-navigate",_.yV(this,this.onYtNavigate_)),W.setPlaylistComponent(_.M(this.hostElement).querySelector("#playlist")),W.addEventListener("yt-playlist-data-updated",_.yV(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.hF.addLowPriorityJob(function(){_.E$(a.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.DK(this).removeEventListener("yt-player-updated",_.yV(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.r("kevlar_watch_flexy_playlist_manager")){var a=_.K().resolve(_.LB);_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&a.removeEventListener("yt-navigate",_.yV(this,this.onYtNavigate_));
a.cancelVideoSkip();a.removeEventListener("yt-playlist-data-updated",_.yV(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.E$(this.hostElement,"yt-autonav-pause-player",!1);a=_.V3();_.r("kevlar_exit_fullscreen_leaving_watch")&&a&&_.zq(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,W){W.hasComments?W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):W.locationRetrieved("/related_ajax",void 0);a.stopPropagation()},
onSubscriptionChanged_:function(a,W){this.player&&(W?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.pV("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.M(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.M(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_();_.r("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.r("kevlar_unified_player")||_.r("kevlar_player_new_bootstrap_adoption"))&&_.y0()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(a,W){W=W===void 0?!0:W;_.V3()&&_.r("external_fullscreen")&&_.zq(document.documentElement);this.theaterRequested_=a;W&&_.vi("wide",a?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.aV(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.E$(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){_.LH(a,typeof this.player),this.player&&_.LH(a,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var a;((a=this.player)==null?0:a.isFullscreen())?this.player.toggleFullscreen():_.aV(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(a,W){return this.loading?W:!!Object.keys(a).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(a){if(a){a=_.l(a);for(var W=a.next();!W.done;W=a.next())W=W.value,W.youThereRenderer&&_.Vh0(this.youThereManager_,W.youThereRenderer)}},
setPlaylistData_:function(a){return a||{}},
userEngagementConfigDataChanged_:function(a){if(a)if(a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var W=this.youThereManager_;_.HI()<a.lowEngagementThresholdMs||_.End(W,!0)}else a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.aV(this.hostElement,"yt-autonav-pause-user-engagement",[a])},
isPlayerUnavailable_:function(a,W,w){return!!a&&!this.isVideoPlayable_(a,w)&&!W},
getPlayerOverlays_:function(a){return(a==null?void 0:a.playerOverlays)||null},
isVideoPlayable_:function(a,W){if(!a)return!1;var w=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",Z=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",a)||this.get("errorScreen.ypcTrailerRenderer",a);a=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",a);var N;W=W==null?void 0:(N=W.playerOverlayRenderer)==null?void 0:N.gatedActionsOverlayRenderer;return!!w||!!Z||!!a||!!W},
hasWatchNextResponseErrorRenderer:function(a){var W=this.getPageContents(a),w,Z,N,B,I;return!(a==null?0:(w=a.contents)==null?0:(Z=w.twoColumnWatchNextResults)==null?0:Z.secondaryResults)&&!!((N=W[0])==null?0:(B=N.itemSectionRenderer)==null?0:(I=B.contents[0])==null?0:I.backgroundPromoRenderer)},
isLiveStreamOffline_:function(a){return a?a.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(a,W,w){var Z=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W),N=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];N=_.r("web_no_skip_video_on_verification_checks")?(a==null?void 0:a.status)&&N.includes(a.status):a&&a.status==="AGE_CHECK_REQUIRED";var B=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",a);B==void 0&&(B=!0);!w||this.isVideoPlayable_(a,this.getPlayerOverlays_(W))||
Z||N||!B||_.K().resolve(_.LB).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.QG2()},
onPlayerFeedbackStartRequest_:function(a){_.aV(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:a}])},
onPlayerFeedbackArticleRequest_:function(a){_.aV(this.hostElement,"yt-help-dialog-requested",[a])},
onPlayerYpcContentRequest_:function(){var a,W,w,Z,N,B,I,X,v=((a=this.data)==null?NaN:(W=a.contents)==null?NaN:(w=W.twoColumnWatchNextResults)==null?NaN:(Z=w.secondaryResults)==null?NaN:(N=Z.secondaryResults)==null?NaN:(B=N.offerModule)==null?NaN:(I=B.tvfilmOfferModuleRenderer)==null?NaN:(X=I.actionButtons)==null?NaN:X.length)-1;a=[".offerButton.buttonRenderer.",".actionButtons."+(v>=0?v:0)+".buttonRenderer."];W=_.l(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(w=W.next();!w.done;w=W.next())for(w=w.value,Z=_.l(a),N=Z.next();!N.done;N=Z.next())if(N="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+w+N.value,N=this.get(N+"navigationEndpoint",this.data)||this.get(N+"serviceEndpoint",this.data)||this.get(N+"command",this.data)){_.wJ(N,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(a){_.E$(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:_.E$(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(a)},
setPlayerState:function(a){_.Cx().dispatch(_.wRH(a))},
onPlayerSubscribe_:function(a){_.aV(this.hostElement,"yt-player-subscribe",[a])},
onPlayerUnsubscribe_:function(a){_.aV(this.hostElement,"yt-player-unsubscribe",[a])},
onPlayerAdYtShowToast_:function(a){_.aV(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!_.r("web_watch_move_summary_to_sd")&&!!a},
computeWatchMetadataRefresh:function(){return _.r("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.r("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var a,W,w,Z;this.watchNextSecondaryResults=(a=this.data)==null?void 0:(W=a.contents)==null?void 0:(w=W.twoColumnWatchNextResults)==null?void 0:(Z=w.secondaryResults)==null?void 0:Z.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.r("swatcheroo_pbs_load_grid")&&!_.r("swatcheroo_provide_all_data_on_scheduled_job")){_.hF.cancelJob(this.setRichGridJobId_);var a,W,w,Z,N,B,I;this.setRichGridRendererData((a=this.data)==null?void 0:(W=a.contents)==null?void 0:(w=W.twoColumnWatchNextResults)==null?void 0:(Z=w.secondaryResults)==null?void 0:(N=Z.secondaryResults)==null?void 0:(B=N.results)==null?void 0:(I=B[0])==null?
void 0:I.richGridRenderer)}},
setRichGridRendererData:function(a){this.richGridRendererData=a},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var a,W=(a=this.data)==null?void 0:a.engagementPanels;if(W==null?0:W.length){a=null;W=_.l(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;var Z=void 0;if(((Z=w.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)==="engagement-panel-structured-description"){a=w;break}}var N,B,I;a=(N=a)==null?void 0:(B=N.engagementPanelSectionListRenderer)==null?void 0:(I=B.content)==null?void 0:I.structuredDescriptionContentRenderer;if(a==null?0:a.items){N=
[];B=_.l(a.items);for(I=B.next();!I.done;I=B.next()){I=I.value;if(!_.r("sd_horizontal_list_show_nav_killswitch")){var X=Z=w=W=a=void 0,v=void 0,U=(a=I.horizontalCardListRenderer)==null?void 0:(W=a.header)==null?void 0:(w=W.richListHeaderRenderer)==null?void 0:(Z=w.navigationButton)==null?void 0:(X=Z.buttonRenderer)==null?void 0:(v=X.command)==null?void 0:v.commandExecutorCommand;U&&U.commands&&(U.commands=U.commands.filter(function(O){return!_.A(O,_.fNd)}))}I.expandableVideoDescriptionBodyRenderer||
I.videoDescriptionHeaderRenderer||N.push(I)}return{items:N}}}},
constructWarning_:function(a){return{text:_.b8(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;_.E$(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var W=this.getScrollTop()>0;this.gestures_&&(W?this.gestures_.detach():this.gestures_.attach());W!==this.showFullerscreenEdu_&&_.r("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=W,_.DK(this).getPlayerPromise().then(function(w){w.updateFullerscreenEduButtonVisibility(a.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.E$(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var a=this;this.commentsReady=!1;_.hF.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.TP(_.hF,function(){a.setComments_()},1E3)},
setComments_:function(){if(!_.r("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Ak("cmi");_.hF.cancelJob(this.setCommentsJobId_);var a=this.getPageContents(this.data);if(a&&a.length){a=_.l(a);for(var W=a.next();!W.done;W=a.next())if(W=W.value,this.get("itemSectionRenderer.sectionIdentifier",W)==="comment-item-section"){this.comments=W.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.E$(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Ak("cmc")},
doRemoveComments_:function(){this.comments={};_.r("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.hF.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.hF.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(a,W){var w=_.A(W.endpoint,_.u6);w&&(!(W=this.get("data.currentVideoEndpoint.watchEndpoint"))||w.videoId!==W.videoId||w.playlistId&&w.playlistId!==W.playlistId||w.index!==void 0&&w.index!==W.index||typeof w.startTimeSeconds!=="number"||(a.stopPropagation(),this.setScrollTop(0),_.DK(this).getPlayerPromise().then(function(Z){var N=w.startTimeSeconds;Z.seekTo(N);Z.wakeUpControls();N<Z.getDuration()&&Z.playVideo()})))},
updatePlayerStartTime_:function(){var a=_.pr0();"t"in a&&(a=_.qvE(a.t),this.player.seekTo(a,!0))},
updateTitleFromWatchNext:function(a){a=this.getPageContents(a);var W,w;(a=_.sd(a==null?void 0:(W=a[0])==null?void 0:(w=W.videoPrimaryInfoRenderer)==null?void 0:w.title))&&_.E$(this.hostElement,"yt-update-title",a)},
updateTitle_:function(a){a=this.get("videoDetails.title",a)||"";_.E$(this.hostElement,"yt-update-title",a)},
syncWithRemoteVideo_:function(a,W,w){if(this.active&&this.player){var Z=this.player.getVideoData();if(Z.video_id===w&&(w=Z.list,_.r("polymer_enable_mdx_queue")&&w&&w.startsWith("RQ")&&(w=void 0),Z.video_id!==a||w!=W)){var N;_.r("kevlar_player_watch_endpoint_navigation")?N=_.aOD(_.LCI(a,W)):N=this.buildWatchEndpoint_(a,W);_.E$(this.hostElement,"yt-navigate",{endpoint:N,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(a,W,w){return _.Vw(a,W,w)},
initDclkstatus_:function(){_.MhE()},
attachWatchPageSkeleton_:function(){var a=document.querySelector("#watch-page-skeleton");if(a){var W=a.querySelector("#primary-info"),w=a.querySelector("#secondary-info"),Z=a.querySelector("#related");W&&_.M(this.hostElement).querySelector("#info-skeleton").appendChild(W);w&&_.M(this.hostElement).querySelector("#meta-skeleton").appendChild(w);Z&&(_.M(this.hostElement).querySelector("#related-skeleton").appendChild(Z),this.watchNextSkeletonEl_=Z);_.Xh(a)}},
handlePlayerUpdated_:function(){_.DK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(a,W){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof W!=="undefined"){var w=this.watchNextSkeletonEl_.children,Z=a&&a.indexSplices.length?a.indexSplices[0].index:0;a=Math.min(this.watchNextShownItems.length,w.length);W||(Z=0,a=w.length);for(W=Z;W<a;W++)w[W].classList.add("hidden")}},
onPlayerFullscreenChange_:function(a){_.r("external_fullscreen")||_.aV(this.hostElement,"yt-player-fullscreen",[a.fullscreen])},
onFullscreenChange_:function(a){this.fullscreen=a;this.gestures_&&this.gestures_.update(this.fullscreen);var W=_.DK(this);W.getPlayerPromise().then(function(w){w.setFauxFullscreen(!!_.V3())});
this.updateFullBleedElementLocations();a&&(W.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(a,W){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!W},
computeIsDonationShelfCollapsed_:function(a){return a},
computeShouldShowMerchShelf:function(a,W){return W&&!!a},
computeResponseHasComments:function(a){var W,w,Z,N,B;return!!(a==null?0:(W=a.contents)==null?0:(w=W.twoColumnWatchNextResults)==null?0:(Z=w.results)==null?0:(N=Z.results)==null?0:(B=N.contents)==null?0:B.some(function(I){var X;return(I==null?void 0:(X=I.itemSectionRenderer)==null?void 0:X.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(a,W,w,Z){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&Z?!1:!!a&&!!Object.keys(a).length&&!W},
identity:_.ue,onWindowResized_:function(a){this.windowSize_=a;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(a){var W=this;a&&a.type!=="dataloaded"&&a.type!=="dataupdated"||_.DK(this).getPlayerPromise().then(function(w){var Z=w.getPlayerState();Z!==5&&Z!==0&&(w=1/w.getVideoAspectRatio(),W.videoHeightToWidthRatio_!==w&&(W.videoHeightToWidthRatio_=w))})},
schedulePlayerSizeUpdate_:function(a){var W=this,w=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"),Z=function(){if(W.watchMetadata){var N,B;(B=(N=W.watchMetadata).resize)==null||B.call(N)}_.DK(W).getPlayerPromise().then(function(I){if(_.r("kevlar_set_internal_player_size")){if(!w||!W.isMiniplayerActive()){var X=W.calculateCurrentPlayerSize_();I.setInternalSize(X.width,X.height)}}else I.setSize(NaN,NaN);_.r("kevlar_watch_while")&&W.updateWatchWhileScrollThreshold_()})};
a?Z():_.rP(_.hF,Z)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(a){this.set("data.survey",a.detail)},
onYtShowSurveyCommand_:function(a){this.set("data.survey",_.A(a,_.DNa).survey)},
onDownloadedVideoDeleted:function(a){var W=this,w,Z;return _.P(function(N){if(N.nextAddress==1){if(!W.active||(w=W.playerData)==null||!w.offlineState||W.videoId!==a)return N.return();(Z=W.player)==null||Z.stopVideo();_.vE().navigatingAwayFromWatchDeletedVideo=!0;_.wJ(_.xgv,W.hostElement);return _.g(N,_.vE().navigationFinishPromise,2)}_.vE().navigatingAwayFromWatchDeletedVideo=!1;_.Xd(N)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var a;this.theater?a=_.M9(.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=_.M(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&a){var W=this.windowSize_.height>=624,w=this.active?this.getScrollTop():0;!a.active&&W&&w>=this.watchWhileScrollThreshold_?(a.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):a.active&&(!W||w<this.watchWhileScrollThreshold_&&!_.V3())&&(a.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var a=_.M(this.hostElement).querySelector("#secondary-inner");if(a){var W=_.M(this.hostElement).querySelector("#below"),w=_.M(this.hostElement).querySelector("#secondary"),Z=_.M(this.hostElement).querySelector("#comments");Z&&w&&W&&(this.defaultTwoColumnLayout?(a.appendChild(Z),w.appendChild(a)):(W.appendChild(Z),_.J_(W,a)))}}},
isTwoColumnsChanged_:function(a,W){if(a!==!0||W!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(a=_.M(this.hostElement).querySelector("#secondary-inner"))){W=_.M(this.hostElement).querySelector("#below");var w=_.M(this.hostElement).querySelector("#secondary"),Z=_.M(this.hostElement).querySelector("#comments");Z&&w&&W&&(this.isTwoColumns_?(a.appendChild(Z),w.appendChild(a)):(W.appendChild(Z),
_.J_(W,a)))}}else{a=!_.r("live_chat_over_engagement_panels");W=_.M(this.hostElement).querySelector("#chat-container");w=_.M(this.hostElement).querySelector("#panels");var N=_.M(this.hostElement).querySelector("#alerts");Z=_.M(this.hostElement).querySelector("#playlist");var B=_.M(this.hostElement).querySelector("#related"),I=_.M(this.hostElement).querySelector("#donation-shelf"),X=_.M(this.hostElement).querySelector("#comments");this.isTwoColumns_?(N=_.M(this.hostElement).querySelector("#secondary-inner"),
a&&N.appendChild(w),N.appendChild(Z),_.r("web_watch_theater_chat")||N.appendChild(W),a||N.appendChild(w),N.appendChild(I),N.appendChild(B)):(a&&_.j5(w,N),_.j5(Z,N),_.r("web_watch_theater_chat")||_.j5(W,N),a||_.j5(w,N),_.j5(I,N),X&&_.j5(B,X));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.r("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.r("web_watch_theater_chat")){var a=_.M(this.hostElement).querySelector("#chat-container"),W=this.theater&&!this.fullscreen||_.r("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&W?_.r("web_watch_theater_chat_beside_player")?(W=_.M(this.hostElement).querySelector("#panels-full-bleed-container"),(a==null?void 0:a.parentElement)!==W&&W.append(a),this.panelsBesidePlayer=!0):
_.r("web_watch_theater_fixed_chat")&&(W=_.M(this.hostElement).querySelector("#columns"),(a==null?void 0:a.parentElement)!==W&&W.append(a),this.fixedPanels=!0):(_.r("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.r("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),W=_.M(this.hostElement).querySelector("#playlist"),a&&W?_.LI(a,W):_.jJ(new _.Uw("Missing element when updating chat location",{"chatContainer defined":!!a,"playlist defined":!!W})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(a,W){return _.r("sw_metadata_vis_toggle_ks")?!0:!!a||!!W},
computeForceDarkPanelTheme:function(a){return _.r("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&a:!1},
safeUpdateStyles:function(a){try{_.Hu(this.hostElement,a)}catch(W){_.jJ(W)}},
videoHeightToWidthRatioChanged_:function(a,W){W&&(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&&_.DK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.DK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.a6I(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(a){var W=_.B7(a)||0;_.$H(a,W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var a=_.B7("yt-fullerscreen-edu-button-click-count")||0,W=_.B7("yt-fullerscreen-edu-button-shown-count")||0,w=_.yv("external_fullscreen_button_shown_threshold"),Z=a>=_.yv("external_fullscreen_button_click_threshold")||W>=w;_.DK(this).getPlayerPromise().then(function(N){N.updateFullerscreenEduButtonSubtleModeState(Z)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(a,W){return W},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.K().resolve(_.LB).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var a=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.hF.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.hF.addLowPriorityJob(function(){a.fullHeightPanelPositionUpdateJobId=0;var W=_.M(a.hostElement).querySelector("#secondary"),w=_.M(a.hostElement).querySelector("#fixed-secondary");W=W.getBoundingClientRect();var Z=W.width;a.swatcherooSqueezeback&&
(Z+=_.FB);if(a.swatcherooSqueezeback){var N=_.M(a.hostElement).querySelector("#squeezeback-constraining-container");N.style.width=Z+"px";N.style.flex="0 0 "+Z+"px"}w.style.width=Z+"px";w.style.left=W.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var a=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.hF.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.hF.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;var W;!a.isTwoColumns_||a.theater||a.fullscreen?W=460:W=a.calculateNormalPlayerSize_().height;var w=W+"px";_.r("live_chat_taller_height")&&!a.theater&&(w="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.r("live_chat_medium_height")&&!a.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.r("live_chat_scaled_height")&&!a.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 238px)");a.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":W+"px","--ytd-watch-flexy-chat-max-height":w,"--ytd-watch-flexy-structured-description-max-height":W+"px","--ytd-watch-flexy-comments-panel-max-height":W+"px","--ytd-comments-engagement-panel-content-height":W+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var a=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.r("web_watch_flexy_adjust_sidebar_width"))&&!_.r("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.hF.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.hF.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;if(a.isTwoColumns_){var W=_.RZX(a.windowSize_,a.calculateNormalPlayerSize_().width);W!==a.currentSidebarWidth&&(a.currentSidebarWidth=
W,a.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":W+"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_&&_.N1(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(a){var W=_.M(this.hostElement).querySelector("#engagement-panel-scrim");a?W.addEventListener("tap",_.yV(this,this.onEngagementPanelScrimClick_)):W.removeEventListener("tap",_.yV(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(a){if(this.hostElement.contains(a)&&!this.scrollToAnimation_.isAnimating()){var W=a.offsetTop-24;a=a.offsetTop+a.offsetHeight+24;var w=this.getPageScrollingElement(),Z=this.getScrollTop(),N=Z+w.clientHeight-56;if(W<Z+56)W-=56;else if(a>N)W=a-w.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtSignalActionScrollToComments:function(){var a=this.hostElement.querySelector("#comments");if(a&&!this.scrollToAnimation_.isAnimating()){a=a.offsetTop-56-24;if(_.r("kevlar_comment_teaser_scroll_to_midpoint")&&(a-=_.lf().height/3,a<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,a),500)}},
onYtEngagementPanelVisibleChanged:function(a,W,w){if(this.active&&this.trackEngagementPanelVisibility&&!_.CWz.includes(w)){if(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.W_(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.r("kevlar_single_panel_fullscreen")){var Z=_.K().resolve(_.SO);this.visiblePanelIdentifiers_.forEach(function(N){N!==w&&Z.hidePanel(N)})}this.visiblePanelIdentifiers_.add(w)}W!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&W!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(w);
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,W,w){return a||W||this.enableFullBleedSingleColumnDefaultPlayer&&!w},
computeDefaultLayout:function(a){return!a},
computeDefaultTwoColumnLayout:function(a,W){return!a&&W},
updatePanelsLocation:function(){if(_.r("web_watch_enable_fs_squeezeback_panels")){var a=_.M(this.hostElement).querySelector("#below"),W=_.M(this.hostElement).querySelector("#panels"),w=_.M(this.hostElement).querySelector("#panels-full-bleed-container"),Z=_.M(this.hostElement).querySelector("#secondary-inner");this.fullscreen||this.theater&&this.iMaxTheaterMode?w.appendChild(W):this.isTwoColumns_?_.J_(Z,W):a.appendChild(W)}},
swatcherooUpdatePanelsLocation:function(a,W,w,Z,N,B){if(this.is==="ytd-watch-grid"){W=a&&!W;this.swatcherooSplitScroll&&(W?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));w=_.M(this.hostElement).querySelector("#panels");var I=_.M(this.hostElement).querySelector("#playlist"),X=_.M(this.hostElement).querySelector("#fixed-secondary"),v=_.M(this.hostElement).querySelector("#fixed-below"),
U=_.M(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),O=_.M(this.hostElement).querySelector("#chat-container");B&&(a?X.appendChild(w):v.appendChild(w));N?a?X.appendChild(O):v.appendChild(O):_.LI(O,U);Z?a?X.appendChild(I):v.appendChild(I):_.LI(I,U);this.swatcherooSplitScroll&&(a=_.M(this.hostElement).querySelector("#secondary"),Z=_.M(this.hostElement).querySelector("#columns"),N=_.M(this.hostElement).querySelector("#fixed-columns-secondary"),W?N.appendChild(a):
Z.appendChild(a))}},
computeMetadataSkinnyMode:function(a,W,w){return this.is!=="ytd-watch-grid"?!1:a?w:W},
computeWatchWhilePanelsActive:function(a,W){return a||W},
computeNoBorderOnChat:function(a){return _.r("web_watch_theater_chat_no_border")&&a},
computeLiveChatPresentAndExpanded:function(a,W){return a&&!W},
computePanelExpanded:function(a,W,w){return a||W||w},
computeSqueezeback:function(a,W){if(_.r("web_watch_enable_fs_squeezeback_panels")){var w=this.iMaxTheaterMode&&this.theater;return a&&(W||w)}},
computeSwatcherooSqueezeback:function(a,W,w){return this.is!=="ytd-watch-grid"||_.r("ww_squeezeback_killswitch")?!1:a&&W&&w},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(a){_.DK(this).getPlayerPromise().then(function(W){var w;(w=W.changeMarkerVisibility)==null||w.call(W,_.A(a,_.GB).isVisible||!1,_.A(a,_.GB).entityKeys||[],_.A(a,_.GB).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(a){this.liveChatCollapsed=a.detail;_.Cx().dispatch(_.uBz(a.detail))},
onSetPlaylistCollapsed:function(a){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!a)},
provideRenderingData:function(a,W){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=W;break;case "PRIMARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=W);this.videoPrimaryInfoRendererValue=W==null?void 0:W.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=W);this.videoSecondaryInfoRendererValue=W==null?void 0:W.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
W;break;case "CLARIFICATION":this.clarifyBoxValue=W;break;case "LIVE_CHAT":this.conversationBar=W;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=W;break;case "PLAYLIST":this.externalPlaylistData_=W!=null?W:{};break;case "MERCH_SHELF":this.merchShelfValue=W==null?void 0:W.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=W;break;case "TICKET_SHELF":this.ticket=W;break;case "OFFER_MODULE":this.offerModule=W;break;case "LIMITED_STATE":this.limitedStateValue=
W;break;case "DONATION_SHELF":this.donation=W;break;case "ALERTS":this.alertsValue=W;break;case "COMMENTS":this.comments=W;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=W;break;case "ENGAGEMENT_PANELS":this.engagementPanels=W;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=W;break;case "RICH_GRID_RENDERER":this.richGridRendererData=W;break;case "EXPANDABLE_METADATA":this.expandableMetadata=W;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
W}},
toggleCinematicsActive:function(a){this.cinematicsActive=a},
isMiniplayerActive:function(){return _.K().resolve(_.bV).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var $EK;_.t6E=function(a){return a.shorts.isShortsActive};
_.BoK=function(a){return a.findIndex(function(W){return $EK.indexOf(W.tagName)>-1})>-1};
_.lVI=function(a){return _.E_({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:a}})};
_.IVI=function(){var a=_.K().resolve(_.EF);_.djE(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(a.isFullscreenEnabled()?_.zq(document.documentElement):_.K19(document.documentElement))};
$EK=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Vi=new Map;_.Vi.set(32,59972);_.Vi.set(27,50765);_.Vi.set(70,60102);_.Vi.set(76,60221);_.Vi.set(77,60222);_.Vi.set(74,60223);_.Vi.set(84,60224);_.Vi.set(38,61941);_.Vi.set(40,61942);_.Vi.set(73,62521);_.Vi.set(67,62522);_.Vi.set(80,63390);_.Vi.set(78,63397);_.Vi.set(75,59972);_.Vi.set(188,63385);_.Vi.set(190,63384);_.Vi.set(36,63387);
_.Vi.set(35,63386);_.Vi.set(37,63388);_.Vi.set(39,63389);_.Vi.set(79,63423);_.Vi.set(87,63424);_.Vi.set(107,63426);_.Vi.set(109,63425);_.Vi.set(65,63428);_.Vi.set(83,63430);_.Vi.set(68,63429);_.Vi.set(221,63431);_.Vi.set(219,63432);_.Vi.set(97,63439);_.Vi.set(98,63440);_.Vi.set(99,63441);_.Vi.set(100,63442);_.Vi.set(101,63443);_.Vi.set(102,63444);_.Vi.set(103,63445);_.Vi.set(104,63446);_.Vi.set(105,63447);_.zt=new Map;_.zt.set(80,63390);_.zt.set(78,63397);_.zt.set(188,63400);_.zt.set(190,63401);
_.zt.set(191,60765);_.zt.set(13,247917);_.H8=new Map;_.yi=new Map;
}catch(e){_._DumpException(e)}
try{
var B39,Pfd,Xhn,vgI;_.ZYE=function(a){return a.ui.guideIsVisibleButNotPersistent};
_.N3E=function(a){return a.ui.tabGesturesIsActive};
_.t3E=function(){var a=_.Et("service_worker_scope");try{return navigator.serviceWorker.getRegistration(a)}catch(W){return Promise.reject(W)}};
_.$q0=function(a){return!(!a||!a.pushManager)};
B39=function(){return _.t3E().then(_.$q0).catch(function(){return!1})};
_.lZz=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?B39():Promise.resolve(!1)};
_.IZ0=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Pfd=function(){var a,W,w;return _.P(function(Z){switch(Z.nextAddress){case 1:return _.g(Z,_.KB.getInstance(),2);case 2:a=Z.yieldResult;if(!a){W=void 0;Z.jumpTo(3);break}return _.g(Z,a.get("lmqf"),4);case 4:W=Z.yieldResult;case 3:switch((w=W)||(w="SD"),w){case "HD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Xhn=function(a){var W,w,Z;return _.P(function(N){if(N.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.r("disable_av1_setting")){var B=window.localStorage["yt-player-av1-pref"];B=B==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":B==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else B="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(W=a===B)return N.jumpTo(2);Z=w=a;return _.g(N,Pfd(),3)}N.nextAddress!=2&&(W=Z===N.yieldResult);return N.return(W)})};var gga;var ogd=_.pl.IronButtonState,k52=(0,_.Yi)(HTMLElement);
_.kQ({_template:function(){if(gga!==void 0)return gga;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;vgI===void 0&&(vgI=document.createElement("template"));var Z=vgI;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return gga=a},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[ogd,_.TN,_.rl,_.i3],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 W=(0,_.oU)(this);W.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:a});W.shadowRoot.appendChild(a);return k52.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=_.Tq(this.$.content).getDistributedNodes(),W=0,w=a.length;W<w;W++)if(a[W].nodeType===Node.ELEMENT_NODE)return a[W]},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 W="";a?W=a.label||a.getAttribute("label")||a.textContent.trim():W="";this.value=W;this._setSelectedItemLabel(W)},
_computeMenuVerticalOffset:function(a,W){return W?W:a?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var a=this.opened?"true":"false",W=this.contentElement;W&&W.setAttribute("aria-expanded",a)}});_.qW=new _.H("navigateAction");var Uqz=new _.H("formRenderer");var QU=function(){var a=_.Nt.apply(this,arguments)||this;a.showInput=!1;return a};
_.c(QU,_.Nt);_.t=QU.prototype;_.t.detached=function(){this.showInput&&window.removeEventListener("click",_.yV(this,this.closeOnOutsideClick_))};
_.t.stopPropagation_=function(a){this.showInput&&a.stopPropagation()};
_.t.closeOnOutsideClick_=function(a){this.closeOnOutsideClickCondition(a)&&(this.showInput=!1,window.removeEventListener("click",_.yV(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.t.closeOnOutsideClickCondition=function(){return!0};
_.t.closeOnOutsideClickHandler=function(){};
_.t.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.yV(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.t.openOnClickHandler=function(){};
_.t.showInputChanged=function(){};
_.t.setShowInput=function(a){this.showInput=a};
QU.prototype.setShowInput=QU.prototype.setShowInput;QU.prototype.showInputChanged=QU.prototype.showInputChanged;QU.prototype.openOnClickHandler=QU.prototype.openOnClickHandler;QU.prototype.openOnClick_=QU.prototype.openOnClick_;QU.prototype.closeOnOutsideClickHandler=QU.prototype.closeOnOutsideClickHandler;QU.prototype.closeOnOutsideClickCondition=QU.prototype.closeOnOutsideClickCondition;QU.prototype.closeOnOutsideClick_=QU.prototype.closeOnOutsideClick_;QU.prototype.stopPropagation_=QU.prototype.stopPropagation_;
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],QU.prototype,"showInput",void 0);_.f([_.E6("click"),_.E6("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],QU.prototype,"stopPropagation_",null);_.f([_.a5("showInput"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean]),_.z("design:returntype")],QU.prototype,"showInputChanged",null);QU=_.f([_.BA()],QU);_.OYk=[QU.prototype];var STf;var YT0;var xL=function(){return _.u.apply(this,arguments)||this};
_.c(xL,_.u);_.t=xL.prototype;_.t.computePreselectedOption=function(a,W){return W===this.itemSelected_?a:void 0};
_.t.dataChanged_=function(){var a=this;this.preselectedSubreason=this.itemSelected_=-1;var W;(W=this.data)!=null&&W.key&&_.DW(this,function(){var w,Z=Number((w=a.data)==null?void 0:w.key);!Number.isNaN(Z)&&(a.itemSelected_=Z,w=(w=(a.data.items||[])[Z])&&w.optionSelectableItemRenderer&&w.optionSelectableItemRenderer.preselectedIndex)&&(a.preselectedSubreason=w)})};
_.t.isSubReasonHidden_=function(a,W){return a!=W};
_.t.onTopItemSelected_=function(a,W){for(var w=_.M(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),Z=0,N=w.length;Z<N;Z++)w[Z].select(0);_.aV(this.hostElement,"yt-report-form-update",[W.item.value]);a.stopPropagation()};
_.t.onItemSelected_=function(a,W){_.aV(this.hostElement,"yt-report-form-update",[W.item.value]);a.stopPropagation()};
_.t.getItem_=function(a){return a.serviceItem?a.serviceItem:a.navigationItem?a.navigationItem:a.optionSelectableItemRenderer?a.optionSelectableItemRenderer:null};
_.t.computeText_=function(a){return(a=this.getItem_(a))?this.ytRendererBehavior.getSimpleString(a.text):null};
_.t.validate=function(){return this.itemSelected_!==-1};
_.t.computeAriaLabel_=function(a){var W=_.sd(a.text);(a=a.accessibility&&a.accessibility.accessibilityData&&a.accessibility.accessibilityData.label)&&(W+=". "+a);return W};
_.t.computeItemSelected_=function(a){return a};
_.t.preventSelection_=function(a){a.stopPropagation();this.tooltipTapped=!0};
_.t.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.t.updateItemSelectedFromBinding=function(a){this.itemSelected_=a.detail.value};
_.t.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)||_.Z9(this.hostElement,[a.optionSelectableItemRenderer.submitEndpoint])))};
xL.prototype.onPaperRippleTransitionEnd_=xL.prototype.onPaperRippleTransitionEnd_;xL.prototype.dataChanged_=xL.prototype.dataChanged_;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],xL.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xL.prototype,"data",void 0);_.f([_.b({value:-1}),_.z("design:type",Number)],xL.prototype,"itemSelected_",void 0);
_.f([_.b({computed:"computeItemSelected_(itemSelected_)"}),_.z("design:type",Number)],xL.prototype,"value",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],xL.prototype,"restoreFocusOnClose",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],xL.prototype,"tooltipTapped",void 0);_.f([_.b({value:-1}),_.z("design:type",Number)],xL.prototype,"preselectedSubreason",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xL.prototype,"dataChanged_",null);_.f([_.E6("transitionend"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xL.prototype,"onPaperRippleTransitionEnd_",null);xL=_.f([_.TD({is:"yt-options-renderer",disableElementRegistration:!0})],xL);
_.D(xL,"yt-options-renderer",function(){if(YT0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;STf===void 0&&(STf=document.createElement("template"));var Z=STf;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);YT0=a}a=YT0;return a},{mode:2});var T3X;var Kkz;var phK;var rvX;var Avk;var hBn;var bZ=function(){return _.u.apply(this,arguments)||this};
_.c(bZ,_.u);bZ.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
bZ.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
bZ.prototype.onTap=function(a){if(this.hostElement.classList.contains("selected")||_.wS(this.hostElement,"yt-share-panel-can-select-contact-action"))a&&a.detail&&(a.detail.x||a.detail.y)&&_.M(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)},_.aV(this.hostElement,"yt-share-panel-select-contact-action",[a])};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.f([_.b({observer:"onDataChanged"}),_.z("design:type",Object)],bZ.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.z("design:type",String)],bZ.prototype,"componentTitle",void 0);_.f([_.w$("#thumbnail"),_.z("design:type",Object)],bZ.prototype,"thumbnail",void 0);bZ=_.f([_.TD({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],bZ);
_.D(bZ,"yt-enrolled-contact-renderer",function(){if(hBn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;Avk===void 0&&(Avk=document.createElement("template"));var Z=Avk;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);hBn=a}a=hBn;return a},{mode:2});var iY2;var cvX;var sG=function(){return _.u.apply(this,arguments)||this};
_.c(sG,_.u);sG.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
sG.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
sG.prototype.onTap=function(a){if(this.hostElement.classList.contains("selected")||_.wS(this.hostElement,"yt-share-panel-can-select-contact-action"))a&&a.detail&&(a.detail.x||a.detail.y)&&_.M(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)},_.aV(this.hostElement,"yt-share-panel-select-contact-action",[a])};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.f([_.b({observer:"onDataChanged"}),_.z("design:type",Object)],sG.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.z("design:type",String)],sG.prototype,"componentTitle",void 0);_.f([_.w$("#thumbnail"),_.z("design:type",Object)],sG.prototype,"thumbnail",void 0);sG=_.f([_.TD({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],sG);
_.D(sG,"yt-suggested-contact-renderer",function(){if(cvX===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;iY2===void 0&&(iY2=document.createElement("template"));var Z=iY2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);cvX=a}a=cvX;return a},{mode:2});var uZ=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-share-panel-reset-action":"onReset"};return a};
_.c(uZ,_.u);uZ.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"}}}}}};
uZ.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.aV(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
uZ.prototype.onReset=function(){for(var a=_.M(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),W=a.length-1;W>=0;W--)a[W].classList.toggle("selected")};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],uZ.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],uZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b({observer:"onDataChanged"}),_.z("design:type",Object)],uZ.prototype,"data",void 0);
uZ=_.f([_.TD({is:"yt-contact-section-renderer",disableElementRegistration:!0})],uZ);
_.D(uZ,"yt-contact-section-renderer",function(){if(rvX===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;phK===void 0&&(phK=document.createElement("template"));var Z=phK;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);rvX=a}a=rvX;return a},{mode:2});var CZ=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return a};
_.c(CZ,_.u);_.t=CZ.prototype;_.t.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"}}}};
_.t.onYtRefreshFormCommand=function(a){var W;(a=_.A((W=_.A(a,_.dS6))==null?void 0:W.formRenderer,Uqz))&&this.set("data",a)};
_.t.reset=function(){var a=_.M(this.hostElement).querySelector("#fields").children;a=_.l(a);for(var W=a.next();!W.done;W=a.next())W=W.value,W.reset&&W.reset()};
_.t.getForm=function(){var a={},W=_.M(this.hostElement).querySelector("#fields").children;W=_.l(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;if(!w.validate())return null;a[w.data.key]=w.value}return a};
_.t.submitFormFields=function(){if(this.fields)for(var a=_.l(this.fields),W=a.next();!W.done;W=a.next())W=W.value,W.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?W.save():W.nodeName==="YT-OPTIONS-RENDERER"&&W.save()};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],CZ.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],CZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],CZ.prototype,"data",void 0);_.f([_.ZC("#fields > *"),_.z("design:type",Array)],CZ.prototype,"fields",void 0);
CZ=_.f([_.TD({is:"yt-form-renderer",disableElementRegistration:!0})],CZ);
_.D(CZ,"yt-form-renderer",function(){if(Kkz===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;T3X===void 0&&(T3X=document.createElement("template"));var Z=T3X;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Kkz=a}a=Kkz;return a},{mode:2});var eBK;var G7=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return a};
_.c(G7,_.u);G7.prototype.onCheckboxChange=function(a){this.data&&(a=(this.checked=_.QV(a).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}})};
G7.prototype.handleUpdateCheckboxCommand=function(a){(a=_.A(a,_.lQ$))&&this.data&&this.data.id===a.id&&(this.set("data.disabled",a.disabled),this.set("data.title",a.title))};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],G7.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],G7.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],G7.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],G7.prototype,"checked",void 0);G7=_.f([_.C({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],G7);
_.D(G7,"ytd-settings-checkbox-renderer",function(){if(eBK!==void 0)return eBK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return eBK=a},{mode:1});var ngX;var Dx=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return a};
_.c(Dx,_.u);Dx.prototype.dataChanged=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return a.radio.removeAttribute("checked"),!a.data||!a.data.id||a.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.IZ0()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(W=a.data&&a.data.id)?_.g(w,Xhn(a.data.id),4):w.jumpTo(3):(a.set("data.hidden",!0),w.jumpTo(0));w.nextAddress!=3&&(W=w.yieldResult);W&&_.aV(a.hostElement,"yt-select-settings-radio-option",[a.data.id]);_.Xd(w)})};
Dx.prototype.onButtonChanged=function(a){_.QV(a).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.K().resolve(_.zU).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.aV(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
Dx.prototype.onSelectOption=function(a){this.data&&this.data.id&&(this.data.id===a?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
Dx.prototype.dataChanged=Dx.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Dx.prototype,"ytActionHandlerBehavior",void 0);_.f([_.w$("#radio"),_.z("design:type",Object)],Dx.prototype,"radio",void 0);_.f([_.b(),_.z("design:type",Object)],Dx.prototype,"data",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],Dx.prototype,"dataChanged",null);Dx=_.f([_.C({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],Dx);
_.D(Dx,"ytd-settings-radio-option-renderer",function(){if(ngX!==void 0)return ngX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ngX=a},{mode:1});var jvD;var fZ=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return a};
_.c(fZ,_.u);
fZ.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"}}}};
fZ.prototype.handleUpdateTextCommand=function(a){(a=_.A(a,_.IQE))&&this.data&&this.data.id===a.id&&this.set("data",a)};
fZ.prototype.handleUpdateConnectedAppRendererCommand=function(a){if(_.A(a,_.vOR)&&this.data){var W,w;if(a=(W=_.A(a,_.vOR))==null?void 0:(w=W.newConnectedAppRenderer)==null?void 0:w.connectedAppRenderer)this.data=a}};
fZ.prototype.computeConnectedAppStyle=function(a){return a.style?a.style.toLowerCase().replace(/_/g,"-"):""};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],fZ.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],fZ.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.z("design:type",String)],fZ.prototype,"connectedAppStyle",void 0);fZ=_.f([_.C({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],fZ);
_.D(fZ,"ytd-connected-app-renderer",function(){if(jvD!==void 0)return jvD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return jvD=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.AK("iuT5Oc");

_.hK();
}catch(e){_._DumpException(e)}
try{
_.AK("L3n37");
var grE=function(a){return a.watch.isLearningJourneyActive},orf=_.Ob(115994),kMD=_.Ob(115993),UVE=function(a,W,w){var Z=this;
var N=w.dragDownAction;this.layer=0;this.JSC$20397_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.JSC$20397_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.fullscreen=!1;var B=_.$J();_.$V(B,orf,this.layer);_.$V(B,kMD,this.layer);this.dragDownAction=function(){N();_.LA(B,{visualElement:Z.fullscreen?orf:kMD})};
this.gesture=new _.Bf(a,W,this.JSC$20397_watchConfig,"pandown");this.attach()};
UVE.prototype.attach=function(){this.gesture.attach()};
UVE.prototype.detach=function(){this.gesture.detach()};
UVE.prototype.update=function(a){this.fullscreen=a;this.gesture.config=a?this.JSC$20397_watchFullScreenConfig:this.JSC$20397_watchConfig};var Ouf=function(a){_.my.call(this);var W=this;this.rootElement=a;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return W.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(w){W.initOrDisposeActiveModules(w)}));
this.onAttached()};
_.c(Ouf,_.my);_.t=Ouf.prototype;_.t.getRoot=function(){return this.rootElement};
_.t.getElement=function(a){return this.rootElement.getElement(a)};
_.t.setPlayerResponse=function(a){this.playerResponse=a;this.publish("PLAYER_RESPONSE_UPDATED",a)};
_.t.getPlayerResponse=function(){return this.playerResponse};
_.t.setWatchNextResponse=function(a){this.watchNextResponse===a?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=a,this.publish("WATCH_NEXT_RESPONSE_UPDATED",a))};
_.t.getWatchNextResponse=function(){return this.watchNextResponse};
_.t.registerActionHandler=function(a,W){var w=this;if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var Z={};_.ua(_.sn.getInstance(),(Z[a]=W,Z),this.getRoot())}else this.actionHandlers.has(a)||(this.actionHandlers.set(a,[]),Z={},_.ua(_.sn.getInstance(),(Z[a]=function(){var N=_.TH.apply(0,arguments);return(w.actionHandlers.get(a)||[]).map(function(B){return B.apply(null,_.K8(N))})},Z),this.getRoot())),this.actionHandlers.get(a).push(W)};
_.t.unregisterActionHandler=function(a){if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var W={};_.CH(_.sn.getInstance(),(W[a]=!0,W),this.getRoot())}else(W=this.actionHandlers.get(a))?(W.pop(),W.length===0&&(W={},_.CH(_.sn.getInstance(),(W[a]=!0,W),this.getRoot()),this.actionHandlers.delete(a))):_.jJ(new _.Uw("Attempted to unregister an action handler which is not registered.",a))};
_.t.addPageDisposeJob=function(a){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.dE(this.rootElement.pageDisposeJobs,a)};
_.t.removePageDisposeJob=function(a){this.rootElement.pageDisposeJobs&&_.yF(this.rootElement.pageDisposeJobs,a)};
_.t.dispatchEvent=function(a,W){_.E$(this.rootElement,a,W)};
_.t.provideRenderingData=function(a,W){this.rootElement.provideRenderingData(a,W)};
_.t.scrollWatchTo=function(a,W){var w;(w=this.watchScrollManager)==null||w.scrollWatchTo(a,W)};
_.t.focusOnPlayer=function(){var a=this.getElement("PLAYER");_.DW(a,function(){if(a&&a.firstElementChild){var W=a.querySelector(".html5-video-player");W&&(_.fg(_.K().resolve(_.Y_)),W.focus())}else _.jJ(Error("jm"))})};
_.t.updateCinematicFullscreenConfig=function(){var a=!!this.rootElement.theater,W=!!this.rootElement.fullscreen,w;(w=this.watchCinematicManager)==null||_.gP9(w,W,a)};
_.t.subscribeToActiveChanged=function(a,W){W=W===void 0?!0:W;var w=_.oX(_.Cx(),grE,function(Z){a(Z)});
W&&a(grE(_.Cx().getState()));return w};
_.t.isActive=function(){return grE(_.Cx().getState())};
_.t.onAttached=function(){var a=_.r("external_fullscreen");_.r("use_unified_flag_accessor")&&(a=_.K().resolve(_.vd0).retriever.getFlag(_.SW$));(a||_.JS("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.t.initPersistentModules=function(){if(_.r("kevlar_watch_flexy_theater_manager")){var a=new _.u39(this);_.$3(this,a)}a=new _.iEE(this);_.$3(this,a);a=new _.e1(this);_.$3(this,a);a=new _.Rz(this);_.$3(this,a);a=new _.WCa(this);_.$3(this,a);a=new _.j1(this);_.$3(this,a);_.r("kevlar_watch_flexy_playlist_manager")&&(a=new _.Zni(this),_.$3(this,a))};
_.t.initOrDisposeActiveModules=function(a){a?(this.watchScrollManager=new _.QB(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.sh2(this)),this.activeModules.push(new _.DuX(this)),this.activeModules.push(new _.PWa(this)),this.activeModules.push(new _.qI(this)),_.r("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.VqD(this)),this.activeModules.push(new _.d4X(this)),_.r("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.vnD(this)),
_.r("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.NRa(this)),_.r("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.IRa(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.r("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.HEk(this)),_.r("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.AUd(this)),a=_.r("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.r("kevlar_watch_flexy_comments_manager")&&!a&&this.activeModules.push(new _.Yzi(this)),_.r("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.nW(this)),this.activeModules.push(new _.z4I(this)),this.activeModules.push(new _.Coz(this)),_.r("web_enable_timely_actions")&&this.activeModules.push(new _.aRn(this)),_.r("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.pfE(this)),_.r("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.gad(this)),
_.r("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.Ezz(this)),_.r("web_player_rtr_ctrls")&&this.activeModules.push(new _.AB0(this))):(_.mk(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.t.disposeInternal=function(){_.my.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.dU.Object.defineProperties(Ouf.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var SEI={},YEk=["learning-journey-engagement-panel","PAlearning_chat"];
SEI.YtdLearningJourneyWatchBehavior=[_.E.YtRendererBehavior,_.x4.YtPlayerListenerBehavior,_.fN.YtRendererstamperBehavior,_.d4.YtActionHandlerBehavior,_.rG.YtPageBehavior,_.wn.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 _.JS("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.r("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 _.JS("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 _.r("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.r("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 _.yv("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.yv("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!_.r("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.r("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 _.r("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_rounded_player_large")||_.r("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 _.r("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.r("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_thumbnail_to_watch_transition")}}},
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:_.nZ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.nZ(["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}}}},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(){_.r("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;_.r("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.r("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.f_9(function(){return _.DK(a)},this.hostElement);
this.pageDisposeJobs.push(function(){a.youThereManager_.reset()});
_.r("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){a.resetFullerscreenEduButtonForNewPlayback_()}));
_.r("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.$S;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;_.r("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.r("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));_.r("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.yV(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){_.r("kevlar_watch_flexy_theater_manager")&&(this.theater=a,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.r("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(a){!_.r("kevlar_watch_while_v2")&&!_.r("web_watch_pip")||a||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(a){this.active!==void 0&&(this.fullscreen=a,_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(a){this.active!==void 0&&(_.E$(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.r("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 W=this;if(a)if(this.data===a){this.onPageLoadWithSameData_();var w;(w=this.watchController)==null||w.setWatchNextResponse(this.data)}else this.data=a;this.playlist&&_.pD({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Ak("nw");this.loading=!1;_.TP(_.hF,function(){W.initDclkstatus_();var Z,N=((Z=W.player)==null?void 0:Z.getVideoData().cpn)||"";_.jG2(function(B,I){_.wIa(B,I,N)})})},
onPageLoadWithSameData_:function(){_.r("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(_.r("kevlar_watch_frame0_loading_state")){var W,w,Z;a=(W=this.loadingData)==null?void 0:(w=W.endpoint)==null?void 0:(Z=w.watchEndpoint)==null?void 0:Z.videoId;var N;a&&(N="https://i.ytimg.com/vi/"+a+"/frame0.jpg");_.M(this.hostElement).querySelector("#player").style.backgroundImage=N?"url("+N+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var a=_.M(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 W,w;(w=(W=this.watchMetadata).updateSentimentBarWidth)==
null||w.call(W);var Z,N;(N=(Z=this.watchMetadata).resize)==null||N.call(Z)}_.r("kevlar_watch_frame0_loading_state")&&(_.M(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(a){var W=_.M(this.hostElement).querySelector(a);W?_.HG(W,!1):_.jJ(new _.Uw("Overscroll monitor not found for component: ",a))},
removeSplitScrollMouseTrap:function(a){var W=_.M(this.hostElement).querySelector(a);W?_.y3(W):_.jJ(new _.Uw("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 W=this;a?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.hF.addLowPriorityJob(function(){W.onWindowResized_(_.vu(!0))})},
updateTheaterModeState_:function(a){if(!_.r("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&&_.DgE()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var a=this.theater;_.r("external_fullscreen")&&this.fullscreen&&(a=!0);a=a?_.M(this.hostElement).querySelector("#player-full-bleed-container"):_.M(this.hostElement).querySelector("#player-container-inner");var W=this.getPlayerContainer(),w=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip");W.parentElement!==a&&(w&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.DK(this).appendTo(a,W),a.appendChild(_.M(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var a=this;return _.P(function(W){if(W.nextAddress==1)return _.g(W,_.K().resolve(_.bV).deactivate(),2);a.updatePlayerLocation();_.Xd(W)})},
updateCinematicsLocation:function(){var a=this.getElement("CINEMATICS");if(a){var W=this.getCinematicsLocationContainer();a.parentElement!==W&&W.appendChild(a);var w;(w=this.watchController)==null||w.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.M(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.M(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(a,W){var w=document.documentElement.hasAttribute("dark"),Z=w&&_.r("web_cinematic_theater_mode"),N=w&&_.r("web_cinematic_fullscreen");w=!w&&this.cinematicLightTheme;return a&&Z||W&&N||(W||a)&&w},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var a;(a=this.watchController)==null||a.setWatchNextResponse(this.data);_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.K().resolve(_.LB).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.r("web_watch_start_chat_in_theater_mode")){var W,
w,Z;if((W=this.data)==null?0:(w=W.contents)==null?0:(Z=w.twoColumnWatchNextResults)==null?0:Z.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var N,B;((N=this.data)==null?0:(B=N.contents)==null?0:B.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(a){var W;(W=this.watchController)==null||W.setPlayerResponse(this.playerData);a&&a.playabilityStatus&&(W=this.isVideoPlayable_(a.playabilityStatus,this.getPlayerOverlays_(this.data)),a=this.isLiveStreamOffline_(a.playabilityStatus),W&&!a||_.DW(this,function(){_.Ak("pbu")}));
this.setPlayerAds_();_.W_(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(a){_.Cx().dispatch(_.E_({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));a?this.activate_():this.deactivate_()},
attached:function(){var a=this;this.watchController=new Ouf(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.r("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var W=_.DK(this);_.r("kevlar_disable_prepare_player")||W.preparePlayer();_.r("kevlar_watch_flexy_playlist_manager")||_.K().resolve(_.LB).setPlayer(W);this.updatePageMediaQueries();W={"--ytd-watch-flexy-scrollbar-width":_.iZ()+
"px"};!_.yv("kv_pl_mx_sz_ks")&&_.yv("kevlar_watch_max_player_width")&&(W["--ytd-watch-flexy-max-player-width-wide-screen"]=_.nCI+"px");_.yv("kevlar_watch_flexy_metadata_height")&&(W["--ytd-watch-flexy-space-below-player"]=_.j9E+"px");this.safeUpdateStyles(W);_.r("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new UVE(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return a.onPlayerTouchPanDown_()}}));
_.r("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.M(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var a=_.iZ(),W=_.MN+a,w=W;this.fixedPanels&&(W+=_.qN);var Z=657+a;a=1327+a;_.M(this.hostElement).querySelector("#two-column-query").query="(min-width: "+W+"px)";_.M(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Z+"px), (min-height: 630px) and (min-width: ")+(W+"px) and (max-width: ")+(a+"px)");_.M(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(a+"px)");_.M(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+w+"px)"},
calculateCurrentPlayerSize_:function(){var a=_.M(this.hostElement).querySelector("#miniplayer-bar").firstChild;return a&&a.active||this.theater||_.r("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Bh(NaN,NaN):_.CW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.CW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.d3(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var a=this;this.onWindowResized_(_.vu());_.r("browse_skeleton_removal_on_watch_killswitch")||_.JS("IS_SHELL_LOAD")&&_.Qfa();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var W=_.DK(this);W.addEventListener("yt-player-updated",_.yV(this,this.onPlayerUpdated_));W.getPlayerPromise().then(function(w){a.playerApiReady_(w)});
_.r("kevlar_watch_flexy_playlist_manager")||(W=_.K().resolve(_.LB),_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&W.addEventListener("yt-navigate",_.yV(this,this.onYtNavigate_)),W.setPlaylistComponent(_.M(this.hostElement).querySelector("#playlist")),W.addEventListener("yt-playlist-data-updated",_.yV(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.hF.addLowPriorityJob(function(){_.E$(a.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.DK(this).removeEventListener("yt-player-updated",_.yV(this,this.onPlayerUpdated_));if(!_.r("kevlar_watch_flexy_playlist_manager")){var a=_.K().resolve(_.LB);_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&a.removeEventListener("yt-navigate",_.yV(this,this.onYtNavigate_));a.cancelVideoSkip();a.removeEventListener("yt-playlist-data-updated",_.yV(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.r("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.E$(this.hostElement,"yt-autonav-pause-player",!1);a=_.V3();_.r("kevlar_exit_fullscreen_leaving_watch")&&a&&_.zq(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,W){W.hasComments?W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):W.locationRetrieved("/related_ajax",void 0);a.stopPropagation()},
onSubscriptionChanged_:function(a,W){this.player&&(W?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.pV("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.M(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.M(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_();_.r("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.r("kevlar_unified_player")||_.r("kevlar_player_new_bootstrap_adoption"))&&_.y0()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(a,W){W=W===void 0?!0:W;_.V3()&&_.r("external_fullscreen")&&_.zq(document.documentElement);this.theaterRequested_=a;W&&_.vi("wide",a?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.aV(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.E$(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){_.LH(a,typeof this.player),this.player&&_.LH(a,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var a;((a=this.player)==null?0:a.isFullscreen())?this.player.toggleFullscreen():_.aV(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(a,W){return this.loading?W:!!Object.keys(a).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(a){if(a){a=_.l(a);for(var W=a.next();!W.done;W=a.next())W=W.value,W.youThereRenderer&&_.Vh0(this.youThereManager_,W.youThereRenderer)}},
setPlaylistData_:function(a){return a||{}},
userEngagementConfigDataChanged_:function(a){if(a)if(a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var W=this.youThereManager_;_.HI()<a.lowEngagementThresholdMs||_.End(W,!0)}else a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.aV(this.hostElement,"yt-autonav-pause-user-engagement",[a])},
isPlayerUnavailable_:function(a,W,w){return!!a&&!this.isVideoPlayable_(a,w)&&!W},
getPlayerOverlays_:function(a){return(a==null?void 0:a.playerOverlays)||null},
isVideoPlayable_:function(a,W){if(!a)return!1;var w=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",Z=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",a)||this.get("errorScreen.ypcTrailerRenderer",a);a=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",a);var N;W=W==null?void 0:(N=W.playerOverlayRenderer)==null?void 0:N.gatedActionsOverlayRenderer;return!!w||!!Z||!!a||!!W},
hasWatchNextResponseErrorRenderer:function(a){var W=this.getPageContents(a),w,Z,N,B,I;return!(a==null?0:(w=a.contents)==null?0:(Z=w.twoColumnWatchNextResults)==null?0:Z.secondaryResults)&&!!((N=W[0])==null?0:(B=N.itemSectionRenderer)==null?0:(I=B.contents[0])==null?0:I.backgroundPromoRenderer)},
isLiveStreamOffline_:function(a){return a?a.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(a,W,w){var Z=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W),N=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];N=_.r("web_no_skip_video_on_verification_checks")?(a==null?void 0:a.status)&&N.includes(a.status):a&&a.status==="AGE_CHECK_REQUIRED";var B=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",a);B==void 0&&(B=!0);!w||this.isVideoPlayable_(a,this.getPlayerOverlays_(W))||
Z||N||!B||_.K().resolve(_.LB).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.QG2()},
onPlayerFeedbackStartRequest_:function(a){_.aV(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:a}])},
onPlayerFeedbackArticleRequest_:function(a){_.aV(this.hostElement,"yt-help-dialog-requested",[a])},
onPlayerYpcContentRequest_:function(){var a,W,w,Z,N,B,I,X,v=((a=this.data)==null?NaN:(W=a.contents)==null?NaN:(w=W.twoColumnWatchNextResults)==null?NaN:(Z=w.secondaryResults)==null?NaN:(N=Z.secondaryResults)==null?NaN:(B=N.offerModule)==null?NaN:(I=B.tvfilmOfferModuleRenderer)==null?NaN:(X=I.actionButtons)==null?NaN:X.length)-1;a=[".offerButton.buttonRenderer.",".actionButtons."+(v>=0?v:0)+".buttonRenderer."];W=_.l(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(w=W.next();!w.done;w=W.next())for(w=w.value,Z=_.l(a),N=Z.next();!N.done;N=Z.next())if(N="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+w+N.value,N=this.get(N+"navigationEndpoint",this.data)||this.get(N+"serviceEndpoint",this.data)||this.get(N+"command",this.data)){_.wJ(N,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(a){_.E$(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:_.E$(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(a)},
setPlayerState:function(a){_.Cx().dispatch(_.wRH(a))},
onPlayerSubscribe_:function(a){_.aV(this.hostElement,"yt-player-subscribe",[a])},
onPlayerUnsubscribe_:function(a){_.aV(this.hostElement,"yt-player-unsubscribe",[a])},
onPlayerAdYtShowToast_:function(a){_.aV(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!_.r("web_watch_move_summary_to_sd")&&!!a},
computeWatchMetadataRefresh:function(){return _.r("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var a,W,w,Z;this.watchNextSecondaryResults=(a=this.data)==null?void 0:(W=a.contents)==null?void 0:(w=W.twoColumnWatchNextResults)==null?void 0:(Z=w.secondaryResults)==null?void 0:Z.secondaryResults}},
setRichGridRendererData:function(a){this.richGridRendererData=a},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var a,W=(a=this.data)==null?void 0:a.engagementPanels;if(W==null?0:W.length){a=null;W=_.l(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;var Z=void 0;if(((Z=w.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)==="engagement-panel-structured-description"){a=w;break}}var N,B,I;a=(N=a)==null?void 0:(B=N.engagementPanelSectionListRenderer)==null?void 0:(I=B.content)==null?void 0:I.structuredDescriptionContentRenderer;if(a==null?0:a.items){N=
[];B=_.l(a.items);for(I=B.next();!I.done;I=B.next()){I=I.value;if(!_.r("sd_horizontal_list_show_nav_killswitch")){var X=Z=w=W=a=void 0,v=void 0,U=(a=I.horizontalCardListRenderer)==null?void 0:(W=a.header)==null?void 0:(w=W.richListHeaderRenderer)==null?void 0:(Z=w.navigationButton)==null?void 0:(X=Z.buttonRenderer)==null?void 0:(v=X.command)==null?void 0:v.commandExecutorCommand;U&&U.commands&&(U.commands=U.commands.filter(function(O){return!_.A(O,_.fNd)}))}I.expandableVideoDescriptionBodyRenderer||
I.videoDescriptionHeaderRenderer||N.push(I)}return{items:N}}}},
constructWarning_:function(a){return{text:_.b8(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;_.E$(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var W=this.getScrollTop()>0;this.gestures_&&(W?this.gestures_.detach():this.gestures_.attach());W!==this.showFullerscreenEdu_&&_.r("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=W,_.DK(this).getPlayerPromise().then(function(w){w.updateFullerscreenEduButtonVisibility(a.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.E$(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var a=this;this.commentsReady=!1;_.hF.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.TP(_.hF,function(){a.setComments_()},1E3)},
setComments_:function(){if(!_.r("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Ak("cmi");_.hF.cancelJob(this.setCommentsJobId_);var a=this.getPageContents(this.data);if(a&&a.length){a=_.l(a);for(var W=a.next();!W.done;W=a.next())if(W=W.value,this.get("itemSectionRenderer.sectionIdentifier",W)==="comment-item-section"){this.comments=W.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.E$(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Ak("cmc")},
doRemoveComments_:function(){this.comments={};_.r("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.hF.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.hF.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(a,W){var w=_.A(W.endpoint,_.u6);w&&(!(W=this.get("data.currentVideoEndpoint.watchEndpoint"))||w.videoId!==W.videoId||w.playlistId&&w.playlistId!==W.playlistId||w.index!==void 0&&w.index!==W.index||typeof w.startTimeSeconds!=="number"||(a.stopPropagation(),this.setScrollTop(0),_.DK(this).getPlayerPromise().then(function(Z){var N=w.startTimeSeconds;Z.seekTo(N);Z.wakeUpControls();N<Z.getDuration()&&Z.playVideo()})))},
updatePlayerStartTime_:function(){var a=_.pr0();"t"in a&&(a=_.qvE(a.t),this.player.seekTo(a,!0))},
updateTitleFromWatchNext:function(a){a=this.getPageContents(a);var W,w;(a=_.sd(a==null?void 0:(W=a[0])==null?void 0:(w=W.videoPrimaryInfoRenderer)==null?void 0:w.title))&&_.E$(this.hostElement,"yt-update-title",a)},
updateTitle_:function(a){a=this.get("videoDetails.title",a)||"";_.E$(this.hostElement,"yt-update-title",a)},
syncWithRemoteVideo_:function(a,W,w){if(this.active&&this.player){var Z=this.player.getVideoData();if(Z.video_id===w&&(w=Z.list,_.r("polymer_enable_mdx_queue")&&w&&w.startsWith("RQ")&&(w=void 0),Z.video_id!==a||w!=W)){var N;_.r("kevlar_player_watch_endpoint_navigation")?N=_.aOD(_.LCI(a,W)):N=this.buildWatchEndpoint_(a,W);_.E$(this.hostElement,"yt-navigate",{endpoint:N,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(a,W,w){return _.Vw(a,W,w)},
initDclkstatus_:function(){_.MhE()},
attachWatchPageSkeleton_:function(){var a=document.querySelector("#watch-page-skeleton");if(a){var W=a.querySelector("#primary-info"),w=a.querySelector("#secondary-info"),Z=a.querySelector("#related");W&&_.M(this.hostElement).querySelector("#info-skeleton").appendChild(W);w&&_.M(this.hostElement).querySelector("#meta-skeleton").appendChild(w);Z&&(_.M(this.hostElement).querySelector("#related-skeleton").appendChild(Z),this.watchNextSkeletonEl_=Z);_.Xh(a)}},
handlePlayerUpdated_:function(){_.DK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(a,W){if(this.watchNextSkeletonEl_&&typeof W!=="undefined"){var w=this.watchNextSkeletonEl_.children,Z=a&&a.indexSplices.length?a.indexSplices[0].index:0;a=Math.min(this.watchNextShownItems.length,w.length);W||(Z=0,a=w.length);for(W=Z;W<a;W++)w[W].classList.add("hidden")}},
onPlayerFullscreenChange_:function(a){_.r("external_fullscreen")||_.aV(this.hostElement,"yt-player-fullscreen",[a.fullscreen])},
onFullscreenChange_:function(a){this.fullscreen=a;this.gestures_&&this.gestures_.update(this.fullscreen);var W=_.DK(this);W.getPlayerPromise().then(function(w){w.setFauxFullscreen(!!_.V3())});
this.updateFullBleedElementLocations();a&&(W.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(a,W){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!W},
computeIsDonationShelfCollapsed_:function(a){return a},
computeShouldShowMerchShelf:function(a,W){return W&&!!a},
computeResponseHasComments:function(a){var W,w,Z,N,B;return!!(a==null?0:(W=a.contents)==null?0:(w=W.twoColumnWatchNextResults)==null?0:(Z=w.results)==null?0:(N=Z.results)==null?0:(B=N.contents)==null?0:B.some(function(I){var X;return(I==null?void 0:(X=I.itemSectionRenderer)==null?void 0:X.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(a,W){this.responseHasComments=this.computeResponseHasComments(this.data);return!!a&&!!Object.keys(a).length&&!W},
identity:_.ue,onWindowResized_:function(a){this.windowSize_=a;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.r("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleSidebarSizeUpdate_()));_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(a){var W=this;a&&a.type!=="dataloaded"&&a.type!=="dataupdated"||_.DK(this).getPlayerPromise().then(function(w){var Z=w.getPlayerState();Z!==5&&Z!==0&&(w=1/w.getVideoAspectRatio(),W.videoHeightToWidthRatio_!==w&&(W.videoHeightToWidthRatio_=w))})},
schedulePlayerSizeUpdate_:function(a){var W=this,w=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"),Z=function(){if(W.watchMetadata){var N,B;(B=(N=W.watchMetadata).resize)==null||B.call(N)}_.DK(W).getPlayerPromise().then(function(I){if(_.r("kevlar_set_internal_player_size")){if(!w||!W.isMiniplayerActive()){var X=W.calculateCurrentPlayerSize_();I.setInternalSize(X.width,X.height)}}else I.setSize(NaN,NaN);_.r("kevlar_watch_while")&&W.updateWatchWhileScrollThreshold_()})};
a?Z():_.rP(_.hF,Z)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(a){this.set("data.survey",a.detail)},
onYtShowSurveyCommand_:function(a){this.set("data.survey",_.A(a,_.DNa).survey)},
onDownloadedVideoDeleted:function(a){var W=this,w,Z;return _.P(function(N){if(N.nextAddress==1){if(!W.active||(w=W.playerData)==null||!w.offlineState||W.videoId!==a)return N.return();(Z=W.player)==null||Z.stopVideo();_.vE().navigatingAwayFromWatchDeletedVideo=!0;_.wJ(_.xgv,W.hostElement);return _.g(N,_.vE().navigationFinishPromise,2)}_.vE().navigatingAwayFromWatchDeletedVideo=!1;_.Xd(N)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var a;this.theater?a=_.M9(.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=_.M(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&a){var W=this.windowSize_.height>=624,w=this.active?this.getScrollTop():0;!a.active&&W&&w>=this.watchWhileScrollThreshold_?(a.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):a.active&&(!W||w<this.watchWhileScrollThreshold_&&!_.V3())&&(a.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(a,W){if(a!==!0||W!==void 0){a=!_.r("live_chat_over_engagement_panels");W=_.M(this.hostElement).querySelector("#chat-container");var w=_.M(this.hostElement).querySelector("#plj-sidebar"),Z=_.M(this.hostElement).querySelector("#panels"),N=_.M(this.hostElement).querySelector("#plj-panels"),B=_.M(this.hostElement).querySelector("#plj-playlist"),I=_.M(this.hostElement).querySelector("#alerts"),X=_.M(this.hostElement).querySelector("#playlist"),v=_.M(this.hostElement).querySelector("#related"),
U=_.M(this.hostElement).querySelector("#donation-shelf"),O=_.M(this.hostElement).querySelector("#comments");this.isTwoColumns_?(I=_.M(this.hostElement).querySelector("#secondary-inner"),I.appendChild(w),w.appendChild(B),B.appendChild(X),w.appendChild(N),a&&I.appendChild(Z),_.r("web_watch_theater_chat")||I.appendChild(W),a||I.appendChild(Z),I.appendChild(U),I.appendChild(v)):(a&&_.j5(Z,I),_.j5(X,I),_.r("web_watch_theater_chat")||_.j5(W,I),a||_.j5(Z,I),_.j5(U,I),O&&(N&&_.j5(N,O),_.j5(v,O)));_.r("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.r("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.r("web_watch_theater_chat")){var a=_.M(this.hostElement).querySelector("#chat-container"),W=this.theater&&!this.fullscreen||_.r("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&W?_.r("web_watch_theater_chat_beside_player")?(W=_.M(this.hostElement).querySelector("#panels-full-bleed-container"),(a==null?void 0:a.parentElement)!==W&&W.append(a),this.panelsBesidePlayer=!0):_.r("web_watch_theater_fixed_chat")&&
(W=_.M(this.hostElement).querySelector("#columns"),(a==null?void 0:a.parentElement)!==W&&W.append(a),this.fixedPanels=!0):(_.r("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.r("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),W=_.M(this.hostElement).querySelector("#playlist"),a&&W?_.LI(a,W):_.jJ(new _.Uw("Missing element when updating chat location",{"chatContainer defined":!!a,"playlist defined":!!W})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(a,W){return _.r("sw_metadata_vis_toggle_ks")?!0:!!a||!!W},
computeForceDarkPanelTheme:function(a){return _.r("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&a:!1},
safeUpdateStyles:function(a){try{_.Hu(this.hostElement,a)}catch(W){_.jJ(W)}},
videoHeightToWidthRatioChanged_:function(a,W){W&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.r("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&&_.DK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.DK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.a6I(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(a){var W=_.B7(a)||0;_.$H(a,W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var a=_.B7("yt-fullerscreen-edu-button-click-count")||0,W=_.B7("yt-fullerscreen-edu-button-shown-count")||0,w=_.yv("external_fullscreen_button_shown_threshold"),Z=a>=_.yv("external_fullscreen_button_click_threshold")||W>=w;_.DK(this).getPlayerPromise().then(function(N){N.updateFullerscreenEduButtonSubtleModeState(Z)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(a,W){return W},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.K().resolve(_.LB).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var a=this;this.panelMaxHeightUpdateJob_&&_.hF.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.hF.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;var W;!a.isTwoColumns_||a.theater||a.fullscreen?W=460:W=a.calculateNormalPlayerSize_().height;var w=W+"px";_.r("live_chat_taller_height")&&!a.theater&&(w="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.r("live_chat_medium_height")&&
!a.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.r("live_chat_scaled_height")&&!a.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 238px)");a.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":W+"px","--ytd-watch-flexy-chat-max-height":w,"--ytd-watch-flexy-structured-description-max-height":W+"px","--ytd-watch-flexy-comments-panel-max-height":W+"px","--ytd-comments-engagement-panel-content-height":W+"px"})})},
scheduleSidebarSizeUpdate_:function(){var a=this;this.is==="ytd-watch-flexy"&&_.r("web_watch_flexy_adjust_sidebar_width")&&!_.r("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.hF.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.hF.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;if(a.isTwoColumns_){var W=_.RZX(a.windowSize_,a.calculateNormalPlayerSize_().width);W!==a.currentSidebarWidth&&(a.currentSidebarWidth=W,a.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":W+
"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_&&_.N1(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(a){var W=_.M(this.hostElement).querySelector("#engagement-panel-scrim");a?W.addEventListener("tap",_.yV(this,this.onEngagementPanelScrimClick_)):W.removeEventListener("tap",_.yV(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(a){if(this.hostElement.contains(a)&&!this.scrollToAnimation_.isAnimating()){var W=a.offsetTop-24;a=a.offsetTop+a.offsetHeight+24;var w=this.getPageScrollingElement(),Z=this.getScrollTop(),N=Z+w.clientHeight-56;if(W<Z+56)W-=56;else if(a>N)W=a-w.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtSignalActionScrollToComments:function(){var a=this.hostElement.querySelector("#comments");if(a&&!this.scrollToAnimation_.isAnimating()){a=a.offsetTop-56-24;if(_.r("kevlar_comment_teaser_scroll_to_midpoint")&&(a-=_.lf().height/3,a<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,a),500)}},
onYtEngagementPanelVisibleChanged:function(a,W,w){this.active&&this.trackEngagementPanelVisibility&&!_.CWz.includes(w)&&(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(w),W!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&W!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(w),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,W){return a||W},
computeDefaultLayout:function(a){return!a},
computeDefaultTwoColumnLayout:function(a,W){return!a&&W},
computeWatchWhilePanelsActive:function(a,W){return a||W},
computeNoBorderOnChat:function(a){return _.r("web_watch_theater_chat_no_border")&&a},
computeLiveChatPresentAndExpanded:function(a,W){return a&&!W},
computePanelExpanded:function(a,W,w){return a||W||w},
onChangeMarkersVisibility:function(a){_.DK(this).getPlayerPromise().then(function(W){var w;(w=W.changeMarkerVisibility)==null||w.call(W,_.A(a,_.GB).isVisible||!1,_.A(a,_.GB).entityKeys||[],_.A(a,_.GB).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(a){this.liveChatCollapsed=a.detail;_.Cx().dispatch(_.uBz(a.detail))},
provideRenderingData:function(a,W){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=W;break;case "PRIMARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=W);this.videoPrimaryInfoRendererValue=W==null?void 0:W.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=W);this.videoSecondaryInfoRendererValue=W==null?void 0:W.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
W;break;case "CLARIFICATION":this.clarifyBoxValue=W;break;case "LIVE_CHAT":this.conversationBar=W;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=W;break;case "PLAYLIST":this.externalPlaylistData_=W!=null?W:{};break;case "MERCH_SHELF":this.merchShelfValue=W==null?void 0:W.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=W;break;case "OFFER_MODULE":this.offerModule=W;break;case "LIMITED_STATE":this.limitedStateValue=W;break;case "DONATION_SHELF":this.donation=W;break;
case "ALERTS":this.alertsValue=W;break;case "COMMENTS":this.comments=W;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=W;break;case "ENGAGEMENT_PANELS":this.engagementPanels=W;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=W;break;case "RICH_GRID_RENDERER":this.richGridRendererData=W;break;case "EXPANDABLE_METADATA":this.expandableMetadata=W;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=W}},
toggleCinematicsActive:function(a){this.cinematicsActive=a},
isMiniplayerActive:function(){return _.K().resolve(_.bV).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(a){return YEk.map(function(W){return a.find(function(w){var Z;return(w==null?void 0:(Z=w.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)===W})}).filter(function(W){return W!==void 0})},
getNonLearningJourneyEngagementPanels:function(a){return a.filter(function(W){var w;return!YEk.includes((W==null?void 0:(w=W.engagementPanelSectionListRenderer)==null?void 0:w.targetId)||"")})}}];var Tgz;var Ec=function(){var a=_.u.apply(this,arguments)||this;a.flexy=!0;a.learningJourney=!0;a.roundedInfoPanel=!0;a.viewTransitionEnabled=_.r("enable_player_resize_transition");a.smallerChatMinHeight=_.r("live_chat_smaller_min_height");a.cinematicTheaterMode=_.r("web_cinematic_theater_mode");a.transparentTheaterMode=_.r("web_transparent_theater_mode");a.cinematicFullscreen=_.r("web_cinematic_fullscreen");a.useLargerMaxPlayerValue=_.r("kevlar_flexy_use_larger_player_value");a.cinematicFullscreenV2=_.r("web_cinematic_fullscreen_v2");
a.isDarkTheme=document.documentElement.hasAttribute("dark");a.theaterLargerPlayer=_.r("web_watch_theater_larger_player");a.defaultCollapsePlaylist=_.r("web_watch_default_collapse_playlist");return a};
_.c(Ec,_.u);_.t=Ec.prototype;_.t.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.t.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.t.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.t.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.t.ready=function(){var a=this,W=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.t.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.t.updateIsTwoColumnsFromBinding=function(a){_.r("web_watch_update_narrow_width_killswitch")||_.Cx().dispatch(_.by2(!a.detail.value));this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.t.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.t.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.t.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.t.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.t.updateShownItemsFromBinding=function(a){a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value};
_.t.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20406_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20406_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.dU.Object.defineProperties(Ec.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(a=_.A(this.data.pageVisualEffects[W],_.Ya))return W=void 0,(W=a.config)==null?void 0:W.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.learningJourneyEngagementPanels)==null?void 0:a.length)>0}}});
_.dU.Object.defineProperties(Ec,{template:{configurable:!0,enumerable:!0,get:function(){if(Tgz===void 0){var a=document.createElement("template");_.n(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\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
a.content.insertBefore(_.y().content.cloneNode(!0),a.content.firstChild);Tgz=a}a=Tgz;return a}}});
Ec.prototype.updateMiniplayerIsActiveValue=Ec.prototype.updateMiniplayerIsActiveValue;Ec.prototype.updateScrollTopValue=Ec.prototype.updateScrollTopValue;Ec.prototype.updateFullscreenValue=Ec.prototype.updateFullscreenValue;Ec.prototype.updateTheaterValue=Ec.prototype.updateTheaterValue;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Ec.prototype,"ytComponentBehavior",void 0);
_.f([_.R(SEI.YtdLearningJourneyWatchBehavior),_.z("design:type",Object)],Ec.prototype,"ytdWatchBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Ec.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ec.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Ec.prototype,"playerData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"flexy",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"learningJourney",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"roundedInfoPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"viewTransitionEnabled",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"smallerChatMinHeight",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"cinematicTheaterMode",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"transparentTheaterMode",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"cinematicFullscreen",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"useLargerMaxPlayerValue",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"cinematicFullscreenV2",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"isDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ec.prototype,"theaterLargerPlayer",void 0);_.f([_.b(),_.z("design:type",Object)],Ec.prototype,"defaultCollapsePlaylist",void 0);_.f([_.b({selector:_.A$}),_.z("design:type",Object)],Ec.prototype,"theaterValue",void 0);
_.f([_.b({selector:_.rA}),_.z("design:type",Object)],Ec.prototype,"fullscreenValue",void 0);_.f([_.b({selector:_.A_}),_.z("design:type",Object)],Ec.prototype,"scrollTopValue",void 0);_.f([_.b({selector:_.hG}),_.z("design:type",Object)],Ec.prototype,"miniplayerIsActiveValue",void 0);_.f([_.w$("#ytd-plj-player"),_.z("design:type",HTMLElement)],Ec.prototype,"ytdPlayer",void 0);_.f([_.w$("#playlist"),_.z("design:type",HTMLElement)],Ec.prototype,"JSC$20406_ytdPlaylistPanelRenderer",void 0);
_.f([_.dV("ytd-comments"),_.z("design:type",HTMLElement)],Ec.prototype,"ytdComments",void 0);_.f([_.w$("#primary"),_.z("design:type",HTMLElement)],Ec.prototype,"primary",void 0);_.f([_.w$("#secondary"),_.z("design:type",HTMLElement)],Ec.prototype,"secondary",void 0);_.f([_.w$("#player-container"),_.z("design:type",HTMLElement)],Ec.prototype,"playerContainer",void 0);_.f([_.w$("#cinematics"),_.z("design:type",HTMLElement)],Ec.prototype,"JSC$20406_cinematics",void 0);
_.f([_.a5("theaterValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ec.prototype,"updateTheaterValue",null);_.f([_.a5("fullscreenValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ec.prototype,"updateFullscreenValue",null);_.f([_.a5("scrollTopValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ec.prototype,"updateScrollTopValue",null);
_.f([_.a5("miniplayerIsActiveValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ec.prototype,"updateMiniplayerIsActiveValue",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ec.prototype,"cinematicLightTheme",null);_.f([_.b({reflectToAttribute:!0}),_.Q("learningJourneyEngagementPanels"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ec.prototype,"hasLearningJourneyPanels",null);
Ec=_.f([_.C({is:"ytd-watch-learning-journey"})],Ec);_.K0.registerService(_.MAe,Ec);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.AK("Tm0L3c");
var l6E;var I62;var Pzn=function(){return _.u.apply(this,arguments)||this};
_.c(Pzn,_.u);Pzn=_.f([_.C({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Pzn);
_.D(Pzn,"ytd-ghost-comments-renderer",function(){if(I62===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);I62=a}a=I62;return a},{mode:1});var XUn;var vrn=function(){return _.u.apply(this,arguments)||this};
_.c(vrn,_.u);vrn=_.f([_.C({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],vrn);
_.D(vrn,"ytd-ghost-watch-metadata-renderer",function(){if(XUn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);XUn=a}a=XUn;return a},{mode:1});var yB=function(){var a=_.u.apply(this,arguments)||this;a.ghostGridRenderer={rows:6};a.roundedInfoPanel=!0;a.hideOfferModules=!0;a.smallerChatMinHeight=_.r("live_chat_smaller_min_height");a.cinematicTheaterMode=_.r("web_cinematic_theater_mode");a.transparentTheaterMode=_.r("web_transparent_theater_mode");a.darkerPanels=_.r("web_watch_darker_panels");a.cinematicFullscreen=_.r("web_cinematic_fullscreen");a.cinematicFullscreenV2=_.r("web_cinematic_fullscreen_v2");a.isDarkTheme=document.documentElement.hasAttribute("dark");
return a};
_.c(yB,_.u);_.t=yB.prototype;_.t.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.t.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.t.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.t.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.t.ready=function(){var a=this,W=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.t.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.t.updateIsTwoColumnsFromBinding=function(a){this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.t.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.t.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.t.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.t.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.t.updateShownItemsFromBinding=function(a){_.r("swatcheroo_direct_use_rich_grid")||(a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value)};
_.t.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20394_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20394_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.dU.Object.defineProperties(yB.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(a=_.A(this.data.pageVisualEffects[W],_.Ya))return W=void 0,(W=a.config)==null?void 0:W.enableInLightTheme;return!1}}});
yB.prototype.updateMiniplayerIsActiveValue=yB.prototype.updateMiniplayerIsActiveValue;yB.prototype.updateScrollTopValue=yB.prototype.updateScrollTopValue;yB.prototype.updateFullscreenValue=yB.prototype.updateFullscreenValue;yB.prototype.updateTheaterValue=yB.prototype.updateTheaterValue;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],yB.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.$VD.YtdWatchBehavior),_.z("design:type",Object)],yB.prototype,"ytdWatchBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],yB.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],yB.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],yB.prototype,"ghostGridRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],yB.prototype,"playerData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yB.prototype,"roundedInfoPanel",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yB.prototype,"hideOfferModules",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yB.prototype,"smallerChatMinHeight",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yB.prototype,"cinematicTheaterMode",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yB.prototype,"transparentTheaterMode",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yB.prototype,"darkerPanels",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yB.prototype,"cinematicFullscreen",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yB.prototype,"cinematicFullscreenV2",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yB.prototype,"isDarkTheme",void 0);_.f([_.b({selector:_.A$}),_.z("design:type",Object)],yB.prototype,"theaterValue",void 0);
_.f([_.b({selector:_.rA}),_.z("design:type",Object)],yB.prototype,"fullscreenValue",void 0);_.f([_.b({selector:_.A_}),_.z("design:type",Object)],yB.prototype,"scrollTopValue",void 0);_.f([_.b({selector:_.hG}),_.z("design:type",Object)],yB.prototype,"miniplayerIsActiveValue",void 0);_.f([_.w$("#ytd-player"),_.z("design:type",HTMLElement)],yB.prototype,"ytdPlayer",void 0);_.f([_.w$("#playlist"),_.z("design:type",HTMLElement)],yB.prototype,"JSC$20394_ytdPlaylistPanelRenderer",void 0);
_.f([_.w$("#ytd-comments"),_.z("design:type",HTMLElement)],yB.prototype,"ytdComments",void 0);_.f([_.w$("#primary"),_.z("design:type",HTMLElement)],yB.prototype,"primary",void 0);_.f([_.w$("#secondary"),_.z("design:type",HTMLElement)],yB.prototype,"secondary",void 0);_.f([_.w$("#player-container"),_.z("design:type",HTMLElement)],yB.prototype,"playerContainer",void 0);_.f([_.w$("#cinematics"),_.z("design:type",HTMLElement)],yB.prototype,"JSC$20394_cinematics",void 0);
_.f([_.a5("theaterValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yB.prototype,"updateTheaterValue",null);_.f([_.a5("fullscreenValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yB.prototype,"updateFullscreenValue",null);_.f([_.a5("scrollTopValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yB.prototype,"updateScrollTopValue",null);
_.f([_.a5("miniplayerIsActiveValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yB.prototype,"updateMiniplayerIsActiveValue",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],yB.prototype,"cinematicLightTheme",null);
_.D(yB,"ytd-watch-grid",function(){if(l6E===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);l6E=a}a=l6E;return a},{mode:2});_.K0.registerService(_.Fre,yB);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.AK("CF909");
var Bgf;var HB=function(){var a=_.u.apply(this,arguments)||this;a.flexy=!0;a.roundedInfoPanel=!0;a.viewTransitionEnabled=_.r("enable_player_resize_transition");a.smallerChatMinHeight=_.r("live_chat_smaller_min_height");a.cinematicTheaterMode=_.r("web_cinematic_theater_mode");a.transparentTheaterMode=_.r("web_transparent_theater_mode");a.cinematicFullscreen=_.r("web_cinematic_fullscreen");a.useLargerMaxPlayerValue=_.r("kevlar_flexy_use_larger_player_value");a.cinematicFullscreenV2=_.r("web_cinematic_fullscreen_v2");
a.isDarkTheme=document.documentElement.hasAttribute("dark");a.defaultCollapsePlaylist=_.r("web_watch_default_collapse_playlist");a.retroModeReduxValue=!1;return a};
_.c(HB,_.u);_.t=HB.prototype;_.t.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.t.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.t.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.t.updateRetroModeReduxValue=function(){_.r("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.t.ready=function(){var a=this,W=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.t.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.t.updateIsTwoColumnsFromBinding=function(a){_.r("web_watch_update_narrow_width_killswitch")||_.Cx().dispatch(_.by2(!a.detail.value));this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.t.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.t.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.t.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.t.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.t.updateShownItemsFromBinding=function(a){a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value};
_.t.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20389_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20389_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.dU.Object.defineProperties(HB.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(a=_.A(this.data.pageVisualEffects[W],_.Ya))return W=void 0,(W=a.config)==null?void 0:W.enableInLightTheme;return!1}}});
_.dU.Object.defineProperties(HB,{template:{configurable:!0,enumerable:!0,get:function(){if(Bgf===void 0){var a=document.createElement("template");_.n(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="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(_.y().content.cloneNode(!0),a.content.firstChild);Bgf=a}a=Bgf;return a}}});
HB.prototype.updateRetroModeReduxValue=HB.prototype.updateRetroModeReduxValue;HB.prototype.updateScrollTopValue=HB.prototype.updateScrollTopValue;HB.prototype.updateFullscreenValue=HB.prototype.updateFullscreenValue;HB.prototype.updateTheaterValue=HB.prototype.updateTheaterValue;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],HB.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.$VD.YtdWatchBehavior),_.z("design:type",Object)],HB.prototype,"ytdWatchBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],HB.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],HB.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],HB.prototype,"playerData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HB.prototype,"flexy",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HB.prototype,"roundedInfoPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HB.prototype,"viewTransitionEnabled",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HB.prototype,"smallerChatMinHeight",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HB.prototype,"cinematicTheaterMode",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HB.prototype,"transparentTheaterMode",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HB.prototype,"cinematicFullscreen",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HB.prototype,"useLargerMaxPlayerValue",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HB.prototype,"cinematicFullscreenV2",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],HB.prototype,"isDarkTheme",void 0);_.f([_.b(),_.z("design:type",Object)],HB.prototype,"defaultCollapsePlaylist",void 0);_.f([_.b({selector:_.A$}),_.z("design:type",Object)],HB.prototype,"theaterValue",void 0);_.f([_.b({selector:_.rA}),_.z("design:type",Object)],HB.prototype,"fullscreenValue",void 0);_.f([_.b({selector:_.A_}),_.z("design:type",Object)],HB.prototype,"scrollTopValue",void 0);
_.f([_.b({selector:_.hG}),_.z("design:type",Object)],HB.prototype,"miniplayerIsActive",void 0);_.f([_.b({selector:function(a){return a.watch.isWatchRetroMode}}),
_.z("design:type",Object)],HB.prototype,"retroModeReduxValue",void 0);_.f([_.dV("ytd-player"),_.z("design:type",HTMLElement)],HB.prototype,"ytdPlayer",void 0);_.f([_.w$("#playlist"),_.z("design:type",HTMLElement)],HB.prototype,"JSC$20389_ytdPlaylistPanelRenderer",void 0);_.f([_.dV("ytd-comments"),_.z("design:type",HTMLElement)],HB.prototype,"ytdComments",void 0);_.f([_.w$("#primary"),_.z("design:type",HTMLElement)],HB.prototype,"primary",void 0);
_.f([_.w$("#secondary"),_.z("design:type",HTMLElement)],HB.prototype,"secondary",void 0);_.f([_.w$("#player-container"),_.z("design:type",HTMLElement)],HB.prototype,"playerContainer",void 0);_.f([_.w$("#cinematics"),_.z("design:type",HTMLElement)],HB.prototype,"JSC$20389_cinematics",void 0);_.f([_.a5("theaterValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HB.prototype,"updateTheaterValue",null);
_.f([_.a5("fullscreenValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HB.prototype,"updateFullscreenValue",null);_.f([_.a5("scrollTopValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HB.prototype,"updateScrollTopValue",null);_.f([_.a5("retroModeReduxValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HB.prototype,"updateRetroModeReduxValue",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],HB.prototype,"cinematicLightTheme",null);HB=_.f([_.C({is:"ytd-watch-flexy"})],HB);_.K0.registerService(_.JUe,HB);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.AK("nmfa2d");
var KCa;var sc=function(){var a=_.u.apply(this,arguments)||this;a.hidden=!1;a.errorScreen=null;a.playlistData={};return a};
_.c(sc,_.u);_.t=sc.prototype;_.t.getPlayer=function(){return this.ytdPlayer};
_.t.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:_.nZ(["aa","eocs"])}}};
_.t.onActiveChanged=function(){_.Cx().dispatch(_.onf(this.ytPageBehavior.active))};
_.t.playerDataChanged=function(){var a;(a=this.watchController)==null||a.setPlayerResponse(this.playerData)};
_.t.dataChanged=function(){var a;(a=this.watchController)==null||a.setWatchNextResponse(this.data)};
_.t.sizeChanged=function(){var a,W;(W=(a=this.metadata).resize)==null||W.call(a)};
_.t.attached=function(){this.watchController=new _.xN(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.t.detached=function(){_.d3(this.watchController);this.watchController=void 0};
_.t.getPlayerContainer=function(){return this.playerContainer};
_.t.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20341_playlistPanel}};
_.t.provideRenderingData=function(a,W){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=W;break;case "ERROR_SCREEN":this.errorScreen=W!=null?W:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=W;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=W;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=W;break;case "RICH_METADATA":this.richMetadataRowContainer=W;break;case "CLARIFICATION":this.clarificationData=W;break;case "PLAYLIST":this.playlistData=
W!=null?W:{};break;case "MERCH_SHELF":this.merchShelf=W;break;case "TICKET_SHELF":this.ticketShelf=W;break;case "LIMITED_STATE":this.limitedState=W;break;case "DONATION_SHELF":this.donationShelf=W;break;case "ALERTS":this.alerts=W}};
_.dU.Object.defineProperties(sc.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,W,w;return!this.hidden&&!!((a=this.data)==null?0:(W=a.contents)==null?0:(w=W.twoColumnWatchNextResults)==null?0:w.conversationBar)}}});
sc.prototype.sizeChanged=sc.prototype.sizeChanged;sc.prototype.dataChanged=sc.prototype.dataChanged;sc.prototype.playerDataChanged=sc.prototype.playerDataChanged;sc.prototype.onActiveChanged=sc.prototype.onActiveChanged;_.f([_.R(_.rG.YtPageBehavior),_.z("design:type",Object)],sc.prototype,"ytPageBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],sc.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],sc.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"playerData",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sc.prototype,"hidden",void 0);_.f([_.w$("#ytd-player"),_.z("design:type",HTMLElement)],sc.prototype,"ytdPlayer",void 0);_.f([_.w$("#player-container"),_.z("design:type",HTMLElement)],sc.prototype,"playerContainer",void 0);_.f([_.w$("#metadata"),_.z("design:type",Object)],sc.prototype,"metadata",void 0);_.f([_.w$("#playlist"),_.z("design:type",HTMLElement)],sc.prototype,"JSC$20341_playlistPanel",void 0);
_.f([_.b({selector:_.VsE,reflectToAttribute:!0}),_.z("design:type",Object)],sc.prototype,"fixie",void 0);_.f([_.b({selector:_.mgX,reflectToAttribute:!0}),_.z("design:type",Object)],sc.prototype,"singleColumn",void 0);_.f([_.b({selector:function(a){return _.A$(a)&&!_.rA(a)},
reflectToAttribute:!0}),_.z("design:type",Object)],sc.prototype,"theater",void 0);_.f([_.b({selector:_.rA,reflectToAttribute:!0}),_.z("design:type",Object)],sc.prototype,"fullscreen",void 0);_.f([_.b({selector:_.gn2}),_.z("design:type",Object)],sc.prototype,"windowSize",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"singleColumnContents",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"errorScreen",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"playlistData",void 0);
_.f([_.b(),_.z("design:type",Object)],sc.prototype,"videoPrimaryInfoRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"videoSecondaryInfoRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"richMetadataRowContainer",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"clarificationData",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"commentsEntryPointHeaderRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"ticketShelf",void 0);
_.f([_.b(),_.z("design:type",Object)],sc.prototype,"merchShelf",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"donationShelf",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"limitedState",void 0);_.f([_.b(),_.z("design:type",Object)],sc.prototype,"alerts",void 0);_.f([_.Q("playlistData"),_.z("design:type",Object),_.z("design:paramtypes",[])],sc.prototype,"hasPlaylistData",null);
_.f([_.Q("data","hidden"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sc.prototype,"hasChat",null);_.f([_.a5("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sc.prototype,"onActiveChanged",null);_.f([_.a5("playerData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sc.prototype,"playerDataChanged",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sc.prototype,"dataChanged",null);_.f([_.a5("windowSize","singleColumn"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sc.prototype,"sizeChanged",null);
_.D(sc,"ytd-watch-fixie",function(){if(KCa===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);KCa=a}a=KCa;return a},{mode:1});_.K0.registerService(_.LrD,sc);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.AK("xwEKAe");
var mbD=function(a){var W=_.gS();if(W.getFlag(202))W=W.getFlag(201);else{var w;W=(a==null?void 0:(w=a.config)==null?void 0:w.settingOnByDefault)!==void 0?a.config.settingOnByDefault:!_.r("web_shorts_cinematics_disabled_by_default")}return W},VCd=function(a){var W=_.gS();
_.oV(0,201,a);_.oV(0,202,!0);W.save()},z1K=function(a){return(a=_.erD(a))?_.j6e(a):0},H59=function(a){return a.shorts.isSmallScreenSqueezeback},yO2=function(a){return a.shorts.isPlaybackStarted},E0X=function(a,W,w,Z){a=W-a;
w=Z-w;return Math.sqrt(a*a+w*w)},acE=function(a,W){a&&_.K().resolve(_.zU).resolveCommand(a,{forceClickLogging:!0,
form:{element:W}})},WA0=function(a){a.unsubscribeFromStore=_.oX(a.storeWithShorts,_.t6E,function(W){a.initOrDisposeActiveModules(W);
!W&&a.storeWithShorts.getState().shorts.isFullscreen&&(_.zq(document.documentElement),a.storeWithShorts.dispatch(_.lVI(!1)))});
a.initOrDisposeActiveModules(_.t6E(a.storeWithShorts.getState()))},wmf=function(a){var W=_.K().resolve(_.EF);
W.rootElement=a;WA0(W)},ZLf=function(){return _.K().resolve(_.EF).dismissedIndices},N10=function(){var a=_.K().resolve(_.EF);
if(_.r("web_shorts_pip")){var W=_.K().resolve(_.bV);a.isShortsPipActive()?W.deactivate():W.isMiniplayerActive()||(_.vE().shortsPipActivation=!0,_.L_i(W))}},tsD=function(a){return _.E_({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:a}})},$gE=function(a){return _.E_({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:a}})},NN=function(a){return _.E_({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:a}})},t_=function(a,W){if(a instanceof t_)this.array_=a.array_;
else{var w;if(w=_.wT(a))a:{for(var Z=w=0;Z<a.length;Z++){if(!_.wT(a[Z])||w>0&&a[Z].length!=w){w=!1;break a}for(var N=0;N<a[Z].length;N++)if(typeof a[Z][N]!=="number"){w=!1;break a}w==0&&(w=a[Z].length)}w=w!=0}if(w)this.array_=_.Wl(a);else if(a instanceof _.Bh)this.array_=B1d(a.height,a.width);else if(typeof a==="number"&&typeof W==="number"&&a>0&&W>0)this.array_=B1d(a,W);else throw Error("Xl");}this.size_=new _.Bh(this.array_[0].length,this.array_.length)},lcf=function(a,W,w){for(var Z=0;Z<a.getSize().height;Z++)for(var N=
0;N<a.getSize().width;N++)W.call(w,a.array_[Z][N],Z,N,a)},Icz=function(a,W){var w=new t_(a.getSize());
lcf(a,function(Z,N,B){w.array_[N][B]=W.call(void 0,Z,N,B,a)});
return w},B1d=function(a,W){for(var w=[],Z=0;Z<a;Z++){w[Z]=[];
for(var N=0;N<W;N++)w[Z][N]=0}return w};
t_.prototype.add=function(a){if(!_.Tcz(this.size_,a.getSize()))throw Error("Yl");return Icz(this,function(W,w,Z){return W+a.array_[w][Z]})};
t_.prototype.equals=function(a,W){if(this.size_.width!=a.size_.width||this.size_.height!=a.size_.height)return!1;W=W||0;for(var w=0;w<this.size_.height;w++)for(var Z=0;Z<this.size_.width;Z++)if(!_.YCI(this.array_[w][Z],a.array_[w][Z],W))return!1;return!0};
t_.prototype.getSize=function(){return this.size_};
var $n=function(a,W,w){return W>=0&&W<a.size_.height&&w>=0&&w<a.size_.width?a.array_[W][w]:null};
t_.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var P2K=function(a,W,w,Z){if(!(W>=0&&W<a.size_.height&&w>=0&&w<a.size_.width))throw Error("Zl`"+W+"`"+w+"`"+a.size_.height+"`"+a.size_.width);a.array_[W][w]=Z};
t_.prototype.multiply=function(a){if(a instanceof t_){if(this.size_.width!=a.getSize().height)throw Error("$l");return XmK(this,a)}if(typeof a==="number")return vuD(this,a);throw Error("am");};
var XmK=function(a,W){var w=new t_(a.size_.height,W.getSize().width);lcf(w,function(Z,N,B){for(var I=Z=0;I<this.size_.width;I++)Z+=$n(this,N,I)*$n(W,I,B);P2K(w,N,B,Z)},a);
return w},vuD=function(a,W){return Icz(a,function(w){return w*W})};var guE=new _.H("inlineSurveyRenderer");var oud=new _.H("interstitialViewModel");var kJi=new _.H("reelNavigateCommand");var Ugd=new _.H("reelNonVideoContentDismissalCommand");var OLK=new _.H("showReelsCommentsOverlayCommand");var Sea=new _.H("shortsSuggestedActionViewModel");var Yez=new _.H("videoInteractionPopUpRenderer");var T12;var KAi;var pmX;var Br=function(){var a=_.u.apply(this,arguments)||this;a.ctaVisualElement=null;a.currentCsn=null;return a};
_.c(Br,_.u);_.t=Br.prototype;_.t.onDataChanged=function(){this.maybeLogShows()};
_.t.computeButtonShape=function(){var a=this;if(this.data)return{buttonText:_.sd(this.data.text),state:"active",onTap:function(){a.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.t.maybeCreateCtaVe=function(){var a;if((a=this.data)!=null&&a.badgeInteractionLogging){var W;if(a=(W=this.data.badgeInteractionLogging)==null?void 0:W.trackingParams)this.ctaVisualElement=_.PX(a)}};
_.t.maybeLogClicks=function(){this.currentCsn=_.nS(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.b0(this.currentCsn,this.ctaVisualElement)};
_.t.maybeLogShows=function(){this.currentCsn=_.nS(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Qw(this.currentCsn,[this.ctaVisualElement])};
_.t.onTap=function(){var a;if((a=this.data)!=null&&a.onClickCommand){var W;this.ytComponentBehavior.resolveCommand((W=this.data)==null?void 0:W.onClickCommand);this.maybeLogClicks()}};
Br.prototype.onDataChanged=Br.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Br.prototype,"ytComponentBehavior",void 0);_.f([_.b({}),_.z("design:type",Object)],Br.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Br.prototype,"onDataChanged",null);
Br=_.f([_.C({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Br);
_.D(Br,"ytd-shopping-overlay-badge-renderer",function(){if(pmX!==void 0)return pmX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return pmX=a},{mode:1});_.Ct(_.RHz,"reel-sound-metadata-view-model",{props:{data:_.ux,overlayDensity:_.ux}});_.Ct(_.pPk,"player-disclosure-view-model",{props:{data:_.qR}});_.Ct(_.ZLT,"pivot-button-view-model",{props:{data:_.ux,className:_.ux}});_.Ct(_.N1h,"reel-action-bar-view-model",{props:{data:_.qR,buttonShapeOverrideables:_.qR}});_.Ct(_.xQ(function(a){function W(){var G8,QF,vl,Hl,SV=(QF=_.A((G8=V())==null?void 0:G8.command,_.xTT))==null?void 0:(vl=QF.item)==null?void 0:(Hl=vl.notificationTextRenderer)==null?void 0:Hl.successResponseText;if(SV)_.aV(Z.value,"yt-open-popup-action",[_.Db(SV),Z.value]);else if(d())acE(d(),h.value);else{var Ny;acE((Ny=V())==null?void 0:Ny.command,h.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var w=a.data;var Z=_.D8();a=_.l(_.$1("0px",void 0,"O1N7Ce"));var N=a.next().value,B=a.next().value;a=_.l(_.$1("0px",void 0,"tTDBdb"));var I=a.next().value,X=a.next().value;a=_.l(_.$1(0,void 0,"fh8Zkc"));var v=a.next().value,U=a.next().value;a=_.l(_.$1(0,void 0,"CUjqGd"));var O=a.next().value,S=a.next().value,T=function(){var G8;if(((G8=_.ZB())==null?void 0:G8.getPlayerState())!==-1){Z.value.style.display="inherit";var QF;(QF=_.ZB())==null||QF.removeEventListener("onStateChange",T)}p()},p=function(){var G8=
document.querySelector("video");
if(G8){U(G8.getBoundingClientRect().width);S(G8.getBoundingClientRect().height);var QF;B((G8==null?void 0:(QF=G8.style)==null?void 0:QF.left)||"0px");var vl;X((G8==null?void 0:(vl=G8.style)==null?void 0:vl.top)||"0px")}};
_.Ka(function(){var G8,QF,vl;if(((G8=_.ZB())==null?void 0:G8.getPlayerState())===-1&&Math.round(((vl=(QF=_.ZB())==null?void 0:QF.getVideoAspectRatio())!=null?vl:0)*100)!==Math.round(v()/O()*100)){Z.value.style.display="none";var Hl,SV;S(v()/((SV=(Hl=_.ZB())==null?void 0:Hl.getVideoAspectRatio())!=null?SV:1))}},"VB5m5");
_.pF(function(){var G8;(G8=_.ZB())==null||G8.addEventListener("onStateChange",T);window.addEventListener("resize",p);p();var QF,vl,Hl;if((Hl=(QF=w())==null?void 0:(vl=QF.regions)==null?void 0:vl[0])==null||!Hl.transformationMatrix)throw Error("em");var SV;if((SV=w())==null?0:SV.trackingParams){var Ny;_.$J().graftServerVe((Ny=w().trackingParams)!=null?Ny:"")}_.Ao(function(){var Bl;(Bl=_.ZB())==null||Bl.removeEventListener("onStateChange",T);window.removeEventListener("resize",p)})});
var h=_.D8(),L=_.l(_.$1(!1,void 0,"TPsTce"));a=L.next().value;var F=L.next().value,x=_.l(_.$1(!1,void 0,"Uz6CHf"));L=x.next().value;var G=x.next().value,V=function(){var G8;return _.A((G8=w())==null?void 0:G8.popUp,Yez)},d=function(){var G8;
return(G8=w())==null?void 0:G8.command},ZD=function(){return _.A(d(),_.kD)!==void 0};
x=_.$_(function(){ZD()&&F(!0);G(!0);return!1});
var aC=_.$_(function(){F(!1);G(!1);return!1}),Bv=_.$_(function(){ZD()&&F(!0);
return!1}),Am=_.$_(function(){ZD()&&F(!1);
return!1}),e9=_.$_(function(){W();
return!1}),cv=_.$_(function(G8){G8.key==="Enter"&&W();
return!1}),C7={},RC={};
return _.k("yt-player-overlay-video-interactions",{el:Z},_.k("svg",{"on:mouseover":x,"on:mouseout":aC,"on:keydown":cv,"on:focus":Bv,"on:blur":Am,el:h,tabindex:0,"aria-label":function(){var G8;return(G8=w())==null?void 0:G8.a11yString},
id:"player-overlay-video-interaction-svg",class:_.W$("yt-player-overlay-video-interactions__interactions-svg",(C7["yt-player-overlay-video-interactions__interactions-svg-hover"]=a,C7),(RC["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=L,RC)),role:"button",style:function(){var G8,QF,vl,Hl=(vl=(G8=w())==null?void 0:(QF=G8.regions)==null?void 0:QF[0].transformationMatrix)!=null?vl:[];G8=v();QF=O();vl=[];for(var SV=0,Ny=-1;SV<Hl.length;SV++)SV%3===0&&(Ny++,vl[Ny]=[]),vl[Ny].push(Hl[SV]);
Hl=new t_(vl);vl=new t_([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);vl=Hl.multiply(vl);Hl=new t_([[0,0],[0,0],[0,0],[0,0]]);for(SV=0;SV<vl.getSize().width;SV++){Ny=$n(vl,0,SV);var Bl=$n(vl,1,SV);if(Ny===null||Bl===null)throw Error("dm`"+(SV+1).toString());P2K(Hl,SV,0,Ny*G8);P2K(Hl,SV,1,Bl*QF)}G8=$n(Hl,0,0);SV=$n(Hl,1,0);QF=$n(Hl,0,1);Ny=$n(Hl,1,1);if(G8===null||SV===null||QF===null||Ny===null)throw Error("bm");vl=E0X(G8,SV,QF,Ny);Bl=$n(Hl,3,0);Hl=$n(Hl,3,1);if(Bl===null||Hl===null)throw Error("cm");Hl=E0X(G8,
Bl,QF,Hl);Ny=(Number((Ny*-1).toFixed(2))-Number((QF*-1).toFixed(2)))/(Number(SV.toFixed(2))-Number(G8.toFixed(2)));Bl=Math.atan(Ny)*180/Math.PI;SV=Ny===Number.POSITIVE_INFINITY?-90:Ny===Number.NEGATIVE_INFINITY?90:Object.is(Ny,-0)?180:Ny===0?0:Ny>0?Bl*-1:G8<SV?Bl*-1:Math.abs(Bl)+180;return"left:calc("+G8+"px + "+N()+"); top:calc("+(QF+"px + "+I()+"); width:")+(vl+"px; height:")+(Hl+"px; transform:rotate(")+(SV+"deg);")},
"on:click":e9}))},"zi"),"yt-player-overlay-video-interactions",{props:{data:_.qR}});_.Ct(_.cYi,"yt-reel-metapanel-view-model",{props:{data:_.qR,overlayDensity:_.qR}});var lW=function(){var a=_.u.apply(this,arguments)||this;a.showScrubber=!1;a.isWatchWhileMode=!1;a.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");a.anchoredPanelActive=!1;a.enableLivingroomLayout=_.r("reels_enable_livingroom_layout");a.enablePlayerMetadataContainer=_.r("reels_web_enable_metadata_container");a.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");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 W;a.set("isImmersive",((W=window.getComputedStyle(a.hostElement))==null?void 0:W.getPropertyValue("--immersive-mode-on"))==="1");a.set("isImmersiveHorizontal",a.isImmersive&&a.enableLivingroomLayout&&!a.isWatchWhileMode)};
return a};
_.c(lW,_.u);_.t=lW.prototype;_.t.updateIsOverlay=function(a){this.isOverlay=a.detail.value};
_.t.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.r("web_enable_flexible_overlay")||_.r("web_enable_format_first")||_.r("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.t.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.t.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.t.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.t.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.t.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.t.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.t.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Et("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.Et("reels_action_justified_content")||"flex-start")};
_.t.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}}};
_.t.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.P_("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.P_("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.P_("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.P_("SHARE_LABEL",
void 0,"Share")}}});_.r("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.P_("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()};
_.t.setEmptyOverlayMetadata=function(){_.r("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}))};
_.dU.Object.defineProperties(lW.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.infoPanel)}}});
lW.prototype.onIsActiveChanged=lW.prototype.onIsActiveChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],lW.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],lW.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],lW.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],lW.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],lW.prototype,"isActive",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],lW.prototype,"hidden",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],lW.prototype,"useShortsIcon",void 0);_.f([_.b({value:"left"}),_.z("design:type",String)],lW.prototype,"buttonTooltipPosition",void 0);
_.f([_.b({value:_.r("reels_enable_livingroom_layout")?"top":"left"}),_.z("design:type",String)],lW.prototype,"likeButtonTooltipPosition",void 0);_.f([_.b({value:"none"}),_.z("design:type",String)],lW.prototype,"textTransform",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lW.prototype,"showScrubber",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lW.prototype,"isWatchWhileMode",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.infoPanel"),_.z("design:type",Object),_.z("design:paramtypes",[])],lW.prototype,"hasInfoPanel",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lW.prototype,"enableAnchoredPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lW.prototype,"anchoredPanelActive",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lW.prototype,"enableLivingroomLayout",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],lW.prototype,"enablePlayerMetadataContainer",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lW.prototype,"enableSqueezebackPanels",void 0);_.f([_.b({selector:_.sFe,reflectToAttribute:!0}),_.z("design:type",Object)],lW.prototype,"isSqueezebackActive",void 0);_.f([_.b({selector:H59,reflectToAttribute:!0}),_.z("design:type",Object)],lW.prototype,"smallScreenSqueezeback",void 0);
_.f([_.b({selector:yO2}),_.z("design:type",Object)],lW.prototype,"isPlayerStarted",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lW.prototype,"overlayDensity",void 0);_.f([_.b(),_.z("design:type",Object)],lW.prototype,"isOverlay",void 0);_.f([_.b({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.z("design:type",Boolean)],lW.prototype,"isShortsOverlay",void 0);_.f([_.b(),_.z("design:type",Object)],lW.prototype,"isImmersive",void 0);
_.f([_.b(),_.z("design:type",Object)],lW.prototype,"isImmersiveHorizontal",void 0);_.f([_.b({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.z("design:type",Boolean)],lW.prototype,"isShortsImmersive",void 0);_.f([_.b({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.z("design:type",Object)],lW.prototype,"buttonOverride",void 0);
_.f([_.b({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.z("design:type",Object)],lW.prototype,"actionBarButtonOverride",void 0);_.f([_.b({selector:_.oa,reflectToAttribute:!0}),_.z("design:type",Object)],lW.prototype,"isFullscreen",void 0);_.f([_.a5("isActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lW.prototype,"onIsActiveChanged",null);lW=_.f([_.C({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],lW);
_.D(lW,"ytd-reel-player-overlay-renderer",function(){if(KAi!==void 0)return KAi;var a=document.createElement("template");_.n(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-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 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    <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="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    <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(_.y().content.cloneNode(!0),a.content.firstChild);return KAi=a},{mode:1});var r59;var IG=function(){var a=_.u.apply(this,arguments)||this;a.videoDuration=0;a.playedTime=0;a.isActive=!1;a.JSC$19603_playerEvents=new Map;return a};
_.c(IG,_.u);_.t=IG.prototype;_.t.created=function(){this.JSC$19603_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19603_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.t.attached=function(){this.getPlayerAndInitializeListeners()};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19603_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.yV(this,this.onPageChanged))};
_.t.getPlayerAndInitializeListeners=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return W=_.fA(),W?_.g(w,W.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.yV(a,a.onPageChanged)),w.jumpTo(0));a.player=w.yieldResult;a.initializePlayerListeners();_.Xd(w)})};
_.t.onPageChanged=function(a){var W=this;return _.P(function(w){if(w.nextAddress==1)return a.detail.newPageType!=="ytd-shorts"?w.return():_.g(w,_.d2().getPlayerPromise(),2);W.player=w.yieldResult;W.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.yV(W,W.onPageChanged));_.Xd(w)})};
_.t.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19603_playerEvents)};
_.t.onVideoDataChange=function(a){var W=this;return _.P(function(w){if(!W.player||a.type!=="newdata")return w.return();W.videoDuration=_.r("web_shorts_use_progress_state_for_gapless")?W.player.getProgressState(a.playertype).seekableEnd:W.player.getDuration(a.playertype);W.playedTime=0;_.Xd(w)})};
_.t.onVideoProgress=function(a){var W=this,w,Z;return _.P(function(N){if(!W.player)return N.return();w=W.player.getPresentingPlayerType();Z=W.player.getPlayerState();W.videoDuration=_.r("web_shorts_use_progress_state_for_gapless")?W.player.getProgressState(w).seekableEnd:W.player.getDuration(w);W.playedTime=Z===0?W.videoDuration:a;_.Xd(N)})};
_.t.getPercentPlayed=function(a,W){return a?_.M9(W/a,0,1):0};
_.dU.Object.defineProperties(IG.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}}});
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],IG.prototype,"componentBehavior",void 0);_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],IG.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],IG.prototype,"player",void 0);_.f([_.b(),_.z("design:type",Object)],IG.prototype,"videoDuration",void 0);_.f([_.b(),_.z("design:type",Object)],IG.prototype,"playedTime",void 0);_.f([_.b(),_.z("design:type",Object)],IG.prototype,"isActive",void 0);
_.f([_.Q("videoDuration","playedTime"),_.z("design:type",Number),_.z("design:paramtypes",[])],IG.prototype,"percentPlayed",null);_.f([_.Q("videoDuration","playedTime"),_.z("design:type",Object),_.z("design:paramtypes",[])],IG.prototype,"percentPlayedStyle",null);_.f([_.Q("videoDuration","isActive"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],IG.prototype,"hideProgressBar",null);
_.D(IG,"ytd-progress-bar-line",function(){if(r59===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);r59=a}a=r59;return a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var A59;_.HX(_.YzH,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var Pr=function(){var a=_.u.apply(this,arguments)||this;a.playerState=null;a.isMuted=!1;a.shortsModernControlsEnabled=_.r("web_shorts_modern_controls");a.volumeControlsOrientationState="vertical_down";a.shortsPipButtonEnabled=_.r("web_shorts_pip_button")&&_.K().resolve(_.O69).pictureInPictureSupported();a.JSC$19606_playerEvents=new Map;return a};
_.c(Pr,_.u);_.t=Pr.prototype;_.t.created=function(){this.JSC$19606_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19606_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.t.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Ob(28662);this.playPauseButtonClientVE=_.Ob(36842);this.fullscreenButtonToggleOffClientVE=_.Ob(222256);this.fullscreenButtonToggleOnClientVE=_.Ob(222257);var a=_.nS(),W=_.eH();a&&W&&(_.r("combine_ve_grafts")?(_.tc(_.$J(),this.muteButtonClientVE,W),_.tc(_.$J(),this.playPauseButtonClientVE,W)):_.RV(a,W,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19606_playerEvents),this.player=null)};
_.t.getPlayerAndInitializeListeners=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return W=_.fA(),W?_.g(w,W.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.yV(a,a.onPageChanged)),w.jumpTo(0));a.player=w.yieldResult;a.initializePlayerListeners();_.Xd(w)})};
_.t.onPageChanged=function(a){var W=this;return _.P(function(w){if(w.nextAddress==1)return a.detail.newPageType!=="ytd-shorts"?w.return():_.g(w,_.d2().getPlayerPromise(),2);W.player=w.yieldResult;W.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.yV(W,W.onPageChanged));_.Xd(w)})};
_.t.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19606_playerEvents)};
_.t.onPlayerStateChange=function(a){this.playerState=a};
_.t.onPlayerVolumeChange=function(a){this.isMuted=a.muted};
_.t.onPlayPauseButtonClick=function(){var a=this,W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,_.d2().getPlayerPromise(),2);W=Z.yieldResult;(w=_.nS())&&a.playPauseButtonClientVE&&_.b0(w,a.playPauseButtonClientVE);W.getPlayerState()!==1?W.playVideo():W.pauseVideo();_.Xd(Z)})};
_.t.computePlayPauseIcon=function(a){return a===2||a===-1||a===5?"PLAY_ARROW_FILLED":_.r("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.t.computeFullscreenLabel=function(a){return a?_.P_("FULLSCREEN_EXIT_LABEL"):_.P_("FULLSCREEN_ENTER_LABEL")};
_.t.computeShortsPipLabel=function(a){return a?_.P_("MINIPLAYER_CLOSE"):_.P_("OPEN_IN_MINIPLAYER")};
_.t.computePlayPauseLabel=function(a){return a===1||a===3?_.P_("PLAYER_LABEL_PAUSE"):_.P_("PLAYER_LABEL_PLAY")};
_.t.onMuteButtonClick=function(){var a=this,W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,_.d2().getPlayerPromise(),2);W=Z.yieldResult;(w=_.nS())&&a.muteButtonClientVE&&_.b0(w,a.muteButtonClientVE);W.isMuted()?W.unMute(!0):W.mute(!0);_.Xd(Z)})};
_.t.computeMuteIcon=function(a){return a?"miniplayer:volume-off":"miniplayer:volume-up"};
_.t.computeMuteLabel=function(a){return a?_.P_("PLAYER_LABEL_UNMUTE"):_.P_("PLAYER_LABEL_MUTE")};
_.t.onFullscreenButtonClick=function(){var a=_.nS();a&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.b0(a,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.b0(a,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.IVI()};
_.t.onShortsPipButtonClick=function(){N10()};
_.dU.Object.defineProperties(Pr.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"}:{}}}},
shortsPipButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeShortsPipLabel(this.isShortsPipActive),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeShortsPipLabel(this.isShortsPipActive)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.r("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.r("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Pr.prototype,"componentBehavior",void 0);_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],Pr.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Pr.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Pr.prototype,"player",void 0);_.f([_.b(),_.z("design:type",Object)],Pr.prototype,"playerState",void 0);_.f([_.b(),_.z("design:type",Object)],Pr.prototype,"isMuted",void 0);
_.f([_.b({computed:"computePlayPauseIcon(playerState)"}),_.z("design:type",String)],Pr.prototype,"playPauseIcon",void 0);_.f([_.b({computed:"computeMuteIcon(isMuted)"}),_.z("design:type",String)],Pr.prototype,"muteIcon",void 0);_.f([_.b({selector:_.oa}),_.z("design:type",Boolean)],Pr.prototype,"isFullscreen",void 0);_.f([_.b({selector:_.kB}),_.z("design:type",Boolean)],Pr.prototype,"isShortsPipActive",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Pr.prototype,"shortsModernControlsEnabled",void 0);_.f([_.b(),_.z("design:type",Object)],Pr.prototype,"volumeControlsOrientationState",void 0);_.f([_.b(),_.z("design:type",Object)],Pr.prototype,"shortsPipButtonEnabled",void 0);_.f([_.Q("playerState"),_.z("design:type",Object),_.z("design:paramtypes",[])],Pr.prototype,"playPauseButtonData",null);
_.f([_.Q("isFullscreen"),_.z("design:type",Object),_.z("design:paramtypes",[])],Pr.prototype,"fullscreenButtonData",null);_.f([_.Q("isShortsPipActive"),_.z("design:type",Object),_.z("design:paramtypes",[])],Pr.prototype,"shortsPipButtonData",null);_.f([_.Q("isFullscreen"),_.z("design:type",String),_.z("design:paramtypes",[])],Pr.prototype,"fullscreenIcon",null);_.f([_.Q("isShortsPipActive"),_.z("design:type",String),_.z("design:paramtypes",[])],Pr.prototype,"shortsPipIcon",null);
_.D(Pr,"ytd-shorts-player-controls",function(){if(A59===void 0){var a=document.createElement("template");_.n(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    <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<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');
a.content.insertBefore(_.y().content.cloneNode(!0),a.content.firstChild);A59=a}a=A59;return a},{mode:1});var hJK;_.Ct(_.jl6,"yt-interstitial-view-model",{props:{data:_.qR}});var iL9=_.xQ(function(a){var W=a.data;return _.k("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.k("h1",{class:"reelWatchBreakViewModelHostTitle"},_.k(_.k_,{text:function(){return W().title}})),_.k("h2",{class:"reelWatchBreakViewModelHostBody"},_.k(_.k_,{text:function(){return W().body},
isOverlay:!0})),_.k(_.Ax,{data:function(){return W().buttons}},{buttonViewModel:function(w,Z){return _.k("div",{class:function(){return Z()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.k(_.F7,{data:w.data}))}}))},"Ai");
iL9.idomCompat=!0;_.Ct(iL9,"reel-watch-break-view-model",{props:{data:_.qR}});var XB=function(){return _.u.apply(this,arguments)||this};
_.c(XB,_.u);XB.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}}};
_.dU.Object.defineProperties(XB.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.A((a=this.data)==null?void 0:a.renderer,guE)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.A((a=this.data)==null?void 0:a.renderer,oud)}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],XB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],XB.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],XB.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],XB.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.renderer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],XB.prototype,"isSurvey",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.renderer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],XB.prototype,"isInterstitialViewModel",null);XB=_.f([_.C({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],XB);
_.D(XB,"ytd-reel-non-video-content-renderer",function(){if(hJK!==void 0)return hJK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
return hJK=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var c52;_.Ct(_.K_d,"desktop-shorts-player-controls",{});var vr=function(){var a=_.u.apply(this,arguments)||this;a.isPlayerPaused=!1;a.isPlayerStarted=!1;a.showPlayerControls=!1;a.showScrubber=!1;a.autoHideJobId=0;a.modern=_.r("web_button_rework");a.overlayType=_.Et("web_shorts_expanded_overlay_type");a.panelData=void 0;a.isWatchWhileMode=!1;a.hasError=!1;a.panelShowDelayMs=1;a.scrubberComponent={};a.useStamper=_.r("web_shorts_enable_title_deflation");a.isFullscreen=!1;a.shouldHideOverlay=!1;a.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");
a.enablePersistentAnchoredPanel=_.r("desktop_shorts_v2_persistent_anchored_panel");a.hideWatchWhilePanel=_.r("web_shorts_hide_watch_while_panel");a.isPersistentPanelActive=!1;a.anchoredPanelActive=!1;a.isShortsPipActive=!1;a.smallScreenSqueezeback=!1;a.enableFlexibleOverlay=_.r("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(){_.eK(a,"calculateOverlayDensity",function(){a.calculateOverlayDensity()},100)};
return a};
_.c(vr,_.u);_.t=vr.prototype;_.t.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.t.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.t.shouldRenderOverlayControl=function(a){return!this.useStamper&&this.isVideoContent(a)};
_.t.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var a=_.K().resolve(_.SO);this.isWatchWhileMode&&(_.r("web_enable_shorts_new_carousel")?_.hF.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};
_.t.handleShowReelsCommentsOverlayCommand=function(a){a=_.A(a,OLK);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))};
_.t.updateEngagementPanelVisibility=function(a,W){a&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:W?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:a}})};
_.t.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.t.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.K().resolve(_.EF).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.t.handleWatchWhilePanelScrimClick=function(){var a=_.K().resolve(_.SO);this.activeWatchWhilePanel&&(a.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.t.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.t.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:_.r("web_enable_shorts_new_carousel")?0:void 0}}};
_.t.handlePlayerClick=function(a){var W=this,w,Z;if((Z=(w=window).matchMedia)!=null&&Z.call(w,"(any-pointer: coarse)").matches||!a)this.showPlayerControls=!0,_.hF.cancelJob(this.autoHideJobId),this.autoHideJobId=_.TP(_.hF,function(){W.showPlayerControls=!1},4E3)};
_.t.isFirstReel=function(){return this.index===0};
_.t.handleMouseenter=function(){_.hF.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.t.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.t.handleScrubberEnter=function(){this.showScrubber=!0};
_.t.handleScrubberLeave=function(){this.showScrubber=!1};
_.t.maybeLogNonDefaultAspectRatio=function(){var a;(a=this.data)!=null&&a.thumbnail&&this.isActive&&.5625!==z1K(this.data.thumbnail)&&_.AWx("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.t.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>=168?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&a===1&&(a=0);this.isPersistentPanelActive&&(a=0);this.overlayDensity=a;var W;(W=this.onOverlayDensityChanged)==null||W.call(this,this.index,this.overlayDensity)}}};
_.t.onOverlayDensityChange=function(){var a;(a=this.onOverlayDensityChanged)==null||a.call(this,this.index,this.overlayDensity);(a=_.M(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};
_.t.isVideoContent=function(a){_.K().resolve(_.EF);return!!_.A(a,_.gi)};
_.t.isNonVideoContent=function(a){_.K().resolve(_.EF);return!!_.A(a,_.jT)};
_.t.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.dU.Object.defineProperties(vr.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var a,W;return _.r("web_enable_format_first")||((a=this.data)==null?void 0:a.adsOverlay)&&_.r("web_enable_format_first_ads_only")||((W=this.data)==null?void 0:W.reelPlayerOverlayRenderer)&&_.r("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
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(this.useStamper&&((a=this.data)==null?0:a.command)&&this.isVideoContent(this.data.command)){var W,w;if(((W=this.data)==null?0:W.adsOverlay)&&Object.keys((w=this.data)==null?void 0:w.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var Z,N;if(((Z=this.data)==null?0:Z.reelPlayerOverlayRenderer)&&Object.keys((N=this.data)==null?void 0:N.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
vr.prototype.onOverlayDensityChange=vr.prototype.onOverlayDensityChange;vr.prototype.calculateOverlayDensity=vr.prototype.calculateOverlayDensity;vr.prototype.maybeLogNonDefaultAspectRatio=vr.prototype.maybeLogNonDefaultAspectRatio;vr.prototype.onEngagementPanelsChanged=vr.prototype.onEngagementPanelsChanged;vr.prototype.onScrubberDataChange=vr.prototype.onScrubberDataChange;vr.prototype.updateShouldHideOverlay=vr.prototype.updateShouldHideOverlay;
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],vr.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],vr.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vr.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Number)],vr.prototype,"index",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],vr.prototype,"isActive",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],vr.prototype,"isHiddenInDom",void 0);_.f([_.b(),_.z("design:type",Object)],vr.prototype,"isPlayerPaused",void 0);_.f([_.b({selector:yO2}),_.z("design:type",Object)],vr.prototype,"isPlayerStarted",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"showPlayerControls",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"showScrubber",void 0);_.f([_.b(),_.z("design:type",Object)],vr.prototype,"autoHideJobId",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"modern",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"overlayType",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],vr.prototype,"ytdReduxBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],vr.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vr.prototype,"watchWhileEngagementPanels",void 0);_.f([_.b(),_.z("design:type",Object)],vr.prototype,"panelData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"isWatchWhileMode",void 0);_.f([_.b(),_.z("design:type",String)],vr.prototype,"activeWatchWhilePanel",void 0);
_.f([_.b(),_.z("design:type",Object)],vr.prototype,"hasError",void 0);_.f([_.b(),_.z("design:type",Object)],vr.prototype,"panelShowDelayMs",void 0);_.f([_.b(),_.z("design:type",Object)],vr.prototype,"scrubberComponent",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"useStamper",void 0);_.f([_.b({selector:_.oa,reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"isFullscreen",void 0);
_.f([_.b(),_.z("design:type",Object)],vr.prototype,"shouldHideOverlay",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"enableAnchoredPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"enablePersistentAnchoredPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"hideWatchWhilePanel",void 0);
_.f([_.b({selector:_.sFe,reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"isPersistentPanelActive",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"anchoredPanelActive",void 0);_.f([_.b({selector:_.kB,reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"isShortsPipActive",void 0);_.f([_.b({selector:H59,reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"smallScreenSqueezeback",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],vr.prototype,"enableFormatFirst",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"enableFlexibleOverlay",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vr.prototype,"overlayDensity",void 0);_.f([_.b(),_.z("design:type",Function)],vr.prototype,"onOverlayDensityChanged",void 0);
_.f([_.b(),_.Q("isActive","hasError"),_.z("design:type",Object),_.z("design:paramtypes",[])],vr.prototype,"shouldRenderPlayerElements",null);_.f([_.b(),_.Q("isActive","isWatchWhileMode"),_.z("design:type",Object),_.z("design:paramtypes",[])],vr.prototype,"watchWhileOrPersistentActive",null);_.f([_.a5("isActive","hasError","showingExpandedOverlay"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vr.prototype,"updateShouldHideOverlay",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("isActive","isPlayerStarted","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],vr.prototype,"shouldRenderScrubber",null);_.f([_.a5("shouldRenderScrubber"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vr.prototype,"onScrubberDataChange",null);_.f([_.Q("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],vr.prototype,"overlayComponent",null);
_.f([_.a5("watchWhileEngagementPanels"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vr.prototype,"onEngagementPanelsChanged",null);_.f([_.w$("#player-container"),_.z("design:type",HTMLElement)],vr.prototype,"playerContainer",void 0);_.f([_.w$("#cinematic-container"),_.z("design:type",HTMLElement)],vr.prototype,"cinematicContainer",void 0);
_.f([_.a5("isPersistentPanelActive","data.thumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vr.prototype,"maybeLogNonDefaultAspectRatio",null);_.f([_.a5("isPersistentPanelActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vr.prototype,"calculateOverlayDensity",null);_.f([_.a5("overlayDensity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vr.prototype,"onOverlayDensityChange",null);
vr=_.f([_.C({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],vr);
_.D(vr,"ytd-reel-video-renderer",function(){if(c52!==void 0)return c52;var a=document.createElement("template");_.n(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="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]]" 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="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\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(_.y().content.cloneNode(!0),
a.content.firstChild);return c52=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var gA=function(){var a=_.u.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.panelShowDelayMs=_.yv("enable_shorts_panel_show_delay_ms");a.enablePreviousContinuation=_.r("shorts_in_playlists_web");a.shortsPipEnabled=_.r("web_shorts_pip");a.isDark=document.documentElement.hasAttribute("dark");a.shortsViewTransitions=
_.r("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=_.r("web_scroll_into_view_center");a.formatFirst=_.r("web_enable_format_first")||_.r("web_enable_format_first_ads_only")||_.r("web_enable_format_first_organic_only");a.enableFlexibleOverlay=_.r("web_enable_flexible_overlay");
a.isShortsInitialized=!1;a.hidePreviousButtonImmediately=!1;a.showPreviousButtonImmediately=!1;a.endOfNextContinuation=!1;a.currentPlayerIndex=0;a.nextReelVe=_.Ob(56921);a.prevReelVe=_.Ob(56922);a.loopToggleOffVe=_.Ob(198013);a.loopToggleOnVe=_.Ob(198014);a.ambientModeToggleVe=_.Ob(227860);a.reelPlayerPausedStateRendererVe=_.Ob(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(W,w){var Z;(Z=a.getActiveReelVideo(W))==null||Z.setAttribute("overlay-density",String(w))};
return a};
_.c(gA,_.u);_.t=gA.prototype;
_.t.deflateInactivePreviousSlides=function(){var a=_.yv("web_shorts_deflate_inactive_slides_aggressive_distance");if(a>0&&this.shortsProcessedSequence&&this.activeIndex){a=this.activeIndex-a;for(var W=0;W<=a;W++){var w=void 0;((w=this.shortsProcessedSequence[W].reelPlayerOverlayRenderer)==null?0:w.likeButton)&&this.set("shortsProcessedSequence."+W+".reelPlayerOverlayRenderer",{});w=void 0;((w=this.shortsProcessedSequence[W].adsOverlay)==null?0:w.adSlotMetadata)&&this.set("shortsProcessedSequence."+W+
".adsOverlay",{})}}};
_.t.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.t.onResize=function(){var a=_.Cx(),W=a.dispatch,w=this.calculateIsSmallWidth();W.call(a,_.E_({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:w}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.t.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:_.r("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},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.t.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var a=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,W=a,w=0;a<250&&(W=a+this.shortsInnerContainer.clientWidth,w=24);_.Hu(this.hostElement,{"--ytd-shorts-header-width":W+"px","--ytd-shorts-top-spacing":w+"px"})}};
_.t.isFirstShorts=function(a){return a?this.index===-a.length:this.index===0};
_.t.isActiveReel=function(a,W,w){w&&(W=this.calculatePrevIndex(W,w));return a===W};
_.t.onFullscreenChange=function(){if(_.r("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&&_.K().resolve(_.bV).close(!0)}};
_.t.engagementPanelsChanged=function(){var a;this.watchWhileEngagementPanels=(a=this.data)==null?void 0:a.engagementPanels};
_.t.unregisterPanels=function(){var a=_.K().resolve(_.SO);if(this.watchWhileEngagementPanels)for(var W=_.l(this.watchWhileEngagementPanels),w=W.next();!w.done;w=W.next()){var Z=void 0,N=void 0;w=(Z=w.value.engagementPanelSectionListRenderer)==null?void 0:(N=Z.identifier)==null?void 0:N.tag;a&&w&&a.panelMap.delete(w)}};
_.t.isVideoContent=function(a){return this.isVideoContentCommand(a==null?void 0:a.command)};
_.t.getActiveReelVideo=function(a){return _.M(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+a+'"]')};
_.t.calculatePrevIndex=function(a,W){return W?a-((W==null?void 0:W.length)||0):-1};
_.t.onKeydown=function(a){var W=_.qj(a)||[];if(!_.BoK(W))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")&&_.r("web_shorts_keyboard_enable_seek_shortcuts")){var w;(w=this.player)==null||w.seekBy(-5)}else if((a.code==="KeyD"||a.code===
"ArrowRight")&&_.r("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var Z;(Z=this.player)==null||Z.seekBy(5)}};
_.t.onServiceRequestCompleted=function(a,W){a=W.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)};
_.t.handleEngagementPanelVisibilityChanged=function(a,W){var w=_.K().resolve(_.SO);if(a&&w){var Z,N=((Z=a.identifier)==null?void 0:Z.tag)||a.panelIdentifier||a.targetId;if(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==N){w.hidePanel(this.activePanel);var B;this.activePanel=((B=a.identifier)==null?void 0:B.tag)||a.panelIdentifier}else this.isPersistentPanelActive=!0,_.Cx().dispatch(tsD(!0)),this.anchoredPanelActive=!0,this.activePanel=N;else W==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===N&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Cx().dispatch(tsD(!1)))}};
_.t.handlePanelScrimClick=function(){var a=_.K().resolve(_.SO);this.activePanel&&(a.hidePanel(this.activePanel),_.Cx().dispatch(tsD(!1)))};
_.t.getShortsLoopSetting=function(){var a,W,w,Z,N;return _.P(function(B){switch(B.nextAddress){case 1:return _.r("kevlar_shorts_auto_advance")?_.g(B,_.KB.getInstance(),2):B.return(!0);case 2:return(a=B.yieldResult)?_.g(B,a.get("sfvles"),3):B.return(!0);case 3:return w=(W=B.yieldResult)!=null?W:!1,_.g(B,a.get("sfvle"),4);case 4:return N=(Z=B.yieldResult)!=null?Z:!0,w?B.return(N):B.return(!0)}})};
_.t.handleSignalActionToggleLoopShortsOff=function(){var a=this,W,w,Z;return _.P(function(N){switch(N.nextAddress){case 1:if(!a.player)return N.return();a.player.setLoopVideo(!1);W=_.$J();_.BE(W,a.loopToggleOffVe);return _.g(N,_.KB.getInstance(),2);case 2:return(w=N.yieldResult)?_.g(N,w.set("sfvle",!1),3):N.return();case 3:return _.g(N,w.set("sfvles",!0),4);case 4:Z=_.gS(),_.oV(0,203,!1),_.oV(0,204,!0),Z.save(),_.Xd(N)}})};
_.t.handleSignalActionToggleLoopShortsOn=function(){var a=this,W,w,Z;return _.P(function(N){switch(N.nextAddress){case 1:if(!a.player)return N.return();a.player.setLoopVideo(!0);W=_.$J();_.BE(W,a.loopToggleOnVe);return _.g(N,_.KB.getInstance(),2);case 2:return(w=N.yieldResult)?_.g(N,w.set("sfvle",!0),3):N.return();case 3:return _.g(N,w.set("sfvles",!0),4);case 4:Z=_.gS(),_.oV(0,203,!0),_.oV(0,204,!0),Z.save(),_.Xd(N)}})};
_.t.handleSignalActionToggleCinematicShortsOn=function(){VCd(!0);var a;(a=this.JSC$19631_cinematicController)==null||_.Dbk(a,!0);_.BE(_.$J(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.t.handleSignalActionToggleCinematicShortsOff=function(){VCd(!1);var a;(a=this.JSC$19631_cinematicController)==null||_.Dbk(a,!1);_.BE(_.$J(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.t.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.t.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.t.unhideCurrentOverlay=function(){if(this.overlayContainer){var a=this.overlayContainer.querySelector("#experiment-overlay");a&&_.hF.addLowPriorityJob(function(){a.style.display="unset"},100)}};
_.t.getCurrentShort=function(){if(this.currentEndpoint){var a=this.currentEndpoint;if(this.isNonVideoContentCommand(a)){var W=_.A(a,_.jT);return{reelNonVideoContentRenderer:_.A(W==null?void 0:W.renderer,_.oS$),command:a}}if(this.data){var w;W=(w=_.A(this.currentEndpoint,_.gi))==null?void 0:w.thumbnail;var Z;w=(Z=this.data.overlay)==null?void 0:Z.reelPlayerOverlayRenderer;_.K().resolve(_.EF);a=this.data;var N,B;Z=(N=a.overlay)==null?void 0:(B=N.shortsAdsRenderer)==null?void 0:B.adSlots;if(Z!==void 0)Z.length===
0?(_.aa("Shorts ads returned no ad slots."),a=void 0):(Z.length>1&&_.aa("Shorts ads has more than one ad slots."),a=_.A(Z[0],_.mTe));else{var I,X;a=_.A((I=a.overlay)==null?void 0:(X=I.shortsAdsRenderer)==null?void 0:X.overlay,_.mTe)}I=a;a=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.A(this.currentEndpoint,_.gi),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:w,thumbnail:W,command:a,adsOverlay:I}}}};
_.t.created=function(){var a=this;this.scrollToVideoThrottle=new _.yP(function(W){var w;(w=a.getActiveReelVideo(W))==null||w.scrollIntoView({behavior:"smooth",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.yP(function(W){var w;(w=a.getActiveReelVideo(W))==null||w.scrollIntoView({behavior:"auto",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.t.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.t.attached=function(){var a=this;wmf(this);this.pageScrollElement=_.M(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.yV(this,this.processResetAction));_.r("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.r("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var W=a.getActiveReelVideo(a.activeIndex);
a.maybeCreateIntersectionObserver();W==null||W.scrollIntoView({behavior:"instant",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"});a.shortsContainer.style.overflowY="scroll"}))};
_.t.calculateSqueezebackPanelSize=function(){var a=this,W=window.innerWidth-456-(window.innerHeight-106)*.5625;_.hF.addLowPriorityJob(function(){W<360?_.Cx().dispatch($gE(!0)):(a.hostElement.style.setProperty("--anchored-panel-width",Math.min(W,480)+"px"),_.Cx().dispatch($gE(!1)))})};
_.t.detached=function(){var a=_.K().resolve(_.EF);a.rootElement=void 0;var W;(W=a.unsubscribeFromStore)==null||W.call(a);a.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.yV(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.t.onResizeFinished=function(a,W){var w=this,Z=new ResizeObserver(function(){w.shortsContainer.style.overflowY="hidden";_.hF.addLowPriorityJob(function(){W()},100)});
Z.observe(a);return Z};
_.t.resetDocumentScrollTop=function(){var a,W;if((a=document)==null?0:(W=a.scrollingElement)==null?0:W.scrollTop)document.scrollingElement.scrollTop=0};
_.t.loadPage_=function(a){var W=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 w;if((w=_.A(this.currentEndpoint,_.gi))==null?0:w.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=a;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){W.isPlayerStarted&&
(W.handleOnPlaybackCommand(),W.afterPlayerStarted=function(){})};
this.registerPanel(a)}};
_.t.afterPlayerStarted=function(){};
_.t.handleOnPlaybackCommand=function(){if(_.r("web_shorts_comment_stickers")&&this.isPlayerStarted){var a,W=(a=_.A(this.currentEndpoint,_.gi))==null?void 0:a.onPlaybackCommand;W&&this.ytComponentBehavior.resolveCommand(W)}};
_.t.maybeCreateIntersectionObserver=function(){var a=this,W=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==W){this.intersectionObserverThreshold=W;var w={rootMargin:"0px",threshold:W},Z;(Z=this.intersectionObserver)==null||Z.disconnect();this.intersectionObserver=new IntersectionObserver(function(N){N=_.l(N);for(var B=N.next();!B.done;B=N.next())if(B=B.value,B.intersectionRatio>W){B=Number(B.target.id);if(isNaN(B))break;if(B===a.index)break;
_.oKH();a.loadVideo(B);_.i0("r_vtc")}},w);
this.observeShorts()}};
_.t.observeShorts=function(){var a=[].concat(_.K8(_.M(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));a=_.l(a);for(var W=a.next();!W.done;W=a.next()){W=W.value;var w=void 0;(w=this.intersectionObserver)==null||w.observe(W)}};
_.t.initCsi=function(){_.pV("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"}},W,w;if((W=this.playerData)==null?0:(w=W.cacheMetadata)==null?0:w.isCacheHit)a.isCacheHit=!0;var Z;if(W=(Z=_.A(this.currentEndpoint,_.gi))==null?void 0:
Z.prefetchTaskId)a.prefetchInfo={taskId:W};_.pD(a)};
_.t.isAd=function(){var a,W;return!!((a=_.A(this.currentEndpoint,_.gi))==null?0:(W=a.adClientParams)==null?0:W.isAd)};
_.t.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.t.getPlayerContainer=function(){var a;return(a=_.M(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:a.playerContainer};
_.t.onPlayerStateChange=function(a){var W=this;this.isPlayerPaused=a===2;a!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?a===1&&this.index===0&&(this.isPlayerStarted||_.Cx().dispatch(NN(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Cx().dispatch(NN(!0)));this.player&&!this.player.getLoopVideo()&&_.hF.addLowPriorityJob(function(){W.getShortsLoopSetting().then(function(w){var Z;(Z=W.player)==null||Z.setLoopVideo(w)})});
this.isPlayerPaused&&_.r("web_shorts_paused_state_logging")&&_.Qw(_.nS(),[this.reelPlayerPausedStateRendererVe])};
_.t.isInBackground=function(){var a=window.document.visibilityState;return!(!a||a==="visible")};
_.t.isShortPlayable=function(){if(_.r("kevlar_playable_short_killswitch"))return!0;var a;return(a=this.playerData)!=null&&a.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.t.setNormalPlaybackSpeed=function(){var a=this,W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.getPlayer().getPlayerPromise(),2);W=Z.yieldResult;w=W.getPlaybackRate();w!==1&&(a.storedPlaybackSpeed=w,W.setPlaybackRate(1));_.Xd(Z)})};
_.t.restorePlaybackSpeed=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1)return a.storedPlaybackSpeed===null?w.jumpTo(0):_.g(w,a.getPlayer().getPlayerPromise(),3);W=w.yieldResult;W.setPlaybackRate(a.storedPlaybackSpeed);a.storedPlaybackSpeed=null;_.Xd(w)})};
_.t.playerDataChanged=function(){var a=this,W,w,Z,N,B,I,X,v,U;return _.P(function(O){if(O.nextAddress==1){W=a.getPlayer();_.r("web_shorts_dynamic_intersection_observer_threshold")&&((w=a.intersectionObserver)==null||w.disconnect());if(a.playerData){if(((Z=a.playerData.videoDetails)==null?void 0:Z.videoId)!==((N=W.getPlayer())==null?void 0:N.getVideoData().video_id)){B={};if(I=_.A(a.currentEndpoint,_.gi))B.watch_endpoint=I,I.endTimeSeconds&&(B.end=I.endTimeSeconds);W.loadVideoWithPlayerResponse(a.playerData,
B)}}else return O.return();return a.player?O.jumpTo(2):_.g(O,W.getPlayerPromise(),3)}O.nextAddress!=2&&(a.player=O.yieldResult,a.JSC$19631_playerStateChangeListener=a.onPlayerStateChange.bind(a),a.player.addEventListener("onStateChange",a.JSC$19631_playerStateChangeListener),_.r("kevlar_client_enable_shorts_player_bootstrap")&&_.y0(),a.scrollToVideoThrottle.fire(a.index),a.movePlayerToVideo(a.index),_.hF.addLowPriorityJob(function(){a.getShortsLoopSetting().then(function(S){var T;(T=a.player)==null||
T.setLoopVideo(S)})}),_.mQJ.resolve(a.player),a.player.syncVolume(),a.getPlayer().focusOnPlayer());
_.r("web_shorts_caption_language_entity_killswitch")||_.hF.addLowPriorityJob(function(){var S=_.K().resolve(_.EF),T,p=(T=a.player)==null?void 0:T.getOption("captions","track");T=_.Nn("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(p){var h;((h=_.X7(_.Y4C,T)())==null?void 0:h.value)!==p.displayName&&S.store.dispatch(_.oL("stringEntity",T,{key:T,value:p.displayName||""}))}else S.store.dispatch(_.oL("stringEntity",T,{key:T,value:"CAPTIONS_UNAVAILABLE"}))});
_.hF.addLowPriorityJob(function(){a.observeShorts()},100);
X=a.player.getPlayerState(a.player.getPresentingPlayerType());X!==1||a.isPlayerStarted||_.Cx().dispatch(NN(!0));a.updateBackNavContainerWidth();v=_.A(a.currentEndpoint,_.gi);((U=v)==null?0:U.startTimeSeconds)&&a.player.seekTo(v.startTimeSeconds);if(a.JSC$19631_cinematicController||a.cinematicsInitializeJobId)return O.return();a.cinematicsInitializeJobId=_.hF.addLowPriorityJob(function(){a.initCinematicController();a.cinematicsInitializeJobId=void 0});
_.Xd(O)})};
_.t.onShortUndoDismiss=function(){var a=this,W=ZLf().pop();W!==void 0&&(_.DW(this,function(){a.showCardWithIndex(W)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.t.onShortsDismiss=function(a){if(a=a.detail.reelDismissalActionRenderer)(a=_.A(a.onDismissalCompletionRenderer,_.Kt9))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:a}}}),this.scrollAndDismissCard()};
_.t.processReelNonVideoContentDismissalCommand=function(a){var W=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);a=_.A(a,Ugd);this.activeDimissalTimeout=setTimeout(function(){W.scrollAndDismissCard()},Number(a==null?void 0:a.delayMs))};
_.t.scrollAndDismissCard=function(){var a=this,W=this.index;ZLf().push(W);_.DW(this,function(){var w=a.getPlayableNextIndex();w!==null&&(w=a.getActiveReelVideo(w),a.hideCardWithIndex(W),w==null||w.scrollIntoView({behavior:"smooth",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"}))})};
_.t.hideCardWithIndex=function(a){if(a=this.getActiveReelVideo(a))a.hidden=!0};
_.t.showCardWithIndex=function(a){if(a=this.getActiveReelVideo(a))a.hidden=!1};
_.t.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.t.activeChanged=function(a){_.Cx().dispatch(_.E_({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:a}}));if(a)document.addEventListener("keydown",_.yV(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var W;(W=this.player)==null||W.sendAbandonmentPing()}var w;(w=this.player)==null||w.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.yV(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.t.graftClientVisualElements=function(){if(this.data){var a=_.$J();_.dvy(a,_.tk({response:this.reelWatchSequenceResponse}));_.tc(a,this.nextReelVe);_.tc(a,this.prevReelVe);_.r("kevlar_shorts_auto_advance")&&(_.tc(a,this.loopToggleOffVe),_.tc(a,this.loopToggleOnVe));_.tc(a,this.ambientModeToggleVe);_.Qw(_.nS(),[this.nextReelVe,this.prevReelVe]);_.r("web_shorts_paused_state_logging")&&_.tc(a,this.reelPlayerPausedStateRendererVe)}};
_.t.graftNvcRenderer=function(){var a,W,w,Z,N=this.index<0?(a=this.shortsProcessedPrevSequence)==null?void 0:(W=a[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:W.command:(w=this.shortsProcessedSequence)==null?void 0:(Z=w[this.index])==null?void 0:Z.command;if(N&&this.isNonVideoContentCommand(N)){a=_.A(N,_.jT);var B,I;(a=(B=_.A(a==null?void 0:a.renderer,_.oS$))==null?void 0:(I=B.loggingDirectives)==null?void 0:I.trackingParams)&&_.$J().graftServerVe(a)}};
_.t.setActiveIndex=function(){_.K().resolve(_.EF).setActiveIndex(this.index)};
_.t.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.t.lazyUpdateMiniplayerData=function(){var a=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.hF.addLowPriorityJob(function(){a.updateMiniplayerData();a.updateMiniplayerDataJobId=void 0}))};
_.t.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.hF.cancelJob(this.updateMiniplayerDataJobId)};
_.t.updateMiniplayerData=function(){var a,W,w,Z=_.K().resolve(_.bV),N={shortsData:this.getCurrentShort(),previousButtonDisabled:!((a=this.prevButtonData)==null||!a.isDisabled),nextButtonDisabled:!((W=this.nextButtonData)==null||!W.isDisabled),playabilityStatus:(w=this.playerData)==null?void 0:w.playabilityStatus};_.T7(Z,N)};
_.t.resetPlayerLocation=function(){var a=this.getPlayer();this.initialPlayerContainer&&(a.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.t.movePlayerToVideo=function(a,W){var w=this;W=W===void 0?!0:W;var Z=this.getActiveReelVideo(a),N=this.getPlayer();if(Z){this.overlayContainer||(this.overlayContainer=_.M(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||N.appendTo(this.overlayContainer.playerContainer,void 0,!0));Z.appendChild(this.overlayContainer);var B;(B=this.player)==null||B.setSize(NaN,NaN);this.isActive||_.TP(_.hF,function(){w.isActive=!0});
N.style.visibility="visible";_.r("reels_web_disable_rtr_tick")||_.r("reels_web_use_pbs_first_shorts")&&a===0||_.Ak("r_tr");this.currentPlayerIndex=a;Z.appendChild(this.errorScreenContainer);var I;(I=this.JSC$19631_cinematicController)==null||_.dbn(I)}else W?_.hF.addLowPriorityJob(function(){w.movePlayerToVideo(w.index,!1)}):Math.random()<=_.yv("web_shorts_error_logging_threshold")&&_.nH(new _.Uw("Trying to movePlayerToVideo with undefined container.",{firstAttempt:W,
index:a}))};
_.t.enableFormatFirst=function(a){return _.r("web_enable_format_first")||a.adsOverlay&&_.r("web_enable_format_first_ads_only")||a.reelPlayerOverlayRenderer&&_.r("web_enable_format_first_organic_only")};
_.t.getAspectRatio=function(a){if(a!=null&&a.thumbnail&&this.enableFormatFirst(a))return"--ytd-shorts-player-ratio: "+z1K(a.thumbnail)};
_.t.getBackgroundImage=function(a){if(a!=null&&a.thumbnail)return(a=_.Dg(a.thumbnail.thumbnails))?'background-image:url("'+a+'");':"background-color:black;"};
_.t.onPersistentPanelActiveChanged=function(){var a=this.getCurrentShort();if(a&&this.enableFormatFirst(a)&&(a==null?0:a.thumbnail)&&z1K(a.thumbnail)!==.5625){var W;(W=this.player)==null||W.setSize(NaN,NaN)}};
_.t.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.t.moveCinematicsToVideo=function(){var a=_.M(this.hostElement).querySelector("ytd-reel-video-renderer");(a==null?0:a.cinematicContainer)&&a.cinematicContainer!==this.shortsCinematicContainer.parentElement&&a.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.t.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.t.updatePrevButtonData=function(){var a=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(a){var W;this.prevButtonData=a=Object.assign({},a,{accessibility:{label:_.P_("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:a.isDisabled||this.index===-(((W=this.shortsProcessedPrevSequence)==null?void 0:W.length)||0),tooltip:this.isUpArrowHidden?"":_.P_("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=a=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.t.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.t.updateNextButtonData=function(){var a=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(a){var W;this.nextButtonData=a=Object.assign({},a,{accessibility:{label:_.P_("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:a.isDisabled||this.index===((W=this.shortsProcessedSequence)==null?void 0:W.length),tooltip:_.P_("NEXT_VIDEO_LABEL")||""})}};
_.t.getPlayablePreviousIndex=function(){for(var a,W=this.index-1;W>=-(((a=this.prevShortsSequence)==null?void 0:a.length)||0);W--)if(!ZLf().includes(W))return W;return null};
_.t.getIndexInSequence=function(a,W){return a.findIndex(function(w){var Z;return((Z=_.A(w.command,_.gi))==null?void 0:Z.videoId)===W})};
_.t.handlePrevButtonClick=function(a){var W=this,w,Z;return _.P(function(N){w=W.getPlayablePreviousIndex();if(w===null)return N.return();W.gestureType=((Z=a)==null?void 0:Z.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";w===0&&(W.hidePreviousButtonImmediately=!0);if(W.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){W.transitionToVideoThrottle.fire(w)}),N.return();
W.scrollToVideoThrottle.fire(w);_.Xd(N)})};
_.t.getPlayableNextIndex=function(){for(var a,W=this.index+1;W<(((a=this.shortsProcessedSequence)==null?void 0:a.length)||0);W++)if(!ZLf().includes(W))return W;return null};
_.t.handleNextButtonClick=function(a,W){var w=this,Z,N;return _.P(function(B){Z=w.getPlayableNextIndex();if(Z===null)return B.return();Z===1&&(w.showPreviousButtonImmediately=!0);w.gestureType=((N=a)==null?void 0:N.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";W&&(w.gestureType=W);if(w.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){w.transitionToVideoThrottle.fire(Z)}),B.return();
w.scrollToVideoThrottle.fire(Z);_.Xd(B)})};
_.t.handleReelNavigateCommand=function(a,W,w){(a=_.A(a,kJi))&&W&&a.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(w)};
_.t.loadVideo=function(a,W){W=W===void 0?!1:W;if(a!==this.currentPlayerIndex){_.Cx().dispatch(NN(!1));if(this.isAd()&&!W){var w;(w=this.player)==null||w.notifyShortsAdSwipeEvent()}if((W=this.JSC$19631_cinematicController)!=null){var Z;(Z=W.currentCinematicEffect)==null||Z.pause()}if((Z=this.JSC$19631_cinematicController)!=null){var N;(N=Z.currentCinematicEffect)==null||N.clear()}Z=a>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(Z));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var B,I,X,v;N=a<0?(B=this.shortsProcessedPrevSequence)==null?void 0:(I=B[this.shortsProcessedPrevSequence.length+a])==null?void 0:I.command:(X=this.shortsProcessedSequence)==null?void 0:(v=X[a])==null?void 0:v.command;this.index=a;this.gestureType||(this.gestureType=Z?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
N&&this.isVideoContentCommand(N)&&(this.ytComponentBehavior.resolveCommand(N,{form:{createScreenConfig:{clickedVisualElement:Z?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(N&&this.isNonVideoContentCommand(N)){this.currentEndpoint=N;this.data=void 0;B=_.$J();I=_.A(N,_.jT);var U,O;(I=(U=_.A(I==null?void 0:I.renderer,_.oS$))==null?void 0:(O=U.screenLoggingData)==null?void 0:O.screenVeType)&&_.NJ(B,I);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo()}U=_.yv("reels_enable_early_continuation_offset")<=0?1:_.yv("reels_enable_early_continuation_offset");var S,T;if(((S=this.reelWatchSequenceResponse)==null?0:S.continuationEndpoint)&&((T=this.reelWatchSequenceResponse)==null?0:T.entries)&&a===this.reelWatchSequenceResponse.entries.length-U){var p,h;S={contentPlaybackContext:_.o1({},(h=_.A((p=this.currentEndpoint)==null?void 0:p.commandMetadata,_.mm))==null?void 0:h.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:S})}var L,F,x;((L=this.reelWatchSequenceResponse)==null?0:L.prevContinuationEndpoint)&&a===-(((F=this.reelWatchSequenceResponse)==null?void 0:(x=F.prevEntries)==null?void 0:x.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.t.setMiniplayerPreview=function(a){a=(a===void 0?0:a)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var W,w,Z=_.K().resolve(_.bV),N={shortsData:void 0,shortsPreviewThumbnail:a?(W=this.shortsProcessedSequence)==null?void 0:(w=W[a])==null?void 0:w.thumbnail:void 0};_.T7(Z,N)};
_.t.updateTitle=function(a){var W,w;a=(a==null?0:a.adPlacements)?"":(w=a==null?void 0:(W=a.videoDetails)==null?void 0:W.title)!=null?w:"";_.E$(this.hostElement,"yt-update-title",a)};
_.t.registerPanel=function(a){var W=_.K().resolve(_.SO);if(W){a=_.l(a.engagementPanels||[]);for(var w=a.next();!w.done;w=a.next()){w=w.value;var Z=w.engagementPanelSectionListRenderer,N=void 0,B=void 0,I=void 0,X=void 0,v=((N=Z)==null?void 0:N.targetId)||((B=Z)==null?void 0:B.panelIdentifier)||((I=Z)==null?void 0:(X=I.identifier)==null?void 0:X.tag);N=Z=void 0;(N=(Z=W).registerPanelContent)==null||N.call(Z,v,w)}}};
_.t.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;_.Cx().dispatch(NN(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Cx().dispatch(tsD(!1));var a=_.K().resolve(_.EF);a.dismissedIndices=[];a.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.K().resolve(_.bV).close(!0)};
_.t.processAppendReelWatchSequenceContinuationEntriesAction=function(a){var W=this,w;(w=this.intersectionObserver)==null||w.disconnect();a=a.appendReelWatchSequenceContinuationEntriesAction;if(a==null?0:a.entries){var Z;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.K8(((Z=this.reelWatchSequenceResponse)==null?void 0:Z.entries)||[]),_.K8(a.entries)),continuationEndpoint:a.continuationEndpoint})}else if(a==null?0:a.prevEntries){var N;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.K8(((N=this.reelWatchSequenceResponse)==null?void 0:N.prevEntries)||[]),_.K8(a.prevEntries)),prevContinuationEndpoint:a.prevContinuationEndpoint});_.hF.addLowPriorityJob(function(){W.movePlayerToVideo(W.index);var B;(B=W.getActiveReelVideo(W.index))==null||B.scrollIntoView({block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.hF.addLowPriorityJob(function(){W.observeShorts()},100)};
_.t.processWatchSequence=function(a){var W=this;return a.map(function(w){w=w.command;if(W.isVideoContentCommand(w)){var Z=_.A(w,_.gi);return{reelPlayerOverlayRenderer:_.A(Z==null?void 0:Z.overlay,_.kN_),thumbnail:Z.thumbnail,command:w}}return W.isNonVideoContentCommand(w)?(Z=_.A(w,_.jT),{reelNonVideoContentRenderer:_.A(Z==null?void 0:Z.renderer,_.oS$),command:w}):{command:w}})};
_.t.calculateIntersectionObserverThreshold=function(){if(!_.r("web_shorts_dynamic_intersection_observer_threshold"))return.6;var a=_.M(this.hostElement).querySelector("ytd-reel-video-renderer"),W=1;(a==null?0:a.offsetHeight)&&(a==null?0:a.offsetWidth)&&(W=Math.min(a.offsetHeight,this.shortsContainer.offsetHeight)/a.offsetHeight*(Math.min(a.offsetWidth,this.shortsContainer.offsetWidth)/a.offsetWidth));return Math.round(W*.6*10)/10};
_.t.isVideoContentCommand=function(a){_.K().resolve(_.EF);return!!_.A(a,_.gi)};
_.t.isNonVideoContentCommand=function(a){_.K().resolve(_.EF);return!!_.A(a,_.jT)};
_.t.initCinematicController=function(){var a=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19631_cinematicController=new _.Z_(this.shortsCinematicContainer,this.player);var W,w=_.A((W=this.data)==null?void 0:W.background,_.Ya);_.fzE(this.JSC$19631_cinematicController,w);_.Dbk(this.JSC$19631_cinematicController,mbD(w));_.GoD(this.JSC$19631_cinematicController);_.hF.addLowPriorityJob(function(){a.moveCinematicsToVideo()})}};
_.t.handleMiniplayerNavigateShorts=function(a){a==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():a==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.t.handleSignalActionToggleShortsPictureInPicture=function(){_.K().resolve(_.bV).pictureInPictureSupported()&&N10()};
_.t.shouldDisplayReelVideoOverlay=function(a,W){return _.r("web_enable_shorts_new_carousel")?Math.abs(a-W)<2:!0};
_.dU.Object.defineProperties(gA.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.reelWatchSequenceResponse)!=null&&a.prevEntries)return this.processWatchSequence([].concat(_.K8(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 W=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.K8(this.prevShortsSequence.slice(0,W)),[a],_.K8(this.prevShortsSequence.slice(W+
1)))}W=this.index+this.shortsProcessedPrevSequence.length;a.thumbnail=this.shortsProcessedPrevSequence[W].thumbnail;return[].concat(_.K8(this.shortsProcessedPrevSequence.slice(0,W)),[a],_.K8(this.shortsProcessedPrevSequence.slice(W+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 W=this.getIndexInSequence(this.shortsSequence,_.A(this.currentEndpoint,_.gi).videoId);if(this.index===0&&W!==-1)return this.currentPlayerIndex=this.index=W,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.K8(this.shortsSequence.slice(0,this.index)),[a],_.K8(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){a.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var w,Z,N,B;W=((Z=_.A((w=this.shortsProcessedSequence[0])==null?void 0:w.command,_.gi))==null?void 0:Z.videoId)===((B=_.A((N=this.shortsSequence[0])==null?void 0:N.command,_.gi))==null?void 0:B.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.K8(this.shortsProcessedSequence.slice(0,
this.index)),[a],_.K8(this.shortsSequence.slice(W)))}return[a].concat(_.K8(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,W;return this.index===((a=this.reelWatchSequenceResponse)==null?void 0:(W=a.entries)==null?void 0:W.length)}var w;return!((w=this.reelWatchSequenceResponse)==null?0:w.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,W,w;return this.isShortPlayable()||((W=_.A((a=this.data)==null?void 0:a.watchStatus,_.AMA))==null?void 0:(w=W.style)==null?void 0:w.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var a=this,W=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),w;if((this.data||W)&&(((w=this.data)==null?0:w.engagementPanels)||this.isAd()||W)){W=!1;this.activePanel="shorts-comments-panel";var Z;w=_.l(((Z=this.data)==null?void 0:Z.engagementPanels)||[]);for(Z=w.next();!Z.done;Z=w.next()){Z=Z.value.engagementPanelSectionListRenderer;var N=void 0,B=void 0,I=void 0,X=void 0;if((((N=Z)==null?void 0:(B=N.identifier)==
null?void 0:B.tag)||((I=Z)==null?void 0:I.targetId)||((X=Z)==null?void 0:X.panelIdentifier))===this.activePanel){W=!0;break}}if(this.isPersistentPanelActive){var v=_.K().resolve(_.SO);_.TP(_.hF,function(){v.showPanel(a.activePanel,void 0,void 0,void 0,null)},100)}var U;
w=[].concat(_.K8(Object.values(((U=this.data)==null?void 0:U.engagementPanels)||{})));if(_.r("enable_preview_panel_for_shorts_search_suggested_action")){var O,S,T,p,h;((p=_.A((O=this.data)==null?void 0:(S=O.overlay)==null?void 0:(T=S.reelPlayerOverlayRenderer)==null?void 0:T.metapanel,_.gSR))==null?void 0:(h=p.metadataItems)==null?void 0:h.find(function(L){var F,x;return((F=_.A(L,Sea))==null?void 0:(x=F.icon)==null?void 0:x.iconType)==="SEARCH"}))!==void 0&&w.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}U=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);O=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return U===void 0&&O===void 0||(U==null?0:U.isDisabled)||(O==null?void 0:O.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!W?(W=w==null?void 0:w.findIndex(function(L){var F,
x;return((F=L.engagementPanelSectionListRenderer)==null?void 0:(x=F.identifier)==null?void 0:x.tag)==="shorts-comments-panel"}),W===-1||W===void 0||w!=null&&w.splice(W,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.P_("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.P_("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:_.P_("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.P_("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(_.K8(Object.values(w||
{})))):w}}},
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,W,w,Z;if((W=this.playerData)==null?0:(w=W.playabilityStatus)==null?0:(Z=w.errorScreen)==null?0:Z.playerInterstitialRenderer)return _.hF.addLowPriorityJob(function(){a.movePlayerToVideo(a.index)}),this.playerData.playabilityStatus.errorScreen;
var N,B;return((N=this.data)==null?void 0:N.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((B=this.data)==null?0:B.watchStatus)&&_.A(this.data.watchStatus,_.hTJ)?(_.hF.addLowPriorityJob(function(){a.movePlayerToVideo(a.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.dU.Object.defineProperties(gA,{template:{configurable:!0,enumerable:!0,get:function(){if(T12===void 0){var a=document.createElement("template");_.n(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    <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    <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-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\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(_.y().content.cloneNode(!0),a.content.firstChild);T12=a}a=T12;return a}}});
gA.prototype.onNextButtonDataChange=gA.prototype.onNextButtonDataChange;gA.prototype.onPrevButtonDataChange=gA.prototype.onPrevButtonDataChange;gA.prototype.onPersistentPanelActiveChanged=gA.prototype.onPersistentPanelActiveChanged;gA.prototype.lazyUpdateMiniplayerData=gA.prototype.lazyUpdateMiniplayerData;gA.prototype.onShortsPipActiveChanged=gA.prototype.onShortsPipActiveChanged;gA.prototype.setActiveIndex=gA.prototype.setActiveIndex;gA.prototype.graftNvcRenderer=gA.prototype.graftNvcRenderer;
gA.prototype.graftClientVisualElements=gA.prototype.graftClientVisualElements;gA.prototype.onActiveChanged=gA.prototype.onActiveChanged;gA.prototype.onShortsDismiss=gA.prototype.onShortsDismiss;gA.prototype.onShortUndoDismiss=gA.prototype.onShortUndoDismiss;gA.prototype.playerDataChanged=gA.prototype.playerDataChanged;gA.prototype.afterPlayerStarted=gA.prototype.afterPlayerStarted;gA.prototype.unhideCurrentOverlay=gA.prototype.unhideCurrentOverlay;gA.prototype.onServiceRequestCompleted=gA.prototype.onServiceRequestCompleted;
gA.prototype.engagementPanelsChanged=gA.prototype.engagementPanelsChanged;gA.prototype.onFullscreenChange=gA.prototype.onFullscreenChange;gA.prototype.onResize=gA.prototype.onResize;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],gA.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.rG.YtPageBehavior),_.z("design:type",Object)],gA.prototype,"ytPageBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],gA.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(_.eG),_.z("design:type",Object)],gA.prototype,"ironResizableBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],gA.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],gA.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],gA.prototype,"ytdReduxBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],gA.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"playerData",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"reelWatchSequenceResponse",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"cachedReelWatchSequenceResponse",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"currentEndpoint",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"nextButtonData",void 0);
_.f([_.b(),_.z("design:type",Object)],gA.prototype,"prevButtonData",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"isPreviousPageShorts",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"index",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"delayedActiveIndex",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"playablePreviousIndex",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"player",void 0);
_.f([_.b(),_.z("design:type",Object)],gA.prototype,"isPlayerPaused",void 0);_.f([_.b({selector:yO2}),_.z("design:type",Object)],gA.prototype,"isPlayerStarted",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"intersectionObserver",void 0);_.f([_.b(),_.z("design:type",Number)],gA.prototype,"cinematicsInitializeJobId",void 0);_.f([_.b(),_.z("design:type",Number)],gA.prototype,"updateMiniplayerDataJobId",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"fitToVisibleBounds",void 0);
_.f([_.b(),_.z("design:type",Object)],gA.prototype,"pageSubtype",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gA.prototype,"panelShowDelayMs",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],gA.prototype,"enablePreviousContinuation",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gA.prototype,"shortsPipEnabled",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gA.prototype,"isDark",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gA.prototype,"shortsViewTransitions",void 0);_.f([_.b({selector:_.oa,reflectToAttribute:!0}),_.z("design:type",Object)],gA.prototype,"isFullscreen",void 0);_.f([_.b({selector:_.kB,reflectToAttribute:!0}),_.z("design:type",Object)],gA.prototype,"isShortsPipActive",void 0);_.f([_.w$("#shorts-inner-container"),_.z("design:type",HTMLElement)],gA.prototype,"shortsInnerContainer",void 0);
_.f([_.w$("#back-nav-button ytd-button-renderer"),_.z("design:type",_.sq)],gA.prototype,"backNavButton",void 0);_.f([_.w$("#shorts-container"),_.z("design:type",HTMLElement)],gA.prototype,"shortsContainer",void 0);_.f([_.dV("error-screen"),_.z("design:type",HTMLElement)],gA.prototype,"errorScreenContainer",void 0);_.f([_.dV("player"),_.z("design:type",Object)],gA.prototype,"playerElement",void 0);
_.f([_.dV("shorts-cinematic-container"),_.z("design:type",HTMLElement)],gA.prototype,"shortsCinematicContainer",void 0);_.f([_.dV("initial-player-container"),_.z("design:type",HTMLElement)],gA.prototype,"initialPlayerContainer",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"buttonOverride",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gA.prototype,"anchoredPanelActive",void 0);_.f([_.b(),_.z("design:type",String)],gA.prototype,"activePanel",void 0);
_.f([_.b(),_.z("design:type",Object)],gA.prototype,"isActive",void 0);_.f([_.b({selector:H59,reflectToAttribute:!0}),_.z("design:type",Object)],gA.prototype,"smallScreenPersistentPanel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gA.prototype,"isPersistentPanelActive",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"smallScreenSqueezeBack",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"enableScrollIntoViewCenter",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gA.prototype,"formatFirst",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gA.prototype,"enableFlexibleOverlay",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"panelContainer",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"overlayContainer",void 0);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"isShortsInitialized",void 0);
_.f([_.Q("reelWatchSequenceResponse"),_.z("design:type",Object),_.z("design:paramtypes",[])],gA.prototype,"prevShortsSequence",null);_.f([_.Q("data","prevShortsSequence"),_.z("design:type",Object),_.z("design:paramtypes",[])],gA.prototype,"shortsProcessedPrevSequence",null);_.f([_.Q("reelWatchSequenceResponse"),_.z("design:type",Object),_.z("design:paramtypes",[])],gA.prototype,"shortsSequence",null);
_.f([_.Q("data","shortsSequence"),_.z("design:type",Object),_.z("design:paramtypes",[])],gA.prototype,"shortsProcessedSequence",null);_.f([_.b({reflectToAttribute:!0}),_.Q("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],gA.prototype,"isUpArrowHidden",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("reelWatchSequenceResponse","index","endOfNextContinuation"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],gA.prototype,"isDownArrowHidden",null);_.f([_.b(),_.Q("index"),_.z("design:type",Number),_.z("design:paramtypes",[])],gA.prototype,"activeIndex",null);_.f([_.Q("isShortPlayable","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],gA.prototype,"shouldRenderOfflineContent",null);
_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"onResize",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],gA.prototype,"anchoredEngagementPanels",null);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"watchWhileEngagementPanels",void 0);_.f([_.a5("isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"onFullscreenChange",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"engagementPanelsChanged",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],gA.prototype,"onServiceRequestCompleted",null);_.f([_.Q("data","shortsSequence","index"),_.z("design:type",Object),_.z("design:paramtypes",[])],gA.prototype,"activeReel",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"unhideCurrentOverlay",null);_.f([_.a5("isPlayerStarted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"afterPlayerStarted",null);_.f([_.Q("playerData","reelWatchSequenceResponse","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],gA.prototype,"errorScreen",null);
_.f([_.Q("errorScreen"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],gA.prototype,"hasError",null);_.f([_.a5("playerData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],gA.prototype,"playerDataChanged",null);_.f([_.E6("yt-dismissible-item-undo-feedback"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"onShortUndoDismiss",null);
_.f([_.E6("yt-disable-lockup-interaction"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],gA.prototype,"onShortsDismiss",null);_.f([_.lO("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"onActiveChanged",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"graftClientVisualElements",null);
_.f([_.a5("currentPlayerIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"graftNvcRenderer",null);_.f([_.a5("index"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"setActiveIndex",null);_.f([_.a5("isShortsPipActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"onShortsPipActiveChanged",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"lazyUpdateMiniplayerData",null);_.f([_.b(),_.z("design:type",Object)],gA.prototype,"onOverlayDensityChanged",void 0);_.f([_.a5("isPersistentPanelActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"onPersistentPanelActiveChanged",null);
_.f([_.a5("index","data","isUpArrowHidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"onPrevButtonDataChange",null);_.f([_.a5("index","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"onNextButtonDataChange",null);gA=_.f([_.C({is:"ytd-shorts"})],gA);_.K0.registerService(_.jhe,gA);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.AK("JzFVk");
var V$k=function(a){return _.k("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},mpk(a.data.ctaButton,{buttonViewModel:{}}),_.k(_.k_,{text:a.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var z$n;var HhI;var JU=function(){return _.u.apply(this,arguments)||this};
_.c(JU,_.u);JU.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
JU.prototype.computeBlueBottomLink=function(a){return a};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],JU.prototype,"data",void 0);_.f([_.b({computed:"computeIcon_(data.bottomIcon)"}),_.z("design:type",String)],JU.prototype,"bottomIcon",void 0);
_.f([_.b({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.z("design:type",Boolean)],JU.prototype,"enableBlueBottomLink",void 0);JU=_.f([_.C({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],JU);
_.D(JU,"ytd-web-answer-renderer",function(){if(HhI!==void 0)return HhI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return HhI=a},{mode:_.Vn("kevlar_poly_si_batch_j035")?1:2});var yrX;var FO=function(){var a=_.u.apply(this,arguments)||this;a.hasChipBar=!1;return a};
_.c(FO,_.u);FO.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}}};
FO.prototype.computeHasChipBar=function(a){return!(a==null||!a.chipBar)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],FO.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.z("design:type",Object)],FO.prototype,"hasChipBar",void 0);FO=_.f([_.C({is:"ytd-search-header-renderer",disableElementRegistration:!0})],FO);
_.D(FO,"ytd-search-header-renderer",function(){if(yrX!==void 0)return yrX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return yrX=a},{mode:1});var EMD;var M4=function(){return _.u.apply(this,arguments)||this};
_.c(M4,_.u);M4.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],M4.prototype,"data",void 0);M4=_.f([_.C({disableElementRegistration:!0,is:"ytd-page-continuation"})],M4);
_.D(M4,"ytd-page-continuation",function(){if(EMD!==void 0)return EMD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return EMD=a},{mode:1});var azE;var Wtf;var wWk;var Rh=function(){return _.u.apply(this,arguments)||this};
_.c(Rh,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Rh.prototype,"data",void 0);Rh=_.f([_.C({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Rh);
_.D(Rh,"ytd-watch-card-one-vs-one-event",function(){if(wWk!==void 0)return wWk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return wWk=a},{mode:1});var q4=function(){return _.u.apply(this,arguments)||this};
_.c(q4,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],q4.prototype,"data",void 0);q4=_.f([_.C({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],q4);
_.D(q4,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Wtf!==void 0)return Wtf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Wtf=a},{mode:1});var Z5E;var QW=function(){return _.u.apply(this,arguments)||this};
_.c(QW,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],QW.prototype,"data",void 0);QW=_.f([_.C({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],QW);
_.D(QW,"ytd-banner-and-box-hero-image-renderer",function(){if(Z5E!==void 0)return Z5E;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Z5E=a},{mode:1});var NcD;var xP=function(){var a=_.u.apply(this,arguments)||this;a.modern=_.r("web_modern_buttons");return a};
_.c(xP,_.u);xP.prototype.computeIcon=function(){var a,W,w=(a=this.data)==null?void 0:(W=a.icon)==null?void 0:W.iconType;if(w)return _.EN(w)};
xP.prototype.computeButtonShape=function(){var a;return{buttonText:_.sd((a=this.data)==null?void 0:a.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.dU.Object.defineProperties(xP.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"}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xP.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],xP.prototype,"modern",void 0);_.f([_.b({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.style"),_.z("design:type",Object),_.z("design:paramtypes",[])],xP.prototype,"buttonColor",null);
xP=_.f([_.C({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],xP);
_.D(xP,"ytd-call-to-action-button-renderer",function(){if(NcD!==void 0)return NcD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return NcD=a},{mode:1});var tCX;var bo=function(){return _.u.apply(this,arguments)||this};
_.c(bo,_.u);bo.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.M(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.G$(this.data.leftThumbnail.thumbnails,216)+")")};
bo.prototype.onLeftThumbnailChanged=bo.prototype.onLeftThumbnailChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],bo.prototype,"data",void 0);_.f([_.a5("data.leftThumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bo.prototype,"onLeftThumbnailChanged",null);bo=_.f([_.C({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],bo);
_.D(bo,"ytd-collage-hero-image-renderer",function(){if(tCX!==void 0)return tCX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return tCX=a},{mode:1});var $b2;var sz=function(){return _.u.apply(this,arguments)||this};
_.c(sz,_.u);sz.prototype.computeStyle=function(a){return a};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sz.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],sz.prototype,"componentStyle",void 0);sz=_.f([_.C({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],sz);
_.D(sz,"ytd-single-hero-image-renderer",function(){if($b2!==void 0)return $b2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return $b2=a},{mode:1});var Bca;var uo=function(){return _.u.apply(this,arguments)||this};
_.c(uo,_.u);_.t=uo.prototype;
_.t.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:_.r("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.t.computeSubtitle=function(a){if(this.data){var W;if(this.data.upcomingEventData){a=_.sd(a.subtitle);var w=Number(this.data.upcomingEventData.startTime);isNaN(w)||(W=_.b8(_.Ms(a,w)))}else W=a.subtitle;return W}};
_.t.onHeroTap=function(a){a.preventDefault();var W=this.data&&this.data.navigationEndpoint;!W||!_.b5(_.qj(a),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.b5(_.qj(a),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.r("kevlar_watchcard_hero_video_renderer_killswitch")?_.E$(this.hostElement,"yt-navigate",{navigationEndpoint:W}):this.ytComponentBehavior.resolveCommand(W))};
_.t.computeHeroTabIndex=function(a){return a&&a.simpleText?-1:0};
_.t.computeHeroRole=function(a){return a&&a.simpleText?"":"link"};
_.t.computeIsReminderButtonPresent=function(a){return!(!a||!a.reminderButton)};
_.t.computeHideBottomItems=function(a){return!(this.computeIsReminderButtonPresent(a)||a.subtitle)};
_.t.dataChanged=function(){var a=this.get("data.buttons.buttonRenderer.serviceEndpoint"),W;((W=_.A(a==null?void 0:a.commandMetadata,_.h4))==null?0:W.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(a)};
uo.prototype.dataChanged=uo.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],uo.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],uo.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],uo.prototype,"data",void 0);
_.f([_.b({computed:"computeSubtitle(data)"}),_.z("design:type",String)],uo.prototype,"subtitle",void 0);_.f([_.b({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],uo.prototype,"isReminderButtonPresent",void 0);_.f([_.b({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],uo.prototype,"hideBottomItems",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uo.prototype,"dataChanged",null);uo=_.f([_.C({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],uo);
_.D(uo,"ytd-watch-card-hero-video-renderer",function(){if(Bca!==void 0)return Bca;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Bca=a},{mode:1});var lz0;var CE=function(){return _.u.apply(this,arguments)||this};
_.c(CE,_.u);_.t=CE.prototype;_.t.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"}}}};
_.t.computeTitleBadges=function(a){return a?[a]:[]};
_.t.computeHeaderStyle=function(a){return a?a.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.t.computeAvatarAriaLabel=function(a){if(a){var W,w,Z,N;return(N=(W=a.avatar)==null?void 0:(w=W.accessibility)==null?void 0:(Z=w.accessibilityData)==null?void 0:Z.label)!=null?N:_.sd(a==null?void 0:a.title)}};
_.t.computeAvatarHeight=function(a){return a==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.t.computeBadgeRowClass=function(a){return(a==null?0:a[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],CE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],CE.prototype,"data",void 0);_.f([_.b({computed:"computeTitleBadges(data.titleBadge)"}),_.z("design:type",Array)],CE.prototype,"titleBadges",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.z("design:type",String)],CE.prototype,"headerStyle",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.z("design:type",String)],CE.prototype,"badgeRowClass",void 0);CE=_.f([_.C({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],CE);
_.D(CE,"ytd-watch-card-rich-header-renderer",function(){if(lz0!==void 0)return lz0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return lz0=a},{mode:1});var Iz0;var PXI;var GI=function(){return _.u.apply(this,arguments)||this};
_.c(GI,_.u);GI.prototype.onMetadataTap=function(a){var W=this.data&&this.data.navigationEndpoint;W&&!_.b5(_.qj(a),this.hostElement,["A".toString()])&&_.E$(this.hostElement,"yt-navigate",{endpoint:W})};
_.dU.Object.defineProperties(GI.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 W=_.sd(this.data.subtitle),w=Number(this.data.upcomingEventData.startTime);isNaN(w)||(a=_.b8(_.Ms(W,w)))}else a=this.data.subtitle;return a}}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],GI.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data.style"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],GI.prototype,"isCondensed",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],GI.prototype,"subtitle",null);
GI=_.f([_.C({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],GI);
_.D(GI,"ytd-watch-card-compact-video-renderer",function(){if(PXI!==void 0)return PXI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return PXI=a},{mode:1});var XWk;var DR=function(){return _.u.apply(this,arguments)||this};
_.c(DR,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],DR.prototype,"data",void 0);DR=_.f([_.C({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],DR);
_.D(DR,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(XWk!==void 0)return XWk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return XWk=a},{mode:1});var fE=function(){return _.u.apply(this,arguments)||this};
_.c(fE,_.u);fE.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}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],fE.prototype,"ytRendererStamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],fE.prototype,"data",void 0);fE=_.f([_.C({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],fE);
_.D(fE,"ytd-vertical-watch-card-list-renderer",function(){if(Iz0!==void 0)return Iz0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Iz0=a},{mode:1});var v0a;var dR=function(){var a=_.u.apply(this,arguments)||this;a.ariaExpanded="false";return a};
_.c(dR,_.u);_.t=dR.prototype;_.t.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.t.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])};
_.t.computeEpisodesInfo=function(a,W,w){if(a!==void 0&&W.length===a.length)return a[w]};
_.t.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.t.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.t.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.t.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.t.getUppercaseSimpleString=function(a){return this.ytRendererBehavior.getSimpleString(a).toUpperCase()};
_.t.updateCurrentSeasonIndexFromBinding=function(a){this.currentSeasonIndex=a.detail.value};
dR.prototype.onIronOverlayClosed=dR.prototype.onIronOverlayClosed;dR.prototype.currentSeasonIndexChanged=dR.prototype.currentSeasonIndexChanged;dR.prototype.dataChanged=dR.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],dR.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",String)],dR.prototype,"label",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],dR.prototype,"currentSeasonIndex",void 0);_.f([_.b({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.z("design:type",Object)],dR.prototype,"episodesInfo",void 0);_.f([_.b({value:"false"}),_.z("design:type",Object)],dR.prototype,"ariaExpanded",void 0);_.f([_.w$("#lists"),_.z("design:type",Object)],dR.prototype,"lists",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dR.prototype,"dataChanged",null);_.f([_.lO("currentSeasonIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dR.prototype,"currentSeasonIndexChanged",null);_.f([_.E6("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],dR.prototype,"onIronOverlayClosed",null);
dR=_.f([_.C({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],dR);
_.D(dR,"ytd-watch-card-section-dropdown-renderer",function(){if(v0a!==void 0)return v0a;var a=document.createElement("template");_.n(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="yt-icons:arrow_drop_down" 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(_.y().content.cloneNode(!0),
a.content.firstChild);return v0a=a},{mode:1});var g0X;var mr=function(){var a=_.u.apply(this,arguments)||this;a.isSearch=!1;return a};
_.c(mr,_.u);mr.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}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],mr.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],mr.prototype,"isSearch",void 0);mr=_.f([_.C({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],mr);
_.D(mr,"ytd-watch-card-section-sequence-renderer",function(){if(g0X!==void 0)return g0X;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
return g0X=a},{mode:1});var mpk=_.T9({buttonViewModel:_.F7});_.En(V$k);_.HX(V$k,"ytd-button-banner-view-model",{propNames:["data"]});var VW=function(){var a=_.u.apply(this,arguments)||this;a.isSearch=!1;return a};
_.c(VW,_.u);
VW.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"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],VW.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],VW.prototype,"rounded",void 0);_.f([_.b(),_.z("design:type",Object)],VW.prototype,"isSearch",void 0);
VW=_.f([_.C({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],VW);
_.D(VW,"ytd-universal-watch-card-renderer",function(){if(azE!==void 0)return azE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return azE=a},{mode:1});var o0z;_.Ct(_.xQ(function(a){var W=a.data;var w;a=!((w=_.K().resolve(_.Vv(_.Lt)))==null||!w());w={};return _.k("overview-message-view-model",{class:_.W$("ytwOverviewMessageViewModelHost",(w.ytwOverviewMessageViewModelDarkBackground=a,w.ytwOverviewMessageViewModelLightBackground=!a,w))},_.k(_.Y,{cond:function(){return W().primaryImage},
then:function(Z){return _.k(_.qw,{data:Z,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.k(_.Y,{cond:function(){return W().primaryText},
then:function(){return _.k("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.k(_.k_,{text:function(){return W().primaryText}}))}}),_.k(_.Y,{cond:function(){return W().secondaryText},
then:function(){return _.k("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.k(_.k_,{text:function(){return W().secondaryText}}))}}))},"yi"),"overview-message-view-model",{props:{data:_.qR}});_.HX(_.$ZH,"ytd-overview-answer-view-model",{propNames:["data"]});var zI=function(){return _.u.apply(this,arguments)||this};
_.c(zI,_.u);zI.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"}}}};
zI.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],zI.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.j8),_.z("design:type",Object)],zI.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],zI.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],zI.prototype,"isSearch",void 0);
zI=_.f([_.C({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],zI);
_.D(zI,"ytd-secondary-search-container-renderer",function(){if(o0z!==void 0)return o0z;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
return o0z=a},{mode:1});var kof;var HD=function(){var a=_.u.apply(this,arguments)||this;a.renderSecondarySearchContainer=!1;a.isSearch=!1;a.isSearchDova=_.r("dova_on_search");return a};
_.c(HD,_.u);_.t=HD.prototype;_.t.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.t.created=function(){var a=this;this.boundStampSecondarySearchContainerIfFits=function(){a.stampSecondarySearchContainerIfFits()};
_.jm("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.t.computeIsSearchFrictionPage=function(a){var W,w,Z,N,B;a=a==null?void 0:(W=a.primaryContents)==null?void 0:(w=W.sectionListRenderer)==null?void 0:(Z=w.contents)==null?void 0:(N=Z[0])==null?void 0:(B=N.itemSectionRenderer)==null?void 0:B.contents;if(!a)return!1;W=_.l(a);for(w=W.next();!w.done;w=W.next())if(Z=void 0,(Z=w.value)==null?0:Z.searchFrictionViewModel)return!0;return!1};
_.t.computeShowSecondaryColumn=function(a,W){return!!(W&&W.secondaryContents&&a)};
_.t.activeChanged=function(){var a=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.yV(this,this.debounceStampSecondarySearchContainerIfFits)),_.cA(function(){a.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.yV(this,this.debounceStampSecondarySearchContainerIfFits))};
_.t.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.t.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.t.debounceStampSecondarySearchContainerIfFits=function(){_.eK(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.t.onRetrieveLocation=function(a,W){W.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);a.stopPropagation()};
_.t.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
HD.prototype.dataChanged=HD.prototype.dataChanged;HD.prototype.onRetrieveLocation=HD.prototype.onRetrieveLocation;HD.prototype.persistentGuideChanged=HD.prototype.persistentGuideChanged;HD.prototype.activeChanged=HD.prototype.activeChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],HD.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.R(_.eG),_.z("design:type",Object)],HD.prototype,"ironResizableBehavior",void 0);_.f([_.b(),_.z("design:type",Boolean)],HD.prototype,"active",void 0);_.f([_.b(),_.z("design:type",Object)],HD.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],HD.prototype,"useBiggerThumbs",void 0);_.f([_.b({reflectToAttribute:!0,value:function(){return _.Et("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],HD.prototype,"biggerThumbsStyle",void 0);_.f([_.b(),_.z("design:type",Object)],HD.prototype,"renderSecondarySearchContainer",void 0);_.f([_.b({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.z("design:type",Boolean)],HD.prototype,"showSecondaryColumn",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.z("design:type",Boolean)],HD.prototype,"isSearchFrictionPage",void 0);
_.f([_.b(),_.z("design:type",Object)],HD.prototype,"isSearch",void 0);_.f([_.b(),_.z("design:type",Object)],HD.prototype,"isSearchDova",void 0);_.f([_.a5("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HD.prototype,"activeChanged",null);_.f([_.a5("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HD.prototype,"persistentGuideChanged",null);
_.f([_.E6("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],HD.prototype,"onRetrieveLocation",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HD.prototype,"dataChanged",null);HD=_.f([_.C({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],HD);
_.D(HD,"ytd-two-column-search-results-renderer",function(){if(kof!==void 0)return kof;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return kof=a},{mode:1});var yW=function(){var a=_.u.apply(this,arguments)||this;a.hasSearchHeader=!1;a.hasSecondaryContent=!1;a.hasBiggerThumbs=_.r("enable_desktop_search_bigger_thumbs");a.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return a};
_.c(yW,_.u);_.t=yW.prototype;_.t.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:_.nZ(["aa","eocs"])}}};
_.t.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.t.loadPage_=function(a){this.initCsi();a&&(this.data=a,_.jm("REFINEMENTS_TUPLE",["FromSearchResponse",a.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.CJ(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.t.initCsi=function(){_.pV("results",["ol","cpt"])};
_.t.updateTitle=function(){var a=_.JK(window.location.href,"q");a||(a=_.JK(window.location.href,"search_query"));_.E$(this.hostElement,"yt-update-title",a||"")};
_.t.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.t.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.r("web_srp_data_changed_terminate_imp_killswitch")||_.aV(this.hostElement,"yt-terminate-video-preview-action")};
_.t.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.t.computeHasSearchHeader=function(a){var W;a=a==null?void 0:(W=a.header)==null?void 0:W.searchHeaderRenderer;return!!a&&(!!a.searchFilterButton||!!a.chipBar)};
_.t.computeHasSecondaryContent=function(a){var W,w;return!!(a==null?0:(W=a.contents)==null?0:(w=W.twoColumnSearchResultsRenderer)==null?0:w.secondaryContents)};
_.dU.Object.defineProperties(yW,{template:{configurable:!0,enumerable:!0,get:function(){if(z$n===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);z$n=a}a=z$n;return a}}});
yW.prototype.onReloadContinuationFinish=yW.prototype.onReloadContinuationFinish;yW.prototype.dataChanged=yW.prototype.dataChanged;_.f([_.R(_.rG.YtPageBehavior),_.z("design:type",Object)],yW.prototype,"ytPageBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],yW.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.j8),_.z("design:type",Object)],yW.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],yW.prototype,"data",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],yW.prototype,"monitorScroll",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yW.prototype,"hasSearchHeader",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yW.prototype,"hasSecondaryContent",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yW.prototype,"hasBiggerThumbs",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yW.prototype,"dataChanged",null);
_.f([_.E6("yt-reload-continuation-finish"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yW.prototype,"onReloadContinuationFinish",null);yW=_.f([_.C({is:"ytd-search"})],yW);_.K0.registerService(_.nP9,yW);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.AK("h8y2qb");
var mUI=function(a){if(a=_.erD(a)){var W;(W=a.sources)!=null&&W[0]?(W=_.j6e(a),W=W<1?"VERTICAL":W>1?"HORIZONTAL":"SQUARE"):W=void 0;return W}},AB=function(a){_.K9.call(this,"upload");
this.opts.query=a},zbf=function(a,W){return _.k(Von,{data:a,
onYtNavigate:W})},yWD=function(a,W){return a.map(function(w){if(w.tabRenderer)return HcK(w.tabRenderer);
if(w.expandableTabRenderer&&W){var Z=w.expandableTabRenderer;return{customTabRenderable:function(){return W(Z)}}}return{}})},HcK=function(a){return{identifier:a.tabIdentifier,
aTagConfig:_.hQ({innertubeCommand:a.endpoint,forceNewState:!0}),title:a.title,selected:a.selected,disabled:a.unselectable,icon:a.icon}},EAE=function(a,W){return _.tG(a.entities,"pageHeaderEntity",W)},awn=function(a){return _.E_({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:a})},WN0=function(a){if(!_.md(document,"gtm-noscript")){var W=document.createElement("noscript");
W.id="gtm-noscript";W.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+a+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(W)}};_.NT(AB,_.K9);AB.prototype.JSC$7982_setLabel=function(a){AB.superClass_.JSC$7982_setLabel.call(this,a);return this};
AB.prototype.addUploadMetadata=function(a,W){AB.superClass_.addUploadMetadata.call(this,a,W);return this};var wcE=function(a){if(a!=="youtubebanner"&&a!=="youtube-channel-banner")throw Error("Tl");AB.call(this,a)};
_.c(wcE,AB);wcE.prototype.JSC$7982_setLabel=function(a){AB.prototype.JSC$7982_setLabel.call(this,a);return this};
wcE.prototype.addUploadMetadata=function(a,W){AB.prototype.addUploadMetadata.call(this,a,W);return this};var ZbX=[_.eG,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(a){_.Tq(a).path[0]!==this&&(this.resetLayout(),a.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var a=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.tA(this._layoutDebouncer,_.gJ,a);_.$i(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 NNI=[_.JuA,{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,W){var w=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[a];if(!w)throw new ReferenceError(this._getUndefinedMsg(a));a=this._boundEffect(w,W||{});a.setUp();return a},
_effectsChanged:function(a,W,w){this._tearDownEffects();a&&w&&(a.split(" ").forEach(function(Z){var N;Z!==""&&((N=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[Z])?this._effects.push(this._boundEffect(N,W[Z])):console.warn(this._getUndefinedMsg(Z)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(a,W){W=W||{};var w=parseFloat(W.startsAt||0),Z=parseFloat(W.endsAt||1),N=Z-w,B=function(){};
Z=w===0&&Z===1?a.run:function(I,X){a.run.call(this,Math.max(0,(I-w)/N),X)};
return{setUp:a.setUp?a.setUp.bind(this,W):B,run:a.run?Z.bind(this):B,tearDown:a.tearDown?a.tearDown.bind(this):B}},
_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,W){this._effectsRunFn&&this._effectsRunFn.forEach(function(w){w(a,W)})},
_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("Ul`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 W={};a=parseFloat(a.scalar);W.background=this._getDOMRef("background");W.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");W.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");W.deltaBg=W.backgroundFrontLayer.offsetHeight-W.background.offsetHeight;W.deltaBg===0?(isNaN(a)&&(a=.8),W.deltaBg=(this._dHeight||0)*a):(isNaN(a)&&(a=
1),W.deltaBg*=a);this._fxParallaxBackground=W},
run:function(a){var W=this._fxParallaxBackground;this.transform("translate3d(0px, "+W.deltaBg*Math.min(1,a)+"px, 0px)",W.backgroundFrontLayer);W.backgroundRearLayer&&this.transform("translate3d(0px, "+W.deltaBg*Math.min(1,a)+"px, 0px)",W.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var tZD;var $zd;var BN0=function(){};
_.t=BN0.prototype;_.t._scrollTargetChanged=function(){};
_.t.scroll=function(){};
_.t._isValidScrollTarget=function(){};
_.t._toggleScrollListener=function(){};
_.t.toggleScrollListener=function(){};
_.t.createEffect=function(){};
_.t._effectsChanged=function(){};
_.t._layoutIfDirty=function(){};
_.t._boundEffect=function(){};
_.t._setUpEffect=function(){};
_.t._tearDownEffects=function(){};
_.t._runEffects=function(){};
_.t._scrollHandler=function(){};
_.t._scrollStateChanged=function(){};
_.t._getUndefinedMsg=function(){};
_.t.notifyResize=function(){};
_.t.assignParentResizable=function(){};
_.t.stopResizeNotificationsFor=function(){};
_.t._subscribeIronResize=function(){};
_.t._unsubscribeIronResize=function(){};
_.t.resizerShouldNotify=function(){};
_.t._onDescendantIronResize=function(){};
_.t._fireResize=function(){};
_.t._onIronRequestResizeNotifications=function(){};
_.t._parentResizableChanged=function(){};
_.t._notifyDescendant=function(){};
_.t._requestResizeNotifications=function(){};
_.t._findParent=function(){};
_.t._appResetLayoutHandler=function(){};
_.t.resetLayout=function(){};
_.t._notifyLayoutChanged=function(){};
_.t._notifyDescendantResize=function(){};
_.t._setThresholdTriggered=function(){};
BN0=_.kQ({_template:function(){if($zd!==void 0)return $zd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;tZD===void 0&&(tZD=document.createElement("template"));var Z=tZD;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return $zd=a},
is:"tp-yt-app-header",behaviors:[NNI,ZbX],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=_.Tq(this.$.slot).getDistributedNodes(),W=0,w;w=a[W];W++)if(w.nodeType===Node.ELEMENT_NODE)if(w.hasAttribute("sticky")){this._stickyElRef=w;break}else this._stickyElRef||(this._stickyElRef=w);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var a=this._clampedScrollTop,W=this._height===0||a===0,w=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;W||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();W?this._updateScrollState(a,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=w}},
_updateScrollState:function(a,W){if(this._height!==0){var w=0,Z=this._top;var N=this._maxHeaderTop;var B=a-this._lastScrollTop,I=Math.abs(B),X=a>this._lastScrollTop,v=performance.now();this._mayMove()&&(w=this._clamp(this.reveals?Z+B:a,0,N));a>=this._dHeight&&(w=this.condenses&&!this.fixed?Math.max(this._dHeight,w):w,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&I<100){if(v-this._initTimestamp>300||this._wasScrollingDown!==X)this._initScrollTop=a,this._initTimestamp=v;a>=N&&
(Math.abs(this._initScrollTop-a)>30||I>10?(X&&a>=N?w=N:!X&&a>=this._dHeight&&(w=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((w-Z)/(B/(v-this._lastTimestamp)),0,300)+"ms"):w=this._top)}N=this._dHeight===0?a>0?1:0:w/this._dHeight;W||(this._lastScrollTop=a,this._top=w,this._wasScrollingDown=X,this._lastTimestamp=v);if(W||N!==this._progress||Z!==w||a===0)this._progress=N,this._runEffects(N,w),this._transformHeader(w)}},
_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,W,w){return Math.min(w,Math.max(W,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),_.Tq(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 _.Tq(this).querySelector("[main-title]");case "condensedTitle":return _.Tq(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var lw2;var Iw9;_.kQ({_template:function(){if(Iw9!==void 0)return Iw9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;lw2===void 0&&(lw2=document.createElement("template"));var Z=lw2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return Iw9=a},
is:"tp-yt-app-header-layout",behaviors:[ZbX],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Tq(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 W=this.getBoundingClientRect(),w=document.documentElement.clientWidth-W.right;a.style.left=W.left+"px";a.style.right=w+"px"}W=this.$.contentContainer.style;w=a.offsetHeight;a.fixed&&!a.condenses&&this.hasScrollingRegion?(W.marginTop=w+"px",W.paddingTop=""):(W.paddingTop=w+"px",W.marginTop="")}}});var PvD=new _.H("replaceFeedContentAction");var XcD=new _.H("alertCommand");var vFD=new _.H("manageLabsStateCommand");var gFa=new _.H("channelBannerEditorRenderer");var oF2=new _.H("inlineFormRenderer");var hB=new _.H("playlistSidebarPrimaryInfoRenderer");var kYk=new _.H("productDetailsThumbnailRenderer"),Uz9=new _.H("productDetailsVariantRenderer"),Oba=new _.H("productDetailsVariantOptionRenderer"),SQD=new _.H("productDetailsOffersContainerRenderer"),YQk=new _.H("productDetailsOfferRenderer");var TNE=new _.H("shoppingFlaggingRenderer");var KNK=new _.H("playlistBylineRenderer");var pcf=new _.H("insertChannelTabCommand");var iy=function(){return _.Nt.apply(this,arguments)||this};
_.c(iy,_.Nt);_.t=iy.prototype;_.t.activeChanged=function(){if(this.active){var a=_.M(this.hostElement).querySelector("#header");a&&_.E$(a,"iron-resize");window.addEventListener("scroll",_.yV(this,this.onScroll))}else window.removeEventListener("scroll",_.yV(this,this.onScroll)),_.E$(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.t.guideVisibleChanged=function(){var a=_.M(this.hostElement).querySelector("#header");a&&_.E$(a,"iron-resize")};
_.t.onScroll=function(){var a=this;_.eK(this,"onScroll",function(){var W=_.M(a.hostElement).querySelector("#header");W&&W.polymerController&&(W=W.polymerController.getScrollState().progress===1?"standard":"seamed",_.E$(a.hostElement,"yt-request-panel-mode-change",{mode:W}))},10)};
_.t.tabsChanged=function(){if(this.tabs){for(var a=null,W=0,w=this.tabs.length;W<w;++W){var Z=this.tabs[W].tabRenderer;if(Z&&Z.selected){a=W;break}}this.selected=a}};
_.t.onTabsActivate=function(a){_.E$(this.hostElement,"yt-navigate",{endpoint:this.tabs[a.detail.selected].tabRenderer.endpoint})};
iy.prototype.tabsChanged=iy.prototype.tabsChanged;iy.prototype.guideVisibleChanged=iy.prototype.guideVisibleChanged;iy.prototype.activeChanged=iy.prototype.activeChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],iy.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.b(),_.z("design:type",Array)],iy.prototype,"tabs",void 0);
_.f([_.b(),_.z("design:type",Object)],iy.prototype,"selected",void 0);_.f([_.b(),_.z("design:type",Boolean)],iy.prototype,"active",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],iy.prototype,"disableHeaderFluidWidth",void 0);_.f([_.a5("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iy.prototype,"activeChanged",null);
_.f([_.a5("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iy.prototype,"guideVisibleChanged",null);_.f([_.a5("tabs"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iy.prototype,"tabsChanged",null);iy=_.f([_.BA()],iy);var rjk=[_.E.YtRendererBehavior,_.FG.YtdGuideStateAwareBehavior,iy.prototype];var AjD=2/3,hFk=_.Ob(130749),ib0=function(a,W){var w=this;this.element=a;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){w.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:AjD,moveAction:function(Z){w.moveAction(Z)},
triggerAction:function(){w.element.isReloading=!0;_.LA(_.$J(),{visualElement:hFk});_.WX.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:w.element}})}}}};
_.$V(_.$J(),hFk,this.layer);this.gesture=new _.Bf(a,W,this.refreshConfig,"pan-down");this.attach()};
_.t=ib0.prototype;_.t.attach=function(){this.gesture.attach()};
_.t.detach=function(){this.gesture.detach()};
_.t.reset=function(){this.element.close()};
_.t.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.t.moveAction=function(a){this.element.rotation=a*360};var cj9=_.Ob(130750),cf=function(a,W,w,Z,N){var B=this;this.element=a;this.parent=w;this.channelHeader=Z;this.ytdReduxDispatch=N;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){B.tabsStartAtInPx=B.channelHeader.clientHeight-48;var I;(I=B.selectedTab)!=null&&I.title&&(I=_.K().resolve(_.Vv(_.Gw)))&&(I=I.getCurrentPage(),B.lastVisitedTabScrollPosition=I.getScrollTop(),B.previousTab&&
((B.lastVisitedTabScrollPosition===void 0?0:B.lastVisitedTabScrollPosition<B.channelHeader.clientHeight-48)?B.scrollPositionForTabs.has(B.selectedTab.title)&&B.scrollPositionForTabs.delete(B.selectedTab.title):B.scrollPositionForTabs.set(B.selectedTab.title,I.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:eF0(),triggerAction:function(){B.navigate(B.previousTab)},
moveAction:function(I,X){B.moveAction(I,X)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-eF0(),triggerAction:function(){B.navigate(B.nextTab)},
moveAction:function(I,X){B.moveAction(I,X)}}}};
_.$V(_.$J(),cj9,this.layer);this.gesture=new _.Bf(a,W,this.tabConfig);this.attach()};
cf.prototype.attach=function(){this.gesture.attach()};
cf.prototype.detach=function(){this.gesture.detach()};
cf.prototype.tabsChanged=function(a){if(a){var W=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;a=_.l(a);for(var w=a.next();!w.done;w=a.next()){w=w.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=w);var Z=void 0;if((Z=w)==null?0:Z.selected)this.previousTab=W,this.selectedTab=w;W=w}W=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}});
W.config=a;this.scrollPositionNeedsUpdate=!0}};
cf.prototype.moveAction=function(a,W){if(!this.tabsElement){var w;this.tabsElement=(w=this.parent.header)==null?void 0:w.tabsElement;W==="right"&&this.previousTab?_.JEh(_.W7.instance,this.previousTab.endpoint,{},""):W==="left"&&this.nextTab&&_.JEh(_.W7.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}w=this.tabsElement._pos;W==="right"&&(a*=-1);this.tabsElement._positionBar(w.width,w.left*1+w.width*a)};
var eF0=function(){var a,W;return(W=(a=_.K().resolve(_.Gw).getCurrentPage())==null?void 0:a.clientWidth)!=null?W:0};
cf.prototype.navigate=function(a){this.element.data=void 0;if(a=a==null?void 0:a.endpoint)this.ytdReduxDispatch(awn(!0)),_.LA(_.$J(),{visualElement:cj9}),_.WX.instance.resolveCommand({navigateAction:{endpoint:a}},{form:{element:this.element}})};var nFn;var jq2;var ep=function(){return _.u.apply(this,arguments)||this};
_.c(ep,_.u);ep.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ep.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ep.prototype,"data",void 0);ep=_.f([_.C({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],ep);
_.D(ep,"ytd-labs-edit-renderer",function(){if(jq2!==void 0)return jq2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return jq2=a},{mode:1});var LNE;var nV=function(){var a=_.u.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};
_.c(nV,_.u);nV.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
nV.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.setBackgroundImage(a);this.dark=a};
nV.prototype.onDarkModeToggledAction=function(a){this.setBackgroundImage(a);this.dark=a};
nV.prototype.setBackgroundImage=function(a){_.Hu(this.hostElement,{"--yt-labs-header-background":"url("+(a?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],nV.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],nV.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nV.prototype,"dark",void 0);
nV=_.f([_.C({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],nV);
_.D(nV,"ytd-labs-header-renderer",function(){if(LNE!==void 0)return LNE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return LNE=a},{mode:1});var Jjd;var jp=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return a};
_.c(jp,_.u);jp.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"}}}}}};
jp.prototype.onYtToggleButton=function(a){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",a.detail.toggled)};
jp.prototype.onManageLabsState=function(a){if(a=_.A(a,vFD))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"?_.aV(this.hostElement,"yt-check-labs-opted-in-state").some(function(W){return W})&&this.data.confirmationDialogCommand?_.N1(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.K().resolve(_.zU).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"&&(_.K().resolve(_.zU).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
jp.prototype.onCheckLabsOptedInState=function(){var a=this.get("data.primaryButton.toggleButtonRenderer");return a?a.isToggled:!1};
_.dU.Object.defineProperties(jp.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
jp.prototype.onYtToggleButton=jp.prototype.onYtToggleButton;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],jp.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],jp.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],jp.prototype,"itemStyle",null);_.f([_.E6("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],jp.prototype,"onYtToggleButton",null);jp=_.f([_.C({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],jp);
_.D(jp,"ytd-labs-item-renderer",function(){if(Jjd!==void 0)return Jjd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Jjd=a},{mode:1});var FN9;var MZa;var LV=function(){return _.u.apply(this,arguments)||this};
_.c(LV,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],LV.prototype,"data",void 0);LV=_.f([_.C({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],LV);
_.D(LV,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(MZa!==void 0)return MZa;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return MZa=a},{mode:1});var RFD;var JB=function(){return _.u.apply(this,arguments)||this};
_.c(JB,_.u);JB.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)};_.Hu(this.hostElement,a)}};
JB.prototype.colorFromDecimal=function(a){return _.pC(Number(a||0))};
JB.prototype.observeSuperchatChip=JB.prototype.observeSuperchatChip;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],JB.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JB.prototype,"observeSuperchatChip",null);JB=_.f([_.C({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],JB);
_.D(JB,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(RFD!==void 0)return RFD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return RFD=a},{mode:1});var F3=function(){return _.u.apply(this,arguments)||this};
_.c(F3,_.u);F3.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"}}}};
_.dU.Object.defineProperties(F3.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],F3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.eN),_.z("design:type",Object)],F3.prototype,"ytdDismissibleItemBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],F3.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],F3.prototype,"hideMessageBlock",null);
F3=_.f([_.C({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],F3);
_.D(F3,"ytd-live-chat-history-entry-renderer",function(){if(FN9!==void 0)return FN9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return FN9=a},{mode:1});var qQk;var MZ=function(){return _.u.apply(this,arguments)||this};
_.c(MZ,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],MZ.prototype,"data",void 0);MZ=_.f([_.C({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],MZ);
_.D(MZ,"ytd-channel-options-renderer",function(){if(qQk!==void 0)return qQk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return qQk=a},{mode:1});var QqD;var Ro=function(){return _.u.apply(this,arguments)||this};
_.c(Ro,_.u);Ro.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ro.prototype,"data",void 0);Ro=_.f([_.C({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Ro);
_.D(Ro,"ytd-settings-email-item-renderer",function(){if(QqD!==void 0)return QqD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return QqD=a},{mode:1});var xzf;var qZ=function(){return _.u.apply(this,arguments)||this};
_.c(qZ,_.u);qZ.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"}}}};
qZ.prototype.getExpansionIcon=function(a){return a?"arrow_drop_up":"arrow_drop_down"};
qZ.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.dU.Object.defineProperties(qZ.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],qZ.prototype,"data",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],qZ.prototype,"expanded",void 0);_.f([_.Q("expanded"),_.z("design:type",String),_.z("design:paramtypes",[])],qZ.prototype,"emailListExpanded",null);
_.f([_.w$("#options"),_.z("design:type",Object)],qZ.prototype,"options",void 0);qZ=_.f([_.C({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],qZ);
_.D(qZ,"ytd-settings-email-list-renderer",function(){if(xzf!==void 0)return xzf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return xzf=a},{mode:1});var bb2;var QM=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return a};
_.c(QM,_.u);QM.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"}}}};
QM.prototype.handleSignalActionSubmitForm=function(){var a,W=(a=this.formRenderer)==null?void 0:a.getForm();W&&this.data.serviceEndpoint&&_.K().resolve(_.zU).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},W,{element:this.hostElement})})};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],QM.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],QM.prototype,"data",void 0);_.f([_.w$("yt-form-renderer"),_.z("design:type",Object)],QM.prototype,"formRenderer",void 0);
QM=_.f([_.C({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],QM);
_.D(QM,"ytd-settings-gaia-link-renderer",function(){if(bb2!==void 0)return bb2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return bb2=a},{mode:1});var sq0;var xa=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return a};
_.c(xa,_.u);xa.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.IZ0()&&this.set("data.hidden",!1)};
xa.prototype.onSwitchReady=function(){var a=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.r("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.lZz().then(function(W){W&&(Notification.permission==="default"?a.set("data.hidden",!1):Notification.permission==="granted"&&_.dH("NotificationsDisabled").then(function(w){w||_.aV(a.hostElement,"yt-toggle-settings-switch",[a.data.id,!w]);a.set("data.hidden",!1)}).catch(function(){}))})})};
xa.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}}}}};
xa.prototype.handleUpdateOptionsCommand=function(a){(a=_.A(a,_.PgA))&&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",[]))};
xa.prototype.onSwitchReady=xa.prototype.onSwitchReady;xa.prototype.dataChanged=xa.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],xa.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],xa.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xa.prototype,"data",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xa.prototype,"dataChanged",null);_.f([_.E6("yt-settings-switch-ready"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xa.prototype,"onSwitchReady",null);xa=_.f([_.C({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],xa);
_.D(xa,"ytd-settings-options-renderer",function(){if(sq0!==void 0)return sq0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return sq0=a},{mode:1});var uo2;var by=function(){return _.u.apply(this,arguments)||this};
_.c(by,_.u);by.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
by.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
by.prototype.onYtExpanderMoreTapped=by.prototype.onYtExpanderMoreTapped;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],by.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],by.prototype,"data",void 0);
_.f([_.E6("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],by.prototype,"onYtExpanderMoreTapped",null);by=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],by);
_.D(by,"ytd-product-details-description-renderer",function(){if(uo2!==void 0)return uo2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return uo2=a},{mode:1});var Cv9;var sO=function(){var a=_.u.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};
_.c(sO,_.u);sO.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.dU.Object.defineProperties(sO.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.data)==null?void 0:(W=a.offerData)==null?void 0:W.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.data)==null?void 0:a.purchaseButtonRenderers)!==void 0&&((W=this.data)==null?void 0:W.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var a,W;return!((a=this.data)==null||!a.formattedFromMerchantText)&&(!((W=this.data)==null||!W.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],sO.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sO.prototype,"data",void 0);
_.f([_.b({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],sO.prototype,"shippingIcon",void 0);_.f([_.b({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],sO.prototype,"shippingAddressIcon",void 0);_.f([_.b({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],sO.prototype,"googleGuaranteeIcon",void 0);
_.f([_.b({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],sO.prototype,"returnPolicyIcon",void 0);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sO.prototype,"showAdditionalFees",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sO.prototype,"showMultiPurchaseButtons",null);
_.f([_.Q("data","showMultiPurchaseButtons"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sO.prototype,"showPurchaseData",null);sO=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],sO);
_.D(sO,"ytd-product-details-hero-offer-renderer",function(){if(Cv9!==void 0)return Cv9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Cv9=a},{mode:1});var GYa;var Dza;var uy=function(){return _.u.apply(this,arguments)||this};
_.c(uy,_.u);_.t=uy.prototype;_.t.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.t.onKeyDown=function(a){a=a.keyCode;a!==13&&a!==32||this.handleSelection()};
_.t.onMouseEnterImage=function(){var a;((a=this.data)==null?void 0:a.thumbnailDetails)!==void 0&&_.W_(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.t.onMouseLeaveImage=function(){_.W_(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.t.handleSelection=function(){this.data&&_.E$(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.dU.Object.defineProperties(uy.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isSelected)}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],uy.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],uy.prototype,"isSelected",null);uy=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],uy);
_.D(uy,"ytd-product-details-thumbnail-renderer",function(){if(Dza!==void 0)return Dza;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Dza=a},{mode:1});var CV=function(){var a=_.u.apply(this,arguments)||this;var W={};a.actionMap=(W["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",W["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",W);a.selectedThumbnailIndex=0;a.selectItem=function(w){w.target.onKeyDown(w)};
return a};
_.c(CV,_.u);_.t=CV.prototype;_.t.handlePreviewImageSelect=function(a){this.hoverThumbnail=a};
_.t.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.t.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.t.onThumbnailSelected=function(a,W){this.selectedThumbnailIndex=W};
_.t.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.t.updateOffset=function(){var a=_.M(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-a));this.ytdHorizontalListBehavior.reposition_()};
_.dU.Object.defineProperties(CV.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.imageRenderer){var W,w;return((W=this.data)==null?void 0:(w=W.imageRenderer)==null?void 0:w.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 W;return(W=_.A(this.data.imageRenderer[this.selectedThumbnailIndex],kYk))==null?void 0:W.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var a=this,W,w,Z,N=(Z=(W=this.data)==null?void 0:(w=W.imageRenderer)==null?void 0:w.map(function(B,I){return{productDetailsThumbnailRenderer:Object.assign({},_.A(B,kYk),{index:I,isSelected:I===a.selectedThumbnailIndex})}}))!=null?Z:[];
return Object.assign({},this.data,{imageRenderer:N})}}});
CV.prototype.updateOffset=CV.prototype.updateOffset;CV.prototype.dataChanged=CV.prototype.dataChanged;CV.prototype.onThumbnailSelected=CV.prototype.onThumbnailSelected;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.zd.YtdHorizontalListBehavior),_.z("design:type",Object)],CV.prototype,"ytdHorizontalListBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],CV.prototype,"componentBehavior",void 0);_.f([_.R([_.d4.YtActionHandlerBehavior]),_.z("design:type",Object)],CV.prototype,"actionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],CV.prototype,"data",void 0);_.f([_.b({value:"$.items.children"}),_.z("design:type",String)],CV.prototype,"itemsPath",void 0);_.f([_.b({value:3}),_.z("design:type",Number)],CV.prototype,"initialCount",void 0);
_.f([_.w$("#items"),_.z("design:type",Object)],CV.prototype,"items",void 0);_.f([_.b(),_.z("design:type",Object)],CV.prototype,"selectedThumbnailIndex",void 0);_.f([_.b(),_.z("design:type",Object)],CV.prototype,"hoverThumbnail",void 0);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],CV.prototype,"showThumbnails",null);
_.f([_.E6("ytd-product-details-thumbnail-renderer-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Number]),_.z("design:returntype")],CV.prototype,"onThumbnailSelected",null);_.f([_.Q("data","selectedThumbnailIndex","hoverThumbnail"),_.z("design:type",Object),_.z("design:paramtypes",[])],CV.prototype,"thumbnailDetails",null);_.f([_.Q("data","selectedThumbnailIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],CV.prototype,"populatedData",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],CV.prototype,"dataChanged",null);_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],CV.prototype,"updateOffset",null);CV=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],CV);
_.D(CV,"ytd-product-details-image-carousel-renderer",function(){if(GYa!==void 0)return GYa;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return GYa=a},{mode:_.Vn("kevlar_poly_si_batch_j079")?1:2});var fwk;var GT=function(){return _.u.apply(this,arguments)||this};
_.c(GT,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],GT.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],GT.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],GT.prototype,"data",void 0);GT=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],GT);
_.D(GT,"ytd-product-details-offer-renderer",function(){if(fwk!==void 0)return fwk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return fwk=a},{mode:1});var dzz;var D0=function(){var a=_.u.apply(this,arguments)||this;a.isOffersHidden=!0;return a};
_.c(D0,_.u);D0.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var a,W=_.A((a=this.data)==null?void 0:a.viewOffersButton,_.J4);W&&this.ytRendererBehavior.logExplicitClick(W)};
D0.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.dU.Object.defineProperties(D0.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z;return(w=_.A((a=this.data)==null?void 0:(W=a.offers)==null?void 0:W[0],YQk))==null?void 0:(Z=w.offerData)==null?void 0:Z.vendorLogoUrl}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],D0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],D0.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],D0.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],D0.prototype,"isOffersHidden",void 0);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],D0.prototype,"firstOfferVendorLogoUrl",null);D0=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],D0);
_.D(D0,"ytd-product-details-offers-container-renderer",function(){if(dzz!==void 0)return dzz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return dzz=a},{mode:1});var mz0;var VZz;var fV=function(){return _.u.apply(this,arguments)||this};
_.c(fV,_.u);fV.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
fV.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.W_(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
fV.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.W_(this,"ytd-product-details-variant-image-unselect")};
_.dU.Object.defineProperties(fV.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,W,w;return((a=this.data)==null?void 0:a.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((W=this.data)==null?void 0:W.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((w=this.data)==null?void 0:w.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,W;return this.isUnavailable?(a=this.data)==null?void 0:a.variantOptionUnavailableAccessibilityLabel:(W=this.data)==null?void 0:W.variantOptionAccessibilityLabel}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],fV.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],fV.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],fV.prototype,"displayType",void 0);
_.f([_.Q("displayType","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],fV.prototype,"isImageButton",null);_.f([_.Q("displayType","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],fV.prototype,"isPillButton",null);_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],fV.prototype,"isActive",null);
_.f([_.Q("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],fV.prototype,"isUnavailable",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],fV.prototype,"thumbnailDetails",null);_.f([_.Q("isUnavailable","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],fV.prototype,"accessibilityLabel",null);fV=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],fV);
_.D(fV,"ytd-product-details-variant-option-renderer",function(){if(VZz!==void 0)return VZz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return VZz=a},{mode:1});var zFz;var dG=function(){var a=_.u.apply(this,arguments)||this;a.variantsExpanded=!1;a.hideShowMoreLessVariantButton=!0;a.initialized=!1;a.computeVariantsDebouncer=null;a.computeVariants=function(W){W=W===void 0?!1:W;a.variantsExpanded||a.showOptions()||!W||(a.variantsExpanded=!0);if(a.variantsExpanded){W=_.l(a.items.children);for(var w=W.next();!w.done;w=W.next())w.value.hidden=!1}a.initialized=!0};
return a};
_.c(dG,_.u);_.t=dG.prototype;_.t.ready=function(){var a=this;setTimeout(function(){a.computeVariants(!0)})};
_.t.showOptions=function(){for(var a=_.l(this.items.children),W=a.next();!W.done;W=a.next())W.value.hidden=!0;var w=this.container.getBoundingClientRect().width,Z=0,N=a=0;W=!1;for(var B=_.l(this.items.children),I=B.next();!I.done;I=B.next()){I=I.value;I.hidden=!1;var X=I.getBoundingClientRect().width;if(Z+X<w)Z+=X;else if(++N<2)Z=X;else break;a+=1;I.hasAttribute("is-active")&&(W=!0)}for(w=a;w<this.items.children.length;w++)this.items.children[w].hidden=!0;this.hideShowMoreLessVariantButton=a===this.items.children.length;
return W};
_.t.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.tA(this.computeVariantsDebouncer,_.dF.after(100),this.computeVariants)};
_.t.onShowMoreLessVariantsButtonClick=function(){var a;(a=this.data)!=null&&a.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.t.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.dU.Object.defineProperties(dG.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var a,W,w=(a=this.data)==null?void 0:(W=a.variantOptionRenderers)==null?void 0:W.find(function(B){return _.A(B,Oba).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),Z,N;
return(N=(Z=_.A(w,Oba))==null?void 0:Z.name)!=null?N:""}},
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"}}}});
dG.prototype.debouncedComputeVariants=dG.prototype.debouncedComputeVariants;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],dG.prototype,"componentBehavior",void 0);_.f([_.R(_.eG),_.z("design:type",Object)],dG.prototype,"ironResizableBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],dG.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],dG.prototype,"variantsExpanded",void 0);_.f([_.b(),_.z("design:type",Object)],dG.prototype,"hideShowMoreLessVariantButton",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dG.prototype,"initialized",void 0);_.f([_.w$("#items"),_.z("design:type",HTMLDivElement)],dG.prototype,"items",void 0);_.f([_.w$("#container"),_.z("design:type",HTMLDivElement)],dG.prototype,"container",void 0);
_.f([_.w$("#more-variants-button"),_.z("design:type",HTMLElement)],dG.prototype,"moreVariantsButton",void 0);_.f([_.Q("data"),_.z("design:type",String),_.z("design:paramtypes",[])],dG.prototype,"selectedOptionName",null);_.f([_.a5("data","variantsExpanded"),_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dG.prototype,"debouncedComputeVariants",null);
_.f([_.Q("data"),_.z("design:type",String),_.z("design:paramtypes",[])],dG.prototype,"displayType",null);_.f([_.Q("displayType"),_.z("design:type",Object),_.z("design:paramtypes",[])],dG.prototype,"variantItemsClassname",null);dG=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],dG);
_.D(dG,"ytd-product-details-variant-renderer",function(){if(zFz!==void 0)return zFz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return zFz=a},{mode:1});var mS=function(){return _.u.apply(this,arguments)||this};
_.c(mS,_.u);
mS.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"}}}};
_.dU.Object.defineProperties(mS.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,W,w=(W=_.A((a=this.data)==null?void 0:a.offersContainerRenderer,SQD))==null?void 0:W.offers;return w!==void 0&&(w==null?void 0:w.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,W,w;return((w=(a=this.data)==null?void 0:(W=a.variants)==null?void 0:W.map(function(Z){var N,B;Z=(B=(N=_.A(Z,Uz9))==null?void 0:N.variantOptionRenderers)==null?void 0:B.find(function(X){var v;return((v=_.A(X,Oba))==null?void 0:v.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var I;return(I=_.A(Z,Oba))==null?void 0:I.name}).filter(function(Z){return typeof Z==="string"}))!=null?w:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z=(W=_.A((a=this.data)==null?void 0:a.shoppingFlaggingRenderer,TNE))==null?void 0:(w=W.reportButton)==null?void 0:w.buttonRenderer;if(Z)return{text:Z.text,command:Z.command,icon:{iconType:"FLAG"},accessibilityData:Z.accessibilityData,trackingParams:Z.trackingParams,loggingDirectives:Z.loggingDirectives}}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],mS.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],mS.prototype,"data",void 0);_.f([_.w$("#image-carousel-renderer"),_.z("design:type",Object)],mS.prototype,"imageCarouselRenderer",void 0);
_.f([_.w$("#hero-offer-renderer"),_.z("design:type",Object)],mS.prototype,"productDetailsHeroOfferRenderer",void 0);_.f([_.w$("#variants"),_.z("design:type",Object)],mS.prototype,"productDetailsVariantRenderer",void 0);_.f([_.w$("#offers"),_.z("design:type",Object)],mS.prototype,"productDetailsOffersContainerRenderer",void 0);_.f([_.w$("#description-renderer"),_.z("design:type",Object)],mS.prototype,"productDetailsDescriptionRenderer",void 0);
_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mS.prototype,"showPurchaseData",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mS.prototype,"showHeroOfferRenderer",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mS.prototype,"showBrandText",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mS.prototype,"showOffers",null);
_.f([_.Q("showOffers","showPurchaseData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mS.prototype,"showBuySeparator",null);_.f([_.Q("showOffers","showPurchaseData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mS.prototype,"showBuyCard",null);_.f([_.Q("data"),_.z("design:type",String),_.z("design:paramtypes",[])],mS.prototype,"selectedVariantsText",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],mS.prototype,"shoppingReportingButtonData",null);
mS=_.f([_.C({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],mS);
_.D(mS,"ytd-product-details-renderer",function(){if(mz0!==void 0)return mz0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return mz0=a},{mode:1});var Hbn;var yjk;var EF0;var VM=function(){return _.u.apply(this,arguments)||this};
_.c(VM,_.u);VM.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.dU.Object.defineProperties(VM.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],VM.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],VM.prototype,"formattedAmount",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],VM.prototype,"ariaLabel",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.style"),_.z("design:type",String),_.z("design:paramtypes",[])],VM.prototype,"vcBalanceWidgetStyle",null);VM=_.f([_.TD({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],VM);
_.D(VM,"yt-vc-balance-renderer",function(){if(EF0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;yjk===void 0&&(yjk=document.createElement("template"));var Z=yjk;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);EF0=a}a=EF0;return a},{mode:2});_.pA("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var zT=function(){return _.u.apply(this,arguments)||this};
_.c(zT,_.u);_.dU.Object.defineProperties(zT.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:""}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],zT.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],zT.prototype,"data",void 0);_.f([_.b({selectorArgs:["data.vcBalanceEntityKey"],selector:function(a,W){return _.tG(a.entities,"vcBalanceEntity",W)}}),
_.z("design:type",Object)],zT.prototype,"vcBalanceEntity",void 0);_.f([_.Q("vcBalanceEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],zT.prototype,"formattedAmount",null);_.f([_.Q("vcBalanceEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],zT.prototype,"vcBalanceAriaLabel",null);zT=_.f([_.C({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],zT);
_.D(zT,"ytd-vc-balance-renderer",function(){if(Hbn!==void 0)return Hbn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Hbn=a},{mode:1});var akf;var Hf=function(){var a=_.u.apply(this,arguments)||this;a.rotation=0;a.isReloading=!1;return a};
_.c(Hf,_.u);Hf.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Hf.prototype.reset=function(){this.hostElement.style.opacity=""};
Hf.prototype.close=function(){var a=this;return _.P(function(W){if(W.nextAddress==1)return _.g(W,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";_.Xd(W)})};
Hf.prototype.rotationChanged=Hf.prototype.rotationChanged;_.f([_.b(),_.z("design:type",Object)],Hf.prototype,"rotation",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hf.prototype,"isReloading",void 0);_.f([_.w$("#icon"),_.z("design:type",HTMLElement)],Hf.prototype,"icon",void 0);_.f([_.a5("rotation"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hf.prototype,"rotationChanged",null);
Hf=_.f([_.C({disableElementRegistration:!0,is:"ytd-refresh"})],Hf);
_.D(Hf,"ytd-refresh",function(){if(akf!==void 0)return akf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return akf=a},{mode:1});var Wcf;var wsz;var ZhK=function(a,W,w,Z,N,B,I,X){this.minWidth=a;this.minHeight=W;this.recommendedWidth=w;this.recommendedHeight=Z;this.JSC$19336_maxFileSize=N;this.title=B;this.bannerGalleryTitle=I;this.channelId=X;this.picker_=null;a=_.nZx("yt-banner");W=a.addView;w=(new wcE("youtubebanner")).addUploadMetadata("silo_id","19");w.opts.ytMaxFileSize=this.JSC$19336_maxFileSize;Z=this.recommendedHeight;w.opts.ytRecWidth=this.recommendedWidth;w.opts.ytRecHeight=Z;W.call(a,w);a.addView(new _.A1);W=a.addView;w=new _.A1;
w.opts.type="ytbanner";W.call(a,w.JSC$7982_setLabel(this.bannerGalleryTitle));W=a.setTitle(this.title).setSize(1E3);W.urlParamMap_.set("thumbs","orig");w=this.minWidth;Z=this.minHeight;if(isNaN(w)||isNaN(Z))throw Error("kb`"+w+"`"+Z);W.urlParamMap_.set("minSize",w+"x"+Z);W.urlParamMap_.set("cropMode","ytcb");this.builder_=a};
ZhK.prototype.open=function(){var a=this;return new _.PZ(function(W,w){_.eqE(a.builder_,function(Z){Z.action=="picked"?W(Z):Z.action=="cancel"&&w(Error("Vl"))});
a.picker_&&a.picker_.dispose();a.picker_=a.builder_.build();a.picker_.setVisible(!0)})};
ZhK.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var Ndn=function(a){this.channelId=a},t$0=function(a,W){var w="";
W.viewToken&&(w=W.viewToken[2].type);var Z=W.docs[0];W=Z.crop;a={channel_id:a.channelId,fife_url:Z.thumbnails[0].url,photo_id:Z.id,is_gallery_image:w=="ytbanner"};W&&(a.crop_top=W.top,a.crop_right=W.right,a.crop_bottom=W.bottom,a.crop_left=W.left);return _.KLv("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:a})};var yM=function(){var a=_.u.apply(this,arguments)||this;a.ariaLabel=null;return a};
_.c(yM,_.u);_.t=yM.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.detached=function(){this.picker&&this.picker.dispose()};
_.t.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.t.computeAriaLabel=function(a){return a};
_.t.onTap=function(){var a=this,W;if((W=this.data)==null||!W.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new ZhK(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 w;(w=this.picker)==null||w.open().then(function(Z){a.handleBannerPicked(Z)},function(){})}};
_.t.handleBannerPicked=function(a){var W=this;this.uploader||(this.uploader=new Ndn(this.data.channelId||""));this.message=this.data.uploadingText;t$0(this.uploader,a).then(function(w){W.handleBannerUploadSucceeded(w)},function(w){W.handleBannerUploadFailed(w)})};
_.t.handleBannerUploadSucceeded=function(a){a&&a.errors?this.handleBannerUploadFailed(a):(_.E$(this.hostElement,"yt-banner-updated",a),this.message=null)};
_.t.handleBannerUploadFailed=function(a){this.message=a&&a.errors&&a.errors.length?a.errors[0]:null};
yM.prototype.dataChanged=yM.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],yM.prototype,"componentBehavior",void 0);_.f([_.R(_.Ll),_.z("design:type",Object)],yM.prototype,"ironButtonState",void 0);_.f([_.b(),_.z("design:type",Object)],yM.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.z("design:type",Object)],yM.prototype,"ariaLabel",void 0);
_.f([_.b(),_.z("design:type",Object)],yM.prototype,"message",void 0);_.f([_.b(),_.z("design:type",Object)],yM.prototype,"picker",void 0);_.f([_.b(),_.z("design:type",Object)],yM.prototype,"uploader",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yM.prototype,"dataChanged",null);yM=_.f([_.C({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],yM);
_.D(yM,"ytd-channel-banner-editor-renderer",function(){if(wsz!==void 0)return wsz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return wsz=a},{mode:1});var $p9;var BdK=_.ma(["#"]),EO=function(){return _.u.apply(this,arguments)||this};
_.c(EO,_.u);EO.prototype.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a,!0)||_.Kv(BdK)};
EO.prototype.dataChanged=function(){var a=this.data;a&&a.targetId&&_.V8J(_.NR(),a.targetId,this.moreIcon)};
EO.prototype.dataChanged=EO.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],EO.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],EO.prototype,"data",void 0);_.f([_.w$("#more-icon"),_.z("design:type",Object)],EO.prototype,"moreIcon",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EO.prototype,"dataChanged",null);
EO=_.f([_.C({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],EO);
_.D(EO,"ytd-channel-tagline-renderer",function(){if($p9!==void 0)return $p9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return $p9=a},{mode:1});var lkd;var ah=function(){return _.u.apply(this,arguments)||this};
_.c(ah,_.u);_.t=ah.prototype;_.t.ready=function(){var a=this;_.M(this.hostElement).querySelector("#form").addEventListener("submit",function(W){a.onSubmit(W)})};
_.t.onDataChanged=function(){var a;((a=this.data)==null?0:a.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.t.onIconButtonKeydown=function(a){a.keyCode===13&&this.iconButton.click()};
_.t.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.t.openOnClickHandler=function(){this.input.focus()};
_.t.onSubmit=function(a){a.preventDefault();return!1};
_.t.submitOnEnterKeyUp=function(a){var W;if(a.keyCode===13&&((W=this.data)==null?0:W.expandedText)){a=this.data.endpoint;W=_.T5.unsafeClone(a);var w;((w=_.A(W==null?void 0:W.commandMetadata,_.mm))==null?0:w.url)?(_.A(W.commandMetadata,_.mm).url=_.Rg(_.A(W.commandMetadata,_.mm).url,"query",this.data.expandedText),_.A(W,_.I1)&&(_.A(W,_.I1).query=this.data.expandedText),_.E$(this.hostElement,"yt-navigate",{endpoint:W,tempData:{disableCache:!0}})):(w=new _.Uw("Error: Trying to navigate to an endpoint without url",
a),_.eJ(w))}};
_.t.updateDataExpandedTextFromBinding=function(a){this.set("data.expandedText",a.detail.value)};
ah.prototype.onDataChanged=ah.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.OYk),_.z("design:type",Object)],ah.prototype,"ytdExpandableInputBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ah.prototype,"data",void 0);_.f([_.w$("#input"),_.z("design:type",Object)],ah.prototype,"input",void 0);_.f([_.w$("#icon-button"),_.z("design:type",HTMLElement)],ah.prototype,"iconButton",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ah.prototype,"onDataChanged",null);ah=_.f([_.C({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],ah);
var Von=_.mV()(ah,"ytd-expandable-tab-renderer",function(){if(lkd===void 0){var a=document.createElement("template");_.n(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="yt-icons:search" 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(_.y().content.cloneNode(!0),
a.content.firstChild);lkd=a}a=lkd;return a},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var Ikd;var PR0=_.ma(["#"]),WD=function(){return _.u.apply(this,arguments)||this};
_.c(WD,_.u);WD.prototype.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a,!0)||_.Kv(PR0)};
_.dU.Object.defineProperties(WD.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return _.rJ((a=this.data)==null?void 0:a.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return _.rJ((a=this.data)==null?void 0:a.moreOnTap)}}});
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],WD.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],WD.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],WD.prototype,"usePageHeaderStyle",void 0);_.f([_.Q("data.primaryOnTap"),_.z("design:type",Object),_.z("design:paramtypes",[])],WD.prototype,"primaryLinkEndpoint",null);
_.f([_.Q("data.moreOnTap"),_.z("design:type",Object),_.z("design:paramtypes",[])],WD.prototype,"moreEndpoint",null);WD=_.f([_.C({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],WD);
_.D(WD,"ytd-channel-header-links-view-model",function(){if(Ikd!==void 0)return Ikd;var a=document.createElement("template");_.n(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-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-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);return Ikd=a},{mode:1});var Xsi;var wR=function(){var a=_.u.apply(this,arguments)||this;a.avatarSize=80;a.ariaLabel=_.P_("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return a};
_.c(wR,_.u);wR.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
wR.prototype.computeHref=function(a){var W;return((W=_.A(a,_.ba))==null?0:W.url)?this.componentBehavior.computeHref_(a):null};
wR.prototype.onTap=function(){var a,W;(a=this.data)==null||!a.editAvatarServiceEndpoint||((W=_.A(this.data.editAvatarServiceEndpoint,_.ba))==null?0:W.url)||_.K().resolve(_.zU).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.f([_.R(_.Ll),_.z("design:type",Object)],wR.prototype,"ironButtonState",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],wR.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],wR.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],wR.prototype,"avatarSize",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],wR.prototype,"ariaLabel",void 0);wR=_.f([_.C({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],wR);
_.D(wR,"ytd-channel-avatar-editor",function(){if(Xsi!==void 0)return Xsi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Xsi=a},{mode:1});_.Ct(_.OVA,"yt-tab-group-shape",{props:{shape:_.qR}});var ZR=function(){var a=_.u.apply(this,arguments)||this;a.expandableCustomTabRenderable=function(W){return zbf(W,function(){return void a.onSearchNavigate()})};
a.isRichGrid=!1;a.richGridMiniMode=!1;a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return a};
_.c(ZR,_.u);_.t=ZR.prototype;_.t.areAllFalse=function(a,W,w){return!a&&!W&&!w};
_.t.updateJoinButtonOverrides=function(){var a;(a=_.M(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||a.set("overrides",this.joinButtonOverrides)};
_.t.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.t.attached=function(){this.data&&this.dataChanged();if(!_.r("web_c4_tabbed_header_error_ks")&&Math.random()<.05){var a=new _.Uw("Rendered C4TabbedHeaderRenderer",window.location.href);_.eJ(a)}};
_.t.computeHeaderDisabled=function(a,W){return W||!a};
_.t.handleButtonRefreshAction=function(a){(a=_.A(a,_.sYV))&&this.set("data.sponsorButton",a.membershipButton)};
_.t.handleInsertTabCommand=function(a){var W=_.A(a,pcf);W&&W.externalChannelId===this.data.channelId&&(W.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(w){return w.tabRenderer&&w.tabRenderer.tabIdentifier===W.tabIdentifier})||this.splice("tabs",W.tabIndex||-1,0,W.tab))};
_.t.handleRefreshChannelTabAction=function(a){var W,w=(W=this.tabs)==null?void 0:W.filter(function(B){var I;return(I=B.tabRenderer)==null?void 0:I.selected});
W=(w==null?void 0:w.length)===1?w[0]:void 0;var Z;if((W==null?void 0:(Z=W.tabRenderer)==null?void 0:Z.tabIdentifier)===a){var N;_.E$(this.hostElement,"yt-navigate",{endpoint:(N=W.tabRenderer)==null?void 0:N.endpoint,tempData:{disableCache:!0}})}};
_.t.onWindowResize=function(){_.M(this.hostElement).querySelector("#header").fire("iron-resize")};
_.t.dataChanged=function(){var a=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var W=_.G$(this.data.banner.thumbnails,this.hostElement.clientWidth);W&&(W.indexOf("//")===0&&(W="https:"+W),this.hasChannelArt=!0,_.Hu(this.hostElement,{"--yt-channel-banner":"url("+W+")"}))}this.hasChannelArt!==a&&_.M(this.hostElement).querySelector("#header").fire("iron-resize")};
_.t.onBannerUpdated=function(a,W){a=window.devicePixelRatio>1?W.hq_url:W.url;a.indexOf("//")===0&&(a="https:"+a);this.hasChannelArt=!0;_.Hu(this.hostElement,{"--yt-channel-banner":"url("+a+")"})};
_.t.observeLightsourcePalette=function(){var a,W,w=(a=this.data)==null?void 0:(W=a.headerColorPalette)==null?void 0:W.lightsourceColorPaletteData;w&&_.Tw(this.hostElement,w)};
_.t.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Hu(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.t.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.t.handleUnsubscribeAction=function(){var a,W;((W=_.A((a=this.data)==null?void 0:a.sponsorButton,_.J4))==null?void 0:W.style)==="STYLE_PRIMARY"&&_.M(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.t.onFocusedChanged=function(a){(a=_.QV(a))&&a.is==="tp-yt-paper-tab"&&a.hasRipple()&&(a.getRipple().holdDown=!a.pointerDown&&a.focused)};
_.t.updateSelectedFromBinding=function(a){this.ytdTabbedHeaderBehavior.selected=a.detail.value};
_.dU.Object.defineProperties(ZR.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:yWD(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var a,W;return!!((a=this.data)==null?0:(W=a.headerLinks)==null?0:W.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.subscriptionStateEntity)==null||!a.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var a=this.channelHandleDisplayStyle;return a==="MODERN"||a==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return this.usePageHeaderStyle||!((a=this.data)==null?0:a.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var a;return this.usePageHeaderStyle||!((a=this.data)==null||!a.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.A((a=this.data)==null?void 0:a.bannerEditor,gFa)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var a;return _.r("enable_view_pronouns_on_main_app")&&!((a=this.data)==null||!a.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var a;return(this.useModernStyle||this.usePageHeaderStyle)&&!((a=this.data)==null||!a.videosCountText)}}});
ZR.prototype.observerRichGridItemsPerRow=ZR.prototype.observerRichGridItemsPerRow;ZR.prototype.observeLightsourcePalette=ZR.prototype.observeLightsourcePalette;ZR.prototype.onBannerUpdated=ZR.prototype.onBannerUpdated;ZR.prototype.dataChanged=ZR.prototype.dataChanged;ZR.prototype.updateJoinButtonOverrides=ZR.prototype.updateJoinButtonOverrides;_.f([_.R(_.Lg),_.z("design:type",Object)],ZR.prototype,"ytdGridStateAwareBehavior",void 0);
_.f([_.R(rjk),_.z("design:type",Object)],ZR.prototype,"ytdTabbedHeaderBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],ZR.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],ZR.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.R(_.ij),_.z("design:type",Object)],ZR.prototype,"ytdReduxBehavior",void 0);_.f([_.w$("#tabs"),_.z("design:type",Object)],ZR.prototype,"tabsElement",void 0);_.f([_.b(),_.z("design:type",Array)],ZR.prototype,"tabs",void 0);_.f([_.Q("tabs.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZR.prototype,"tabGroupShape",null);_.f([_.b(),_.z("design:type",Object)],ZR.prototype,"expandableCustomTabRenderable",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZR.prototype,"isRichGrid",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Object)],ZR.prototype,"richGridMiniMode",void 0);_.f([_.b({selector:_.AG}),_.z("design:type",Number)],ZR.prototype,"richGridItemsPerRow",void 0);_.f([_.b(),_.z("design:type",Object)],ZR.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ZR.prototype,"hasChannelArt",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"hasChannelHeaderLinks",null);_.f([_.b({selector:_.ZYE,reflectToAttribute:!0}),_.z("design:type",Boolean)],ZR.prototype,"guideIsVisibleButNotPersistent",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZR.prototype,"subscribeKey",null);
_.f([_.b({selectorArgs:["subscribeKey"],selector:_.We}),_.z("design:type",Object)],ZR.prototype,"subscriptionStateEntity",void 0);_.f([_.Q("subscriptionStateEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZR.prototype,"subscribed",null);_.f([_.Q("subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZR.prototype,"joinButtonOverrides",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"useModernStyle",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"usePageHeaderStyle",null);_.f([_.Q("useModernStyle","usePageHeaderStyle"),_.z("design:type",Number),_.z("design:paramtypes",[])],ZR.prototype,"avatarSize",null);
_.f([_.Q("channelHandleDisplayStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"shouldInlineChannelName",null);_.f([_.Q("data","usePageHeaderStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"hideBannerEndpoint",null);_.f([_.Q("data","usePageHeaderStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"hideBannerVisibleArea",null);
_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"showBannerEditor",null);_.f([_.Q("usePageHeaderStyle"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZR.prototype,"bannerEffects",null);_.f([_.Q("usePageHeaderStyle"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZR.prototype,"effectsConfig",null);_.f([_.Q("usePageHeaderStyle","hasChannelArt"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"shouldShowPageHeaderBanner",null);
_.f([_.Q("data.channelHandleText"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"isChannelHandlePresent",null);_.f([_.Q("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.z("design:type",String),_.z("design:paramtypes",[])],ZR.prototype,"channelHandleDisplayStyle",null);_.f([_.Q("data.channelPronouns"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"shouldShowChannelPronouns",null);
_.f([_.Q("data.subscriberCountText"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"shouldShowSubscriberCount",null);_.f([_.Q("useModernStyle","data.videosCountText"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZR.prototype,"shouldShowVideosCount",null);_.f([_.a5("joinButtonOverrides"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZR.prototype,"updateJoinButtonOverrides",null);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZR.prototype,"dataChanged",null);_.f([_.E6("yt-banner-updated"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],ZR.prototype,"onBannerUpdated",null);_.f([_.a5("data.headerColorPalette.lightsourceColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZR.prototype,"observeLightsourcePalette",null);
_.f([_.a5("richGridItemsPerRow","isRichGrid"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZR.prototype,"observerRichGridItemsPerRow",null);ZR=_.f([_.C({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],ZR);
_.D(ZR,"ytd-c4-tabbed-header-renderer",function(){if(Wcf!==void 0)return Wcf;var a=document.createElement("template");_.n(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-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-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);return Wcf=a},{mode:1});var vMn;var N4=function(){return _.u.apply(this,arguments)||this};
_.c(N4,_.u);N4.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"}}}};
N4.prototype.dataChanged=function(){if(this.data){var a=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var W=_.G$(this.data.banner.thumbnails,this.hostElement.clientWidth);W&&(W.indexOf("//")===0&&(W="https:"+W),this.hasBannerArt=!0,_.Hu(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+W+")"}))}this.hasBannerArt!==a&&_.M(this.hostElement).querySelector("#header").fire("iron-resize")}};
N4.prototype.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
N4.prototype.dataChanged=N4.prototype.dataChanged;_.f([_.R(rjk),_.z("design:type",Object)],N4.prototype,"ytdTabbedHeaderBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.Lg),_.z("design:type",Object)],N4.prototype,"ytdGridStateAwareBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],N4.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],N4.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],N4.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Number)],N4.prototype,"selected",void 0);_.f([_.b(),_.z("design:type",Boolean)],N4.prototype,"active",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],N4.prototype,"hasBannerArt",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N4.prototype,"dataChanged",null);N4=_.f([_.C({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],N4);
_.D(N4,"ytd-interactive-tabbed-header-renderer",function(){if(vMn!==void 0)return vMn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return vMn=a},{mode:1});var gM9;var tU=function(){return _.u.apply(this,arguments)||this};
_.c(tU,_.u);tU.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
tU.prototype.computeActionsAlignment=function(a){return(a==null?void 0:a.actionsAlignment)||""};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],tU.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.z("design:type",String)],tU.prototype,"actionsAlignment",void 0);
tU=_.f([_.C({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],tU);
_.D(tU,"ytd-page-footer-renderer",function(){if(gM9!==void 0)return gM9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return gM9=a},{mode:1});var oMX;var ke9;var $P=function(){var a=_.u.apply(this,arguments)||this;a.isEditing=!1;a.useSlot=!1;a.isMultiline=!1;return a};
_.c($P,_.u);_.t=$P.prototype;_.t.onKeydown=function(a){if(a.keyCode===13&&!this.isMultiline)this.onSave();else if(a.keyCode===27)this.onCancel()};
_.t.computeComponentStyle=function(a){return(a==null?0:a.style)?a.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.t.computeisMultiline=function(a){if(this.multilineOverride!==void 0)return this.multilineOverride;var W,w;return!!(a==null?0:(W=a.formField)==null?0:(w=W.textInputFormFieldRenderer)==null?0:w.isMultiline)};
_.t.computeTextDisplayed=function(a,W){if(a)return a;if(W)return W};
_.t.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.t.onSave=function(){if(this.textForm.validate()){this.textForm.save();var a=this.textForm.value;if(a)this.set("data.textDisplayed",_.b8(a));else{var W;((W=this.data)==null?0:W.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Jp("inline-form-changed",this.data));this.isEditing=!1}};
_.t.onCancel=function(){var a=_.sd(this.data.textDisplayed);a===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(a);this.isEditing=!1};
$P.prototype.onKeydown=$P.prototype.onKeydown;_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],$P.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$P.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$P.prototype,"isEditing",void 0);_.f([_.b(),_.z("design:type",Object)],$P.prototype,"useSlot",void 0);_.f([_.b(),_.z("design:type",Boolean)],$P.prototype,"multilineOverride",void 0);_.f([_.b(),_.z("design:type",Boolean)],$P.prototype,"enableOverlayTheme",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.z("design:type",String)],$P.prototype,"componentStyle",void 0);
_.f([_.b({computed:"computeisMultiline(data)"}),_.z("design:type",Object)],$P.prototype,"isMultiline",void 0);_.f([_.w$("#text-form"),_.z("design:type",Object)],$P.prototype,"textForm",void 0);_.f([_.E6("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],$P.prototype,"onKeydown",null);$P=_.f([_.C({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],$P);
_.D($P,"ytd-inline-form-renderer",function(){if(ke9!==void 0)return ke9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return ke9=a},{mode:1});var Up2;var BD=function(){var a=_.u.apply(this,arguments)||this;a.previousSelectValue=void 0;a.selectedItemMessage=void 0;return a};
_.c(BD,_.u);BD.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
BD.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var a,W,w,Z,N=(a=this.data)==null?void 0:(W=a.dropdown)==null?void 0:(w=W.dropdownRenderer)==null?void 0:(Z=w.entries)==null?void 0:Z.map(function(X){return X.privacyDropdownItemRenderer});
a=_.l(N!=null?N:[]);for(W=a.next();!W.done;W=a.next())if((W=W.value)&&W.int32Value===this.selectedValue){this.selectedItemMessage=W.itemMessage;break}}else this.selectedItemMessage=void 0;var B;(B=this.onValueChanged)==null||B.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var I;(I=this.data)!=null&&I.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
BD.prototype.onValueChangedForSelectedValue=function(a){this.selectedValue=a.detail.value};
BD.prototype.selectedValueChanged=BD.prototype.selectedValueChanged;_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],BD.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],BD.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],BD.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],BD.prototype,"theme",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Number)],BD.prototype,"selectedValue",void 0);_.f([_.b(),_.z("design:type",Function)],BD.prototype,"onValueChanged",void 0);
_.f([_.lO("selectedValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BD.prototype,"selectedValueChanged",null);BD=_.f([_.C({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],BD);
_.D(BD,"ytd-dropdown-form-field-renderer",function(){if(Up2!==void 0)return Up2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Up2=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var Ohf;var lo=function(){return _.u.apply(this,arguments)||this};
_.c(lo,_.u);_.dU.Object.defineProperties(lo.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var a=[],W=_.l(this.data||[]),w=W.next();!w.done;w=W.next())(w=_.A(w.value,KNK))&&a.push(w);return a}}});
_.f([_.b(),_.z("design:type",Array)],lo.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],lo.prototype,"byline",null);lo=_.f([_.C({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],lo);
_.D(lo,"ytd-playlist-byline-renderer",function(){if(Ohf!==void 0)return Ohf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Ohf=a},{mode:1});var SXI;var Ih=function(){var a=_.u.apply(this,arguments)||this;a.rtlBullet=_.r("web_playlist_stats_rtl_bullet_icon_killswitch");a.modern=_.r("web_modern_buttons");a.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return a};
_.c(Ih,_.u);_.t=Ih.prototype;_.t.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"}}}}};
_.t.attached=function(){};
_.t.computeIsCustomThumbnail=function(a){return a?!!a.playlistCustomThumbnailRenderer:!1};
_.t.onYtNavigate=function(a,W){if(W&&W.actions&&W.actions.indexOf("shuffle")>-1){a=_.K().resolve(_.LB);var w=W.tempData||{};w.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);W.tempData=w;a.isShuffleNextPlaylist=!0}};
_.t.onUpdatePlaylistAction=function(a){var W;a=(W=_.A(a,_.uDA))==null?void 0:W.updatedRenderer;if(W=_.A(a,hB))this.data=W};
_.t.computeStyleType=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.t.computeThumbnailWidth=function(a){return a==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.t.computeHideThumbnailAria=function(a){if(a==null?0:a.thumbnailOverlays)for(var W=0;W<a.thumbnailOverlays.length;W++){var w=void 0;if((w=a.thumbnailOverlays[W])==null?0:w.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Ih.prototype.onYtNavigate=Ih.prototype.onYtNavigate;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Ih.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Ih.prototype,"ytComponentBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Ih.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ih.prototype,"rtlBullet",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.z("design:type",String)],Ih.prototype,"styleType",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.z("design:type",Number)],Ih.prototype,"thumbnailWidth",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ih.prototype,"modern",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.z("design:type",Boolean)],Ih.prototype,"isCustomThumbnail",void 0);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Object]),_.z("design:returntype")],Ih.prototype,"onYtNavigate",null);
Ih=_.f([_.C({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Ih);
_.D(Ih,"ytd-playlist-sidebar-primary-info-renderer",function(){if(SXI!==void 0)return SXI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return SXI=a},{mode:1});var YXD;var PD=function(){return _.u.apply(this,arguments)||this};
_.c(PD,_.u);PD.prototype.computeOwnerVisibility=function(a){return!(!a.videoOwner&&!a.button)};
PD.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],PD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],PD.prototype,"data",void 0);PD=_.f([_.C({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],PD);
_.D(PD,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(YXD!==void 0)return YXD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return YXD=a},{mode:1});var Tdk;var XO=function(){var a=_.u.apply(this,arguments)||this;a.expanded=!1;a.isCompact=!1;return a};
_.c(XO,_.u);_.t=XO.prototype;_.t.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.t.dataChanged=function(){this.data&&_.xf(_.M(this.text),_.fEJ(_.VV$,_.sd(this.data.text||null)))};
_.t.computeAutoScrollEnabled=function(a,W){return a&&!W};
_.t.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.t.toggleOnTap=function(){this.expanded=!this.expanded};
XO.prototype.expandedChanged=XO.prototype.expandedChanged;XO.prototype.dataChanged=XO.prototype.dataChanged;_.f([_.R(_.vAk),_.z("design:type",Object)],XO.prototype,"ytdAutoScrollBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],XO.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],XO.prototype,"expanded",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],XO.prototype,"isCompact",void 0);_.f([_.b({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.z("design:type",Boolean)],XO.prototype,"autoScrollEnabled",void 0);_.f([_.w$("#text"),_.z("design:type",Object)],XO.prototype,"text",void 0);_.f([_.w$("#expander-icon"),_.z("design:type",Object)],XO.prototype,"expanderIcon",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XO.prototype,"dataChanged",null);_.f([_.a5("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XO.prototype,"expandedChanged",null);XO=_.f([_.C({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],XO);
_.D(XO,"ytd-channel-legal-info-renderer",function(){if(Tdk!==void 0)return Tdk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Tdk=a},{mode:1});var KcX;var psf=_.P_("DOWNLOAD",{},"Download"),rr2=_.P_("DOWNLOADING",{},"Downloading"),Ar0=_.P_("DOWNLOADED",{},"Downloaded"),vD=function(){var a=_.u.apply(this,arguments)||this;a.downloadProgress=0;a.isDownloadComplete=!1;a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.c(vD,_.u);_.t=vD.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.dataChanged=function(){var a;(a=this.data)!=null&&a.tooltip||(a=_.ey(_.Cx().getState(),this.playlistId),this.updateButtonState(a))};
_.t.computePlaylistId=function(a){return a};
_.t.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.t.updateButtonState=function(a){if(this.data&&(this.data.tooltip!==rr2||!_.os(a))){this.isDownloadComplete=!1;switch(a){case "TRANSFER_STATE_UNKNOWN":a=psf;var W="OFFLINE_DOWNLOAD";var w="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":a=Ar0;W="OFFLINE_PIN";w="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":a=rr2;W="OFFLINE_DOWNLOADING_ZERO";w="ACTION_REMOVE_WITH_PROMPT";
break;default:a=psf,W="OFFLINE_DOWNLOAD",w="ACTION_ADD"}var Z=Object.assign({},this.data);Z.tooltip=a;Z.accessibilityData={accessibilityData:{label:a}};Z.icon={iconType:W};Z.size="SIZE_DEFAULT";_.A(Z.command,_.lK)&&(_.A(Z.command,_.lK).action=w);this.set("data",Z)}};
_.t.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 W;a!==((W=this.data.icon)==null?void 0:W.iconType)&&(W=Object.assign({},this.data),W.tooltip=rr2,W.accessibilityData={accessibilityData:{label:rr2}},W.icon={iconType:a},_.A(W.command,_.lK)&&(_.A(W.command,_.lK).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",W))}};
vD.prototype.updateProgress=vD.prototype.updateProgress;vD.prototype.onTransferStateChanged=vD.prototype.onTransferStateChanged;vD.prototype.dataChanged=vD.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],vD.prototype,"ytdReduxBehavior",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],vD.prototype,"forceIconButton",void 0);
_.f([_.b({value:!0}),_.z("design:type",Boolean)],vD.prototype,"forceIconOnly",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],vD.prototype,"overrides",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],vD.prototype,"buttonTooltipPosition",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],vD.prototype,"styleActionButton",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],vD.prototype,"disableTextTransform",void 0);
_.f([_.b({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.z("design:type",String)],vD.prototype,"playlistId",void 0);_.f([_.b(),_.z("design:type",Object)],vD.prototype,"data",void 0);_.f([_.b({selector:_.siE,selectorArgs:["playlistId"]}),_.z("design:type",Object)],vD.prototype,"downloadProgress",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vD.prototype,"isDownloadComplete",void 0);
_.f([_.b({selector:_.ey,selectorArgs:["playlistId"]}),_.z("design:type",String)],vD.prototype,"transferState",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],vD.prototype,"showTooltips",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],vD.prototype,"sendCommandWhenDisabled",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],vD.prototype,"disabled",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vD.prototype,"dataChanged",null);_.f([_.lO("transferState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vD.prototype,"onTransferStateChanged",null);_.f([_.lO("downloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vD.prototype,"updateProgress",null);
vD=_.f([_.C({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],vD);
_.D(vD,"ytd-download-playlist-button-renderer",function(){if(KcX!==void 0)return KcX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return KcX=a},{mode:1});var h$n;_.Ct(_.bC,"thumbnail-overlay-button-view-model",{props:{data:_.qR,lockupExperiments:_.qR}});var gR=function(){var a=_.u.apply(this,arguments)||this;a.isSquare=!1;a.isVertical=!1;return a};
_.c(gR,_.u);gR.prototype.computeIsSquare=function(a){return a!=null&&a.thumbnail?mUI(a.thumbnail)==="SQUARE":!1};
gR.prototype.computeIsVertical=function(a){return a!=null&&a.thumbnail?mUI(a.thumbnail)==="VERTICAL":!1};
gR.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.z("design:type",Object)],gR.prototype,"isSquare",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.z("design:type",Object)],gR.prototype,"isVertical",void 0);
_.f([_.b(),_.z("design:type",Object)],gR.prototype,"data",void 0);gR=_.f([_.C({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],gR);
_.D(gR,"ytd-hero-playlist-thumbnail-renderer",function(){if(h$n!==void 0)return h$n;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return h$n=a},{mode:1});var oh=function(){var a=_.u.apply(this,arguments)||this;a.isDarkTheme=!1;a.isUltraWide=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return a};
_.c(oh,_.u);_.t=oh.prototype;_.t.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.K();var a;(a=_.K().resolve(_.Vv(_.bt)))!=null&&(a.headerElement=this.hostElement)};
_.t.detached=function(){var a;(a=_.K().resolve(_.Vv(_.bt)))!=null&&(a.headerElement=void 0)};
_.t.onUpdateHeader=function(a){(a=a.detail)&&this.set("data",a)};
_.t.computeTextDisplayed=function(a){if(a)return a.textDisplayed?a.textDisplayed:a.placeholder};
_.t.gradientColorToLinearGradientStop=function(a){var W=this.isDarkTheme?a.darkThemeColor:a.lightThemeColor;return W?_.pC(W)+" "+((a==null?void 0:a.startLocation)||0)*100+"%":"transparent"};
_.t.onWindowResize=function(){var a;((a=this.data)==null?0:a.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.t.onIronResize=function(a){this.isUltraWide=!a.detail.value};
_.t.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.t.onUpdatePlaylistName=function(a){var W=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},a.detail.value));_.DW(this,function(){var w;(w=W.editableTitle)==null||w.resize()})};
_.t.onUpdatePlaylistDescription=function(a){var W=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},a.detail.value));_.DW(this,function(){var w;(w=W.editableDescriptionInlineExpander)==null||w.resize()})};
_.t.getCinematicData=function(a){return _.A(a==null?void 0:a.cinematicContainer,_.Ya)};
_.dU.Object.defineProperties(oh.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,W=(a=this.getCinematicData(this.data))==null?void 0:a.config;return(a=this.isDarkTheme?W==null?void 0:W.darkThemeBackgroundColor:W==null?void 0:W.lightThemeBackgroundColor)?"background-color:"+_.KC(a)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var a;return _.A((a=this.data)==null?void 0:a.descriptionForm,oF2)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var a=this,W,w,Z;return"background:linear-gradient(to bottom, "+(((Z=(W=this.getCinematicData(this.data))==null?void 0:(w=W.gradientColorConfig)==null?void 0:w.map(function(N){return a.gradientColorToLinearGradientStop(N)}))==null?void 0:Z.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var a;return _.sd((a=this.data)==null?void 0:a.descriptionTapText)}}});
oh.prototype.onUpdateHeader=oh.prototype.onUpdateHeader;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],oh.prototype,"actionHandlerBehavior",void 0);_.f([_.w$("#description-inline-expander"),_.z("design:type",Object)],oh.prototype,"descriptionInlineExpander",void 0);
_.f([_.w$("#editable-description-inline-expander"),_.z("design:type",Object)],oh.prototype,"editableDescriptionInlineExpander",void 0);_.f([_.b(),_.z("design:type",Object)],oh.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],oh.prototype,"isUltraWide",void 0);_.f([_.w$("#editable-title-display"),_.z("design:type",Object)],oh.prototype,"editableTitle",void 0);_.f([_.Q("isUltraWide"),_.z("design:type",Object),_.z("design:paramtypes",[])],oh.prototype,"maxDescriptionLines",null);
_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oh.prototype,"noCinematicData",null);_.f([_.E6("yt-new-playlist-header"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],oh.prototype,"onUpdateHeader",null);_.f([_.Q("data","isDarkTheme"),_.z("design:type",Object),_.z("design:paramtypes",[])],oh.prototype,"backgroundStyle",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oh.prototype,"descriptionFormData",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oh.prototype,"getDropdownTheme",null);_.f([_.Q("data","isDarkTheme"),_.z("design:type",String),_.z("design:paramtypes",[])],oh.prototype,"gradientStyle",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oh.prototype,"descriptionTapText",null);
oh=_.f([_.C({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],oh);
_.D(oh,"ytd-playlist-header-renderer",function(){if(oMX!==void 0)return oMX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return oMX=a},{mode:_.Vn("kevlar_poly_si_batch_j078")?1:2});var ihE;var crX;var kP=function(){return _.u.apply(this,arguments)||this};
_.c(kP,_.u);kP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kP.prototype,"data",void 0);kP=_.f([_.C({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],kP);
_.D(kP,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(crX!==void 0)return crX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return crX=a},{mode:1});var Uz=function(){return _.u.apply(this,arguments)||this};
_.c(Uz,_.u);
Uz.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}}}}};
Uz.prototype.computeUsePremiumShowStyle=function(a){if(!a||!a.items)return!1;for(var W=0;W<a.items.length;W++)if(_.A(a.items[W],hB)){var w=void 0;return((w=_.A(a.items[W],hB))==null?void 0:w.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Uz.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Uz.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.z("design:type",Boolean)],Uz.prototype,"usePremiumShowStyle",void 0);
Uz=_.f([_.C({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Uz);
_.D(Uz,"ytd-playlist-sidebar-renderer",function(){if(ihE!==void 0)return ihE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return ihE=a},{mode:1});var e$9;var nMI=_.xQ(function(a){var W=a.data;var w=a.noPadding;var Z=a.enableBanner;var N=a.cinematicContainerTopbarOffset;var B=a.allowCinematicContainerOverflow;var I=a.displayAsSidebar;a=a.className;_.Ka(function(){W().tagManagerId&&(_.g4(W().tagManagerId,_.LF("GL")),WN0(W().tagManagerId))});
var X=_.X7(EAE,function(){return W().pageHeaderEntityKey});
return _.k("yt-page-header-renderer",{class:_.W$("page-header-renderer-wiz",a)},_.k(_.Ax,{data:function(){var v;return((v=X())==null?0:v.header)?X().header:(I==null?0:I())&&W().sidebarContent?W().sidebarContent:W().content}},{pageHeaderViewModel:function(v){return _.k(_.WSe,{data:v.data,
noPadding:w,enableBanner:Z,cinematicContainerTopbarOffset:N,allowCinematicContainerOverflow:B,displayAsSidebar:function(){return(I==null?void 0:I())&&W().enableSidebarView}})}}))},"wi");
nMI.idomCompat=!0;_.Ct(nMI,"yt-page-header-renderer",{props:{data:_.qR,noPadding:_.qR,enableBanner:_.qR,cinematicContainerTopbarOffset:_.qR,allowCinematicContainerOverflow:_.qR,displayAsSidebar:_.qR,className:_.qR}});_.Ct(_.EzL,"yt-image-banner-view-model",{props:{data:_.qR,isPositionRelative:_.qR}});var Oz=function(){var a=_.u.apply(this,arguments)||this;a.expandableCustomTabRenderable=function(W){return zbf(W,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};
_.c(Oz,_.u);_.t=Oz.prototype;_.t.computeHeaderDisabled=function(a,W){return W||!a||this.tabsHidden};
_.t.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.t.computeIsRichGridShorts=function(a){return a==="RICH_GRID_STYLE_SHORTS_GRID"||a==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.t.computeImageBannerViewModel=function(){var a,W;return _.A((W=_.A((a=this.data)==null?void 0:a.content,_.nVT))==null?void 0:W.banner,_.Acl)};
_.t.computeHasCinematicContainer=function(){var a,W;return!((W=_.A((a=this.data)==null?void 0:a.content,_.nVT))==null||!W.background)};
_.t.handleHeaderResize=function(){var a=_.M(this.hostElement).querySelector("#header");a&&_.E$(a,"iron-resize")};
_.t.handleInsertTabCommand=function(a){var W=_.A(a,pcf);W&&(W.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(w){return w.tabRenderer&&w.tabRenderer.tabIdentifier===W.tabIdentifier})||this.splice("tabs",W.tabIndex||-1,0,W.tab))};
_.t.handleRefreshChannelTabAction=function(a){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===a&&_.E$(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.t.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Hu(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.t.observerRichGridSlimItemsPerRow=function(){_.Hu(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.t.updateCssVars=function(){this.richGridItemsPerRow&&_.Hu(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.yv("rich_grid_max_item_width",500))+16)-16+"px"})};
_.t.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Hu(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.t.onDataChanged=function(){this.handleHeaderResize()};
_.t.onWindowResize=function(){this.handleHeaderResize()};
_.t.onFocusedChanged=function(a){(a=_.QV(a))&&a.is==="tp-yt-paper-tab"&&a.hasRipple()&&(a.getRipple().holdDown=!a.pointerDown&&a.focused)};
_.t.updateSelectedFromBinding=function(a){this.ytdTabbedHeaderBehavior.selected=a.detail.value};
_.t.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.dU.Object.defineProperties(Oz.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:yWD(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"}}});
Oz.prototype.onDataChanged=Oz.prototype.onDataChanged;Oz.prototype.updateCssVarsForResponsiveGrid=Oz.prototype.updateCssVarsForResponsiveGrid;Oz.prototype.updateCssVars=Oz.prototype.updateCssVars;Oz.prototype.observerRichGridSlimItemsPerRow=Oz.prototype.observerRichGridSlimItemsPerRow;Oz.prototype.observerRichGridItemsPerRow=Oz.prototype.observerRichGridItemsPerRow;_.f([_.R(_.Lg),_.z("design:type",Object)],Oz.prototype,"ytdGridStateAwareBehavior",void 0);
_.f([_.R(rjk),_.z("design:type",Object)],Oz.prototype,"ytdTabbedHeaderBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Oz.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],Oz.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.R(_.ij),_.z("design:type",Object)],Oz.prototype,"ytdReduxBehavior",void 0);_.f([_.w$("#tabs"),_.z("design:type",Object)],Oz.prototype,"tabsElement",void 0);_.f([_.b(),_.z("design:type",Array)],Oz.prototype,"tabs",void 0);_.f([_.b(),_.z("design:type",Object)],Oz.prototype,"expandableCustomTabRenderable",void 0);_.f([_.Q("tabs.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],Oz.prototype,"tabGroupShape",null);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Oz.prototype,"isRichGrid",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Oz.prototype,"isConstrainedList",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Object)],Oz.prototype,"richGridMiniMode",void 0);_.f([_.b({selector:function(a){return a.ui.richGridStyle}}),
_.z("design:type",Object)],Oz.prototype,"richGridStyle",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.z("design:type",Object)],Oz.prototype,"isRichGridShorts",void 0);_.f([_.b({selector:_.AG}),_.z("design:type",Number)],Oz.prototype,"richGridItemsPerRow",void 0);_.f([_.b({selector:function(a){return a.ui.richGridContainerWidth}}),
_.z("design:type",Number)],Oz.prototype,"richGridContainerWidth",void 0);_.f([_.b({selector:_.izU}),_.z("design:type",Number)],Oz.prototype,"richGridSlimItemsPerRow",void 0);_.f([_.b(),_.z("design:type",Object)],Oz.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Oz.prototype,"responsiveSizing",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Oz.prototype,"disableGridStateAware",void 0);
_.f([_.b({computed:"computeImageBannerViewModel(data)"}),_.z("design:type",Object)],Oz.prototype,"imageBannerViewModel",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.z("design:type",Boolean)],Oz.prototype,"hasCinematicContainer",void 0);_.f([_.b({selector:_.ZYE,reflectToAttribute:!0}),_.z("design:type",Boolean)],Oz.prototype,"guideIsVisibleButNotPersistent",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("imageBannerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],Oz.prototype,"hasBanner",null);_.f([_.b({reflectToAttribute:!0}),_.Q("imageBannerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],Oz.prototype,"hasInsetBanner",null);_.f([_.b({computed:"computeTabsHidden(tabs)",value:!0}),_.z("design:type",Boolean)],Oz.prototype,"tabsHidden",void 0);
_.f([_.a5("richGridItemsPerRow","isRichGrid"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oz.prototype,"observerRichGridItemsPerRow",null);_.f([_.a5("richGridSlimItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oz.prototype,"observerRichGridSlimItemsPerRow",null);
_.f([_.a5("richGridItemsPerRow","richGridMiniMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oz.prototype,"updateCssVars",null);_.f([_.a5("richGridContainerWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oz.prototype,"updateCssVarsForResponsiveGrid",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oz.prototype,"onDataChanged",null);
Oz=_.f([_.C({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Oz);
_.D(Oz,"ytd-tabbed-page-header",function(){if(e$9!==void 0)return e$9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return e$9=a},{mode:1});var jS2;var SA=function(){return _.u.apply(this,arguments)||this};
_.c(SA,_.u);SA.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Hu(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.dU.Object.defineProperties(SA.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var a,W;return this.componentBehavior.computeIcon_(((W=_.A((a=this.data)==null?void 0:a.badge,_.Ksh))==null?void 0:W.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var a,W;return(W=_.A((a=this.data)==null?void 0:a.badge,_.Ksh))==null?void 0:W.label}}});
SA.prototype.observerRichGridItemsPerRow=SA.prototype.observerRichGridItemsPerRow;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],SA.prototype,"componentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],SA.prototype,"ytdReduxBehavior",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.rK}),_.z("design:type",Boolean)],SA.prototype,"richGridMiniMode",void 0);
_.f([_.b({selector:_.AG}),_.z("design:type",Number)],SA.prototype,"richGridItemsPerRow",void 0);_.f([_.b(),_.z("design:type",Object)],SA.prototype,"data",void 0);_.f([_.a5("richGridItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SA.prototype,"observerRichGridItemsPerRow",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],SA.prototype,"badgeIconName",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],SA.prototype,"badgeLabel",null);SA=_.f([_.C({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],SA);
_.D(SA,"ytd-member-hub-profile-renderer",function(){if(jS2!==void 0)return jS2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return jS2=a},{mode:1});var LcK;var YP=function(){return _.u.apply(this,arguments)||this};
_.c(YP,_.u);YP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],YP.prototype,"data",void 0);YP=_.f([_.C({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],YP);
_.D(YP,"ytd-settings-sidebar-renderer",function(){if(LcK!==void 0)return LcK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return LcK=a},{mode:1});var JrI;var TI=function(){var a=_.u.apply(this,arguments)||this;a.expandableCustomTabRenderable=function(W){return zbf(W,function(){return void a.onSearchNavigate()})};
return a};
_.c(TI,_.u);TI.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
TI.prototype.onSearchNavigate=function(){this.selected=void 0};
TI.prototype.onTabsChange=function(){var a,W=(a=this.tabs)==null?void 0:a.findIndex(function(w){var Z;return w==null?void 0:(Z=w.tabRenderer)==null?void 0:Z.selected});
W!==void 0&&(this.selected=W)};
TI.prototype.onTabsActive=function(a){if(this.tabs!==void 0){var W,w;(a=(W=this.tabs[a.detail.selected])==null?void 0:(w=W.tabRenderer)==null?void 0:w.endpoint)&&_.E$(this.hostElement,"yt-navigate",{endpoint:a})}};
_.dU.Object.defineProperties(TI.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:yWD(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
TI.prototype.onTabsChange=TI.prototype.onTabsChange;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],TI.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.Lg),_.z("design:type",Object)],TI.prototype,"ytdGridStateAwareBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],TI.prototype,"ytdGuideStateAwareBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],TI.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Array)],TI.prototype,"tabs",void 0);_.f([_.b(),_.z("design:type",Number)],TI.prototype,"selected",void 0);_.f([_.Q("tabs.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],TI.prototype,"tabGroupShape",null);_.f([_.b(),_.z("design:type",Object)],TI.prototype,"expandableCustomTabRenderable",void 0);
_.f([_.Q("tabs"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],TI.prototype,"tabsEnabled",null);_.f([_.lO("tabs"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TI.prototype,"onTabsChange",null);TI=_.f([_.C({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],TI);
_.D(TI,"ytd-topic-channel-details-renderer",function(){if(JrI!==void 0)return JrI;var a=document.createElement("template");_.n(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        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);return JrI=a},{mode:1});var Fc0;var KE=function(){var a=_.u.apply(this,arguments)||this;a.disableGridStateAware=!1;return a};
_.c(KE,_.u);KE.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]]"}}}}}};
KE.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
KE.prototype.updateCssVars=function(){_.Hu(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.yv("rich_grid_max_item_width",500))+16)-16+"px"})};
KE.prototype.updateCssVars=KE.prototype.updateCssVars;KE.prototype.activeChanged=KE.prototype.activeChanged;_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],KE.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],KE.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],KE.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Array)],KE.prototype,"tabs",void 0);_.f([_.b(),_.z("design:type",Boolean)],KE.prototype,"active",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],KE.prototype,"disableGridStateAware",void 0);
_.f([_.b({selector:_.AG}),_.z("design:type",Number)],KE.prototype,"richGridItemsPerRow",void 0);_.f([_.b({selector:_.rK}),_.z("design:type",Boolean)],KE.prototype,"richGridMiniMode",void 0);_.f([_.w$("ytd-carousel-item-renderer"),_.z("design:type",Object)],KE.prototype,"carousel",void 0);_.f([_.a5("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KE.prototype,"activeChanged",null);
_.f([_.a5("richGridItemsPerRow","richGridMiniMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KE.prototype,"updateCssVars",null);KE=_.f([_.C({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],KE);
_.D(KE,"ytd-carousel-header-renderer",function(){if(Fc0!==void 0)return Fc0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Fc0=a},{mode:1});var M$2;var R$E=_.ma(["https://www.google-analytics.com/analytics.js"]),pE=function(){var a=_.u.apply(this,arguments)||this;a.scriptAnalyticsAdded=!1;return a};
_.c(pE,_.u);pE.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var a,W=(a=this.data)==null?void 0:a.tagManagerId;W&&(_.g4(W,_.LF("GL")),WN0(W))};
pE.prototype.sendGoogleAnalyticsPageview=function(a){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var w=_.TH.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(w)};
var W=window.ga;W("set","page",window.location.pathname);W.l=+new Date;W("set","forceSSL",!0);W("create",a,"'auto'");W("send","pageview")};
pE.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var a=_.PM("SCRIPT");a.name="ga-analytics";var W=_.ya(R$E);_.Q$(a,W);a.async=!0;_.M(this.hostElement).appendChild(a)};
pE.prototype.dataChanged=pE.prototype.dataChanged;_.f([_.b(),_.z("design:type",Object)],pE.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pE.prototype,"dataChanged",null);pE=_.f([_.C({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],pE);
_.D(pE,"ytd-channel-metadata-renderer",function(){if(M$2!==void 0)return M$2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return M$2=a},{mode:1});var qXn;var QS9;var rR=function(){return _.u.apply(this,arguments)||this};
_.c(rR,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],rR.prototype,"data",void 0);rR=_.f([_.C({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],rR);
_.D(rR,"ytd-sub-feed-option-renderer",function(){if(QS9!==void 0)return QS9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return QS9=a},{mode:1});var xpI;var AU=function(){return _.u.apply(this,arguments)||this};
_.c(AU,_.u);AU.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],AU.prototype,"ytRendererStamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],AU.prototype,"data",void 0);AU=_.f([_.C({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],AU);
_.D(AU,"ytd-sub-feed-selector-renderer",function(){if(xpI!==void 0)return xpI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return xpI=a},{mode:1});var hU=function(){return _.u.apply(this,arguments)||this};
_.c(hU,_.u);
hU.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}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],hU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],hU.prototype,"data",void 0);hU=_.f([_.C({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],hU);
_.D(hU,"ytd-browse-feed-actions-renderer",function(){if(qXn!==void 0)return qXn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return qXn=a},{mode:1});var bha;var sSI;var io=function(){return _.u.apply(this,arguments)||this};
_.c(io,_.u);io.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],io.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],io.prototype,"data",void 0);io=_.f([_.C({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],io);
_.D(io,"ytd-mini-channel-renderer",function(){if(sSI!==void 0)return sSI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return sSI=a},{mode:1});var uPf;var cD=function(){return _.u.apply(this,arguments)||this};
_.c(cD,_.u);cD.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],cD.prototype,"data",void 0);cD=_.f([_.C({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],cD);
_.D(cD,"ytd-vertical-channel-section-renderer",function(){if(uPf!==void 0)return uPf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return uPf=a},{mode:1});var eA=function(){return _.u.apply(this,arguments)||this};
_.c(eA,_.u);eA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],eA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],eA.prototype,"data",void 0);eA=_.f([_.C({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],eA);
_.D(eA,"ytd-browse-secondary-contents-renderer",function(){if(bha!==void 0)return bha;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
return bha=a},{mode:1});var CRz;var nE=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};a.notActive=!1;a.isConstrainedList=!1;return a};
_.c(nE,_.u);_.t=nE.prototype;
_.t.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 W;return(a==null?void 0:(W=a.webComponentHint)==null?void 0:W.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}}}}};
_.t.getPath=function(a,W){var w="data.tabs.#"+W+".";a.tabs[W].tabRenderer?w+="tabRenderer.":a.tabs[W].expandableTabRenderer&&(w+="expandableTabRenderer.");return w+"content.sectionListRenderer"};
_.t.computeDisplayedContent=function(a){this.unlinkPaths("content");if(a&&a.tabs)for(var W=a.tabs.length,w=0;w<W;w++){var Z=a.tabs[w].tabRenderer||a.tabs[w].expandableTabRenderer;if(Z.selected&&Z.content)return this.linkPaths("content",this.getPath(a,w)),Z.content}return null};
_.t.computeHasSecondaryColumnData=function(a){return!!a&&!!a.secondaryContents};
_.t.onRetrieveLocation=function(a,W){W.locationRetrieved(W.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);a.stopPropagation()};
_.t.onYtServiceRequestSent=function(a,W){_.r("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(W)};
_.t.onYtServiceRequestCompleted=function(a,W){_.r("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(W)};
_.t.onReplaceFeedContentAction=function(a){if(!_.r("replace_feed_content_action_killswitch")&&!this.notActive){var W;(a=(W=_.A(a,PvD))==null?void 0:W.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(a)}};
_.t.handleServiceRequestActions=function(a){if(a=a.actions){a=_.l(a);for(var W=a.next();!W.done;W=a.next()){W=W.value;var w=void 0;((w=_.A(W,PvD))==null?0:w.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.A(W,PvD).items)}}};
nE.prototype.onYtServiceRequestCompleted=nE.prototype.onYtServiceRequestCompleted;nE.prototype.onYtServiceRequestSent=nE.prototype.onYtServiceRequestSent;nE.prototype.onRetrieveLocation=nE.prototype.onRetrieveLocation;_.f([_.R(_.Lg),_.z("design:type",Object)],nE.prototype,"ytdGridStateAwareBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],nE.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],nE.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],nE.prototype,"data",void 0);_.f([_.b({computed:"computeDisplayedContent(data)"}),_.z("design:type",Object)],nE.prototype,"content",void 0);
_.f([_.b({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],nE.prototype,"hasSecondaryColumnData",void 0);_.f([_.b({value:function(){return window.outerHeight>1024?3:2}}),
_.z("design:type",Number)],nE.prototype,"initialCount",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],nE.prototype,"pageSubtype",void 0);_.f([_.w$("ytd-section-list-renderer"),_.z("design:type",Object)],nE.prototype,"listRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],nE.prototype,"notActive",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nE.prototype,"isConstrainedList",void 0);
_.f([_.b(),_.z("design:type",String)],nE.prototype,"responsiveSizing",void 0);_.f([_.E6("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],nE.prototype,"onRetrieveLocation",null);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],nE.prototype,"onYtServiceRequestSent",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],nE.prototype,"onYtServiceRequestCompleted",null);nE=_.f([_.C({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],nE);
_.D(nE,"ytd-two-column-browse-results-renderer",function(){if(CRz!==void 0)return CRz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return CRz=a},{mode:2});var Ged;var Dp0;var jA=function(){var a=_.u.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};
_.c(jA,_.u);_.t=jA.prototype;_.t.attached=function(){this.requestElementsPerRow()};
_.t.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_]]"}}}}}};
_.t.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
_.t.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.t.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.t.computeAlertStyle_=function(a){return a};
_.t.observerElementsPerRow=function(){this.elementsPerRow&&_.Hu(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.t.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.t.requestElementsPerRow=function(){_.E$(this.hostElement,"yt-request-elements-per-row")};
jA.prototype.onIsVisibleChanged_=jA.prototype.onIsVisibleChanged_;jA.prototype.observerElementsPerRow=jA.prototype.observerElementsPerRow;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],jA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],jA.prototype,"actionHandlerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],jA.prototype,"data",void 0);_.f([_.b({value:6,reflectToAttribute:!0}),_.z("design:type",Number)],jA.prototype,"elementsPerRow",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],jA.prototype,"wrapButtons",void 0);_.f([_.b({value:_.LF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.z("design:type",Boolean)],jA.prototype,"isMusic",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.z("design:type",String)],jA.prototype,"alertStyle",void 0);_.f([_.b({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.z("design:type",Function)],jA.prototype,"dismissBoundButtonTap_",void 0);_.f([_.b({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.z("design:type",Function)],jA.prototype,"acceptBoundButtonTap_",void 0);_.f([_.a5("elementsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jA.prototype,"observerElementsPerRow",null);_.f([_.a5("data.isVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jA.prototype,"onIsVisibleChanged_",null);jA=_.f([_.TD({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],jA);
_.D(jA,"yt-alert-with-actions-renderer",function(){if(Dp0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;Ged===void 0&&(Ged=document.createElement("template"));var Z=Ged;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Dp0=a}a=Dp0;return a},{mode:2});_.Ct(_.xQ(function(a){function W(G){var V={};return _.k(_.k_,{text:G,className:_.W$("ytPersonalGreetingViewModelHeadline",(V.ytPersonalGreetingViewModelHeadlineSmall=function(){return X()===48},V))})}
function w(G,V){return _.k("span",{el:G,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},W(V))}
var Z=_.D8(),N=_.D8(),B=_.D8(),I=function(){return a.data().canvasPromoData},X=function(){var G;
return(G=a.data().bannerHeight)!=null?G:56},v=_.l(_.$1({content:""},void 0,"rcUSic")),U=v.next().value,O=v.next().value,S=_.Rkv(Z,{throttleMs:100}),T=_.Rkv(N,{throttleMs:100}),p=_.Rkv(B,{throttleMs:100});
v=_.l(_.$1(!0,void 0,"b0Yv9d"));var h=v.next().value,L=v.next().value;v=_.l(_.$1(!0,void 0,"ByEGnd"));var F=v.next().value,x=v.next().value;_.Ka(function(){x(T.width()-S.width()>1);L(p.width()+(a.data().avatar?48:0)-S.width()>1);O(h()?a.data().shorterGreeting:a.data().greeting)},"nSIsDe");
_.Cj(Z,function(){var G;return(G=a.data())==null?void 0:G.rendererContext},void 0,void 0,void 0,!0);
return _.k("yt-personal-greeting-view-model",{el:Z,"aria-hidden":function(){return F()},
class:_.W$(a.className,"ytPersonalGreetingViewModelHost"),style:_.It({height:(0,_.Oh)(function(){return F()?0:X()})})},_.k(_.Y,{cond:function(){return a.data().avatar&&!h()},
then:function(){return _.k(_.Ax,{data:function(){return a.data().avatar}},{decoratedAvatarViewModel:function(G){return _.k(_.Sd,{data:G.data,
className:_.W$("ytPersonalGreetingViewModelAvatar")})}})}}),_.k("h1",null,W(function(){var G;
return(I==null?void 0:(G=I())==null?void 0:G.headline)||U()})),w(B,function(){return a.data().greeting}),w(N,function(){return a.data().shorterGreeting}))},"xi"),"yt-personal-greeting-view-model",{props:{data:_.qR,
className:_.qR}});var LE=function(){var a=_.u.apply(this,arguments)||this;a.hidden=!1;a.isConstrainedList=!1;a.darkerDarkTheme=_.r("web_darker_dark_theme");a.responsiveSizing="COMPACT";a.attachedPlayers=_.r("kevlar_channel_trailer_multi_attach")?[]:void 0;a.player=null;a.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return a};
_.c(LE,_.u);_.t=LE.prototype;
_.t.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:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},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}}}}};
_.t.created=function(){var a=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){a.disposeMastheadAd()}]};
_.t.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new ib0(this.refresh,this.contents))};
_.t.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.t.activeChanged=function(){var a=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=a)};
_.t.tabsChanged=function(){var a=this,W,w,Z,N;if(this.pageSubtype==="channels"||_.r("kevlar_tab_gestures_for_tabbed_header_data")&&(((W=this.data)==null?0:(w=W.header)==null?0:w.c4TabbedHeaderRenderer)||((Z=this.data)==null?0:(N=Z.header)==null?0:N.carouselHeaderRenderer)))this.tabGestures=new cf(this.contents,this.contents,this.hostElement,this.header,function(v){a.ytdReduxBehavior.dispatch(v)});
var B,I,X;W=(B=this.data)==null?void 0:(I=B.contents)==null?void 0:(X=I.twoColumnBrowseResultsRenderer)==null?void 0:X.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=W);this.tabGestures&&this.tabGestures.tabsChanged(W)};
_.t.channelIdChanged=function(){if(this.tabGestures){var a,W,w,Z=this.tabGestures,N=(a=this.data)==null?void 0:(W=a.header)==null?void 0:(w=W.c4TabbedHeaderRenderer)==null?void 0:w.channelId;N&&N!==Z.currentChannelId&&(Z.scrollPositionForTabs.clear(),Z.currentChannelId=N,Z.lastVisitedTabScrollPosition=void 0,Z.tabsStartAtInPx=0)}};
_.t.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.t.engagementPanelsChanged=function(){var a=_.K().resolve(_.SO);if(a){if(this.engagementPanels)for(var W=_.l(this.engagementPanels),w=W.next();!w.done;w=W.next()){var Z=void 0;(w=(Z=w.value.identifier)==null?void 0:Z.tag)&&a.panelMap.delete(w)}this.engagementPanels=[];var N;W=_.l(((N=this.data)==null?void 0:N.panels)||[]);for(N=W.next();!N.done;N=W.next()){N=_.A(N.value,_.NVa);var B=w=void 0,I=void 0,X=void 0;if(Z=((w=N)==null?void 0:w.targetId)||((B=N)==null?void 0:B.panelIdentifier)||((I=N)==null?
void 0:(X=I.identifier)==null?void 0:X.tag))B=w=void 0,(B=(w=a).registerPanelContent)==null||B.call(w,Z,{engagementPanelSectionListRenderer:N}),this.engagementPanels.push(N)}}};
_.t.onStampFinished=function(){var a=this;_.DW(this,function(){if(a.tabGestures){var W=a.tabGestures;if(W.scrollPositionNeedsUpdate){var w=_.K().resolve(_.Vv(_.Gw)),Z;if((Z=W.selectedTab)!=null&&Z.title&&w&&(Z=w.getCurrentPage())){if(W.scrollPositionForTabs.has(W.selectedTab.title)){var N,B;w=(B=(N=w.getCurrentPage())==null?void 0:N.clientHeight)!=null?B:0;N=W.scrollPositionForTabs.get(W.selectedTab.title);Z.setScrollTop(N);w>N+100&&(W.scrollPositionNeedsUpdate=!1)}else Z.setScrollTop(Math.min(W.lastVisitedTabScrollPosition!==
void 0?W.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,W.tabsStartAtInPx)),W.scrollPositionNeedsUpdate=!1;W.ytdReduxDispatch(awn(!1))}}}})};
_.t.loadPage_=function(a){this.initCsi();a&&(this.data=a);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.t.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.c4TabbedHeaderRenderer.title",a))return this.get("header.c4TabbedHeaderRenderer.title",a);if(this.get("header.feedTabbedHeaderRenderer.title",a))return _.sd(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 _.sd(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
a));var W,w;return _.r("enable_page_header_page_title")&&(a==null?0:(W=a.header)==null?0:(w=W.pageHeaderRenderer)==null?0:w.pageTitle)?a.header.pageHeaderRenderer.pageTitle:""};
_.t.updateTitle=function(a){_.E$(this.hostElement,"yt-update-title",this.getTitle(a))};
_.t.initCsi=function(){_.pV(this.pageSubtype||"browse",["ol","cpt"])};
_.t.getPlayer=function(){if(_.r("kevlar_channel_trailer_multi_attach")){for(var a=_.l(this.attachedPlayers),W=a.next();!W.done;W=a.next())if(W=W.value,W.isConnected||_.Lr(this.hostElement,W))return W;return null}return this.player};
_.t.getPlayerContainer=function(){return null};
_.t.onPlayerAttached=function(a,W){_.r("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(W):this.player=W};
_.t.onPlayerDetached=function(a,W){_.r("kevlar_channel_trailer_multi_attach")?(a=this.attachedPlayers.indexOf(W),a<0||this.attachedPlayers.splice(a,1)):this.player=null};
_.t.getServiceTrackingParams=function(){var a,W;return((a=this.data)==null?void 0:(W=a.responseContext)==null?void 0:W.serviceTrackingParams)||[]};
_.t.setMastheadAd=function(a){a&&a.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=a&&a.mastheadAd};
_.t.dataChanged=function(){var a=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.Qfa();_.DW(this,function(){_.W_(a.hostElement,"ytd-update-grid-state-action")})};
_.t.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.t.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var a=this.data.alerts;return a&&a.find(function(W){return!!W.alertWithActionsRenderer})}};
_.t.computeGreetingData=function(){if(this.data&&this.data.alerts){var a=this.data.alerts;return a&&a.find(function(W){return!!W.personalGreetingViewModel})}};
_.t.computeHasC4TabbedHeaderRenderer=function(a){var W;return!!(a==null?0:(W=a.header)==null?0:W.c4TabbedHeaderRenderer)};
_.t.computeHasMemberHubProfileRenderer=function(a){var W;return!!(a==null?0:(W=a.header)==null?0:W.memberHubProfileRenderer)};
_.t.handleAlertCommand=function(a){this.get("alertCommand.alert.alertWithActionsRenderer",a)&&(a=_.A(a,XcD),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",a.alert))};
_.t.handleYtPlaylistDeletionRedirect=function(a){a=this.get("playlistDeletionRedirectCommand.redirectEndpoint",a);_.E$(this.hostElement,"yt-navigate",{endpoint:a})};
_.t.computeFluidWidth=function(a,W,w){if(W==="mini_app"||w)return!0;var Z,N,B;a=a==null?void 0:(Z=a.contents)==null?void 0:(N=Z.twoColumnBrowseResultsRenderer)==null?void 0:(B=N.tabs)==null?void 0:B.find(function(v){var U;return v==null?void 0:(U=v.tabRenderer)==null?void 0:U.selected});
if(!a)return!1;var I,X;return!!((I=a.tabRenderer)==null?0:(X=I.content)==null?0:X.richGridRenderer)&&!["channel","channels","playables"].includes(W)};
_.t.computeHeaderFluidWidth=function(a){return a==="hashtag-landing-page"};
_.t.computeHasSidebar=function(a){var W;return!!(a.sidebar||((W=a.header)==null?0:W.playlistHeaderRenderer))};
_.t.computeHasPageHeaderSidebar=function(a){var W,w;return!!((W=a.header)==null?0:(w=W.pageHeaderRenderer)==null?0:w.enableSidebarView)};
_.t.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 W=0;W<a.items.length;W++)if(_.A(a.items[W],hB)){var w=void 0;return((w=_.A(a.items[W],hB))==null?void 0:w.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.t.computeIsConstrainedList=function(a){return _.r("web_enable_constrained_list_subscriptions_channels")&&a==="subscriptions-channels"};
_.t.computeResponsiveSizing=function(a){return a==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.dU.Object.defineProperties(LE.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var a,W;return((a=this.data)==null?0:(W=a.header)==null?0:W.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var a,W;if(!((a=this.data)==null?0:(W=a.sidebar)==null?0:W.playlistSidebarRenderer))return!1;var w;return(w=this.data)!=null&&w.header?!1:!0}}});
_.dU.Object.defineProperties(LE,{template:{configurable:!0,enumerable:!0,get:function(){if(nFn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);nFn=a}a=nFn;return a}}});
LE.prototype.dataChanged=LE.prototype.dataChanged;LE.prototype.onPlayerDetached=LE.prototype.onPlayerDetached;LE.prototype.onPlayerAttached=LE.prototype.onPlayerAttached;LE.prototype.onStampFinished=LE.prototype.onStampFinished;LE.prototype.engagementPanelsChanged=LE.prototype.engagementPanelsChanged;LE.prototype.scrollAtTopChanged=LE.prototype.scrollAtTopChanged;LE.prototype.channelIdChanged=LE.prototype.channelIdChanged;LE.prototype.tabsChanged=LE.prototype.tabsChanged;
LE.prototype.activeChanged=LE.prototype.activeChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],LE.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],LE.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],LE.prototype,"ytdReduxBehavior",void 0);
_.f([_.R(_.rG.YtPageBehavior),_.z("design:type",Object)],LE.prototype,"ytPageBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],LE.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],LE.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],LE.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],LE.prototype,"hidden",void 0);_.f([_.b(),_.z("design:type",Object)],LE.prototype,"mastheadAdData",void 0);_.f([_.b({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.z("design:type",Object)],LE.prototype,"alertBannerData",void 0);_.f([_.b({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.z("design:type",Object)],LE.prototype,"greetingData",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],LE.prototype,"pageSubtype",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.z("design:type",Boolean)],LE.prototype,"hasC4TabbedHeaderRenderer",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.z("design:type",Boolean)],LE.prototype,"hasMemberHubProfileRenderer",void 0);
_.f([_.b({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],LE.prototype,"hasSidebar",void 0);_.f([_.b({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],LE.prototype,"hasPageHeaderSidebar",void 0);_.f([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],LE.prototype,"roundedContainer",void 0);
_.f([_.b({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],LE.prototype,"useUnifiedShowPageLayout",void 0);_.f([_.b({computed:"computeIsConstrainedList(pageSubtype)"}),_.z("design:type",Object)],LE.prototype,"isConstrainedList",void 0);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],LE.prototype,"usePlaylistHeaderRenderer",null);
_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],LE.prototype,"useOldPlaylistSidebarRenderer",null);_.f([_.b({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.z("design:type",Boolean)],LE.prototype,"fluidWidth",void 0);_.f([_.b({selector:function(a){return a.ui.scrollAtTop}}),
_.z("design:type",Boolean)],LE.prototype,"scrollAtTop",void 0);_.f([_.b({selector:_.N3E}),_.z("design:type",Boolean)],LE.prototype,"tabGesturesIsActive",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],LE.prototype,"darkerDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.z("design:type",Boolean)],LE.prototype,"disableHeaderFluidWidth",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.z("design:type",String)],LE.prototype,"responsiveSizing",void 0);_.f([_.w$("ytd-two-column-browse-results-renderer"),_.z("design:type",HTMLElement)],LE.prototype,"contents",void 0);_.f([_.w$("#header"),_.z("design:type",HTMLElement)],LE.prototype,"header",void 0);_.f([_.w$("ytd-refresh"),_.z("design:type",Object)],LE.prototype,"refresh",void 0);
_.f([_.a5("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LE.prototype,"activeChanged",null);_.f([_.a5("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LE.prototype,"tabsChanged",null);_.f([_.a5("data.header.c4TabbedHeaderRenderer.channelId"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LE.prototype,"channelIdChanged",null);
_.f([_.a5("scrollAtTop"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LE.prototype,"scrollAtTopChanged",null);_.f([_.b(),_.z("design:type",Object)],LE.prototype,"engagementPanels",void 0);_.f([_.a5("data.panels"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LE.prototype,"engagementPanelsChanged",null);
_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LE.prototype,"onStampFinished",null);_.f([_.E6("yt-player-attached"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Element]),_.z("design:returntype")],LE.prototype,"onPlayerAttached",null);_.f([_.E6("yt-player-detached"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Element]),_.z("design:returntype")],LE.prototype,"onPlayerDetached",null);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LE.prototype,"dataChanged",null);LE=_.f([_.C({is:"ytd-browse"})],LE);_.K0.registerService(_.eME,LE);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.AK("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 E7=function(a){if(!a)return"browse";var W=a.page,w=a.url,Z,N,B,I=(Z=a.response)==null?void 0:(N=Z.responseContext)==null?void 0:(B=N.webResponseContextExtensionData)==null?void 0:B.pageTheme;if(I)W=I.toLowerCase().replace(/_/g,"-");else if(W!=="watch"&&W!=="learning_journey_watch"){var X,v;if((W==="browse"||W==="settings")&&((X=a.response)==null?0:(v=X.sidebar)==null?0:v.settingsSidebarRenderer))W="WEB_PAGE_TYPE_SETTINGS";else{var U,O;W==="browse"&&((U=a.response)==null?0:(O=U.metadata)==null?
0:O.channelMetadataRenderer)?W="channel":w&&(W=_.Bu(w)||W)}}return W},vmz=function(){var a=_.RT("yt.aba.att");
return a?a:_.da.instance!==void 0?_.da.instance.dc8.bind(_.da.instance):null},gmd=function(a,W){var w;
return _.P(function(Z){return(w=vmz())?Z.return(w(a,W,6E4)):Z.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},omD=function(a,W,w,Z,N){W=W===void 0?[]:W;
N=N?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:N}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.zG(a),dialogMessages:W.map(function(B){return _.zG(B)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.zG(w),serviceEndpoint:N}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.zG(Z)}}}}}},kK9=function(a){var W=!!_.qJ().queueProxy;
var w,Z,N;a=a==null?void 0:(w=a.response)==null?void 0:(Z=w.currentVideoEndpoint)==null?void 0:(N=Z.watchEndpoint)==null?void 0:N.playlistId;return!(!W&&!a)},UEI=function(a,W){var w=_.vE();
if(kK9(a))return w.playlistWatchPageActivation=!0;switch(E7(W)){case "yts-products":return w.productDetailsPageActivation=!0;case "mini_app":return w.miniAppPageActivation=!0;case "playables":return w.playablesDestPageActivation=!0;default:return!1}},OJd=function(a,W,w){for(var Z=typeof a==="string"?a.split(""):a,N=a.length-1;N>=0;--N)N in Z&&W.call(w,Z[N],N,a)},Sxi=function(a,W){W=_.O7D(a,W);
W>=0&&_.mU(a,W)},Yxf=function(a){return Array.prototype.concat.apply([],arguments)},Toz=function(a){var W=0;
W=W===void 0?0:W;if(!_.T0(a))throw _.Th("uint64");var w=typeof a;switch(W){case 512:switch(w){case "string":return _.PAe(a);case "bigint":return String((0,_.RE)(64,a));default:return _.lE8(a)}case 1024:switch(w){case "string":return _.XlS(a);case "bigint":return _.y_((0,_.RE)(64,a));default:return _.IEe(a)}case 0:switch(w){case "string":return _.PAe(a);case "bigint":return _.y_((0,_.RE)(64,a));default:return _.BT7(a)}default:return _.l9(W,"Unknown format requested type for int64")}},KQd=function(a){a!=
null&&(a=a.JSC$6718_value_||"",a=typeof a==="string"?a:new Uint8Array(a));
return a},pId=function(a){for(var W=_.TH.apply(1,arguments),w=a[0],Z=0;Z<a.length-1;Z++)w+=String(W[Z]),w+=a[Z+1];
W=document.implementation.createHTMLDocument("");Z=W.createElement("style");W.head.appendChild(Z);W=Z.sheet;W.insertRule(w,0);if(W.cssRules.length===1&&(w=W.cssRules[0],w instanceof CSSStyleRule))return new _.uq(w.cssText.replace(/</g,"\\3C "))},rFK=function(a,W){if(/-[a-z]/.test(W))return null;
if(_.vbL&&a.dataset){if(_.lDe()&&!(W in a.dataset))return null;a=a.dataset[W];return a===void 0?null:a}return a.getAttribute("data-"+_.vG(W))},h2n=function(){var a=AF2;
_.RT("yt.ads.biscotti.getId_")||_.Dp("yt.ads.biscotti.getId_",a)},iJE=function(a){_.Dp("yt.ads.biscotti.lastId_",a)},e29=function(){var a={};
for(_.K3=new cF2(a.handleError===void 0?_.nH:a.handleError,a.logEvent===void 0?_.ia:a.logEvent);_.p3.length>0;)switch(a=_.p3.shift(),a.type){case "ERROR":_.K3.logError(a.payload);break;case "EVENT":_.K3.logEvent(a.eventType,a.payload)}},nmX=function(a,W,w){return _.DME(function(Z){return w?Z.userIdentifier!==void 0&&!a.includes(Z.userIdentifier)&&w.includes(Z.publicName):Z.userIdentifier!==void 0&&!a.includes(Z.userIdentifier)},W)},jxn=function(a){var W,w;
return _.P(function(Z){if(Z.nextAddress==1)return W=_.o0("YtIdbMeta hasAnyMeta other"),_.g(Z,_.DME(function(N){return N.userIdentifier!==void 0&&N.userIdentifier!==W},a),2);
w=Z.yieldResult;return Z.return(w.length>0)})},JF2=function(a,W){LQd||(LQd=_.hF.addLowPriorityJob(function(){var w,Z,N,B,I;
return _.P(function(X){switch(X.nextAddress){case 1:return _.g(X,_.f3(),2);case 2:w=X.yieldResult;if(!w)return X.return();Z=!0;_.tq(X,3);return _.g(X,nmX(a,w,W),5);case 5:N=X.yieldResult;if(!N.length){Z=!1;X.jumpTo(6);break}B=N[0];return _.g(X,_.QJ(B.actualName),7);case 7:return _.g(X,_.sw(B.actualName,w),6);case 6:_.qY(X,4);break;case 3:I=_.Pb(X),_.rz(I),Z=!1;case 4:_.hF.cancelJob(LQd),LQd=0,Z&&JF2(a,W),_.Xd(X)}})}))},FQ0=function(){var a;
return _.P(function(W){return W.nextAddress==1?_.g(W,_.f3(),2):(a=W.yieldResult)?W.return(jxn(a)):W.return(!1)})},M60=function(a){var W=100;
W=W===void 0?500:W;var w,Z,N,B,I,X;return _.P(function(v){return v.nextAddress==1?(w=_.LF("INNERTUBE_CONTEXT_CLIENT_NAME",0),Z=[w,(0,_.mG)()-2592E6],N=[w,(0,_.mG)()],B=IDBKeyRange.bound(Z,N),_.g(v,_.OCe(a),2)):v.nextAddress!=3?(I=v.yieldResult,X=[],_.g(v,_.bd(I,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(U){X.length=0;return _.VJ(U.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:B,direction:"prev"},function(O){if(O.getValue()&&X.length<W)return X.push(O.getValue()),
O.delete().then(function(){return O.continue()})})}),3)):v.return(X)})},R2I=function(){var a;
return _.P(function(W){if(W.nextAddress==1)return _.g(W,_.f3(),2);a=W.yieldResult;if(!a||!_.kq()&&!_.r("nwl_init_require_datasync_id_killswitch")||!_.bCH())return W.jumpTo(0);_.uKm=!0;_.s1E.isNwlInitialized=_.uKm;return _.g(W,_.TUV().awaitInitialization(),0)})},aq=function(a,W){_.N$S[a]=!0;
var w=_.ag();w&&w.publish.apply(w,arguments);_.N$S[a]=!1},QxD=function(){if(_.JGe()&&!qxX){var a=function(w){w=w.data;
if(w.op==="serializedGelBatch"){var Z=_.txF.get(w.key);Z&&(_.BJ7(w.serializedBatch,Z.client,Z.resolve,Z.networklessOptions,Z.isIsolated,Z.useVSSEndpoint,Z.dangerousLogToVisitorSession,Z.requestsOutstanding),_.txF.delete(w.key))}},W=_.LO9();
W&&(W.addEventListener("message",a),W.onerror=function(){_.txF.clear()});
qxX=!0}},Wc=function(){this.relativeTimeStart_=_.ZL()},xEI=function(a,W){a!=null&&this.append.apply(this,arguments)},bJk=function(){return _.Js("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},sxf=function(a,W,w){w=w===void 0?!1:w;
var Z,N,B,I,X;return _.P(function(v){switch(v.nextAddress){case 1:_.vi("SOCS",a,34128E3,"youtube.com",!0);if(_.vz)return N=fetch(W,{method:"POST",mode:_.xs(W),credentials:_.Q3(W),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),B=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.xs("/upgrade_visitor_cookie?eom=1"),credentials:_.Q3("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.g(v,Promise.all([N,B]).then(function(U){return U[1]}),5);
fetch(W,{method:"POST",mode:_.xs(W),credentials:_.Q3(W),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.g(v,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.xs("/upgrade_visitor_cookie?eom=1"),credentials:_.Q3("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:Z=v.yieldResult;v.jumpTo(3);break;case 5:Z=I=v.yieldResult;case 3:if(!Z.ok)throw Error("nf");return _.g(v,Z.text(),7);case 7:X=v.yieldResult,
!X.includes('"state_switch":true')&&!w||X.includes("skip_reload_for_test")||window.location.reload(),_.Xd(v)}})},uUi=function(a){return _.P(function(W){return W.nextAddress==1?_.g(W,sxf(a.socsCookie,a.savePreferenceUrl,!0),2):W.return()})},Cni=function(a){return _.P(function(W){return W.nextAddress==1?_.g(W,sxf(a.socsCookie,a.savePreferenceUrl),2):W.return()})},DE9=function(a){a=a.xhr.responseText;
if(!_.IC(a,")]}'"))throw new wN;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new wN;a=a.id;iJE(a);Zw=_.uH(a);GKK(18E5,2);return a},dEd=function(a,W){W=new fVD(W);
iJE("");Zw=_.xRJ(W);a>0&&GKK(12E4,a-1);throw W;},GKK=function(a,W){_.wz(function(){_.H3E().then(DE9,function(w){return dEd(W,w)}).thenCatch(_.S5)},a)},AF2=function(){var a=_.aVD();
if(a!==void 0)return _.od(a);Zw||(Zw=_.H3E().then(DE9).thenCatch(function(W){return dEd(2,W)}));
return Zw},mEI=function(){var a=document;
return _.be(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(W){return"on"+W.toLowerCase()in a})},V6f=function(a){a.addEventListener("click",function(W){var w=W.target;
w&&w.getAttribute("href")&&(w=w.getAttribute("href"),_.Lv(window,w,"_blank"),W.preventDefault(),W.stopImmediatePropagation())})},z2D=function(a){var W,w,Z,N=(Z=(w=((W=a.mainDownloadsListEntity)!=null?W:{})[_.T78])==null?void 0:w.refresh)!=null?Z:"",B;
a=(B=a.refresh)==null?void 0:B[N];N=a!=null?a:{};return(N==null?0:N.refreshTime)?Number(N==null?void 0:N.refreshTime):0},HJ2=function(a,W){var w=_.Yp(a);
return W.every(function(Z){var N;Z=Z==null?void 0:(N=Z.playbackDataEntity)==null?void 0:N.key;if(!Z)return!1;N=_.Nn(_.WJ(Z).entityId,"mainVideoEntity");return!!w[N]})},yF2=function(a){a=_.Ud(a.entities);
return _.Zlm(a).length},Em9=function(a,W){if(W){var w;
a=(w=_.tG(a.entities,"downloadQualityPickerEntity",W))!=null?w:void 0}else a=void 0;return a},wZE=function(){a8d||(_.xp=_.UJH,a8d=new W8f);
return a8d},ZH0=function(a){var W=document.getElementsByTagName("ytd-enforcement-message-view-model");
W.length===0||getComputedStyle(W[0]).display==="none"?a(0,"p.h_"):a(1,"p.h_")},NtD=function(){Nz=0;
var a=[_.vu(!0)];tj&&_.W_(tj,"yt-window-resized",a)},tJn=function(){Nz||(Nz=_.hF.addLowPriorityJob(NtD,200))},Bti=function(){$F=0;
$dd=_.X2T(document);var a=[$dd];tj&&_.W_(tj,"yt-window-scrolled",a)},l8K=function(){$F||($F=_.hF.addLowPriorityJob(Bti,200))},Pa9=function(a){a=a===void 0?null:a;
I8k.push(_.mQ(window,"resize",tJn));I8k.push(_.mQ(window,"scroll",l8K));a&&(tj=a)},XZ9=function(a){_.P(function(W){if(W.nextAddress==1)return _.g(W,a.delete("yt-appshell-assets"),2);
_.Xd(W)})},vjI=function(a){return _.xq((0,_.$$R)(),a)},ojI=function(){var a;
_.P(function(W){return W.nextAddress==1?_.g(W,Bc.getInstance(),2):(a=W.yieldResult)?_.g(W,gja(a),0):W.jumpTo(0)})},UdE=function(){var a;
_.P(function(W){return W.nextAddress==1?_.g(W,lv.getInstance(),2):(a=W.yieldResult)?_.g(W,kPf(a),0):W.jumpTo(0)})},OHI=function(a){XZ9(a);
ojI();UdE()},Snk=function(a){var W,w;
return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,_.fsS(a),2);if(W=Z.yieldResult){var N;a:{if(W.headers&&(N=W.headers.get("date"))&&(N=Date.parse(N),!isNaN(N))){N=Math.round((0,_.mG)()-N);break a}N=-1}w=N;if(w>-1)return Z.return(w)}return Z.return(-1)})},YnD=function(){var a=_.NH.caches,W=_.JS("IS_SHELL_LOAD"),w,Z;
_.P(function(N){if(N.nextAddress==1)return w=-1,W?_.g(N,Snk(a),3):(Z=_.O_(),w=Math.round((0,_.mG)()-Z),N.jumpTo(2));N.nextAddress!=2&&(w=N.yieldResult);w>=0&&w<2147483648&&_.pD({appInstallDataAgeMs:w});_.Xd(N)})},Ttz=function(a){var W=_.MF(_.NH.location.href),w={};
"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(Z){var N=W.JSC$7940_queryData_.getValues(Z);if(N==null?0:N.length)w[Z]=N});
return _.EK(a,new Map(Object.entries(w)))},K8I=function(a){a=a.match(/(.*)::.*::.*/);
if(a!==null)return a[1]},pZI=function(a){if(_.Pj9()){var W=Object.keys(window.localStorage);
W=_.l(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;var Z=K8I(w);Z===void 0||a.includes(Z)||self.localStorage.removeItem(w)}}},rld=function(){if(!_.Pj9())return!1;
var a=_.o0(),W=Object.keys(window.localStorage);W=_.l(W);for(var w=W.next();!w.done;w=W.next())if(w=K8I(w.value),w!==void 0&&w!==a)return!0;return!1},Al2=function(a){return _.Dn("NotificationsDisabled",a)},hyz=function(){return Notification.permission!="granted"?Promise.resolve():_.t3E().then(function(a){return a?a.pushManager.getSubscription().then(function(W){if(W)return Promise.resolve();
W={userVisibleOnly:!0,applicationServerKey:_.UR("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return a.pushManager.subscribe(W).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},iHz=function(a){return _.t3E().then(function(W){if(!W||!W.active)return Promise.reject(new _.Uw("serviceworker.postMessage",a,W));
try{return W.active.postMessage(a),Promise.resolve()}catch(w){return Promise.reject(w)}})},clk=function(){iHz({type:"notifications_register",
data:_.LF("ID_TOKEN")})},nja=function(){var a={isWide:_.XQ.get("wide","0")==="1"},W=_.gS();
if(W=W.getFlag(165)||W.getFlag(174))a.theme=_.eM(!0);if(_.eN7()){var w=_.cu()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";a.systemTheme=w}!W&&_.r("parent_tools_enable_app_settings")&&_.st(window.location.href).theme!==void 0&&(a.theme=_.eM());if((W=Iq)?!_.T5.equals(W,a):a)W={currentValue:a},eyk&&(W.timeSinceLastSnapshotSecs=Math.round(((0,_.mG)()-eyk)/1E3)),Iq&&(W.previousValue=Iq),_.ia("appSettingsCaptured",W),Iq=a,eyk=(0,_.mG)()},jgX=function(){if(!_.JS("LOGGED_IN"))return Promise.resolve(!1);
var a=_.Et("service_worker_push_force_notification_prompt_tag");return a?_.dH("PromptTags").then(function(W){if(!W)return!0;var w=[];try{w=JSON.parse(W)}catch(Z){return!1}return w&&w.indexOf(a)==-1}):Promise.resolve(!1)},L8d=function(){var a=_.yv("service_worker_push_prompt_delay_microseconds");
return a?_.dH("PromptTime").then(function(W){return Promise.resolve(Date.now()-a>(W||0))}):Promise.resolve(!0)},JlE=function(){var a=_.yv("service_worker_push_logged_out_prompt_watches");
return a==-1?Promise.resolve(!1):_.dH("WatchCount").then(function(W){return W>=a})},F80=function(){var a=_.md(document,"yt-push-prompt-modal-bg");
a&&_.Xh(a)},MJi=function(){return _.yv("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.dH("PromptCount").then(function(a){a||(a=0);
return Promise.resolve(a<_.yv("service_worker_push_prompt_cap"))})},Ryz=function(a){return _.JS("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.JS("LOGGED_IN")&&(a===void 0?0:a)?jgX().then(function(W){if(W)return!0;
W=[MJi(),L8d()];_.JS("LOGGED_IN")||W.push(JlE());return Promise.all(W).then(function(w){return w.every(function(Z){return Z})})}):Promise.resolve(!1)},qnz=function(){_.dH("PromptCount").then(function(a){return _.Dn("PromptCount",a+1)}).then(function(){return _.Dn("PromptTime",Date.now())}).then(function(){var a=_.Et("service_worker_push_force_notification_prompt_tag");
if(a)return _.dH("PromptTags").then(function(W){var w=[];if(W)try{w=JSON.parse(W)}catch(Z){return!1}w||(w=[]);w.push(a);return _.Dn("PromptTags",JSON.stringify(w))})})},xdX=function(){Qgi||F80()},bHz=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"},sgI=function(){var a=_.md(document,"yt-push-prompt-modal-bg");
Qgi=_.r("service_worker_push_prompt_modal_ignore_click");a?bHz(a):(a=_.iE("div",{id:"yt-push-prompt-modal-bg"}),bHz(a),document.body.appendChild(a),_.aCF(document,"click",xdX))},uIX=function(){var a=arguments;
_.r("service_worker_push_prompt_modal_enable")&&sgI();return Notification.requestPermission().then(function(W){F80();var w=document.getElementById("ticker");w&&(w.className=w.classList.remove("show"));if(W=="granted")return hyz().then(function(){Al2(!1);clk();return Promise.resolve(!0)});
W=="denied"&&clk();return Promise.resolve(!1)}).catch(function(){F80();
return Promise.reject.apply(Promise,_.K8(a))})},Ca0=function(a){a=a===void 0?!1:a;
var W=_.F7H().client;if(W&&W.browserVersion){var w=W.browserVersion,Z=W.browserName=="CHROME"&&_.US(w,"50.0.0")<0;W=W.browserName=="OPERA"&&_.US(w,"42.0.0")<0;if(Z||W)return Promise.resolve()}return _.lZz().then(function(N){if(!N)return Promise.resolve();N=hyz().then(function(){return iHz({type:"notifications_check_registration",data:_.LF("ID_TOKEN")})});
return Notification.permission!="default"?N.catch(function(){}):N.then(function(){return Ryz(a)}).then(function(B){if(B)return qnz(),uIX().then(function(){})}).catch(function(){})})},GPD=function(a){return _.$q0(a)?Ca0():Promise.resolve()},Ddn=function(a){var W=a.installing||a.waiting;
return a.active||!W?Promise.resolve(a):new Promise(function(w){var Z=function(N){N=N.target;if(N.state==="activated"||N.state==="redundant")W.removeEventListener("statechange",Z),w(a)};
W.addEventListener("statechange",Z)})},f8E=function(){var a=new _.fQx("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.kX(a,{mainAppWeb:_.J7()});var W=_.iPJ;_.r("service_worker_forward_exp_params")&&(W=Ttz(W));try{var w=_.qDU(W).catch(function(){_.U9(a,"FAILURE");return new Promise(function(){})});
_.r("service_worker_push_enabled")&&w.then(function(Z){_.U9(a,"SUCCESS");return Z}).then(Ddn).then(GPD)}catch(Z){if(_.U9(a,"FAILURE"),Z.name!=="SecurityError")throw Z;
}},ddn=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&f8E()},mdI=function(a,W){var w={};
W&&(w.serializedYpcFamilyCreateLoggingParams=W);_.ia(a,w);_.cZ()},VJi=function(a,W){var w={};
w.serializedYpcRefundFlowLoggingParams=W;a&&(w.eventType=a);_.ia("ypcRefundFlowEvent",w);_.cZ()},zya=function(a){a&&_.xv9("transactionFlowSucceeded",a)},HH0=function(a){a&&_.ez("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},ylz=function(a){var W,w,Z,N,B,I,X;
_.P(function(v){if(v.nextAddress==1)return _.g(v,_.i2x(),2);if(v.nextAddress!=3){if(!v.yieldResult)return v.return(!1);W=[];return _.g(v,_.VD.keys(),3)}w=v.yieldResult;Z=_.l(w);for(N=Z.next();!N.done;N=Z.next())B=N.value,I=_.AHU(B),X=I.datasyncId,!X||a.includes(X)||W.push(_.VD.delete(B));return v.return(Promise.all(W).then(function(U){return U.some(function(O){return O})}))})},Ej2=function(){var a,W,w,Z,N,B,I;
return _.P(function(X){if(X.nextAddress==1)return _.g(X,_.i2x(),2);if(X.nextAddress!=3){if(!X.yieldResult)return X.return(!1);a=_.o0("cache contains other");return _.g(X,_.VD.keys(),3)}W=X.yieldResult;w=_.l(W);for(Z=w.next();!Z.done;Z=w.next())if(N=Z.value,B=_.AHU(N),(I=B.datasyncId)&&I!==a)return X.return(!0);return X.return(!1)})},aWf=function(){var a=_.K().resolve(_.Vv(_.P7R));
return a?a.getCurrentTime():0},WoX=function(){var a,W,w,Z,N,B,I,X,v,U,O,S,T,p;
return _.P(function(h){switch(h.nextAddress){case 1:a={},W=_.S28(),w=_.l(Object.entries(W)),Z=w.next();case 4:if(Z.done){h.jumpTo(3);break}N=Z.value;B=_.l(N);I=B.next().value;X=B.next().value;v=I;U=X;if(!U){h.jumpTo(5);break}return _.g(h,U(),8);case 8:a[v]=h.yieldResult;case 5:Z=w.next();h.jumpTo(4);break;case 2:O=_.l(void 0),S=O.next();case 9:if(S.done){h.jumpTo(3);break}T=S.value;p=W[T];if(!p){h.jumpTo(10);break}return _.g(h,p(),13);case 13:a[T]=h.yieldResult;case 10:S=O.next();h.jumpTo(9);break;
case 3:return h.return(a)}})},wHE=function(){var a;
_.P(function(W){if(W.nextAddress==1)return _.g(W,WoX(),2);a=W.yieldResult;return _.g(W,navigator.clipboard.writeText(JSON.stringify(a,null,2)),0)})},ZMk=function(a,W){return _.tG(a.entities,"superThanksSelectedTierEntity",W)},NU0=function(a){var W;
return(W=a.sharedUi)==null?void 0:W.currentPageType},t2X=function(a,W){return{popup:{searchSuggestionReportDialog:{searchQuery:a,
title:_.P_("SBOX_INAPPROPRIATE_TITLE"),suggestions:W,categoryLabel:_.P_("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.P_("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.P_("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.P_("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.P_("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.P_("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.P_("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.P_("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.P_("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.P_("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},$6X=function(a){var W,w,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V;
return _.P(function(d){switch(d.nextAddress){case 1:return _.g(d,_.l8(),2);case 2:return(W=d.yieldResult)?_.g(d,_.I1m(W),3):d.return();case 3:w=d.yieldResult;if(!w)return d.return();N=((Z=w.offlineVideos)==null?void 0:Z.length)||0;I=((B=w.offlinePlaylists)==null?void 0:B.length)||0;if(N===0&&I===0)return d.return();X=0;if(w.offlineVideos)for(v=_.l(w.offlineVideos),U=v.next();!U.done;U=v.next())O=U.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===O.videoState&&(X+=1);a.offline_videos_count=N.toString();_.r("kevlar_log_offline_current_network_type_ks")||
(a.offline_current_network_type=(S=_.S$x())!=null?S:"CONN_INVALID");_.r("kevlar_log_updated_time_for_smart_downloads")&&(T=_.Cx().getState().entities,p=_.px(T),h=z2D(T),a.offline_smart_downloads_last_sync_time_ms=p.toString(),a.offline_smart_downloads_next_sync_time_ms=h.toString());a.offline_videos_playable=X.toString();a.offline_playlists_count=I.toString();if(!_.r("woffle_used_state_report")){d.jumpTo(4);break}w.offlineVideos&&(L=w.offlineVideos.reduce(function(ZD,aC){aC.downloadedBytes&&(ZD+=
Number(aC.downloadedBytes));return ZD},0).toString())&&(a.offline_used_disk_space_bytes=L);
if(!((F=navigator)==null?0:(x=F.storage)==null?0:x.estimate)){d.jumpTo(4);break}return _.g(d,navigator.storage.estimate(),6);case 6:G=d.yieldResult,a.offline_free_disk_space_bytes=(((V=G)==null?void 0:V.quota)||0).toString();case 4:a.offline_client_state=JSON.stringify(w),_.Xd(d)}})},BUf=function(a){a=a.match(/(.*)::.*::.*/);
if(a!==null)return a[1]},lWK=function(a){if(_.I09()){var W=Object.keys(window.sessionStorage);
W=_.l(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;var Z=BUf(w);Z===void 0||a.includes(Z)||self.sessionStorage.removeItem(w)}}},IWa=function(){if(!_.I09())return!1;
var a=_.o0(),W=Object.keys(window.sessionStorage);W=_.l(W);for(var w=W.next();!w.done;w=W.next())if(w=BUf(w.value),w!==void 0&&w!==a)return!0;return!1},Pc=function(a,W,w){(_.r("desktop_keyboard_shortcut_usage_log")||w&&_.r("web_shorts_keyboard_shortcut_usage_log"))&&(W?_.zt.get(a):_.Vi.get(a))&&(a=W?_.yi.get(a):_.H8.get(a))&&_.b0(_.nS(),a)},PFX=function(a,W){W.stack&&(a.stack+="\n"+W.stack);
return a},gUf=function(a){var W=Xo(a,"Content-Type");
if(!W)return null;W=W.toLowerCase();if(W.startsWith("application/json"))return W.startsWith("application/json+protobuf")?new XHI:new _.Zj;if(W.startsWith("application/x-protobuf")){a=Xo(a,"Content-Transfer-Encoding");if(!a)return new vc;if(a.toLowerCase()=="base64")return new vUa}return null},pHf=function(a,W,w,Z){var N=new oUk(function(X,v){return kcX.has(v)?X.sentinel==="gal"&&X.event!==void 0:!1},function(X){X.event?(X=U6E(X.event),X=!X||OMk(Z,X)?!0:_.T1(a.lastEvent,gN,2,oq)?!_.T1(X,kF,1,oq)&&
!_.T1(X,gN,2,oq):!_.T1(X,kF,1,oq)&&!_.T1(X,gN,3,oq)):X=!0;
return X});
w=_.EK(a.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Sfk(w)]]));if(a.nestedOrigins!==void 0)for(var B=_.l(a.nestedOrigins),I=B.next();!I.done;I=B.next())w=_.EK(w,new Map([["origin",I.value]]));return Yfz(N,w,W).then(function(X){X=TU0(X.event);if(_.T1(X,kF,1,oq)){var v,U=(v=_.RY(X,kF,1,oq))==null?void 0:_.JD(v,2);U&&Z.JSC$17033_logErrorEvent(Ko0(U));v=_.RY(X,kF,1,oq);_.JD(v,2)===4?(X=_.RY(X,kF,1,oq),X={statusCode:11,statusMessage:_.Lo(X,
3)}):(X=_.RY(X,kF,1,oq),X={statusCode:12,statusMessage:_.Lo(X,3)});return X}_.T1(X,gN,3,oq)?(X=_.RY(X,gN,3,oq),X={statusCode:1,consentLanguageKeys:_.Lo(X,2)}):X={statusCode:1};return X}).catch(function(X){return X.errorCode!==void 0?{statusCode:X.errorCode,
statusMessage:X.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},iM9=function(a){var W={};
if(a===void 0||a===null)return W;a.getToken()!==void 0&&rf9(a.getToken())&&rf9(a.getToken()).length>0&&(W.scopes=new Set(rf9(a.getToken())));a.getToken()!==void 0&&Afn(a.getToken())&&Afn(a.getToken()).length>0&&(W.capabilities=new Set(Afn(a.getToken())));_.Lo(a,3)!==void 0&&(W.consistencyKey=_.Lo(a,3));a.getName()!==void 0&&a.getName()!==""&&(W.linkName=a.getName());_.SF(a,h3k,4)&&(a=_.Hi(a,h3k,4),a=Object.assign({},_.Lo(a,1)&&{userId:_.Lo(a,1)},_.Lo(a,2)&&{displayName:_.Lo(a,2)},_.Lo(a,3)&&{email:_.Lo(a,
3)},_.Lo(a,5)&&{username:_.Lo(a,5)},_.Lo(a,4)&&{profilePicture:_.Lo(a,4)}),W.profile=a);return W},cfE=function(a,W){var w=a.flowParams;
return{serviceId:w.serviceId,sessionId:w.sessionId,currentFlow:a.currentFlow,googleScopesString:W,linkingSessionSerialized:a.session.serialize(),consentLanguageKeys:w.consentLanguageKeys,callerState:a.callerState,dynamicUrlParameters:w.dynamicUrlParameters,partnerConfigMinReadTimestamp:w.partnerConfigMinReadTimestamp}},Jf0=function(a){var W=a.googleScopes!==void 0?Array.from(a.googleScopes).join(","):"";
e3f(cfE(a,W));W=nUI(a);return W===null?Promise.resolve(jU0):W.start().then(function(w){var Z,N=(Z=w.link)==null?void 0:Z.consistencyKey;return w.statusCode===1&&a.googleScopes!==void 0&&a.googleScopes.size>0&&N!==void 0?(Z=a.flowParams,Lon(Z.serviceId,Z.sessionId,a.googleScopes,N,Z.galService,a.config,w)):w})},Fo9=function(a){var W=nUI(a);
return W===null?Promise.resolve(UQ({statusCode:7,statusMessage:"Failed to create flow object"},a.callerState)):W.complete().then(function(w){var Z,N=(Z=w.link)==null?void 0:Z.consistencyKey;return w.statusCode===1&&a.googleScopes!==void 0&&a.googleScopes.size>0&&N!==void 0?(Z=a.flowParams,Lon(Z.serviceId,Z.sessionId,a.googleScopes,N,Z.galService,a.config,w)):UQ(w,a.callerState)},function(w){return UQ({statusCode:12,
statusMessage:"Failed to complete the flow: "+w.message},a.callerState)})},Lon=function(a,W,w,Z,N,B,I){return M2n(N,{serviceId:a,
sessionId:W,googleScopes:w,consistencyKey:Z}).then(function(){return I},function(X){return N.deleteLink({serviceId:a,
sessionId:W,accountLinkingEntryPoint:B.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+X.message}},function(v){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+v.message}})})},nUI=function(a){switch(a.currentFlow){case 1:var W=a.flowParams;
a=_.Hi(a.session,R30,1);return OQ.createOAuthFlow(W,a);case 2:case 3:return W=a.flowParams,a=_.Hi(a.session,qfn,6),SZ.createStreamlinedFlow(W,a);default:return null}},QU2=function(a,W){a===2&&(a=3);
var w=0;YF.indexOf(a)!==-1&&(w=YF.indexOf(a)+1);for(a=w;a<YF.length;a++)if(W.has(YF[a]))return YF[a]},sUn=function(a){var W=a.serviceId;
var w=a.sessionId;var Z=a.config;var N=a.galService;var B=a.capabilities;var I=a.scopes;var X=a.loginHint;var v=a.callerState;var U=a.consentLanguageKeys;var O=a.linkName;var S=a.dynamicUrlParameters;var T=a.partnerConfigMinReadTimestamp;a=Z.dataUsageNoticeConfig?Z.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return N.startLinkingSession({serviceId:W,sessionId:w,capabilities:B,scopes:I,loginHint:X,callerState:v,supportedFlows:x6I(Z.supportedFlows),completionUrl:Z.completionUrl,accountLinkingEntryPoint:Z.accountLinkingEntryPoint,
consentLanguageKeys:U,dataUsageNoticeConfig:a,linkName:O,dynamicUrlParameters:S,partnerConfigMinReadTimestamp:T}).then(function(p){return new bMf(W,w,Z,N,p,void 0,v,U,S,T)})},fWD=function(a,W,w){a:{var Z=new uvD;
if(Z.storage!==null)try{var N=Z.storage.get("SAVED_SESSION");if(N===void 0){var B=null;break a}if(N.serviceId===a){B=N;break a}}catch(I){}B=null}if(B===null)return Promise.resolve({statusCode:2});CF2(a);Z=GcE(B.linkingSessionSerialized);return D69(new bMf(a,B.sessionId,W,w,Z,B.googleScopesString!==""&&B.googleScopesString!==void 0?new Set(B.googleScopesString.split(",")):void 0,B.callerState,B.consentLanguageKeys,B.dynamicUrlParameters,B.partnerConfigMinReadTimestamp),B.currentFlow,B.consentLanguageKeys)},
e3f=function(a){var W=new uvD;
W.storage!==null&&W.storage.set("SAVED_SESSION",a)},CF2=function(a){var W=new uvD;
if(W.storage!==null){var w=W.storage.get("SAVED_SESSION");w!==void 0&&w.serviceId===a&&W.storage.remove("SAVED_SESSION")}},x6I=function(a){var W=new Set;
a=_.l(a);for(var w=a.next();!w.done;w=a.next())w=w.value,w!==1&&d6f.has(w)&&W.add(d6f.get(w));return W},UQ=function(a,W){W!==void 0&&(a.callerState=W);
return a},m6I=function(a){switch(a){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},HMK=function(){var a={timeout:5E3};
a=a===void 0?{}:a;return V29!=null?V29:V29=z3K(a)},yfK=function(){return new Promise(function(a,W){window.gapi.load("client",{callback:a,
onerror:W})})},z3K=function(a){a=a===void 0?{}:a;
var W;return _.P(function(w){if(w.nextAddress==1){if((W=window.gapi)&&W.client&&W.client.load)w=w.return(W);else{var Z=_.lq("https://apis.google.com/js/api.js");w=_.g(w,_.jS(Z,a),2)}return w}if(w.nextAddress!=3){W=window.gapi;if(!W)throw Error("Xj");return W.client&&W.client.load?w.jumpTo(3):_.g(w,yfK(),3)}return w.return(W)})},aGa=function(a,W){W=W===void 0?0:W;
var w=a.auth2.getAuthInstance().currentUser.get(),Z=w.getAuthResponse(!0);if(Z&&Z.expires_at-Date.now()<W){if(EUn.has(a))return EUn.get(a);W=Promise.resolve(w.reloadAuthResponse()).finally(function(){EUn.delete(a)});
EUn.set(a,W);return W}return Promise.resolve()},Wmn=function(a,W){var w;
return a.client.init({apiKey:W.apiKey,clientId:W.clientId,scope:W.scope,discoveryDocs:W.discoveryDocs,hostedDomain:W.hostedDomain,fetchBasicProfile:(w=W.fetchBasicProfile)!=null?w:!0})},wGa=function(a){if(a.queryParams!=null){var W={},w;
for(w in a.queryParams)a.queryParams[w]!==void 0&&(W[w]=a.queryParams[w]);a.queryParams=W}},tHX=function(a){return new ZS0(a,new NQz(a))},lGI=function(a,W){W=W===void 0?!1:W;
var w=document.createElement("div");a&&(w.style.transform="scaleX(-1)");w.style.backgroundColor=W?"rgba(138,180,248,.24)":"#e8f0fe";w.style.height="4px";w.style.overflow="hidden";w.style.position="absolute";w.style.top="0";w.style.width="100%";w.style.zIndex="1500";w.setAttribute("aria-label","Loading");w.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  }";
w.appendChild(a);a=$M0();a.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";a.style.left="-145.166611%";var Z=BQI(W);Z.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";a.appendChild(Z);w.appendChild(a);a=$M0();a.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";a.style.left="-54.888891%";W=BQI(W);W.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
a.appendChild(W);w.appendChild(a);return w},$M0=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},BQI=function(a){var W=document.createElement("span");
W.style.borderTop=a?"4px solid #669df6":"4px solid #4285f4";W.style.display="inline-block";W.style.position="absolute";W.style.width="100%";return W},IGI=function(a){return a==null?void 0:_.Yme(a).valueOf()},gsn=function(a){var W=document.body,w=!1,Z=function(){w||(w=!0,P6n(N,B),setTimeout(function(){W.removeChild(B);
W.removeChild(N)},150))},N=XG0(a,getComputedStyle(W).direction==="rtl",Z),B=vsk(Z);
P6n(N,B);W.appendChild(B);W.appendChild(N);window.requestAnimationFrame(function(){B.style.opacity="1";N.style.opacity="1";N.style.transform="translate(-50%, -50%) scale(1)";N.children[0].focus()})},XG0=function(a,W,w){var Z=document.createElement("div");
Z.style.position="fixed";Z.style.alignItems="center";Z.style.backgroundColor=a?"rgb(32, 33, 36)":"white";Z.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";Z.style.display="flex";Z.style.flexDirection="column";Z.style.justifyContent="center";Z.style.left="50%";Z.style.top="50%";Z.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";Z.style.zIndex="2002";document.body.clientWidth>=660?(Z.style.borderRadius="8px",Z.style.minHeight="220px",
Z.style.maxHeight="90%",Z.style.maxWidth="90%",Z.style.minWidth="540px"):(Z.style.height="100%",Z.style.width="100%");Z.setAttribute("aria-label","Error");Z.setAttribute("aria-modal","true");Z.setAttribute("role","alertdialog");Z.addEventListener("keydown",function(B){B.key==="Escape"&&w()});
W=osz(a,W,w);Z.appendChild(kqD(W));Z.appendChild(W);var N=document.createElement("img");N.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";N.style.height="72px";N.style.width="72px";N.style.color="#9aa0a6";N.setAttribute("alt","");Z.appendChild(N);N=document.createElement("h1");N.textContent="Something went wrong.  Try again.";
N.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";N.style.lineHeight="24px";N.style.fontSize="16px";N.style.textAlign="center";N.style.letterSpacing="0.1px";N.style.color=a?"rgb(232,234,237)":"#3c4043";Z.appendChild(N);Z.appendChild(kqD(W));return Z},osz=function(a,W,w){var Z=document.createElement("button");
Z.style.backgroundColor="transparent";Z.style.border="none";Z.style.borderRadius="50%";Z.style.cursor="pointer";Z.style.outline="none";Z.style.padding="12px";Z.setAttribute("aria-label","Close dialog");Z.style.position="absolute";Z.style.top="0";W?Z.style.right="0":Z.style.left="0";Z.addEventListener("focus",function(){Z.style.backgroundColor=a?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
Z.addEventListener("blur",function(){Z.style.backgroundColor="transparent"});
Z.addEventListener("mouseenter",function(){Z.style.backgroundColor=a?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
Z.addEventListener("mouseleave",function(){Z.style.backgroundColor="transparent"});
Z.addEventListener("click",w);Z.addEventListener("keydown",function(N){N.key!=="Enter"&&N.key!=="Space"||w()});
W=document.createElement("img");W.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";W.style.display="block";W.style.height="24px";W.style.width="24px";W.setAttribute("alt","");Z.appendChild(W);return Z},kqD=function(a){var W=document.createElement("div");
W.setAttribute("tabindex","0");W.setAttribute("aria-hidden","true");W.addEventListener("focus",function(){return void a.focus()});
return W},vsk=function(a){var W=document.createElement("div");
W.style.backgroundColor="rgba(32,33,36,0.6)";W.style.bottom="0";W.style.left="0";W.style.position="fixed";W.style.right="0";W.style.top="0";W.style.transition=" opacity 150 ms linear";W.style.zIndex="2001";W.addEventListener("click",a);return W},P6n=function(a,W){W.style.opacity="0";
a.style.opacity="0";a.style.transform="translate(-50%, -50%) scale(0.8)"},UMI=function(a,W){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=W},TY=function(a){OSI.call(this,a)},Kb=function(a,W){W=W===void 0?!1:W;
this.parsedImageUrl_=null;a instanceof S$X||(Y$E==void 0&&(Y$E=new TQD),a=Y$E.parse(a.toString(),W));a=this.parsedImageUrl_=a;a.JSC$17264_parsedOptions_==void 0&&((W=a.getOptions())||(W=""),a.JSC$17264_parsedOptions_=(new Kma).parse(W));OSI.call(this,a.JSC$17264_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;a=this.parsedImageUrl_;W=a.uri_.JSC$7940_port_;this.JSC$17266_domain_=a.uri_.JSC$7940_domain_+(W?":"+W:"");this.JSC$17266_query_=this.parsedImageUrl_.uri_.JSC$7940_queryData_.toString()},
pGa=function(a){this.mode=4;
this.data=a;this.parsedData=[];a=0;for(var W=this.data.length;a<W;a++){var w=[],Z=this.data.charCodeAt(a);Z>65536?(w[0]=240|(Z&1835008)>>>18,w[1]=128|(Z&258048)>>>12,w[2]=128|(Z&4032)>>>6,w[3]=128|Z&63):Z>2048?(w[0]=224|(Z&61440)>>>12,w[1]=128|(Z&4032)>>>6,w[2]=128|Z&63):Z>128?(w[0]=192|(Z&1984)>>>6,w[1]=128|Z&63):w[0]=Z;this.parsedData.push(w)}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))},rsI=function(a){this.typeNumber=0;
this.errorCorrectLevel=a===void 0?2:a;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},pb=function(a,W){if(a.length==void 0)throw Error("rk`"+a.length+"`"+W);
for(var w=0;w<a.length&&a[w]==0;)w++;this.num=Array(a.length-w+W);for(W=0;W<a.length-w;W++)this.num[W]=a[W+w]},As0=function(a,W){this.totalCount=a;
this.dataCount=W},h9d=function(){this.buffer=[];
this.length=0},iSz=function(){var a=!1;
if(_.vI8()){a=_.S9();var W="";_.k8H()?(W=/Windows (?:NT|Phone) ([0-9.]+)/,W=(a=W.exec(a))?a[1]:"0.0"):_.qH()?(W=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,W=(a=W.exec(a))&&a[1].replace(/_/g,".")):_.oIe()?(W=/Mac OS X ([0-9_.]+)/,W=(a=W.exec(a))?a[1].replace(/_/g,"."):"10"):_.oC(_.S9(),"KaiOS")?(W=/(?:KaiOS)\/(\S+)/i,W=(a=W.exec(a))&&a[1]):_.vI8()?(W=/Android\s+([^\);]+)(\)|;)/,W=(a=W.exec(a))&&a[1]):_.UHe()&&(W=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,W=(a=W.exec(a))&&a[1]);a=W||""}return a},Jsk=function(a,
W){this.JSC$17289__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(W)for(var w in W)this.JSC$17289__htOption[w]=W[w];this.JSC$17289__htOption.useSVG&&(csf=e9K);this.JSC$17289__android=iSz();this.JSC$17289__el=a;this._oQRCode=null;this._oDrawing=new csf(this.JSC$17289__el,this.JSC$17289__htOption);this.JSC$17289__htOption.text&&(a=this.JSC$17289__htOption.text,this._oQRCode=new rsI(this.JSC$17289__htOption.correctLevel),ns0(this._oQRCode,a),W=this._oQRCode,jmX(W,!1,LmD(W)),this.JSC$17289__el.title=
a,this._oDrawing.draw(this._oQRCode),this.makeImage())},Fmn=function(a,W,w,Z,N){a.save();
var B=new Path2D;B.roundRect(W,w,Z*7,Z*7,Z*2);B.roundRect(W+Z,w+Z,Z*5,Z*5,Z*1.3);B.roundRect(W+2*Z,w+2*Z,Z*3,Z*3,Z);a.clip(B,"evenodd");a.fillStyle=N;a.fillRect(0,0,a.canvas.width,a.canvas.height);a.restore()},rN=function(a,W){if(typeof a!=="function")throw Error("uk");
return _.NH.setTimeout(function(){a()},W)},Aj=function(){},R9K=function(a,W,w,Z,N){(new Aj).debug("TestLoadImageWithRetries: "+N);
if(Z==0)w(!1);else{var B=N||0;Z--;MH2(a,W,function(I){I?w(!0):_.NH.setTimeout(function(){R9K(a,W,w,Z,B)},B)})}},MH2=function(a,W,w){var Z=new Aj;
Z.debug("TestLoadImage: loading "+a);var N=new Image;N.onload=function(){try{Z.debug("TestLoadImage: loaded"),q$d(N),w(!0)}catch(B){}};
N.onerror=function(){try{Z.debug("TestLoadImage: error"),q$d(N),w(!1)}catch(B){}};
N.onabort=function(){try{Z.debug("TestLoadImage: abort"),q$d(N),w(!1)}catch(B){}};
N.ontimeout=function(){try{Z.debug("TestLoadImage: timeout"),q$d(N),w(!1)}catch(B){}};
_.NH.setTimeout(function(){if(N.ontimeout)N.ontimeout()},W);
N.src=a},q$d=function(a){a.onload=null;
a.onerror=null;a.onabort=null;a.ontimeout=null},QmD=function(){this.front_=[];
this.back_=[]},xM0=function(a,W){_.OW.call(this);
this.delay_=new _.Y3(this.JSC$17415_onTick_,0,this);_.$3(this,this.delay_);this.JSC$17413_interval_=5E3;this.nextTickTime_=0;if(typeof a==="function")W&&(a=(0,_.Sk)(a,W));else if(a&&typeof a.handleEvent==="function")a=(0,_.Sk)(a.handleEvent,a);else throw Error("Ca");this.JSC$17415_listener_=a},hj=function(a,W,w,Z,N,B,I,X,v,U,O,S,T,p){w=w===void 0?!1:w;
Z=Z===void 0?function(){return""}:Z;
N=N===void 0?!1:N;B=B===void 0?!1:B;I=I===void 0?!1:I;X=X===void 0?function(){return _.tk({})}:X;
v=v===void 0?!1:v;O=O===void 0?!1:O;S=S===void 0?!1:S;T=T===void 0?!1:T;p=p===void 0?!1:p;this.JSC$17416_pathPrefix_=a;this.defaultQueryParams_=W;this.pubsub_=new _.I0;this.reconnectTimer_=new xM0(this.safeReconnect_,this);this.JSC$17416_channel_=null;this.JSC$17416_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17416_pendingMessages_=[];this.enableAsyncTest_=w;this.JSC$17416_getXsrfToken_=Z;this.useAsyncBrowserChannelHandler_=B;this.getAuthorizationHeader_=
X;this.getAuthorizationHeaderSync_=U;this.enableCachedUpdateAuthorizationHeader_=I;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.tk();this.enableLoungeTokenRefresh_=N;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=v;this.disableMdxAuthForNonPlaybackMessages_=O;this.disableMdxAuthForAdMessages_=S;this.enableMdxAuthForConnectionOnly_=T;this.disableMdxAuthForShortsMessages_=p;this.JSC$17416_channelOpenedCounter=new bSn;this.JSC$17416_channelClosedCounter=new sm9;this.channelMessageSentCounter=
new utd;this.JSC$17416_channelMessageReceivedCounter=new C60;this.JSC$17416_channelErrorCounter=new GqD;this.pendingMapsOnClosedCounter=new DMf;this.undeliveredMapsOnClosedCounter=new fGn},iv=function(a){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;a=a||document.location.href;var W=Number(_.GU(a)[4]||null)||"";W&&(this.port=":"+W);this.domain=_.D7(a)||"";a=_.S9();a.search("MSIE")>=0&&_.US(a.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},cc=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"},dMK=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var W=Math.random()*16|0;
return(a=="x"?W:W&3|8).toString(16)})},mMz=function(a){return _.pY(a,function(W){return{key:W.id,
name:W.name}})},VH9=function(a,W){return _.be(a,function(w){return w||W?!w!=!W?!1:w.id==W.id:!0})},nb=function(a,W){return _.be(a,function(w){return eZ(w,W)})},a9f=function(){var a=z9X(),W=HSE();
if(ys9()){var w=a,Z=_.KUC(w,W);Z<0&&_.TEI(w,-(Z+1),0,W)}a=Es2(a);if(a.length==0)try{_.osm("remote_sid")}catch(N){}else try{_.vi("remote_sid",a.join(","),-1)}catch(N){}},z9X=function(){var a=_.B7("yt-remote-connected-devices")||[];
a.sort(_.X$);return a},Es2=function(a){if(a.length==0)return[];
var W=a[0].indexOf("#"),w=W==-1?a[0]:a[0].substring(0,W);return _.pY(a,function(Z,N){return N==0?Z:Z.substring(w.length)})},WXX=function(a){_.$H("yt-remote-connected-devices",a,86400)},HSE=function(){if(w_D)return w_D;
var a=_.B7("yt-remote-device-id");a||(a=dMK(),_.$H("yt-remote-device-id",a,31536E3));for(var W=z9X(),w=1,Z=a;_.f7(W,Z);)w++,Z=a+"#"+w;return w_D=Z},ZDD=function(){return _.B7("yt-remote-session-browser-channel")},ys9=function(){return _.B7("yt-remote-session-screen-id")},$1E=function(a){a.length>5&&(a=a.slice(a.length-5));
var W=_.pY(NSD(),function(Z){return Z.loungeToken}),w=_.pY(a,function(Z){return Z.loungeToken});
_.B0F(w,function(Z){return!_.f7(W,Z)})&&tWI();
_.$H("yt-remote-local-screens",a,31536E3)},NSD=function(){return _.B7("yt-remote-local-screens")||[]},tWI=function(){_.$H("yt-remote-lounge-token-expiration",!0,86400)},jZ=function(a){a||(_.li("yt-remote-session-screen-id"),_.li("yt-remote-session-video-id"));
a9f();a=z9X();_.yF(a,HSE());WXX(a)},l9i=function(){BSa();
return Lb?!!Lb.get("yt-remote-use-staging-server"):!1},BSa=function(){if(!Lb){var a=_.rsS();
a&&(Lb=new _.Ow(a))}},v70=function(a,W,w,Z,N){w=w===void 0?function(){return""}:w;
var B=function(){return new hj(Jj(a,"/bc"),W,!1,w,Z)};
return _.r("enable_mdx_web_channel_desktop")?new I9d(function(){return new P0K(Jj(a,"/wc"),W,w)}):new X_n(B,N)},U1i=function(){var a=g79;
o7X();Fo.push(a);kGX()},Mz=function(a,W){o7X();
var w=OD9(a,String(W));Fo.length==0?S_2(w):(kGX(),_.x6(Fo,function(Z){Z(w)}))},Rq=function(a){Mz("CP",a)},o7X=function(){Fo||(Fo=_.RT("yt.mdx.remote.debug.handlers_")||[],_.Dp("yt.mdx.remote.debug.handlers_",Fo))},S_2=function(a){var W=(qz+1)%50;
qz=W;Y_f[W]=a;TSI||(TSI=W==49)},kGX=function(){var a=Fo;
if(Y_f[0]){var W=TSI?qz:-1,w={};do w={record$jscomp$13:void 0},W=(W+1)%50,w.record$jscomp$13=Y_f[W],_.x6(a,function(Z){return function(N){N(Z.record$jscomp$13)}}(w));
while(W!=qz);Y_f=Array(50);qz=-1;TSI=!1}},OD9=function(a,W){var w=(Date.now()-KX2)/1E3;
w.toFixed&&(w=w.toFixed(3));var Z=[];Z.push("[",w+"s","] ");Z.push("[","yt.mdx.remote","] ");Z.push(a+": "+W,"\n");return Z.join("")},QE=function(a){_.my.call(this);
this.JSC$17440_logName_=a;this.screens=[]},bv=function(a){QE.call(this,"LocalScreenService");
this.JSC$17447_http_=a;this.loungeTokenRefreshTimer_=NaN;xF(this);this.info("Initializing with "+p_f(this.screens))},sQ=function(a,W){W=W===void 0?!1:W;
QE.call(this,"ScreenService");this.JSC$17453_http_=a;this.disableAutomaticScreenCache_=W;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};rkk(this)},uv=function(a,W,w){_.my.call(this);
this.JSC$17457_logName_=w;this.JSC$17457_screenService_=a;this.receiver_=W;this.screen_=null},x10=function(a,W,w){w.disableCastApi?Cb("Cannot initialize because disabled by Mdx config."):AkD()?hOK(a,w)&&(iDn(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?ckk(W):(window.__onGCastApiAvailable=function(Z,N){Z?ckk(W):(GY("Failed to load cast API: "+N),eOf(!1),iDn(!1),_.li("yt-remote-cast-available"),_.li("yt-remote-cast-receiver"),n7n(),W(!1))},w.loadCastApiSetupScript?_.MM("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?jVa()>=60&&LXf():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?JkE():jVa()>=89?FXd():(MWI(),ROa(q_d.map(QVX))))):Cb("Cannot initialize because not running Chrome")},n7n=function(){Cb("dispose");
var a=Dw();a&&a.dispose();_.Dp("yt.mdx.remote.cloudview.instance_",null);bDE(!1);_.tKe(sV2);sV2.length=0},uz9=function(){return!!_.B7("yt-remote-cast-installed")},C09=function(){var a=_.B7("yt-remote-cast-receiver");
return a?a.friendlyName:null},GG9=function(){Cb("clearCurrentReceiver");
_.li("yt-remote-cast-receiver")},D1K=function(){return uz9()?Dw()?Dw().getCastSession():(GY("getCastSelector: Cast is not initialized."),null):(GY("getCastSelector: Cast API is not installed!"),null)},d1d=function(a,W){f9z()?Dw().setConnectedScreenStatus(a,W):GY("setConnectedScreenStatus called before ready.")},AkD=function(){var a=_.S9().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.gk||a},hOK=function(a,W){var w=!1;
Dw()||(a=new fb(a,W),a.subscribe("yt-remote-cast2-availability-change",function(Z){_.$H("yt-remote-cast-available",Z);aq("yt-remote-cast2-availability-change",Z)}),a.subscribe("yt-remote-cast2-receiver-selected",function(Z){Cb("onReceiverSelected: "+Z.friendlyName);
_.$H("yt-remote-cast-receiver",Z);aq("yt-remote-cast2-receiver-selected",Z)}),a.subscribe("yt-remote-cast2-receiver-resumed",function(Z){Cb("onReceiverResumed: "+Z.friendlyName);
_.$H("yt-remote-cast-receiver",Z);aq("yt-remote-cast2-receiver-resumed",Z)}),a.subscribe("yt-remote-cast2-session-change",function(Z){Cb("onSessionChange: "+m10(Z));
Z||_.li("yt-remote-cast-receiver");aq("yt-remote-cast2-session-change",Z)}),_.Dp("yt.mdx.remote.cloudview.instance_",a),w=!0);
Cb("cloudview.createSingleton_: "+w);return w},Dw=function(){return _.RT("yt.mdx.remote.cloudview.instance_")},ckk=function(a){eOf(!0);
iDn(!1);Dw().init(!1,function(W){W?(bDE(!0),_.$te("yt-remote-cast2-api-ready")):(GY("Failed to initialize cast API."),eOf(!1),_.li("yt-remote-cast-available"),_.li("yt-remote-cast-receiver"),n7n());a(W)})},Cb=function(a){Mz("cloudview",a)},GY=function(a){Mz("cloudview",a)},eOf=function(a){Cb("setCastInstalled_ "+a);
_.$H("yt-remote-cast-installed",a)},f9z=function(){return!!_.RT("yt.mdx.remote.cloudview.apiReady_")},bDE=function(a){Cb("setApiReady_ "+a);
_.Dp("yt.mdx.remote.cloudview.apiReady_",a)},iDn=function(a){_.Dp("yt.mdx.remote.cloudview.initializing_",a)},dN=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)},VW9=function(){var a,W;
return _.P(function(w){if(w.nextAddress==1)return(_.ChD()||_.r("use_new_nwl"))&&_.xjF().isNetworkAvailable()?_.g(w,_.f3(),2):w.return();if(w.nextAddress!=3)return(a=w.yieldResult)?_.g(w,M60(a),3):w.return();W=w.yieldResult;if(!W.length)return w.return();W.forEach(function(Z){var N={timestamp:Z.timestamp};Z=Z.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:Z.appShellAssetLoadReport,options:N}:Z.clientError?{payloadName:"clientError",payload:Z.clientError,options:N}:void 0;Z&&
_.ia(Z.payloadName,Z.payload,Z.options)});
W.length===100&&_.hF.addLowPriorityJob(VW9);_.Xd(w)})},zOI=function(a){if(a.playerResponse){if(a=a.playerResponse,a.messages&&a.messages.length>0&&(a=a.messages.find(function(W){return!(!W||!W.mealbarPromoRenderer)}))&&a.mealbarPromoRenderer)return a.mealbarPromoRenderer}else if(a.response&&(a=a.response)&&a.overlay&&a.overlay.mealbarPromoRenderer)return a.overlay.mealbarPromoRenderer},HDX=function(a){if(a.response){var W=a.response;
if(W&&W.overlay&&W.overlay.tooltipRenderer)return W.overlay.tooltipRenderer}if(a.playerResponse&&(a=a.playerResponse,a.messages&&a.messages.length>0&&(a=a.messages.find(function(w){return!(!w||!w.tooltipRenderer)}))&&a.tooltipRenderer))return a.tooltipRenderer},E7E=function(a){if(!ykf&&(a=a||_.LF("ZWIEBACK_PING_URLS"))&&a.length){ykf=!0;
for(var W=0;W<a.length;W++)_.qE(a[W])}},WOD=function(a){if(_.T5.get(_.LF("PLAYER_VARS",{}),"privembed",!1)!="1"){a&&h2n();
try{abn().then(function(){},function(){}),_.wz(WOD,18E5)}catch(W){_.Ff(W)}}},wJ9=function(){var a=_.gS(),W=a.getFlag(119),w=window.devicePixelRatio>1;
document.body&&_.sl(document.body,"exp-invert-logo")&&(w&&!_.sl(document.body,"inverted-hdpi")?_.QD(document.body,"inverted-hdpi"):!w&&_.sl(document.body,"inverted-hdpi")&&_.Rd(document.body,"inverted-hdpi"));W!=w&&(_.oV(0,119,w),a.save())},Zxk=function(a){return a.filter(function(W){return"ypcGetCartEndpoint"in W||"ypcFixInstrumentEndpoint"in W})},NK9=function(a){return a.filter(function(W){return!_.A(W,_.p7R)})},$n0=function(a){a=_.l(a);
for(var W=a.next(),w={};!W.done;w={setter$jscomp$6:void 0},W=a.next()){var Z=W.value;W=Z.params;Z=Z.service;W&&Z&&(w.setter$jscomp$6=tyd[Z],w.setter$jscomp$6&&W.forEach(function(N){return function(B){var I=B.key;B=B.value;I&&B&&(0,N.setter$jscomp$6)(I,B)}}(w)))}},lbn=function(a,W){var w,Z,N,B,I,X,v;
_.P(function(U){switch(U.nextAddress){case 1:w=_.LC.getInstance();Z=_.WX.instance;N=_.Ju.instance;if(!N)return BKE(a,Z,W),U.return();_.tq(U,2);a.onLoadingCommand&&Z.resolveCommand(a.onLoadingCommand);return _.g(U,w.getCurrentPositionFromGeolocation(),4);case 4:B=U.yieldResult;if(!a.resolveLocationCommand){U.jumpTo(5);break}I=w.createLocationInfo(B);return _.g(U,_.MX(N,a.resolveLocationCommand,{locationInfo:I}),6);case 6:X=U.yieldResult;if(!X||"error"in X&&X.error||X.errorMetadata)return BKE(a,Z,W),
U.return();var O;if(X==null?0:(O=X.onResponseReceivedActions)==null?0:O.length){O=_.l(X.onResponseReceivedActions);for(var S=O.next();!S.done;S=O.next())Z.resolveCommand(S.value)}(_.A(a.onSuccessCommand,_.u6)||_.A(a.onSuccessCommand,_.I1))&&_.E$(W.hostElement,"yt-navigate",{endpoint:a.onSuccessCommand,reload:!0});case 5:_.qY(U,0);break;case 2:v=_.Pb(U);if(v instanceof GeolocationPositionError&&v.code===GeolocationPositionError.PERMISSION_DENIED)return a.onDeniedCommand&&Z.resolveCommand(a.onDeniedCommand),
U.return();BKE(a,Z,W);_.Xd(U)}})},BKE=function(a,W,w){a.onFailureCommand&&(W.resolveCommand(a.onFailureCommand),_.aV(w.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},P8I=function(a,W){var w=_.A(a,_.CEH);
if(w&&W){a=w.videoIds||[w.videoId];var Z;W=(Z=_.E$(W,"yt-lockup-requested",{videoIds:a}).detail)==null?void 0:Z.returnValue;var N;w.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?N=W?W:a.map(function(B){return{videoId:B,navigationEndpoint:w.videoCommand}}):W&&(N=W);
N&&(Z=N.map(function(B){var I=Object,X=I.assign;var v=B.navigationEndpoint;if(!_.A(v,_.gi)){var U=_.A(v,_.u6);if(U){if(delete U.index,delete U.playlistId,U=_.A(v==null?void 0:v.commandMetadata,_.mm),U==null?0:U.url){var O=U.url;O=_.dQ(O,"list");O=_.dQ(O,"index");U.url=O}}else v=void 0}return X.call(I,{},B,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:v})}),IbK(Z,w))}},XJz=function(a){var W=_.qJ();
if(a=_.A(a,_.G6R))a.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&W.clearQueue(),a.closeMiniplayer&&_.K().resolve(_.bV).close(!0)},gpI=function(a){vpk(_.qJ(),a)},op0=function(a){var W;
(a=(W=_.A(a,_.sNl))==null?void 0:W.setVideoIds)&&a.forEach(function(w){_.Md_(_.qJ(),w)})},UnX=function(a){kC9(_.qJ(),a)},Ox0=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(a){return!1}},Sdf=function(a){var W=_.K().resolve(_.Vv(_.kL));
if(W){var w={beforeTransition:function(){a.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){a.style.viewTransitionName=""}};
mN(W,"slide",w);mN(W,"zoom",w)}},YdI=function(a,W,w){return{horizontalAlignment:a.x+w.width/2<W.width/2?"west":"east",
verticalAlignment:a.y+w.height/2<W.height/2?"north":"south"}},pJ0=function(a,W,w,Z,N){N=N===void 0?new _.r3(0,0):N;
return TKI(KO2(a,W,w,Z),N)},KO2=function(a,W,w,Z){return new _.r3(a==="west"?16:w.width-Z.width-16,W==="north"?16:w.height-Z.height-16)},rGd=function(a,W){var w=0;
a&&(w+=76);W&&(w+=285);return w},AGX=function(a){var W=["h",
"m","s"],w=_.Wl(W);w.reverse();var Z={};a=(a.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(I){var X=(I.match(/[hms]/)||[""])[0];return X?(Z[X]=parseInt(I.match(/\d+/)[0],10),!1):!0});
for(a.reverse();a.length&&w.length;){var N=w.shift();N in Z||(Z[N]=parseInt(a.shift(),10))}if(a.length||Z.s>59||Z.m>59||Z.h>9)return null;var B="";W.forEach(function(I){Z[I]&&(B+=""+Z[I]+I)});
return B||null},hzk=function(a){a=a.data;
return _.k("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.k("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.k(_.qw,{data:{thumbnails:[{url:a.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.k("div",{class:"profile-badge-view-model-wiz__content"},_.k("div",{class:"profile-badge-view-model-wiz__badge-description"},a.badgeDesc),a.badgeSubtitle?_.k("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},a.badgeSubtitle):null))},ixf=function(a){a=
a.data;
var W=_.D8();_.uK(W,a.rendererContext);return _.k("yt-comment-interaction-view-model",{el:W,class:"yt-comment-interaction-view-model-wiz"},_.k("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":a.onTapA11yLabel,"on:keydown":_.QP(),tabindex:0},_.k("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.k("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},a.headerPrefix,' "',a.videoTitle),_.k("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.k("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.k("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},a.commentContent),_.k("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.k(_.qw,{data:{thumbnails:[{url:a.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},ezI=function(a){a=a.data;
return _.k("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},cGD(a.avatar),_.k("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},a.channelName))},js2=function(a){a=a.data;
var W;return _.k("div",{class:"yt-profile-info-view-model-wiz__activity"},_.k("div",{class:"yt-profile-info-view-model-wiz__header"},_.k("div",{class:"yt-profile-info-view-model-wiz__section-title"},a.commentsInteractionTitle)),(W=a.comments)==null?void 0:W.map(function(w){return _.k("div",{class:"yt-profile-info-view-model-wiz__activity"},npd(w))}))},LO0=function(a){a=a.data;
var W=_.hQ({elementsCommand:a.subscriptionsAccessButtonCommand}),w=_.D8();_.YQF(w,_.rJ(a.subscriptionsAccessButtonCommand));var Z=_.$_(function(B){if(W==null?0:W.onclick)W.onclick(B);return!1}),N;
return _.k("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.k("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.k("a",{el:w,"on:click":Z,class:"yt-profile-info-view-model-wiz__another-header"},_.k("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},a.sharedSubscriptionsTitle),_.k("div",null,npd(a.subscriptionsAccessButton)))),_.k("div",{class:"yt-profile-info-view-model-wiz__subs"},(N=a.sharedSubscriptions)==null?void 0:N.slice(0,5).map(function(B){return _.k("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",npd(B))})))},JG9=function(a){a=a.data;
var W;return _.k("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.k("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.k("h2",{class:"yt-profile-info-view-model-wiz__section-title"},a.sharedSubscriptionsTitle)),_.k("div",{class:"yt-profile-info-view-model-wiz__subs"},(W=a.sharedSubscriptions)==null?void 0:W.slice(0,5).map(function(w){return _.k("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",npd(w))})))},FOK=function(a){a=a.data;
return _.k("div",{class:"yt-profile-info-view-model-wiz__activity"},[a.profileBadgeInfoYtWide,a.profileBadgeInfoChannelWide].map(function(W){var w,Z,N,B,I;return W?_.k(_.Ha,null,_.k("div",{class:"yt-profile-info-view-model-wiz__header"},_.k("div",{class:"yt-profile-info-view-model-wiz__section-title"},W==null?void 0:W.profileSectionTitle),_.k("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.k("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},W==null?void 0:(w=W.commentBadge)==
null?void 0:w.commentDesc),(W==null?0:(Z=W.commentBadge)==null?0:Z.blackHeartDesc)?_.k("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.k("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.k(_.qw,{data:{thumbnails:[{url:W==null?void 0:(N=W.commentBadge)==null?void 0:N.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.k("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},W==null?void 0:(B=
W.commentBadge)==null?void 0:B.blackHeartDesc))),_.k("div",{class:"yt-profile-info-view-model-wiz__badge"},W==null?void 0:(I=W.badges)==null?void 0:I.map(function(X){return _.k(hzk,{data:X})}))):null}))},My9=function(a){a=a.data;
return _.k("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.k(FOK,{data:a}),a.comments?_.k(js2,{data:a}):null,a.sharedSubscriptionsTitle?a.subscriptionsAccessButtonCommand?_.k(LO0,{data:a}):_.k(JG9,{data:a}):null)},qdE=function(a){var W=a.data;
a=W?RzI(W.profileIdentityInfo):void 0;W=W?RzI(W.profileInfo):void 0;return _.k("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},a,W)},Qsn=function(a,W){var w=_.pz$(W,{},a,!0);
return new Promise(function(Z,N){w.listenOnce("n",function(){N(Error("el`"+w.JSC$25716_getErrorDescription()))});
w.listenOnce("l",function(){var B=w.getResponseCode();if(B!==200)N(Error("fl`"+W+"`"+a.type+"`"+a.size+"`"+B));else try{Z(JSON.parse(w.getResponseText()).encryptedBlobId)}catch(I){N(I)}});
w.run()})},xnk=function(a){return a.substring(a.indexOf(":")+1,a.indexOf(";"))},bxn=function(a){return new Promise(function(W,w){var Z=new FileReader;
Z.onloadend=function(){try{var N=new Uint8Array(Z.result);N.length<8&&w(void 0);var B=N.subarray(0,8);N="";for(var I=0;I<B.length;I++)N+=("0"+B[I].toString(16)).substr(-2);N.startsWith("ffd8ff")?W("image/jpeg"):N.startsWith("47494638")?W("image/gif"):N.startsWith("89504e470d0a1a0a")?W("image/png"):N.startsWith("424d")?W("image/bmp"):W(void 0)}catch(X){w(X)}};
Z.onerror=w;Z.readAsArrayBuffer(a)})},ssE=function(a){return new Promise(function(W,w){var Z=new Image;
Z.crossOrigin="anonymous";Z.onload=function(){var N=document.createElement("canvas");N.width=Z.naturalWidth;N.height=Z.naturalHeight;var B=N.getContext("2d");if(!B)throw Error("gl");B.drawImage(Z,0,0);B=xnk(a);N.toBlob(function(I){I?W(I):w()},B)};
Z.src=a})},C80=function(a,W){var w;
if(((w=_.A(a,_.gi))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Z;_.E$((Z=W.hostElement)!=null?Z:W,"yt-shorts-reset");_.etR(_.K().resolve(_.EF),a).then(function(B){ubz(B,W,a)})}else{var N;
_.Z9((N=W.hostElement)!=null?N:W,[a]).then(function(B){B&&ubz(B.data,W,a)})}},ubz=function(a,W,w){if(a){var Z=_.A(a.replacementEndpoint,_.gi);
if(Z){a.sequenceContinuation&&(Z.sequenceParams=a.sequenceContinuation);var N;_.E$((N=W.hostElement)!=null?N:W,"yt-navigate",{endpoint:a.replacementEndpoint})}else if((a==null?void 0:a.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(a==null?0:a.watchStatus)&&_.A(a.watchStatus,_.hTJ)){var B;_.E$((B=W.hostElement)!=null?B:W,"yt-navigate",{endpoint:w})}}},GCd=function(){var a=_.K().resolve(_.Ab),W=NU0(a.getState())||"";
a=_.ib9(a.getState())||"";return{disableCache:W==="ytd-browse"&&a==="home"}},DnD=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(W){return!1}return DnD(a.parentNode)},VE=function(a){return a?a.tagName==="A"&&a.href&&a.classList.contains("yt-simple-endpoint"):!1},fbI=function(a){return a?a.tagName==="IMG"&&a.classList.contains("emoji"):!1},dnn=function(a,W,w){if(!a)return null;
var Z=VE(a);if(Z&&w)return W=a.pathname.substring(a.pathname.indexOf("/channel/")+9),document.createTextNode("@"+W);if(Z&&!w)return document.createTextNode("");if(fbI(a))return w=a.alt,a=a.dataset.emojiId,!a&&W&&(W=_.Oa(W,w))&&W.isCustomEmoji&&(a=W.emojiId),a?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+a+">"):document.createTextNode(w);Z=a.cloneNode(!1);for(var N=0;N<a.childNodes.length;++N){var B=dnn(a.childNodes[N],W,w);B&&Z.appendChild(B)}return Z},zY=function(a){return a?VE(a)?a:zY(a.lastChild):
null},mnX=function(a){return a?VE(a)?a:mnX(a.firstChild):null},Vy0=function(a){if(!a)return null;
for(var W=a.previousSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.previousSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.previousSibling;else break;(W=zY(W))?a=W:a=(a=a.parentNode)?zY(a.previousElementSibling):null;return a},zzz=function(a){if(!a)return null;
for(var W=a.nextSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.nextSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.nextSibling;else break;return(W=mnX(W))?W:zzz(a.parentNode)},Hxf=function(a){var W=_.YB(),w=W.JSC$9159_getStartNode();
if(!DnD(w.parentNode))return null;W=W.JSC$9159_getStartOffset();if(w.nodeType===Node.TEXT_NODE){var Z=_.LY(w,VE);if(Z){if(a&&W===0||!a&&W===w.length)return Z}else{if(a&&W===w.length)return!w||w.nodeName==="BR"||w.nextElementSibling&&_.Tb(w.nextElementSibling,"display")==="block"?null:mnX(w.nextElementSibling);if(!a&&W===0)return w?zY(w.previousElementSibling):null}}if(w.nodeType===Node.ELEMENT_NODE)if(a){if(0<=W&&W<w.childNodes.length)return mnX(w.childNodes[W])}else if(0<W&&W<=w.childNodes.length)return zY(w.childNodes[W-
1]);return null},yGE=function(a,W,w){if(!a)return null;
if(a.nodeType===Node.TEXT_NODE)if(w){var Z=Vy0(a);if(Z&&!/^\s+\S/.test(a.wholeText.substr(0,W)))return Z}else if((Z=zzz(a))&&!/\S\s+/.test(a.wholeText.substr(W,a.wholeText.length)))return Z;return a.nodeType===Node.ELEMENT_NODE?w?Vy0(a.childNodes[W]):zzz(a.childNodes[W]):yGE(a.parentNode,W,w)},EpD=function(a){if(a.hasChildNodes())switch(a.tagName){case "DIV":case "A":case "SPAN":var W="";
for(a=a.firstChild;a;a=a.nextSibling)W+=EpD(a);return W;default:return""}else switch(a.nodeType){case 3:return a.textContent;default:return""}},a3I=function(a){a=a.data;
return _.k("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.k("div",null,_.k(_.k_,{text:a.title})),a.subtitle?_.k("div",{class:"ytd-menu-title-renderer__subtitle"},_.k(_.k_,{text:a.subtitle})):null)},Wh2=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"}},wu9=function(a){return a.map(function(W){return{settingsRadioOptionRenderer:{title:_.yw(W.name),
asideText:_.yw(W.approximateSize),id:Wh2(W.format)}}})},Nin=function(a){if(a&&a.length!==0)return a.filter(ZCI()).map(function(W){return{settingsRadioOptionRenderer:{title:W.name,
asideText:W.approximateSize,id:Wh2(W.formatType)}}})},Hc=function(a){if(a)return a.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},tMX=function(a,W){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(W)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},$j2=function(a){var W=a.indexOf("(");
return W!==-1?a.substring(W+1,a.length-1):a},Bif=function(a){switch(a){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},I3f=function(a,W,w,Z,N,B){var I=_.T5.clone(l3d);
I.locale=_.LF("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;I.report={description:N||"<empty>"};N=_.LF("SBOX_SETTINGS",{});W=W.join(",");var X=Date.now();a={choice_cc:Z,choice_id_cc:w,choices_sc:W,gl:N.REQUEST_DOMAIN,hl:N.REQUEST_LANGUAGE,query:a,time:X};B&&(a.choice_additional_comment_cc=B);_.eEy(I,a)},Phk=function(a){var W=new Map;
W.set("authuser",_.LF("SESSION_INDEX","0"));return _.EK(a,W)},vok=function(a){var W;
return _.P(function(w){switch(w.nextAddress){case 1:if(!a||!Xuk(a))return w.return(null);W=null;switch(_.LF("INNERTUBE_CLIENT_NAME")){case "WEB":return w.jumpTo(2);case "WEB_REMIX":W=a.getPlayer()}w.jumpTo(3);break;case 2:return _.g(w,a.getPlayerPromise(),4);case 4:W=w.yieldResult;w.jumpTo(3);break;case 3:return w.return(W)}})},Xuk=function(a){return["ytd-player",
"ytmusic-player"].includes(String(a.tagName||"").toLowerCase())},goX=function(a){a=Math.round(a);
return a%2?a-1:a},oo9=function(a){a=Math.round(a);
return a%2===0?a-1:a},kX2=function(a){var W,w,Z;
if(a=(W=a.createPlaylistDialogFormSchema)==null?void 0:(w=W.fieldSchemas)==null?void 0:(Z=w.title)==null?void 0:Z.validationSchema)for(W=[a.syncStep,a.asyncStep].filter(function(N){return N!==void 0}),W=_.l(W),w=W.next();!w.done;w=W.next()){w=w.value.rules;
if(!w)break;w=_.l(w);for(w=w.next();!w.done;w=w.next())return _.A(w.value,_.cKD)}},OCD=function(a){var W,w,Z;
if(a=(W=a.createPlaylistDialogFormSchema)==null?void 0:(w=W.fieldSchemas)==null?void 0:(Z=w.visibility)==null?void 0:Z.validationSchema)for(W=[a.syncStep,a.asyncStep].filter(function(N){return N!==void 0}),W=_.l(W),w=W.next();!w.done;w=W.next()){w=w.value.rules;
if(!w)break;w=_.l(w);for(Z=w.next();!Z.done;Z=w.next())if(Z=_.A(Z.value,UjI))return W=void 0,(W=Z.translations)==null?void 0:W.visibilityNotValidErrorMessage}},S60=function(){var a,W;
return(W=(a=_.K().resolve(_.Vv(_.Lt)))==null?void 0:a())!=null?W:!1},Y6d=function(a,W){a:switch(W){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":W="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:W="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:a,style:W,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},Tid=function(a){var W=21;
if(!a)return W;W+=a.headerTitle?27:0;W+=a.headerTitle&&a.hasHeaderActionHeader?4:0;return W+=a.headerTitle&&a.headerSubtitle?16:0},Khd=function(a){var W=0;
if(!a)return W;W+=a.hasFooterPrimaryButton||a.hasFooterSecondaryButton?48:0;W+=a.footerTrailingLabel||a.footerLeadingLabel?30:0;return W+=a.hasFooterPrimaryButton||a.hasFooterSecondaryButton||!a.footerTrailingLabel&&!a.footerLeadingLabel?0:12},puk=function(a){var W=new _.I0,w=a;
return{subscribe:function(Z){W.subscribe("changed",Z)},
dispatch:function(Z,N){var B=w;Z==="Touch Start"?w=Object.assign({},B,{isAnimating:!1,initialY:N.event.touches[0].clientY}):Z==="Touch Move"?(Z=Math.min(N.fullContentWrapperHeight,N.contentHeightMap[N.contentWrapperId]+Tid(N.header)-Khd(N.footer)),w=Object.assign({},B,{currentY:Math.max(N.contentScrollable?-1*(B.initialY-24):0,N.event.touches[0].clientY-B.initialY),maxHeightForContentWrapper:Math.min(Z,Math.max(0,(B.isFullScreen?Z:N.contentWrapperHeight)-B.currentY))})):w=Z==="Snap To Full Screen"?
Object.assign({},B,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:N.maxHeight}):Z==="Snap To Neutral Position"?Object.assign({},B,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:N.maxHeight}):Z==="Close Sheet"?Object.assign({},B,{isAnimating:!0,currentY:N.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:N.maxHeight}):B;W.publish("changed",w)}}},r7X=function(a){return _.$_(function(W){a(W);
return!1})},A79=function(){_.K().resolve(_.Yt).closeSheet()},h5k=function(a){var W,w,Z,N,B,I,X,v,U,O,S;
return{headerTitle:(W=a.headerTitle)==null?void 0:W.call(a),headerSubtitle:(w=a.headerSubtitle)==null?void 0:w.call(a),headerActionHeader:a.headerActionHeader,footerPrimaryButton:a.footerPrimaryButton,footerSecondaryButton:a.footerSecondaryButton,footerButtonType:(Z=a.footerButtonType)==null?void 0:Z.call(a),footerLeadingLabel:(N=a.footerLeadingLabel)==null?void 0:N.call(a),footerTrailingLabel:(B=a.footerTrailingLabel)==null?void 0:B.call(a),shouldShowIcons:(I=a.shouldShowIcons)==null?void 0:I.call(a),
skipContentClick:(X=a.skipContentClick)==null?void 0:X.call(a),additionalClassName:(v=a.additionalClassName)==null?void 0:v.call(a),onClosedCallback:a.onClosedCallback,focusOnClose:(U=a.focusOnClose)==null?void 0:U.call(a),isDisabled:(O=a.isDisabled)==null?void 0:O.call(a),disabledCommand:(S=a.disabledCommand)==null?void 0:S.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()}},iCf=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""}},c7f=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""}},e5E=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""}},nof=function(a,W,w){W.forEach(function(Z){_.lM(_.K().resolve(_.Pw),Z)});
_.aV(a,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",w])},Fhi=function(a,W,w,Z){var N=_.A(w,_.QY).commandLifeCycleConfig;
N&&N.onStartCommand&&_.N1(a,[N.onStartCommand],W);_.zb(W);var B=_.Ju.instance;B&&_.Fq(B,w)?_.MX(B,w,Z).then(function(I){if(!I||(I==null?0:I.error))return I=_.A(w,_.QY).serializedTransactionFlowLoggingParams,_.H6(W),_.od(new yE("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",I));_.H6(W);return{data:I}}).then(function(I){_.H6(W);
j1z(I.data);var X=I.data.command;X&&_.N1(a,[X],W);X=LhK(w,I.data);if(!X){var v=I.data;I=!1;if(v&&v.command&&_.A(v.command,_.$7)){var U;v=((U=_.A(v.command,_.$7))==null?void 0:U.commands)||[];for(U=0;U<v.length;U++)if(_.A(v[U],_.t7J)){I=!0;break}}I||_.oc('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!X&&N&&N.onSuccessCommand?_.N1(a,[N.onSuccessCommand],W):X&&N&&N.onFailureCommand&&_.N1(a,[N.onFailureCommand],W)},function(){_.H6(W);
N&&N.onFailureCommand&&_.N1(a,[N.onFailureCommand],W);J7i(w)}):_.eJ(Error("xl"),"ERROR")},MMf=function(a,W,w){var Z=[W];
w&&Z.push(w);return _.Z9(a,Z).then(function(N){var B=_.A(W,_.QY).serializedTransactionFlowLoggingParams,I=N.data,X=LhK(W,I);X?N=_.od(new yE(X,B)):j1z(I);return N},function(){var N=_.A(W,_.QY).serializedTransactionFlowLoggingParams;
J7i(W);return _.od(new yE("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",N))})},LhK=function(a,W){a=_.A(a,_.QY).serializedTransactionFlowLoggingParams;
var w=null;switch(W.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":w="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":w="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":w="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}w?_.Mj(w,a):zya(a);return w},J7i=function(a){_.Mj("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.A(a,_.QY).serializedTransactionFlowLoggingParams)},
j1z=function(a){if(a.trackingParams){var W=_.nS(),w=_.eH();
W&&w&&_.M1(W,w,_.PX(a.trackingParams))}},R5k=function(a,W,w){var Z=_.Ju.instance,N=_.Rcm(_.LF("YPC_MB_URL")),B=(new _.FWv).init(),I=_.MPS(),X=_.A(w,_.W4V).languageCode;
X===void 0?_.eJ(Error("Ci"),"ERROR"):_.rD([B,N]).then(function(){var v={ctk:payments.business.integration.ClientTokenFactory.createClientToken(X,I)};Z&&_.Fq(Z,w)?_.MX(Z,w,v).then(function(U){return{data:U}}).then(function(U){_.E$(W,"yt-service-request-completed",U);
U.code!=="ERROR"&&(U=U.data.command)&&_.N1(a,[U],W)}):_.eJ(Error("xl"),"ERROR")})},xjk=function(a,W,w,Z){var N=_.Ju.instance;
N&&_.Fq(N,w)?_.MX(N,w,Z).then(function(B){return{data:B}}).then(function(B){q69(a,W,w,B)},function(){Q1I(w)}):(N=_.K().resolve(_.Vv(_.U6)))&&N.requestDataForServiceEndpoint(w,Z).then(function(B){q69(a,W,w,B)},function(){Q1I(w)})},q69=function(a,W,w,Z){_.E$(W,"yt-service-request-completed",Z);
if(Z.code&&Z.code=="ERROR")Q1I(w);else{(Z=Z.data.commands)&&_.N1(a,Z,W);var N;(a=(N=_.A(w,_.B4V))==null?void 0:N.serializedYpcPauseFlowLoggingParams)&&a&&_.ez("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",a)}},Q1I=function(a){var W;
(a=(W=_.A(a,_.B4V))==null?void 0:W.serializedYpcPauseFlowLoggingParams)&&a&&_.ez("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},uKz=function(a,W,w){var Z=_.Ju.instance;
Z&&_.Fq(Z,w)?_.MX(Z,w).then(function(N){return{data:N}}).then(function(N){bCi(a,W,w,N)},function(){s1f(w)}):(Z=_.K().resolve(_.Vv(_.U6)))&&Z.requestDataForServiceEndpoint(w).then(function(N){bCi(a,W,w,N)},function(){s1f(w)})},bCi=function(a,W,w,Z){_.E$(W,"yt-service-request-completed",Z);
Z.code&&Z.code=="ERROR"?s1f(w):((Z=Z.data.commands)&&_.N1(a,Z,W),(a=_.A(w,_.lhT).serializedYpcResumeFlowLoggingParams)&&a&&_.ez("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",a))},s1f=function(a){(a=_.A(a,_.lhT).serializedYpcResumeFlowLoggingParams)&&a&&_.ez("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Cha=function(a){a=a===void 0?{}:a;
_.K().resolve(_.rih).showFeedbackDialog(a.customProductData,a.feedbackContent,a.onFeedbackSubmitted,a.bucket)},GX0=function(a){a=a===void 0?{}:a;
_.K().resolve(_.rih).showHelpDialog(a.helpContext,a.articleId,a.productData)},Djd=function(){GX0()},f3I=function(){Cha()},mjK=function(a,W,w){var Z,N,B,I,X,v,U;
return _.P(function(O){switch(O.nextAddress){case 1:Z=_.A(a,djf);if((N=Z)==null?0:N.productId){v={productId:Z.productId,bucket:Z.bucket,enableAnonymousFeedback:(X=Z.enableAnonymousFeedback)!=null?X:!0,allowNonLoggedInFeedback:!0};U={feedbackChoice:w.feedbackChoice};if(!_.r("web_collect_offline_state")){O.jumpTo(8);break}_.tq(O,9);return _.g(O,$6X(U),11)}I={bucket:(B=Z)==null?void 0:B.bucket};if(!_.r("web_collect_offline_state")){O.jumpTo(4);break}I.customProductData={};_.tq(O,5);return _.g(O,$6X(I.customProductData),
7);case 7:_.qY(O,4);break;case 5:_.Pb(O);case 4:Cha(I);O.jumpTo(0);break;case 11:_.qY(O,8);break;case 9:_.Pb(O);case 8:_.emU(U),_.cgx("GFEEDBACK",U),Z.productId==="5295751"&&(U.client_attestation=Number(_.LF("CATSTAT",0))),Z.productId==="5295751"&&(U.client_time=Date.now()/1E3/3600),Z.productId==="5295751"&&(U.original_playback_id=_.fUh||""),_.eEy(v,U),_.Xd(O)}})},VM9=function(a){if(a=_.A(a,_.N6S)){var W={bucket:a.bucketIdentifier};
a.additionalDatas&&(W.customProductData={},a.additionalDatas.forEach(function(w){if(w=w.userFeedbackEndpointProductSpecificValueData)W.customProductData[w.key]=w.value}));
Cha(W)}},z5d=function(a){var W=_.sn.getInstance();
var w=_.P_("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var Z=_.P_("DELETE",void 0,"Delete"),N=_.P_("CANCEL",void 0,"Cancel");w=omD(w,void 0,Z,N,{signal:"DELETE_ALL_DOWNLOADS"});_.J2(W,[{openPopupAction:w}],a)},y7z=function(){return _.P(function(a){return a.nextAddress==1?_.g(a,_.K().resolve(_.V7),2):_.g(a,HCd(),0)})},Eoi=function(a){var W,w;
return _.P(function(Z){return Z.nextAddress==1?(w=(W=_.A(a,_.Qz))==null?void 0:W.targetId)?_.g(Z,_.K().resolve(_.V7),3):Z.jumpTo(0):_.g(Z,_.K().resolve(_.mw).deleteVideo(w),0)})},WVf=function(a){var W,w;
return _.P(function(Z){return Z.nextAddress==1?(w=(W=_.A(a,_.Qz))==null?void 0:W.targetId)?_.g(Z,_.K().resolve(_.V7),3):Z.jumpTo(0):_.g(Z,aCk(_.K().resolve(_.mw),w),0)})},ZpK=function(a){var W,w;
return _.P(function(Z){return(w=(W=_.A(a,_.Qz))==null?void 0:W.targetId)?_.g(Z,wAi(w),0):Z.jumpTo(0)})},tKD=function(){_.r("kevlar_woffle_refresh_dl_load_killswitch")||N$I()},B$9=function(){_.r("kevlar_woffle")&&_.jM.instance&&$tD()},ICX=function(a){var W;
if((W=_.A(a,_.Be))==null||!W.videoId)return!1;lC0(_.K().resolve(_.mw),_.A(a,_.Be),a.clickTrackingParams);return!0},XAD=function(a){var W;
if((W=_.A(a,_.lK))==null||!W.playlistId)return!1;POK(_.K().resolve(_.mw),_.A(a,_.lK),a.clickTrackingParams);return!0},gQI=function(a){var W=_.A(a,_.N9e);
(W==null?void 0:W.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(W==null?void 0:W.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||vQE(_.K().resolve(_.mw),_.A(a,_.N9e))},kDi=function(a){a=_.A(a,_.JAR);
var W;(a==null?0:(W=a.actions)==null?0:W.length)&&oQd(a)},SN9=function(a){var W,w;
return _.P(function(Z){W=_.A(a,UtD);return(w=W)!=null&&w.localWatchHistoryCommandType?_.g(Z,Opi(W),0):Z.return()})},YN2=function(a){setTimeout(function(){requestAnimationFrame(a)},80)},T$0=function(a){return Object.entries(a).map(function(W){return W.join(":")}).join(";")},pAK=function(a){var W,w,Z;
_.P(function(N){if(N.nextAddress==1)return _.g(N,KVk(),2);W=N.yieldResult;w=_.WX.instance;switch(W){case "granted":Z=a.getLocationCommand;break;case "denied":Z=a.openDeniedDialogAction;break;case "prompt":Z=a.openCollectionDialogAction;break;default:Z=a.openCollectionDialogAction}Z&&w.resolveCommand(Z);_.Xd(N)})},KVk=function(){var a,W;
return _.P(function(w){if(w.nextAddress==1)return a="prompt",navigator.permissions?_.g(w,navigator.permissions.query({name:"geolocation"}),3):w.jumpTo(2);w.nextAddress!=2&&(W=w.yieldResult,a=W.state);return w.return(a)})},AtD=function(){_.P(function(a){return _.g(a,_.rt0(),0)})},hSa=function(){var a,W,w;
return _.P(function(Z){if(Z.nextAddress==1)return a=_.K().resolve(_.O6),a?_.g(Z,_.MX(a,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.jJ(Error("Al")),Z.return(void 0));if(W=Z.yieldResult){if(W.errorMetadata)return _.jJ(Error("Bl`"+W.errorMetadata.status+"`"+W.error)),Z.return(void 0);w=W.datasyncIds;_.KpL=w.length;return Z.return(w)}_.jJ(Error("Cl"));return Z.return(void 0)})},ipf=function(){hSa().then(function(a){a&&(JF2(a),ylz(a),pZI(a),lWK(a))})},ct2=function(a){_.hF.addLowPriorityJob(function(){var W,
w,Z,N,B;
return _.P(function(I){switch(I.nextAddress){case 1:if(_.r("ytidb_clear_optimizations_killswitch")){I.jumpTo(2);break}W=_.o0("clear");if(W.startsWith("V")&&W.endsWith("||")){var X=[W];JF2(X);ylz(X);pZI(X);lWK(X);return I.return()}w=rld();Z=IWa();return _.g(I,Ej2(),3);case 3:return N=I.yieldResult,_.g(I,FQ0(),4);case 4:if(B=I.yieldResult,!(w||Z||N||B))return I.return();case 2:a.isNetworkAvailable()?ipf():a.listenOnce("publicytnetworkstatus-online",ipf),_.Xd(I)}})})},EQ=function(a){a={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.b8(a)}}}};_.WX.instance&&_.WX.instance.resolveCommand(a)},eSk=function(a){if(a){var W=_.$J();
_.NJ(W,3854,void 0,{layer:0,parentLayer:4});switch(a){case 1:var w=238708;break;case 2:w=238715;break;case 3:w=238710;break;case 6:w=238709}w&&(a=_.tQ(W,{veType:w}))&&_.BE(W,a)}},nQI=function(a){if(a){var W=_.$J();
_.NJ(W,3854,void 0,{layer:0,parentLayer:4});switch(a){case 1:var w=238714;break;case 2:w=238711;break;case 8:w=238709;break;case 7:w=238713;break;case 3:case 4:case 5:w=238712}w&&(a=_.tQ(W,{veType:w}))&&_.BE(W,a)}},j5i=function(a){switch(a.latencyType){case 0:_.rS("consent_primitive_flow");
_.Ak("cpit",a.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Ak("cpist",a.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Ak("cprtif",a.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Ak("cprtli",a.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Ak("cprt",a.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Ak("cpdt",a.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Ak("cpjct",a.timestampEpochMillis,"consent_primitive_flow")}},
s50=function(a,W){var w,Z,N,B,I,X,v,U,O,S,T,p,h,L,F,x,G,V,d,ZD;
return _.P(function(aC){switch(aC.nextAddress){case 1:_.tq(aC,2);(Z=(w=_.A(a,LVX))==null?void 0:w.serializedConsentRequest)||(Z=(N=_.A(a,Jtk))==null?void 0:N.serializedConsentRequest);Z&&(B=FV0(_.UR(Z)));if(B===void 0)return aC.return();I=MKk(B);I.latencyCallback=j5i;W&&RSE(I,function(){W.then(function(Bv){Bv.pauseVideo();(new qN2).increment()})});
return((X=_.A(a,LVX))==null?void 0:X.consentAction)==="CONSENT_ACTION_PREWARM"||((v=_.A(a,Jtk))==null?void 0:v.consentAction)==="CONSENT_ACTION_PREWARM"?_.g(aC,Q5f(I),5):_.g(aC,xtD(I),6);case 6:U=aC.yieldResult;O=_.AD(U,aS);if(O===1){if(((S=_.RY(U,Ws,1,aS))==null?void 0:_.JD(S,1))===1||((T=_.RY(U,Ws,1,aS))==null?void 0:_.JD(T,1))===2||((p=_.RY(U,Ws,1,aS))==null?void 0:_.JD(p,1))===3)_.A(a,Jtk)?EQ(_.P_("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
EQ(_.P_("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));eSk((h=_.RY(U,Ws,1,aS))==null?void 0:_.JD(h,1),_.z5(U,bpD,3,_.Hh()))}else O===2?(((L=wd(U))==null?void 0:_.JD(L,1))===5?_.A(a,Jtk)?EQ(_.P_("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):EQ(_.P_("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((F=wd(U))==null?void 0:_.JD(F,1))===1||((x=wd(U))==null?void 0:_.JD(x,1))===4?EQ(_.P_("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((G=wd(U))==null?void 0:_.JD(G,1))===7&&((V=B)==null?void 0:(d=_.Hi(V,Zk,4))==null?void 0:_.JD(d,4))!==1&&EQ(_.P_("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),nQI((ZD=wd(U))==null?void 0:_.JD(ZD,1))):EQ(_.P_("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));aC.jumpTo(5);break;case 5:_.qY(aC,0);break;case 2:_.Pb(aC),EQ(_.P_("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Xd(aC)}})},COk=function(){if(!uM2.has("Worker")){uM2.set("Worker",
!0);
var a={api:"BROWSER_API_WEB_WORKER"};a.available="Worker"in window?!0:!1;_.ia("apiTest",a)}},GD0=function(a){return typeof a==="undefined"?"-1":String(Math.ceil(a/1048576))},mt9=function(a,W){DtE(new fCI(_.A(W,dta).addToken,_.A(W,dta).commonToken)).then(function(){_.E$(a,"yt-invoke-instrument-manager-action-completed")},function(w){_.E$(a,"yt-invoke-instrument-manager-action-error",w)})},VKf=function(a){return _.sy(a)},zSd=function(a){var W=1;
a=a.split(":");for(var w=[];W>0&&a.length;)w.push(a.shift()),W--;a.length&&w.push(a.join(":"));return w},Hpz=function(a,W){W=a.aspectRatio()<=W.aspectRatio()?W.width/a.width:W.height/a.height;
a.scale(W)},ytX=function(a,W){W=a.aspectRatio()>W.aspectRatio()?W.width/a.width:W.height/a.height;
return a.scale(W)},EQD=function(a){var W=new _.lg;
return _.qT(W,11,a)},agd=function(a){var W={};
a=a.getAllResponseHeaders().split("\r\n");for(var w=0;w<a.length;w++)if(!_.vv(a[w])){var Z=zSd(a[w]),N=Z[0];Z=Z[1];if(typeof Z==="string"){Z=Z.trim();var B=W[N]||[];W[N]=B;B.push(Z)}}return _.T5.map(W,function(I){return I.join(", ")})},Xo=function(a,W){return a.JSC$7703_xhr_?a.JSC$7703_xhr_.getResponseHeader(W):null},Np=function(a,W,w){Array.isArray(w)||(w=[String(w)]);
_.v1J(a.JSC$7940_queryData_,W,w);return a},$tD=function(){var a=_.jM.instance;
_.P(function(W){return a.deferredInstallPrompt?_.g(W,a.deferredInstallPrompt.prompt(),0):W.jumpTo(0)})},WYX=function(a,W,w){if(_.wT(a))_.x6(a,W,w);
else for(a=_.YnH(a);;){var Z=a.next();if(Z.done)break;W.call(w,Z.value,void 0,a)}},wXD={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}"]},yQa,EJD,aK0,Wdz,w$0,ZAX,N2n,tL9,$Xa,wAi,aCk,HCd,B2k,lKf,IKd,P59,X$d,POK,lC0,v_a,g_X,o_X,N$I,vQE,kwI,oQd,UX2,Opi,OAk,Sba,Ybd,T2f,Kdd,p$0,rui,mN,Aun,hn0,
vpk,IbK,iAI,Ps,XP,vs,gd,cu9,enz,n_k,jti,Ld9,Ju9,Fd2,ML0,Rnz,qbE;wXD={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 Zt2=function(a,W){var w=[];WYX(W,function(Z){try{var N=_.wQ.prototype.getWrapper.call(this,Z,!0)}catch(B){if(B=="Storage: Invalid value was encountered")return;throw B;}N===void 0?w.push(Z):_.Sn_(N)&&w.push(Z)},a);
return w},NJz=function(a,W){Zt2(a,W).forEach(function(w){_.wQ.prototype.remove.call(this,w)},a)},txk=function(a){var W=_.u3;
W._minimumZ=Math.max(W._minimumZ,a)},$wk=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],BJK=function(a,W){_.d3(a.kf);a.kf=W},lg0=function(a,W,w,Z){a.setState(5);
var N=!!a.rju&&$wk.includes(_.D7(a.rju)||"");try{var B=new _.Jd({program:W,globalName:w,fn:{disable:!_.r("att_web_record_metrics")||!_.r("att_skip_metrics_for_cookieless_domains_ks")&&N,zu:"aGIf"}});B.tWb.then(function(){a.setState(6);Z&&Z(W)});
BJK(a,B)}catch(I){a.setState(7),I instanceof Error&&_.jJ(I)}},Iga=function(a,W,w,Z,N,B){var I=I===void 0?"trayride":I;
w?(a.setState(2),_.MM(w,function(){if(window[I])lg0(a,Z,I,N);else{a.setState(3);var X=_.$PE(w),v=document.getElementById(X);v&&(_.lC9(X),v.parentNode.removeChild(v));_.jJ(new _.Uw("BL:ULB",w))}},B)):W?(B=_.PM("SCRIPT"),W instanceof _.Fr?_.q_(B,W):B.textContent=W,B.nonce=_.JY(document),document.head.appendChild(B),document.head.removeChild(B),window[I]?lg0(a,Z,I,N):(a.setState(4),_.jJ(new _.Uw("BL:ULBJ")))):_.jJ(new _.Uw("BL:ULV"))},Pxn=function(){this.state=1;
this.kf=null;this.rju=void 0};
_.t=Pxn.prototype;_.t.initialize=function(a,W,w,Z){this.rju=Z;if(a.program){var N;Z=(N=a.interpreterUrl)!=null?N:null;if(a.interpreterSafeScript)N=_.cGe(a.interpreterSafeScript);else{var B;N=(B=a.interpreterScript)!=null?B:null}a.interpreterSafeUrl&&(Z=_.cI(a.interpreterSafeUrl).toString());Iga(this,N,Z,a.program,W,w)}else _.jJ(Error("lf"))};
_.t.isInitialized=function(){return!!this.kf};
_.t.getState=function(){return this.state};
_.t.isLoading=function(){return this.state===2};
_.t.invoke=function(a){a=a===void 0?{}:a;var W;this.kf?W=_.Wk6(this.kf,{jm:a}):W=null;return W};
_.t.dispose=function(){BJK(this,null);this.setState(8)};
_.t.setState=function(a){this.state=a};
var XXX=function(a,W){return a.kf.snapshot(W)},vJE=function(a,W){var w=_.yv("botguard_async_snapshot_timeout_ms",3E3);
W=W===void 0?{}:W;w=w===void 0?3E3:w;return a.kf?new Promise(function(Z,N){var B=!1,I=_.hF.addJob(function(){B=!0;N(Error("mf"))},1,w);
a.kf?XXX(a,{jm:W}).then(function(X){_.hF.cancelJob(I);B||Z(X)}).catch(function(X){_.hF.cancelJob(I);
B||N(X)}):(_.hF.cancelJob(I),Z(null))}):Promise.resolve(null)},gJa=["att/log"],oJ0;
oJ0={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var k$0={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},Uw0=function(a,W){return _.Xb(a,{mode:"readwrite",enableRetries:!0},function(w){return _.uS7(w,W,"settingEntity")})},Oti=function(a,W,w){return _.Xb(a,{mode:"readonly",
enableRetries:!0},function(Z){return _.Lxy(Z,W,w)})},S8i=function(a){if(!a.storage)return!1;
a:{if(a.storage){try{var W=a.storage.get("TLPQtimestamp")}catch(w){}a=Number(W);if(!isNaN(a))break a}a=void 0}return a?Date.now()-a<864E5:!1},Y8d=function(a){if(a.storage){try{var W=a.storage.get("TLPQindex")}catch(w){}a=Number(W);
if(!isNaN(a))return a}},TJ0=function(a,W){a.queueProxy&&W.forEach(function(w){if(w.videoId&&w.trackingParams&&a.queueProxy instanceof _.ew){var Z=_.nS();
a.queueProxy.attributionData.set(w.videoId,{enqueueingVe:_.PX(w.trackingParams).getAsJson(),enqueueingCsn:Z?Z:void 0,clientEnqueueingTimeMs:Math.floor((0,_.mG)()).toString()})}})},KY9=function(a){var W=_.PQT(a);
W!=a.currentSnapState_&&(a.currentSnapState_=W,a.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},tr=function(a){this.JSC$10883_networkManager_=a;
this.partCallbacks_=[]};
tr.prototype.getCacheKeyForEndpoint=function(a){return _.pwC(a,!1)};
tr.prototype.onPartsCallback_=function(a){this.partCallbacks_.forEach(function(W){a&&W(a)})};
var $M=function(a,W,w){tr.call(this,a);this.player_=W;this.autoplayData_=w};
_.c($M,tr);$M.prototype.getCacheKeyForEndpoint=function(a){return _.pwC(a,!!this.autoplayData_)};
$M.prototype.getTempData=function(a,W){W=W.timeBeforeNextVideo;a={itct:a.clickTrackingParams,lact:_.HI(),pbis:W,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(a.autonav=1);return a};
$M.prototype.getXhrParams=function(a){return Object.assign({pbj:"prefetch"},a)};
$M.prototype.getParams=function(a){a={frags:a.fragmentsRequested.join(",")};_.r("kevlar_droppable_prefetchable_requests")&&(a.prefetch=1);return a};
var pXf=function(a){a.playerEvents_.forEach(function(W){a.player.removeEventListener(W.eventName,W.callback)});
a.playerEvents_.length=0},Bs=function(a,W,w){this.player=a;
this.JSC$10893_taskManager=W;this.prefetchDelay=w;this.completionResolver_=null;this.playerEvents_=[]};
Bs.prototype.start=function(){var a=this;this.completionResolver_=_.Rt();_.Ad(this.completionResolver_.promise,function(){pXf(a);a.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var rQ0=function(a,W,w){a.player.addEventListener(W,w);a.playerEvents_.push({eventName:W,callback:w})},AQz={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},hI9={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},it9=function(a,W,w){Bs.call(this,a,W,w);this.cueId_="playbackTrigger-"+Math.random()};
_.c(it9,Bs);
it9.prototype.prepareTrigger=function(a){var W=this,w=this.player.getDuration(),Z=this.player.getVideoData(),N=Z.isLive&&Z.hasProgressBarBoundaries;if(N&&Z.progressBarEndPositionUtcTimeMillis){var B=Z.progressBarEndPositionUtcTimeMillis/1E3;isNaN(B)||(w=B)}var I=0;this.prefetchDelay>=0?N?Z.progressBarStartPositionUtcTimeMillis&&(Z=Z.progressBarStartPositionUtcTimeMillis/1E3,isNaN(Z)||(I=Z+this.prefetchDelay)):I=this.prefetchDelay:I=w+this.prefetchDelay;N?this.player.addUtcCueRange(this.cueId_,I,w):
this.player.addCueRange(this.cueId_,I,w);_.Ad(a.promise,function(){W.player.removeCueRange(W.cueId_)});
rQ0(this,"onCueRangeEnter",function(X){X==W.cueId_&&a.resolve(w-I)})};
var cQX=function(a,W){a.fragmentConfiguration_[W].requiredKeys.every(function(w){return!!a.prefetchedData_[w]})&&(a.validatedFragments_.push(W),W=a.missingFragments_.indexOf(W),W!==-1&&a.missingFragments_.splice(W,1))},eIK=function(a){a.prefetchedFragments_.forEach(function(W){cQX(a,W)})},nJz=function(a,W,w){this.pageFragments_=a;
this.prefetchedFragments_=W;this.fragmentConfiguration_=hI9;this.prefetchedData_=w;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;eIK(this)},jd9=function(){},LYd=function(a){this.JSC$10907_playlistManager_=a};
_.c(LYd,jd9);LYd.prototype.getPrefetchEndpoint=function(){return this.JSC$10907_playlistManager_.getAutoplayEndpoint()};
var JQa=function(a){this.autonavEndpoints_=a};
_.c(JQa,jd9);JQa.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var FYE=function(a,W,w,Z,N){this.autonavEndpoints=a;this.foregroundTrigger=W;this.backgroundTrigger=w;this.pageType=Z;this.isInPlaylist=N},Mxn=function(a,W){if(a.webPrefetchData&&a.webPrefetchData.navigationEndpoints&&a.webPrefetchData.navigationEndpoints.length){a=a.webPrefetchData.navigationEndpoints;
var w=_.A(a[0],_.u6);if(w.watchEndpointSupportedPrefetchConfig&&w.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var Z=w.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;w=Z.playbackRelativeSecondsPrefetchCondition;w=typeof w==="number"&&Math.abs(w)<W.videoDuration?w:void 0;Z=Z.countdownUiRelativeSecondsPrefetchCondition;Z=typeof Z!=="number"||_.r("prefetch_job_config_cleanup_ks")&&W.inPlaylist?void 0:Z;if(typeof Z==="number")return new FYE(a,W.makeUpNextTrigger(Z),W.makePlaybackTrigger(Z),
"watch",W.inPlaylist);if(typeof w==="number")return new FYE(a,W.makePlaybackTrigger(w),null,"watch",W.inPlaylist)}}},RID=function(a){return a.prefetchJobConfig_.backgroundTrigger?_.Mx(_.tiU)()==0?a.prefetchJobConfig_.backgroundTrigger:a.prefetchJobConfig_.foregroundTrigger:a.prefetchJobConfig_.foregroundTrigger},q8E=function(a){_.YO(document,"visibilitychange",a.onVisibilityChange_,!1,a)},lR=function(a){tr.call(this,a)};
_.c(lR,tr);lR.prototype.getCacheKeyForEndpoint=function(a){return tr.prototype.getCacheKeyForEndpoint.call(this,a)};
lR.prototype.getTempData=function(){return{}};
lR.prototype.getXhrParams=function(a){return a};
lR.prototype.getParams=function(){return{}};
var Qdn=function(a,W,w){var Z=a.prefetchDelay*1E3;if(Math.abs(Z)>W)w.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var N=Z,B=W-Z;Z<0&&(N=W+Z,B=Math.abs(Z));var I=a.JSC$10893_taskManager.addJob(function(){w.resolve(B/1E3)},10,N);
w.promise.thenCatch(function(){a.JSC$10893_taskManager.cancelJob(I)})}},xwd=function(a,W,w){Bs.call(this,a,W,w)};
_.c(xwd,Bs);xwd.prototype.prepareTrigger=function(a){var W=this;rQ0(this,"onAutonavCoundownStarted",function(w){Qdn(W,w,a)})};
var btn=function(a){a.pendingPrefetchJob_&&(a.pendingPrefetchJob_.cancel(),a.pendingPrefetchJob_=null)},sdz=function(a,W,w){if(!a.triggeredTargets.has(W)){var Z=_.mr_(a,W);
Z.action=w;_.fvL(a,W,Z)}},umK=function(a){_.Q8A();
_.OmI("cpt")&&_.jJ(Error("kh"));_.NH.requestAnimationFrame(function(){_.NH.setTimeout(function(){_.Ak("cpt");var W=_.c_("vpl"),w=_.c_("cpt");W&&w&&_.Ak("ol",Math.max(W,w))})});
try{_.Ak("fr_s"),a()}catch(W){_.eJ(W)}_.NH.requestAnimationFrame(function(){_.Ak("bcp")})},CxD=function(a,W){a.serviceEndpointHandlers.push(W)},G$k=function(a,W){W=a.pendingPages_.indexOf(W);
W>-1&&a.pendingPages_.splice(W,1)},Dw0=function(a,W){var w=_.y0$.indexOf(W);
w>-1&&_.y0$.splice(w,1);a.targetPage_==W?(a.abort(),_.aOE(a)):G$k(a,W)},fg2=function(a,W,w,Z){W={challenge:W};
w&&(W.webResponse=w);return _.jw(a.innertubeTransportService,W,_.GC(gJa),Z)},dwK=function(a,W,w){if(!W.challenge)throw Error("mi");
if(W.botguardData&&W.botguardData.program){var Z=new Pxn;Z.initialize(W.botguardData,function(){vJE(Z,{atr_challenge:W.challenge}).then(function(N){if(!N)throw Error("ni");return fg2(a,W.challenge,N,w)}).catch(function(N){_.jJ(N);
return fg2(a,W.challenge,void 0,w)})},void 0)}else fg2(a,W.challenge,void 0,w)},mwf=function(a,W,w){var Z={};
W.ids&&(Z.ids=[].concat(_.K8(W.ids)));W.engagementType&&(Z.engagementType=W.engagementType);return _.jw(a.innertubeTransportService,Z,_.GC(_.mRT),w).then(function(N){if(!N)throw new _.Uw("GetAttestationChallenge returned falsy");dwK(a,N,w)}).thenCatch(function(N){_.eJ(N)})},Vx0=function(a,W,w){return new _.PZ(function(Z,N){var B;
return _.P(function(I){if(I.nextAddress==1){var X=W.engagementType,v=W.ids,U={};v=_.l(v!=null?v:[]);for(var O=v.next();!O.done;O=v.next())O=O.value,O.encryptedVideoId?U.encryptedVideoId=O.encryptedVideoId:O.externalChannelId?U.externalChannelId=O.externalChannelId:O.commentId?U.commentId=O.commentId:O.externalOwnerId?U.externalOwnerId=O.externalOwnerId:O.artistId?U.artistId=O.artistId:O.playlistId?U.playlistId=O.playlistId:O.externalPostId?U.externalPostId=O.externalPostId:O.shareId&&(U.shareId=O.shareId);
return _.g(I,gmd(X,U),2)}B=I.yieldResult;if(!B.challenge)return _.jJ(Error("oi")),mwf(a,W,w).then(Z,N),I.return();X=B;U={challenge:X.challenge};U.webResponse=X.webResponse;U.engagementType=W.engagementType;U.ids=W.ids;_.jw(a.innertubeTransportService,U,_.GC(gJa),w).then(Z,N);_.Xd(I)})})},kC9=function(a,W){var w,Z,N,B;
_.P(function(I){if(I.nextAddress==1){w=_.A(W,_.fA6);if(!(w&&w.listId&&a.response&&a.response.playingVideoId)||a.listId!==w.listId)return I.return();a.index===void 0&&(a.index=0);return _.g(I,_.vlT(a.JSC$10713_playlistNetworkManager,w.listId,a.index,a.response.playingVideoId),2)}Z=I.yieldResult;if(!Z)return I.return();N=Z.playlistId;B=Z.playlistPanelRenderer;a.setPlaylistData(N,B,Z.autoplayRenderer);_.Xd(I)})},zIi=function(a,W,w){var Z=a.getParams(w),N=_.sdm(W,Z),B=a.getTempData(W,w);
B.endpoint=JSON.stringify(W);_.r("enable_unknown_lact_fix_on_html5")&&(_.K().resolve(_.Y_),B.lact=_.HI());var I={headers:{"X-YouTube-STS":_.LF("STS"),"x-youtube-csoc":1}};_.fS(N,B);return new _.PZ(function(X,v){var U=a.getXhrParams(Z),O;_.r("kevlar_cache_on_ttl_player")&&(O=_.W7.instance);O&&_.AEy(O,W)?_.JEh(O,W,B,window.location.href).then(function(S){S?X(S):v()},v):_.z6R(a.JSC$10883_networkManager_,W,U,a.onPartsCallback_.bind(a),I).then(function(S){S?X(S):v()},v)})},Ht0=function(a,W){a.triggerPromise_=
W.start();
a.triggerPromise_.then(function(w){var Z=a.prefetchEndpointProvider_.getPrefetchEndpoint();if(Z){var N=AQz[a.prefetchJobConfig_.pageType].prefetchedFragments;a.prefetchRequestPromise_=zIi(a.JSC$10919_networkPrefetchRequest_,Z,{fragmentsRequested:N,timeBeforeNextVideo:w});a.prefetchResponseCacheKey_=a.JSC$10919_networkPrefetchRequest_.getCacheKeyForEndpoint(Z);q8E(a);a.prefetchRequestPromise_.then(function(B){a.storePrefetchedDataCallback_(a.prefetchResponseCacheKey_,B);if(_.r("web_prefetch_preload_video")&&
N.length===1&&N[0]==="pl"&&B&&!B.playerAds&&!B.adPlacements){var I=_.A(Z,_.gi),X=I!=null,v={raw_player_response:B,watch_endpoint:I};(B=_.K().resolve(X?_.VOT:_.H$))&&Z&&B.then(function(U){X&&_.r("web_queue_preload_video")?(v.prefer_gapless=!0,U.queueNextVideo(v)):U.preloadVideoByPlayerVars(v)})}})}})},IS=function(a,W,w,Z){this.prefetchEndpointProvider_=a;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=W;this.prefetchJobConfig_=w;this.JSC$10919_networkPrefetchRequest_=Z;this.prefetchResponseCacheKey_=null};
IS.prototype.enqueue=function(){this.triggerPromise_||(Ht0(this,RID(this)),_.vX(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
IS.prototype.resolve=function(){this.cancel()};
IS.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.");q8E(this)};
IS.prototype.onVisibilityChange_=function(){var a=this;_.Mx(_.tiU)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){a.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||Ht0(this,RID(this))};
yQa=function(a,W,w,Z,N){W&&(W==null?0:W.videoId)&&w&&w.entries&&_.r("kevlar_enable_shorts_prefetch_in_sequence")&&(btn(a),W=w.entries.map(function(B){var I;return(I=_.A(B.command,_.gi))==null?void 0:I.videoId}).indexOf(W.videoId),w=w.entries[W+1],w!=null&&w.command&&!_.A(w==null?void 0:w.command,_.jT)&&(Z=new FYE([w.command],new it9(Z,_.hF,1),null,"shorts",!1),a.pendingPrefetchJob_=new IS(new JQa(Z.autonavEndpoints),function(){return!1},Z,new lR(N)),a.pendingPrefetchJob_.enqueue()))};
EJD=function(a,W,w,Z,N,B){var I=_.mF.getInstance();if(!_.r("block_all_player_prefetch_requests")){btn(a);var X=!!w.getPlaylistId(),v=w.getVideoData().isLive&&w.getVideoData().hasProgressBarBoundaries;if((I.getState()==2||X||v)&&(!w.getVideoData().isLive||v)){I={inPlaylist:X,videoDuration:w.getDuration(),makeUpNextTrigger:function(O){return new xwd(w,_.hF,O)},
makePlaybackTrigger:function(O){return new it9(w,_.hF,O)}};
var U=Mxn(W,I);U&&(a.pendingPrefetchJob_=new IS(U.isInPlaylist?new LYd(N):new JQa(U.autonavEndpoints),function(O,S){S=new nJz(AQz[U.pageType].pageFragments,AQz[U.pageType].prefetchedFragments,S);return _.qPy(S)?(a.prefetchCache_.set(O,S),!0):!1},U,new $M(Z,w,B,N)),a.pendingPrefetchJob_.enqueue())}}};
aK0=function(){var a=_.qJ();a.signals.parkOrScheduleJob(function(){var W=a.storage;if(W.storage)if(S8i(W)){var w=W.getPlaylistId();W=Y8d(W);w=!!w&&W!==void 0}else W.clear(),w=!1;else w=!1;if(w){w=a.pageManager.isOnWatch();a:{var Z=a.storage;if(Z.storage&&S8i(Z)&&(W=Z.getPlaylistId(),Z=Y8d(Z),W&&Z!==void 0)){w={recoverPlaylistCommand:{listId:W,index:Z,openMiniplayer:!w,openListPanel:w,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}w=void 0}w&&_.J2(a.JSC$10713_actionRouter,[w],null)}},0,"ma")};
Wdz=function(a,W,w,Z,N,B){var I=_.Ob(7111);_.tc(a.JSC$16039_screenManager,I,B?_.PX(B):void 0);_.BE(a.JSC$16039_screenManager,I,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:Z,offlineId:W,offlineabilityFormatType:w,isDefaultFormatType:N==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:N}})};
w$0=function(a,W,w,Z,N){var B,I,X,v,U;return _.P(function(O){if(O.nextAddress==1)return _.g(O,a.JSC$16039_playerApiPromise,2);B=O.yieldResult;Wdz(a,W,w,"OFFLINE_OBJECT_TYPE_PLAYLIST",Z,N);if(X=_.xQR[a.entityTypeMap.listEntityType])U={},I=(U[X]={maximumDownloadQuality:(v=w)!=null?v:void 0},U);return _.g(O,B.queueOfflineAction(W,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",I),0)})};
ZAX=function(a,W){var w,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return _.g(I,a.JSC$16039_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3){w=I.yieldResult;if(!w)return _.jJ(new _.Uw("PES is undefined")),I.return();Z=_.Nn(W,"downloadStatusEntity");return _.g(I,Oti(w,Z,"downloadStatusEntity"),3)}N=I.yieldResult;return I.return((B=N)==null?void 0:B.downloadState)})};
N2n=function(a,W,w,Z,N){var B,I,X,v,U,O;return _.P(function(S){switch(S.nextAddress){case 1:return _.g(S,a.JSC$16039_playerApiPromise,2);case 2:B=S.yieldResult;Wdz(a,W,w,"OFFLINE_OBJECT_TYPE_VIDEO",Z,N);if(X=_.xQR[a.entityTypeMap.singleEntityType])U={},I=(U[X]={maximumDownloadQuality:(v=w)!=null?v:void 0},U);return _.g(S,ZAX(a,W),3);case 3:O=S.yieldResult;if(O!=="DOWNLOAD_STATE_USER_DELETED"){S.jumpTo(4);break}return _.g(S,a.deleteVideo(W),4);case 4:return _.g(S,B.queueOfflineAction(W,a.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",I),0)}})};
tL9=function(a,W,w,Z,N){return _.P(function(B){return B.nextAddress==1?_.g(B,a.deleteVideo(W,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.g(B,N2n(a,W,w,Z,N),0)})};
$Xa=function(a,W,w){var Z,N;return _.P(function(B){if(B.nextAddress==1)return _.g(B,a.JSC$16039_playerApiPromise,2);Z=B.yieldResult;N=_.Nn(W,"mainVideoDownloadStateEntity");return _.g(B,Z.updateDownloadState(N,w),0)})};
wAi=function(a){var W=_.K().resolve(_.mw);return _.P(function(w){if(w.nextAddress==1)return W.previousDownloadStateForVideo[a]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&W.previousDownloadStateForVideo[a]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?w.jumpTo(2):_.g(w,W.resumeVideoDownload(a),2);if(w.nextAddress!=4)return _.g(w,$Xa(W,a,W.previousDownloadStateForVideo[a]),4);delete W.previousDownloadStateForVideo[a];_.Xd(w)})};
aCk=function(a,W){var w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$16039_playerApiPromise,2);w=Z.yieldResult;return _.g(Z,w.queueOfflineAction(W,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
HCd=function(){var a=_.K().resolve(_.mw),W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$16039_playerApiPromise,2);if(Z.nextAddress!=3)return W=Z.yieldResult,w={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.g(Z,W.queueOfflineAction("!*$_ALL_ENTITIES_!*$",a.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",w),3);var N=a.JSC$16039_commandHandler,B=N.resolveCommand,I=_.P_("DELETING_ALL",void 0,"Downloads are being deleted");
B.call(N,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.zG(I)}},popupType:"TOAST"}});_.Xd(Z)})};
B2k=function(a){var W,w;return _.P(function(Z){if(Z.nextAddress==1)return _.g(Z,a.JSC$16039_prefStorage,2);W=Z.yieldResult;return Z.return((w=W)==null?void 0:w.get("sdois"))})};
lKf=function(a){var W,w,Z,N,B,I;return _.P(function(X){if(X.nextAddress==1)return _.g(X,a.JSC$16039_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3){W=X.yieldResult;if(!W)return _.jJ(new _.Uw("PES is undefined")),X.return();w=_.Nn("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.g(X,Oti(W,w,"settingEntity"),3)}Z=X.yieldResult;return X.return((I=(N=Z)==null?void 0:(B=N.settingOptionValue)==null?void 0:B.boolValue)!=null?I:!1)})};
IKd=function(a,W){var w,Z,N,B;return _.P(function(I){switch(I.nextAddress){case 1:return((w=W)==null?void 0:w.formatType)===void 0?I.return():_.g(I,a.JSC$16039_prefStorage,2);case 2:Z=I.yieldResult;if(Z===void 0)return I.return();if(((N=W)==null?void 0:N.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.g(I,Z.set("lmqf",W.formatType),8);if(((B=W)==null?void 0:B.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){I.jumpTo(0);break}return _.g(I,Z.set("lmqf",W.formatType),
6);case 6:return _.g(I,Z.set("lmqflst",Math.floor((0,_.mG)())),0);case 8:return _.g(I,Z.remove("lmqflst"),0)}})};
P59=function(a){var W,w;return _.P(function(Z){switch(Z.nextAddress){case 1:return _.g(Z,a.JSC$16039_prefStorage,2);case 2:W=Z.yieldResult;if(!W){Z.jumpTo(3);break}return _.g(Z,W.get("lmqflst"),4);case 4:if(w=Z.yieldResult,w!==void 0)return Z.return(w);case 3:return Z.return(0)}})};
X$d=function(a){var W,w;return _.P(function(Z){switch(Z.nextAddress){case 1:return _.g(Z,a.JSC$16039_prefStorage,2);case 2:W=Z.yieldResult;if(W===void 0){Z.jumpTo(3);break}return _.g(Z,W.get("lmqf"),4);case 4:if(w=Z.yieldResult,w!==void 0)return Z.return(w);case 3:return Z.return("SD")}})};
POK=function(a,W,w){var Z,N,B,I,X,v,U,O;_.P(function(S){switch(S.nextAddress){case 1:return _.g(S,IKd(a,(Z=W)==null?void 0:Z.actionParams),2);case 2:N=W.playlistId;if(!N)return S.return();if(W.action==="ACTION_ADD")return((I=W.actionParams)==null?0:I.formatType)?_.g(S,w$0(a,N,W.actionParams.formatType,(O=W.actionParams)==null?void 0:O.settingsAction,w),0):_.g(S,a.offlineWebClientEligibility,14);if(W.action==="ACTION_REMOVE_WITH_PROMPT"){var T=a.JSC$16039_commandHandler,p=T.resolveCommand,h=_.LF("INNERTUBE_CLIENT_NAME");
var L=h==="WEB_REMIX"?_.P_("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.P_("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var F=h==="WEB_REMIX"?[_.P_("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];h=h==="WEB_REMIX"?_.P_("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.P_("DELETE",void 0,"Delete");var x=_.P_("CANCEL",void 0,"Cancel");L=omD(L,F,h,x,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:N});p.call(T,{openPopupAction:L});
return S.return()}if(W.action==="ACTION_REMOVE")return _.g(S,aCk(a,N),0);if(W.action!=="ACTION_SYNC"){S.jumpTo(0);break}return _.g(S,a.JSC$16039_playerApiPromise,9);case 9:return B=S.yieldResult,_.g(S,B.queueOfflineAction(N,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return X=S.yieldResult,_.g(S,X$d(a),15);case 15:return v=S.yieldResult,_.g(S,P59(a),16);case 16:U=S.yieldResult,W.onAddCommand&&a.JSC$16039_commandHandler.resolveCommand(W.onAddCommand,{form:{preferredFormatType:v,
offlineWebClientEligibility:X,lastOfflineQualitySettingsSavedMs:U.toString()}}),S.jumpTo(0)}})};
lC0=function(a,W,w){var Z,N,B,I,X,v,U,O,S,T,p,h,L,F;_.P(function(x){switch(x.nextAddress){case 1:return _.g(x,IKd(a,(Z=W)==null?void 0:Z.actionParams),2);case 2:N=W.videoId;if(!N)return x.return();if(W.action==="ACTION_REMOVE_WITH_PROMPT"){var G=a.JSC$16039_commandHandler,V=G.resolveCommand,d=_.LF("INNERTUBE_CLIENT_NAME");var ZD=d==="WEB_REMIX"?_.P_("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.P_("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var aC=d==="WEB_REMIX"?[_.P_("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];d=d==="WEB_REMIX"?_.P_("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.P_("DELETE",void 0,"Delete");var Bv=_.P_("CANCEL",void 0,"Cancel");ZD=omD(ZD,aC,d,Bv,{signal:"DELETE_DOWNLOAD",targetId:N});V.call(G,{openPopupAction:ZD});return x.return()}if(W.action==="ACTION_ADD")return((T=W.actionParams)==null?0:T.formatType)?_.g(x,N2n(a,N,W.actionParams.formatType,(F=W.actionParams)==null?void 0:F.settingsAction,w),0):_.g(x,a.offlineWebClientEligibility,
23);if(W.action==="ACTION_RETRY")return _.g(x,X$d(a),19);if(W.action==="ACTION_PAUSE")return _.g(x,a.pauseVideoDownload(N),0);if(W.action==="ACTION_RESUME")return _.g(x,a.resumeVideoDownload(N),0);if(W.action!=="ACTION_REMOVE"){x.jumpTo(0);break}return _.g(x,ZAX(a,N),13);case 13:return B=x.yieldResult,a.previousDownloadStateForVideo[N]=(I=B)!=null?I:"DOWNLOAD_STATE_UNKNOWN",_.g(x,$Xa(a,N,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(a.previousDownloadStateForVideo[N]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
a.previousDownloadStateForVideo[N]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){x.jumpTo(15);break}return _.g(x,a.pauseVideoDownload(N),15);case 15:G=_.P_("DELETED_VIDEO",void 0,"Video deleted from downloads.");V=_.P_("UNDO_ACTION",void 0,"Undo");ZD=_.P_("CLOSE",void 0,"Close");X={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.zG(G),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.zG(V),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:N}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:G+" "+V}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:N}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:ZD}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};a.JSC$16039_commandHandler.resolveCommand(X);
x.jumpTo(0);break;case 19:v=x.yieldResult;v==="UNKNOWN_FORMAT_TYPE"&&(v="SD");U="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((O=W.actionParams)==null?0:O.formatType)v=W.actionParams.formatType,U=(S=W.actionParams)==null?void 0:S.settingsAction;return _.g(x,tL9(a,N,v,U,w),20);case 20:return x.return();case 23:return p=x.yieldResult,_.g(x,X$d(a),24);case 24:return h=x.yieldResult,_.g(x,P59(a),25);case 25:L=x.yieldResult,W.onAddCommand&&a.JSC$16039_commandHandler.resolveCommand(W.onAddCommand,
{form:{preferredFormatType:h,offlineWebClientEligibility:p,lastOfflineQualitySettingsSavedMs:L.toString()}}),x.jumpTo(0)}})};
v_a=function(a,W){var w,Z,N,B,I,X,v;return _.P(function(U){if(U.nextAddress==1)return _.g(U,a.JSC$16039_persistentStorePromiseAccessor(),2);w=U.yieldResult;if(!w)return _.jJ(new _.Uw("PES is undefined")),U.return();if((Z=W)==null||!Z.settingItemId)return U.return();N=W;B=N.settingItemId;I=N.boolValue;X=_.Nn(B,"settingEntity");v={key:X,settingOptionValue:{boolValue:I}};return _.g(U,Uw0(w,v),0)})};
g_X=function(a,W){var w,Z,N,B,I,X,v;return _.P(function(U){switch(U.nextAddress){case 1:return _.g(U,a.JSC$16039_prefStorage,2);case 2:return w=U.yieldResult,Z=_.gS(),_.g(U,a.JSC$16039_persistentStorePromiseAccessor(),3);case 3:return N=U.yieldResult,w?N?_.g(U,w.get("sdois"),4):(_.jJ(new _.Uw("PES is undefined")),U.return()):(_.jJ(new _.Uw("prefStorage is undefined")),U.return());case 4:B=U.yieldResult;X=(I=W)==null?void 0:I.boolValue;X===void 0||_.r("kevlar_set_sd_enabled_flag_killswitch")||_.oV(0,
197,!0);B===void 0&&X===void 0&&(X=!1);if(X===void 0){U.jumpTo(0);break}return _.g(U,w.set("sdois",X),6);case 6:return _.r("kevlar_set_sd_enabled_flag_killswitch")||(_.oV(0,196,X),Z.save()),v={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:X},_.g(U,v_a(a,v),0)}})};
o_X=function(a,W,w){var Z,N,B,I,X;return _.P(function(v){switch(v.nextAddress){case 1:return _.g(v,B2k(a),2);case 2:return Z=v.yieldResult,_.g(v,g_X(a,w),3);case 3:return _.g(v,B2k(a),4);case 4:return N=v.yieldResult,B=N!==Z,_.g(v,lKf(a),5);case 5:I=v.yieldResult&&!_.r("kevlar_modern_downloads_page");if((X=!N&&!I)||B)return _.g(v,W.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);v.jumpTo(0)}})};
N$I=function(){var a=_.K().resolve(_.mw),W;_.P(function(w){switch(w.nextAddress){case 1:return _.g(w,a.JSC$16039_playerApiPromise,2);case 2:W=w.yieldResult;if(!_.r("kevlar_force_refresh_smart_downloads")){w.jumpTo(3);break}return _.g(w,W.refreshAllStaleEntities(0),4);case 4:return w.return();case 3:return _.g(w,W.refreshAllStaleEntities(),5);case 5:return _.g(w,o_X(a,W),0)}})};
vQE=function(a,W){var w,Z;_.P(function(N){switch(N.nextAddress){case 1:return _.g(N,a.JSC$16039_playerApiPromise,2);case 2:w=N.yieldResult;switch((Z=W)==null?void 0:Z.settingItemId){case "SMART_DOWNLOADS_ENABLED":return N.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return N.jumpTo(4)}N.jumpTo(0);break;case 3:return _.g(N,o_X(a,w,W),6);case 6:N.jumpTo(0);break;case 4:return _.g(N,v_a(a,W),7);case 7:N.jumpTo(0)}})};
kwI=function(a,W){var w,Z,N;return _.P(function(B){if(B.nextAddress==1)return _.g(B,a.JSC$16039_persistentStorePromiseAccessor(),2);if(B.nextAddress!=3){w=B.yieldResult;if(!w)return _.jJ(new _.Uw("PES is undefined")),B.return(!1);if(!W)return B.return(!1);Z=_.Nn(W,"mainVideoEntity");return _.g(B,Oti(w,Z,"mainVideoEntity"),3)}N=B.yieldResult;return B.return(N!==void 0)})};
oQd=function(a){var W=_.K().resolve(_.mw),w,Z,N,B,I,X,v,U,O,S,T;_.P(function(p){switch(p.nextAddress){case 1:return _.g(p,W.JSC$16039_playerApiPromise,2);case 2:w=p.yieldResult;N=(Z=a)==null?void 0:Z.actions;if(!N)return p.return();B=_.l(N);I=B.next();case 3:if(I.done){p.jumpTo(0);break}X=I.value;U=v=void 0;if(!(((v=X)==null?0:v.entityKey)&&((U=X)==null?0:U.actionType))){p.jumpTo(4);break}O=_.WJ(X.entityKey);S=O.entityId;T=O.entityType;return _.g(p,w.queueOfflineAction(S,T,X.actionType),4);case 4:I=
B.next(),p.jumpTo(3)}})};
UX2=function(a,W){var w,Z,N,B,I;return _.P(function(X){if(X.nextAddress==1)return _.g(X,a.JSC$16039_prefStorage,2);if(X.nextAddress!=3)return(w=X.yieldResult)?_.g(X,w.get("psi"),3):X.return();Z=X.yieldResult;I={isPaused:W,lastSyncTimestamp:(B=(N=Z)==null?void 0:N.lastSyncTimestamp)!=null?B:"0"};return _.g(X,w.set("psi",I),0)})};
Opi=function(a){var W=_.K().resolve(_.mw),w,Z,N,B,I,X,v,U;return _.P(function(O){switch(O.nextAddress){case 1:return _.g(O,W.JSC$16039_playerApiPromise,2);case 2:w=O.yieldResult;N=((Z=a)==null?void 0:Z.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((X=a)==null?void 0:X.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":B="!*$_ALL_ENTITIES_!*$";I="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return O.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return O.jumpTo(4)}O.jumpTo(5);break;case 3:return _.g(O,UX2(W,N),6);case 6:O.jumpTo(5);break;case 4:return _.g(O,kwI(W,(v=a)==null?void 0:v.videoId),7);case 7:O.yieldResult&&(B=(U=a)==null?void 0:U.videoId,I="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");O.jumpTo(5);break;case 5:if(B&&I)return _.g(O,w.queueOfflineAction(B,"videoPlaybackPositionEntity",I),0);O.jumpTo(0)}})};
OAk=function(a,W){var w;W!==1||((w=a.currentPersistentToast)==null?0:w.isOpened())?a.openToast():a.currentPersistentToast=void 0};
Sba=function(){var a,W,w,Z;return _.P(function(N){if(N.nextAddress==1)return a=navigator,(W=a.storage)!=null&&W.persisted?_.g(N,(w=a.storage)==null?void 0:w.persisted(),2):N.return("PERSISTED_STATE_NOT_SUPPORTED");Z=N.yieldResult;return N.return(Z?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
Ybd=function(){var a,W,w,Z;return _.P(function(N){if(N.nextAddress==1)return a=navigator,(W=a.storage)!=null&&W.persist?_.g(N,(w=a.storage)==null?void 0:w.persist(),2):N.return("PERSISTED_STATE_NOT_SUPPORTED");Z=N.yieldResult;return N.return(Z?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
T2f=function(){var a,W;return _.P(function(w){switch(w.nextAddress){case 1:return a="PERSISTED_STATE_NOT_SUPPORTED",_.tq(w,2),_.g(w,Sba(),4);case 4:a=w.yieldResult;if(a!=="PERSISTED_STATE_NOT_GRANTED"){w.jumpTo(5);break}return _.g(w,Ybd(),6);case 6:a=w.yieldResult;case 5:_.qY(w,3);break;case 2:W=_.Pb(w),W instanceof Error&&_.eJ(W);case 3:return _.ia("persistentStorageStateChecked",{persistedState:a}),w.return(a)}})};
Kdd=function(a,W){var w=[],Z=!1;W=_.l(W);for(var N=W.next();!N.done;N=W.next()){N=a.moduleRegistry[N.value];var B=void 0,I=void 0;((B=N)==null?0:B.isFetching)&&((I=N)==null?0:I.resolver)?(w.push(N.resolver.promise),Z=!0):(N=new _.wi,N.resolve(void 0),w.push(N.promise))}return Z?Promise.all(w):void 0};
p$0=function(a,W,w){w=w===void 0?{}:w;var Z=a.defaultViewTransitionOptions,N=W.map(function(I){return I.beforeTransition}),B=W.map(function(I){return I.afterTransition});
return Object.assign({},Z,w,{beforeTransition:function(){var I;(I=Z.beforeTransition)==null||I.call(Z);var X,v;(v=(X=w).beforeTransition)==null||v.call(X);I=_.l(N);for(X=I.next();!X.done;X=I.next())X=X.value,X()},
afterTransition:function(){var I;(I=Z.afterTransition)==null||I.call(Z);var X,v;(v=(X=w).afterTransition)==null||v.call(X);I=_.l(B);for(X=I.next();!X.done;X=I.next())X=X.value,X()}})};
rui=function(a,W,w){var Z,N,B,I,X,v,U;_.P(function(O){if(a.config.disableAllTransitions)return O.return(W());if((Z=w)==null||!Z.transitionName)return O.return(_.MnX(W,(N=w)==null?void 0:N.viewTransitionOptions));B=w;I=B.transitionName;X=B.viewTransitionOptions;v=a.config.transitionConfigs.get(I);if(!v)return O.return(W());var S;U=(S=a.transitionTasksMap.get(I))!=null?S:[];return O.return(_.MnX(W,p$0(v,U,X)))})};
mN=function(a,W,w){a.transitionTasksMap.has(W)?a.transitionTasksMap.get(W).push(w):(a=new _.Uw("Transition task registered for unknown transition name",W),_.eJ(a))};
Aun=function(a,W,w){if(a.isInitialized()){var Z=E7(w),N=Z==="watch";Z=Z==="shorts";var B=E7(W)==="watch";if(N)B||(a.backgroundPageData=W),a.watchPipMode&&B||a.deactivate(w.endpoint);else if(Z){if(E7(W)!=="shorts"){var I;(I=a.getPlayerElement())==null||I.pause()}}else B&&!a.watchPipMode&&(UEI(W,w)?(a.watchWhileMode&&_.q00(a,!1),_.jJ2(a,W)):a.isMiniplayerActive()&&a.watchWhileMode&&a.deactivate());B&&_.x_E(a);a.shortsPipMode&&!Z&&(window.focus(),a.deactivate());if(a.pictureInPictureEnabled())if(Z&&
a.shortsPipEnabled||N&&a.watchPipEnabled)_.Osm(a.handleMediaSessionPipActivation);else if(!a.isMiniplayerActive()&&(a.shortsPipEnabled||a.watchPipEnabled)&&window.documentPictureInPicture&&_.L7()&&_.Xve("Chromium")>=120){a=_.Uux().mediaSession;try{a.setActionHandler("enterpictureinpicture",null)}catch(X){}}}};
hn0=function(a,W){var w,Z;_.P(function(N){if(N.nextAddress==1){if(!a||!a.navigationEndpoint)return N.return();_.vE().lockupActivation=!0;var B;W?B=_.b8(_.P_("QUEUE",void 0,"Queue")):B=a.longBylineText;Z=(w=B)&&a.title?{miniplayerTitle:a.title,miniplayerSubtitle:w,playlistData:null}:void 0;return _.g(N,_.Cse(_.K().resolve(_.bV),a.navigationEndpoint,!0,Z),2)}_.vE().userActivation=!0;_.Xd(N)})};
vpk=function(a,W){var w,Z,N,B,I,X;_.P(function(v){if(v.nextAddress==1){w=_.A(W,_.DSy);if(!w||!w.listId)return v.return();a.index=w.index||a.index||0;Z=a.response&&a.response.playingVideoId||void 0;return _.g(v,_.vlT(a.JSC$10713_playlistNetworkManager,w.listId,a.index,Z),2)}N=v.yieldResult;if(!N)return v.return();B=N.playlistId;I=N.playlistPanelRenderer;!a.queueProxy&&B&&I&&B.startsWith("TLPQ")&&(a.queueProxy=new _.ew(a.JSC$10713_playlistNetworkManager,B,a.setPlaylistData.bind(a),a.clearQueue.bind(a),
_.oHv(I),a.storage));if(w.openMiniplayer&&(X=_.kRU(I))&&!a.pageManager.isOnWatch()){var U=X,O=w.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";a.isMiniplayerActive()?a.openToast(U):hn0(U,O)}a.setPlaylistData(B,I,N.autoplayRenderer);_.Xd(v)})};
IbK=function(a,W){var w=_.qJ();w.index===void 0&&(w.index=0);w.temporaryItems.push.apply(w.temporaryItems,_.K8(a));if((W.videoId||W.videoIds)&&w.index!==void 0&&W.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!w.queueProxy){var Z=[];if(w.response){var N=_.K().resolve(_.bV).isMiniplayerActive();if(w.response.playlistPanelRenderer&&w.response.playlistId&&!w.response.playlistId.startsWith("TLPQ")){if(w.pageManager.isOnWatch()||N)Z=_.oHv(w.response.playlistPanelRenderer)}else w.response.playingVideoId&&
!W.openMiniplayer?Z.push(w.response.playingVideoId):N&&w.response.playingVideoId&&W.openMiniplayer&&Z.push(w.response.playingVideoId)}w.queueProxy=new _.ew(w.JSC$10713_playlistNetworkManager,"",w.setPlaylistData.bind(w),w.clearQueue.bind(w),Z,w.storage);w.queueProxy.JSC$10659_setCurrentIndex(w.index)}w.queueProxy.addVideos(W.videoIds||[W.videoId],W)}TJ0(w,a);w.response&&_.QI(w,_.xV(w,w.response.autoplayRenderer));w.pageManager.isOnWatch()?w.isMiniplayerActive()&&w.openToast(a[0]):(a=a[0],W=W.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",w.isMiniplayerActive()?w.openToast(a):hn0(a,W))};
iAI=function(a){var W=_.UI(a);if(W=="object"||W=="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);W=W=="array"?[]:{};for(var w in a)W[w]=iAI(a[w]);return W}return a};
Ps=function(a,W){return _.V9m(_.Oy(a,W,void 0,_.Uy))};
XP=function(a,W){return _.hz(_.Oy(a,W,void 0,_.Uy))};
vs=function(a,W){return _.oR7(_.Oy(a,W,void 0,_.Uy))};
gd=function(a,W){return _.Oy(a,W,void 0,_.Uy,_.v2)};
cu9=_.f_(function(a,W,w){if(a.nextWireType_!==0)return!1;_.dC(W,w,_.bB(a.decoder_,_.Ni));return!0},_.yH,_.G1);
enz=_.f_(function(a,W,w,Z){if(a.nextWireType_!==0)return!1;_.rk(W,w,Z,_.bB(a.decoder_,_.Ni));return!0},_.yH,_.G1);
n_k=_.f_(function(a,W,w){if(a.nextWireType_!==1)return!1;var Z=a.decoder_;a=_.Co(Z);Z=_.Co(Z);a=_.wf(a,Z);_.dC(W,w,a);return!0},_.fam,_.I5I);
jti=_.f_(function(a,W,w){if(a.nextWireType_!==5)return!1;_.dC(W,w,_.Co(a.decoder_));return!0},function(a,W,w){W=_.c2(W);
W!=null&&(_.mZ(a,w,5),_.H9(a.encoder_,W))},_.l59);
Ld9=_.f_(function(a,W,w){if(a.nextWireType_!==0)return!1;a=_.upI(a.decoder_);_.dC(W,w,a===!1?void 0:a);return!0},_.di9,_.NuC);
Ju9=_.f_(function(a,W,w){if(a.nextWireType_!==2)return!1;a=_.mVU(a);_.dC(W,w,a===""?void 0:a);return!0},_.V09,_.t19);
Fd2=_.f_(function(a,W,w){if(a.nextWireType_!==2)return!1;a=_.VRF(a);_.dC(W,w,a===_.uA()?void 0:a);return!0},_.yz8,_.vN7);
ML0=_.QES(function(a,W,w){if(a.nextWireType_!==0&&a.nextWireType_!==2)return!1;W=_.c9(W,W[_.n6]|0,w);a.nextWireType_==2?_.z0H(a,VKf,W):W.push(_.sy(a.decoder_));return!0},function(a,W,w){W=_.qIS(_.hz,W,!0);
if(W!=null&&W.length){w=_.gd7(a,w);for(var Z=0;Z<W.length;Z++)_.C9e(a.encoder_,W[Z]);_.odv(a,w)}},_.gNE);
Rnz=_.f_(function(a,W,w){if(a.nextWireType_!==0)return!1;a=_.sy(a.decoder_);_.dC(W,w,a===0?void 0:a);return!0},_.Edm,_.gNE);
qbE=_.f_(function(a,W,w,Z){if(a.nextWireType_!==0)return!1;_.rk(W,w,Z,_.sy(a.decoder_));return!0},_.Edm,_.gNE);
_.uq=function(a){this.privateDoNotAccessOrElseWrappedStyleSheet=a};
_.uq.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var TKI=function(a,W){return new _.r3(a.x+W.x,a.y+W.y)},Qt0=function(a){return a.previousElementSibling!==void 0?a.previousElementSibling:_.SIl(a.previousSibling,!1)},xXE=function(a,W){var w=[];
for(W=W||0;W<a.length;W+=2)_.BCE(a[W],a[W+1],w);return w.join("&")},bAE=function(a,W){var w=arguments.length==2?xXE(arguments[1],0):xXE(arguments,1);
return _.$o6(a,w)},st9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(st9,_.QH);st9.prototype.getValue=function(){var a=_.Oy(this,2);if(Array.isArray(a)||a instanceof _.QH)throw Error("aa");return _.Ko(this,2)};
var bSn=function(){var a=_.yb();this.JSC$7821_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.WM("channel_type"))};
bSn.prototype.increment=function(a){this.JSC$7821_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",a)};
var sm9=function(){var a=_.yb();this.JSC$7824_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.WM("channel_type"))};
sm9.prototype.increment=function(a){this.JSC$7824_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",a)};
var C60=function(){var a=_.yb();this.JSC$7827_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.WM("channel_type"))};
C60.prototype.increment=function(a){this.JSC$7827_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",a)};
var utd=function(){var a=_.yb();this.JSC$7830_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
utd.prototype.increment=function(){this.JSC$7830_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var GqD=function(){var a=_.yb();this.JSC$7833_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.WM("channel_type"),_.WM("error_type"))};
GqD.prototype.increment=function(a,W){this.JSC$7833_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",a,W)};
var DMf=function(){var a=_.yb();this.JSC$7836_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
DMf.prototype.increment=function(){this.JSC$7836_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var fGn=function(){var a=_.yb();this.JSC$7839_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
fGn.prototype.increment=function(){this.JSC$7839_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var qN2=function(){var a=_.yb();this.JSC$7845_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
qN2.prototype.increment=function(){this.JSC$7845_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var uqK=function(a){return a.getCount&&typeof a.getCount=="function"?a.getCount():_.wT(a)||typeof a==="string"?a.length:_.T5.getCount(a)},C5f=function(a,W){if(typeof a.every=="function")return a.every(W,void 0);
if(_.wT(a)||typeof a==="string")return Array.prototype.every.call(a,W,void 0);for(var w=_.ZaT(a),Z=_.zi(a),N=Z.length,B=0;B<N;B++)if(!W.call(void 0,Z[B],w&&w[B],a))return!1;return!0},Gw0=function(a,W,w,Z){var N=new _.CS(null);
a&&_.H5(N,a);W&&_.yc(N,W);w&&_.El(N,w);Z&&_.aZ(N,Z);return N},DXd=function(){var a=_.jg&&_.US(_.k4R,10)>=0,W;
if(W=_.wUe)W=_.US(_.oqE,10)>=0;var w=_.gk&&_.US(_.k4R,85)>=0;return _.IY||a||W||w},fKi=function(a){var W=_.sEl(a);
return W&&DXd()?-a.scrollLeft:W&&_.jk(a,"overflowX")!="visible"?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft},dXD=function(a,W){W=Math.max(W,0);
_.sEl(a)?DXd()?a.scrollLeft=-W:a.scrollLeft=a.scrollWidth-W-a.clientWidth:a.scrollLeft=W},LQd=0,qxX=!1;
Wc.prototype.set=function(a){this.relativeTimeStart_=a};
Wc.prototype.reset=function(){this.set(_.ZL())};
Wc.prototype.get=function(){return this.relativeTimeStart_};
var mX0=null,VLD=function(){mX0||(mX0=new Wc)},znK=function(){mX0||(mX0=new Wc)};
_.NT(znK,VLD);_.t=xEI.prototype;_.t.JSC$9168_buffer_="";_.t.set=function(a){this.JSC$9168_buffer_=""+a};
_.t.append=function(a,W,w){this.JSC$9168_buffer_+=String(a);if(W!=null)for(var Z=1;Z<arguments.length;Z++)this.JSC$9168_buffer_+=arguments[Z];return this};
_.t.clear=function(){this.JSC$9168_buffer_=""};
_.t.getLength=function(){return this.JSC$9168_buffer_.length};
_.t.toString=function(){return this.JSC$9168_buffer_};
var HAK=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_=wXD;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]}};
HAK.prototype.format=function(a){return yuz(this,a)};
var yuz=function(a,W){var w=W.length;switch(w){case 0:return"";case 1:return String(W[0]);case 2:return a.listTwoPattern_.replace("{0}",String(W[0])).replace("{1}",String(W[1]))}for(var Z=a.listStartPattern_.replace("{0}",String(W[0])).replace("{1}",String(W[1])),N=2;N<w-1;++N)Z=a.listMiddlePattern_.replace("{0}",Z).replace("{1}",String(W[N]));return a.listEndPattern_.replace("{0}",Z).replace("{1}",String(W[w-1]))},W8f=function(){var a={style:1};
this.style_=(a==null?void 0:a.style)||0;this.durationSymbols_=_.s46||_.z5R},E_0=function(a,W){switch(W){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}},oS=function(a,W,w){a:{w=E_0(a,w);
switch(a.style_){case 1:if(w.LONG!=void 0){a=w.LONG;break a}case 2:if(w.NARROW!=void 0){a=w.NARROW;break a}default:a=w.SHORT;break a}a=void 0}return a?(new _.SNA("{DURATION_VALUE,plural,"+a+"}")).format({DURATION_VALUE:W}):""};
W8f.prototype.format=function(a){var W=[],w=a.years,Z=a.months,N=a.weeks,B=a.days,I=a.hours,X=a.minutes;a=a.seconds;w!=null&&W.push(oS(this,w,"years"));Z!=null&&W.push(oS(this,Z,"months"));N!=null&&W.push(oS(this,N,"weeks"));B!=null&&W.push(oS(this,B,"days"));I!=null&&W.push(oS(this,I,"hours"));X!=null&&W.push(oS(this,X,"minutes"));a!=null&&W.push(oS(this,a,"seconds"));return(new HAK).format(W)};
var aBn=!1,fVD=function(a){_.Wv.call(this,a.message||a.description||a.name);this.isMissing=a instanceof wN;this.isTimeout=a instanceof _.Gt&&a.errorCode=="net.timeout";this.isCanceled=a instanceof _.V0};
_.c(fVD,_.Wv);fVD.prototype.name="BiscottiError";var wN=function(){_.Wv.call(this,"Biscotti ID is missing from server")};
_.c(wN,_.Wv);wN.prototype.name="BiscottiMissingError";var Zw=null,abn=function(){try{var a=_.RT("yt.ads.biscotti.getId_");return a?a():AF2()}catch(W){return _.od(W)}},a8d,W5a=function(a){return _.E_({type:"SET_GUIDE_IS_EXPANDED",
payload:a})},we0=function(a){return _.E_({type:"SET_ONLINE_STATUS",
payload:a})},ZjX=function(a,W){return _.E_({type:"SET_TRANSCRIPTION_STATE",
payload:{high:a,low:W}})},NPd=function(a){return _.E_({type:"SET_OVERLAY_STATE",
payload:a})},t4D=0,$sE=function(a,W,w){var Z=this;
this.priority=W;this.delay=w;this.jobId=0;this.completionCallback=_.S5;this.wrappedJob=function(){a();Z.completionCallback()};
this.id=++t4D};
$sE.prototype.enqueue=function(a){this.completionCallback=a;this.jobId=_.hF.addJob(this.wrappedJob,this.priority,this.delay)};
var kM=function(){_.W1.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.c(kM,_.W1);kM.prototype.addJob=function(a,W,w){a=new $sE(a,W,w);this.taskIdToTask.set(a.id,a);this.isActive?BPn(this,a):this.suspendedTasks.add(a);return a.id};
var BPn=function(a,W){a.scheduledTasks.add(W);W.enqueue(function(){a.scheduledTasks.delete(W)})};
kM.prototype.cancelJob=function(a){(a=this.taskIdToTask.get(a))&&(this.scheduledTasks.delete(a)?_.hF.cancelJob(a.jobId):this.suspendedTasks.delete(a))};
kM.prototype.pause=function(){var a=this;this.isActive=!1;this.scheduledTasks.forEach(function(W){_.hF.cancelJob(W.jobId);a.suspendedTasks.add(W)});
this.scheduledTasks.clear()};
kM.prototype.start=function(){var a=this;this.isActive=!0;this.suspendedTasks.forEach(function(W){BPn(a,W)});
this.suspendedTasks.clear()};
kM.prototype.reset=function(){this.scheduledTasks.forEach(function(a){_.hF.cancelJob(a.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var UX=function(a,W){this.JSC$10843_networkService_=a;this.pageRequestPromise=W};
UX.prototype.fetchData=function(a){lBf(this,this.JSC$10843_networkService_.fetchData(a))};
UX.prototype.postData=function(a,W){lBf(this,this.JSC$10843_networkService_.postData(a,W))};
UX.prototype.requestDataForServiceEndpoint=function(a,W){lBf(this,this.JSC$10843_networkService_.requestDataForServiceEndpoint(a,W))};
var lBf=function(a,W){W.then(a.pageRequestPromise.onSuccess,a.pageRequestPromise.onFailure,a.pageRequestPromise)};
UX.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var OX=function(a){this.buildNetworkRequest_=a;this.pendingRequests_=new Set};
OX.prototype.reset=function(){this.pendingRequests_.forEach(function(a){a.cancel()});
this.pendingRequests_.clear()};
OX.prototype.fetchData=function(a){var W=IBi(this);W.fetchData(a);return W.pageRequestPromise};
OX.prototype.postData=function(a,W){var w=IBi(this);w.postData(a,W);return w.pageRequestPromise};
OX.prototype.requestDataForServiceEndpoint=function(a,W){var w=IBi(this);w.requestDataForServiceEndpoint(a,W);return w.pageRequestPromise};
var IBi=function(a){var W=a.buildNetworkRequest_();a.pendingRequests_.add(W);var w=function(){a.pendingRequests_.delete(W)};
W.pageRequestPromise.then(w,w);return W},PKd=function(a){var W=new kM;
this.JSC$10850_networkService_=a;this.JSC$10850_taskManager_=W;this.JSC$10850_networkManager_=new OX(this.networkRequestFactory_.bind(this))};
_.t=PKd.prototype;_.t.networkRequestFactory_=function(){return new UX(this.JSC$10850_networkService_,new _.yI(this.JSC$10850_taskManager_))};
_.t.reset=function(){this.JSC$10850_taskManager_.reset();this.JSC$10850_networkManager_.reset()};
_.t.start=function(){this.JSC$10850_taskManager_.start()};
_.t.pause=function(){this.JSC$10850_taskManager_.pause()};
_.t.getTaskManager=function(){return this.JSC$10850_taskManager_};
_.t.getNetworkManager=function(){return this.JSC$10850_networkManager_};
var $dd=null,I8k=[],Nz=0,$F=0,tj=null,Xek=function(){var a=(0,_.wk6)();a&&NJz(a,a.mechanism.__iterator__(!0))},lv=function(a){this.token=a};
lv.getInstance=function(){var a;return _.P(function(W){if(W.nextAddress==1)return _.g(W,_.f3(),2);a=W.yieldResult;if(!a)return W.return();lv.instance||(lv.instance=new lv(a));return W.return(lv.instance)})};
var kPf=function(a){var W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,vjI(a.token),2);W=w.yieldResult;return w.return(W.clear("resource-manifest-assets"))})},Bc=function(a){this.token=a};
Bc.getInstance=function(){var a;return _.P(function(W){if(W.nextAddress==1)return _.g(W,_.f3(),2);a=W.yieldResult;if(!a)return W.return();Bc.instance||(Bc.instance=new Bc(a));return W.return(Bc.instance)})};
var gja=function(a){var W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,vjI(a.token),2);W=w.yieldResult;return _.g(w,W.clear("auth"),0)})},vDa=!1,Iq=null,eyk=void 0,Qgi=!1,gD9=function(a){_.Wv.call(this,a)};
_.c(gD9,_.HhR);var jVa=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?parseInt(a[1],10):0},oD0=function(a){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+a)!=-1||document.currentScript.src.indexOf("&"+a)!=-1)},k9z=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},ROa=function(a){a.length?Usn(a.shift(),function(){ROa(a)}):JkE()},QVX=function(a){return"chrome-extension://"+a+"/cast_sender.js"},Usn=function(a,
W,w){var Z=document.createElement("script");
Z.onerror=W;w&&(Z.onload=w);_.Q$(Z,_.TO(a));(document.head||document.documentElement).appendChild(Z)},Ojz=function(){var a=jVa(),W=[];
if(a>1){var w=a-1;W.push("//www.gstatic.com/eureka/clank/"+a+"/cast_sender.js");W.push("//www.gstatic.com/eureka/clank/"+w+"/cast_sender.js")}return W},JkE=function(){var a=k9z();
a&&a(!1,"No cast extension found")},MWI=function(){if(SBd){var a=2,W=k9z(),w=function(){a--;
a==0&&W&&W(!0)};
window.__onGCastApiAvailable=w;Usn("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",JkE,w)}},LXf=function(){MWI();
var a=Ojz();a.push("//www.gstatic.com/eureka/clank/cast_sender.js");ROa(a)},FXd=function(){MWI();
var a=Ojz();a.push.apply(a,_.K8(q_d.map(QVX)));a.push("//www.gstatic.com/eureka/clank/cast_sender.js");ROa(a)},SBd=oD0("loadCastFramework")||oD0("loadCastApplicationFramework"),q_d=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var YBi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(YBi,_.QH);var TP0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(TP0,_.QH);var K50=function(){var a=new TP0;return _.QZ(a,1,3)};var S$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(S$,_.QH);var h3k=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(h3k,_.QH);var pe0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(pe0,_.QH);pe0.prototype.getToken=function(){return _.Lo(this,1)};
pe0.prototype.setToken=function(a){return _.aI(this,1,a)};
var rf9=function(a){return _.Tk(a,3,_.b9,_.Hh())},Afn=function(a){return _.Tk(a,6,_.b9,_.Hh())};var YM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(YM,_.QH);YM.prototype.getToken=function(){return _.Hi(this,pe0,2)};
YM.prototype.setToken=function(a){return _.ZP(this,2,a)};
YM.prototype.getName=function(){return _.Lo(this,6)};
var rxd=_.WP(YM);var Ax0=function(a,W,w){this.requestMessage=a;this.methodDescriptor=W;this.metadata=w};
Ax0.prototype.getMetadata=function(){return this.metadata};var hgn=function(a,W){W=W===void 0?{}:W;this.responseMessage=a;this.metadata=W;this.status=null};
hgn.prototype.getMetadata=function(){return this.metadata};
hgn.prototype.getStatus=function(){return this.status};var Te=function(a,W,w,Z,N){this.name=a;this.methodType="unary";this.requestType=W;this.responseType=w;this.requestSerializeFn=Z;this.responseDeserializeFn=N},ijE=function(a,W,w){w=w===void 0?{}:w;
return new Ax0(W,a,w)};
Te.prototype.getName=function(){return this.name};var Kh=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Kh,_.QH);Kh.prototype.setHeader=function(a){return _.ZP(this,1,a)};
Kh.prototype.hasHeader=function(){return _.SF(this,S$,1)};var cxD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(cxD,_.QH);var ega=new Te("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Kh,cxD,function(a){return a.serialize()},_.WP(cxD));var ph=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(ph,_.QH);ph.prototype.setHeader=function(a){return _.ZP(this,1,a)};
ph.prototype.hasHeader=function(){return _.SF(this,S$,1)};var nDk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(nDk,_.QH);var jLk=new Te("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",ph,nDk,function(a){return a.serialize()},_.WP(nDk));var rd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(rd,_.QH);rd.prototype.setHeader=function(a){return _.ZP(this,1,a)};
rd.prototype.hasHeader=function(){return _.SF(this,S$,1)};var L5n=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(L5n,_.QH);L5n.prototype.getLink=function(){return _.Hi(this,YM,1)};var Jx0=new Te("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",rd,L5n,function(a){return a.serialize()},_.WP(L5n));var Ar=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Ar,_.QH);Ar.prototype.setHeader=function(a){return _.ZP(this,1,a)};
Ar.prototype.hasHeader=function(){return _.SF(this,S$,1)};var F5z=new Te("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Ar,YM,function(a){return a.serialize()},rxd);var M4n=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(M4n,_.QH);var Rg0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Rg0,_.QH);Rg0.prototype.getUrl=function(){return _.Lo(this,2)};
Rg0.prototype.setUrl=function(a){return _.aI(this,2,a)};var qBz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(qBz,_.QH);var QLz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(QLz,_.QH);var xsX=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(xsX,_.QH);var qfn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(qfn,_.QH);var R30=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(R30,_.QH);var bjf=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(bjf,_.QH);var GcE=_.WP(bjf);var sL0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(sL0,_.QH);var hr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(hr,_.QH);hr.prototype.setHeader=function(a){return _.ZP(this,1,a)};
hr.prototype.hasHeader=function(){return _.SF(this,S$,1)};
hr.prototype.getCompletionUrl=function(){return _.Lo(this,6)};
hr.prototype.getDeviceId=function(){return _.Lo(this,11)};var u7K=new Te("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",hr,bjf,function(a){return a.serialize()},GcE);var CK0=new Set(["SAPISIDHASH","APISIDHASH"]);var G9I=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(G9I,_.QH);G9I.prototype.getMessage=function(){return _.Lo(this,2)};
var Dsk=_.WP(G9I);var iR=function(a,W){this.xhrNodeReadableStream_=a.nodeReadableStream;this.grpcResponseDeserializeFn_=W;this.JSC$16958_xhr_=a.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16958_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&fB0(this)},yxX=function(a,W){var w=new dsk;
_.vX(a.JSC$16958_xhr_,"complete",function(){if(a.JSC$16958_xhr_.isSuccess()){var Z=a.JSC$16958_xhr_.getResponseText();var N;if(N=W)N=a.JSC$16958_xhr_,N.JSC$7703_xhr_&&N.isComplete()?(N=N.JSC$7703_xhr_.getResponseHeader("Content-Type"),N=N===null?void 0:N):N=void 0,N=N==="text/plain";if(N){if(!atob)throw Error("Ij");Z=atob(Z)}try{var B=a.grpcResponseDeserializeFn_(Z)}catch(X){cs(a,PFX(new _.ig(13,"Error when deserializing response data; error: "+X+(", response: "+Z)),w));return}Z=_.W$F(a.JSC$16958_xhr_.getStatus());
ms2(a,V4i(a));Z==0?zgd(a,B):cs(a,PFX(new _.ig(Z,"Xhr succeeded but the status code is not 200"),w))}else{Z=a.JSC$16958_xhr_.getResponseText();B=V4i(a);if(Z){var I=Hjz(a,Z);Z=I.code;N=I.details;I=I.metadata}else Z=2,N="Rpc failed due to xhr error. uri: "+String(a.JSC$16958_xhr_.JSC$7703_lastUri_)+", error code: "+a.JSC$16958_xhr_.JSC$7703_lastErrorCode_+", error: "+a.JSC$16958_xhr_.getLastError(),I=B;ms2(a,B);cs(a,PFX(new _.ig(Z,N,I),w))}})},fB0=function(a){a.xhrNodeReadableStream_.on("data",function(W){if("1"in
W){var w=W["1"];
try{var Z=a.grpcResponseDeserializeFn_(w)}catch(N){cs(a,new _.ig(13,"Error when deserializing response data; error: "+N+(", response: "+w)))}Z&&zgd(a,Z)}if("2"in W)for(W=Hjz(a,W["2"]),w=0;w<a.onStatusCallbacks_.length;w++)a.onStatusCallbacks_[w](W)});
a.xhrNodeReadableStream_.on("end",function(){ms2(a,V4i(a));for(var W=0;W<a.onEndCallbacks_.length;W++)a.onEndCallbacks_[W]()});
a.xhrNodeReadableStream_.on("error",function(){if(a.JSC$16958_onErrorCallbacks_.length!=0){var W=a.JSC$16958_xhr_.JSC$7703_lastErrorCode_;W!==0||a.JSC$16958_xhr_.isSuccess()||(W=6);var w=-1;switch(W){case 0:var Z=2;break;case 7:Z=10;break;case 8:Z=4;break;case 6:w=a.JSC$16958_xhr_.getStatus();Z=_.W$F(w);break;default:Z=14}ms2(a,V4i(a));W=_.RsA(W)+", error: "+a.JSC$16958_xhr_.getLastError();w!=-1&&(W+=", http status code: "+w);cs(a,new _.ig(Z,W))}})},V4i=function(a){var W={},w=agd(a.JSC$16958_xhr_);
Object.keys(w).forEach(function(Z){W[Z]=w[Z]});
return W},Hjz=function(a,W){var w=2,Z={};
try{var N=Dsk(W);w=_.yo(N,1);var B=N.getMessage();_.z5(N,st9,3,_.Hh()).length&&(Z["grpc-web-status-details-bin"]=W)}catch(I){a.JSC$16958_xhr_&&a.JSC$16958_xhr_.getStatus()===404?(w=5,B="Not Found: "+String(a.JSC$16958_xhr_.JSC$7703_lastUri_)):(w=14,B="Unable to parse RpcStatus: "+I)}return{code:w,details:B,metadata:Z}};
iR.prototype.on=function(a,W){a=="data"?this.onDataCallbacks_.push(W):a=="metadata"?this.onMetadataCallbacks_.push(W):a=="status"?this.onStatusCallbacks_.push(W):a=="end"?this.onEndCallbacks_.push(W):a=="error"&&this.JSC$16958_onErrorCallbacks_.push(W);return this};
var e$=function(a,W){W=a.indexOf(W);W>-1&&a.splice(W,1)};
iR.prototype.removeListener=function(a,W){a=="data"?e$(this.onDataCallbacks_,W):a=="metadata"?e$(this.onMetadataCallbacks_,W):a=="status"?e$(this.onStatusCallbacks_,W):a=="end"?e$(this.onEndCallbacks_,W):a=="error"&&e$(this.JSC$16958_onErrorCallbacks_,W);return this};
iR.prototype.cancel=function(){this.JSC$16958_xhr_.abort()};
var zgd=function(a,W){for(var w=0;w<a.onDataCallbacks_.length;w++)a.onDataCallbacks_[w](W)},ms2=function(a,W){for(var w=0;w<a.onMetadataCallbacks_.length;w++)a.onMetadataCallbacks_[w](W)},cs=function(a,W){for(var w=0;w<a.JSC$16958_onErrorCallbacks_.length;w++)a.JSC$16958_onErrorCallbacks_[w](W)};
iR.prototype.cancel=iR.prototype.cancel;iR.prototype.removeListener=iR.prototype.removeListener;iR.prototype.on=iR.prototype.on;var dsk=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"};
_.c(dsk,Error);var nh=function(a){this.JSC$16967_worker_=a.worker||null;this.JSC$16967_streamBinaryChunks_=a.streamBinaryChunks||!1;this.JSC$16967_credentialsMode_=void 0};
_.NT(nh,_.ZaE);nh.prototype.createInstance=function(){var a=new j$(this.JSC$16967_worker_,this.JSC$16967_streamBinaryChunks_);this.JSC$16967_credentialsMode_&&a.setCredentialsMode(this.JSC$16967_credentialsMode_);return a};
nh.prototype.setCredentialsMode=function(a){this.JSC$16967_credentialsMode_=a};
var j$=function(a,W){_.Ti.call(this);this.JSC$16971_worker_=a;this.JSC$16971_streamBinaryChunks_=W;this.JSC$16971_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$16971_responseHeaders_=null;this.JSC$16971_method_="GET";this.JSC$16971_url_="";this.inProgress_=!1;this.JSC$16971_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.NT(j$,_.Ti);j$.prototype.open=function(a,W){if(this.readyState!=0)throw this.abort(),Error("Jj");this.JSC$16971_method_=a;this.JSC$16971_url_=W;this.readyState=1;Lh(this)};
j$.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("Kj");this.inProgress_=!0;var W={headers:this.requestHeaders_,method:this.JSC$16971_method_,credentials:this.JSC$16971_credentialsMode_,cache:void 0};a&&(W.body=a);(this.JSC$16971_worker_||_.NH).fetch(new Request(this.JSC$16971_url_,W)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
j$.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,Jr(this));this.readyState=0};
j$.prototype.handleResponse_=function(a){if(this.inProgress_&&(this.fetchResponse_=a,this.JSC$16971_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16971_responseHeaders_=a.headers,this.readyState=2,Lh(this)),this.inProgress_&&(this.readyState=3,Lh(this),this.inProgress_)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.NH.ReadableStream!==
"undefined"&&"body"in a){this.currentReader_=a.body.getReader();if(this.JSC$16971_streamBinaryChunks_){if(this.responseType)throw Error("Lj");this.response=[]}else this.response=this.responseText="",this.JSC$16971_textDecoder_=new TextDecoder;EDk(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var EDk=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
j$.prototype.handleDataFromStream_=function(a){if(this.inProgress_){if(this.JSC$16971_streamBinaryChunks_&&a.value)this.response.push(a.value);else if(!this.JSC$16971_streamBinaryChunks_){var W=a.value?a.value:new Uint8Array(0);if(W=this.JSC$16971_textDecoder_.decode(W,{stream:!a.done}))this.response=this.responseText+=W}a.done?Jr(this):Lh(this);this.readyState==3&&EDk(this)}};
j$.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,Jr(this))};
j$.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,Jr(this))};
j$.prototype.handleSendFailure_=function(){this.inProgress_&&Jr(this)};
var Jr=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.JSC$16971_textDecoder_=null;Lh(a)};
j$.prototype.setRequestHeader=function(a,W){this.requestHeaders_.append(a,W)};
j$.prototype.getResponseHeader=function(a){return this.JSC$16971_responseHeaders_?this.JSC$16971_responseHeaders_.get(a.toLowerCase())||"":""};
j$.prototype.getAllResponseHeaders=function(){if(!this.JSC$16971_responseHeaders_)return"";for(var a=[],W=this.JSC$16971_responseHeaders_.entries(),w=W.next();!w.done;)w=w.value,a.push(w[0]+": "+w[1]),w=W.next();return a.join("\r\n")};
j$.prototype.setCredentialsMode=function(a){this.JSC$16971_credentialsMode_=a};
var Lh=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(j$.prototype,"withCredentials",{get:function(){return this.JSC$16971_credentialsMode_==="include"},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var ar9=function(a){var W="";_.T5.forEach(a,function(w,Z){W+=Z;W+=":";W+=w;W+="\r\n"});
return W},WID=function(a,W,w){if(_.T5.isEmpty(w))return a;
w=ar9(w);if(typeof a==="string")return _.uE(a,_.Qv(W),w);_.qF(a,W,w);return a};var w6K=function(){this.isInputValid_=!0;this.JSC$16977_streamPos_=0;this.leftoverInput_=""};
w6K.prototype.isInputValid=function(){return this.isInputValid_};var vc=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16980_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
vc.prototype.isInputValid=function(){return this.state_!=3};
var FP=function(a,W,w,Z){a.state_=3;a.errorMessage_="The stream is broken @"+a.JSC$16980_streamPos_+"/"+w+". Error: "+Z+". With input:\n"+W;throw Error(a.errorMessage_);};
vc.prototype.acceptsBinaryInput=function(){return!0};
vc.prototype.parse=function(a){function W(v){v&128&&FP(B,I,X,"invalid tag");(v&7)!=2&&FP(B,I,X,"invalid wire type");B.tag_=v>>>3;B.tag_!=1&&B.tag_!=2&&B.tag_!=15&&FP(B,I,X,"unexpected tag");B.state_=1;B.length_=0;B.countLengthBytes_=0}
function w(v){B.countLengthBytes_++;B.countLengthBytes_==5&&v&240&&FP(B,I,X,"message length too long");B.length_|=(v&127)<<(B.countLengthBytes_-1)*7;v&128||(B.state_=2,B.countMessageBytes_=0,typeof Uint8Array!=="undefined"?B.messageBuffer_=new Uint8Array(B.length_):B.messageBuffer_=Array(B.length_),B.length_==0&&N())}
function Z(v){B.messageBuffer_[B.countMessageBytes_++]=v;B.countMessageBytes_==B.length_&&N()}
function N(){if(B.tag_<15){var v={};v[B.tag_]=B.messageBuffer_;B.result_.push(v)}B.state_=0}
for(var B=this,I=a instanceof Array?a:new Uint8Array(a),X=0;X<I.length;){switch(B.state_){case 3:FP(B,I,X,"stream already broken");break;case 0:W(I[X]);break;case 1:w(I[X]);break;case 2:Z(I[X]);break;default:throw Error("Nj`"+B.state_);}B.JSC$16980_streamPos_++;X++}a=B.result_;B.result_=[];return a.length>0?a:null};var vUa=function(){this.errorMessage_=null;this.JSC$16983_streamPos_=0;this.base64Decoder_=new w6K;this.pbParser_=new vc};
vUa.prototype.isInputValid=function(){return this.errorMessage_===null};
var Zw0=function(a,W,w){a.errorMessage_="The stream is broken @"+a.JSC$16983_streamPos_+". Error: "+w+". With input:\n"+W;throw Error(a.errorMessage_);};
vUa.prototype.acceptsBinaryInput=function(){return!1};
vUa.prototype.parse=function(a){this.errorMessage_!==null&&Zw0(this,a,"stream already broken");var W=null;try{var w=this.base64Decoder_;if(!w.isInputValid_)throw w.isInputValid_=!1,Error("Mj`"+w.JSC$16977_streamPos_+"`stream already broken`"+a);w.leftoverInput_+=a;var Z=Math.floor(w.leftoverInput_.length/4);if(Z==0)var N=null;else{try{var B=_.CsC(w.leftoverInput_.slice(0,Z*4))}catch(v){var I=w.leftoverInput_,X=v.message;w.isInputValid_=!1;throw Error("Mj`"+w.JSC$16977_streamPos_+"`"+X+"`"+I);}w.JSC$16977_streamPos_+=
Z*4;w.leftoverInput_=w.leftoverInput_.slice(Z*4);N=B}W=N===null?null:this.pbParser_.parse(N)}catch(v){Zw0(this,a,v.message)}this.JSC$16983_streamPos_+=a.length;return W};var XHI=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16986_streamPos_=0;this.result_=[];this.statusParsed_=!1};
XHI.prototype.isInputValid=function(){return this.errorMessage_===null};
XHI.prototype.acceptsBinaryInput=function(){return!1};
XHI.prototype.parse=function(a){function W(v){B.state_=6;B.errorMessage_="The stream is broken @"+B.JSC$16986_streamPos_+"/"+I+". Error: "+v+". With input:\n";throw Error(B.errorMessage_);}
function w(){B.jsonStreamParser_=new _.Zj({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function Z(v){if(v)for(var U=0;U<v.length;U++){var O={};O[1]=v[U];B.result_.push(O)}}
function N(v){if(v){(B.statusParsed_||v.length>1)&&W("extra status: "+v);B.statusParsed_=!0;var U={};U[2]=v[0];B.result_.push(U)}}
for(var B=this,I=0;I<a.length;){var X;if(X=B.state_!==2){a:{for(;I<a.length;){if(!_.wl(a[I])){X=!0;break a}I++;B.JSC$16986_streamPos_++}X=!1}X=!X}if(X)return null;switch(B.state_){case 6:W("stream already broken");break;case 0:a[I]==="["?(B.state_=1,I++,B.JSC$16986_streamPos_++):W("unexpected input token");break;case 1:a[I]==="["?(B.state_=2,w()):a[I]===","||a.slice(I,I+5)=="null,"?B.state_=3:a[I]==="]"?(B.state_=5,I++,B.JSC$16986_streamPos_++):W("unexpected input token");break;case 2:X=B.jsonStreamParser_.parse(a.substring(I));
Z(X);B.jsonStreamParser_.done()?(B.state_=3,X=B.jsonStreamParser_.JSC$9295_buffer_,B.JSC$16986_streamPos_+=a.length-I-X.length,a=X,I=0):(B.JSC$16986_streamPos_+=a.length-I,I=a.length);break;case 3:a[I]===","||a.slice(I,I+5)=="null,"?(B.state_=4,w(),B.jsonStreamParser_.parse("["),I+=a[I]===","?1:5,B.JSC$16986_streamPos_++):a[I]==="]"&&(B.state_=5,I++,B.JSC$16986_streamPos_++);break;case 4:X=B.jsonStreamParser_.parse(a.substring(I));N(X);B.jsonStreamParser_.done()?(B.state_=5,X=B.jsonStreamParser_.JSC$9295_buffer_,
B.JSC$16986_streamPos_+=a.length-I-X.length,a=X,I=0):(B.JSC$16986_streamPos_+=a.length-I,I=a.length);break;case 5:W("extra input after stream end")}}return B.result_.length>0?(a=B.result_,B.result_=[],a):null};var NXX=function(a){this.JSC$16989_xhr_=a;this.JSC$16989_parser_=null;this.status_=this.JSC$16989_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16989_textDecoder_=null;this.JSC$16989_eventHandler_=new _.am(this);this.JSC$16989_eventHandler_.listen(this.JSC$16989_xhr_,"readystatechange",this.JSC$16991_readyStateChangeHandler_)},Mp=function(a,W){a.status_!=W&&(a.status_=W,a.statusHandler_&&a.statusHandler_())},RS=function(a){a.JSC$16989_eventHandler_.removeAll();
if(a.JSC$16989_xhr_){var W=a.JSC$16989_xhr_;a.JSC$16989_xhr_=null;W.abort();W.dispose()}};
NXX.prototype.getStatus=function(){return this.status_};
NXX.prototype.JSC$16991_readyStateChangeHandler_=function(a){a=a.target;try{if(a==this.JSC$16989_xhr_)a:{var W=_.nk(this.JSC$16989_xhr_),w=this.JSC$16989_xhr_.JSC$7703_lastErrorCode_,Z=this.JSC$16989_xhr_.getStatus(),N=this.JSC$16989_xhr_.getResponseText();a=[];if(this.JSC$16989_xhr_.getResponse()instanceof Array){var B=this.JSC$16989_xhr_.getResponse();B.length>0&&B[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,a=B)}if(!(W<3||W==3&&!N&&a.length==0))if(Z=Z==200||Z==206,W==4&&(w==8?Mp(this,
7):w==7?Mp(this,8):Z||Mp(this,3)),this.JSC$16989_parser_||(this.JSC$16989_parser_=gUf(this.JSC$16989_xhr_),this.JSC$16989_parser_==null&&Mp(this,5)),this.status_>2)RS(this);else{if(a.length>this.JSC$16989_pos_){var I=a.length;w=[];try{if(this.JSC$16989_parser_.acceptsBinaryInput())for(var X=0;X<I;X++){var v=this.JSC$16989_parser_.parse(Array.from(a[X]));v&&(w=w.concat(v))}else{v="";if(!this.JSC$16989_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Oj");this.JSC$16989_textDecoder_=new TextDecoder}for(X=
0;X<I;X++)v+=this.JSC$16989_textDecoder_.decode(a[X],{stream:W==4&&X==I-1});w=this.JSC$16989_parser_.parse(v)}a.splice(0,I);w&&this.dataHandler_(w)}catch(O){Mp(this,5);RS(this);break a}}else if(N.length>this.JSC$16989_pos_){X=N.slice(this.JSC$16989_pos_);this.JSC$16989_pos_=N.length;try{var U=this.JSC$16989_parser_.parse(X);U!=null&&this.dataHandler_&&this.dataHandler_(U)}catch(O){Mp(this,5);RS(this);break a}}W==4?(N.length!=0||this.hasStreamingResponseData_?Mp(this,2):Mp(this,4),RS(this)):Mp(this,
1)}}}catch(O){Mp(this,6),RS(this)}};var trE=function(a){a=this.xhrReader_=a;var W=(0,_.Sk)(this.onData_,this);a.dataHandler_=W;a=this.xhrReader_;W=(0,_.Sk)(this.onStatusChange_,this);a.statusHandler_=W;this.JSC$16993_callbackMap_={};this.callbackOnceMap_={}};
_.t=trE.prototype;_.t.on=function(a,W){var w=this.JSC$16993_callbackMap_[a];w||(w=[],this.JSC$16993_callbackMap_[a]=w);w.push(W);return this};
_.t.addListener=function(a,W){this.on(a,W);return this};
_.t.removeListener=function(a,W){var w=this.JSC$16993_callbackMap_[a];w&&_.yF(w,W);(a=this.callbackOnceMap_[a])&&_.yF(a,W);return this};
_.t.once=function(a,W){var w=this.callbackOnceMap_[a];w||(w=[],this.callbackOnceMap_[a]=w);w.push(W);return this};
_.t.onData_=function(a){var W=this.JSC$16993_callbackMap_.data;W&&$ma(a,W);(W=this.callbackOnceMap_.data)&&$ma(a,W);this.callbackOnceMap_.data=[]};
var $ma=function(a,W){for(var w={},Z=0;Z<a.length;w={message$jscomp$969:void 0},Z++)w.message$jscomp$969=a[Z],W.forEach(function(N){return function(B){try{B(N.message$jscomp$969)}catch(I){}}}(w))};
trE.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:BXK(this,"readable");break;case 5:case 6:case 4:case 7:case 3:BXK(this,"error");break;case 8:BXK(this,"close");break;case 2:BXK(this,"end")}};
var BXK=function(a,W){var w=a.JSC$16993_callbackMap_[W];w&&w.forEach(function(Z){try{Z()}catch(N){}});
(w=a.callbackOnceMap_[W])&&w.forEach(function(Z){Z()});
a.callbackOnceMap_[W]=[]};var lrd=function(){var a={format:"jspb"};a=a===void 0?{}:a;this.suppressCorsPreflight=a.suppressCorsPreflight||_.RT("suppressCorsPreflight",a)||!1;this.withCredentials=a.withCredentials||_.RT("withCredentials",a)||!1;this.streamInterceptors=a.streamInterceptors||[];this.unaryInterceptors=a.unaryInterceptors||[];this.workerScope=a.workerScope;this.chunkedServerStreaming=a.useFetchDownloadStreams||!1},X6D=function(a,W,w,Z,N,B){B=B===void 0?{}:B;
var I=W.substring(0,W.length-N.name.length),X,v=(X=B)==null?void 0:X.signal;return Ir0(function(U){return new Promise(function(O,S){if(v==null?0:v.aborted){var T=new _.ig(1,"Aborted");T.cause=v.reason;S(T)}else{var p={},h=PLf(a,U,I);h.on("error",function(L){return void S(L)});
h.on("metadata",function(L){p=L});
h.on("data",function(L){var F=p;F=F===void 0?{}:F;O(new hgn(L,F))});
v&&v.addEventListener("abort",function(){h.cancel();var L=new _.ig(1,"Aborted");L.cause=v.reason;S(L)})}})},a.unaryInterceptors).call(a,ijE(N,w,Z)).then(function(U){return U.responseMessage})},qp=function(a,W,w,Z,N){var B=B===void 0?{}:B;
return X6D(a,W,w,Z,N,B)};
lrd.prototype.serverStreaming=function(a,W,w,Z){var N=this,B=a.substring(0,a.length-Z.name.length);return vBd(function(I){var X=I.methodDescriptor,v=I.getMetadata(),U=gBf(N,!1);v=oBf(N,v,U,B+X.getName());var O=kbK(U,X.responseDeserializeFn,!0);I=X.requestSerializeFn(I.requestMessage);U.send(v,"POST",I);return O},this.streamInterceptors).call(this,ijE(Z,W,w))};
var PLf=function(a,W,w){var Z=W.methodDescriptor,N=W.getMetadata(),B=gBf(a,!0);a=oBf(a,N,B,w+Z.getName());w=kbK(B,Z.responseDeserializeFn,!1);yxX(w,N["X-Goog-Encode-Response-If-Executable"]==="base64");W=Z.requestSerializeFn(W.requestMessage);B.send(a,"POST",W);return w},gBf=function(a,W){W=a.chunkedServerStreaming&&!W;
return a.workerScope||W?new _.eX(new nh({worker:a.workerScope,streamBinaryChunks:W})):new _.eX},oBf=function(a,W,w,Z){W["Content-Type"]="application/json+protobuf";
W["X-User-Agent"]="grpc-web-javascript/0.1";var N=W.Authorization;if(N&&CK0.has(N.split(" ")[0])||a.withCredentials)w.JSC$7703_withCredentials_=!0;if(a.suppressCorsPreflight)Z=WID(Z,"$httpHeaders",W);else for(a=_.l(Object.keys(W)),N=a.next();!N.done;N=a.next())N=N.value,w.headers.set(N,W[N]);return Z},kbK=function(a,W,w){if(w){w=new NXX(a);
var Z=new trE(w)}return new iR({xhr:a,nodeReadableStream:Z},W)},vBd=function(a,W){return W.reduce(function(w,Z){return function(N){return Z.intercept(N,w)}},a)},Ir0=function(a,W){return W.reduce(function(w,Z){return function(N){return Z.intercept(N,w)}},a)};var Um9=function(a){this.client_=new lrd;this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};
_.t=Um9.prototype;_.t.JSC$17012_depositGoogleCredential=function(a,W){return qp(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",a,W||{},jLk)};
_.t.deleteLink=function(a,W){return qp(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",a,W||{},ega)};
_.t.JSC$17012_finishOAuth=function(a,W){return qp(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",a,W||{},Jx0)};
_.t.getLink=function(a,W){return qp(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",a,W||{},F5z)};
_.t.startLinkingSession=function(a,W){return qp(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",a,W||{},u7K)};var Owf=[0,Ld9,1,ML0,[0,_.VZ,[0,Ju9,-1]],[0,Fd2],[0,Rnz,-1]];var SaD=function(){this.storage=new Map},TXD=function(a,W,w,Z,N){if(!a.storage.has(W))return null;
a=_.l(a.storage.get(W));for(W=a.next();!W.done;W=a.next())if(W=W.value,!N||W.linkName===N)if(w&&W.scopes&&Ya0(W.scopes,w)||Z&&W.capabilities&&Ya0(W.capabilities,Z))return W;return null},KIa=function(a,W,w){if(!w)a.storage.delete(W);
else if(a.storage.has(W)){var Z=a.storage.get(W).filter(function(N){return N.linkName!==w});
Z.length>0?a.storage.set(W,Z):a.storage.delete(W)}},Ya0=function(a,W){W=_.l(W);
for(var w=W.next();!w.done;w=W.next())if(!a.has(w.value))return!1;return!0};var p6D=function(){var a=_.LF("LINK_GAL_DOMAIN");this.alsDomain1p=_.LF("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},ryE=function(a,W){a.apiKey=W;
return a};
p6D.prototype.build=function(){var a={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Pj");a.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Qj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Rj");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("Sj");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 gN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(gN,_.QH);var Ay2=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Ay2,_.QH);var hif=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(hif,_.QH);var kF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(kF,_.QH);var iwn=function(a){return _.JD(a,1)};var cy2=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(cy2,_.QH);var TU0=_.WP(cy2),oq=[1,2,3,4,5];var U6E=function(a){try{return TU0(a)}catch(W){return null}},eiK=function(){},OMk=function(a,W){switch(_.AD(W,oq)){case 4:return(W=_.RY(W,hif,4,oq))&&a.logStateTransition(_.JD(W,1)),!0;
case 5:return(W=_.RY(W,Ay2,5,oq))&&a.logInternalEvent(_.JD(W,1)),!0}return!1},Ko0=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:_.l9(a)}};var oUk=function(a,W){var w=this;this.validator=a;this.messageListener=W;this.dismissCallback=function(){nBE(w,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17041_receiveMessage=function(Z){Z.type==="message"&&(Z=Z.event_,Z!==null&&(new URL(w.iframe.src)).origin===Z.origin&&w.validator(Z.data,Z.origin)&&!w.messageListener(Z.data)&&(w.JSC$17041_resolveCb!==void 0&&w.JSC$17041_resolveCb(Z.data),jaa(w)))}},Yfz=function(a,W,w){a.uiHandler!==void 0&&nBE(a,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(Z,N){a.JSC$17041_resolveCb=Z;a.JSC$17041_rejectCb=N;a.iframe=document.createElement("iframe");_.nv(a.iframe,W);a.uiHandler=w.displayContent(a.iframe,a.dismissCallback);_.vX(window,"message",a.JSC$17041_receiveMessage,!1,a)})},nBE=function(a,W){a.JSC$17041_rejectCb!==void 0&&a.JSC$17041_rejectCb(W);
jaa(a)},jaa=function(a){a.uiHandler!==void 0&&a.uiHandler.hideContent();
_.YO(window,"message",a.JSC$17041_receiveMessage,!1,a);a.JSC$17041_resolveCb=void 0;a.JSC$17041_rejectCb=void 0;a.uiHandler=void 0;a.iframe=void 0};var LIE=function(a){if(a===2){var W;a=((W=window)==null?0:W.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return a},Sfk=function(a){a=LIE(a);
switch(a){case 0:return"light";case 1:return"dark";default:_.l9(a)}};var kcX=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Jyi=function(a,W){this.JSC$17053_linkingSession=a;this.noticeConfig=W;this.displayInfoMap=new Map;var w=new Map;if(_.SF(this.JSC$17053_linkingSession,qBz,7))for(a=_.Hi(this.JSC$17053_linkingSession,qBz,7),a=_.z5(a,Rg0,1,_.Hh()),a=_.l(a),W=a.next();!W.done;W=a.next())W=W.value,w.set(_.JD(W,1),_.Cke(_.Hi(W,_.m0e,3)));if(w.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){W=this.noticeConfig.enabledDataUsageNoticeUis;a=W.has(0)?w.get(1):void 0;W=W.has(1)?w.get(2):void 0;w=a!==void 0&&W!==void 0?w.get(3):void 0;var Z=this.noticeConfig.nestedOrigins;var N=new cy2;var B=new gN;N=_.N_(N,2,oq,B);B=new cy2;var I=new gN;B=_.N_(B,3,oq,I);I=[];a!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:a,lastEvent:N,nestedOrigins:Z}]),I.push({trustedUrl:a,lastEvent:N,nestedOrigins:Z}));W!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:W,lastEvent:B,nestedOrigins:Z}]),I.push({trustedUrl:W,lastEvent:B,nestedOrigins:Z}));w!==void 0?this.displayInfoMap.set(3,[{trustedUrl:w,lastEvent:B,nestedOrigins:Z}]):this.displayInfoMap.set(3,I)}};var FIa=function(a){var W=new SaD;this.galService=a;this.galCache=W};
FIa.prototype.getLink=function(a){var W=a.serviceId;var w=a.scopes;var Z=a.capabilities;var N=a.linkName;var B=this,I;return _.P(function(X){if(Z!==void 0&&w!==void 0)throw Error("Tj");I=TXD(B.galCache,W,w,Z,N);return I!==null?X.return(I):X.return(B.galService.getLink({serviceId:W,sessionId:Math.floor(Math.random()*2147483648),scopes:w,capabilities:Z,linkName:N}).then(function(v){v=iM9(v);var U=B.galCache;U.storage.has(W)?U.storage.get(W).push(v):U.storage.set(W,[v]);return v}))})};
FIa.prototype.deleteLink=function(a,W,w){var Z=this;return _.P(function(N){KIa(Z.galCache,a,w);return N.return(Z.galService.deleteLink({serviceId:a,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:W,linkName:w}).then(function(){return!0}))})};var Ri0=function(a,W){var w=this;this.validator=a;this.msgHandler=W;this.closedPopupTimeout=this.JSC$17075_rejectCb=this.JSC$17075_resolveCb=this.popup=null;this.JSC$17075_receiveMessage=function(Z){if(Z!==null&&(Z=Z.event_,Z.source===w.popup)){var N=Z.data;if(w.validator(N,Z.origin)){var B;(B=w.msgHandler)!=null&&B.call(w,N)||(w.JSC$17075_resolveCb!==null&&w.JSC$17075_resolveCb(N),Mri(w))}}}};
Ri0.prototype.open=function(a,W){var w=this;this.popup!==null&&qa0(this);return new Promise(function(Z,N){w.JSC$17075_resolveCb=Z;w.JSC$17075_rejectCb=N;w.popup=_.Lv(window,a,"",W);_.vX(window,"message",w.JSC$17075_receiveMessage,!1,w);Qa9(w)})};
var qa0=function(a,W){a.JSC$17075_rejectCb!==null&&a.JSC$17075_rejectCb(W);Mri(a)},Mri=function(a){a.closedPopupTimeout&&(a.closedPopupTimeout.cancel(),a.closedPopupTimeout=null);
a.popup&&a.popup.close();_.YO(window,"message",a.JSC$17075_receiveMessage,!1,a);a.popup=null;a.JSC$17075_resolveCb=null;a.JSC$17075_rejectCb=null},Qa9=function(a){a.closedPopupTimeout=_.jnT(100).then(function(){a.popup?a.popup.closed?xmd(a):Qa9(a):qa0(a,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},xmd=function(a){a.closedPopupTimeout=_.jnT(100).then(function(){qa0(a,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var bwE=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),saz=function(a,W,w,Z,N,B,I,X,v,U){var O=this;this.serviceId=a;this.sessionId=W;this.galService=w;this.oauthDetails=Z;this.galLogger=N;this.interactionMode=B;this.redirectServiceUrl=I;this.consentLanguageKeys=X;this.dynamicUrlParameters=v;this.partnerConfigMinReadTimestamp=U;this.started=!1;this.JSC$17081_dataValidator=function(S,
T){var p=bwE.has(T);p||O.redirectServiceUrl===void 0||(p=O.redirectServiceUrl===T);return p?S.sentinel==="gdi":!1}};
saz.prototype.complete=function(){var a=this,W;return _.P(function(w){if(a.interactionMode!==1)return w.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));W=OQ.getRedirectStateFromUri();return W===null?w.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):w.return(uN0(a,W))})};
saz.prototype.start=function(){var a=this,W;return _.P(function(w){if(a.started)return w.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Lo(a.oauthDetails,1))return w.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(a.interactionMode===1)return OQ.setLocation(_.Lo(a.oauthDetails,1)),w.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));a.started=!0;a.galLogger.logStateTransition(5);
W=OQ.getPostMessagePopup(a.JSC$17081_dataValidator);return w.return(W.open(_.Lo(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(Z){a.started=!1;var N=a.galLogger;if((Z==null?void 0:Z.error)!==void 0)throw N.logInternalEvent(59),Error("Uj");if((Z==null?void 0:Z.redirect_state)===void 0)throw N.logInternalEvent(131),Error("Vj");return uN0(a,Z.redirect_state)}).catch(function(Z){a.started=
!1;
return Z.errorCode!==void 0?{statusCode:Z.errorCode,statusMessage:Z.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var uN0=function(a,W){return _.P(function(w){return w.return(CLi(a.galService,{serviceId:a.serviceId,sessionId:a.sessionId,dynamicUrlParameters:a.dynamicUrlParameters,redirectState:W,consentLanguageKeys:a.consentLanguageKeys,partnerConfigMinReadTimestamp:a.partnerConfigMinReadTimestamp}).then(function(Z){var N={statusCode:1,link:iM9(Z.getLink())};KQd(_.Ko(Z,3))!==void 0&&(N.callerState=KQd(_.Ko(Z,3)));a.galLogger.logInternalEvent(134);return N}))})},OQ={getPostMessagePopup:function(a){return new Ri0(a)},
getRedirectStateFromUri:function(){var a=_.MF(OQ.getLocation()).fragment_;return(new _.NP(a)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(a){_.Cv(window.location,_.SB(a))},
createOAuthFlow:function(a,W){return new saz(a.serviceId,a.sessionId,a.galService,W,a.galLogger,a.interactionMode,a.redirectServiceUrl,a.consentLanguageKeys,a.dynamicUrlParameters,a.partnerConfigMinReadTimestamp)}};var Gbz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Gbz,_.QH);var DmE=_.WP(Gbz);var frE=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),dmX=function(a,W,w,Z,N,B,I,X,v){var U=this;this.serviceId=a;this.sessionId=W;this.galService=w;this.gsiWebFlowDetails=Z;this.colorScheme=N;this.showCloseOption=B;this.galLogger=I;this.interactionMode=X;this.redirectServiceUrl=v;this.started=!1;this.JSC$17093_dataValidator=function(O,S){var T=frE.has(S);T||U.redirectServiceUrl===
void 0||(T=U.redirectServiceUrl===S);return T?O.sentinel==="gal":!1};
this.logEventProcessor=function(O){return O.result?(O=U6E(O.result))?OMk(U.galLogger,O):!1:!1}};
dmX.prototype.complete=function(){var a=this,W,w;return _.P(function(Z){if(a.interactionMode!==1)return Z.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));W=SZ.getRedirectStateFromUri();if(W===void 0)return a.galLogger.JSC$17033_logErrorEvent(131),Z.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return w=mm0(a,W),Z.return(Vrn(a,w))}catch(N){return Z.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
dmX.prototype.start=function(){var a=this,W;return _.P(function(w){if(a.started)return w.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Lo(a.gsiWebFlowDetails,1))return w.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(a.interactionMode===1)return SZ.setLocation(ziE(a,_.Lo(a.gsiWebFlowDetails,1))),w.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
a.started=!0;W=SZ.getPostMessagePopup(a.JSC$17093_dataValidator,a.logEventProcessor);return w.return(W.open(ziE(a,_.Lo(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(Z){a.started=!1;if((Z==null?void 0:Z.result)===void 0)throw a.galLogger.JSC$17033_logErrorEvent(131),Error("Vj");Z=mm0(a,Z.result);return Vrn(a,Z)}).catch(function(Z){a.started=!1;
return Z.errorCode!==void 0?{statusCode:Z.errorCode,statusMessage:Z.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var ziE=function(a,W){a=["result_channel",a.interactionMode===1?"2":"1","color_scheme",Sfk(a.colorScheme),"show_close_option",a.showCloseOption];return bAE(W,a)},Vrn=function(a,W){if(W!==null&&_.SF(W,kF,2)){var w,Z=W==null?void 0:(w=_.Hi(W,kF,2))==null?void 0:_.JD(w,2);
Z&&a.galLogger.JSC$17033_logErrorEvent(Ko0(Z));return iwn(_.Hi(W,kF,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:_.Lo(W,1)}).then(function(N){N=iM9(N);a.galLogger.logInternalEvent(134);return{statusCode:1,link:N}})},mm0=function(a,W){W=DmE(W);
if(!_.SF(W,kF,2)&&_.Lo(W,1)==="")throw a.galLogger.JSC$17033_logErrorEvent(5),Error("Wj");return W},SZ={getPostMessagePopup:function(a,W){return new Ri0(a,W)},
getRedirectStateFromUri:function(){return _.R$(_.MF(SZ.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(a){_.Cv(window.location,_.SB(a))},
createStreamlinedFlow:function(a,W){return new dmX(a.serviceId,a.sessionId,a.galService,W,a.colorScheme,a.showCloseOption,a.galLogger,a.interactionMode,a.redirectServiceUrl)}};var uvD=function(){var a=_.As9("GAL");this.storage=a?new _.Ow(a):null};var Qu=function(){};
_.c(Qu,eiK);Qu.prototype.logStateTransition=function(){};
Qu.prototype.logInternalEvent=function(){};
Qu.prototype.JSC$17033_logErrorEvent=function(){};var Hw0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Hw0,_.QH);Hw0.prototype.getCompletionUrl=function(){return _.Lo(this,15)};var xM=function(a,W,w,Z,N,B){this.serviceId=a;this.environment=W;this.sessionId=w;this.colorSchemeSelected=Z;this.colorThemeDisplayed=N;this.JSC$17106_transport=B;this.currentState=1};
_.c(xM,eiK);xM.prototype.logStateTransition=function(a){var W=yy9(this);W=_.yJ(W,3,this.currentState);W=_.yJ(W,1,a);this.currentState=a;a=EQD(1);this.dispatch(W,a)};
xM.prototype.logInternalEvent=function(a){a=EQD(a);this.dispatch(yy9(this),a)};
xM.prototype.JSC$17033_logErrorEvent=function(a){var W=yy9(this);W=_.yJ(W,1,10);a=EQD(a);this.dispatch(W,a)};
var yy9=function(a){var W=new Hw0;W=_.yJ(W,1,a.currentState);W=_.Xu(W,7,a.serviceId);var w,Z;var N=((w=window)==null?0:(Z=w.location)==null?0:Z.href)?_.MF(window.location.href).JSC$7940_domain_:"NO_PACKAGE_NAME";w=_.Xu(W,8,N);w=_.yJ(w,6,a.environment);w=_.Xu(w,5,"100");w=_.yJ(w,11,a.colorSchemeSelected);return _.yJ(w,12,a.colorThemeDisplayed)};
xM.prototype.dispatch=function(a,W){W===void 0&&(W=new _.lg);var w=W;a=a.serialize();w=_.Xu(w,8,a);_.SJ(w,12,this.sessionId);this.JSC$17106_transport.dispatch(W)};var EBE=function(a,W){this.loggerType=a;this.sessionIndex=W!=null?W:0},ada;
EBE.prototype.create=function(a,W,w,Z,N){switch(this.loggerType){case 0:return new Qu;case 1:return ada||(ada=(new _.tK(555,this.sessionIndex.toString())).build()),new xM(a,W,w,Z,N,ada);default:_.l9(this.loggerType,"unknown logger type")}};var YF=[6,2,3,1],d6f=new Map([[4,1],[1,6],[2,2],[3,3]]),jU0={statusCode:7,statusMessage:"Failed to create flow object"},bMf=function(a,W,w,Z,N,B,I,X,v,U){this.serviceId=a;this.sessionId=W;this.config=w;this.galService=Z;this.JSC$17113_linkingSession=N;this.googleScopes=B;this.callerState=I;this.consentLanguageKeys=X;this.dynamicUrlParameters=v;this.partnerConfigMinReadTimestamp=U;this.currentFlow=0;Z=this.JSC$17113_linkingSession;N=new Set;_.SF(Z,R30,1)&&N.add(1);_.SF(Z,xsX,2)&&_.SF(Z,qfn,6)&&N.add(2);
_.SF(Z,QLz,3)&&_.SF(Z,qfn,6)&&N.add(3);_.SF(Z,M4n,4)&&N.add(6);this.supportedFlows=N;Z=w.loggerType;N=w.clientEnvironment;a:{B=w.colorScheme;switch(B){case 0:B=1;break a;case 1:B=2;break a;case 2:B=3;break a;default:_.l9(B)}B=void 0}a:{I=w.colorScheme;I=LIE(I);switch(I){case 0:I=1;break a;case 1:I=2;break a;default:_.l9(I)}I=void 0}this.galLogger=(new EBE(Z,w.authUser)).create(a,N,W,B,I)},wNd=function(a){return new Promise(function(W){var w,Z,N,B,I,X,v,U,O,S;
return _.P(function(T){switch(T.nextAddress){case 1:w=QU2(a.currentFlow,a.supportedFlows),Z=!1,N=new Jyi(a.JSC$17113_linkingSession,a.config.dataUsageNoticeConfig);case 2:if(w===void 0){T.jumpTo(4);break}_.tq(T,5);var p=N,h=w,L=void 0;Z?h===1&&(L=p.displayInfoMap.get(2)):h===2||h===3?L=p.displayInfoMap.get(1):h===1&&(L=p.displayInfoMap.get(3));B=L?L:[];I=a.consentLanguageKeys;X=_.l(B);v=X.next();case 7:if(v.done)return a.currentFlow=w,_.g(T,Jf0(WaI(a,I)),11);U=v.value;return _.g(T,pHf(U,a.config.dataUsageNoticeConfig.uiAdapter,
a.config.colorScheme,a.galLogger),10);case 10:O=T.yieldResult;if(O.statusCode!==1)return CF2(a.serviceId),a.currentFlow=0,W(UQ({statusCode:O.statusCode,statusMessage:O.statusMessage},a.callerState)),T.return();O.consentLanguageKeys!==void 0&&(I=O.consentLanguageKeys);v=X.next();T.jumpTo(7);break;case 11:S=T.yieldResult;if(S.statusCode!==10)return S.statusCode!==6&&(CF2(a.serviceId),a.currentFlow=0),S.statusCode!==1&&a.callerState!==void 0&&(S.callerState=a.callerState),W(S),T.return();_.qY(T,6);break;
case 5:_.Pb(T);case 6:w=QU2(a.currentFlow,a.supportedFlows);Z=!0;T.jumpTo(2);break;case 4:CF2(a.serviceId),a.currentFlow=0,W(UQ({statusCode:12,statusMessage:"Linking failed"},a.callerState)),_.Xd(T)}})})},D69=function(a,W,w){a.currentFlow=W;
return Fo9(WaI(a,w)).then(function(Z){return Z.statusCode===10&&a.config.interactionMode===1&&QU2(a.currentFlow,a.supportedFlows)!==void 0?wNd(a):Z})},WaI=function(a,W){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:W,dynamicUrlParameters:a.dynamicUrlParameters,showCloseOption:a.config.showCloseOption,partnerConfigMinReadTimestamp:a.partnerConfigMinReadTimestamp},currentFlow:a.currentFlow,config:a.config,session:a.JSC$17113_linkingSession,googleScopes:a.googleScopes,callerState:a.callerState}};var ZS0=function(a,W){this.config=a;this.galService=W.getService();this.JSC$17126_galRepository=W.JSC$17163_galRepository};
ZS0.prototype.getLink=function(a,W){return Z49(this,a,W)};
var Z49=function(a,W,w){return a.JSC$17126_galRepository.getLink({serviceId:W,scopes:void 0,capabilities:void 0,linkName:w}).then(function(Z){return{statusCode:1,link:Z}}).catch(function(Z){return{statusCode:m6I(Z.code),
statusMessage:Z.message}})};
ZS0.prototype.deleteLink=function(a,W){return this.JSC$17126_galRepository.deleteLink(a,this.config.accountLinkingEntryPoint,W).then(function(){return{statusCode:1}}).catch(function(w){return{statusCode:m6I(w.code),
statusMessage:w.message}})};
ZS0.prototype.startLinkingSession=function(a){var W=a.serviceId;var w=a.sessionId;return sUn({serviceId:W,sessionId:w!==void 0?w: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 V29=null,EUn=new WeakMap;var NOd=function(){};
NOd.prototype.send=function(a,W){wGa(a);return this.makeRequest(a).then(function(w){if(W){var Z=new W;if(w!=null){if(W==null)throw Error("Yj");new W;throw Error("$j");}w=Z}return w})};var taE=function(a,W,w,Z,N){this.gapiUrl=a;this.gapiKey=W;this.gapiConfigUpdates=w||{};this.gapiAuthParams=Z||{};this.defaultApiId=N};
_.c(taE,NOd);var BOf=function(a){return HMK().then(function(W){W=W||window.gapi;$9k(a,W);return Wmn(W,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return W})})};
taE.prototype.makeRequest=function(a){var W=this;return BOf(this).then(function(w){return _.P(function(Z){if(Z.nextAddress==1)return W.gapiAuthParams.minAuthTokenTimeRemaining===void 0?Z.jumpTo(2):_.g(Z,aGa(w,W.gapiAuthParams.minAuthTokenTimeRemaining),2);$9k(W,w);return Z.return(ld0(w.client.request({root:W.gapiUrl,path:a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers,authType:a.authType,apiId:a.apiId||W.defaultApiId})))})})};
var ld0=function(a){return new Promise(function(W,w){a.then(function(Z){W(Z.result===!1&&Z.body!=null?{data:Z.body}:Z.result)},function(Z){w(Z.result===!1&&Z.body!=null?{data:Z.body}:Z.result)})})},$9k=function(a,W){for(var w in a.gapiConfigUpdates)if(a.gapiConfigUpdates.hasOwnProperty(w)){var Z=W,N=w,B=a.gapiConfigUpdates[w],I=Z.config.get(N);
B!==I&&Z.config.update(N,B)}};
taE.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var bR=function(a,W,w,Z,N,B,I,X){this.apiKey=W;this.authUser=w;this.oauthToken=Z;this.bucket=N;this.locale=I;this.galSdkEventHandler=X;if(Z===void 0){if(W===void 0)throw Error("ak");this.requestService=new taE(a,W,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":B===void 0||B===!1,"client/xd3":B===!0})}this.galServiceClient=new Um9(a)};
bR.prototype.deleteLink=function(a){var W=a.serviceId;var w=a.sessionId;var Z=a.accountLinkingEntryPoint;var N=a.linkName;var B=this,I;return _.P(function(X){var v=(new Kh).setHeader(sX(B,w));var U=Idd({serviceId:W,linkName:N});v=_.ZP(v,2,U);I=_.QZ(v,3,Z);return X.return(B.makeRequest(B.galServiceClient.deleteLink,I,[1,3],[2,4]))})};
var CLi=function(a,W){var w=W.serviceId;var Z=W.sessionId;var N=W.dynamicUrlParameters;var B=W.redirectState;var I=W.consentLanguageKeys;var X=W.partnerConfigMinReadTimestamp;var v;return _.P(function(U){var O=(new rd).setHeader(sX(a,Z,N));O=_.aI(O,2,w);v=_.aI(O,4,B);I!==void 0&&_.aI(v,5,I);X!==void 0&&_.ZP(v,6,X);return U.return(a.makeRequest(a.galServiceClient.JSC$17012_finishOAuth,v,[1,3],[2,4]))})};
bR.prototype.getLink=function(a){var W=a.serviceId;var w=a.sessionId;var Z=a.scopes;var N=a.capabilities;var B=a.consistencyKey;var I=a.linkName;var X=this,v;return _.P(function(U){var O=(new Ar).setHeader(sX(X,w)),S=Idd({serviceId:W,scopes:Z,capabilities:N,linkName:I});v=_.ZP(O,2,S);B!==void 0&&(O=K50(),O=_.aI(O,2,B),_.ZP(v,3,O));return U.return(X.makeRequest(X.galServiceClient.getLink,v,[1,3],[2,4]))})};
var M2n=function(a,W){var w=W.serviceId;var Z=W.sessionId;var N=W.googleScopes;var B=W.consistencyKey;var I;return _.P(function(X){var v=(new ph).setHeader(sX(a,Z));v=_.aI(v,2,w);var U=Array.from(N.values());v=_.AI(v,3,U,_.Qk);U=K50();U=_.aI(U,2,B);I=_.ZP(v,4,U);return X.return(a.makeRequest(a.galServiceClient.JSC$17012_depositGoogleCredential,I,[1,3],[2,4]))})};
bR.prototype.startLinkingSession=function(a){var W=a.serviceId;var w=a.sessionId;var Z=a.scopes;var N=a.capabilities;var B=a.loginHint;var I=a.supportedFlows;var X=a.completionUrl;var v=a.usePingPong;var U=a.twoWayLinking;var O=a.accountLinkingEntryPoint;var S=a.callerState;var T=a.consentLanguageKeys;var p=a.googleScopes;var h=a.dataUsageNoticeConfig;var L=a.linkName;var F=a.dynamicUrlParameters;var x=a.partnerConfigMinReadTimestamp;var G=this,V,d;return _.P(function(ZD){if(N!==void 0&&Z!==void 0)throw Error("Tj");
var aC=(new hr).setHeader(sX(G,w,F));V=_.aI(aC,2,W);L!==void 0&&_.aI(V,14,L);if(N!==void 0){aC=V;var Bv=Array.from(N.values());_.AI(aC,5,Bv,_.Qk)}else Z!==void 0&&(aC=V,Bv=Array.from(Z.values()),_.AI(aC,3,Bv,_.Qk));X!==void 0&&_.aI(V,6,X);v!==void 0&&_.As(V,15,v);I!==void 0&&(aC=V,Bv=Array.from(I.values()),_.AI(aC,4,Bv,_.pK));if(U!==void 0){if(U&&(!p||p.size===0))throw Error("bk");_.As(V,8,U)}O!==void 0&&_.QZ(V,9,O);B!==void 0&&_.aI(V,13,B);S!==void 0&&(aC=V,Bv=(new TextEncoder).encode(S),_.hI(aC,
12,_.C6(Bv,!1),_.uA()));T!==void 0&&_.aI(V,16,T);x!==void 0&&_.ZP(V,18,x);if(h!==void 0&&h.size>0||p!==void 0&&p.size>0)d=new sL0,p!==void 0&&p.size>0&&(aC=d,Bv=Array.from(p.values()),_.AI(aC,1,Bv,_.Qk)),h!==void 0&&(h.has(0)&&_.BfI(d,2,_.pK,1,_.rf),h.has(1)&&_.BfI(d,2,_.pK,2,_.rf)),_.ZP(V,17,d);return ZD.return(G.makeRequest(G.galServiceClient.startLinkingSession,V,[1],[2]))})};
bR.prototype.getMetadata=function(){var a=this,W,w,Z;return _.P(function(N){if(N.nextAddress==1)return W={},a.requestService?_.g(N,BOf(a.requestService),3):(W.Authorization="Bearer "+a.oauthToken,N.jumpTo(2));N.nextAddress!=2&&(w=N.yieldResult,W["X-Goog-Api-Key"]=a.apiKey,W["X-Goog-AuthUser"]=a.authUser!==void 0?a.authUser.toString():"0",(Z=w.auth.getAuthHeaderValueForFirstParty([]))&&(W.Authorization=Z));a.locale&&(W["accept-language"]=a.locale);return N.return(W)})};
bR.prototype.makeRequest=function(a,W,w,Z){var N=this,B;return _.P(function(I){if(I.nextAddress==1)return _.g(I,N.getMetadata(),2);B=I.yieldResult;PVI(N,w);return I.return(a.bind(N.galServiceClient)(W,B).finally(function(){PVI(N,Z)}))})};
var PVI=function(a,W){a.galSdkEventHandler!==void 0&&W.forEach(function(w){a.galSdkEventHandler.onEvent(w)})},sX=function(a,W,w){var Z=new S$;
W=_.hI(Z,2,_.Az(W),0);W=_.QZ(W,5,3);w=_.AI(W,8,w,_.Qk);a.bucket!==void 0&&_.aI(w,1,a.bucket);return w},Idd=function(a){var W=a.serviceId;
var w=a.scopes;var Z=a.capabilities;a=a.linkName;if(Z!==void 0&&w!==void 0)throw Error("Tj");var N=new YBi;W=_.aI(N,1,W);Z!==void 0?(w=Array.from(Z.values()),_.AI(W,5,w,_.Qk)):w!==void 0&&(w=Array.from(w.values()),_.AI(W,3,w,_.Qk));a!==void 0&&_.aI(W,6,a);return W};var NQz=function(a){this.galService=new bR(a.alsDomain,a.apiKey,a.authUser,a.oauthToken,a.bucket,a.clientXd3,a.locale,a.galSdkEventHandler);this.JSC$17163_galRepository=new FIa(this.galService)};
NQz.prototype.getService=function(){return this.galService};var XNz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(XNz,_.QH);var vXk=function(a){var W=new XNz;return _.yJ(W,1,a)};
XNz.prototype.setErrorMessage=function(a){return _.Xu(this,2,a)};var gX0=[0,_.Hz,_.mK,_.Hz];var uR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(uR,_.QH);var oXX=[0,[1,2,3],_.z1,[0,cu9,jti,-1],_.z1,[0,n_k,-1],_.AhF];var kSk=[0,_.fo,1,_.Hz,_.mK,-1,1,_.chm,_.DL,_.Hz,-1,oXX];var U9n=[0,_.Hz,[0,_.chm,_.DL,[0,_.mK]],_.dk,[0,_.Hz,-1]];var Zk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Zk,_.QH);var O4E=[0,_.mK,_.Hz,-2,_.fo,_.Hz,_.fo,_.Hz,-2,1,_.dk];var S90=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(S90,_.QH);var Y9n=[0,_.fo];var TOI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(TOI,_.QH);var Kad=[0,_.Hz,U9n,Y9n,O4E,kSk];var FV0=_.Em(TOI,Kad);var pNK=[0,Owf];var bpD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(bpD,_.QH);var rN9=[0,[1,3],qbE,_.Hz,qbE];var Ws=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Ws,_.QH);var ANE=[0,_.Hz];var hh0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(hh0,_.QH);var wd=function(a){return _.RY(a,XNz,2,aS)},i40=function(a){var W=new hh0;
return _.N_(W,2,aS,a)},aS=[1,
2];var cN0=[0,aS,_.z1,ANE,_.z1,gX0,_.VZ,rN9,1,_.Hz,pNK];var ehi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(ehi,_.QH);var jIk=function(a){var W=new ehi;return _.N_(W,3,nXE,a)},nXE=[2,
3];var Ch=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(Ch,_.QH);var La9=function(a,W){return _.ZP(a,2,W)},JN9=function(a,W){return _.ZP(a,8,W)},FaD=function(a,W){return _.ZP(a,3,W)};var MaI=[0,_.Hz,cN0,Kad,_.LZh,[0,[5,6],[0,_.Hz,-2],[0,_.fo,_.Hz,_.mK],[0,oXX],[0,_.mK,_.Hz,-1,_.jPe,_.Hz],_.z1,[0,[0,_.fo],_.Hz,-1],_.z1,[0,[3,4],_.Hz,-1,_.z1,[0,[0,_.Hz,_.dk]],_.z1,[0,[0,[0,[1,2],_.z1,[0],_.z1,[0]]]]]],_.LZh,-1,[0,nXE,_.Hz,_.z1,ANE,_.z1,gX0,_.VZ,rN9,[0,Owf]]];var RhD=_.Em(Ch,MaI),q9a=_.aJ(MaI);var QIn=function(){_.OW.call(this)};
_.c(QIn,_.OW);QIn.prototype.init=function(){};
new QIn;var x9k=_.ma(["data-"]),b4K=_.ma(["aria-"]),sID=_.ma(["aria-"]),Ge=function(a,W){this.isLatencyMeasurementExperiment=a===void 0?!1:a;this.enableDialogA11yFix=W===void 0?!1:W;this.JSC$17192_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.w9_(_.NH.location.href)},RSE=function(a,W){a.onConsentPrimitiveShownCallback=W},u22=function(a,W){return a.overriddenIframeLoadTimeout?a.overriddenIframeLoadTimeout:W!==void 0?W:5E3},Q5f=function(a){if(a.prewarmPromise!==void 0)return a.prewarmPromise;
a.prewarmPromise=new Promise(function(W,w){Dk(a,1);CV2(a,GSI(a,!0),D9I(a));a.iframe?a.prewarmChannel||fd0(a,a.iframe,W):w(Error("ck"))});
a.prewarmPromise.finally(function(){a.prewarmPromise=void 0});
return a.prewarmPromise};
Ge.prototype.showPrimitive=function(){var a=this;if(this.consentPromise!==void 0)return this.consentPromise;var W=Date.now();d9K(this,W);this.consentPromise=new Promise(function(w,Z){Dk(a,0,W);var N=a.isDarkTheme();a.isLatencyMeasurementExperiment||a.initialLoadingStrategy===1||a.initialLoadingStrategy===2||(a.loadingBar||(a.loadingBar=lGI(getComputedStyle(document.body).direction==="rtl",N),a.loadingBar.style.position="fixed",a.loadingBar.style.zIndex="15000"),document.body.appendChild(a.loadingBar));
CV2(a,GSI(a),D9I(a));a.iframe?a.channel||m99(a,a.iframe,w,Z):(Va9(a),Z(Error("ck")))});
this.consentPromise.finally(function(){a.consentPromise=void 0});
return this.consentPromise};
var m99=function(a,W,w,Z){var N,B;_.P(function(I){switch(I.nextAddress){case 1:Dk(a,3);N=!1;setTimeout(function(){if(!N){Va9(a);zhz(a);H4K(a);var X=vXk(7).setErrorMessage("Timeout connecting to iframe");w(JN9(La9(new Ch,i40(X)),jIk(X)))}},u22(a,yN0(a)));
if(!a.prewarmPromise){I.jumpTo(2);break}_.tq(I,3);return _.g(I,a.prewarmPromise,5);case 5:_.qY(I,2);break;case 3:_.Pb(I),B=vXk(4).setErrorMessage("Error while prewarming."),w(JN9(La9(new Ch,i40(B)),jIk(B)));case 2:a.prewarmChannel&&a.prewarmChannel.send(q9a(FaD(new Ch,a.consentPrimitiveRequest))),a.channel=_.aN({destination:a.JSC$17192_win,iframe:W,origin:EXX(a),channelName:"cpw",onEstablished:function(){N=!0;Va9(a);a.isLatencyMeasurementExperiment||(a.JSC$17192_previousBodyOverflow=document.body.style.overflow,
a.JSC$17192_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,a.JSC$17192_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 X=a.iframe;X.style.bottom="0";X.style.position="fixed";X.style.right="0";X.style.border="none";X.style.left="0";X.style.top=
"0";X.style.zIndex="5000";X.style.pointerEvents="";X.style.visibility="";a.initialLoadingStrategy===2||a.initialLoadingStrategy===3?Dk(a,4):Dk(a,6);var v;(v=a.onConsentPrimitiveShownCallback)==null||v.call(a)},
onMessage:function(X){X=RhD(X.data);switch(_.JD(X,1)){case 1:zhz(a);var v=IGI(_.Hi(X,_.sa,7));v&&(a.initialLoadingStrategy!==2&&a.initialLoadingStrategy!==3||Dk(a,6,v),Dk(a,5,v));if(v=IGI(_.Hi(X,_.sa,6)))Dk(a,7,v),Dk(a,8);var U,O;((U=_.Hi(X,hh0,2))==null?void 0:_.AD(U,aS))!==0&&((O=_.Hi(X,ehi,8))==null?void 0:_.AD(O,nXE))!==0||Z(Error("dk"));w(X);break;case 2:H4K(a)}}}),_.Xd(I)}})},fd0=function(a,W,w){a.prewarmChannel=_.aN({destination:a.JSC$17192_win,
iframe:W,origin:EXX(a),channelName:"pwcp",onEstablished:function(){Dk(a,2);w()}})},EXX=function(a){var W=_.IJ(a.src).toString();
return W&&W.indexOf("://")<0&&W.indexOf("//")!==0?a.origin:_.w9_(W)},GSI=function(a,W){W=W===void 0?!1:W;
var w,Z=new Map([["origin",a.origin],["hl",(w=aLn(a))!=null?w:null]]);W&&Z.set("pw","1");W=_.l([["cpr",a.consentPrimitiveRequest.serialize()]]);for(w=W.next();!w.done;w=W.next()){var N=_.l(w.value);w=N.next().value;N=N.next().value;Z.set(w,N)}a.isDarkTheme()&&Z.set("color_scheme","dark");return _.EK(a.src,Z)},Va9=function(a){a.isLatencyMeasurementExperiment||a.loadingBar&&document.body.removeChild(a.loadingBar)};
Ge.prototype.getSrc=function(){var a=_.D7(this.origin),W;var w=(W=_.Hi(this.consentPrimitiveRequest,S90,3))==null?void 0:_.yo(W,1);W="consent.google.com";w=w?"/u/"+encodeURIComponent(w.toString()):"";(a==null?0:a.endsWith("youtube.com"))?W="consent.youtube.com":(a=a==null?void 0:a.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(W="consent.google."+((a[1]?"co.":"")+encodeURIComponent(a[2])));return _.lq("https://"+W+"/signedin"+w+"/landing")};
var CV2=function(a,W,w){a.iframe||(a.iframe=document.createElement("iframe"),a.iframe.style.width="100%",a.iframe.style.height="100%",w!==112496729&&(a.iframe.style.colorScheme="auto"),a.isLatencyMeasurementExperiment&&(a.iframe.style.display="none"),_.nv(a.iframe,W),a.iframe.setAttribute("jsname","C5o1O"),WKI(a.iframe),document.body.appendChild(a.iframe))},WKI=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"},zhz=function(a){a.iframe&&(a.isLatencyMeasurementExperiment||(a.JSC$17192_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=a.JSC$17192_previousHtmlOverscroll),a.JSC$17192_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=a.JSC$17192_previousBodyOverscroll),a.JSC$17192_previousBodyOverflow!==
void 0&&(document.body.style.overflow=a.JSC$17192_previousBodyOverflow),a.enableDialogA11yFix&&wzf(a,!1)),WKI(a.iframe))};
Ge.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(wzf(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var wzf=function(a,W){var w,Z,N=(w=a.iframe)==null?void 0:(Z=w.parentElement)==null?void 0:Z.children;if(N)for(w=0;w<N.length;w++)Z=N[w],Z!==a.iframe&&(W?(Z.hasAttribute("aria-hidden")&&_.bq([_.z2(x9k)],Z,"data-old-aria-hidden",Z.getAttribute("aria-hidden")),_.bq([_.z2(b4K)],Z,"aria-hidden","true")):(Z.removeAttribute("aria-hidden"),Z.hasAttribute("data-old-aria-hidden")&&(_.bq([_.z2(sID)],Z,"aria-hidden",Z.getAttribute("data-old-aria-hidden")),Z.removeAttribute("data-old-aria-hidden"))))},Dk=function(a,
W,w){var Z;
(Z=a.latencyCallback)==null||Z.call(a,{latencyType:W,timestampEpochMillis:w!=null?w:Date.now()})};var ZoX=function(a,W,w){Ge.call(this,W,w===void 0?!1:w);this.consentPrimitiveRequest=a;a=aLn(this);if(!(0,_.ri8)(a))throw Error("H``"+String(a));this.src=this.getSrc();var Z;this.initialLoadingStrategy=(Z=_.Hi(this.consentPrimitiveRequest,Zk,4))==null?void 0:_.JD(Z,4)},Nkn;
_.c(ZoX,Ge);var MKk=function(a){var W=_.r("enable_primitive_dialog_aria_hide_siblings");a={request:a,enableDialogA11yFix:W===void 0?!1:W};Nkn||(Nkn=new ZoX(a.request,a.isLatencyMeasurementExperiment||_.JD(a.request,1)===2,a.enableDialogA11yFix));return Nkn},aLn=function(a){var W;
return(W=_.Hi(a.consentPrimitiveRequest,Zk,4))==null?void 0:_.Lo(W,1)},d9K=function(a,W){if(!_.SF(a.consentPrimitiveRequest,uR,5)){var w=a.consentPrimitiveRequest,Z=new uR;
_.ZP(w,5,Z)}var N;if((N=_.Hi(a.consentPrimitiveRequest,uR,5))==null||_.vRS(_.Oy(N,8))==null){var B;(B=_.Hi(a.consentPrimitiveRequest,uR,5))!=null&&_.SJ(B,8,W)}},D9I=function(a){var W;
return(W=_.Hi(a.consentPrimitiveRequest,uR,5))==null?void 0:_.yo(W,1)};
ZoX.prototype.isDarkTheme=function(){var a;return((a=_.Hi(this.consentPrimitiveRequest,Zk,4))==null?void 0:_.JD(a,2))===2};
var yN0=function(a){var W;return((W=_.Hi(a.consentPrimitiveRequest,Zk,4))==null?void 0:_.yo(W,5))||void 0},H4K=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);Nkn=void 0},xtD=function(a){return Ge.prototype.showPrimitive.call(a).then(function(W){return _.Hi(W,hh0,2)})};for(var fh={},tF9=(fh[64]="ma",fh[73]="ogb",fh[89]="cr",fh[21]="test",fh[0]="unkn",fh[137]="con",fh[155]="hl",fh[78]="yt",fh[171]="lp",fh[172]="ap",fh[177]="amo",fh[178]="pqe",fh[74]="gg",fh[1]="gm",fh[140]="am",fh),$T0=_.l(Object.keys(tF9)),BkI=$T0.next();!BkI.done;BkI=$T0.next());var lLX=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(lLX,_.QH);var ILi=[0,[2,3,4],_.Hz,enz,qbE,_.AhF];var PBn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(PBn,_.QH);var XzX=_.Em(PBn,[0,Rnz,_.mK,_.Hz,_.mK,_.Hz,ILi]);var vT2=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(vT2,_.QH);vT2.prototype.getCommand=function(){return _.JD(this,1)};
var gTE=function(){var a=new vT2;return _.QZ(a,1,0)};var oTk=_.aJ([0,Rnz,_.mK,[0,_.Hz,_.mK,-1]]);var k1z=new _.ok("s"),UTI=new _.ok("t"),OoE=new _.ok("u"),Syf=new _.ok("v"),Yyi=function(a,W,w){_.kO.call(this,k1z);this.mediaKey=a;this.photoUrl=W;this.photoSource=w};
_.c(Yyi,_.kO);var TkI=function(){_.kO.call(this,UTI)};
_.c(TkI,_.kO);var KKK=function(a){a=a===void 0?!1:a;_.kO.call(this,OoE);this.isError=a};
_.c(KKK,_.kO);var pzX=function(){_.kO.call(this,Syf)};
_.c(pzX,_.kO);var rD2=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,cDI=function(a){if(typeof a=="string"){if(a.charAt(0)==".")return ADE(a.substr(1));if(a.charAt(0)=="["){var W=rD2.exec(a);a=a.indexOf("=")==-1?void 0:W[3];return hEn(W[1],a)}return ioD(a)}return a},ADE=function(a){return function(W){return W.getAttribute&&_.sl(W,a)}},hEn=function(a,W){return function(w){return W!==void 0?w.getAttribute&&w.getAttribute(a)==W:w.hasAttribute&&w.hasAttribute(a)}},ioD=function(a){a=a.toUpperCase();
return function(W){return(W=W.tagName)&&W.toUpperCase()==a}},eEi=function(){return!0};var dd=function(a,W){this.JSC$17220_key_=a;this.JSC$17220_value_=W},mc=function(a){throw Error("ek`"+a.JSC$17220_key_);
},nTI=function(a,W){return new TypeError("fk`"+W+"`"+a.JSC$17220_key_+"`"+a.JSC$17220_value_+"`"+typeof a.JSC$17220_value_)};
dd.prototype.string=function(a){if(arguments.length==0)var W=jYa(this);else{var w;W=(w=LK0(this))!=null?w:a}return W};
var jYa=function(a){var W=LK0(a);W===null&&mc(a);return W},LK0=function(a){var W=a.JSC$17220_value_;
if(W==null)return null;if(typeof W==="string")return W;throw nTI(a,"string");};
dd.prototype.bool=function(a){if(arguments.length==0){var W=this.optionalBool();W===null&&mc(this)}else{var w;W=(w=this.optionalBool())!=null?w:a}return W};
dd.prototype.optionalBool=function(){var a=this.JSC$17220_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 nTI(this,"boolean");};
dd.prototype.number=function(a){if(arguments.length==0){var W=JD0(this);W===null&&mc(this)}else{var w;W=(w=JD0(this))!=null?w:a}return W};
var JD0=function(a){var W=a.JSC$17220_value_;if(W==null)return null;if(typeof W==="number")return W;if(typeof W==="string"){var w=Number(W);if(!isNaN(w)&&(w!==0||W.trim().length!==0))return w}throw nTI(a,"number");};
dd.prototype.toString=function(){return jYa(this)};
dd.prototype.array=function(a){if(arguments.length==0){var W=FKE(this);W===null&&mc(this);return W}W=FKE(this);return W==null?a:W};
var FKE=function(a){var W=a.JSC$17220_value_;if(W==null)return null;Array.isArray(W)||(typeof W!=="string"?W=[W]:(W=W.trim(),W=W==""?[]:W.split(",").map(function(w){return w.trim()})));
return MF9(a,W)},MF9=function(a,W){var w=a.JSC$17220_key_+"[";
return Array.from(W,function(Z,N){return new dd(w+N+"]",Z)})};
dd.prototype.object=function(a){var W=this.JSC$17220_value_;if(W==null)return a===void 0&&mc(this),a;if(typeof W==="object"&&W.constructor===Object){a={};var w=this.JSC$17220_key_+".",Z;for(Z in W)a[Z]=new dd(w+Z,W[Z]);return a}throw nTI(this,"object");};var Vu=function(a){this.list_=REz(a)},REz=function(a){if(a instanceof Vu)a=a.list_;
else if(a[0]instanceof Vu){for(var W=new Set,w=0;w<a.length;w++)for(var Z=_.l(a[w].list_),N=Z.next();!N.done;N=Z.next())W.add(N.value);a=W}return[].concat(_.K8(a))};
_.t=Vu.prototype;_.t.each=function(a,W,w){((w===void 0?0:w)?OJd:_.x6)(this.list_,a,W);return this};
_.t.size=function(){return this.list_.length};
_.t.isEmpty=function(){return this.list_.length===0};
_.t.get=function(a){return this.list_[a]||null};
_.t.el=function(){return this.list_[0]||null};
_.t.map=function(a,W){return _.pY(this.list_,a,W)};
_.t.equals=function(a){return this===a||_.gT(this.list_,a.list_)};
_.t.first=function(){return this.list_.length==0?null:new ze(this.list_[0])};
_.t.find=function(a){var W=[];this.each(function(w){w=w.querySelectorAll(String(a));for(var Z=0;Z<w.length;Z++)W.push(w[Z])});
return new Vu(W)};
_.t.parent=function(){var a=[];this.each(function(W){(W=W.parentElement||null)&&!_.f7(a,W)&&a.push(W)});
return new Vu(a)};
_.t.children=function(){var a=[];this.each(function(W){W=_.J9(W);for(var w=0;w<W.length;w++)a.push(W[w])});
return new Vu(a)};
_.t.filter=function(a){a=_.$T(this.list_,cDI(a));return new Vu(a)};
_.t.closest=function(a){var W=[],w=cDI(a),Z=function(N){return _.GK(N)&&w(N)};
this.each(function(N){(N=_.LY(N,Z,!0))&&!_.f7(W,N)&&W.push(N)});
return new Vu(W)};
_.t.next=function(a){return qyk(this,_.YIE,a)};
_.t.prev=function(a){return qyk(this,Qt0,a)};
var qyk=function(a,W,w){var Z=[];var N=w?cDI(w):eEi;a.each(function(B){(B=W(B))&&N(B)&&Z.push(B)});
return new Vu(Z)};
Vu.prototype.setClass=function(a){return this.each(function(W){_.bg(W,a)})};
var QYD=function(a,W){return a.each(function(w){_.QD(w,W)})},xTf=function(a,W){return a.each(function(w){_.Rd(w,W)})};
Vu.prototype.toggleClass=function(a,W){return W===!0?QYD(this,a):W===!1?xTf(this,a):this.each(function(w){_.sl(w,a)?_.Rd(w,a):_.QD(w,a)})};
Vu.prototype.setText=function(a){return this.each(function(W){_.FD(W,a)})};
var boX=function(a){a.each(function(W){W.removeAttribute("aria-hidden")})};
Vu.prototype.getStyle=function(a){if(this.list_.length>0){var W=this.list_[0],w=W.style[_.gQ(a)];return typeof w!=="undefined"?w:W.style[_.Jze(W,a)]||""}};
Vu.prototype.getData=function(a){if(this.list_.length===0)return new dd(a,null);var W=rFK(this.list_[0],a);return new dd(a,W)};
Vu.prototype.focus=function(a){try{a?this.el().focus(a):this.el().focus()}catch(W){}return this};
Vu.prototype.click=function(){var a=_.hv(this.el());if(a.createEvent){var W=a.createEvent("MouseEvents");W.initMouseEvent("click",!0,!0,a.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(W)}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 Hs=function(a,W,w,Z){function N(X,v,U){var O=v;v&&v.parentNode&&(O=v.cloneNode(!0));X(O,U)}
Z=Z===void 0?!1:Z;if(a.list_.length==1){var B=a.list_[0],I=function(X){return W(X,B)};
w instanceof Vu?w.each(I,void 0,Z):Array.isArray(w)?(Z?OJd:_.x6)(w,I):I(w);return a}return a.each(function(X){w instanceof Vu?w.each(function(v){N(W,v,X)}):Array.isArray(w)?_.x6(w,function(v){N(W,v,X)}):N(W,w,X)})};
_.t=Vu.prototype;_.t.append=function(a){return Hs(this,function(W,w){W&&w.appendChild(W)},a)};
_.t.appendTo=function(a){(new Vu([a])).append(this);return this};
_.t.remove=function(){return Hs(this,function(a,W){_.Xh(W)},null)};
_.t.empty=function(){return Hs(this,function(a,W){_.nI(W)},null)};
_.t.after=function(a,W){return Hs(this,function(w,Z){w&&_.LI(w,Z)},a,!(W===void 0||W))};
_.t.before=function(a){return Hs(this,function(W,w){W&&_.j5(W,w)},a)};
_.t.replaceWith=function(a){return Hs(this,function(W,w){W&&_.UiR(W,w)},a)};
_.t.toggle=function(a){return this.each(function(W){_.QS(W,a)})};
_.t.show=function(){return this.toggle(!0)};
_.t.hide=function(){return this.toggle(!1)};
_.t.trigger=function(a,W,w,Z){return sY0(this,a,W,w,Z)};
var sY0=function(a,W,w,Z,N){return a.each(function(B){_.FB9(_.hv(B)).triggerWizEventInternal(B,W,w,Z,N)})},ze=function(a,W){a instanceof Vu&&(W=a.list_,a=null);
this.list_=REz(a!=null?[a]:W)};
_.NT(ze,Vu);_.t=ze.prototype;_.t.children=function(){return new Vu(Array.prototype.slice.call(_.J9(this.list_[0])))};
_.t.each=function(a,W){a.call(W,this.list_[0],0);return this};
_.t.size=function(){return 1};
_.t.el=function(){return this.list_[0]};
_.t.first=function(){return this};var yu=function(a,W){W=W===void 0?window:W;this.hostId=a;this.JSC$17231_win=W;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$17231_previousHtmlOverscroll=this.JSC$17231_previousBodyOverscroll=this.JSC$17231_previousBodyOverflow="";this.eventTarget=new _.Ti;this.JSC$17231_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
G1n=function(a){var W=ukX(ukX(ukX(new CBn(78),"po"),"hppp"),"hhc");
W.authUser=Number(_.LF("SESSION_INDEX","0"));W.colorScheme=a;return W};
yu.prototype.getOrigin=function(){return this.origin?this.origin:_.El(_.yc(_.H5(new _.CS,this.JSC$17231_win.location.protocol),this.JSC$17231_win.location.hostname),this.JSC$17231_win.location.port).toString()};
yu.prototype.getTargetOrigin=function(){return _.El(_.yc(_.H5(new _.CS,this.scheme),this.domain),this.port)};
yu.prototype.preloadIframe=function(a){var W=this;if(this.iframeLoadPromise===void 0){var w=document.createElement("iframe");this.iframe=w;UMI(w,a);this.iframeLoadPromise=new Promise(function(Z,N){var B=!1,I=function(X){X.stopPropagation();w.removeEventListener("error",I);w.removeEventListener("securitypolicyviolation",I);N(Error("gk",{cause:X}))};
w.addEventListener("error",I);w.addEventListener("securitypolicyviolation",I);setTimeout(function(){B||N(Error("hk"))},3E4);
DTd(W,w,function(){B=!0;w.removeEventListener("error",I);w.removeEventListener("securitypolicyviolation",I);Z()})});
fLD(this);a=this.getTargetOrigin().toString();w.setAttribute("allow","camera "+a+"; display-capture "+a);this.parentElement.appendChild(w)}return this.iframeLoadPromise};
var VFn=function(a,W){var w,Z;return _.P(function(N){if(N.nextAddress==1)return w=lGI(getComputedStyle(a.parentElement).direction==="rtl"),a.parentElement.appendChild(w),document.activeElement instanceof HTMLElement&&(a.elementToFocusAfterClose=document.activeElement),_.tq(N,2),_.g(N,a.preloadIframe(W),4);if(N.nextAddress!=2){a.parentElement.removeChild(w);a.JSC$17231_previousBodyOverflow=a.parentElement.style.overflow;a.JSC$17231_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
a.JSC$17231_previousBodyOverscroll=a.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";a.parentElement.style.overscrollBehavior="contain";a.parentElement.style.overflow="hidden";var B=a.iframe;B.style.bottom="0";B.style.border="none";B.style.height="100%";B.style.left="0";B.style.position=a.iframePosition;B.style.right="0";B.style.top="0";B.style.width="100%";B.style.zIndex="2202";B.setAttribute("aria-hidden","false");B.setAttribute("aria-modal","true");
a.opened=!0;dT9(a);return _.qY(N,0)}Z=_.Pb(N);a.parentElement.removeChild(w);gsn(a.isDarkTheme());mTE(a,!1);throw Error("ik",{cause:Z});})},mTE=function(a,W){W=W===void 0?!0:W;
a.iframe!==void 0&&(zE0(a),document.documentElement.style.overscrollBehavior=a.JSC$17231_previousHtmlOverscroll,a.parentElement.style.overscrollBehavior=a.JSC$17231_previousBodyOverscroll,a.parentElement.style.overflow=a.JSC$17231_previousBodyOverflow,a.elementToFocusAfterClose!==void 0&&(a.elementToFocusAfterClose.focus(),a.elementToFocusAfterClose=void 0),W?fLD(a):(a.parentElement.removeChild(a.iframe),a.iframe=void 0,a.iframeLoadPromise=void 0,a.mainChannel=void 0),a.opened=!1)},zE0=function(a){a.backgroundElementsAriaHiddenIsNull&&
(boX(a.backgroundElementsAriaHiddenIsNull),a.backgroundElementsAriaHiddenIsNull=void 0);
a.backgroundElementsAriaHiddenIsFalse&&(a.backgroundElementsAriaHiddenIsFalse.each(function(W){W.setAttribute("aria-hidden","false")}),a.backgroundElementsAriaHiddenIsFalse=void 0);
a.backgroundElementsWithoutInert&&(a.backgroundElementsWithoutInert.each(function(W){W.removeAttribute("inert")}),a.backgroundElementsWithoutInert=void 0)},dT9=function(a){a.backgroundElementsAriaHiddenIsNull=(new ze(a.iframe.parentElement)).children().filter(function(W){return W.getAttribute("aria-hidden")===null&&W!==a.iframe});
a.backgroundElementsAriaHiddenIsNull.each(function(W){W.setAttribute("aria-hidden","true")});
a.backgroundElementsAriaHiddenIsFalse=(new ze(a.iframe.parentElement)).children().filter(function(W){return W.getAttribute("aria-hidden")==="false"&&W!==a.iframe});
a.backgroundElementsAriaHiddenIsFalse.each(function(W){W.setAttribute("aria-hidden","true")});
a.backgroundElementsWithoutInert=(new ze(a.iframe.parentElement)).children().filter(function(W){return!W.hasAttribute("inert")&&W!==a.iframe});
a.backgroundElementsWithoutInert.each(function(W){W.setAttribute("inert","true")})},fLD=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")};
yu.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var CBn=function(a,W){yu.call(this,tF9[a],W);this.options=[];this.style=""};
_.c(CBn,yu);var Hon=function(a){a.style="youtube";return a},yDK=function(a,W){a.eventTarget.listen(OoE,W);
return a},ETk=function(a,W){a.eventTarget.listen(k1z,W);
return a},ukX=function(a,W){a.options.push(W);
return a},aAI=function(a){var W=[a.getOrigin()];
a.ancestorOrigins&&W.push.apply(W,_.K8(a.ancestorOrigins));var w=new _.CS(a.JSC$17231_win.location.href),Z=a.startUrl?a.startUrl:a.options.includes("po")?"profile-picture/art":"profile-picture";W=Np(_.aZ(a.getTargetOrigin(),Z),"origin",W);a.startUrl&&_.qF(W,"startPath",a.startUrl);a.authUser>0&&_.qF(W,"authuser",a.authUser);a.pageId!==void 0&&_.qF(W,"pageId",a.pageId);_.qF(W,"hostId",a.hostId);a.jsMode!==void 0&&_.qF(W,"jsmode",a.jsMode);a.options.length>0&&_.qF(W,"opts",a.options.join(","));try{for(var N=
_.l(["utm_source","utm_medium","utm_campaign","utm_content"]),B=N.next();!B.done;B=N.next()){var I=B.value;_.R$(w,I)&&_.qF(W,I,_.R$(w,I))}var X,v=(X=a.hl)!=null?X:_.R$(w,"hl");v!==void 0&&_.qF(W,"hl",v)}catch(U){if(!(U instanceof URIError))throw U;}a.colorScheme&&_.qF(W,"theme",a.colorScheme);a.style&&_.qF(W,"style",a.style);return W},WlK=function(a,W){a.mainChannel=_.aN({destination:a.JSC$17231_win,
iframe:W,origin:a.getTargetOrigin().toString(),channelName:"ow",onMessage:function(w){w=XzX(w.data);if(W===a.iframe)switch(_.JD(w,1)){case 1:a.eventTarget.dispatchEvent(new KKK);mTE(a);break;case 2:a.eventTarget.dispatchEvent(new Yyi(_.Lo(w,4),_.Lo(w,2),_.JD(w,5),_.Hi(w,lLX,6)));break;case 0:var Z;a.eventTarget.dispatchEvent(new TkI(_.Lo(w,2),(Z=_.JD(w,3))!=null?Z:0));break;case 3:a.eventTarget.dispatchEvent(new KKK(!0));mTE(a,!1);break;case 4:a.eventTarget.dispatchEvent(new pzX)}}})},DTd=function(a,
W,w){_.aN({destination:a.JSC$17231_win,
iframe:W,origin:_.El(_.yc(_.H5(new _.CS,a.scheme),a.domain),a.port).toString(),channelName:"owi",onMessage:function(Z){W===a.iframe&&(w!==void 0&&w(),WlK(a,W),a.opened&&a.mainChannel.send(oTk(gTE())),Z.reply(),DTd(a,W))}})};
CBn.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?yu.prototype.preloadIframe.call(this,aAI(this).toString()):this.iframeLoadPromise};
CBn.prototype.openPicker=function(a){var W=this;return _.P(function(w){if(w.nextAddress==1)return W.startUrl=a?a:W.options.includes("po")?"profile-picture/art":"profile-picture",_.g(w,VFn(W,aAI(W).toString()),2);if(W.mainChannel){var Z=W.mainChannel,N=Z.send;var B=gTE();B=_.Xu(B,2,W.startUrl);N.call(Z,oTk(B))}_.Xd(w)})};var w00=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(w00,_.QH);_.t=w00.prototype;_.t.getSize=function(){return XP(this,1)};
_.t.setSize=function(a){return _.qT(this,1,a)};
_.t.getWidth=function(){return XP(this,12)};
_.t.getHeight=function(){return XP(this,13)};
_.t.setCenterCrop=function(a){return _.wh(this,20,a)};
_.t.getHtml=function(){return _.eF(this,4)};
_.t.getToken=function(){return _.I$(this,24)};
_.t.setToken=function(a){return _.Xu(this,24,a)};
_.t.getBackgroundColor=function(){return XP(this,87)};
_.t.hasBackgroundColor=function(){return _.hz(_.Oy(this,87))!=null};
_.t.getStoryboardLevel=function(){return XP(this,109)};var EX=function(a){this.JSC$17239_value_=void 0;this.childNodes_={};if(a){var W=_.ZaT(a);a=_.zi(a);for(var w=0;w<W.length;w++)this.set(W[w],a[w])}};
EX.prototype.set=function(a,W){ZI2(this,a,W,!1)};
EX.prototype.add=function(a,W){ZI2(this,a,W,!0)};
var ZI2=function(a,W,w,Z){for(var N=0;N<W.length;N++){var B=W.charAt(N);a.childNodes_[B]||(a.childNodes_[B]=new EX);a=a.childNodes_[B]}if(Z&&a.JSC$17239_value_!==void 0)throw Error("jk`"+W);a.JSC$17239_value_=w},NmK=function(a,W){for(var w=0;w<W.length;w++)if(a=a.childNodes_[W.charAt(w)],!a)return;
return a};
EX.prototype.get=function(a){return(a=NmK(this,a))?a.JSC$17239_value_:void 0};
EX.prototype.getValues=function(){var a=[];t5i(this,a);return a};
var t5i=function(a,W){a.JSC$17239_value_!==void 0&&W.push(a.JSC$17239_value_);for(var w in a.childNodes_)t5i(a.childNodes_[w],W)};
EX.prototype.getKeys=function(a){var W=[];if(a){for(var w=this,Z=0;Z<a.length;Z++){var N=a.charAt(Z);if(!w.childNodes_[N])return[];w=w.childNodes_[N]}$SE(w,a,W)}else $SE(this,"",W);return W};
var $SE=function(a,W,w){a.JSC$17239_value_!==void 0&&w.push(W);for(var Z in a.childNodes_)$SE(a.childNodes_[Z],W+Z,w)};
_.t=EX.prototype;_.t.containsKey=function(a){return this.get(a)!==void 0};
_.t.containsValue=function(a){if(this.JSC$17239_value_===a)return!0;for(var W in this.childNodes_)if(this.childNodes_[W].containsValue(a))return!0;return!1};
_.t.clear=function(){this.childNodes_={};this.JSC$17239_value_=void 0};
_.t.remove=function(a){for(var W=this,w=[],Z=0;Z<a.length;Z++){var N=a.charAt(Z);if(!W.childNodes_[N])throw Error("kk`"+a);w.push([W,N]);W=W.childNodes_[N]}a=W.JSC$17239_value_;for(delete W.JSC$17239_value_;w.length>0;)if(Z=w.pop(),W=Z[0],Z=Z[1],W.childNodes_[Z].isEmpty())delete W.childNodes_[Z];else break;return a};
_.t.clone=function(){return new EX(this)};
_.t.getCount=function(){return uqK(this.getValues())};
_.t.isEmpty=function(){return this.JSC$17239_value_===void 0&&_.T5.isEmpty(this.childNodes_)};var Kma=function(){if(!Bmk){var a=Bmk=new EX,W;for(W in lAK)a.add(W,lAK[W])}},Bmk,aF=function(a,W){this.types=a;
this.setters=W},lAK={a:new aF([3,
0],[function(a,W){_.wh(a,21,W)},
function(a,W){_.qT(a,56,W)}]),
al:new aF([3],[function(a,W){_.wh(a,74,W)}]),
b:new aF([3,0],[function(a,W){_.wh(a,23,W)},
function(a,W){_.qT(a,38,W)}]),
ba:new aF([0],[function(a,W){_.qT(a,85,W)}]),
bc:new aF([0],[function(a,W){_.qT(a,87,W)}]),
br:new aF([0],[function(a,W){_.qT(a,86,W)}]),
c:new aF([3,0],[function(a,W){_.wh(a,2,W)},
function(a,W){_.qT(a,39,W)}]),
cc:new aF([3],[function(a,W){_.wh(a,51,W)}]),
ci:new aF([3],[function(a,W){_.wh(a,32,W)}]),
ckm:new aF([3],[function(a,W){_.wh(a,104,W)}]),
cp:new aF([0],[function(a,W){_.qT(a,92,W)}]),
cr:new aF([3],[function(a,W){_.wh(a,108,W)}]),
cv:new aF([0],[function(a,W){_.qT(a,94,W)}]),
d:new aF([3],[function(a,W){_.wh(a,3,W)}]),
dc:new aF([5],[function(a,W){_.Xu(a,99,W)}]),
df:new aF([3],[function(a,W){_.wh(a,80,W)}]),
dv:new aF([3],[function(a,W){_.wh(a,90,W)}]),
e:new aF([0],[function(a,W){_.qT(a,15,W)}]),
em:new aF([0],[function(a,W){_.qT(a,107,W)}]),
f:new aF([4],[function(a,W){_.Xu(a,16,W)}]),
fg:new aF([3],[function(a,W){_.wh(a,34,W)}]),
fh:new aF([3],[function(a,W){_.wh(a,30,W)}]),
fm:new aF([3],[function(a,W){_.wh(a,84,W)}]),
fo:new aF([2],[function(a,W){_.Ew(a,79,_.IE(W))}]),
ft:new aF([3],[function(a,W){_.wh(a,50,W)}]),
fv:new aF([3],[function(a,W){_.wh(a,31,W)}]),
g:new aF([3],[function(a,W){_.wh(a,14,W)}]),
gce:new aF([4],[function(a,W){_.Xu(a,112,W)}]),
gd:new aF([3],[function(a,W){_.wh(a,83,W)}]),
gm:new aF([3],[function(a,W){_.wh(a,105,W)}]),
h:new aF([3,0],[function(a,W){_.wh(a,4,W)},
function(a,W){_.qT(a,13,W)}]),
i:new aF([3],[function(a,W){_.wh(a,22,W)}]),
ic:new aF([0],[function(a,W){_.qT(a,71,W)}]),
id:new aF([3],[function(a,W){_.wh(a,70,W)}]),
il:new aF([3],[function(a,W){_.wh(a,96,W)}]),
ip:new aF([3],[function(a,W){_.wh(a,54,W)}]),
iv:new aF([0],[function(a,W){_.SJ(a,75,W)}]),
j:new aF([1],[function(a,W){W=W==null?W:Toz(W);_.Ew(a,29,W)}]),
k:new aF([3,0],[function(a,W){_.wh(a,17,W)},
function(a,W){_.qT(a,42,W)}]),
l:new aF([0],[function(a,W){_.qT(a,44,W)}]),
lf:new aF([3],[function(a,W){_.wh(a,65,W)}]),
lo:new aF([3],[function(a,W){_.wh(a,97,W)}]),
m:new aF([0],[function(a,W){_.qT(a,63,W)}]),
md:new aF([3],[function(a,W){_.wh(a,91,W)}]),
mm:new aF([4],[function(a,W){_.Xu(a,81,W)}]),
mo:new aF([3],[function(a,W){_.wh(a,73,W)}]),
mv:new aF([3],[function(a,W){_.wh(a,66,W)}]),
n:new aF([3],[function(a,W){a.setCenterCrop(W)}]),
nc:new aF([3],[function(a,W){_.wh(a,55,W)}]),
nd:new aF([3],[function(a,W){_.wh(a,53,W)}]),
ng:new aF([3],[function(a,W){_.wh(a,95,W)}]),
ngm:new aF([3],[function(a,W){_.wh(a,106,W)}]),
no:new aF([3],[function(a,W){_.wh(a,37,W)}]),
ns:new aF([3],[function(a,W){_.wh(a,40,W)}]),
nt0:new aF([4],[function(a,W){_.Xu(a,36,W)}]),
ntm:new aF([3],[function(a,W){_.wh(a,114,W)}]),
nu:new aF([3],[function(a,W){_.wh(a,46,W)}]),
nw:new aF([3],[function(a,W){_.wh(a,48,W)}]),
o:new aF([1,3],[function(a,W){W=W==null?W:Toz(W);_.Ew(a,7,W)},
function(a,W){_.wh(a,27,W)}]),
p:new aF([3,0],[function(a,W){_.wh(a,19,W)},
function(a,W){_.qT(a,43,W)}]),
pa:new aF([3],[function(a,W){_.wh(a,61,W)}]),
pc:new aF([0],[function(a,W){_.qT(a,88,W)}]),
pd:new aF([3],[function(a,W){_.wh(a,60,W)}]),
pf:new aF([3],[function(a,W){_.wh(a,67,W)}]),
pg:new aF([3],[function(a,W){_.wh(a,72,W)}]),
pi:new aF([2],[function(a,W){_.Ew(a,76,_.IE(W))}]),
pp:new aF([3],[function(a,W){_.wh(a,52,W)}]),
pt:new aF([4],[function(a,W){_.Xu(a,111,W)}]),
q:new aF([4],[function(a,W){_.Xu(a,28,W)}]),
r:new aF([3,0],[function(a,W){_.wh(a,6,W)},
function(a,W){_.qT(a,26,W)}]),
ra:new aF([3],[function(a,W){_.wh(a,103,W)}]),
rf:new aF([3],[function(a,W){_.wh(a,100,W)}]),
rg:new aF([3],[function(a,W){_.wh(a,59,W)}]),
rh:new aF([3],[function(a,W){_.wh(a,49,W)}]),
rj:new aF([3],[function(a,W){_.wh(a,57,W)}]),
ro:new aF([2],[function(a,W){_.Ew(a,78,_.IE(W))}]),
rp:new aF([3],[function(a,W){_.wh(a,58,W)}]),
rw:new aF([3],[function(a,W){_.wh(a,35,W)}]),
rwa:new aF([3],[function(a,W){_.wh(a,64,W)}]),
rwu:new aF([3],[function(a,W){_.wh(a,41,W)}]),
s:new aF([3,0],[function(a,W){_.wh(a,33,W)},
function(a,W){a.setSize(W)}]),
sb:new aF([0],[function(a,W){_.qT(a,110,W)}]),
sc:new aF([0],[function(a,W){_.qT(a,89,W)}]),
sg:new aF([3],[function(a,W){_.wh(a,82,W)}]),
sl:new aF([0],[function(a,W){_.qT(a,109,W)}]),
sm:new aF([3],[function(a,W){_.wh(a,93,W)}]),
t:new aF([4],[function(a,W){a.setToken(W)}]),
tm:new aF([3],[function(a,W){_.wh(a,113,W)}]),
u:new aF([3],[function(a,W){_.wh(a,18,W)}]),
ut:new aF([3],[function(a,W){_.wh(a,45,W)}]),
v:new aF([0],[function(a,W){_.qT(a,62,W)}]),
vb:new aF([0],[function(a,W){_.SJ(a,68,W)}]),
vf:new aF([4],[function(a,W){_.Xu(a,102,W)}]),
vl:new aF([0],[function(a,W){_.SJ(a,69,W)}]),
vm:new aF([3],[function(a,W){_.wh(a,98,W)}]),
w:new aF([0],[function(a,W){_.qT(a,12,W)}]),
x:new aF([0],[function(a,W){_.qT(a,9,W)}]),
y:new aF([0],[function(a,W){_.qT(a,10,W)}]),
ya:new aF([2],[function(a,W){_.Ew(a,77,_.IE(W))}]),
z:new aF([0],[function(a,W){_.qT(a,11,W)}])};
Kma.prototype.parse=function(a){var W=new w00,w=new w00;if(a=="")a=!0;else{a=a.split("-");for(var Z=!0,N=0;N<a.length;N++){var B=a[N];if(B.length==0)Z=!1;else{var I=B,X=!1;var v=I;var U=I.charAt(0);U!=U.toLowerCase()&&(X=!0,v=I.charAt(0).toLowerCase()+I.substring(1));var O=Bmk;for(U=1;U<=v.length;++U){var S=O,T=v.substring(0,U);if(T.length==0?S.isEmpty():!NmK(S,T))break}v=U==1?null:(v=O.get(v.substring(0,U-1)))?{option:I.substring(0,U-1),value:I.substring(U-1),signed:X,attributes:v}:null;if(v){I=
[];X=[];U=!1;for(O=0;O<v.attributes.types.length;O++){S=v.attributes.types[O];var p=v.value;T=N;if(v.signed&&S==1)for(var h=p.length;h<12&&T<a.length-1;)p+="-"+a[T+1],h=p.length,++T;else if(S==2)for(;T<a.length-1&&a[T+1].match(/^[\d\.]/);)p+="-"+a[T+1],++T;h=v.attributes.setters[O];p=IAX(this,S)(v.option,p,W,w,h);if(p===null){U=!0;N=T;break}else I.push(S),X.push(p)}if(!U)for(v=0;v<X.length;v++)O=I[v],p=X[v],PEK(this,O)(B,p);Z=Z&&U}else Z=!1}}a=Z}return new X0K(W,w,a)};
var WW=function(a,W,w,Z,N,B){N(w,W);a=a.charAt(0);B=B(a==a.toUpperCase());N(Z,B)};
_.t=Kma.prototype;_.t.parseAndSetIntOption_=function(a,W,w,Z,N){if(W=="")return 0;isFinite(W)&&(W=String(W));W=typeof W==="string"?/^\s*-?0x/i.test(W)?parseInt(W,16):parseInt(W,10):NaN;if(isNaN(W))return 1;WW(a,W,w,Z,N,Number);return null};
_.t.logIntParseError_=function(){};
_.t.parseAndSetFloatOption_=function(a,W,w,Z,N){if(W=="")return 0;var B=Number(W);W=B==0&&_.vv(W)?NaN:B;if(isNaN(W))return 1;WW(a,W,w,Z,N,Number);return null};
_.t.logFloatParseError_=function(){};
_.t.parseAndSetBoolOption_=function(a,W,w,Z,N){if(W!="")return 2;WW(a,!0,w,Z,N,Boolean);return null};
_.t.logBoolParseError_=function(){};
_.t.parseAndSetStringOption_=function(a,W,w,Z,N){if(W=="")return 0;WW(a,W,w,Z,N,function(B){return B?"1":""});
return null};
_.t.logStringParseError_=function(){};
_.t.parseAndSetUint64Base64Option_=function(a,W,w,Z,N){if(W=="")return 0;WW(a,W,w,Z,N,function(B){return B?1:0});
return null};
var IAX=function(a,W){switch(W){case 0:return(0,_.Sk)(a.parseAndSetIntOption_,a);case 2:return(0,_.Sk)(a.parseAndSetFloatOption_,a);case 3:return(0,_.Sk)(a.parseAndSetBoolOption_,a);case 4:return(0,_.Sk)(a.parseAndSetStringOption_,a);case 1:return(0,_.Sk)(a.parseAndSetUint64Base64Option_,a);default:return function(){}}},PEK=function(a,W){switch(W){case 0:return(0,_.Sk)(a.logIntParseError_,a);
case 2:return(0,_.Sk)(a.logFloatParseError_,a);case 3:return(0,_.Sk)(a.logBoolParseError_,a);case 4:case 1:return(0,_.Sk)(a.logStringParseError_,a);default:return function(){}}},X0K=function(a,W,w){this.valueProto_=a;
this.signatureFlagProto_=W;this.JSC$17251_valid_=w};
X0K.prototype.isValid=function(){return this.JSC$17251_valid_};var OSI=function(a){this.JSC$17252_parser_=null;this.JSC$17252_components_=[];this.JSC$17252_parsedOptions_=null;v2E(this,a)},g2k=function(a){a.JSC$17252_parser_==null&&(a.JSC$17252_parser_=new Kma);
return a.JSC$17252_parser_},v2E=function(a,W){a.JSC$17252_parsedOptions_=W?typeof W==="string"?g2k(a).parse(W):W:g2k(a).parse("")},wc=function(a,W){return a==W?!1:!0};
_.t=OSI.prototype;_.t.JSC$17254_setCrop=function(a){a=a||void 0;var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,_.eF(w,2),_.eF(W.signatureFlagProto_,2))&&_.wh(w,2,a);return this};
_.t.JSC$17254_setCircleCrop=function(a){a=a||void 0;var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,Ps(w,51),Ps(W.signatureFlagProto_,51))&&_.wh(w,51,a);return this};
_.t.JSC$17254_setImageCrop=function(a){a=a||void 0;var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,Ps(w,32),Ps(W.signatureFlagProto_,32))&&_.wh(w,32,a);return this};
_.t.JSC$17254_setHeight=function(a){var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,w.getHeight(),W.signatureFlagProto_.getHeight())&&_.qT(w,13,a);return this};
_.t.setCenterCrop=function(a){a=a||void 0;var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,_.eF(w,20),_.eF(W.signatureFlagProto_,20))&&w.setCenterCrop(a);return this};
_.t.JSC$17254_setSmartCrop=function(a){a=a||void 0;var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,_.eF(w,19),_.eF(W.signatureFlagProto_,19))&&_.wh(w,19,a);return this};
_.t.JSC$17254_setPad=function(a){a=a||void 0;var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,Ps(w,60),Ps(W.signatureFlagProto_,60))&&_.wh(w,60,a);return this};
_.t.JSC$17254_setSmartCropUseFace=function(a){a=a||void 0;var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,_.eF(w,67),_.eF(W.signatureFlagProto_,67))&&_.wh(w,67,a);return this};
_.t.JSC$17254_setSmartCropNoClip=function(a){a=a||void 0;var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,_.eF(w,52),_.eF(W.signatureFlagProto_,52))&&_.wh(w,52,a);return this};
_.t.setSize=function(a){var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,w.getSize(),W.signatureFlagProto_.getSize())&&w.setSize(a);return this};
_.t.setToken=function(a){a=a||void 0;var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,w.getToken(),W.signatureFlagProto_.getToken())&&w.setToken(a);return this};
_.t.JSC$17254_setWidth=function(a){var W=this.JSC$17252_parsedOptions_,w=W.valueProto_;wc(a,w.getWidth(),W.signatureFlagProto_.getWidth())&&_.qT(w,12,a);return this};
_.t.clearOptions=function(){v2E(this,"");return this};
_.t.build=function(){this.JSC$17252_components_.length=0;var a=this.JSC$17252_parsedOptions_,W=a.valueProto_;a=a.signatureFlagProto_;Zz(this,"s",W.getSize(),a.getSize());Zz(this,"w",W.getWidth(),a.getWidth());Nb(this,"c",_.eF(W,2),_.eF(a,2));Nb(this,"d",_.eF(W,3),_.eF(a,3));Zz(this,"h",W.getHeight(),a.getHeight());Nb(this,"s",Ps(W,33),Ps(a,33));Nb(this,"h",W.getHtml(),a.getHtml());Nb(this,"p",_.eF(W,19),_.eF(a,19));Nb(this,"pp",_.eF(W,52),_.eF(a,52));Nb(this,"pf",_.eF(W,67),_.eF(a,67));Nb(this,"n",
_.eF(W,20),_.eF(a,20));Zz(this,"r",XP(W,26),XP(a,26));Nb(this,"r",_.eF(W,6),_.eF(a,6));Nb(this,"o",Ps(W,27),Ps(a,27));var w=_.cz(W,7,_.Uy);tO(this,"o",w,_.cz(a,7,_.Uy));w=_.cz(W,29,_.Uy);tO(this,"j",w,_.cz(a,29,_.Uy));Zz(this,"x",XP(W,9),XP(a,9));Zz(this,"y",XP(W,10),XP(a,10));Zz(this,"z",XP(W,11),XP(a,11));Nb(this,"g",_.eF(W,14),_.eF(a,14));Zz(this,"e",XP(W,15),XP(a,15));tO(this,"f",_.I$(W,16),_.I$(a,16));Nb(this,"k",Ps(W,17),Ps(a,17));Nb(this,"u",Ps(W,18),!0);Nb(this,"ut",Ps(W,45),!0);Nb(this,"i",
Ps(W,22),!0);Nb(this,"a",Ps(W,21),Ps(a,21));Nb(this,"b",_.eF(W,23),_.eF(a,23));Zz(this,"b",XP(W,38),XP(a,38));Zz(this,"c",XP(W,39),XP(a,39),16,8);tO(this,"q",_.I$(W,28),_.I$(a,28));Nb(this,"fh",Ps(W,30),Ps(a,30));Nb(this,"fv",Ps(W,31),Ps(a,31));Nb(this,"fg",_.eF(W,34),_.eF(a,34));Nb(this,"ci",Ps(W,32),Ps(a,32));tO(this,"t",W.getToken(),a.getToken());tO(this,"nt0",_.I$(W,36),_.I$(a,36));Nb(this,"rw",_.eF(W,35),_.eF(a,35));Nb(this,"rwu",_.eF(W,41),_.eF(a,41));Nb(this,"rwa",_.eF(W,64),_.eF(a,64));Nb(this,
"nw",_.eF(W,48),_.eF(a,48));Nb(this,"rh",_.eF(W,49),_.eF(a,49));Nb(this,"no",_.eF(W,37),_.eF(a,37));Nb(this,"ns",Ps(W,40),Ps(a,40));Zz(this,"k",XP(W,42),XP(a,42));Zz(this,"p",XP(W,43),XP(a,43));Zz(this,"l",XP(W,44),XP(a,44));Zz(this,"v",XP(W,62),XP(a,62));Nb(this,"nu",Ps(W,46),Ps(a,46));Nb(this,"ft",Ps(W,50),Ps(a,50));Nb(this,"cc",Ps(W,51),Ps(a,51));Nb(this,"nd",Ps(W,53),Ps(a,53));Nb(this,"ip",Ps(W,54),Ps(a,54));Nb(this,"nc",Ps(W,55),Ps(a,55));Zz(this,"a",XP(W,56),XP(a,56));Nb(this,"rj",Ps(W,57),
Ps(a,57));Nb(this,"rp",Ps(W,58),Ps(a,58));Nb(this,"rg",Ps(W,59),Ps(a,59));Nb(this,"pd",Ps(W,60),Ps(a,60));Nb(this,"pa",Ps(W,61),Ps(a,61));Zz(this,"m",XP(W,63),XP(a,63));Zz(this,"vb",vs(W,68),vs(a,68));Zz(this,"vl",vs(W,69),vs(a,69));Nb(this,"lf",Ps(W,65),Ps(a,65));Nb(this,"mv",Ps(W,66),Ps(a,66));Nb(this,"id",Ps(W,70),Ps(a,70));Zz(this,"ic",XP(W,71),!0);Nb(this,"pg",_.eF(W,72),_.eF(a,72));Nb(this,"mo",Ps(W,73),Ps(a,73));Nb(this,"al",Ps(W,74),Ps(a,74));Zz(this,"iv",vs(W,75),vs(a,75));Zz(this,"pi",gd(W,
76),gd(a,76));Zz(this,"ya",gd(W,77),gd(a,77));Zz(this,"ro",gd(W,78),gd(a,78));Zz(this,"fo",gd(W,79),gd(a,79));Nb(this,"df",Ps(W,80),Ps(a,80));tO(this,"mm",_.I$(W,81),_.I$(a,81));Nb(this,"sg",Ps(W,82),Ps(a,82));Nb(this,"gd",Ps(W,83),Ps(a,83));Nb(this,"fm",Ps(W,84),Ps(a,84));Zz(this,"ba",XP(W,85),XP(a,85));Zz(this,"br",XP(W,86),XP(a,86));Zz(this,"bc",W.getBackgroundColor(),a.getBackgroundColor(),16,8);Zz(this,"pc",XP(W,88),XP(a,88),16,8);Zz(this,"sc",XP(W,89),XP(a,89),16,8);Nb(this,"dv",Ps(W,90),Ps(a,
90));Nb(this,"md",Ps(W,91),Ps(a,91));Zz(this,"cp",XP(W,92),XP(a,92));Nb(this,"sm",Ps(W,93),Ps(a,93));Zz(this,"cv",XP(W,94),XP(a,94));Nb(this,"ng",Ps(W,95),Ps(a,95));Nb(this,"il",Ps(W,96),Ps(a,96));Nb(this,"lo",Ps(W,97),Ps(a,97));Nb(this,"vm",Ps(W,98),Ps(a,98));tO(this,"dc",_.I$(W,99),_.I$(a,99));Nb(this,"rf",Ps(W,100),Ps(a,100));tO(this,"vf",_.I$(W,102),_.I$(a,102));Nb(this,"ra",_.eF(W,103),_.eF(a,103));Nb(this,"ckm",Ps(W,104),Ps(a,104));Nb(this,"gm",Ps(W,105),Ps(a,105));Nb(this,"ngm",Ps(W,106),Ps(a,
106));Zz(this,"em",XP(W,107),XP(a,107));Nb(this,"cr",Ps(W,108),Ps(a,108));Zz(this,"sl",W.getStoryboardLevel(),a.getStoryboardLevel());Zz(this,"sb",XP(W,110),XP(a,110));tO(this,"pt",_.I$(W,111),_.I$(a,111));tO(this,"gce",_.I$(W,112),_.I$(a,112));Nb(this,"tm",Ps(W,113),Ps(a,113));Nb(this,"ntm",Ps(W,114),Ps(a,114));return this.JSC$17252_components_.join("-")};
var Zz=function(a,W,w,Z,N,B){if(w!=null){var I=N==void 0||N!=10&&N!=16?10:N;w=Number(w).toString(I);N=new xEI;N.append(I==16?"0x":"");I=N.append;B==void 0?B="":(B-=w.length,B=B<=0?"":(0,_.wlH)("0",B));I.call(N,B);N.append(w);o2k(a,W,N.toString(),!!Number(Z))}},Nb=function(a,W,w,Z){w&&o2k(a,W,"",!!Z)},tO=function(a,W,w,Z){w&&o2k(a,W,String(w),!!Number(Z))},o2k=function(a,W,w,Z){Z&&(W=W.charAt(0).toUpperCase()+W.substring(1));
a.JSC$17252_components_.push(W+w)};_.NT(TY,OSI);_.t=TY.prototype;_.t.JSC$17254_setCrop=function(a){a&&$0(this);return TY.superClass_.JSC$17254_setCrop.call(this,a)};
_.t.JSC$17254_setHeight=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return TY.superClass_.JSC$17254_setHeight.call(this,a)};
_.t.JSC$17254_setImageCrop=function(a){a&&$0(this);return TY.superClass_.JSC$17254_setImageCrop.call(this,a)};
_.t.JSC$17254_setCircleCrop=function(a){a&&$0(this);return TY.superClass_.JSC$17254_setCircleCrop.call(this,a)};
_.t.setSize=function(a){_.tL(a)&&(a=Math.max(a.width,a.height));a=a==null||a<0?void 0:a;a!=null&&(this.JSC$17254_setWidth(),this.JSC$17254_setHeight());return TY.superClass_.setSize.call(this,a)};
_.t.JSC$17254_setSmartCrop=function(a){a&&$0(this);return TY.superClass_.JSC$17254_setSmartCrop.call(this,a)};
_.t.JSC$17254_setSmartCropNoClip=function(a){a&&$0(this);return TY.superClass_.JSC$17254_setSmartCropNoClip.call(this,a)};
_.t.JSC$17254_setSmartCropUseFace=function(a){a&&$0(this);return TY.superClass_.JSC$17254_setSmartCropUseFace.call(this,a)};
_.t.setCenterCrop=function(a){a&&$0(this);return TY.superClass_.setCenterCrop.call(this,a)};
_.t.JSC$17254_setPad=function(a){a&&$0(this);return TY.superClass_.JSC$17254_setPad.call(this,a)};
_.t.JSC$17254_setWidth=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return TY.superClass_.JSC$17254_setWidth.call(this,a)};
var k6I=function(a){a.clearOptions();var W=a.JSC$17252_parsedOptions_,w=W.valueProto_;wc(!0,_.eF(w,3),_.eF(W.signatureFlagProto_,3))&&_.wh(w,3,!0);return a},$0=function(a){a.setCenterCrop();
a.JSC$17254_setCircleCrop();a.JSC$17254_setCrop();a.JSC$17254_setImageCrop();a.JSC$17254_setPad();a.JSC$17254_setSmartCrop();a.JSC$17254_setSmartCropNoClip();a.JSC$17254_setSmartCropUseFace()};
TY.prototype.build=function(){var a=this.JSC$17252_parsedOptions_.valueProto_;Ps(a,18)||Ps(a,45)?a.getSize()||this.setSize(0):(a=this.JSC$17252_parsedOptions_.valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.JSC$17254_setHeight(),this.JSC$17254_setWidth(),$0(this)));return TY.superClass_.build.call(this)};var USX=/^[^\/]*\/\//,BW=function(a,W){W=W===void 0?!1:W;this.original_=a;this.originalPrefix_="";(a=this.original_.match(USX))&&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_=_.MF(a,!0);this.isFreeformUrl_=W;this.JSC$17258_valid_=!0;this.obfuscated_=!1},OIk=function(a,W){a.JSC$17260_pathPrefix_=a.JSC$17260_pathPrefix_?a.JSC$17260_pathPrefix_+("/"+W):W},lX=function(a){if(a.JSC$17260_components_==
void 0){var W=a.uri_.getPath().substring(1);
a.JSC$17260_pathPrefix_=null;if(a.isFreeformUrl_){a.JSC$17260_components_=[];if((W.match(/=/g)||[]).length>1)return a.JSC$17258_valid_=!1,a.JSC$17260_components_;var w=W.indexOf("=");w!=-1?(a.JSC$17260_components_.push(W.substr(0,w)),a.JSC$17260_components_.push(W.substr(w+1))):a.JSC$17260_components_.push(W);return a.JSC$17260_components_}a.JSC$17260_components_=W.split("/");W=a.JSC$17260_components_.length;W>2&&a.JSC$17260_components_[0]=="u"&&(OIk(a,a.JSC$17260_components_[0]+"/"+a.JSC$17260_components_[1]),
a.JSC$17260_components_.shift(),a.JSC$17260_components_.shift(),W-=2);if(W==0||W==4||W>7)return a.JSC$17258_valid_=!1,a.JSC$17260_components_;if(W==2)OIk(a,a.JSC$17260_components_[0]);else if(a.JSC$17260_components_[0]=="image")OIk(a,a.JSC$17260_components_[0]);else if(W==7||W==3)return a.JSC$17258_valid_=!1,a.JSC$17260_components_;if(W<=3){a.obfuscated_=!0;W==3&&(OIk(a,a.JSC$17260_components_[1]),a.JSC$17260_components_.shift(),--W);--W;w=a.JSC$17260_components_[W];var Z=w.indexOf("=");Z!=-1&&(a.JSC$17260_components_[W]=
w.substr(0,Z),a.JSC$17260_components_.push(w.substr(Z+1)))}}return a.JSC$17260_components_};
BW.prototype.isValid=function(){lX(this);return this.JSC$17258_valid_};
BW.prototype.isObfuscated=function(){lX(this);return this.obfuscated_};
var lt0=function(a){lX(a);return a.isFreeformUrl_},IF=function(a){lX(a);
a.JSC$17260_pathPrefix_==void 0&&(a.JSC$17260_pathPrefix_=null);return a.JSC$17260_pathPrefix_},Iti=function(a){switch(lX(a).length){case 7:return!0;
case 6:return IF(a)==null;case 5:return!1;case 3:return!0;case 2:return IF(a)==null;case 1:return!1;default:return!1}},PW=function(a,W){if(lt0(a))a:{switch(W){case 7:W=0;
break;case 4:if(!Iti(a)){a=null;break a}W=1;break;default:a=null;break a}a=lX(a)[W]}else if(a.isObfuscated())a:{var w=IF(a)!=null?1:0;switch(W){case 6:W=w;break;case 4:if(!Iti(a)){a=null;break a}W=1+w;break;default:a=null;break a}a=lX(a)[W]}else a:{w=IF(a)!=null?1:0;switch(W){case 0:W=w;break;case 1:W=1+w;break;case 2:W=2+w;break;case 3:W=3+w;break;case 4:if(!Iti(a)){a=null;break a}W=4+w;break;case 5:W=Iti(a)?1:0;W=4+w+W;break;default:a=null;break a}a=lX(a)[W]}return a};
BW.prototype.getOptions=function(){this.options_==void 0&&(this.options_=PW(this,4));return this.options_};var TQD=function(){};
TQD.prototype.parse=function(a,W){return new S$X(a,W===void 0?!1:W)};
var S$X=function(a,W){BW.call(this,a,W===void 0?!1:W)};
_.c(S$X,BW);_.NT(Kb,TY);var Y$E;Kb.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Kb.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=Kb.superClass_.build.call(this),W=[];IF(this.parsedImageUrl_)!=null&&W.push(IF(this.parsedImageUrl_));var w=lt0(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var Z=this.parsedImageUrl_;Z.obfuscatedData_==void 0&&(Z.obfuscatedData_=PW(Z,6));W.push(Z.obfuscatedData_+(a?"="+a:""))}else if(w){Z=W.push;var N=this.parsedImageUrl_;N.freeformUrlPath_===void 0&&(N.freeformUrlPath_=PW(N,
7));Z.call(W,N.freeformUrlPath_);a&&W.push(a)}else Z=W.push,N=this.parsedImageUrl_,N.obfuscatedGaiaId_==void 0&&(N.obfuscatedGaiaId_=PW(N,0)),Z.call(W,N.obfuscatedGaiaId_),Z=W.push,N=this.parsedImageUrl_,N.photoId_==void 0&&(N.photoId_=PW(N,1)),Z.call(W,N.photoId_),Z=W.push,N=this.parsedImageUrl_,N.imageVersion_==void 0&&(N.imageVersion_=PW(N,2)),Z.call(W,N.imageVersion_),Z=W.push,N=this.parsedImageUrl_,N.signature_==void 0&&(N.signature_=PW(N,3)),Z.call(W,N.signature_),a&&W.push(a),a=W.push,Z=this.parsedImageUrl_,
Z.filename_==void 0&&(Z.filename_=PW(Z,5)),a.call(W,Z.filename_);W=w?W.join("="):W.join("/");W=_.MF(this.protocolPrefix_+this.JSC$17266_domain_+"/"+W+(this.JSC$17266_query_?"?"+this.JSC$17266_query_:"")).toString();W.startsWith("%3a//")&&(W=W.replace("%3a//","://"));return W};var Pw9=_.ma(["viewBox"]),X1i=_.ma(["width"]),vK0=_.ma(["height"]),gKK=_.ma(["fill"]),oKi=_.ma(["id"]),kVX=_.ma(["x"]),UK9=_.ma(["y"]);pGa.prototype.getLength=function(){return this.parsedData.length};
pGa.prototype.write=function(a){for(var W=0,w=this.parsedData.length;W<w;W++)a.put(this.parsedData[W],8)};
var ns0=function(a,W){var w=new pGa(W);a.dataList.push(w);w=a.errorCorrectLevel;var Z=1,N=encodeURI(W).toString().replace(/%[0-9a-fA-F]{2}/g,"a");W=N.length+(N.length!=W?3:0);N=0;for(var B=XF.length;N<=B;N++){var I=0;switch(w){case 1:I=XF[N][0];break;case 0:I=XF[N][1];break;case 3:I=XF[N][2];break;case 2:I=XF[N][3]}if(W<=I)break;else Z++}if(Z>XF.length)throw Error("tk");a.typeNumber=Z;a.dataCache=null};
rsI.prototype.isDark=function(a,W){if(a<0||this.moduleCount<=a||W<0||this.moduleCount<=W)throw Error("lk`"+a+"`"+W);return this.modules[a][W]};
for(var jmX=function(a,W,w){a.moduleCount=a.typeNumber*4+17;a.modules=Array(a.moduleCount);for(var Z=0;Z<a.moduleCount;Z++){a.modules[Z]=Array(a.moduleCount);for(var N=0;N<a.moduleCount;N++)a.modules[Z][N]=null}Omd(a,0,0);Omd(a,a.moduleCount-7,0);Omd(a,0,a.moduleCount-7);Z=SVa[a.typeNumber-1];for(N=0;N<Z.length;N++)for(var B=0;B<Z.length;B++){var I=Z[N],X=Z[B];if(a.modules[I][X]==null)for(var v=-2;v<=2;v++)for(var U=-2;U<=2;U++)a.modules[I+v][X+U]=v==-2||v==2||U==-2||U==2||v==0&&U==0?!0:!1}for(Z=
8;Z<a.moduleCount-8;Z++)a.modules[Z][6]==null&&(a.modules[Z][6]=Z%2==0);for(Z=8;Z<a.moduleCount-8;Z++)a.modules[6][Z]==null&&(a.modules[6][Z]=Z%2==0);Z=a.errorCorrectLevel<<3|w;for(N=Z<<10;vW(N)-vW(1335)>=0;)N^=1335<<vW(N)-vW(1335);Z=(Z<<10|N)^21522;for(N=0;N<15;N++)B=!W&&(Z>>N&1)==1,N<6?a.modules[N][8]=B:N<8?a.modules[N+1][8]=B:a.modules[a.moduleCount-15+N][8]=B;for(N=0;N<15;N++)B=!W&&(Z>>N&1)==1,N<8?a.modules[8][a.moduleCount-N-1]=B:N<9?a.modules[8][15-N-1+1]=B:a.modules[8][15-N-1]=B;a.modules[a.moduleCount-
8][8]=!W;if(a.typeNumber>=7){Z=a.typeNumber;for(N=Z<<12;vW(N)-vW(7973)>=0;)N^=7973<<vW(N)-vW(7973);Z=Z<<12|N;for(N=0;N<18;N++)B=!W&&(Z>>N&1)==1,a.modules[Math.floor(N/3)][N%3+a.moduleCount-8-3]=B;for(N=0;N<18;N++)B=!W&&(Z>>N&1)==1,a.modules[N%3+a.moduleCount-8-3][Math.floor(N/3)]=B}if(a.dataCache==null){N=a.typeNumber;B=a.dataList;W=a.errorCorrectLevel;Z=YVn(N,W);if(Z==void 0)throw Error("sk`"+N+"`"+W);I=Z.length/3;W=[];for(X=0;X<I;X++){v=Z[X*3];U=Z[X*3+1];for(var O=Z[X*3+2],S=0;S<v;S++)W.push(new As0(U,
O))}Z=new h9d;for(I=0;I<B.length;I++)X=B[I],Z.put(X.mode,4),Z.put(X.getLength(),TFf(X.mode,N)),X.write(Z);for(I=N=0;I<W.length;I++)N+=W[I].dataCount;if(Z.length>N*8)throw Error("mk`"+Z.length+"`"+N*8);for(Z.length+4<=N*8&&Z.put(0,4);Z.length%8!=0;)Kv9(Z,!1);for(;!(Z.length>=N*8);){Z.put(236,8);if(Z.length>=N*8)break;Z.put(17,8)}B=N=U=0;I=Array(W.length);X=Array(W.length);for(v=0;v<W.length;v++){S=W[v].dataCount;var T=W[v].totalCount-S;N=Math.max(N,S);B=Math.max(B,T);I[v]=Array(S);for(O=0;O<I[v].length;O++)I[v][O]=
255&Z.buffer[O+U];U+=S;O=T;S=new pb([1],0);for(T=0;T<O;T++)S=S.multiply(new pb([1,p1i(T)],0));O=S;S=(new pb(I[v],O.getLength()-1)).mod(O);X[v]=Array(O.getLength()-1);for(O=0;O<X[v].length;O++)T=O+S.getLength()-X[v].length,X[v][O]=T>=0?S.get(T):0}for(O=Z=0;O<W.length;O++)Z+=W[O].totalCount;Z=Array(Z);for(O=U=0;O<N;O++)for(v=0;v<W.length;v++)O<I[v].length&&(Z[U++]=I[v][O]);for(O=0;O<B;O++)for(v=0;v<W.length;v++)O<X[v].length&&(Z[U++]=X[v][O]);a.dataCache=Z}W=a.dataCache;Z=-1;N=a.moduleCount-1;B=7;I=
0;for(X=a.moduleCount-1;X>0;X-=2)for(X==6&&X--;;){for(v=0;v<2;v++)a.modules[N][X-v]==null&&(U=!1,I<W.length&&(U=(W[I]>>>B&1)==1),r29(w,N,X-v)&&(U=!U),a.modules[N][X-v]=U,B--,B==-1&&(I++,B=7));N+=Z;if(N<0||a.moduleCount<=N){N-=Z;Z=-Z;break}}},Omd=function(a,W,w){for(var Z=-1;Z<=7;Z++)if(!(W+Z<=-1||a.moduleCount<=W+Z))for(var N=-1;N<=7;N++)w+N<=-1||a.moduleCount<=w+N||(a.modules[W+Z][w+N]=0<=Z&&Z<=6&&(N==0||N==6)||0<=N&&N<=6&&(Z==0||Z==6)||2<=Z&&Z<=4&&2<=N&&N<=4?!0:!1)},LmD=function(a){for(var W=0,
w=0,Z=0;Z<8;Z++){jmX(a,!0,Z);
var N=a;for(var B=N.moduleCount,I=0,X=0;X<B;X++)for(var v=0;v<B;v++){for(var U=0,O=N.isDark(X,v),S=-1;S<=1;S++)if(!(X+S<0||B<=X+S))for(var T=-1;T<=1;T++)v+T<0||B<=v+T||(S!=0||T!=0)&&O==N.isDark(X+S,v+T)&&U++;U>5&&(I+=3+U-5)}for(X=0;X<B-1;X++)for(v=0;v<B-1;v++)if(U=0,N.isDark(X,v)&&U++,N.isDark(X+1,v)&&U++,N.isDark(X,v+1)&&U++,N.isDark(X+1,v+1)&&U++,U==0||U==4)I+=3;for(X=0;X<B;X++)for(v=0;v<B-6;v++)N.isDark(X,v)&&!N.isDark(X,v+1)&&N.isDark(X,v+2)&&N.isDark(X,v+3)&&N.isDark(X,v+4)&&!N.isDark(X,v+5)&&
N.isDark(X,v+6)&&(I+=40);for(v=0;v<B;v++)for(X=0;X<B-6;X++)N.isDark(X,v)&&!N.isDark(X+1,v)&&N.isDark(X+2,v)&&N.isDark(X+3,v)&&N.isDark(X+4,v)&&!N.isDark(X+5,v)&&N.isDark(X+6,v)&&(I+=40);for(v=U=0;v<B;v++)for(X=0;X<B;X++)N.isDark(X,v)&&U++;N=I+=Math.abs(100*U/B/B-50)/5*10;if(Z==0||W>N)W=N,w=Z}return w},SVa=[[],
[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]],vW=function(a){for(var W=0;a!=0;)W++,a>>>=1;return W},r29=function(a,W,w){switch(a){case 0:return(W+w)%2==0;
case 1:return W%2==0;case 2:return w%3==0;case 3:return(W+w)%3==0;case 4:return(Math.floor(W/2)+Math.floor(w/3))%2==0;case 5:return W*w%2+W*w%3==0;case 6:return(W*w%2+W*w%3)%2==0;case 7:return(W*w%3+(W+w)%2)%2==0;default:throw Error("nk`"+a);}},TFf=function(a,W){if(1<=W&&W<10)switch(a){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("ok`"+a);}else if(W<27)switch(a){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("ok`"+a);}else if(W<41)switch(a){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("ok`"+a);}else throw Error("pk`"+W);},oF=function(a){if(a<1)throw Error("qk`"+a);
return A2f[a]},p1i=function(a){for(;a<0;)a+=255;
for(;a>=256;)a-=255;return k0[a]},k0=Array(256),A2f=Array(256),hxI=0;hxI<8;hxI++)k0[hxI]=1<<hxI;
for(var UC=8;UC<256;UC++)k0[UC]=k0[UC-4]^k0[UC-5]^k0[UC-6]^k0[UC-8];for(var imf=0;imf<255;imf++)A2f[k0[imf]]=imf;pb.prototype.get=function(a){return this.num[a]};
pb.prototype.getLength=function(){return this.num.length};
pb.prototype.multiply=function(a){for(var W=Array(this.getLength()+a.getLength()-1),w=0;w<this.getLength();w++)for(var Z=0;Z<a.getLength();Z++)W[w+Z]^=p1i(oF(this.get(w))+oF(a.get(Z)));return new pb(W,0)};
pb.prototype.mod=function(a){if(this.getLength()-a.getLength()<0)return this;for(var W=oF(this.get(0))-oF(a.get(0)),w=Array(this.getLength()),Z=0;Z<this.getLength();Z++)w[Z]=this.get(Z);for(Z=0;Z<a.getLength();Z++)w[Z]^=p1i(oF(a.get(Z))+W);return(new pb(w,0)).mod(a)};
var c20=[[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]],YVn=function(a,W){switch(W){case 1:return c20[(a-1)*4];case 0:return c20[(a-1)*4+1];case 3:return c20[(a-1)*4+2];case 2:return c20[(a-1)*4+3]}};
h9d.prototype.get=function(a){return(this.buffer[Math.floor(a/8)]>>>7-a%8&1)==1};
h9d.prototype.put=function(a,W){for(var w=0;w<W;w++)Kv9(this,(a>>>W-w-1&1)==1)};
var Kv9=function(a,W){var w=Math.floor(a.length/8);a.buffer.length<=w&&a.buffer.push(0);W&&(a.buffer[w]|=128>>>a.length%8);a.length++},XF=[[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]],e9K=function(){var a=function(W,w){this.JSC$17286__el=W;this.JSC$17286__htOption=w};
a.prototype.draw=function(W){function w(O,S){O=document.createElementNS("http://www.w3.org/2000/svg",O);for(var T in S)S.hasOwnProperty(T)&&(T==="href"?_.Jv2(O,S[T]):_.bq([_.z2(Pw9),_.z2(X1i),_.z2(vK0),_.z2(gKK),_.z2(oKi),_.z2(kVX),_.z2(UK9)],O,T,S[T]));return O}
var Z=this.JSC$17286__htOption,N=this.JSC$17286__el,B=W.moduleCount;this.clear();var I=w("svg",{viewBox:"0 0 "+String(B)+" "+String(B),width:"100%",height:"100%",fill:Z.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});N.appendChild(I);I.appendChild(w("rect",{fill:Z.colorLight,width:"100%",height:"100%"}));I.appendChild(w("rect",{fill:Z.colorDark,width:"1",height:"1",id:"template"}));for(var X=0;X<B;X++)for(var v=0;v<B;v++)if(W.isDark(X,v)){var U=w("use",{x:String(X),y:String(v),href:"#template"});
I.appendChild(U)}};
a.prototype.clear=function(){for(;this.JSC$17286__el.hasChildNodes();)this.JSC$17286__el.removeChild(this.JSC$17286__el.lastChild)};
return a}(),csf=document.documentElement.tagName.toLowerCase()==="svg"?e9K:typeof CanvasRenderingContext2D!="undefined"?function(){var a=function(W,w){this._bIsPainted=!1;
iSz();this.JSC$17286__htOption=w;this._elCanvas=document.createElement("canvas");this._elCanvas.width=w.width;this._elCanvas.height=w.height;W.appendChild(this._elCanvas);this.JSC$17286__el=W;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$17286__el.appendChild(this._elImage);this._bSupportDataURI=null};
a.prototype._onMakeImage=function(){var W=this._elCanvas.toDataURL("image/png");this._elImage.src=W;this._elImage.style.display="block";this._elCanvas.style.display="none"};
a.prototype._safeSetDataURI=function(W,w){var Z=this;Z._fFail=w;Z._fSuccess=W;Z._bSupportDataURI===null?(W=_.PM("IMG"),w=function(){Z._bSupportDataURI=!1;Z._fFail&&Z._fFail.call(Z)},W.onabort=w,W.onerror=w,W.onload=function(){Z._bSupportDataURI=!0;
Z._fSuccess&&Z._fSuccess.call(Z)},W.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):Z._bSupportDataURI===!0&&Z._fSuccess?Z._fSuccess.call(Z):Z._bSupportDataURI===!1&&Z._fFail&&Z._fFail.call(Z)};
a.prototype.draw=function(W){var w=this._oContext,Z=this.JSC$17286__htOption,N=W.moduleCount,B=Z.width/N,I=Z.height/N,X=Math.round(B),v=Math.round(I);this._elImage.style.display="none";this.clear();for(var U=0;U<N;U++)for(var O=0;O<N;O++){var S=W.isDark(U,O),T=O*B,p=U*I;w.strokeStyle=S?Z.colorDark:Z.colorLight;w.lineWidth=1;w.fillStyle=S?Z.colorDark:Z.colorLight;w.fillRect(T,p,B,I);w.strokeRect(Math.floor(T)+.5,Math.floor(p)+.5,X,v);w.strokeRect(Math.ceil(T)-.5,Math.ceil(p)-.5,X,v)}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(W){return W?Math.floor(W*1E3)/1E3:W};
return a}():function(){var a=function(W,w){this.JSC$17286__el=W;
this.JSC$17286__htOption=w};
a.prototype.draw=function(W){for(var w=this.JSC$17286__htOption,Z=this.JSC$17286__el,N=W.moduleCount,B=Math.floor(w.width/N),I=Math.floor(w.height/N),X=['<table style="border:0;border-collapse:collapse;">'],v=0;v<N;v++){X.push("<tr>");for(var U=0;U<N;U++)X.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+B+"px;height:"+I+"px;background-color:"+(W.isDark(v,U)?w.colorDark:w.colorLight)+';"></td>');X.push("</tr>")}X.push("</table>");W=X.join("");W=_.fEJ(_.myH,W);_.xf(Z,W);
W=Z.childNodes[0];N=(w.width-W.offsetWidth)/2;B=(w.height-W.offsetHeight)/2;N>0&&B>0&&(W.style.margin=B+"px "+N+"px")};
a.prototype.clear=function(){this.JSC$17286__el.textContent=""};
return a}();
Jsk.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17289__android||this.JSC$17289__android>=3)&&this._oDrawing.makeImage()};
Jsk.prototype.clear=function(){this._oDrawing.clear()};
_.NH.QRCode=Jsk;var ex9={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var OC=function(){};
OC.prototype.stringify=function(a){return _.NH.JSON.stringify(a,void 0)};
OC.prototype.parse=function(a){return _.NH.JSON.parse(a,void 0)};var nKi=function(){_.kO.call(this,"z")};
_.NT(nKi,_.kO);var jrd=function(){_.kO.call(this,"y")};
_.NT(jrd,_.kO);var LvD=null,J2I=function(){return LvD=LvD||new _.Ti},Fv9=function(a){_.kO.call(this,"serverreachability",a)};
_.NT(Fv9,_.kO);var SC=function(a){var W=J2I();W.dispatchEvent(new Fv9(W,a))},Mii=function(a){_.kO.call(this,"statevent",a)};
_.NT(Mii,_.kO);var Y0=function(a){var W=J2I();W.dispatchEvent(new Mii(W,a))},Rxk=function(a,W,w,Z){_.kO.call(this,"timingevent",a);
this.size=W;this.rtt=w;this.retries=Z};
_.NT(Rxk,_.kO);var qV2=function(a,W,w){var Z=J2I();Z.dispatchEvent(new Rxk(Z,a,W,w))},To=function(a,W){if(typeof a!=="function")throw Error("uk");
return _.NH.setTimeout(function(){a()},W)};var K5=function(){this.redactEnabled_=!0};
K5.prototype.disableRedact=function(){this.redactEnabled_=!1};
var QrX=function(a,W,w,Z,N,B){a.info(function(){if(a.redactEnabled_)if(B){var I="";for(var X=B.split("&"),v=0;v<X.length;v++){var U=X[v].split("=");if(U.length>1){var O=U[0];U=U[1];var S=O.split("_");I=S.length>=2&&S[1]=="type"?I+(O+"="+U+"&"):I+(O+"=redacted&")}}}else I=null;else I=B;return"XMLHTTP REQ ("+Z+") [attempt "+N+"]: "+W+"\n"+w+"\n"+I})},xKa=function(a,W,w,Z,N,B,I){a.info(function(){return"XMLHTTP RESP ("+Z+") [ attempt "+N+"]: "+W+"\n"+w+"\n"+B+" "+I})},p5=function(a,W,w,Z){a.info(function(){return"XMLHTTP TEXT ("+
W+"): "+bmX(a,w)+(Z?" "+Z:"")})},srd=function(a,W){a.info(function(){return"TIMEOUT: "+W})};
K5.prototype.debug=function(){};
K5.prototype.info=function(){};
K5.prototype.warning=function(){};
var bmX=function(a,W){if(!a.redactEnabled_)return W;if(!W)return null;try{var w=JSON.parse(W);if(w)for(var Z=0;Z<w.length;Z++)if(Array.isArray(w[Z])){var N=w[Z];if(!(N.length<2)){var B=N[1];if(Array.isArray(B)&&!(B.length<1)){var I=B[0];if(I!="noop"&&I!="stop"&&I!="close")for(var X=1;X<B.length;X++)B[X]=""}}}return(0,_.c5)(w)}catch(v){return a.debug("Exception parsing expected JS array - probably was not JS"),W}};var rc=function(a,W,w,Z,N){this.JSC$17311_channel_=a;this.JSC$17311_channelDebug_=W;this.sid_=w;this.JSC$17311_rid_=Z;this.JSC$17311_retryId_=N||1;this.JSC$17311_eventHandler_=new _.am(this);this.timeout_=45E3;this.JSC$17311_extraHeaders_=null;this.JSC$17311_successful_=!1;this.JSC$17311_postData_=this.JSC$17311_requestUri_=this.JSC$17311_baseUri_=this.JSC$17311_type_=this.JSC$17311_requestStartTime_=this.JSC$17311_watchDogTimeoutTime_=this.JSC$17311_watchDogTimerId_=null;this.JSC$17311_pendingMessages_=
[];this.JSC$17311_xmlHttp_=null;this.JSC$17311_xmlHttpChunkStart_=0;this.JSC$17311_lastError_=this.JSC$17311_verb_=null;this.JSC$17311_lastStatusCode_=-1;this.JSC$17311_cancelled_=!1;this.JSC$17311_readyStateChangeThrottleMs_=0;this.JSC$17311_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new uWf},uWf=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Cw0=function(a,W){switch(a){case 0:return"Non-200 return code ("+W+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},GVi={},DKk={};
rc.prototype.setTimeout=function(a){this.timeout_=a};
var dK0=function(a,W,w){a.JSC$17311_type_=1;a.JSC$17311_baseUri_=_.$$(W.clone());a.JSC$17311_postData_=w;a.decodeChunks_=!0;ft2(a,null)},ft2=function(a,W){a.JSC$17311_requestStartTime_=Date.now();
mKD(a);a.JSC$17311_requestUri_=a.JSC$17311_baseUri_.clone();Np(a.JSC$17311_requestUri_,"t",a.JSC$17311_retryId_);a.JSC$17311_xmlHttpChunkStart_=0;var w=a.JSC$17311_channel_.JSC$17330_supportsCrossDomainXhrs_;a.fetchResponseState_=new uWf;a.JSC$17311_xmlHttp_=Vi0(a.JSC$17311_channel_,w?W:null,!a.JSC$17311_postData_);a.JSC$17311_readyStateChangeThrottleMs_>0&&(a.JSC$17311_readyStateChangeThrottle_=new _.yP((0,_.Sk)(a.JSC$17315_xmlHttpHandler_,a,a.JSC$17311_xmlHttp_),a.JSC$17311_readyStateChangeThrottleMs_));
a.JSC$17311_eventHandler_.listen(a.JSC$17311_xmlHttp_,"readystatechange",a.JSC$17315_readyStateChangeHandler_);W=a.JSC$17311_extraHeaders_?_.T5.clone(a.JSC$17311_extraHeaders_):{};a.JSC$17311_postData_?(a.JSC$17311_verb_||(a.JSC$17311_verb_="POST"),W["Content-Type"]="application/x-www-form-urlencoded",a.JSC$17311_xmlHttp_.send(a.JSC$17311_requestUri_,a.JSC$17311_verb_,a.JSC$17311_postData_,W)):(a.JSC$17311_verb_="GET",a.JSC$17311_xmlHttp_.send(a.JSC$17311_requestUri_,a.JSC$17311_verb_,null,W));SC(1);
QrX(a.JSC$17311_channelDebug_,a.JSC$17311_verb_,a.JSC$17311_requestUri_,a.JSC$17311_rid_,a.JSC$17311_retryId_,a.JSC$17311_postData_)};
rc.prototype.JSC$17315_readyStateChangeHandler_=function(a){a=a.target;var W=this.JSC$17311_readyStateChangeThrottle_;W&&_.nk(a)==3?(this.JSC$17311_channelDebug_.debug("Throttling readystatechange."),W.fire()):this.JSC$17315_xmlHttpHandler_(a)};
rc.prototype.JSC$17315_xmlHttpHandler_=function(a){try{a==this.JSC$17311_xmlHttp_?zxn(this):this.JSC$17311_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(W){this.JSC$17311_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Hmn(this)}finally{}};
var zxn=function(a){var W=_.nk(a.JSC$17311_xmlHttp_),w=a.JSC$17311_xmlHttp_.JSC$7703_lastErrorCode_,Z=a.JSC$17311_xmlHttp_.getStatus();if(!(W<3||W==3&&!Hmn(a))){a.JSC$17311_cancelled_||W!=4||w==7||(w==8||Z<=0?SC(3):SC(2));y20(a);var N=a.JSC$17311_xmlHttp_.getStatus();a.JSC$17311_lastStatusCode_=N;w=EKE(a);Hmn(a)||a.JSC$17311_channelDebug_.debug(function(){return"No response text for uri "+a.JSC$17311_requestUri_+" status "+N});
a.JSC$17311_successful_=N==200;xKa(a.JSC$17311_channelDebug_,a.JSC$17311_verb_,a.JSC$17311_requestUri_,a.JSC$17311_rid_,a.JSC$17311_retryId_,W,N);if(a.JSC$17311_successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(Z=aiD(a))p5(a.JSC$17311_channelDebug_,a.JSC$17311_rid_,Z,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,Wj2(a,Z);else{a.JSC$17311_successful_=!1;a.JSC$17311_lastError_=3;Y0(12);a.JSC$17311_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
a.JSC$17311_rid_+")");AO(a);hO(a);return}a.decodeChunks_?wnd(a,W,w):(p5(a.JSC$17311_channelDebug_,a.JSC$17311_rid_,w,null),Wj2(a,w));W==4&&AO(a);a.JSC$17311_successful_&&!a.JSC$17311_cancelled_&&(W==4?ZUf(a.JSC$17311_channel_,a):(a.JSC$17311_successful_=!1,mKD(a)))}else agd(a.JSC$17311_xmlHttp_),N==400&&w.indexOf("Unknown SID")>0?(a.JSC$17311_lastError_=3,Y0(12),a.JSC$17311_channelDebug_.warning("XMLHTTP Unknown SID ("+a.JSC$17311_rid_+")")):(a.JSC$17311_lastError_=0,Y0(13),a.JSC$17311_channelDebug_.warning("XMLHTTP Bad status "+
N+" ("+a.JSC$17311_rid_+")")),AO(a),hO(a)}},aiD=function(a){return a.JSC$17311_xmlHttp_&&(a=Xo(a.JSC$17311_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.vv(a)?a:null},EKE=function(a){if(!NqE(a))return a.JSC$17311_xmlHttp_.getResponseText();
var W=a.JSC$17311_xmlHttp_.getResponse();if(W==="")return"";var w="",Z=W.length,N=_.nk(a.JSC$17311_xmlHttp_)==4;if(!a.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return AO(a),hO(a),"";a.fetchResponseState_.textDecoder=new _.NH.TextDecoder}for(var B=0;B<Z;B++)a.fetchResponseState_.responseArrivedForFetch=!0,w+=a.fetchResponseState_.textDecoder.decode(W[B],{stream:!(N&&B==Z-1)});W.length=0;a.fetchResponseState_.responseBuffer+=w;a.JSC$17311_xmlHttpChunkStart_=0;return a.fetchResponseState_.responseBuffer},
Hmn=function(a){return a.JSC$17311_xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.JSC$17311_xmlHttp_.getResponseText()&&!a.JSC$17311_xmlHttp_.getResponse()):!1},NqE=function(a){return a.JSC$17311_xmlHttp_?a.JSC$17311_verb_=="GET"&&a.JSC$17311_type_!=2&&a.JSC$17311_channel_.usesFetchStreams_:!1},wnd=function(a,W,w){for(var Z=!0,N;!a.JSC$17311_cancelled_&&a.JSC$17311_xmlHttpChunkStart_<w.length;)if(N=tfi(a,w),N==DKk){W==4&&(a.JSC$17311_lastError_=4,Y0(14),Z=!1);
p5(a.JSC$17311_channelDebug_,a.JSC$17311_rid_,null,"[Incomplete Response]");break}else if(N==GVi){a.JSC$17311_lastError_=4;Y0(15);p5(a.JSC$17311_channelDebug_,a.JSC$17311_rid_,w,"[Invalid Chunk]");Z=!1;break}else p5(a.JSC$17311_channelDebug_,a.JSC$17311_rid_,N,null),Wj2(a,N);NqE(a)&&a.JSC$17311_xmlHttpChunkStart_!=0&&(a.fetchResponseState_.responseBuffer=a.fetchResponseState_.responseBuffer.slice(a.JSC$17311_xmlHttpChunkStart_),a.JSC$17311_xmlHttpChunkStart_=0);W!=4||w.length!=0||a.fetchResponseState_.responseArrivedForFetch||
(a.JSC$17311_lastError_=1,Y0(16),Z=!1);a.JSC$17311_successful_=a.JSC$17311_successful_&&Z;Z?w.length>0&&!a.firstByteReceived_&&(a.firstByteReceived_=!0,W=a.JSC$17311_channel_,W.JSC$17330_backChannelRequest_==a&&W.detectBufferingProxy_&&!W.bpDetectionDone_&&(W.JSC$17330_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+w.length),$Da(W),W.bpDetectionDone_=!0,Y0(11))):(p5(a.JSC$17311_channelDebug_,a.JSC$17311_rid_,w,"[Invalid Chunked Response]"),AO(a),hO(a))},tfi=function(a,W){var w=
a.JSC$17311_xmlHttpChunkStart_,Z=W.indexOf("\n",w);
if(Z==-1)return DKk;w=Number(W.substring(w,Z));if(isNaN(w))return GVi;Z+=1;if(Z+w>W.length)return DKk;W=W.slice(Z,Z+w);a.JSC$17311_xmlHttpChunkStart_=Z+w;return W};
rc.prototype.cancel=function(){this.JSC$17311_cancelled_=!0;AO(this)};
var mKD=function(a){a.JSC$17311_watchDogTimeoutTime_=Date.now()+a.timeout_;Bqf(a,a.timeout_)},Bqf=function(a,W){if(a.JSC$17311_watchDogTimerId_!=null)throw Error("vk");
a.JSC$17311_watchDogTimerId_=To((0,_.Sk)(a.JSC$17315_onWatchDogTimeout_,a),W)},y20=function(a){a.JSC$17311_watchDogTimerId_&&(_.NH.clearTimeout(a.JSC$17311_watchDogTimerId_),a.JSC$17311_watchDogTimerId_=null)};
rc.prototype.JSC$17315_onWatchDogTimeout_=function(){this.JSC$17311_watchDogTimerId_=null;var a=Date.now();a-this.JSC$17311_watchDogTimeoutTime_>=0?(srd(this.JSC$17311_channelDebug_,this.JSC$17311_requestUri_),this.JSC$17311_type_!=2&&(SC(3),Y0(17)),AO(this),this.JSC$17311_lastError_=2,hO(this)):(this.JSC$17311_channelDebug_.warning("WatchDog timer called too early"),Bqf(this,this.JSC$17311_watchDogTimeoutTime_-a))};
var hO=function(a){a.JSC$17311_channel_.state_==0||a.JSC$17311_cancelled_||ZUf(a.JSC$17311_channel_,a)},AO=function(a){y20(a);
_.d3(a.JSC$17311_readyStateChangeThrottle_);a.JSC$17311_readyStateChangeThrottle_=null;a.JSC$17311_eventHandler_.removeAll();if(a.JSC$17311_xmlHttp_){var W=a.JSC$17311_xmlHttp_;a.JSC$17311_xmlHttp_=null;W.abort();W.dispose()}};
rc.prototype.getLastError=function(){return this.JSC$17311_lastError_};
var Wj2=function(a,W){try{var w=a.JSC$17311_channel_;if(w.state_!=0&&(w.JSC$17330_backChannelRequest_==a||li2(w.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&li2(w.forwardChannelRequestPool_,a)&&w.state_==3){try{var Z=w.wireCodec_.JSC$17325_parser_.parse(W)}catch(X){Z=null}if(Array.isArray(Z)&&Z.length==3){W=Z;if(W[0]==0)a:if(w.JSC$17330_channelDebug_.debug("Server claims our backchannel is missing."),w.JSC$17330_backChannelTimerId_)w.JSC$17330_channelDebug_.debug("But we are currently starting the request.");
else{if(w.JSC$17330_backChannelRequest_)if(w.JSC$17330_backChannelRequest_.JSC$17311_requestStartTime_+3E3<a.JSC$17311_requestStartTime_)Ii0(w),PT9(w);else break a;else w.JSC$17330_channelDebug_.warning("We do not have a BackChannel established");XnE(w);Y0(18)}else{w.JSC$17330_lastPostResponseArrayId_=W[1];var N=w.JSC$17330_lastPostResponseArrayId_-w.JSC$17330_lastArrayId_;if(0<N){var B=W[2];w.JSC$17330_channelDebug_.debug(B+" bytes (in "+N+" arrays) are outstanding on the BackChannel");B<37500&&
w.enableStreaming_&&w.JSC$17330_backChannelRetryCount_==0&&!w.JSC$17330_deadBackChannelTimerId_&&(w.JSC$17330_deadBackChannelTimerId_=To((0,_.Sk)(w.JSC$17332_onBackChannelDead_,w),6E3))}}if(vif(w.forwardChannelRequestPool_)<=1&&w.forwardChannelFlushedCallback_){try{w.forwardChannelFlushedCallback_()}catch(X){}w.forwardChannelFlushedCallback_=void 0}}else w.JSC$17330_channelDebug_.debug("Bad POST response data returned"),iX(w,11)}else if((a.initialResponseDecoded_||w.JSC$17330_backChannelRequest_==
a)&&Ii0(w),!_.vv(W)){var I=w.wireCodec_.JSC$17325_parser_.parse(W);w.onInput_(I,a)}SC(4)}catch(X){}};var giK=function(a,W){this.JSC$17318_mapId=a;this.map=W;this.context=null};var oi9=function(a){this.maxPoolSizeConfigured_=a||10;_.NH.PerformanceNavigationTiming?(a=_.NH.performance.getEntriesByType("navigation"),a=a.length>0&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(_.NH.chrome&&_.NH.chrome.loadTimes&&_.NH.chrome.loadTimes()&&_.NH.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17321_maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17321_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17321_request_=null;this.JSC$17321_pendingMessages_=
[]},kpi=function(a){return a.JSC$17321_request_?!0:a.requestPool_?a.requestPool_.size>=a.JSC$17321_maxSize_:!1},vif=function(a){return a.JSC$17321_request_?1:a.requestPool_?a.requestPool_.size:0},li2=function(a,W){return a.JSC$17321_request_?a.JSC$17321_request_==W:a.requestPool_?a.requestPool_.has(W):!1},UDd=function(a,W){a.requestPool_?a.requestPool_.add(W):a.JSC$17321_request_=W},OUX=function(a,W){a.JSC$17321_request_&&a.JSC$17321_request_==W?a.JSC$17321_request_=null:a.requestPool_&&a.requestPool_.has(W)&&
a.requestPool_.delete(W)};
oi9.prototype.cancel=function(){this.JSC$17321_pendingMessages_=S5d(this);if(this.JSC$17321_request_)this.JSC$17321_request_.cancel(),this.JSC$17321_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var a=_.l(this.requestPool_.values()),W=a.next();!W.done;W=a.next())W.value.cancel();this.requestPool_.clear()}};
var S5d=function(a){if(a.JSC$17321_request_!=null)return a.JSC$17321_pendingMessages_.concat(a.JSC$17321_request_.JSC$17311_pendingMessages_);if(a.requestPool_!=null&&a.requestPool_.size!==0){var W=a.JSC$17321_pendingMessages_;a=_.l(a.requestPool_.values());for(var w=a.next();!w.done;w=a.next())W=W.concat(w.value.JSC$17311_pendingMessages_);return W}return _.Wl(a.JSC$17321_pendingMessages_)},Y52=function(a,W){a.JSC$17321_pendingMessages_=a.JSC$17321_pendingMessages_.concat(W)};var Tq2=function(a,W){var w=new K5;w.debug("TestLoadImage: loading "+a);if(_.NH.Image){var Z=new Image;Z.onload=_.v_(cW,w,"TestLoadImage: loaded",!0,W,Z);Z.onerror=_.v_(cW,w,"TestLoadImage: error",!1,W,Z);Z.onabort=_.v_(cW,w,"TestLoadImage: abort",!1,W,Z);Z.ontimeout=_.v_(cW,w,"TestLoadImage: timeout",!1,W,Z);_.NH.setTimeout(function(){if(Z.ontimeout)Z.ontimeout()},1E4);
Z.src=a}else W(!1)},Kji=function(a,W){var w=new K5,Z=new AbortController,N=setTimeout(function(){Z.abort();
cW(w,"TestPingServer: timeout",!1,W)},1E4);
fetch(a,{signal:Z.signal}).then(function(B){clearTimeout(N);B.ok?cW(w,"TestPingServer: ok",!0,W):cW(w,"TestPingServer: server error",!1,W)}).catch(function(){clearTimeout(N);
cW(w,"TestPingServer: error",!1,W)})},cW=function(a,W,w,Z,N){try{a.debug(W),N&&(N.onload=null,N.onerror=null,N.onabort=null,N.ontimeout=null),Z(w)}catch(B){}};var pn9=function(){this.JSC$17325_parser_=new OC},rA0=function(a,W,w){var Z=w||"";
try{_.Nj6(a,function(N,B){var I=N;_.tL(N)&&(I=(0,_.c5)(N));W.push(Z+B+"="+encodeURIComponent(I))})}catch(N){throw W.push(Z+"type="+encodeURIComponent("_badmap")),N;
}};var eC=function(a,W,w){return w&&w.internalChannelParams?w.internalChannelParams[a]||W:W},n5=function(a){this.serverVersion_=0;
this.JSC$17330_outgoingMaps_=[];this.JSC$17330_channelDebug_=new K5;this.JSC$17330_hostPrefix_=this.JSC$17330_backChannelUri_=this.JSC$17330_forwardChannelUri_=this.JSC$17330_path_=this.JSC$17330_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17330_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17330_extraHeaders_=null;this.JSC$17330_nextMapId_=this.JSC$17330_nextRid_=0;this.JSC$17330_failFast_=eC("failFast",!1,a);this.enableStreaming_=this.JSC$17330_deadBackChannelTimerId_=
this.JSC$17330_backChannelTimerId_=this.JSC$17330_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17330_lastPostResponseArrayId_=this.JSC$17330_lastArrayId_=-1;this.JSC$17330_backChannelAttemptId_=this.JSC$17330_backChannelRetryCount_=this.JSC$17330_forwardChannelRetryCount_=0;this.JSC$17330_baseRetryDelayMs_=eC("baseRetryDelayMs",5E3,a);this.JSC$17330_retryDelaySeedMs_=eC("retryDelaySeedMs",1E4,a);this.JSC$17330_forwardChannelMaxRetries_=
eC("forwardChannelMaxRetries",2,a);this.JSC$17330_forwardChannelRequestTimeoutMs_=eC("forwardChannelRequestTimeoutMs",2E4,a);this.JSC$17330_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$17330_supportsCrossDomainXhrs_=a&&a.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new oi9(a&&a.concurrentRequestLimit);this.wireCodec_=new pn9;this.fastHandshake_=
a&&a.fastHandshake||!1;this.encodeInitMessageHeaders_=a&&a.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17330_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=a&&a.blockingHandshake||!1;a&&a.disableRedact&&this.JSC$17330_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};
n5.prototype.JSC$17332_channelVersion_=8;n5.prototype.state_=1;
n5.prototype.connect=function(a,W,w,Z){this.JSC$17330_channelDebug_.debug("connect()");Y0(0);this.JSC$17330_path_=a;this.JSC$17330_extraParams_=W||{};w&&Z!==void 0&&(this.JSC$17330_extraParams_.OSID=w,this.JSC$17330_extraParams_.OAID=Z);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17330_channelDebug_.debug("connectChannel_()");a=AAn(this,null,this.JSC$17330_path_);this.JSC$17330_channelDebug_.debug("GetForwardChannelUri: "+a);this.JSC$17330_forwardChannelUri_=a;hXI(this)};
n5.prototype.disconnect=function(){this.JSC$17330_channelDebug_.debug("disconnect()");iUK(this);if(this.state_==3){var a=this.JSC$17330_nextRid_++,W=this.JSC$17330_forwardChannelUri_.clone();_.qF(W,"SID",this.sid_);_.qF(W,"RID",a);_.qF(W,"TYPE","terminate");jC(this,W);a=new rc(this,this.JSC$17330_channelDebug_,this.sid_,a);a.JSC$17311_type_=2;a.JSC$17311_baseUri_=_.$$(W.clone());W=!1;if(_.NH.navigator&&_.NH.navigator.sendBeacon)try{W=_.NH.navigator.sendBeacon(a.JSC$17311_baseUri_.toString(),"")}catch(w){}!W&&
_.NH.Image&&((new Image).src=a.JSC$17311_baseUri_,W=!0);W||(a.JSC$17311_xmlHttp_=Vi0(a.JSC$17311_channel_,null),a.JSC$17311_xmlHttp_.send(a.JSC$17311_baseUri_));a.JSC$17311_requestStartTime_=Date.now();mKD(a)}cA0(this)};
var PT9=function(a){a.JSC$17330_backChannelRequest_&&($Da(a),a.JSC$17330_backChannelRequest_.cancel(),a.JSC$17330_backChannelRequest_=null)},iUK=function(a){PT9(a);
a.JSC$17330_backChannelTimerId_&&(_.NH.clearTimeout(a.JSC$17330_backChannelTimerId_),a.JSC$17330_backChannelTimerId_=null);Ii0(a);a.forwardChannelRequestPool_.cancel();a.JSC$17330_forwardChannelTimerId_&&(typeof a.JSC$17330_forwardChannelTimerId_==="number"&&_.NH.clearTimeout(a.JSC$17330_forwardChannelTimerId_),a.JSC$17330_forwardChannelTimerId_=null)};
n5.prototype.getState=function(){return this.state_};
var hXI=function(a){kpi(a.forwardChannelRequestPool_)||a.JSC$17330_forwardChannelTimerId_||(a.JSC$17330_forwardChannelTimerId_=!0,_.pk(a.JSC$17332_onStartForwardChannelTimer_,a),a.JSC$17330_forwardChannelRetryCount_=0)},niK=function(a,W){if(vif(a.forwardChannelRequestPool_)>=a.forwardChannelRequestPool_.JSC$17321_maxSize_-(a.JSC$17330_forwardChannelTimerId_?1:0))return!1;
if(a.JSC$17330_forwardChannelTimerId_)return a.JSC$17330_channelDebug_.debug("Use the retry request that is already scheduled."),a.JSC$17330_outgoingMaps_=W.JSC$17311_pendingMessages_.concat(a.JSC$17330_outgoingMaps_),!0;if(a.state_==1||a.state_==2||a.JSC$17330_forwardChannelRetryCount_>=(a.JSC$17330_failFast_?0:a.JSC$17330_forwardChannelMaxRetries_))return!1;a.JSC$17330_channelDebug_.debug("Going to retry POST");a.JSC$17330_forwardChannelTimerId_=To((0,_.Sk)(a.JSC$17332_onStartForwardChannelTimer_,
a,W),eX2(a,a.JSC$17330_forwardChannelRetryCount_));a.JSC$17330_forwardChannelRetryCount_++;return!0};
n5.prototype.JSC$17332_onStartForwardChannelTimer_=function(a){if(this.JSC$17330_forwardChannelTimerId_)if(this.JSC$17330_forwardChannelTimerId_=null,this.JSC$17330_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!a){this.JSC$17330_channelDebug_.debug("open_()");this.JSC$17330_nextRid_=Math.floor(Math.random()*1E5);a=this.JSC$17330_nextRid_++;var W=new rc(this,this.JSC$17330_channelDebug_,"",a),w=this.JSC$17330_extraHeaders_;this.initHeaders_&&(w?(w=_.T5.clone(w),_.T5.extend(w,this.initHeaders_)):
w=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(W.JSC$17311_extraHeaders_=w,w=null);var Z;if(this.fastHandshake_)a:{for(var N=Z=0;N<this.JSC$17330_outgoingMaps_.length;N++){b:{var B=this.JSC$17330_outgoingMaps_[N];if("__data__"in B.map&&(B=B.map.__data__,typeof B==="string")){B=B.length;break b}B=void 0}if(B===void 0)break;Z+=B;if(Z>4096){Z=N;break a}if(Z===4096||N===this.JSC$17330_outgoingMaps_.length-1){Z=N+1;break a}}Z=1E3}else Z=1E3;Z=jwk(this,W,Z);
N=this.JSC$17330_forwardChannelUri_.clone();_.qF(N,"RID",a);_.qF(N,"CVER",22);this.httpSessionIdParam_&&_.qF(N,"X-HTTP-Session-Id",this.httpSessionIdParam_);jC(this,N);w&&(this.encodeInitMessageHeaders_?Z="headers="+_.Qv(ar9(w))+"&"+Z:this.httpHeadersOverwriteParam_&&WID(N,this.httpHeadersOverwriteParam_,w));UDd(this.forwardChannelRequestPool_,W);this.blockingHandshake_&&_.qF(N,"TYPE","init");this.fastHandshake_?(_.qF(N,"$req",Z),_.qF(N,"SID","null"),W.decodeInitialResponse_=!0,dK0(W,N,null)):dK0(W,
N,Z);this.state_=2}}else this.state_==3&&(a?Lj0(this,a):this.JSC$17330_outgoingMaps_.length==0?this.JSC$17330_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):kpi(this.forwardChannelRequestPool_)||(Lj0(this),this.JSC$17330_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Lj0=function(a,W){var w;W?w=W.JSC$17311_rid_:w=a.JSC$17330_nextRid_++;var Z=a.JSC$17330_forwardChannelUri_.clone();_.qF(Z,"SID",a.sid_);_.qF(Z,"RID",w);_.qF(Z,"AID",a.JSC$17330_lastArrayId_);jC(a,Z);a.httpHeadersOverwriteParam_&&a.JSC$17330_extraHeaders_&&WID(Z,a.httpHeadersOverwriteParam_,a.JSC$17330_extraHeaders_);w=new rc(a,a.JSC$17330_channelDebug_,a.sid_,w,a.JSC$17330_forwardChannelRetryCount_+1);a.httpHeadersOverwriteParam_===null&&(w.JSC$17311_extraHeaders_=a.JSC$17330_extraHeaders_);W&&
(a.JSC$17330_outgoingMaps_=W.JSC$17311_pendingMessages_.concat(a.JSC$17330_outgoingMaps_));W=jwk(a,w,1E3);w.setTimeout(Math.round(a.JSC$17330_forwardChannelRequestTimeoutMs_*.5)+Math.round(a.JSC$17330_forwardChannelRequestTimeoutMs_*.5*Math.random()));UDd(a.forwardChannelRequestPool_,w);dK0(w,Z,W)},jC=function(a,W){a.JSC$17330_extraParams_&&_.T5.forEach(a.JSC$17330_extraParams_,function(w,Z){_.qF(W,Z,w)});
a.handler_&&_.Nj6({},function(w,Z){_.qF(W,Z,w)})},jwk=function(a,W,w){w=Math.min(a.JSC$17330_outgoingMaps_.length,w);
var Z=a.handler_?(0,_.Sk)(a.handler_.JSC$17336_badMapError,a.handler_,a):null;a:{for(var N=a.JSC$17330_outgoingMaps_,B=-1;;){var I=["count="+w];B==-1?w>0?(B=N[0].JSC$17318_mapId,I.push("ofs="+B)):B=0:I.push("ofs="+B);for(var X=!0,v=0;v<w;v++){var U=N[v].JSC$17318_mapId,O=N[v].map;U-=B;if(U<0)B=Math.max(0,N[v].JSC$17318_mapId-100),X=!1;else try{rA0(O,I,"req"+U+"_")}catch(S){Z&&Z(O)}}if(X){Z=I.join("&");break a}}Z=void 0}a=a.JSC$17330_outgoingMaps_.splice(0,w);W.JSC$17311_pendingMessages_=a;return Z},
JAI=function(a){a.JSC$17330_backChannelRequest_||a.JSC$17330_backChannelTimerId_||(a.JSC$17330_backChannelAttemptId_=1,_.pk(a.JSC$17332_onStartBackChannelTimer_,a),a.JSC$17330_backChannelRetryCount_=0)},XnE=function(a){if(a.JSC$17330_backChannelRequest_||a.JSC$17330_backChannelTimerId_||a.JSC$17330_backChannelRetryCount_>=3)return!1;
a.JSC$17330_channelDebug_.debug("Going to retry GET");a.JSC$17330_backChannelAttemptId_++;a.JSC$17330_backChannelTimerId_=To((0,_.Sk)(a.JSC$17332_onStartBackChannelTimer_,a),eX2(a,a.JSC$17330_backChannelRetryCount_));a.JSC$17330_backChannelRetryCount_++;return!0};
n5.prototype.JSC$17332_onStartBackChannelTimer_=function(){this.JSC$17330_backChannelTimerId_=null;Fjk(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17330_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17330_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17330_backChannelRequest_+" "+this.handshakeRttMs_);else{var a=2*this.handshakeRttMs_;this.JSC$17330_channelDebug_.info("BP detection timer enabled: "+a);this.bpDetectionTimerId_=To((0,_.Sk)(this.onBpDetectionTimer_,
this),a)}};
n5.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17330_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17330_backChannelRequest_.JSC$17311_xmlHttp_!=null){var a=this.JSC$17330_backChannelRequest_.JSC$17311_xmlHttp_.getResponseText();a&&this.JSC$17330_channelDebug_.warning("Timer should have been cancelled : "+a)}this.JSC$17330_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Y0(10);PT9(this);Fjk(this)}else this.JSC$17330_channelDebug_.warning("Invalid operation.")};
var $Da=function(a){a.bpDetectionTimerId_!=null&&(a.JSC$17330_channelDebug_.debug("Cancel the BP detection timer."),_.NH.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},Fjk=function(a){a.JSC$17330_channelDebug_.debug("Creating new HttpRequest");
a.JSC$17330_backChannelRequest_=new rc(a,a.JSC$17330_channelDebug_,a.sid_,"rpc",a.JSC$17330_backChannelAttemptId_);a.httpHeadersOverwriteParam_===null&&(a.JSC$17330_backChannelRequest_.JSC$17311_extraHeaders_=a.JSC$17330_extraHeaders_);a.JSC$17330_backChannelRequest_.JSC$17311_readyStateChangeThrottleMs_=0;var W=a.JSC$17330_backChannelUri_.clone();_.qF(W,"RID","rpc");_.qF(W,"SID",a.sid_);_.qF(W,"AID",a.JSC$17330_lastArrayId_);_.qF(W,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&
_.qF(W,"TO",a.longPollingTimeout_);_.qF(W,"TYPE","xmlhttp");jC(a,W);a.httpHeadersOverwriteParam_&&a.JSC$17330_extraHeaders_&&WID(W,a.httpHeadersOverwriteParam_,a.JSC$17330_extraHeaders_);a.backChannelRequestTimeoutMs_&&a.JSC$17330_backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var w=a.JSC$17330_backChannelRequest_,Z=a.JSC$17330_hostPrefix_;w.JSC$17311_type_=1;w.JSC$17311_baseUri_=_.$$(W.clone());w.JSC$17311_postData_=null;w.decodeChunks_=!0;ft2(w,Z);a.JSC$17330_channelDebug_.debug("New Request created")};
n5.prototype.JSC$17332_onBackChannelDead_=function(){this.JSC$17330_deadBackChannelTimerId_!=null&&(this.JSC$17330_deadBackChannelTimerId_=null,PT9(this),XnE(this),Y0(19))};
var Ii0=function(a){a.JSC$17330_deadBackChannelTimerId_!=null&&(_.NH.clearTimeout(a.JSC$17330_deadBackChannelTimerId_),a.JSC$17330_deadBackChannelTimerId_=null)},ZUf=function(a,W){a.JSC$17330_channelDebug_.debug("Request complete");
var w=null;if(a.JSC$17330_backChannelRequest_==W){Ii0(a);$Da(a);a.JSC$17330_backChannelRequest_=null;var Z=2}else if(li2(a.forwardChannelRequestPool_,W))w=W.JSC$17311_pendingMessages_,OUX(a.forwardChannelRequestPool_,W),Z=1;else return;if(a.state_!=0)if(W.JSC$17311_successful_)Z==1?(qV2(W.JSC$17311_postData_?W.JSC$17311_postData_.length:0,Date.now()-W.JSC$17311_requestStartTime_,a.JSC$17330_forwardChannelRetryCount_),hXI(a)):JAI(a);else{var N=W.JSC$17311_lastStatusCode_,B=W.getLastError();if(B==3||
B==0&&N>0)a.JSC$17330_channelDebug_.debug("Not retrying due to error type"),N>200&&(a.errorResponseStatusCode_=W.JSC$17311_lastStatusCode_);else{a.JSC$17330_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Cw0(B,a.errorResponseStatusCode_)});
if(Z==1&&niK(a,W)||Z==2&&XnE(a))return;a.JSC$17330_channelDebug_.debug("Exceeded max number of retries")}w&&w.length>0&&Y52(a.forwardChannelRequestPool_,w);a.JSC$17330_channelDebug_.debug("Error: HTTP request failed");switch(B){case 1:iX(a,5);break;case 4:iX(a,10);break;case 3:iX(a,6);break;default:iX(a,2)}}},eX2=function(a,W){var w=a.JSC$17330_baseRetryDelayMs_+Math.floor(Math.random()*a.JSC$17330_retryDelaySeedMs_);
a.isActive()||(a.JSC$17330_channelDebug_.debug("Inactive channel"),w*=2);return w*W};
n5.prototype.onInput_=function(a,W){for(var w=0;w<a.length;w++){var Z=a[w];this.JSC$17330_lastArrayId_=Z[0];Z=Z[1];if(this.state_==2)if(Z[0]=="c"){this.sid_=Z[1];this.JSC$17330_hostPrefix_=Z[2];var N=Z[3];N!=null&&(this.JSC$17332_channelVersion_=N,this.JSC$17330_channelDebug_.info("VER="+this.JSC$17332_channelVersion_));N=Z[4];N!=null&&(this.serverVersion_=N,this.JSC$17330_channelDebug_.info("SVER="+this.serverVersion_));Z=Z[5];Z!=null&&typeof Z==="number"&&Z>0&&(this.backChannelRequestTimeoutMs_=
Z*=1.5,this.JSC$17330_channelDebug_.info("backChannelRequestTimeoutMs_="+Z));if(Z=W.JSC$17311_xmlHttp_){var B=Xo(Z,"X-Client-Wire-Protocol");B&&(N=this.forwardChannelRequestPool_,!N.requestPool_&&(_.gE(B,"spdy")||_.gE(B,"quic")||_.gE(B,"h2"))&&(N.JSC$17321_maxSize_=N.maxPoolSizeConfigured_,N.requestPool_=new Set,N.JSC$17321_request_&&(UDd(N,N.JSC$17321_request_),N.JSC$17321_request_=null)));this.httpSessionIdParam_&&((Z=Xo(Z,"X-HTTP-Session-Id"))?(this.httpSessionId_=Z,_.qF(this.JSC$17330_forwardChannelUri_,
this.httpSessionIdParam_,Z)):this.JSC$17330_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17336_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-W.JSC$17311_requestStartTime_,this.JSC$17330_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));Z=W;N=AAn(this,this.JSC$17330_supportsCrossDomainXhrs_?this.JSC$17330_hostPrefix_:null,this.JSC$17330_path_);this.JSC$17330_channelDebug_.debug("GetBackChannelUri: "+
N);this.JSC$17330_backChannelUri_=N;Z.initialResponseDecoded_?(this.JSC$17330_channelDebug_.debug("Upgrade the handshake request to a backchannel."),OUX(this.forwardChannelRequestPool_,Z),N=Z,(B=this.backChannelRequestTimeoutMs_)&&N.setTimeout(B),N.JSC$17311_watchDogTimerId_&&(y20(N),mKD(N)),this.JSC$17330_backChannelRequest_=Z):JAI(this);this.JSC$17330_outgoingMaps_.length>0&&hXI(this)}else Z[0]!="stop"&&Z[0]!="close"||iX(this,7);else this.state_==3&&(Z[0]=="stop"||Z[0]=="close"?Z[0]=="stop"?iX(this,
7):this.disconnect():Z[0]!="noop"&&this.handler_&&this.handler_.JSC$17336_channelHandleArray(Z),this.JSC$17330_backChannelRetryCount_=0)}};
var iX=function(a,W){a.JSC$17330_channelDebug_.info("Error code "+W);if(W==2){var w=(0,_.Sk)(a.testNetworkCallback_,a),Z=a.networkTestUrl_,N=!Z;Z=new _.CS(Z||"//www.google.com/images/cleardot.gif");_.NH.location&&_.NH.location.protocol=="http"||_.H5(Z,"https");_.$$(Z);N?Tq2(Z.toString(),w):Kji(Z.toString(),w)}else Y0(2);a.onError_(W)};
n5.prototype.testNetworkCallback_=function(a){a?(this.JSC$17330_channelDebug_.info("Successfully pinged google.com"),Y0(2)):(this.JSC$17330_channelDebug_.info("Failed to ping google.com"),Y0(1))};
n5.prototype.onError_=function(a){this.JSC$17330_channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.JSC$17336_channelError(a);cA0(this);iUK(this)};
var cA0=function(a){a.state_=0;a.nonAckedMapsAtChannelClose_=[];if(a.handler_){var W=S5d(a.forwardChannelRequestPool_);if(W.length!=0||a.JSC$17330_outgoingMaps_.length!=0)a.JSC$17330_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+W.length+", outgoing: "+a.JSC$17330_outgoingMaps_.length}),_.ZE(a.nonAckedMapsAtChannelClose_,W),_.ZE(a.nonAckedMapsAtChannelClose_,a.JSC$17330_outgoingMaps_),a.forwardChannelRequestPool_.JSC$17321_pendingMessages_.length=0,_.Wl(a.JSC$17330_outgoingMaps_),
a.JSC$17330_outgoingMaps_.length=0;
a.handler_.JSC$17336_channelClosed()}},Mfi=function(a){if(a.state_==0)return a.nonAckedMapsAtChannelClose_;
var W=[];_.ZE(W,S5d(a.forwardChannelRequestPool_));_.ZE(W,a.JSC$17330_outgoingMaps_);return W},AAn=function(a,W,w){var Z=_.MF(w);
Z.JSC$7940_domain_!=""?(W&&_.yc(Z,W+"."+Z.JSC$7940_domain_),_.El(Z,Z.JSC$7940_port_)):(Z=_.NH.location,Z=Gw0(Z.protocol,W?W+"."+Z.hostname:Z.hostname,+Z.port,w));W=a.httpSessionIdParam_;w=a.httpSessionId_;W&&w&&_.qF(Z,W,w);_.qF(Z,"VER",a.JSC$17332_channelVersion_);jC(a,Z);return Z},Vi0=function(a,W,w){if(W&&!a.JSC$17330_supportsCrossDomainXhrs_)throw Error("wk");
W=a.usesFetchStreams_&&!a.JSC$17330_xmlHttpFactory_?new _.eX(new nh({streamBinaryChunks:w})):new _.eX(a.JSC$17330_xmlHttpFactory_);W.JSC$7703_withCredentials_=a.JSC$17330_supportsCrossDomainXhrs_;return W};
n5.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var RXf=function(){};
_.t=RXf.prototype;_.t.JSC$17336_channelOpened=function(){};
_.t.JSC$17336_channelHandleArray=function(){};
_.t.JSC$17336_channelError=function(){};
_.t.JSC$17336_channelClosed=function(){};
_.t.isActive=function(){return!0};
_.t.JSC$17336_badMapError=function(){};var q5a=function(){},JO=function(a,W){_.Ti.call(this);
this.JSC$17339_channel_=new n5(W);this.JSC$17339_url_=a;this.messageUrlParams_=W&&W.messageUrlParams||null;a=W&&W.messageHeaders||null;W&&W.clientProtocolHeaderRequired&&(a?_.T5.set(a,"X-Client-Protocol","webchannel"):a=_.T5.create("X-Client-Protocol","webchannel"));this.JSC$17339_channel_.JSC$17330_extraHeaders_=a;a=W&&W.initMessageHeaders||null;W&&W.messageContentType&&(a?_.T5.set(a,"X-WebChannel-Content-Type",W.messageContentType):a=_.T5.create("X-WebChannel-Content-Type",W.messageContentType));
W&&W.clientProfile&&(a?_.T5.set(a,"X-WebChannel-Client-Profile",W.clientProfile):a=_.T5.create("X-WebChannel-Client-Profile",W.clientProfile));this.JSC$17339_channel_.initHeaders_=a;(a=W&&W.httpHeadersOverwriteParam)&&!_.vv(a)&&(this.JSC$17339_channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=W&&W.supportsCrossDomainXhr||!1;this.sendRawJson_=W&&W.sendRawJson||!1;(W=W&&W.httpSessionIdParam)&&!_.vv(W)&&(this.JSC$17339_channel_.httpSessionIdParam_=W,_.T5.containsKey(this.messageUrlParams_,
W)&&_.T5.remove(this.messageUrlParams_,W));this.channelHandler_=new L5(this)};
_.NT(JO,_.Ti);JO.prototype.open=function(){this.JSC$17339_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17339_channel_.JSC$17330_supportsCrossDomainXhrs_=!0);this.JSC$17339_channel_.connect(this.JSC$17339_url_,this.messageUrlParams_||void 0)};
JO.prototype.close=function(){this.JSC$17339_channel_.disconnect()};
JO.prototype.send=function(a){var W=this.JSC$17339_channel_;if(typeof a==="string"){var w={};w.__data__=a;a=w}else this.sendRawJson_&&(w={},w.__data__=(0,_.c5)(a),a=w);W.JSC$17330_outgoingMaps_.push(new giK(W.JSC$17330_nextMapId_++,a));W.state_==3&&hXI(W)};
JO.prototype.disposeInternal=function(){this.JSC$17339_channel_.handler_=null;delete this.channelHandler_;this.JSC$17339_channel_.disconnect();delete this.JSC$17339_channel_;JO.superClass_.disposeInternal.call(this)};
var Qwi=function(a){nKi.call(this);a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var W=a.__sm__;W?this.data=(this.metadataKey=_.T5.getAnyKey(W))?_.T5.get(W,this.metadataKey):W:this.data=a};
_.NT(Qwi,nKi);var xD2=function(a){jrd.call(this);this.status=1;this.errorCode=a};
_.NT(xD2,jrd);var L5=function(a){this.JSC$17346_channel_=a};
_.NT(L5,RXf);L5.prototype.JSC$17336_channelOpened=function(){this.JSC$17346_channel_.dispatchEvent("w")};
L5.prototype.JSC$17336_channelHandleArray=function(a){this.JSC$17346_channel_.dispatchEvent(new Qwi(a))};
L5.prototype.JSC$17336_channelError=function(a){this.JSC$17346_channel_.dispatchEvent(new xD2(a))};
L5.prototype.JSC$17336_channelClosed=function(){this.JSC$17346_channel_.dispatchEvent("x")};
var bU0=function(a,W){this.transportChannel_=a;this.JSC$17349_channel_=W},swi=function(a){return Mfi(a.JSC$17349_channel_).map(function(W){var w=a.transportChannel_;
W=W.map;"__data__"in W?(W=W.__data__,w=w.sendRawJson_?(0,_.Mn$)(W):W):w=W;return w})};var FF=function(a){uSK.dispatchEvent(new CTI(uSK,a))},uSK=new _.Ti,CTI=function(a){_.kO.call(this,"statevent",a)};
_.c(CTI,_.kO);var Mb=function(a,W,w,Z,N){this.JSC$17354_channel_=a;this.JSC$17354_channelDebug_=W;this.sid_=w;this.JSC$17354_rid_=Z;this.JSC$17354_retryId_=N||1;this.timeout_=45E3;this.JSC$17354_eventHandler_=new _.am(this);this.pollingTimer_=new _.Ef;this.pollingTimer_.setInterval(250)};
_.t=Mb.prototype;_.t.JSC$17356_extraHeaders_=null;_.t.JSC$17356_successful_=!1;_.t.JSC$17356_watchDogTimerId_=null;_.t.JSC$17356_watchDogTimeoutTime_=null;_.t.JSC$17356_requestStartTime_=null;_.t.JSC$17356_type_=null;_.t.JSC$17356_baseUri_=null;_.t.JSC$17356_requestUri_=null;_.t.JSC$17356_postData_=null;_.t.JSC$17356_xmlHttp_=null;_.t.JSC$17356_xmlHttpChunkStart_=0;_.t.trident_=null;_.t.JSC$17356_verb_=null;_.t.JSC$17356_lastError_=null;_.t.JSC$17356_lastStatusCode_=-1;_.t.sendClose_=!0;
_.t.JSC$17356_cancelled_=!1;_.t.JSC$17356_readyStateChangeThrottleMs_=0;_.t.JSC$17356_readyStateChangeThrottle_=null;var Gp0=function(a,W){switch(a){case 0:return"Non-200 return code ("+W+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},DD2={},fi9={};
Mb.prototype.setTimeout=function(a){this.timeout_=a};
var mDX=function(a,W,w){a.JSC$17356_type_=1;a.JSC$17356_baseUri_=_.$$(W.clone());a.JSC$17356_postData_=w;a.decodeChunks_=!0;dD0(a,null)},Vfz=function(a,W,w,Z,N){a.JSC$17356_type_=1;
a.JSC$17356_baseUri_=_.$$(W.clone());a.JSC$17356_postData_=null;a.decodeChunks_=w;N&&(a.sendClose_=!1);dD0(a,Z)},dD0=function(a,W){a.JSC$17356_requestStartTime_=Date.now();
zXX(a);a.JSC$17356_requestUri_=a.JSC$17356_baseUri_.clone();Np(a.JSC$17356_requestUri_,"t",a.JSC$17354_retryId_);a.JSC$17356_xmlHttpChunkStart_=0;a.JSC$17356_xmlHttp_=a.JSC$17354_channel_.JSC$17363_createXhrIo(a.JSC$17354_channel_.JSC$17363_shouldUseSecondaryDomains()?W:null);a.JSC$17356_readyStateChangeThrottleMs_>0&&(a.JSC$17356_readyStateChangeThrottle_=new _.yP((0,_.Sk)(a.JSC$17356_xmlHttpHandler_,a,a.JSC$17356_xmlHttp_),a.JSC$17356_readyStateChangeThrottleMs_));a.JSC$17354_eventHandler_.listen(a.JSC$17356_xmlHttp_,
"readystatechange",a.JSC$17356_readyStateChangeHandler_);W=a.JSC$17356_extraHeaders_?_.T5.clone(a.JSC$17356_extraHeaders_):{};a.JSC$17356_postData_?(a.JSC$17356_verb_="POST",W["Content-Type"]="application/x-www-form-urlencoded",a.JSC$17356_xmlHttp_.send(a.JSC$17356_requestUri_,a.JSC$17356_verb_,a.JSC$17356_postData_,W)):(a.JSC$17356_verb_="GET",a.sendClose_&&!_.Pz&&(W.Connection="close"),a.JSC$17356_xmlHttp_.send(a.JSC$17356_requestUri_,a.JSC$17356_verb_,null,W));a.JSC$17354_channel_.notifyServerReachabilityEvent(1);
W=a.JSC$17354_channelDebug_;var w=a.JSC$17356_postData_;if(w){var Z="";w=w.split("&");for(var N=0;N<w.length;N++){var B=w[N].split("=");if(B.length>1){var I=B[0];B=B[1];var X=I.split("_");Z=X.length>=2&&X[1]=="type"?Z+(I+"="+B+"&"):Z+(I+"=redacted&")}}}else Z=null;W.info("XMLHTTP REQ ("+a.JSC$17354_rid_+") [attempt "+a.JSC$17354_retryId_+"]: "+a.JSC$17356_verb_+"\n"+a.JSC$17356_requestUri_+"\n"+Z)};
Mb.prototype.JSC$17356_readyStateChangeHandler_=function(a){a=a.target;var W=this.JSC$17356_readyStateChangeThrottle_;W&&_.nk(a)==3?(this.JSC$17354_channelDebug_.debug("Throttling readystatechange."),W.fire()):this.JSC$17356_xmlHttpHandler_(a)};
Mb.prototype.JSC$17356_xmlHttpHandler_=function(a){try{if(a==this.JSC$17356_xmlHttp_)a:{var W=_.nk(this.JSC$17356_xmlHttp_),w=this.JSC$17356_xmlHttp_.JSC$7703_lastErrorCode_,Z=this.JSC$17356_xmlHttp_.getStatus();if(_.Pz&&!_.Xk("420+")){if(W<4)break a}else if(W<3||W==3&&!this.JSC$17356_xmlHttp_.getResponseText())break a;this.JSC$17356_cancelled_||W!=4||w==7||(w==8||Z<=0?this.JSC$17354_channel_.notifyServerReachabilityEvent(3):this.JSC$17354_channel_.notifyServerReachabilityEvent(2));HUz(this);var N=
this.JSC$17356_xmlHttp_.getStatus();this.JSC$17356_lastStatusCode_=N;var B=this.JSC$17356_xmlHttp_.getResponseText();B||this.JSC$17354_channelDebug_.debug("No response text for uri "+this.JSC$17356_requestUri_+" status "+N);this.JSC$17356_successful_=N==200;this.JSC$17354_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17354_rid_+") [ attempt "+this.JSC$17354_retryId_+"]: "+this.JSC$17356_verb_+"\n"+this.JSC$17356_requestUri_+"\n"+W+" "+N);if(this.JSC$17356_successful_){W==4&&RF(this);if(this.decodeChunks_){for(a=
!0;!this.JSC$17356_cancelled_&&this.JSC$17356_xmlHttpChunkStart_<B.length;){var I=yAa(this,B);if(I==fi9){W==4&&(this.JSC$17356_lastError_=4,FF(15),a=!1);qb(this.JSC$17354_channelDebug_,this.JSC$17354_rid_,null,"[Incomplete Response]");break}else if(I==DD2){this.JSC$17356_lastError_=4;FF(16);qb(this.JSC$17354_channelDebug_,this.JSC$17354_rid_,B,"[Invalid Chunk]");a=!1;break}else qb(this.JSC$17354_channelDebug_,this.JSC$17354_rid_,I,null),Ei2(this,I)}W==4&&B.length==0&&(this.JSC$17356_lastError_=1,
FF(17),a=!1);this.JSC$17356_successful_=this.JSC$17356_successful_&&a;a||(qb(this.JSC$17354_channelDebug_,this.JSC$17354_rid_,B,"[Invalid Chunked Response]"),RF(this),ajD(this))}else qb(this.JSC$17354_channelDebug_,this.JSC$17354_rid_,B,null),Ei2(this,B);this.JSC$17356_successful_&&!this.JSC$17356_cancelled_&&(W==4?this.JSC$17354_channel_.JSC$17363_onRequestComplete(this):(this.JSC$17356_successful_=!1,zXX(this)))}else N==400&&B.indexOf("Unknown SID")>0?(this.JSC$17356_lastError_=3,FF(13),this.JSC$17354_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17354_rid_+")")):(this.JSC$17356_lastError_=0,FF(14),this.JSC$17354_channelDebug_.warning("XMLHTTP Bad status "+N+" ("+this.JSC$17354_rid_+")")),RF(this),ajD(this)}else this.JSC$17354_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(X){this.JSC$17354_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var yAa=function(a,W){var w=a.JSC$17356_xmlHttpChunkStart_,Z=W.indexOf("\n",w);if(Z==-1)return fi9;w=Number(W.substring(w,Z));if(isNaN(w))return DD2;Z+=1;if(Z+w>W.length)return fi9;W=W.slice(Z,Z+w);a.JSC$17356_xmlHttpChunkStart_=Z+w;return W};
Mb.prototype.cancel=function(){this.JSC$17356_cancelled_=!0;RF(this)};
var zXX=function(a){a.JSC$17356_watchDogTimeoutTime_=Date.now()+a.timeout_;W6K(a,a.timeout_)},W6K=function(a,W){if(a.JSC$17356_watchDogTimerId_!=null)throw Error("vk");
a.JSC$17356_watchDogTimerId_=rN((0,_.Sk)(a.JSC$17356_onWatchDogTimeout_,a),W)},HUz=function(a){a.JSC$17356_watchDogTimerId_&&(_.NH.clearTimeout(a.JSC$17356_watchDogTimerId_),a.JSC$17356_watchDogTimerId_=null)};
Mb.prototype.JSC$17356_onWatchDogTimeout_=function(){this.JSC$17356_watchDogTimerId_=null;var a=Date.now();a-this.JSC$17356_watchDogTimeoutTime_>=0?(this.JSC$17354_channelDebug_.info("TIMEOUT: "+this.JSC$17356_requestUri_),this.JSC$17356_type_!=2&&this.JSC$17354_channel_.notifyServerReachabilityEvent(3),RF(this),this.JSC$17356_lastError_=2,FF(18),ajD(this)):(this.JSC$17354_channelDebug_.warning("WatchDog timer called too early"),W6K(this,this.JSC$17356_watchDogTimeoutTime_-a))};
var ajD=function(a){a.JSC$17354_channel_.JSC$17363_isClosed()||a.JSC$17356_cancelled_||a.JSC$17354_channel_.JSC$17363_onRequestComplete(a)},RF=function(a){HUz(a);
_.d3(a.JSC$17356_readyStateChangeThrottle_);a.JSC$17356_readyStateChangeThrottle_=null;a.pollingTimer_.stop();a.JSC$17354_eventHandler_.removeAll();if(a.JSC$17356_xmlHttp_){var W=a.JSC$17356_xmlHttp_;a.JSC$17356_xmlHttp_=null;W.abort();W.dispose()}a.trident_&&(a.trident_=null)};
Mb.prototype.getLastError=function(){return this.JSC$17356_lastError_};
var Ei2=function(a,W){try{a.JSC$17354_channel_.JSC$17363_onRequestData(a,W),a.JSC$17354_channel_.notifyServerReachabilityEvent(4)}catch(w){}};var qb=function(a,W,w,Z){var N=a.info;a:if(w&&w!="y2f%"){try{var B=JSON.parse(w);if(B)for(var I=0;I<B.length;I++)if(Array.isArray(B[I])){var X=B[I];if(!(X.length<2)){var v=X[1];if(Array.isArray(v)&&!(v.length<1)){var U=v[0];if(U!="noop"&&U!="stop")for(var O=1;O<v.length;O++)v[O]=""}}}var S=(0,_.c5)(B);break a}catch(T){a.debug("Exception parsing expected JS array - probably was not JS");S=w;break a}S=void 0}else S=w;N.call(a,"XMLHTTP TEXT ("+W+"): "+S+(Z?" "+Z:""))};
Aj.prototype.debug=function(a){this.info(a)};
Aj.prototype.info=function(){};
Aj.prototype.warning=function(){};var wT9=function(a,W){this.JSC$17361_channel_=a;this.JSC$17361_channelDebug_=W;this.JSC$17361_parser_=new OC};
_.t=wT9.prototype;_.t.JSC$17363_extraHeaders_=null;_.t.JSC$17363_request_=null;_.t.receivedIntermediateResult_=!1;_.t.JSC$17363_path_=null;_.t.state_=null;_.t.JSC$17363_lastStatusCode_=-1;_.t.JSC$17363_hostPrefix_=null;_.t.blockedPrefix_=null;
_.t.connect=function(a){this.JSC$17363_path_=a;a=Zlz(this.JSC$17361_channel_,this.JSC$17363_path_);FF(3);Date.now();var W=this.JSC$17361_channel_.firstTestResults_;W!=null?(this.JSC$17363_hostPrefix_=W[0],(this.blockedPrefix_=W[1])?(this.state_=1,NlX(this)):(this.state_=2,tGK(this))):(Np(a,"MODE","init"),this.JSC$17363_request_=new Mb(this,this.JSC$17361_channelDebug_),this.JSC$17363_request_.JSC$17356_extraHeaders_=this.JSC$17363_extraHeaders_,Vfz(this.JSC$17363_request_,a,!1,null,!0),this.state_=
0)};
var NlX=function(a){var W=$7i(a.JSC$17361_channel_,a.blockedPrefix_,"/mail/images/cleardot.gif");_.$$(W);R9K(W.toString(),5E3,(0,_.Sk)(a.checkBlockedCallback_,a),3,2E3);a.notifyServerReachabilityEvent(1)};
wT9.prototype.checkBlockedCallback_=function(a){if(a)this.state_=2,tGK(this);else{FF(4);var W=this.JSC$17361_channel_;W.JSC$17364_channelDebug_.debug("Test Connection Blocked");W.JSC$17368_lastStatusCode_=W.connectionTest_.JSC$17363_lastStatusCode_;Qe(W,9)}a&&this.notifyServerReachabilityEvent(2)};
var tGK=function(a){a.JSC$17361_channelDebug_.debug("TestConnection: starting stage 2");var W=a.JSC$17361_channel_.secondTestResults_;W!=null?(a.JSC$17361_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+W?"Buffered":"Unbuffered"),FF(5),W?(FF(11),x0(a.JSC$17361_channel_,a,!1)):(FF(12),x0(a.JSC$17361_channel_,a,!0))):(a.JSC$17363_request_=new Mb(a,a.JSC$17361_channelDebug_),a.JSC$17363_request_.JSC$17356_extraHeaders_=a.JSC$17363_extraHeaders_,W=Bla(a.JSC$17361_channel_,
a.JSC$17363_hostPrefix_,a.JSC$17363_path_),FF(5),Np(W,"TYPE","xmlhttp"),Vfz(a.JSC$17363_request_,W,!1,a.JSC$17363_hostPrefix_,!1))};
_.t=wT9.prototype;_.t.JSC$17363_createXhrIo=function(a){return this.JSC$17361_channel_.JSC$17363_createXhrIo(a)};
_.t.abort=function(){this.JSC$17363_request_&&(this.JSC$17363_request_.cancel(),this.JSC$17363_request_=null);this.JSC$17363_lastStatusCode_=-1};
_.t.JSC$17363_isClosed=function(){return!1};
_.t.JSC$17363_onRequestData=function(a,W){this.JSC$17363_lastStatusCode_=a.JSC$17356_lastStatusCode_;if(this.state_==0)if(this.JSC$17361_channelDebug_.debug("TestConnection: Got data for stage 1"),W){try{var w=this.JSC$17361_parser_.parse(W)}catch(Z){ljX(this.JSC$17361_channel_,this);return}this.JSC$17363_hostPrefix_=w[0];this.blockedPrefix_=w[1]}else this.JSC$17361_channelDebug_.debug("TestConnection: Null responseText"),ljX(this.JSC$17361_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(FF(7),Date.now()):W=="11111"?(FF(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17363_lastStatusCode_=200,this.JSC$17363_request_.cancel(),this.JSC$17361_channelDebug_.debug("Test connection succeeded; using streaming connection"),FF(12),x0(this.JSC$17361_channel_,this,!0)):(FF(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.t.JSC$17363_onRequestComplete=function(){this.JSC$17363_lastStatusCode_=this.JSC$17363_request_.JSC$17356_lastStatusCode_;this.JSC$17363_request_.JSC$17356_successful_?this.state_==0?(this.JSC$17361_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,NlX(this)):(this.state_=2,tGK(this))):this.state_==2&&(this.JSC$17361_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17361_channelDebug_.debug("Test connection succeeded; using streaming connection"),
FF(12),x0(this.JSC$17361_channel_,this,!0)):(this.JSC$17361_channelDebug_.debug("Test connection failed; not using streaming"),FF(11),x0(this.JSC$17361_channel_,this,!1))):(this.JSC$17361_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?FF(9):this.state_==2&&FF(10),ljX(this.JSC$17361_channel_,this,this.JSC$17363_request_.getLastError()))};
_.t.JSC$17363_shouldUseSecondaryDomains=function(){return this.JSC$17361_channel_.JSC$17363_shouldUseSecondaryDomains()};
_.t.isActive=function(){return this.JSC$17361_channel_.isActive()};
_.t.notifyServerReachabilityEvent=function(a){this.JSC$17361_channel_.notifyServerReachabilityEvent(a)};var bX=function(a,W,w){this.state_=1;this.JSC$17364_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17364_channelDebug_=new Aj;this.JSC$17364_parser_=new OC;this.firstTestResults_=a||null;this.secondTestResults_=W!=null?W:null;this.asyncTest_=w||!1},Ijz=function(a,W){this.JSC$17366_mapId=a;
this.map=W;this.context=null};
_.t=bX.prototype;_.t.JSC$17368_extraHeaders_=null;_.t.JSC$17368_extraParams_=null;_.t.forwardChannelRequest_=null;_.t.JSC$17368_backChannelRequest_=null;_.t.JSC$17368_path_=null;_.t.JSC$17368_forwardChannelUri_=null;_.t.JSC$17368_backChannelUri_=null;_.t.JSC$17368_hostPrefix_=null;_.t.JSC$17368_nextRid_=0;_.t.JSC$17368_nextMapId_=0;_.t.handler_=null;_.t.JSC$17368_forwardChannelTimerId_=null;_.t.JSC$17368_backChannelTimerId_=null;_.t.JSC$17368_deadBackChannelTimerId_=null;_.t.connectionTest_=null;
_.t.useChunked_=null;_.t.JSC$17368_lastArrayId_=-1;_.t.JSC$17368_lastPostResponseArrayId_=-1;_.t.JSC$17368_lastStatusCode_=-1;_.t.JSC$17368_forwardChannelRetryCount_=0;_.t.JSC$17368_backChannelRetryCount_=0;_.t.JSC$17368_channelVersion_=8;var P3a={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},XTd=function(a,W,w,Z){_.kO.call(this,"timingevent",a);this.size=W;this.rtt=w;this.retries=Z};
_.NT(XTd,_.kO);var vSK=function(a){_.kO.call(this,"serverreachability",a)};
_.NT(vSK,_.kO);bX.prototype.connect=function(a,W,w,Z,N){this.JSC$17364_channelDebug_.debug("connect()");FF(0);this.JSC$17368_path_=W;this.JSC$17368_extraParams_=w||{};Z&&N!==void 0&&(this.JSC$17368_extraParams_.OSID=Z,this.JSC$17368_extraParams_.OAID=N);this.asyncTest_?(rN((0,_.Sk)(this.connectTest_,this,a),100),gSI(this)):this.connectTest_(a)};
bX.prototype.disconnect=function(){this.JSC$17364_channelDebug_.debug("disconnect()");oSX(this);if(this.state_==3){var a=this.JSC$17368_nextRid_++,W=this.JSC$17368_forwardChannelUri_.clone();_.qF(W,"SID",this.sid_);_.qF(W,"RID",a);_.qF(W,"TYPE","terminate");sC(this,W);a=new Mb(this,this.JSC$17364_channelDebug_,this.sid_,a);a.JSC$17356_type_=2;a.JSC$17356_baseUri_=_.$$(W.clone());(new Image).src=a.JSC$17356_baseUri_.toString();a.JSC$17356_requestStartTime_=Date.now();zXX(a)}kNk(this)};
bX.prototype.connectTest_=function(a){this.JSC$17364_channelDebug_.debug("connectTest_()");this.connectionTest_=new wT9(this,this.JSC$17364_channelDebug_);this.connectionTest_.JSC$17363_extraHeaders_=this.JSC$17368_extraHeaders_;this.connectionTest_.JSC$17361_parser_=this.JSC$17364_parser_;this.connectionTest_.connect(a)};
var gSI=function(a){a.JSC$17364_channelDebug_.debug("connectChannel_()");a.JSC$17368_ensureInState_(1,0);a.JSC$17368_forwardChannelUri_=Zlz(a,a.JSC$17368_path_);U7n(a)},oSX=function(a){a.connectionTest_&&(a.connectionTest_.abort(),a.connectionTest_=null);
a.JSC$17368_backChannelRequest_&&(a.JSC$17368_backChannelRequest_.cancel(),a.JSC$17368_backChannelRequest_=null);a.JSC$17368_backChannelTimerId_&&(_.NH.clearTimeout(a.JSC$17368_backChannelTimerId_),a.JSC$17368_backChannelTimerId_=null);OlD(a);a.forwardChannelRequest_&&(a.forwardChannelRequest_.cancel(),a.forwardChannelRequest_=null);a.JSC$17368_forwardChannelTimerId_&&(_.NH.clearTimeout(a.JSC$17368_forwardChannelTimerId_),a.JSC$17368_forwardChannelTimerId_=null)},Son=function(a,W){if(a.state_==0)throw Error("yk");
a.JSC$17364_outgoingMaps_.length==1E3&&a.JSC$17364_parser_.stringify(W);a.JSC$17364_outgoingMaps_.push(new Ijz(a.JSC$17368_nextMapId_++,W));a.state_!=2&&a.state_!=3||U7n(a)};
bX.prototype.JSC$17363_isClosed=function(){return this.state_==0};
bX.prototype.getState=function(){return this.state_};
var U7n=function(a){a.forwardChannelRequest_||a.JSC$17368_forwardChannelTimerId_||(a.JSC$17368_forwardChannelTimerId_=rN((0,_.Sk)(a.JSC$17368_onStartForwardChannelTimer_,a),0),a.JSC$17368_forwardChannelRetryCount_=0)};
bX.prototype.JSC$17368_onStartForwardChannelTimer_=function(a){this.JSC$17368_forwardChannelTimerId_=null;YoE(this,a)};
var YoE=function(a,W){a.JSC$17364_channelDebug_.debug("startForwardChannel_");if(a.state_==1){if(!W){a.JSC$17364_channelDebug_.debug("open_()");a.JSC$17368_nextRid_=Math.floor(Math.random()*1E5);W=a.JSC$17368_nextRid_++;var w=new Mb(a,a.JSC$17364_channelDebug_,"",W);w.JSC$17356_extraHeaders_=a.JSC$17368_extraHeaders_;var Z=Tlz(a),N=a.JSC$17368_forwardChannelUri_.clone();_.qF(N,"RID",W);_.qF(N,"CVER","1");sC(a,N);mDX(w,N,Z);a.forwardChannelRequest_=w;a.state_=2}}else a.state_==3&&(W?K6X(a,W):a.JSC$17364_outgoingMaps_.length==
0?a.JSC$17364_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):a.forwardChannelRequest_||(K6X(a),a.JSC$17364_channelDebug_.debug("startForwardChannel_ finished, sent request")))},K6X=function(a,W){if(W)if(a.JSC$17368_channelVersion_>6){a.JSC$17364_outgoingMaps_=a.pendingMaps_.concat(a.JSC$17364_outgoingMaps_);
a.pendingMaps_.length=0;var w=a.JSC$17368_nextRid_-1;W=Tlz(a)}else w=W.JSC$17354_rid_,W=W.JSC$17356_postData_;else w=a.JSC$17368_nextRid_++,W=Tlz(a);var Z=a.JSC$17368_forwardChannelUri_.clone();_.qF(Z,"SID",a.sid_);_.qF(Z,"RID",w);_.qF(Z,"AID",a.JSC$17368_lastArrayId_);sC(a,Z);w=new Mb(a,a.JSC$17364_channelDebug_,a.sid_,w,a.JSC$17368_forwardChannelRetryCount_+1);w.JSC$17356_extraHeaders_=a.JSC$17368_extraHeaders_;w.setTimeout(1E4+Math.round(1E4*Math.random()));a.forwardChannelRequest_=w;mDX(w,Z,W)},
sC=function(a,W){a.handler_&&(a=a.handler_.JSC$17375_getAdditionalParams())&&_.T5.forEach(a,function(w,Z){_.qF(W,Z,w)})},Tlz=function(a){var W=Math.min(a.JSC$17364_outgoingMaps_.length,1E3),w=["count="+W];
if(a.JSC$17368_channelVersion_>6&&W>0){var Z=a.JSC$17364_outgoingMaps_[0].JSC$17366_mapId;w.push("ofs="+Z)}else Z=0;for(var N={},B=0;B<W;N={mapId$jscomp$3:void 0},B++){N.mapId$jscomp$3=a.JSC$17364_outgoingMaps_[B].JSC$17366_mapId;var I=a.JSC$17364_outgoingMaps_[B].map;N.mapId$jscomp$3=a.JSC$17368_channelVersion_<=6?B:N.mapId$jscomp$3-Z;try{_.T5.forEach(I,function(X){return function(v,U){w.push("req"+X.mapId$jscomp$3+"_"+U+"="+encodeURIComponent(v))}}(N))}catch(X){w.push("req"+N.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}a.pendingMaps_=a.pendingMaps_.concat(a.JSC$17364_outgoingMaps_.splice(0,W));
return w.join("&")},pTX=function(a){a.JSC$17368_backChannelRequest_||a.JSC$17368_backChannelTimerId_||(a.JSC$17368_backChannelAttemptId_=1,a.JSC$17368_backChannelTimerId_=rN((0,_.Sk)(a.JSC$17368_onStartBackChannelTimer_,a),0),a.JSC$17368_backChannelRetryCount_=0)},AM9=function(a){if(a.JSC$17368_backChannelRequest_||a.JSC$17368_backChannelTimerId_||a.JSC$17368_backChannelRetryCount_>=3)return!1;
a.JSC$17364_channelDebug_.debug("Going to retry GET");a.JSC$17368_backChannelAttemptId_++;a.JSC$17368_backChannelTimerId_=rN((0,_.Sk)(a.JSC$17368_onStartBackChannelTimer_,a),rMa(a,a.JSC$17368_backChannelRetryCount_));a.JSC$17368_backChannelRetryCount_++;return!0};
bX.prototype.JSC$17368_onStartBackChannelTimer_=function(){this.JSC$17368_backChannelTimerId_=null;this.JSC$17364_channelDebug_.debug("Creating new HttpRequest");this.JSC$17368_backChannelRequest_=new Mb(this,this.JSC$17364_channelDebug_,this.sid_,"rpc",this.JSC$17368_backChannelAttemptId_);this.JSC$17368_backChannelRequest_.JSC$17356_extraHeaders_=this.JSC$17368_extraHeaders_;this.JSC$17368_backChannelRequest_.JSC$17356_readyStateChangeThrottleMs_=0;var a=this.JSC$17368_backChannelUri_.clone();_.qF(a,
"RID","rpc");_.qF(a,"SID",this.sid_);_.qF(a,"CI",this.useChunked_?"0":"1");_.qF(a,"AID",this.JSC$17368_lastArrayId_);sC(this,a);_.qF(a,"TYPE","xmlhttp");Vfz(this.JSC$17368_backChannelRequest_,a,!0,this.JSC$17368_hostPrefix_,!1);this.JSC$17364_channelDebug_.debug("New Request created")};
var x0=function(a,W,w){a.JSC$17364_channelDebug_.debug("Test Connection Finished");a.useChunked_=a.secondTestResults_==null?w:!a.secondTestResults_;a.JSC$17368_lastStatusCode_=W.JSC$17363_lastStatusCode_;a.asyncTest_||gSI(a)},ljX=function(a,W){a.JSC$17364_channelDebug_.debug("Test Connection Failed");
a.JSC$17368_lastStatusCode_=W.JSC$17363_lastStatusCode_;Qe(a,2)};
bX.prototype.JSC$17363_onRequestData=function(a,W){if(this.state_!=0&&(this.JSC$17368_backChannelRequest_==a||this.forwardChannelRequest_==a))if(this.JSC$17368_lastStatusCode_=a.JSC$17356_lastStatusCode_,this.forwardChannelRequest_==a&&this.state_==3)if(this.JSC$17368_channelVersion_>7){try{var w=this.JSC$17364_parser_.parse(W)}catch(Z){w=null}if(Array.isArray(w)&&w.length==3)if(W=w,W[0]==0)a:if(this.JSC$17364_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17368_backChannelTimerId_)this.JSC$17364_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17368_backChannelRequest_)if(this.JSC$17368_backChannelRequest_.JSC$17356_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17356_requestStartTime_)OlD(this),this.JSC$17368_backChannelRequest_.cancel(),this.JSC$17368_backChannelRequest_=null;else break a;else this.JSC$17364_channelDebug_.warning("We do not have a BackChannel established");AM9(this);FF(19)}else this.JSC$17368_lastPostResponseArrayId_=W[1],a=this.JSC$17368_lastPostResponseArrayId_-this.JSC$17368_lastArrayId_,0<
a&&(W=W[2],this.JSC$17364_channelDebug_.debug(W+" bytes (in "+a+" arrays) are outstanding on the BackChannel"),W<37500&&this.useChunked_&&this.JSC$17368_backChannelRetryCount_==0&&!this.JSC$17368_deadBackChannelTimerId_&&(this.JSC$17368_deadBackChannelTimerId_=rN((0,_.Sk)(this.JSC$17368_onBackChannelDead_,this),6E3)));else this.JSC$17364_channelDebug_.debug("Bad POST response data returned"),Qe(this,11)}else W!="y2f%"&&(this.JSC$17364_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Qe(this,11));else this.JSC$17368_backChannelRequest_==a&&OlD(this),_.vv(W)||(a=this.JSC$17364_parser_.parse(W),this.onInput_(a))};
bX.prototype.JSC$17368_onBackChannelDead_=function(){this.JSC$17368_deadBackChannelTimerId_!=null&&(this.JSC$17368_deadBackChannelTimerId_=null,this.JSC$17368_backChannelRequest_.cancel(),this.JSC$17368_backChannelRequest_=null,AM9(this),FF(20))};
var OlD=function(a){a.JSC$17368_deadBackChannelTimerId_!=null&&(_.NH.clearTimeout(a.JSC$17368_deadBackChannelTimerId_),a.JSC$17368_deadBackChannelTimerId_=null)};
bX.prototype.JSC$17363_onRequestComplete=function(a){this.JSC$17364_channelDebug_.debug("Request complete");if(this.JSC$17368_backChannelRequest_==a){OlD(this);this.JSC$17368_backChannelRequest_=null;var W=2}else if(this.forwardChannelRequest_==a)this.forwardChannelRequest_=null,W=1;else return;this.JSC$17368_lastStatusCode_=a.JSC$17356_lastStatusCode_;if(this.state_!=0)if(a.JSC$17356_successful_)if(W==1){W=a.JSC$17356_postData_?a.JSC$17356_postData_.length:0;a=Date.now()-a.JSC$17356_requestStartTime_;
var w=uSK;w.dispatchEvent(new XTd(w,W,a,this.JSC$17368_forwardChannelRetryCount_));U7n(this);this.handler_&&this.handler_.JSC$17375_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else pTX(this);else{w=a.getLastError();if(w==3||w==7||w==0&&this.JSC$17368_lastStatusCode_>0)this.JSC$17364_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17364_channelDebug_.debug("Maybe retrying, last error: "+Gp0(w,this.JSC$17368_lastStatusCode_));var Z;if(Z=W==1)this.forwardChannelRequest_||
this.JSC$17368_forwardChannelTimerId_||this.state_==1||this.JSC$17368_forwardChannelRetryCount_>=2?Z=!1:(this.JSC$17364_channelDebug_.debug("Going to retry POST"),this.JSC$17368_forwardChannelTimerId_=rN((0,_.Sk)(this.JSC$17368_onStartForwardChannelTimer_,this,a),rMa(this,this.JSC$17368_forwardChannelRetryCount_)),this.JSC$17368_forwardChannelRetryCount_++,Z=!0);if(Z||W==2&&AM9(this))return;this.JSC$17364_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17364_channelDebug_.debug("Error: HTTP request failed");
switch(w){case 1:Qe(this,5);break;case 4:Qe(this,10);break;case 3:Qe(this,6);break;case 7:Qe(this,12);break;default:Qe(this,2)}}};
var rMa=function(a,W){var w=5E3+Math.floor(Math.random()*1E4);a.isActive()||(a.JSC$17364_channelDebug_.debug("Inactive channel"),w*=2);return w*W};
bX.prototype.onInput_=function(a){for(var W=0;W<a.length;W++){var w=a[W];this.JSC$17368_lastArrayId_=w[0];w=w[1];this.state_==2?w[0]=="c"?(this.sid_=w[1],this.JSC$17368_hostPrefix_=w[2],w=w[3],w!=null?this.JSC$17368_channelVersion_=w:this.JSC$17368_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17375_channelOpened(),this.JSC$17368_backChannelUri_=Bla(this,this.JSC$17368_hostPrefix_,this.JSC$17368_path_),pTX(this)):w[0]=="stop"&&Qe(this,7):this.state_==3&&(w[0]=="stop"?Qe(this,7):
w[0]!="noop"&&this.handler_&&this.handler_.JSC$17375_channelHandleArray(w),this.JSC$17368_backChannelRetryCount_=0)}};
bX.prototype.JSC$17368_ensureInState_=function(a){if(!_.f7(arguments,this.state_))throw Error("zk`"+this.state_);};
var Qe=function(a,W){a.JSC$17364_channelDebug_.info("Error code "+W);if(W==2||W==9){var w=null;a.handler_&&(w=null);var Z=(0,_.Sk)(a.testGoogleComCallback_,a);w||(w=new _.CS("//www.google.com/images/cleardot.gif"),_.$$(w));MH2(w.toString(),1E4,Z)}else FF(2);a.onError_(W)};
bX.prototype.testGoogleComCallback_=function(a){a?(this.JSC$17364_channelDebug_.info("Successfully pinged google.com"),FF(2)):(this.JSC$17364_channelDebug_.info("Failed to ping google.com"),FF(1),this.onError_(8))};
bX.prototype.onError_=function(a){this.JSC$17364_channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.JSC$17375_channelError(a);kNk(this);oSX(this)};
var kNk=function(a){a.state_=0;a.JSC$17368_lastStatusCode_=-1;if(a.handler_)if(a.pendingMaps_.length==0&&a.JSC$17364_outgoingMaps_.length==0)a.handler_.JSC$17375_channelClosed();else{a.JSC$17364_channelDebug_.debug("Number of undelivered maps, pending: "+a.pendingMaps_.length+", outgoing: "+a.JSC$17364_outgoingMaps_.length);var W=_.Wl(a.pendingMaps_),w=_.Wl(a.JSC$17364_outgoingMaps_);a.pendingMaps_.length=0;a.JSC$17364_outgoingMaps_.length=0;a.handler_.JSC$17375_channelClosed(W,w)}},Zlz=function(a,
W){W=$7i(a,null,W);
a.JSC$17364_channelDebug_.debug("GetForwardChannelUri: "+W);return W},Bla=function(a,W,w){W=$7i(a,a.JSC$17363_shouldUseSecondaryDomains()?W:null,w);
a.JSC$17364_channelDebug_.debug("GetBackChannelUri: "+W);return W},$7i=function(a,W,w){var Z=_.MF(w);
if(Z.JSC$7940_domain_!="")W&&_.yc(Z,W+"."+Z.JSC$7940_domain_),_.El(Z,Z.JSC$7940_port_);else{var N=window.location;Z=Gw0(N.protocol,W?W+"."+N.hostname:N.hostname,+N.port,w)}a.JSC$17368_extraParams_&&_.T5.forEach(a.JSC$17368_extraParams_,function(B,I){_.qF(Z,I,B)});
_.qF(Z,"VER",a.JSC$17368_channelVersion_);sC(a,Z);return Z};
bX.prototype.JSC$17363_createXhrIo=function(a){if(a)throw Error("wk");a=new _.eX;a.JSC$7703_withCredentials_=!1;return a};
bX.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
bX.prototype.notifyServerReachabilityEvent=function(a){var W=uSK;W.dispatchEvent(new vSK(W,a))};
bX.prototype.JSC$17363_shouldUseSecondaryDomains=function(){return!1};
new znK;var huI=function(){};
_.t=huI.prototype;_.t.JSC$17375_channelOpened=function(){};
_.t.JSC$17375_channelHandleArray=function(){};
_.t.JSC$17375_channelSuccess=function(){};
_.t.JSC$17375_channelError=function(){};
_.t.JSC$17375_channelClosed=function(){};
_.t.JSC$17375_getAdditionalParams=function(){return{}};
_.t.isActive=function(){return!0};var ilz=function(a){a.front_.length===0&&(a.front_=a.back_,a.front_.reverse(),a.back_=[])};
_.t=QmD.prototype;_.t.enqueue=function(a){this.back_.push(a)};
_.t.peek=function(){ilz(this);return _.xI(this.front_)};
_.t.getCount=function(){return this.front_.length+this.back_.length};
_.t.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.t.clear=function(){this.front_=[];this.back_=[]};
_.t.contains=function(a){return _.f7(this.front_,a)||_.f7(this.back_,a)};
_.t.remove=function(a){var W=this.front_;var w=Array.prototype.lastIndexOf.call(W,a,W.length-1);w>=0?(_.mU(W,w),W=!0):W=!1;return W||_.yF(this.back_,a)};
_.t.getValues=function(){for(var a=[],W=this.front_.length-1;W>=0;--W)a.push(this.front_[W]);W=this.back_.length;for(var w=0;w<W;++w)a.push(this.back_[w]);return a};var uX=function(a){this.JSC$17379_map_=new _.$S;this.size=0;a&&this.addAll(a)},cMa=function(a){var W=typeof a;
return W=="object"&&a||W=="function"?"o"+_.lA(a):W.charAt(0)+a};
_.t=uX.prototype;_.t.getCount=function(){return this.JSC$17379_map_.size};
_.t.add=function(a){this.JSC$17379_map_.set(cMa(a),a);this.size=this.JSC$17379_map_.size};
_.t.addAll=function(a){a=_.zi(a);for(var W=a.length,w=0;w<W;w++)this.add(a[w]);this.size=this.JSC$17379_map_.size};
_.t.removeAll=function(a){a=_.zi(a);for(var W=a.length,w=0;w<W;w++)this.remove(a[w]);this.size=this.JSC$17379_map_.size};
_.t.delete=function(a){a=this.JSC$17379_map_.remove(cMa(a));this.size=this.JSC$17379_map_.size;return a};
_.t.remove=function(a){return this.delete(a)};
_.t.clear=function(){this.JSC$17379_map_.clear();this.size=0};
_.t.isEmpty=function(){return this.JSC$17379_map_.size===0};
_.t.has=function(a){return this.JSC$17379_map_.containsKey(cMa(a))};
_.t.contains=function(a){return this.JSC$17379_map_.containsKey(cMa(a))};
_.t.getValues=function(){return this.JSC$17379_map_.getValues()};
_.t.values=function(){return this.JSC$17379_map_.values()};
_.t.clone=function(){return new uX(this)};
_.t.equals=function(a){return this.getCount()==uqK(a)&&eud(this,a)};
var eud=function(a,W){var w=uqK(W);if(a.getCount()>w)return!1;!(W instanceof uX)&&w>5&&(W=new uX(W));return C5f(a,function(Z){var N=W;return N.contains&&typeof N.contains=="function"?N.contains(Z):N.containsValue&&typeof N.containsValue=="function"?N.containsValue(Z):_.wT(N)||typeof N==="string"?_.f7(N,Z):_.T5.containsValue(N,Z)})};
uX.prototype.__iterator__=function(){return this.JSC$17379_map_.__iterator__(!1)};
uX.prototype[Symbol.iterator]=function(){return this.values()};var nSf={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 jAn;var L6D;_.kQ({_template:function(){if(L6D!==void 0)return L6D;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;jAn===void 0&&(jAn=document.createElement("template"));var Z=jAn;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return L6D=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(){_.DW(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 W=a.detail.dx+this._translateOffset,w=this.getWidth();W=this.position==="left"?W>=0||W<=-w:W<=0||W>=w;if(!W){var Z=this._trackDetails;this._trackDetails=null;this._flingDrawer(a,Z);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}w/=2;a.detail.dx<-w?this.opened=this.position==="right":a.detail.dx>w&&(this.opened=this.position==="left");W?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(a,W){for(var w=Date.now(),Z=w-100,N,B=0,I=W.length-1;B<=I;){var X=B+I>>1,v=W[X];v.timeStamp>=Z?(N=v,I=X-1):B=X+1}return N?(a.detail.dx-N.dx)/(w-N.timeStamp||1):0},
_flingDrawer:function(a,W){W=this._calculateVelocity(a,W);if(!(Math.abs(W)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;a=a.detail.dx+this._translateOffset;var w=this.getWidth(),Z=this.position==="left",N=W>0;N?(W=Math.max(W,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(W=Math.min(W,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");W=this._FLING_INITIAL_SLOPE*(!N&&Z?-(a+w):N&&!Z?w-a:-a)/W;this._styleTransitionDuration(W);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,W)}},
_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 W=this.getWidth();this.position==="left"?(a=Math.max(-W,Math.min(a,0)),this.$.scrim.style.opacity=1+a/W):(a=Math.max(0,Math.min(a,W)),this.$.scrim.style.opacity=1-a/W);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=_.Tq(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&&_.Tq(a).localTarget===this._firstTabStop&&(a.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Tq(a).localTarget===this._lastTabStop&&(a.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(a,W){this.toggleClass("visible",a&&!W,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 JMd;var F6X;_.kQ({_template:function(){if(F6X!==void 0)return F6X;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;JMd===void 0&&(JMd=document.createElement("template"));var Z=JMd;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return F6X=a},
is:"tp-yt-paper-progress",behaviors:[nSf],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,W){a.style.transform=a.style.webkitTransform="scaleX("+W/100+")"},
_mainRatioChanged:function(a){this._transformProgress(this.$.primaryProgress,a)},
_progressChanged:function(a,W,w,Z,N){a=this._clampValue(a);W=this._clampValue(W);var B=this._calcRatio(a)*100,I=this._calcRatio(W)*100;this._setSecondaryRatio(B);this._transformProgress(this.$.secondaryProgress,B);this._transformProgress(this.$.primaryProgress,I);this.secondaryProgress=a;N?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",W);this.setAttribute("aria-valuemin",w);this.setAttribute("aria-valuemax",Z)},
_disabledChanged:function(a){this.setAttribute("aria-disabled",a?"true":"false")},
_hideSecondaryProgress:function(a){return a===0}});var MGn;var RuK;var qod=function(){};
_.t=qod.prototype;_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._buttonStateChanged=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._noinkChanged=function(){};
_.t._calcRatio=function(){};
_.t._clampValue=function(){};
_.t._calcStep=function(){};
_.t._validateValue=function(){};
_.t._update=function(){};
_.t._setImmediateValue=function(){};
_.t._setExpand=function(){};
_.t._setDragging=function(){};
_.t._setTransiting=function(){};
_.t._setMarkers=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
_.t._setRatio=function(){};
qod=_.kQ({_template:function(){if(RuK!==void 0)return RuK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;MGn===void 0&&(MGn=document.createElement("template"));var Z=MGn;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return RuK=a},
is:"tp-yt-paper-slider",behaviors:[_.YS,_.rl,_.kb6,nSf],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&&_.nM(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,W,w){this.setAttribute("aria-valuemin",W);this.setAttribute("aria-valuemax",w);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 W=this.$.sliderBar.getBoundingClientRect();W=(a.detail.x-W.left)/this._w*100;this._isRTL&&(W=100-W);var w=this.ratio;this._setTransiting(!0);this._positionKnob(W);w===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,W,w,Z){Z||this._setMarkers([]);W=Math.round((w-W)/this.step);W>a&&(W=a);if(W<0||!isFinite(W))W=0;this._setMarkers(Array(W))},
_mergeClasses:function(a){return Object.keys(a).filter(function(W){return a[W]}).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 _.oBT._createRipple.call(this)},
_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=a?"":"none",this._ripple.holdDown=a)}});var QA0;var x7K;var C5=null,bl2=function(){};
_.t=bl2.prototype;_.t.fit=function(){};
_.t._discoverInfo=function(){};
_.t.resetFit=function(){};
_.t.refit=function(){};
_.t.position=function(){};
_.t.constrain=function(){};
_.t._sizeDimension=function(){};
_.t.__sizeDimension=function(){};
_.t.center=function(){};
_.t.__getNormalizedRect=function(){};
_.t.__getOffscreenArea=function(){};
_.t.__getPosition=function(){};
_.t.notifyResize=function(){};
_.t.assignParentResizable=function(){};
_.t.stopResizeNotificationsFor=function(){};
_.t._subscribeIronResize=function(){};
_.t._unsubscribeIronResize=function(){};
_.t.resizerShouldNotify=function(){};
_.t._onDescendantIronResize=function(){};
_.t._fireResize=function(){};
_.t._onIronRequestResizeNotifications=function(){};
_.t._parentResizableChanged=function(){};
_.t._notifyDescendant=function(){};
_.t._requestResizeNotifications=function(){};
_.t._findParent=function(){};
_.t.toggle=function(){};
_.t.open=function(){};
_.t.close=function(){};
_.t.cancel=function(){};
_.t.invalidateTabbables=function(){};
_.t._ensureSetup=function(){};
_.t._canceledChanged=function(){};
_.t._withBackdropChanged=function(){};
_.t._prepareRenderOpened=function(){};
_.t._finishRenderOpened=function(){};
_.t._finishRenderClosed=function(){};
_.t._preparePositioning=function(){};
_.t._finishPositioning=function(){};
_.t._applyFocus=function(){};
_.t._onCaptureClick=function(){};
_.t._onCaptureFocus=function(){};
_.t._onCaptureEsc=function(){};
_.t._onCaptureTab=function(){};
_.t._onIronResize=function(){};
_.t._onNodesChange=function(){};
_.t.__ensureFirstLastFocusables=function(){};
_.t.__openedChanged=function(){};
_.t.__deraf=function(){};
_.t.__updateScrollObservers=function(){};
_.t.__addScrollListeners=function(){};
_.t.__removeScrollListeners=function(){};
_.t.__isValidScrollAction=function(){};
_.t.__onCaptureScroll=function(){};
_.t.__saveScrollPosition=function(){};
_.t.__restoreScrollPosition=function(){};
_.t._setCanceled=function(){};
bl2=_.kQ({_template:function(){if(x7K!==void 0)return x7K;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;QA0===void 0&&(QA0=document.createElement("template"));var Z=QA0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);return x7K=a},
is:"tp-yt-paper-toast",behaviors:[_.GN],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(){_.Tp._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.xS.requestAvailability()},
show:function(a){typeof a=="string"&&(a={text:a});for(var W in a)W.indexOf("_")===0?_.Tp._warn('The property "'+W+'" is private and was not set.'):W in this?this[W]=a[W]:_.Tp._warn('The property "'+W+'" 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?(C5&&C5!==this&&C5.close(),C5=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):C5===this&&(C5=null);_.Cl._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 sAa=new _.H("disablePersonalizationAction");var LVX=new _.H("showDmaConsentFlowCommand");var Jtk=new _.H("showMmgNoticeCommand");var ucE=new _.H("saveConsentAction");var C3f=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.No(a)};
_.c(C3f,_.QH);var GNX=_.w9F(C3f);var D7i=new _.H("updateTopbarAvatarAction");var fjX=new _.H("channelHandleValidationResultRenderer");var d79=new _.H("generateHandleFromNameResultRenderer");var m7E=new _.H("channelHandleInputRenderer");var VGX=new _.H("copyLinkRenderer");var zu9=new _.H("timedCommand");var HlE=new _.H("clearCookieAction");var yMn=new _.H("getMultiPageMenuAction");var ESk=new _.H("addToGuideSectionAction"),al9=new _.H("removeFromGuideSectionAction");var WFn=new _.H("updateNotificationsUnseenCountAction");var wof=new _.H("resetChannelUnreadCountCommand");var Zzi=new _.H("resetSubscriptionsUnreadDotCommand");var N7n=new _.H("selectLanguageCommand");var djf=new _.H("sendFeedbackAction");var tTI=new _.H("uploadImageToScottyCommand");var $af=new _.H("registerPromoCommand");var B70=new _.H("setPushNotificationsEnabledCommand");var llf=new _.H("desktopTopbarRenderer");var Ilk=new _.H("surveyFollowUpRenderer");var PHk=new _.H("handlesClaimingRadioOptionRenderer");var Xo0=new _.H("hotkeyDialogRenderer");var vcn=new _.H("modifyReportFormCommand");var gcK=new _.H("accountLinkCommand");var oc0=new _.H("accountUnlinkCommand");var kzz=new _.H("logAccountLinkingEventCommand");var UaX=new _.H("guideCollapsibleEntryRenderer");var Ozz=new _.H("guideDownloadsEntryRenderer");var Go=new _.H("guideEntryRenderer");var Sj0=new _.H("getLocationCommand");var Yj2=new _.H("locationCollectionCommand");var T70=new _.H("storiesItemViewModel");var KFf=new _.H("addToRemoteQueueAction");var poi=new _.H("insertInRemoteQueueAction");var r4d=new _.H("removeFromRemoteQueueAction");var A49=new _.H("notificationRenderer");var UtD=new _.H("localWatchHistoryCommand");var h_9=new _.H("pdgBuyFlowHeaderRenderer");var izn=new _.H("pdgColorSliderRenderer");var c40=new _.H("pdgCommentOptionRenderer");var e_I=new _.H("pdgCommentPreviewRenderer");var nck=new _.H("superVodSelectableItemButtonRenderer");var ji0=new _.H("switchButtonRenderer");var LFi=new _.H("upsellDialogRenderer");var J4f=new _.H("feedbackQuestionRenderer"),FFi=new _.H("feedbackOptionRenderer");var MT9=new _.H("sponsorshipsTierRenderer"),R_D=new _.H("sponsorshipsPromotionChannelRenderer");var qjX=new _.H("simpleSurveyMessageRenderer");var dta=new _.H("invokeInstrumentManagerAction");var Qid=new _.H("logYpcFlowDismissCommand");var xaz=new _.H("logYpcFlowStartCommand");var bzK=new _.H("unlimitedCreateFamilyEndpoint");var sif=new _.H("iconBadgeRenderer");var UjI=new _.H("collaborativePlaylistVisibilityValidationRule");var u80=function(a){_.kO.call(this,"channelMessage");this.message=a};
_.c(u80,_.kO);var CHX=function(a){_.kO.call(this,"channelError");this.error=a};
_.c(CHX,_.kO);var GzX={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"},Daf={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},flk={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
daK={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},ma0={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Dz=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 _.$S;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";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.theme=a.theme||"u",VTE(this,a.capabilities||""),z_K(this,a.compatibleSenderThemes||""),Hzz(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")};
Dz.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 Dz(a);a.connected=this.connected;a.remoteControllerUrl=this.remoteControllerUrl;a.localChannelEncryptionKey=this.localChannelEncryptionKey;a.deviceContext=
this.deviceContext;return a};
Dz.prototype.equals=function(a){return a?this.id==a.id:!1};
var VTE=function(a,W){a.capabilities.clear();_.$T(W.split(","),_.v_(_.T5.contains,GzX)).forEach(function(w){a.capabilities.add(w)})},z_K=function(a,W){a.compatibleSenderThemes.clear();
_.$T(W.split(","),_.v_(_.T5.contains,Daf)).forEach(function(w){a.compatibleSenderThemes.add(w)})},Hzz=function(a,W){a.experiments.clear();
W.split(",").forEach(function(w){a.experiments.add(w)})};var y4d=function(a,W){this.action=a;this.params=W||{}};_.NT(xM0,_.OW);_.t=xM0.prototype;_.t.JSC$17415_onTick_=function(){this.JSC$17413_interval_=Math.min(3E5,this.JSC$17413_interval_*2);this.JSC$17415_listener_();this.nextTickTime_&&this.start()};
_.t.start=function(){var a=this.JSC$17413_interval_+15E3*Math.random(),W=this.delay_;W.isActive()||W.start(a);this.nextTickTime_=Date.now()+a};
_.t.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.t.isActive=function(){return this.delay_.isActive()};
_.t.reset=function(){this.delay_.stop();this.JSC$17413_interval_=5E3};_.NT(hj,huI);_.t=hj.prototype;_.t.subscribe=function(a,W,w){return this.pubsub_.subscribe(a,W,w)};
_.t.unsubscribe=function(a,W,w){return this.pubsub_.unsubscribe(a,W,w)};
_.t.unsubscribeByKey=function(a){return this.pubsub_.unsubscribeByKey(a)};
_.t.publish=function(a,W){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.t.dispose=function(){this.JSC$17416_disposed_||(this.JSC$17416_disposed_=!0,_.d3(this.pubsub_),this.disconnect(),_.d3(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17416_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.tk({})})};
_.t.isDisposed=function(){return this.JSC$17416_disposed_};
_.t.connect=function(a,W,w){var Z=this,N,B,I,X;return _.P(function(v){if(v.nextAddress==1)return _.lb(v,2),Z.useAsyncBrowserChannelHandler_?_.g(v,Z.connectPromise_,2):v.jumpTo(2);_.$8(v);if(Z.JSC$17416_disposed_||Z.JSC$17416_channel_&&Z.JSC$17416_channel_.getState()==2)return v.return();Z.sCookie_="";Z.reconnectTimer_.stop();Z.connectionParams_=a||null;Z.connectUi_=W||0;N=Z.JSC$17416_pathPrefix_+"/test";B=Z.JSC$17416_pathPrefix_+"/bind";I=new bX(w?w.firstTestResults:null,w?w.secondTestResults:null,
Z.enableAsyncTest_);if(X=Z.JSC$17416_channel_)X.handler_=null;I.handler_=Z;Z.JSC$17416_channel_=I;if(Z.useAsyncBrowserChannelHandler_)return Z.connectPromise_=EcD(Z).then(function(){return aJI(Z,N,B,X,w)}),v.return(Z.connectPromise_.then(function(){Z.connectPromise_=_.tk()}));
aJI(Z,N,B,X,w);return _.In(v,0)})};
var aJI=function(a,W,w,Z,N){WTX(a);if(a.JSC$17416_channel_){var B=_.LF("ID_TOKEN"),I=a.JSC$17416_channel_.JSC$17368_extraHeaders_||{};B?I["x-youtube-identity-token"]=B:delete I["x-youtube-identity-token"];a.JSC$17416_channel_.JSC$17368_extraHeaders_=I}wED(a);Z?(Z.getState(),a.JSC$17416_channel_.connect(W,w,a.defaultQueryParams_,Z.sid_,Z.JSC$17368_lastArrayId_)):N?a.JSC$17416_channel_.connect(W,w,a.defaultQueryParams_,N.sessionId,N.arrayId):a.JSC$17416_channel_.connect(W,w,a.defaultQueryParams_)};
hj.prototype.disconnect=function(a){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.tk())}finally{this.disconnectUi_=a||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),WTX(this),this.JSC$17416_channel_&&(this.JSC$17416_channel_.getState()==3&&YoE(this.JSC$17416_channel_),this.JSC$17416_channel_.disconnect()),this.disconnectUi_=0}};
hj.prototype.sendMessage=function(a,W){var w=this,Z;return _.P(function(N){switch(N.nextAddress){case 1:_.lb(N,2);if(!w.useAsyncBrowserChannelHandler_){N.jumpTo(2);break}return _.g(N,w.connectPromise_,2);case 2:_.$8(N);if(w.JSC$17416_disposed_)return N.return();Z={_sc:a};W&&_.T5.extend(Z,W);if(w.reconnectTimer_.isActive()||(w.JSC$17416_channel_?w.JSC$17416_channel_.getState():0)==2){w.JSC$17416_pendingMessages_.push(Z);N.jumpTo(6);break}if(!w.isChannelOpened()){N.jumpTo(6);break}_.lb(N,8);if(!w.useAsyncBrowserChannelHandler_||
ZBk(w,a)){N.jumpTo(8);break}return _.g(N,EcD(w),8);case 8:_.$8(N,0,0,1);w.isChannelOpened()&&(ZBk(w,a)||wED(w),WTX(w),Son(w.JSC$17416_channel_,Z));_.In(N,6,1);break;case 6:_.In(N,0)}})};
var ZBk=function(a,W){return a.enableMdxAuthForConnectionOnly_?!0:a.disableMdxAuthForAdMessages_?Object.values(flk).includes(W):a.disableMdxAuthForNonPlaybackMessages_?!Object.values(daK).includes(W):a.disableMdxAuthForShortsMessages_?Object.values(ma0).includes(W):!1};
hj.prototype.JSC$17375_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17416_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)N9E(this);else{var a=this.JSC$17416_pendingMessages_;this.JSC$17416_pendingMessages_=[];var W=a.length;wED(this);twD(this,a,W);$Jz(this)}else $Jz(this)};
var N9E=function(a){var W,w;_.P(function(Z){if(Z.nextAddress==1)return _.lb(Z,2),_.g(Z,EcD(a),2);_.$8(Z);W=a.JSC$17416_pendingMessages_;a.JSC$17416_pendingMessages_=[];w=W.length;twD(a,W,w);$Jz(a);return _.In(Z,0)})},twD=function(a,W,w){for(var Z=0;Z<w;++Z)Son(a.JSC$17416_channel_,W[Z]);
$Jz(a)},$Jz=function(a){a.publish("handlerOpened");
a.JSC$17416_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.t=hj.prototype;_.t.JSC$17375_channelError=function(a){var W=a==2&&this.JSC$17416_channel_.JSC$17368_lastStatusCode_==401;a==4||W||this.reconnectTimer_.start();this.publish("handlerError",a,W);W=Object.keys(P3a).find(function(w){return P3a[w]===a});
this.JSC$17416_channelErrorCounter.increment("BROWSER_CHANNEL",W!=null?W:"UNKNOWN")};
_.t.JSC$17375_channelClosed=function(a,W){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(W)for(var w=W.length,Z=0;Z<w;++Z){var N=W[Z].map;N&&this.JSC$17416_pendingMessages_.push(N)}this.JSC$17416_channelClosedCounter.increment("BROWSER_CHANNEL");a&&this.pendingMapsOnClosedCounter.JSC$7836_streamzService.JSC$7694_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",a.length);W&&this.undeliveredMapsOnClosedCounter.JSC$7839_streamzService.JSC$7694_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
W.length)};
_.t.JSC$17375_channelSuccess=function(a,W){W!=null&&a!=null&&this.channelMessageSentCounter.increment()};
_.t.JSC$17375_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_&&_.T5.extend(a,this.connectionParams_);return a};
_.t.JSC$17375_channelHandleArray=function(a){a[0]=="S"?this.sCookie_=a[1]:a[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17416_channel_.disconnect()):this.publish("handlerMessage",new y4d(a[0],a[1]));this.JSC$17416_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.t.isChannelOpened=function(){return!!this.JSC$17416_channel_&&this.JSC$17416_channel_.getState()==3};
var WTX=function(a){if(a.JSC$17416_channel_){var W=a.JSC$17416_getXsrfToken_(),w=a.JSC$17416_channel_.JSC$17368_extraHeaders_||{};W?w["x-youtube-lounge-xsrf-token"]=W:delete w["x-youtube-lounge-xsrf-token"];a.JSC$17416_channel_.JSC$17368_extraHeaders_=w}},EcD=function(a){if(a.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.tk();
if(!a.enableCachedUpdateAuthorizationHeader_)return B90(a);a.updateAuthorizationHeaderPromise_===null&&(a.updateAuthorizationHeaderPromise_=B90(a));return a.updateAuthorizationHeaderPromise_},B90=function(a){return _.Ad(a.getAuthorizationHeader_().then(function(W){lJd(a,W)}).thenCatch(function(){}),function(){a.updateAuthorizationHeaderPromise_=null})},lJd=function(a,W){if(a.JSC$17416_channel_){var w=a.JSC$17416_channel_.JSC$17368_extraHeaders_||{};
W&&Object.keys(W).length>0?w=Object.assign({},w,W):delete w.Authorization;a.JSC$17416_channel_.JSC$17368_extraHeaders_=w}},wED=function(a){a.getAuthorizationHeaderSync_&&!a.useAsyncBrowserChannelHandler_&&lJd(a,a.getAuthorizationHeaderSync_())};
_.t=hj.prototype;_.t.setLoungeToken=function(a){(this.defaultQueryParams_.loungeIdToken=a)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17416_channel_){var W=this.JSC$17416_channel_.JSC$17368_extraHeaders_||{};a?W["X-YouTube-LoungeId-Token"]=a:delete W["X-YouTube-LoungeId-Token"];this.JSC$17416_channel_.JSC$17368_extraHeaders_=W}};
_.t.getDeviceId=function(){return this.defaultQueryParams_.id};
_.t.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.t.reconnect=function(){var a=this.reconnectTimer_;a.delay_.fire();a.start()};
_.t.safeReconnect_=function(){var a=this.JSC$17416_channel_,W=0;a.JSC$17368_backChannelRequest_&&W++;a.forwardChannelRequest_&&W++;W==0&&this.connect(this.connectionParams_,this.connectUi_)};var Jj=function(a,W){var w=a.basePath;a.supportCors&&(w=a.scheme+"://"+a.domain+a.port+a.basePath);return _.CF(w+W,{})};
iv.prototype.sendRequest=function(a,W,w,Z,N,B,I){a={format:B?"RAW":"JSON",method:a,context:this,timeout:5E3,withCredentials:!!I,onSuccess:_.v_(this.JSC$17421_onSuccess_,Z,!B),onError:_.v_(this.onError_,N),onTimeout:_.v_(this.JSC$17421_onTimeout_,N)};w&&(a.postParams=w,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Bi(W,a)};
iv.prototype.JSC$17421_onSuccess_=function(a,W,w,Z){W?a(Z):a({text:w.responseText})};
iv.prototype.onError_=function(a,W){a(Error("Ak`"+W.status))};
iv.prototype.JSC$17421_onTimeout_=function(a){a(Error("Bk"))};var eZ=function(a,W){return!!W&&(a.id==W||a.uuid==W)},IJ0=function(a){return{name:a.name,
screenId:a.id,loungeToken:a.token,dialId:a.uuid,screenIdType:a.idType}},PMk=function(a){return new cc(a)},XE0=function(a){return Array.isArray(a)?_.pY(a,PMk):[]},m10=function(a){if(!a)return"null";
var W=a.token?".."+a.token.slice(-6):"-",w=a.uuid?".."+a.uuid.slice(-6):"-";return'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(W+",uuid:"+w+",idType:"+a.idType+"}")},p_f=function(a){return Array.isArray(a)?"["+_.pY(a,m10).join(",")+"]":"null"};var w_D="",Lb=null;var X_n=function(a,W){_.Ti.call(this);var w=this;this.handler=a();this.handler.subscribe("handlerOpened",this.JSC$17428_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(Z,N){w.onError(N)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=W};
_.c(X_n,_.Ti);_.t=X_n.prototype;_.t.connect=function(a,W,w){this.handler.connect(a,W,w)};
_.t.disconnect=function(a){this.handler.disconnect(a)};
_.t.reconnect=function(){this.handler.reconnect()};
_.t.getDeviceId=function(){return this.handler.getDeviceId()};
_.t.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.t.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.t.JSC$17428_onOpened=function(){this.dispatchEvent("channelOpened");var a=this.handler,W=this.currentScreenId;_.$H("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.JSC$17416_channel_.useChunked_,sessionId:a.JSC$17416_channel_.sid_,arrayId:a.JSC$17416_channel_.JSC$17368_lastArrayId_});_.$H("yt-remote-session-screen-id",W);a=z9X();W=HSE();_.f7(a,W)||a.push(W);WXX(a);a9f()};
_.t.onClosed=function(){this.dispatchEvent("channelClosed")};
_.t.onMessage=function(a){this.dispatchEvent(new u80(a))};
_.t.onError=function(a){this.dispatchEvent(new CHX(a?1:0))};
_.t.sendMessage=function(a,W){this.handler.sendMessage(a,W)};
_.t.setLoungeToken=function(a){this.handler.setLoungeToken(a)};
_.t.dispose=function(){this.handler.dispose()};var P0K=function(a,W,w){var Z=this;w=w===void 0?function(){return""}:w;
var N=N===void 0?new q5a:N;var B=B===void 0?new _.I0:B;this.pathPrefix=a;this.defaultQueryParams=W;this.getXsrfToken=w;this.JSC$17431_pubsub=B;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new xM0(function(){var I;((I=Z.channel)==null?void 0:vif((new bU0(I,I.JSC$17339_channel_)).JSC$17349_channel_.forwardChannelRequestPool_))===0&&Z.connect(Z.connectionParams,Z.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17431_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17431_channelOpenedCounter=new bSn;this.JSC$17431_channelClosedCounter=new sm9;this.JSC$17431_channelMessageReceivedCounter=new C60;this.JSC$17431_channelErrorCounter=new GqD};
P0K.prototype.connect=function(a,W){a=a===void 0?{}:a;W=W===void 0?0:W;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=a,this.connectUi=W,vVd(this),(a=_.LF("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 JO(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,gVX(this))};
var gVX=function(a){_.vX(a.channel,"w",function(){a.channelState=3;a.reconnectTimer.reset();a.connectionParams=null;a.connectUi=0;for(var W=_.l(a.nonAckedMessagesOnChannelClosed),w=W.next();!w.done;w=W.next())w=w.value,a.channel&&a.channel.send(w);a.nonAckedMessagesOnChannelClosed=[];a.publish("webChannelOpened");a.JSC$17431_channelOpenedCounter.increment("WEB_CHANNEL")});
_.vX(a.channel,"x",function(){a.channelState=0;a.reconnectTimer.isActive()||a.publish("webChannelClosed");var W,w=(W=a.channel)==null?void 0:swi(new bU0(W,W.JSC$17339_channel_));w&&(a.nonAckedMessagesOnChannelClosed=[].concat(_.K8(w)));a.JSC$17431_channelClosedCounter.increment("WEB_CHANNEL")});
_.vX(a.channel,"z",function(W){var w=W.data;w[0]==="gracefulReconnect"?(a.reconnectTimer.start(),a.channel&&a.channel.close()):a.publish("webChannelMessage",new y4d(w[0],w[1]));a.lastStatusCode=W.statusCode;a.JSC$17431_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.vX(a.channel,"y",function(){a.lastStatusCode===401||a.reconnectTimer.start();a.publish("webChannelError");a.JSC$17431_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.t=P0K.prototype;_.t.disconnect=function(a){this.disconnectUi=a===void 0?0:a;this.reconnectTimer.stop();vVd(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.t.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.t.reconnect=function(){var a=this.reconnectTimer;a.delay_.fire();a.start()};
_.t.sendMessage=function(a,W){this.channel&&(vVd(this),a=Object.assign({},{_sc:a},W),this.channel.send(a))};
_.t.setLoungeToken=function(a){a||this.reconnectTimer.stop();a?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=a:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var vVd=function(a){var W=a.getXsrfToken();W?a.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=W:delete a.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.t=P0K.prototype;_.t.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.t.publish=function(a){return this.JSC$17431_pubsub.publish.apply(this.JSC$17431_pubsub,[a].concat(_.K8(_.TH.apply(1,arguments))))};
_.t.subscribe=function(a,W,w){return this.JSC$17431_pubsub.subscribe(a,W,w)};
_.t.unsubscribe=function(a,W,w){return this.JSC$17431_pubsub.unsubscribe(a,W,w)};
_.t.unsubscribeByKey=function(a){return this.JSC$17431_pubsub.unsubscribeByKey(a)};
_.t.dispose=function(){this.JSC$17431_disposed||(this.JSC$17431_disposed=!0,_.d3(this.JSC$17431_pubsub),this.disconnect(),_.d3(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.t.isDisposed=function(){return this.JSC$17431_disposed};var I9d=function(a){_.Ti.call(this);this.webChannelService=a();this.webChannelService.subscribe("webChannelOpened",this.JSC$17439_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.c(I9d,_.Ti);_.t=I9d.prototype;_.t.connect=function(a,W){this.webChannelService.connect(a,W)};
_.t.disconnect=function(a){this.webChannelService.disconnect(a)};
_.t.reconnect=function(){this.webChannelService.reconnect()};
_.t.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.t.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.t.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.t.JSC$17439_onOpened=function(){this.dispatchEvent("channelOpened")};
_.t.onClosed=function(){this.dispatchEvent("channelClosed")};
_.t.onMessage=function(a){this.dispatchEvent(new u80(a))};
_.t.onError=function(){this.dispatchEvent(new CHX(this.webChannelService.lastStatusCode===401?1:0))};
_.t.sendMessage=function(a,W){this.webChannelService.sendMessage(a,W)};
_.t.setLoungeToken=function(a){this.webChannelService.setLoungeToken(a)};
_.t.dispose=function(){this.webChannelService.dispose()};var KX2=Date.now(),Fo=null,Y_f=Array(50),qz=-1,TSI=!1;_.NT(QE,_.my);QE.prototype.getScreens=function(){return this.screens};
QE.prototype.contains=function(a){return!!VH9(this.screens,a)};
QE.prototype.get=function(a){return a?nb(this.screens,a):null};
var oVd=function(a,W){var w=a.get(W.uuid)||a.get(W.id);if(w)return a=w.name,w.id=W.id||w.id,w.name=W.name,w.token=W.token,w.uuid=W.uuid||w.uuid,w.name!=a;a.screens.push(W);return!0},kZk=function(a,W){var w=a.screens.length!=W.length;
a.screens=_.$T(a.screens,function(B){return!!VH9(W,B)});
for(var Z=W.length,N=0;N<Z;N++)w=oVd(a,W[N])||w;return w},UJi=function(a,W){var w=a.screens.length;
a.screens=_.$T(a.screens,function(Z){return!(Z||W?!Z!=!W?0:Z.id==W.id:1)});
return a.screens.length<w};
QE.prototype.info=function(a){Mz(this.JSC$17440_logName_,a)};var OBD=function(a,W,w,Z,N){_.my.call(this);this.JSC$17443_http_=a;this.pairingCode_=W;this.deviceId_=w;this.friendlyName_=Z;this.enableShortLivedLoungeToken_=N;this.pollIndex_=0;this.JSC$17443_xhr_=null;this.JSC$17443_timer_=NaN};
_.c(OBD,_.my);_.t=OBD.prototype;_.t.start=function(){!this.JSC$17443_xhr_&&isNaN(this.JSC$17443_timer_)&&this.poll_()};
_.t.stop=function(){this.JSC$17443_xhr_&&(this.JSC$17443_xhr_.abort(),this.JSC$17443_xhr_=null);isNaN(this.JSC$17443_timer_)||(_.NY(this.JSC$17443_timer_),this.JSC$17443_timer_=NaN)};
_.t.disposeInternal=function(){this.stop();_.my.prototype.disposeInternal.call(this)};
_.t.poll_=function(){this.JSC$17443_timer_=NaN;this.JSC$17443_xhr_=_.Bi(Jj(this.JSC$17443_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Sk)(this.JSC$17445_onSuccess_,this),onError:(0,_.Sk)(this.onError_,this),onTimeout:(0,_.Sk)(this.JSC$17445_onTimeout_,this)})};
_.t.JSC$17445_onSuccess_=function(a,W){this.JSC$17443_xhr_=null;a=W.screen||{};a.dialId=this.deviceId_;a.name=this.friendlyName_;W=-1;this.enableShortLivedLoungeToken_&&a.shortLivedLoungeToken&&a.shortLivedLoungeToken.value&&a.shortLivedLoungeToken.refreshIntervalMs&&(a.screenIdType="shortLived",a.loungeToken=a.shortLivedLoungeToken.value,W=a.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new cc(a),W)};
_.t.onError_=function(a){this.JSC$17443_xhr_=null;a.status&&a.status==404?this.pollIndex_>=SFa.length?this.publish("pairingFailed",Error("Ck")):(a=SFa[this.pollIndex_],this.JSC$17443_timer_=_.wz((0,_.Sk)(this.poll_,this),a),this.pollIndex_++):this.publish("pairingFailed",Error("Dk`"+a.status))};
_.t.JSC$17445_onTimeout_=function(){this.JSC$17443_xhr_=null;this.publish("pairingFailed",Error("Ek"))};
var SFa=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.NT(bv,QE);_.t=bv.prototype;_.t.start=function(){xF(this)&&this.publish("screenChange");!_.B7("yt-remote-lounge-token-expiration")&&YF0(this);_.NY(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.wz((0,_.Sk)(this.start,this),1E4)};
_.t.add=function(a,W){xF(this);oVd(this,a);T9I(this,!1);this.publish("screenChange");W(a);a.token||YF0(this)};
_.t.remove=function(a,W){var w=xF(this);UJi(this,a)&&(T9I(this,!1),w=!0);W(a);w&&this.publish("screenChange")};
_.t.updateName=function(a,W,w,Z){var N=xF(this),B=this.get(a.id);B?(B.name!=W&&(B.name=W,T9I(this,!1),N=!0),w(a)):Z(Error("Fk"));N&&this.publish("screenChange")};
_.t.disposeInternal=function(){_.NY(this.loungeTokenRefreshTimer_);bv.superClass_.disposeInternal.call(this)};
var YF0=function(a){if(a.screens.length){var W=_.pY(a.screens,function(Z){return Z.id}),w=Jj(a.JSC$17447_http_,"/pairing/get_lounge_token_batch");
a.JSC$17447_http_.sendRequest("POST",w,{screen_ids:W.join(",")},(0,_.Sk)(a.handleLoungeTokens_,a),(0,_.Sk)(a.handleLoungeTokenError_,a))}};
bv.prototype.handleLoungeTokens_=function(a){xF(this);var W=this.screens.length;a=a&&a.screens||[];for(var w=a.length,Z=0;Z<w;++Z){var N=a[Z],B=this.get(N.screenId);B&&(B.token=N.loungeToken,--W)}T9I(this,!W);W&&Mz(this.JSC$17440_logName_,"Missed "+W+" lounge tokens.")};
bv.prototype.handleLoungeTokenError_=function(a){Mz(this.JSC$17440_logName_,"Requesting lounge tokens failed: "+a)};
var xF=function(a){if(_.r("deprecate_pair_servlet_enabled"))return kZk(a,[]);var W=XE0(NSD());W=_.$T(W,function(w){return!w.uuid});
return kZk(a,W)},T9I=function(a,W){$1E(_.pY(a.screens,IJ0));
W&&tWI()};var f5=function(a,W){_.my.call(this);this.getScreensToCheck_=W;W=(W=_.B7("yt-remote-online-screen-ids")||"")?W.split(","):[];for(var w={},Z=this.getScreensToCheck_(),N=Z.length,B=0;B<N;++B){var I=Z[B].id;w[I]=_.f7(W,I)}this.screenIdSet_=w;this.JSC$17450_http_=a;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;KTi("Initialized with "+(0,_.c5)(this.screenIdSet_))};
_.c(f5,_.my);f5.prototype.isOnline=function(a){return!!this.screenIdSet_[a]};
f5.prototype.start=function(){var a=parseInt(_.B7("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.ZL()-144E5<a?0:a)?pEE(this):(this.fastCheckEndTime_=_.ZL()+3E5,_.$H("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
f5.prototype.isEmpty=function(){return _.T5.isEmpty(this.screenIdSet_)};
f5.prototype.update=function(){KTi("Updating availability on schedule.");var a=this.getScreensToCheck_(),W=_.T5.filter(this.screenIdSet_,function(w,Z){return w&&!!nb(a,Z)},this);
rcd(this,W)};
var Ac2=function(a,W,w){var Z=Jj(a.JSC$17450_http_,"/pairing/get_screen_availability");a.JSC$17450_http_.sendRequest("POST",Z,{lounge_token:W.token},(0,_.Sk)(function(N){N=N.screens||[];for(var B=N.length,I=0;I<B;++I)if(N[I].loungeToken==W.token){w(N[I].status=="online");return}w(!1)},a),(0,_.Sk)(function(){w(!1)},a))};
f5.prototype.disposeInternal=function(){_.NY(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.my.prototype.disposeInternal.call(this)};
var rcd=function(a,W){a:if(_.T5.getCount(W)!=_.T5.getCount(a.screenIdSet_))var w=!1;else{w=_.T5.getKeys(W);for(var Z=w.length,N=0;N<Z;++N)if(!a.screenIdSet_[w[N]]){w=!1;break a}w=!0}w||(KTi("Updated online screens: "+(0,_.c5)(a.screenIdSet_)),a.screenIdSet_=W,a.publish("screenChange"));hlz(a)},pEE=function(a){isNaN(a.refreshTimer_)||_.NY(a.refreshTimer_);
a.refreshTimer_=_.wz((0,_.Sk)(a.requestScreenAvailability_,a),a.fastCheckEndTime_>0&&a.fastCheckEndTime_<_.ZL()?2E4:1E4)};
f5.prototype.requestScreenAvailability_=function(){_.NY(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var a=iBn(this);if(_.T5.getCount(a)){var W=Jj(this.JSC$17450_http_,"/pairing/get_screen_availability"),w={lounge_token:_.T5.getKeys(a).join(",")};this.currentRequest_=this.JSC$17450_http_.sendRequest("POST",W,w,(0,_.Sk)(this.onScreenAvailability_,this,a),(0,_.Sk)(this.onScreenAvailabilityError_,this))}else rcd(this,{}),pEE(this)};
f5.prototype.onScreenAvailability_=function(a,W){this.currentRequest_=null;var w=_.T5.getKeys(iBn(this));if(_.gT(w,_.T5.getKeys(a))){W=W.screens||[];w={};for(var Z=W.length,N=0;N<Z;++N)w[a[W[N].loungeToken]]=W[N].status=="online";rcd(this,w);pEE(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
f5.prototype.onScreenAvailabilityError_=function(a){this.warn_("Screen availability failed: "+a);this.currentRequest_=null;pEE(this)};
var KTi=function(a){Mz("OnlineScreenService",a)};
f5.prototype.warn_=function(a){Mz("OnlineScreenService",a)};
var iBn=function(a){var W={};_.x6(a.getScreensToCheck_(),function(w){w.token?W[w.token]=w.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return W},hlz=function(a){a=_.T5.getKeys(_.T5.filter(a.screenIdSet_,function(W){return W}));
a.sort(_.X$);a.length?_.$H("yt-remote-online-screen-ids",a.join(","),60):_.li("yt-remote-online-screen-ids")};_.NT(sQ,QE);_.t=sQ.prototype;_.t.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.t.add=function(a,W,w){this.localScreenService_.add(a,W,w)};
_.t.remove=function(a,W,w){this.localScreenService_.remove(a,W,w);this.onlineScreenService_.update()};
_.t.updateName=function(a,W,w,Z){this.localScreenService_.contains(a)?this.localScreenService_.updateName(a,W,w,Z):(a="Updating name of unknown screen: "+a.name,Mz(this.JSC$17440_logName_,a),Z(Error(a)))};
_.t.getScreens=function(a){return a?this.screens:Yxf(this.screens,_.$T(this.automaticScreens_,function(W){return!this.contains(W)},this))};
_.t.JSC$17455_getOnlineScreens=function(){return _.$T(this.getScreens(!0),function(a){return this.onlineScreenService_.isOnline(a.id)},this)};
var elk=function(a,W,w,Z,N,B){a.info("getAutomaticScreenByIds "+w+" / "+W);w||(w=a.deviceToScreenId_[W]);var I=a.getScreens(),X=w?nb(I,w):null;w&&(a.disableAutomaticScreenCache_||X)||(X=nb(I,W));if(X){X.uuid=W;var v=dc(a,X);Ac2(a.onlineScreenService_,v,function(U){N(U?v:null)})}else w?cc2(a,w,(0,_.Sk)(function(U){var O=dc(this,new cc({name:Z,
screenId:w,loungeToken:U,dialId:W||""}));Ac2(this.onlineScreenService_,O,function(S){N(S?O:null)})},a),B):N(null)};
sQ.prototype.JSC$17455_getScreenByPollingPairingCode=function(a,W,w,Z,N,B){var I=this;this.info("getDialScreenByPairingCode "+a+" / "+W);var X=new OBD(this.JSC$17453_http_,a,W,w,Z);X.subscribe("pairingComplete",function(v,U){_.d3(X);N(dc(I,v),U)});
X.subscribe("pairingFailed",function(v){_.d3(X);B(v)});
X.start();return(0,_.Sk)(X.stop,X)};
var nVf=function(a,W){for(var w=a.screens.length,Z=0;Z<w;++Z)if(a.screens[Z].name==W)return a.screens[Z];return null};
sQ.prototype.JSC$17455_getScreenByPairingCode=function(a,W,w,Z){_.Bi(Jj(this.JSC$17453_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:a},timeout:5E3,onSuccess:(0,_.Sk)(function(N,B){N=new cc(B.screen||{});if(!N.name||nVf(this,N.name)){a:{B=N.name;for(var I=2,X=W(B,I);nVf(this,X);){I++;if(I>20)break a;X=W(B,I)}B=X}N.name=B}w(dc(this,N))},this),
onError:(0,_.Sk)(function(N){Z(Error("Gk`"+N.status))},this),
onTimeout:(0,_.Sk)(function(){Z(Error("Hk"))},this)})};
var jXE=function(a,W,w){Ac2(a.onlineScreenService_,W,w)};
sQ.prototype.disposeInternal=function(){_.d3(this.localScreenService_);_.d3(this.onlineScreenService_);sQ.superClass_.disposeInternal.call(this)};
var cc2=function(a,W,w,Z){a.info("requestLoungeToken_ for "+W);var N={postParams:{screen_ids:W},method:"POST",context:a,onSuccess:function(B,I){B=I&&I.screens||[];B[0]&&B[0].screenId==W?w(B[0].loungeToken):Z(Error("Ik"))},
onError:function(){Z(Error("Jk"))}};
_.Bi(Jj(a.JSC$17453_http_,"/pairing/get_lounge_token_batch"),N)},LT0=function(a){a.screens=a.localScreenService_.getScreens();
for(var W=_.T5.transpose(a.deviceToScreenId_),w=a.screens.length,Z=0;Z<w;++Z){var N=a.screens[Z];N.uuid=W[N.id]||""}a.info("Updated manual screens: "+p_f(a.screens))};
sQ.prototype.handleScreenChange_=function(){LT0(this);this.publish("screenChange");this.onlineScreenService_.update()};
var rkk=function(a){Jc0(a);a.localScreenService_=new bv(a.JSC$17453_http_);a.localScreenService_.subscribe("screenChange",(0,_.Sk)(a.handleScreenChange_,a));LT0(a);a.disableAutomaticScreenCache_||(a.automaticScreens_=XE0(_.B7("yt-remote-automatic-screen-cache")||[]));Jc0(a);a.info("Initializing automatic screens: "+p_f(a.automaticScreens_));a.onlineScreenService_=new f5(a.JSC$17453_http_,(0,_.Sk)(a.getScreens,a,!0));a.onlineScreenService_.subscribe("screenChange",(0,_.Sk)(function(){this.publish("onlineScreenChange")},
a))},dc=function(a,W){var w=a.get(W.id);
w?(w.uuid=W.uuid,W=w):((w=nb(a.automaticScreens_,W.uuid))?(w.id=W.id,w.token=W.token,W=w):a.automaticScreens_.push(W),a.disableAutomaticScreenCache_||FTK(a));Jc0(a);a.deviceToScreenId_[W.uuid]=W.id;_.$H("yt-remote-device-id-map",a.deviceToScreenId_,31536E3);return W},FTK=function(a){a=_.$T(a.automaticScreens_,function(W){return W.idType!="shortLived"});
_.$H("yt-remote-automatic-screen-cache",_.pY(a,IJ0))},Jc0=function(a){a.deviceToScreenId_=_.B7("yt-remote-device-id-map")||{}};
sQ.prototype.dispose=sQ.prototype.dispose;_.NT(uv,_.my);var mt=function(a,W){a.screen_=W;a.publish("sessionScreen",a.screen_)},MwX=function(a,W){a.screen_&&(a.screen_.token=W,dc(a.JSC$17457_screenService_,a.screen_));
a.publish("sessionScreen",a.screen_)};
uv.prototype.onSessionStopped=function(a){this.isDisposed()||(a&&(Ve(this,""+a),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
uv.prototype.info=function(a){Mz(this.JSC$17457_logName_,a)};
var Ve=function(a,W){Mz(a.JSC$17457_logName_,W)};
uv.prototype.JSC$17459_getCastSession=function(){return null};
uv.prototype.setDisplayStatus=function(a){var W=this.receiver_;a?(W.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),W.displayStatus.showStop=!0):W.displayStatus=null;chrome.cast.setReceiverDisplayStatus(W,(0,_.Sk)(function(){this.info("Updated receiver status for "+W.friendlyName+": "+a)},this),(0,_.Sk)(function(){Ve(this,"Failed to update receiver status for: "+W.friendlyName)},this))};
uv.prototype.disposeInternal=function(){this.setDisplayStatus("");uv.superClass_.disposeInternal.call(this)};var zo=function(a,W,w){uv.call(this,a,W,"CastSession");var Z=this;this.config_=w;this.JSC$17462_session_=null;this.JSC$17462_boundSessionUpdate_=(0,_.Sk)(this.JSC$17464_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Sk)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.wz(function(){Rlz(Z,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17462_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17462_isInitLoungeToken_=!1;this.JSC$17462_lastLoungeTokenRefreshError_="unknown"};
_.c(zo,uv);_.t=zo.prototype;
_.t.setCastSession=function(a){if(this.JSC$17462_session_){if(this.JSC$17462_session_==a)return;Ve(this,"Overriding cast session with new session object");qFi(this);this.JSC$17462_isInitLoungeToken_=!1;this.JSC$17462_lastLoungeTokenRefreshError_="unknown";this.JSC$17462_session_.removeUpdateListener(this.JSC$17462_boundSessionUpdate_);this.JSC$17462_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17462_session_=a;this.JSC$17462_session_.addUpdateListener(this.JSC$17462_boundSessionUpdate_);this.JSC$17462_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);QXn(this,"getMdxSessionStatus")};
_.t.launchWithParams=function(a){this.info("launchWithParams no-op for Cast: "+(0,_.c5)(a))};
_.t.stop=function(){if(this.JSC$17462_session_)this.JSC$17462_session_.stop((0,_.Sk)(function(){this.onSessionStopped()},this),(0,_.Sk)(function(){this.onSessionStopped(Error("Kk"))},this));
else this.onSessionStopped(Error("Lk"))};
_.t.setDisplayStatus=function(){};
_.t.disposeInternal=function(){this.info("disposeInternal");qFi(this);this.JSC$17462_session_&&(this.JSC$17462_session_.removeUpdateListener(this.JSC$17462_boundSessionUpdate_),this.JSC$17462_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17462_session_=null;uv.prototype.disposeInternal.call(this)};
var bB9=function(a,W){_.NY(a.getLoungeTokenTimeoutKey_);a.getLoungeTokenTimeoutKey_=0;W==0?xJ0(a):a.getLoungeTokenTimeoutKey_=_.wz(function(){xJ0(a)},W)},xJ0=function(a){QXn(a,"getLoungeToken");
_.NY(a.onLoungeTokenTimeoutKey_);a.onLoungeTokenTimeoutKey_=_.wz(function(){sXI(a,null)},3E4)},QXn=function(a,W){a.info("sendYoutubeMessage_: "+W+" "+(0,_.c5)(void 0));
var w={};w.type=W;a.JSC$17462_session_?a.JSC$17462_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",w,function(){},(0,_.Sk)(function(){Ve(this,"Failed to send message: "+W+".")},a)):Ve(a,"Sending yt message without session: "+(0,_.c5)(w))};
zo.prototype.onYoutubeMessage_=function(a,W){if(!this.isDisposed())if(W)if(W=(0,_.rQ)(W),_.tL(W))switch(a=""+W.type,W=W.data||{},this.info("onYoutubeMessage_: "+a+" "+(0,_.c5)(W)),a){case "mdxSessionStatus":Rlz(this,W);break;case "loungeToken":sXI(this,W);break;default:Ve(this,"Unknown youtube message: "+a)}else Ve(this,"Unable to parse message.");else Ve(this,"No data in message.")};
var u40=function(a,W){if(W)a.info("onConnectedScreenId_: Received screenId: "+W),a.screen_&&a.screen_.id==W||a.getScreen_(W,function(w){mt(a,w)},function(){return a.onSessionStopped()},5);
else a.onSessionStopped(Error("Mk"))},GZ9=function(a,W,w){a.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(W));
var Z=new cc(W);CM9(a,Z,function(N){N?(a.JSC$17462_isInitLoungeToken_=!0,dc(a.JSC$17457_screenService_,Z),mt(a,Z),a.JSC$17462_lastLoungeTokenRefreshError_="unknown",bB9(a,w)):(_.Ff(Error("Nk`"+JSON.stringify(W))),a.onSessionStopped())},5)},Rlz=function(a,W){_.NY(a.sessionStatusTimeoutKey_);
a.sessionStatusTimeoutKey_=0;if(W)a.config_.enableCastLoungeToken&&W.loungeToken?W.deviceId?a.screen_&&a.screen_.uuid==W.deviceId||(W.loungeTokenRefreshIntervalMs?GZ9(a,{name:a.receiver_.friendlyName,screenId:W.screenId,loungeToken:W.loungeToken,dialId:W.deviceId,screenIdType:"shortLived"},W.loungeTokenRefreshIntervalMs):(_.Ff(Error("Pk`"+JSON.stringify(W))),u40(a,W.screenId))):(_.Ff(Error("Ok`"+JSON.stringify(W))),u40(a,W.screenId)):u40(a,W.screenId);else a.onSessionStopped(Error("Mk"))},sXI=function(a,
W){_.NY(a.onLoungeTokenTimeoutKey_);
a.onLoungeTokenTimeoutKey_=0;var w=null;if(W)if(W.loungeToken){var Z;((Z=a.screen_)==null?void 0:Z.token)==W.loungeToken&&(w="staleLoungeToken")}else w="missingLoungeToken";else w="noLoungeTokenResponse";w?(a.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(W)+", error: "+w)),a.JSC$17462_lastLoungeTokenRefreshError_=w,bB9(a,3E4)):(MwX(a,W.loungeToken),a.JSC$17462_isInitLoungeToken_=!1,a.JSC$17462_lastLoungeTokenRefreshError_="unknown",bB9(a,W.loungeTokenRefreshIntervalMs))};
zo.prototype.getScreen_=function(a,W,w,Z){_.NY(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;elk(this.JSC$17457_screenService_,this.receiver_.label,a,this.receiver_.friendlyName,(0,_.Sk)(function(N){N?W(N):Z>=0?(Ve(this,"Screen "+a+" appears to be offline. "+Z+" retries left."),this.getScreenTimeoutKey_=_.wz((0,_.Sk)(this.getScreen_,this,a,W,w,Z-1),300)):w(Error("Qk"))},this),w)};
var CM9=function(a,W,w,Z){_.NY(a.JSC$17462_checkScreenAvailabilityTimeoutKey_);a.JSC$17462_checkScreenAvailabilityTimeoutKey_=0;jXE(a.JSC$17457_screenService_,W,function(N){N||Z<0?w(N):a.JSC$17462_checkScreenAvailabilityTimeoutKey_=_.wz(function(){CM9(a,W,w,Z-1)},300)})};
zo.prototype.JSC$17459_getCastSession=function(){return this.JSC$17462_session_};
zo.prototype.JSC$17464_onSessionUpdate_=function(a){this.isDisposed()||a||(Ve(this,"Cast session died."),this.onSessionStopped())};
var qFi=function(a){_.NY(a.getScreenTimeoutKey_);a.getScreenTimeoutKey_=0;_.NY(a.JSC$17462_checkScreenAvailabilityTimeoutKey_);a.JSC$17462_checkScreenAvailabilityTimeoutKey_=0;_.NY(a.sessionStatusTimeoutKey_);a.sessionStatusTimeoutKey_=0;_.NY(a.onLoungeTokenTimeoutKey_);a.onLoungeTokenTimeoutKey_=0;_.NY(a.getLoungeTokenTimeoutKey_);a.getLoungeTokenTimeoutKey_=0};var HW=function(a,W,w,Z){uv.call(this,a,W,"DialSession");this.config_=Z;this.JSC$17466_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17466_theme_=w;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17466_deferredLaunchDeadlineTimer_=NaN;this.JSC$17466_boundSessionUpdate_=(0,_.Sk)(this.JSC$17468_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17466_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17466_isInitLoungeToken_=!1;this.JSC$17466_lastLoungeTokenRefreshError_="unknown"};
_.c(HW,uv);HW.prototype.setCastSession=function(a){this.JSC$17466_session_=a;this.JSC$17466_session_.addUpdateListener(this.JSC$17466_boundSessionUpdate_)};
HW.prototype.launchWithParams=function(a){this.connectData_=a;this.deferredLaunch_()};
HW.prototype.stop=function(){DJI(this);if(this.JSC$17466_session_)this.JSC$17466_session_.stop((0,_.Sk)(this.onSessionStopped,this,null),(0,_.Sk)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
HW.prototype.disposeInternal=function(){DJI(this);this.JSC$17466_session_&&this.JSC$17466_session_.removeUpdateListener(this.JSC$17466_boundSessionUpdate_);this.JSC$17466_session_=null;uv.prototype.disposeInternal.call(this)};
var fJ0=function(a){var W;return!!(a.config_.enableDialLoungeToken&&((W=a.JSC$17466_session_)==null?0:W.getDialAppInfo))},dJ0=function(a){a.cancelPolling_=a.JSC$17457_screenService_.JSC$17455_getScreenByPollingPairingCode(a.reversePairingCode_,a.receiver_.label,a.receiver_.friendlyName,fJ0(a),function(W,w){a.cancelPolling_=function(){};
a.JSC$17466_isInitLoungeToken_=!0;mt(a,W);W.idType=="shortLived"&&w>0&&ye(a,w)},function(W){a.cancelPolling_=function(){};
a.onSessionStopped(W)})};
HW.prototype.JSC$17468_onSessionUpdate_=function(a){this.isDisposed()||a||(Ve(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var mJ0=function(a){var W={};W.pairingCode=a.reversePairingCode_;W.theme=a.JSC$17466_theme_;l9i()&&(W.env_useStageMdx=1);return _.ld(W)},VwD=function(a){return new Promise(function(W){a.reversePairingCode_=dMK();
if(a.connectData_){var w=new chrome.cast.DialLaunchResponse(!0,mJ0(a));W(w);dJ0(a)}else a.deferredLaunch_=function(){_.NY(a.JSC$17466_deferredLaunchDeadlineTimer_);a.deferredLaunch_=function(){};
a.JSC$17466_deferredLaunchDeadlineTimer_=NaN;var Z=new chrome.cast.DialLaunchResponse(!0,mJ0(a));W(Z);dJ0(a)},a.JSC$17466_deferredLaunchDeadlineTimer_=_.wz(function(){a.deferredLaunch_()},100)})},HBI=function(a,W,w){a.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(W));
var Z=new cc(W);return(new Promise(function(N){zlf(a,Z,function(B){B?(a.JSC$17466_isInitLoungeToken_=!0,dc(a.JSC$17457_screenService_,Z),mt(a,Z),ye(a,w)):_.Ff(Error("Sk`"+JSON.stringify(W)));N(B)},5)})).then(function(N){return N?new chrome.cast.DialLaunchResponse(!1):VwD(a)})},ycd=function(a,W){var w=a.launchData_.receiver.label,Z=a.receiver_.friendlyName;
return(new Promise(function(N){elk(a.JSC$17457_screenService_,w,W,Z,function(B){B&&B.token&&mt(a,B);N(B)},function(B){Ve(a,"Failed to get DIAL screen: "+B);
N(null)})})).then(function(N){return N&&N.token?new chrome.cast.DialLaunchResponse(!1):VwD(a)})},zlf=function(a,W,w,Z){_.NY(a.JSC$17466_checkScreenAvailabilityTimeoutKey_);
a.JSC$17466_checkScreenAvailabilityTimeoutKey_=0;jXE(a.JSC$17457_screenService_,W,function(N){N||Z<0?w(N):a.JSC$17466_checkScreenAvailabilityTimeoutKey_=_.wz(function(){zlf(a,W,w,Z-1)},300)})},ye=function(a,W){a.info("getDialAppInfoWithTimeout_ "+W);
fJ0(a)&&(_.NY(a.getDialAppInfoTimeoutKey_),a.getDialAppInfoTimeoutKey_=0,W==0?EV0(a):a.getDialAppInfoTimeoutKey_=_.wz(function(){EV0(a)},W))},EV0=function(a){fJ0(a)&&a.JSC$17466_session_.getDialAppInfo(function(W){a.info("getDialAppInfo dialLaunchData: "+JSON.stringify(W));
W=W.extraData||{};var w=null;if(W.loungeToken){var Z;((Z=a.screen_)==null?void 0:Z.token)==W.loungeToken&&(w="staleLoungeToken")}else w="missingLoungeToken";w?(a.JSC$17466_lastLoungeTokenRefreshError_=w,ye(a,3E4)):(a.JSC$17466_isInitLoungeToken_=!1,a.JSC$17466_lastLoungeTokenRefreshError_="unknown",MwX(a,W.loungeToken),ye(a,W.loungeTokenRefreshIntervalMs))},function(W){a.info("getDialAppInfo error: "+W);
a.JSC$17466_lastLoungeTokenRefreshError_="noLoungeTokenResponse";ye(a,3E4)})},DJI=function(a){_.NY(a.JSC$17466_checkScreenAvailabilityTimeoutKey_);
a.JSC$17466_checkScreenAvailabilityTimeoutKey_=0;_.NY(a.getDialAppInfoTimeoutKey_);a.getDialAppInfoTimeoutKey_=0;a.cancelPolling_();a.cancelPolling_=function(){};
_.NY(a.JSC$17466_deferredLaunchDeadlineTimer_)};var EC=function(a,W){uv.call(this,a,W,"ManualSession");this.JSC$17470_deferredLaunchDeadlineTimer_=_.wz((0,_.Sk)(this.launchWithParams,this,null),150)};
_.c(EC,uv);EC.prototype.stop=function(){this.onSessionStopped()};
EC.prototype.setCastSession=function(){};
EC.prototype.launchWithParams=function(){_.NY(this.JSC$17470_deferredLaunchDeadlineTimer_);this.JSC$17470_deferredLaunchDeadlineTimer_=NaN;var a=nb(this.JSC$17457_screenService_.getScreens(),this.receiver_.label);if(a)mt(this,a);else this.onSessionStopped(Error("Tk"))};
EC.prototype.disposeInternal=function(){_.NY(this.JSC$17470_deferredLaunchDeadlineTimer_);this.JSC$17470_deferredLaunchDeadlineTimer_=NaN;uv.prototype.disposeInternal.call(this)};var fb=function(a,W){_.my.call(this);this.config_=W;this.JSC$17473_screenService_=a;this.JSC$17473_appId_=W.appId||"233637DE";this.JSC$17473_theme_=W.theme||"cl";this.disableDial_=W.disableCastApi||!1;this.forceMirroring_=W.forceMirroring||!1;this.JSC$17473_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Sk)(this.onReceiverAction_,this)};
_.c(fb,_.my);
fb.prototype.init=function(a,W){chrome.cast.timeout.requestSession=3E4;var w=new chrome.cast.SessionRequest(this.JSC$17473_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.r("desktop_enable_cast_connect")&&(w.androidReceiverCompatible=!0);this.disableDial_||(w.dialRequest=new chrome.cast.DialRequest("YouTube"));var Z=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;a=a||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var N=(0,_.Sk)(this.onReceiverUpdated_,
this);w=new chrome.cast.ApiConfig(w,(0,_.Sk)(this.onSessionEstablished_,this),N,Z,a);w.customDialLaunchCallback=(0,_.Sk)(this.onDialLaunchRequested_,this);chrome.cast.initialize(w,(0,_.Sk)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),U1i(),this.JSC$17473_screenService_.subscribe("onlineScreenChange",(0,_.Sk)(this.JSC$17475_onScreenChange_,this)),this.customReceivers_=ahd(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Sk)(function(B){this.warn_("Failed to set initial custom receivers: "+(0,_.c5)(B))},this)),this.publish("yt-remote-cast2-availability-change",ap(this)),W(!0))},this),(0,_.Sk)(function(B){this.warn_("Failed to initialize API: "+(0,_.c5)(B));
W(!1)},this))};
fb.prototype.setConnectedScreenStatus=function(a,W){Wm("Setting connected screen ID: "+a+" -> "+W);if(this.JSC$17473_session_){var w=this.JSC$17473_session_.screen_;if(!a||w&&w.id!=a)Wm("Unsetting old screen status: "+this.JSC$17473_session_.receiver_.friendlyName),w1(this,null)}if(a&&W){if(!this.JSC$17473_session_){a=nb(this.JSC$17473_screenService_.getScreens(),a);if(!a){Wm("setConnectedScreenStatus: Unknown screen.");return}if(a.idType=="shortLived"){Wm("setConnectedScreenStatus: Screen with id type to be short lived.");
return}w=W40(this,a);w||(Wm("setConnectedScreenStatus: Connected receiver not custom..."),w=new chrome.cast.Receiver(a.uuid?a.uuid:a.id,a.name),w.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(w),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Sk)(function(Z){this.warn_("Failed to set initial custom receivers: "+(0,_.c5)(Z))},this)));
Wm("setConnectedScreenStatus: new active receiver: "+w.friendlyName);w1(this,new EC(this.JSC$17473_screenService_,w),!0)}this.JSC$17473_session_.setDisplayStatus(W)}else Wm("setConnectedScreenStatus: no screen.")};
var W40=function(a,W){return W?_.be(a.customReceivers_,function(w){return eZ(W,w.label)},a):null};
fb.prototype.setLaunchParams=function(a){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17473_session_?this.JSC$17473_session_.launchWithParams(a):this.warn_("Setting connection data without a session")};
fb.prototype.JSC$17475_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17473_session_?(this.JSC$17473_session_.stop(),w1(this,null)):Wm("Stopping non-existing session")};
fb.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Sk)(this.onSessionEstablished_,this),(0,_.Sk)(this.onSessionRequestFailed_,this))};
fb.prototype.disposeInternal=function(){this.JSC$17473_screenService_.unsubscribe("onlineScreenChange",(0,_.Sk)(this.JSC$17475_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.yF(_.RT("yt.mdx.remote.debug.handlers_")||[],g79);_.d3(this.JSC$17473_session_);_.my.prototype.disposeInternal.call(this)};
var Wm=function(a){Mz("Controller",a)};
fb.prototype.warn_=function(a){Mz("Controller",a)};
var g79=function(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)},ap=function(a){return a.hasCastReceiver_||!!a.customReceivers_.length||!!a.JSC$17473_session_},w1=function(a,W,w){W!=a.JSC$17473_session_&&(_.d3(a.JSC$17473_session_),(a.JSC$17473_session_=W)?(w?a.publish("yt-remote-cast2-receiver-resumed",W.receiver_):a.publish("yt-remote-cast2-receiver-selected",W.receiver_),W.subscribe("sessionScreen",(0,_.Sk)(a.onSessionScreen_,a,W)),W.subscribe("sessionFailed",
function(){return w7f(a,W)}),W.screen_?a.publish("yt-remote-cast2-session-change",W.screen_):w&&a.JSC$17473_session_.launchWithParams(null)):a.publish("yt-remote-cast2-session-change",null))},w7f=function(a,W){a.JSC$17473_session_==W&&a.publish("yt-remote-cast2-session-failed")};
_.t=fb.prototype;_.t.onSessionScreen_=function(a,W){this.JSC$17473_session_==a&&(W||w1(this,null),this.publish("yt-remote-cast2-session-change",W))};
_.t.onReceiverAction_=function(a,W){if(!this.isDisposed())if(a)switch(a.friendlyName=chrome.cast.unescape(a.friendlyName),Wm("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+W),W){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17473_session_)if(this.JSC$17473_session_.receiver_.label!=a.label)Wm("onReceiverAction_: Stopping active receiver: "+this.JSC$17473_session_.receiver_.friendlyName),this.JSC$17473_session_.stop();else{Wm("onReceiverAction_: Casting to active receiver.");this.JSC$17473_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17473_session_.screen_);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:w1(this,new EC(this.JSC$17473_screenService_,a));break;case chrome.cast.ReceiverType.DIAL:w1(this,new HW(this.JSC$17473_screenService_,a,this.JSC$17473_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:w1(this,new zo(this.JSC$17473_screenService_,a,this.config_));break;default:this.warn_("Unknown receiver type: "+a.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17473_session_&&
this.JSC$17473_session_.receiver_.label==a.label?this.JSC$17473_session_.stop():this.warn_("Stopping receiver w/o session: "+a.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.t.onDialLaunchRequested_=function(a){if(this.isDisposed())return Promise.reject(Error("Uk"));var W=a.receiver;W.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+W.friendlyName),W.receiverType=chrome.cast.ReceiverType.DIAL);var w=this.JSC$17473_session_?this.JSC$17473_session_.receiver_:null;if(!w||w.label!=W.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+W.friendlyName),Promise.reject(Error("Vk"));if(w&&w.label==W.label&&w.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17473_session_.screen_)return Wm("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17473_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+w.receiverType+'" to "dial" for '+W.friendlyName);w1(this,new HW(this.JSC$17473_screenService_,W,this.JSC$17473_theme_,this.config_))}W=this.JSC$17473_session_;W.launchData_=a;W.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(a=W.launchData_.extraData||{},w=a.screenId||null,fJ0(W)&&a.loungeToken?a.loungeTokenRefreshIntervalMs?a=HBI(W,{name:W.receiver_.friendlyName,screenId:a.screenId,loungeToken:a.loungeToken,dialId:W.launchData_.receiver.label,screenIdType:"shortLived"},a.loungeTokenRefreshIntervalMs):(_.Ff(Error("Rk`"+JSON.stringify(a))),a=ycd(W,w)):a=ycd(W,w)):a=VwD(W);return a};
_.t.onSessionEstablished_=function(a){var W=this;if(!this.isDisposed()&&!this.forceMirroring_){Wm("New cast session ID: "+a.sessionId);var w=a.receiver;if(w.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17473_session_)if(w.receiverType==chrome.cast.ReceiverType.CAST)Wm("Got resumed cast session before resumed mdx connection."),w.friendlyName=chrome.cast.unescape(w.friendlyName),w1(this,new zo(this.JSC$17473_screenService_,w,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var Z=this.JSC$17473_session_.receiver_,N=nb(this.JSC$17473_screenService_.getScreens(),Z.label);N&&eZ(N,w.label)&&Z.receiverType!=chrome.cast.ReceiverType.CAST&&w.receiverType==chrome.cast.ReceiverType.CAST&&(Wm("onSessionEstablished_: manual to cast session change "+w.friendlyName),_.d3(this.JSC$17473_session_),this.JSC$17473_session_=new zo(this.JSC$17473_screenService_,w,this.config_),this.JSC$17473_session_.subscribe("sessionScreen",(0,_.Sk)(this.onSessionScreen_,this,this.JSC$17473_session_)),
this.JSC$17473_session_.subscribe("sessionFailed",function(){return w7f(W,W.JSC$17473_session_)}),this.JSC$17473_session_.launchWithParams(null));
this.JSC$17473_session_.setCastSession(a)}}};
_.t.JSC$17475_getCastSession=function(){return this.JSC$17473_session_?this.JSC$17473_session_.JSC$17459_getCastSession():null};
_.t.onSessionRequestFailed_=function(a){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.c5)(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&w1(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.t.onReceiverUpdated_=function(a){Wm("Receiver availability updated: "+a);if(!this.isDisposed()){var W=ap(this);this.hasCastReceiver_=a==chrome.cast.ReceiverAvailability.AVAILABLE;ap(this)!=W&&this.publish("yt-remote-cast2-availability-change",ap(this))}};
var ahd=function(a){var W=a.JSC$17473_screenService_.JSC$17455_getOnlineScreens(),w=a.JSC$17473_session_&&a.JSC$17473_session_.receiver_;a=_.pY(W,function(Z){w&&eZ(Z,w.label)&&(w=null);var N=Z.uuid?Z.uuid:Z.id,B=W40(this,Z);B?(B.label=N,B.friendlyName=Z.name):(B=new chrome.cast.Receiver(N,Z.name),B.receiverType=chrome.cast.ReceiverType.CUSTOM);return B},a);
w&&(w.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(w=new chrome.cast.Receiver(w.label,w.friendlyName),w.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(w));return a};
fb.prototype.JSC$17475_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=ahd(this),Wm("Updating custom receivers: "+(0,_.c5)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Sk)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",ap(this)))};
fb.prototype.setLaunchParams=fb.prototype.setLaunchParams;fb.prototype.setConnectedScreenStatus=fb.prototype.setConnectedScreenStatus;fb.prototype.stopSession=fb.prototype.JSC$17475_stopSession;fb.prototype.getCastSession=fb.prototype.JSC$17475_getCastSession;fb.prototype.requestSession=fb.prototype.requestSession;fb.prototype.init=fb.prototype.init;fb.prototype.dispose=fb.prototype.dispose;var sV2=[];var ZN0=function(a){a.audioTrackId=null;a.trackData=null;a.playerState=-1;a.hasPrevious=!1;a.hasNext=!1;a.playerTime_=0;a.playerTimeAt_=_.ZL();a.seekableStart_=0;a.seekableEnd_=0;a.duration_=0;a.loadedTime=0;a.liveIngestionTime_=NaN;a.isLive_=!1};
_.t=dN.prototype;
_.t.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_))};
_.t.stopPlayer=function(){this.index=-1;this.videoId="";ZN0(this)};
_.t.isPlaying=function(){return this.playerState==1};
_.t.isBuffering=function(){return this.playerState==3};
_.t.isAdPlaying=function(){return this.playerState==1081};
var Zc=function(a,W){a.playerTime_=W;a.playerTimeAt_=_.ZL()},N4X=function(a){switch(a.playerState){case 1:case 1081:return(_.ZL()-a.playerTimeAt_)/1E3+a.playerTime_;
case -1E3:return 0}return a.playerTime_};
dN.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.ZL()-this.playerTimeAt_)/1E3:0):this.duration_};
var t7n=function(a,W,w){var Z=a.videoId;a.videoId=W;a.index=w;W!=Z&&ZN0(a)},$Rz=function(a){var W={};
W.index=a.index;W.listId=a.listId;W.videoId=a.videoId;W.playerState=a.playerState;W.volume=a.volume;W.muted=a.muted;W.audioTrackId=a.audioTrackId;W.trackData=_.T5.unsafeClone(a.trackData);W.hasPrevious=a.hasPrevious;W.hasNext=a.hasNext;W.playerTime=a.playerTime_;W.playerTimeAt=a.playerTimeAt_;W.seekableStart=a.seekableStart_;W.seekableEnd=a.seekableEnd_;W.duration=a.duration_;W.loadedTime=a.loadedTime;W.liveIngestionTime=a.liveIngestionTime_;return W};
dN.prototype.clone=function(){return new dN($Rz(this))};var Ng=function(a,W){_.my.call(this);var w=this;this.state_=0;this.connection_=a;this.contextSubscriptions_=[];this.actionQueue_=new QmD;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Sk)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Sk)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Sk)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Sk)(this.onCloudviewAvailabilityChange_,this);var Z=0;a?(Z=a.getProxyState(),
Z!=3&&(a.subscribe("proxyStateChange",this.setState_,this),B40(this))):Z=3;Z!=0&&(W?this.setState_(Z):_.wz(function(){w.setState_(Z)},0));
(a=D1K())&&lhf(this,a);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.c(Ng,_.my);Ng.prototype.getState=function(){return this.state_};
Ng.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Ng.prototype.reconnect=function(){this.connection_.reconnect()};
var t5=function(a){return new dN(a.connection_.getPlayerContextData())};
_.t=Ng.prototype;_.t.play=function(){$u(this)?(this.castMedia_?this.castMedia_.play(null,_.S5,Ihn(this,"play")):Bm(this,"play"),Pia(this,1,N4X(t5(this))),this.publish("remotePlayerChange")):l2(this,this.play)};
_.t.pause=function(){$u(this)?(this.castMedia_?this.castMedia_.pause(null,_.S5,Ihn(this,"pause")):Bm(this,"pause"),Pia(this,2,N4X(t5(this))),this.publish("remotePlayerChange")):l2(this,this.pause)};
_.t.seekTo=function(a){if($u(this)){if(this.castMedia_){var W=t5(this),w=new chrome.cast.media.SeekRequest;w.currentTime=a;W.isPlaying()||W.isBuffering()?w.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:w.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(w,_.S5,Ihn(this,"seekTo",{newTime:a}))}else Bm(this,"seekTo",{newTime:a});Pia(this,3,a);this.publish("remotePlayerChange")}else l2(this,_.v_(this.seekTo,a))};
_.t.stop=function(){if($u(this)){this.castMedia_?this.castMedia_.stop(null,_.S5,Ihn(this,"stopVideo")):Bm(this,"stopVideo");var a=t5(this);a.stopPlayer();Ip(this,a);this.publish("remotePlayerChange")}else l2(this,this.stop)};
_.t.setVolume=function(a,W){if($u(this)){var w=t5(this);if(this.castSession_){if(w.volume!=a){var Z=Math.round(a)/100;this.castSession_.setReceiverVolumeLevel(Z,(0,_.Sk)(function(){Rq("set receiver volume: "+Z)},this),(0,_.Sk)(function(){this.warn_("failed to set receiver volume.")},this))}w.muted!=W&&this.castSession_.setReceiverMuted(W,(0,_.Sk)(function(){Rq("set receiver muted: "+W)},this),(0,_.Sk)(function(){this.warn_("failed to set receiver muted.")},this))}else{var N={volume:a,
muted:W};w.volume!=-1&&(N.delta=a-w.volume);Bm(this,"setVolume",N)}w.muted=W;w.volume=a;Ip(this,w)}else l2(this,_.v_(this.setVolume,a,W))};
_.t.setAudioTrack=function(a,W){$u(this)?(W=W.getLanguageInfo().getId(),Bm(this,"setAudioTrack",{videoId:a,audioTrackId:W}),a=t5(this),a.audioTrackId=W,Ip(this,a)):l2(this,_.v_(this.setAudioTrack,a,W))};
_.t.addVideo=function(a){$u(this)?Bm(this,"addVideo",{videoId:a}):l2(this,_.v_(this.addVideo,a))};
_.t.addPlaylist=function(a){$u(this)?Bm(this,"addVideos",{listId:a}):l2(this,_.v_(this.addPlaylist,a))};
_.t.addVideos=function(a){a.length==0?this.warn_("Ignore add videos request due to empty list"):$u(this)?Bm(this,"addVideos",{videoIds:a.join(",")}):l2(this,_.v_(this.addVideos,a))};
_.t.JSC$17485_removeVideo=function(a){$u(this)?Bm(this,"removeVideo",{videoId:a}):l2(this,_.v_(this.JSC$17485_removeVideo,a))};
_.t.JSC$17485_insertVideo=function(a){$u(this)?Bm(this,"insertVideo",{videoId:a}):l2(this,_.v_(this.JSC$17485_insertVideo,a))};
_.t.playVideo=function(a,W,w,Z,N,B,I){Z=Z===void 0?null:Z;N=N===void 0?null:N;B=B===void 0?null:B;I=I===void 0?null:I;var X=t5(this),v={videoId:a};w!==void 0&&(v.currentIndex=w);t7n(X,a,w||0);W!==void 0&&(Zc(X,W),v.currentTime=W);Z&&(v.listId=Z);N&&(v.playerParams=N);B&&(v.clickTrackingParams=B);I&&(v.locationInfo=(0,_.c5)(I));Bm(this,"setPlaylist",v);Z||Ip(this,X)};
_.t.nextVideo=function(a,W){if($u(this)){if(a&&W){var w=t5(this);t7n(w,a,W);Ip(this,w)}Bm(this,"next")}else l2(this,_.v_(this.nextVideo,a,W))};
_.t.clearPlaylist=function(){if($u(this)){Bm(this,"clearPlaylist");var a=t5(this);a.reset();Ip(this,a);this.publish("remotePlayerChange")}else l2(this,this.clearPlaylist)};
_.t.dispose=function(){if(this.state_!=3){var a=this.state_;this.state_=3;this.publish("proxyStateChange",a,this.state_)}_.my.prototype.dispose.call(this)};
_.t.disposeInternal=function(){X7n(this);this.connection_=null;this.actionQueue_.clear();lhf(this,null);_.my.prototype.disposeInternal.call(this)};
var B40=function(a){_.x6("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(W){this.contextSubscriptions_.push(this.connection_.subscribe(W,_.v_(this.onProxyEvent_,W),this))},a)},X7n=function(a){_.x6(a.contextSubscriptions_,function(W){this.connection_.unsubscribeByKey(W)},a);
a.contextSubscriptions_.length=0},$u=function(a){return a.getState()==1},l2=function(a,W){a.actionQueue_.getCount()<50&&a.actionQueue_.enqueue(W)},Pia=function(a,W,w){var Z=t5(a);
Zc(Z,w);Z.playerState!=-1E3&&(Z.playerState=W);Ip(a,Z)},Bm=function(a,W,w){a.connection_.sendMessage(W,w)},Ip=function(a,W){X7n(a);
a.connection_.setPlayerContextData($Rz(W));B40(a)};
Ng.prototype.setState_=function(a){if((a!=this.state_||a==2)&&this.state_!=3&&a!=0){var W=this.state_;this.state_=a;this.publish("proxyStateChange",W,a);if(a==1)for(;!this.actionQueue_.isEmpty();)a=this.actionQueue_,ilz(a),a.front_.pop().apply(this);else a==3&&this.dispose()}};
Ng.prototype.onProxyEvent_=function(a,W){this.publish(a,W)};
var lhf=function(a,W){a.castSession_&&(a.castSession_.removeUpdateListener(a.boundCastStatusListener_),a.castSession_.removeMediaListener(a.boundCastMediaListener_),a.onCastMediaChange_(null));a.castSession_=W;if(a.castSession_&&(Rq("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])};
Ng.prototype.onCastStatusUpdate_=function(a){if(!a)this.onCastMediaChange_(null),lhf(this,null);else if(this.castSession_.receiver.volume){a=this.castSession_.receiver.volume;var W=t5(this),w=Math.round(100*a.level||0);if(W.volume!=w||W.muted!=a.muted)Rq("Cast volume update: "+a.level+(a.muted?" muted":"")),W.volume=w,W.muted=!!a.muted,Ip(this,W)}};
Ng.prototype.onCastMediaChange_=function(a){Rq("Cast media: "+!!a);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=a)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),vH0(this),this.publish("remotePlayerChange")};
var vH0=function(a){var W=a.castMedia_.media,w=a.castMedia_.customData;if(W&&w){var Z=t5(a);W.contentId!=Z.videoId&&Rq("Cast changing video to: "+W.contentId);Z.videoId=W.contentId;Z.playerState=w.playerState;Zc(Z,a.castMedia_.getEstimatedTime());Ip(a,Z)}else Rq("No cast media video. Ignoring state update.")};
Ng.prototype.onCastMediaUpdate_=function(a){if(a)vH0(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Ng.prototype.onCloudviewAvailabilityChange_=function(){var a=D1K();a&&lhf(this,a)};
Ng.prototype.warn_=function(a){Mz("CP",a)};
var Ihn=function(a,W,w){return(0,_.Sk)(function(Z){this.warn_("Failed to "+W+" with cast v2 channel. Error code: "+Z.code);Z.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+W+" using MDx browser channel."),Bm(this,W,w))},a)};var Xl=function(a,W,w,Z){Z=Z===void 0?!1:Z;_.my.call(this);var N=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$17492_http_=a;this.enableConnectWithInitialState_=Z;this.listeners_.push(_.mQ(window,"beforeunload",function(){N.JSC$17495_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new dN;this.currentScreenId_=W.id;this.currentScreenIdType_=W.idType;this.channelService=v70(this.JSC$17492_http_,w,this.JSC$17495_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){gHK(N)});
this.channelService.listen("channelClosed",function(){Pm("Channel closed");isNaN(N.connectTimerId_)?jZ(!0):jZ();N.dispose()});
this.channelService.listen("channelError",function(B){jZ();isNaN(N.getReconnectTimeout_())?(B==1&&N.currentScreenIdType_=="shortLived"&&N.publish("browserChannelAuthError",B),Pm("Channel error: "+B+" without reconnection"),N.dispose()):(N.reconnecting_=!0,Pm("Channel error: "+B+" with reconnection in "+N.getReconnectTimeout_()+" ms"),oH2(N,2))});
this.channelService.listen("channelMessage",function(B){kRn(N,B)});
this.channelService.setLoungeToken(W.token);this.subscribe("remoteQueueChange",function(){var B=N.playerContext_.videoId;ys9()&&_.$H("yt-remote-session-video-id",B)})};
_.c(Xl,_.my);
Xl.prototype.connect=function(a,W){if(W){var w=W.listId,Z=W.videoId,N=W.videoIds,B=W.playerParams,I=W.clickTrackingParams,X=W.index,v={videoId:Z},U=W.currentTime,O=W.locationInfo;W=W.loopMode;U!==void 0&&(v.currentTime=U<=5?0:U);B&&(v.playerParams=B);O&&(v.locationInfo=O);I&&(v.clickTrackingParams=I);w&&(v.listId=w);N&&N.length>0&&(v.videoIds=N.join(","));X!==void 0&&(v.currentIndex=X);this.enableConnectWithInitialState_&&(v.loopMode=W||"LOOP_MODE_OFF");w&&(this.playerContext_.listId=w);this.playerContext_.videoId=
Z;this.playerContext_.index=X||0;this.playerContext_.state=3;Zc(this.playerContext_,U);this.autoplayMode_="UNSUPPORTED";w=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Pm("Connecting with "+w+" and params: "+(0,_.c5)(v));this.channelService.connect({method:w,params:(0,_.c5)(v)},a,ZDD())}else Pm("Connecting without params"),this.channelService.connect({},a,ZDD());UR2(this)};
Xl.prototype.setLoungeToken=function(a){this.channelService.setLoungeToken(a)};
Xl.prototype.dispose=function(){this.isDisposed()||(_.Dp("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),oH2(this,3));_.my.prototype.dispose.call(this)};
Xl.prototype.disposeInternal=function(){ON0(this);SAa(this);YAa(this);_.NY(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.NY(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.EoH(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.my.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var T4d=function(a){return _.be(a.connectedDevices_,function(W){return W.type=="LOUNGE_SCREEN"})},Pm=function(a){Mz("conn",a)},oH2=function(a,W){a.publish("proxyStateChange",W)},UR2=function(a){a.connectTimerId_=_.wz(function(){Pm("Connecting timeout");
a.JSC$17495_disconnect_(1)},2E4)},ON0=function(a){_.NY(a.connectTimerId_);
a.connectTimerId_=NaN},YAa=function(a){_.NY(a.reconnectedCheckScreenTimeout_);
a.reconnectedCheckScreenTimeout_=NaN},K4z=function(a){SAa(a);
a.playingSyncTimerId_=_.wz(function(){vm(a,"getNowPlaying")},2E4)},SAa=function(a){_.NY(a.playingSyncTimerId_);
a.playingSyncTimerId_=NaN},gHK=function(a){Pm("Channel opened");
a.reconnecting_&&(a.reconnecting_=!1,YAa(a),a.reconnectedCheckScreenTimeout_=_.wz(function(){Pm("Timing out waiting for a screen.");a.JSC$17495_disconnect_(1)},15E3))},rbi=function(a,W){var w=null;
if(W){var Z=T4d(a);Z&&(w={clientName:Z.clientName,deviceMake:Z.brand,deviceModel:Z.model,osVersion:Z.osVersion})}_.Dp("yt.mdx.remote.remoteClient_",w);W&&(ON0(a),YAa(a));w=a.channelService.isChannelOpened()&&isNaN(a.connectTimerId_);W==w?W&&(oH2(a,1),vm(a,"getSubtitlesTrack")):W?(a.getOtherConnectedRemoteId_()&&a.playerContext_.reset(),oH2(a,1),vm(a,"getNowPlaying"),p7d(a)):a.JSC$17495_disconnect_(1)},Abn=function(a,W){var w=W.params.videoId;
delete W.params.videoId;w==a.playerContext_.videoId&&(_.T5.isEmpty(W.params)?a.playerContext_.trackData=null:a.playerContext_.trackData=W.params,a.publish("remotePlayerChange"))},hKf=function(a,W,w){var Z=W.params.videoId||W.params.video_id,N=parseInt(W.params.currentIndex,10);
a.playerContext_.listId=W.params.listId||a.playerContext_.listId;t7n(a.playerContext_,Z,N);a.publish("remoteQueueChange",w)},iN9=function(a,W){W.params=W.params||{};
hKf(a,W,"NOW_PLAYING_MAY_CHANGE");a.onStateChange_(W);a.publish("autoplayDismissed")};
Xl.prototype.onStateChange_=function(a){var W=parseInt(a.params.currentTime||a.params.current_time,10);Zc(this.playerContext_,isNaN(W)?0:W);W=parseInt(a.params.state,10);W=isNaN(W)?-1:W;W==-1&&this.playerContext_.playerState==-1E3&&(W=-1E3);this.playerContext_.playerState=W;W=Number(a.params.loadedTime);this.playerContext_.loadedTime=isNaN(W)?0:W;W=Number(a.params.duration);this.playerContext_.duration_=isNaN(W)?0:W;W=this.playerContext_;var w=Number(a.params.liveIngestionTime);W.liveIngestionTime_=
w;W.isLive_=isNaN(w)?!1:!0;W=this.playerContext_;w=Number(a.params.seekableStartTime);a=Number(a.params.seekableEndTime);W.seekableStart_=isNaN(w)?0:w;W.seekableEnd_=isNaN(a)?0:a;this.playerContext_.playerState==1?K4z(this):SAa(this);this.publish("remotePlayerChange")};
Xl.prototype.onAdStateChange_=function(a){if(this.playerContext_.playerState!=-1E3){var W=1085;switch(parseInt(a.params.adState,10)){case 1:W=1081;break;case 2:W=1084;break;case 0:W=1083}this.playerContext_.playerState=W;a=parseInt(a.params.currentTime,10);Zc(this.playerContext_,isNaN(a)?0:a);this.publish("remotePlayerChange")}};
var cb2=function(a,W){var w=W.params.muted=="true";a.playerContext_.volume=parseInt(W.params.volume,10);a.playerContext_.muted=w;a.publish("remotePlayerChange")},eKD=function(a,W){a.autoplayVideoId_=W.params.videoId;
a.publish("nowAutoplaying",parseInt(W.params.timeout,10))},nH9=function(a,W){a.autoplayVideoId_=W.params.videoId||null;
a.publish("autoplayUpNext",a.autoplayVideoId_)},jcz=function(a,W){a.autoplayMode_=W.params.autoplayMode;
a.publish("autoplayModeChange",a.autoplayMode_);a.autoplayMode_=="DISABLED"&&a.publish("autoplayDismissed")},L42=function(a,W){var w=W.params.hasNext=="true";
a.playerContext_.hasPrevious=W.params.hasPrevious=="true";a.playerContext_.hasNext=w;a.publish("previousNextChange")};
Xl.prototype.isCapabilitySupportedOnConnectedDevices_=function(a){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var W=_.l(this.connectedDevices_),w=W.next();!w.done;w=W.next())if(!w.value.capabilities.has(a))return!1;return!0};
var kRn=function(a,W){W=W.message;W.params?Pm("Received: action="+W.action+", params="+(0,_.c5)(W.params)):Pm("Received: action="+W.action+" {}");switch(W.action){case "loungeStatus":W=(0,_.rQ)(W.params.devices);a.connectedDevices_=_.pY(W,function(Z){return new Dz(Z)});
W=!!_.be(a.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"});
rbi(a,W);W=a.isCapabilitySupportedOnConnectedDevices_("mlm");a.publish("multiStateLoopEnabled",W);break;case "loungeScreenDisconnected":Sxi(a.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"});
rbi(a,!1);break;case "remoteConnected":var w=new Dz((0,_.rQ)(W.params.device));_.be(a.connectedDevices_,function(Z){return Z.equals(w)})||_.dE(a.connectedDevices_,w);
break;case "remoteDisconnected":w=new Dz((0,_.rQ)(W.params.device));Sxi(a.connectedDevices_,function(Z){return Z.equals(w)});
break;case "gracefulDisconnect":break;case "playlistModified":hKf(a,W,"QUEUE_MODIFIED");break;case "nowPlaying":iN9(a,W);break;case "onStateChange":a.onStateChange_(W);break;case "onAdStateChange":a.onAdStateChange_(W);break;case "onVolumeChanged":cb2(a,W);break;case "onSubtitlesTrackChanged":Abn(a,W);break;case "nowAutoplaying":eKD(a,W);break;case "autoplayDismissed":a.publish("autoplayDismissed");break;case "autoplayUpNext":nH9(a,W);break;case "onAutoplayModeChanged":jcz(a,W);break;case "onHasPreviousNextChanged":L42(a,
W);break;case "requestAssistedSignIn":a.publish("assistedSignInRequested",W.params.authCode);break;case "onLoopModeChanged":a.publish("loopModeChange",W.params.loopMode);break;default:Pm("Unrecognized action: "+W.action)}};
_.t=Xl.prototype;_.t.getProxyState_=function(){var a=3;this.isDisposed()||(a=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(a=1):a=2);return a};
_.t.JSC$17495_disconnect_=function(a){Pm("Disconnecting with "+a);_.Dp("yt.mdx.remote.remoteClient_",null);ON0(this);this.publish("beforeDisconnect",a);a==1&&jZ();this.channelService.disconnect(a);this.dispose()};
_.t.getPlayerContextData_=function(){var a=this.playerContext_;this.clientVideoId_&&(a=this.playerContext_.clone(),t7n(a,this.clientVideoId_,a.index));return $Rz(a)};
_.t.setPlayerContextData_=function(a){var W=this,w=new dN(a);w.videoId&&w.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=w.videoId,_.NY(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.wz(function(){if(W.clientVideoId_){var N=W.clientVideoId_;W.clientVideoId_=null;W.playerContext_.videoId!=N&&vm(W,"getNowPlaying")}},5E3));
var Z=[];this.playerContext_.listId==w.listId&&this.playerContext_.videoId==w.videoId&&this.playerContext_.index==w.index||Z.push("remoteQueueChange");this.playerContext_.playerState==w.playerState&&this.playerContext_.volume==w.volume&&this.playerContext_.muted==w.muted&&N4X(this.playerContext_)==N4X(w)&&(0,_.c5)(this.playerContext_.trackData)==(0,_.c5)(w.trackData)||Z.push("remotePlayerChange");this.playerContext_.reset(a);_.x6(Z,function(N){this.publish(N)},this)};
_.t.getOtherConnectedRemoteId_=function(){var a=this.channelService.getDeviceId(),W=_.be(this.connectedDevices_,function(w){return w.type=="REMOTE_CONTROL"&&w.id!=a});
return W?W.id:""};
_.t.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.t.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.t.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.t.JSC$17495_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var p7d=function(a){_.NY(a.idleDisconnectTimerId_);a.idleDisconnectTimerId_=_.wz(function(){a.JSC$17495_disconnect_(1)},864E5)},vm=function(a,W,w){w?Pm("Sending: action="+W+", params="+(0,_.c5)(w)):Pm("Sending: action="+W);
a.channelService.sendMessage(W,w)};
Xl.prototype.sendMessageWithUserAction_=function(a,W){vm(this,a,W);p7d(this)};
Xl.prototype.JSC$17495_getXsrfToken_=function(){var a=_.XQ.get("SAPISID","")||_.XQ.get("__Secure-1PAPISID",void 0)||"",W=_.XQ.get("__Secure-3PAPISID","")||"";if(!a&&!W)return"";a=_.EI(_.UW(a),2);W=_.EI(_.UW(W),2);return _.EI(_.UW(","+a+","+W),2)};
Xl.prototype.subscribe=Xl.prototype.subscribe;Xl.prototype.unsubscribeByKey=Xl.prototype.unsubscribeByKey;Xl.prototype.getProxyState=Xl.prototype.getProxyState_;Xl.prototype.disconnect=Xl.prototype.JSC$17495_disconnect_;Xl.prototype.getPlayerContextData=Xl.prototype.getPlayerContextData_;Xl.prototype.setPlayerContextData=Xl.prototype.setPlayerContextData_;Xl.prototype.getOtherConnectedRemoteId=Xl.prototype.getOtherConnectedRemoteId_;Xl.prototype.getReconnectTimeout=Xl.prototype.getReconnectTimeout_;
Xl.prototype.getAutoplayMode=Xl.prototype.getAutoplayMode_;Xl.prototype.getAutoplayVideoId=Xl.prototype.getAutoplayVideoId_;Xl.prototype.reconnect=Xl.prototype.JSC$17495_reconnect_;Xl.prototype.sendMessage=Xl.prototype.sendMessageWithUserAction_;Xl.prototype.getXsrfToken=Xl.prototype.JSC$17495_getXsrfToken_;Xl.prototype.isCapabilitySupportedOnConnectedDevices=Xl.prototype.isCapabilitySupportedOnConnectedDevices_;var Jb9=function(a){QE.call(this,"ScreenServiceProxy");this.instance_=a;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Sk)(this.JSC$17498_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Sk)(this.onOnlineScreenChange_,this)))};
_.c(Jb9,QE);_.t=Jb9.prototype;_.t.getScreens=function(a){return this.instance_.$_gs(a)};
_.t.contains=function(a){return!!this.instance_.$_c(a)};
_.t.get=function(a){return this.instance_.$_g(a)};
_.t.start=function(){this.instance_.$_st()};
_.t.add=function(a,W,w){this.instance_.$_a(a,W,w)};
_.t.remove=function(a,W,w){this.instance_.$_r(a,W,w)};
_.t.updateName=function(a,W,w,Z){this.instance_.$_un(a,W,w,Z)};
_.t.disposeInternal=function(){for(var a=this.subscriptionKeys_.length,W=0;W<a;++W)this.instance_.$_ubk(this.subscriptionKeys_[W]);this.subscriptionKeys_.length=0;this.instance_=null;QE.prototype.disposeInternal.call(this)};
_.t.JSC$17498_onScreenChange_=function(){this.publish("screenChange")};
_.t.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
sQ.prototype.$_st=sQ.prototype.start;sQ.prototype.$_gspc=sQ.prototype.JSC$17455_getScreenByPairingCode;sQ.prototype.$_gsppc=sQ.prototype.JSC$17455_getScreenByPollingPairingCode;sQ.prototype.$_c=sQ.prototype.contains;sQ.prototype.$_g=sQ.prototype.get;sQ.prototype.$_a=sQ.prototype.add;sQ.prototype.$_un=sQ.prototype.updateName;sQ.prototype.$_r=sQ.prototype.remove;sQ.prototype.$_gs=sQ.prototype.getScreens;sQ.prototype.$_gos=sQ.prototype.JSC$17455_getOnlineScreens;sQ.prototype.$_s=sQ.prototype.subscribe;
sQ.prototype.$_ubk=sQ.prototype.unsubscribeByKey;var bN0=function(a){BSa();if(!Lb||!Lb.get("yt-remote-disable-remote-module-for-dev")){a=_.LF("MDX_CONFIG")||a;Xek();a9f();g1||(g1=new iv(a?a.loungeApiHost:void 0),l9i()&&(g1.basePath="/api/loungedev"));op||(op=_.RT("yt.mdx.remote.deferredProxies_")||[],_.Dp("yt.mdx.remote.deferredProxies_",op));F40();var W=ku();if(!W){var w=new sQ(g1,a?a.disableAutomaticScreenCache||!1:!1);_.Dp("yt.mdx.remote.screenService_",w);W=ku();var Z={};a&&(Z={appId:a.appId,disableDial:a.disableDial,theme:a.theme,loadCastApiSetupScript:a.loadCastApiSetupScript,
disableCastApi:a.disableCastApi,enableDialLoungeToken:a.enableDialLoungeToken,enableCastLoungeToken:a.enableCastLoungeToken,forceMirroring:a.forceMirroring});_.Dp("yt.mdx.remote.enableConnectWithInitialState_",a?a.enableConnectWithInitialState||!1:!1);x10(w,function(B){B?Ue()&&d1d(Ue(),"YouTube TV"):w.subscribe("onlineScreenChange",function(){aq("yt-remote-receiver-availability-change")})},Z)}if(a&&!_.RT("yt.mdx.remote.initialized_")){_.Dp("yt.mdx.remote.initialized_",!0);
Oe("Initializing: "+(0,_.c5)(a));Ss.push(_.Z8("yt-remote-cast2-api-ready",function(){aq("yt-remote-api-ready")}));
Ss.push(_.Z8("yt-remote-cast2-availability-change",function(){aq("yt-remote-receiver-availability-change")}));
Ss.push(_.Z8("yt-remote-cast2-receiver-selected",function(){M7K();aq("yt-remote-auto-connect","cast-selector-receiver")}));
Ss.push(_.Z8("yt-remote-cast2-receiver-resumed",function(){aq("yt-remote-receiver-resumed","cast-selector-receiver")}));
Ss.push(_.Z8("yt-remote-cast2-session-change",RKI));Ss.push(_.Z8("yt-remote-connection-change",function(B){B?d1d(Ue(),"YouTube TV"):qAK()||(d1d(null,null),GG9())}));
Ss.push(_.Z8("yt-remote-cast2-session-failed",function(){aq("yt-remote-connection-failed")}));
Z=Qc0();a.isAuto&&(Z.id+="#dial");var N=a.capabilities||[];N.length>0&&(Z.capabilities=N);Z.name=a.device;Z.app=a.app;(a=a.theme)&&(Z.theme=a);Oe(" -- with channel params: "+(0,_.c5)(Z));Z?(_.$H("yt-remote-session-app",Z.app),_.$H("yt-remote-session-name",Z.name)):(_.li("yt-remote-session-app"),_.li("yt-remote-session-name"));_.Dp("yt.mdx.remote.channelParams_",Z);W.start();Ue()||xRn()}}},uik=function(){var a=ku().instance_.$_gos();
var W=sck();W&&Yu()&&(VH9(a,W)||a.push(W));return mMz(a)},Ci0=function(){var a=uik(),W=sck();
W||(W=qAK());return _.be(a,function(w){return W&&eZ(W,w.key)?!0:!1})},sck=function(){var a=Ue();
if(!a)return null;var W=ku().getScreens();return nb(W,a)},RKI=function(a){Oe("remote.onCastSessionChange_: "+m10(a));
if(a){var W=sck();W&&W.id==a.id?(d1d(W.id,"YouTube TV"),a.idType=="shortLived"&&(a=a.token)&&(W=Yu())&&W.setLoungeToken(a)):(W&&GRE(),DR2(a,1))}else Yu()&&GRE()},GRE=function(){f9z()?Dw().stopSession():GY("stopSession called before API ready.");
var a=Yu();a&&(a.disconnect(1),fh2(null))},dRk=function(){var a=Yu();
return a&&a.getProxyState()!=3?new Ng(Yu(),void 0):null},Oe=function(a){Mz("remote",a)},ku=function(){if(!mRf){var a=_.RT("yt.mdx.remote.screenService_");
mRf=a?new Jb9(a):null}return mRf},Ue=function(){return _.RT("yt.mdx.remote.currentScreenId_")},V7n=function(a){_.Dp("yt.mdx.remote.currentScreenId_",a)},M7K=function(){_.Dp("yt.mdx.remote.connectData_",null)},Yu=function(){return _.RT("yt.mdx.remote.connection_")},fh2=function(a){var W=Yu();
M7K();a||V7n("");_.Dp("yt.mdx.remote.connection_",a);op&&(_.x6(op,function(w){w(a)}),op.length=0);
W&&!a?aq("yt-remote-connection-change",!1):!W&&a&&aq("yt-remote-connection-change",!0)},qAK=function(){var a=ys9();
if(!a)return null;var W=ku();if(!W)return null;W=W.getScreens();return nb(W,a)},DR2=function(a,W){V7n(a.id);
a=new Xl(g1,a,Qc0(),_.RT("yt.mdx.remote.enableConnectWithInitialState_")||!1);a.connect(W,_.RT("yt.mdx.remote.connectData_"));a.subscribe("beforeDisconnect",function(w){aq("yt-remote-before-disconnect",w)});
a.subscribe("beforeDispose",function(){Yu()&&fh2(null)});
a.subscribe("browserChannelAuthError",function(){var w=sck();w&&w.idType=="shortLived"&&(f9z()?Dw().handleBrowserChannelAuthError():GY("refreshLoungeToken called before API ready."))});
fh2(a)},xRn=function(){var a=qAK();
a?(Oe("Resume connection to: "+m10(a)),DR2(a,0)):(jZ(),GG9(),Oe("Skipping connecting because no session screen found."))},g1=null,op=null,mRf=null,F40=function(){var a=Qc0();
if(_.T5.isEmpty(a)){a=HSE();var W=_.B7("yt-remote-session-name")||"",w=_.B7("yt-remote-session-app")||"";a={device:"REMOTE_CONTROL",id:a,name:W,app:w,mdxVersion:3};a.authuser=String(_.LF("SESSION_INDEX","0"));(W=_.LF("DELEGATED_SESSION_ID"))&&(a.pageId=String(W));_.Dp("yt.mdx.remote.channelParams_",a)}},Qc0=function(){return _.RT("yt.mdx.remote.channelParams_")||{}},Ss=[];var zK0=new _.LJ("yt-menu"),HN2=function(){},EHX=function(a,W,w){a=W=="right-click"?w.rightClickMenuPopupHint:w.menuPopupHint;
if(!(ybI(W)>10))return W=W||"default",zK0.set(W+"-impression",ybI(W)+1),a},ybI=function(a){return parseInt(zK0.get((a||"default")+"-impression")||0,10)};
_.wk(HN2);var as2=function(){this.contexts_=new WeakMap;this.JSC$17504_networkService_=this.activeContext_=null},Wz0=function(a,W,w){var Z=a.contexts_.get(W);
Z||(Z=new PKd(a.JSC$17504_networkService_),a.contexts_.set(W,Z));a.activeContext_=Z;w&&a.activeContext_.reset();a.activeContext_.start();return a.activeContext_};var TJ=function(){};
TJ.prototype.enqueue=function(){var a=this,W;return _.P(function(w){if(a.isCounterfactual())return(W=a.getCounterfactualData())&&a.shouldLogCounterfactualImpression()&&a.sendImpressionEndpoints(W),w.return();a.doEnqueue();_.Xd(w)})};
TJ.prototype.sendImpressionEndpoints=function(a){_.sn.getInstance().triggerOptionalAction("yt-service-request",{},a[0])};var KL=function(a,W){this.renderer=a;this.page=W};
_.c(KL,TJ);KL.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
KL.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
KL.prototype.shouldLogCounterfactualImpression=function(){return!0};
KL.prototype.doEnqueue=function(){var a=_.DK(this.page);a&&a.pause();this.renderer.impressionCommand&&_.sn.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.J2(_.sn.getInstance(),[this.renderer.promoCommand],this.page)};var wwn=function(a,W){this.renderer=a;this.resolver=_.Rt();this.JSC$17516_enforcementCounter=new _.ZrJ;W?this.JSC$17516_playerManager=_.DK(W):this.JSC$17516_playerManager=null;_.$o(1,!0)};
_.c(wwn,TJ);_.t=wwn.prototype;_.t.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var a=[];this.renderer.impressionEndpoints.forEach(function(W){(W=_.rJ(W))&&a.push(W)});
return a}};
_.t.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.t.shouldLogCounterfactualImpression=function(){var a=_.qUe();a?(this.JSC$17516_enforcementCounter.increment("POPUP"),_.$o(3)):_.$o(2);return a};
_.t.cancel=function(){this.resolver.promise.cancel()};
_.t.doEnqueue=function(){var a=this;_.qUe()?(this.JSC$17516_enforcementCounter.increment("POPUP"),_.$o(3),Z0I(this)):this.JSC$17516_playerManager?(this.resolver.promise.then(function(){Z0I(a)}),Nnz(this.resolver,this.JSC$17516_playerManager)):_.$o(2)};
var Nnz=function(a,W){var w=_.Rt();W.getPlayerPromise().then(function(Z){w.resolve(Z)});
w.promise.then(function(Z){Z.addEventListener("onAbnormalityDetected",a.resolve);_.Ad(a.promise,function(){Z.removeEventListener("onAbnormalityDetected",a.resolve)})});
a.promise.thenCatch(function(){w.promise.cancel()})},Z0I=function(a){_.$o(3);
var W={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:a.renderer}};W=_.sn.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:W},{});Promise.all(W).then(function(){tDD();a.JSC$17516_playerManager&&a.JSC$17516_playerManager.pause()})},tDD=function(){ZH0(function(a,W){_.wIa(a,W);
a===0?_.$o(7):_.$o(4)})};var $LE=function(a,W){this.renderer=a;this.page=W;this.resolver=_.Rt()};
_.c($LE,TJ);_.t=$LE.prototype;_.t.cancel=function(){this.resolver.promise.cancel()};
_.t.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.t.isCounterfactual=function(){return!this.renderer.isVisible};
_.t.shouldLogCounterfactualImpression=function(){return!0};
_.t.doEnqueue=function(){var a=this;this.resolver.promise.then(function(){var w={popup:{mealbarPromoRenderer:a.renderer},popupType:"MEALBAR"};_.sn.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:w},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var W=_.DK(this.page);W&&Bnd(this.resolver,W)}break;default:this.resolver.resolve()}};
var Bnd=function(a,W){var w=_.Rt();W.getPlayerPromise().then(function(Z){w.resolve(Z)});
w.promise.then(function(Z){Z.addEventListener("onAdEnd",a.resolve);_.Ad(a.promise,function(){Z.removeEventListener("onAdEnd",a.resolve)})});
a.promise.thenCatch(function(){w.promise.cancel()})};var lsK=function(a,W){this.renderer=a;this.page=W};
_.c(lsK,TJ);_.t=lsK.prototype;_.t.cancel=function(){this.JSC$17524_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17524_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17524_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.t.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.t.isCounterfactual=function(){return!this.renderer.isVisible};
_.t.shouldLogCounterfactualImpression=function(){return!0};
_.t.doEnqueue=function(){var a=this,W,w;((W=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(w=W.playbackUpsellDialogTriggerConditionData)==null?void 0:w.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17524_downloadedVideosCountSelectorUnsubscriber=_.oX(_.Cx(),yF2,function(Z,N){Z>N&&(Isf(a),a.cancel())}):Isf(this)};
var Isf=function(a){var W={popup:{upsellDialogRenderer:a.renderer},popupType:"MODAL"};_.sn.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:W},{});(a=_.DK(a.page))&&a.pause()};var pL={},PN0=(pL.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",pL.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",pL.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",pL.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",pL.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",pL.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",pL.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",pL),Xw0=function(a,W){this.renderer=a;this.targetManager=
W};
_.c(Xw0,TJ);_.t=Xw0.prototype;_.t.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17531_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17531_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17531_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.t.getCounterfactualData=function(){if(this.isCounterfactual()){var a;return(a=this.renderer.promoConfig)==null?void 0:a.impressionEndpoints}};
_.t.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.t.shouldLogCounterfactualImpression=function(){return!0};
_.t.doEnqueue=function(){var a=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17531_downloadedVideosCountSelectorUnsubscriber=_.oX(_.Cx(),yF2,function(W,w){a.renderer.targetId&&W>w&&(sdz(a.targetManager,a.renderer.targetId,vZD(a)),a.cancel())});
break;default:sdz(this.targetManager,this.renderer.targetId,vZD(this))}};
var vZD=function(a){var W;if((W=a.renderer.suggestedPosition)==null?0:W.type)var w=PN0[a.renderer.suggestedPosition.type];w||(w="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:a.renderer},popupType:"HINT",position:w}}};var gZf=function(){this.previousPage=null},oZX;
gZf.prototype.registerPromoCommand=function(a,W){ku9(this,void 0,void 0,_.A(a.roadblock,LFi),void 0,void 0,W)};
var ku9=function(a,W,w,Z,N,B,I){a.previousPage!==I&&a.pendingTooltipPromo&&a.pendingTooltipPromo.cancel();a.previousPage=I;N?(a.pendingEnforcementPromo&&a.pendingEnforcementPromo.cancel(),a.pendingEnforcementPromo=new wwn(N,I),a.pendingEnforcementPromo.enqueue()):B?(a.pendingCommandWrapperPromo=new KL(B,I),a.pendingCommandWrapperPromo.enqueue()):Z?(a.pendingRoadblockPromo&&a.pendingRoadblockPromo.cancel(),a.pendingRoadblockPromo=new lsK(Z,I),a.pendingRoadblockPromo.enqueue()):W?(a.pendingMealbarPromo&&
a.pendingMealbarPromo.cancel(),a.pendingMealbarPromo=new $LE(W,I),a.pendingMealbarPromo.enqueue()):w&&(a.pendingTooltipPromo&&a.pendingTooltipPromo.cancel(),a.pendingTooltipPromo=new Xw0(w,_.NR()),a.pendingTooltipPromo.enqueue())},ULd=function(){oZX||(oZX=new gZf);
return oZX};var ykf=!1;var fCI=function(a,W){var w=_.LF("SESSION_INDEX");this.actionToken_=a;this.commonToken_=W;this.sessionIndex_=w},DtE=function(a){var W=_.Rt(),w=_.RT("payments.business.integration.bootstrap"),Z=_.RT("payments.business.integration"),N=Z.Style.create().withMaterialDesignStyle(),B=Z.mashupMode.popup("instrument-manager");
w.asMashupMode(B).usingUserIndex(a.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(N).inStandaloneContext(Z.standaloneContextAuthId.forUserId()).instrumentManager(a.actionToken_,a.commonToken_.length>0?a.commonToken_:void 0,function(I){var X=I.instrumentId;X?W.resolve(X):(X=_.RT("payments.business.integration.scenario.InstrumentManager"),W.reject(I.errorCode&&I.errorCode===X.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(I){_.Ff(I);
W.reject("instrumentManagerLoadError")});
return W.promise};var yE=function(a,W,w){this.payloadName="transactionFlowFailed";this.payload={errorType:a,serializedTransactionFlowLoggingParams:W,isUserDismiss:w===void 0?!1:w}};
_.Dp("yt.ypc.shared.YpcTransactionFlowError",yE);var r1=function(){return _.Nt.apply(this,arguments)||this};
_.c(r1,_.Nt);r1.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
r1.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
r1.prototype.onErrorMessageDismiss=r1.prototype.onErrorMessageDismiss;_.f([_.b({readOnly:!0,observer:"errorRendererChanged"}),_.z("design:type",Object)],r1.prototype,"errorRenderer",void 0);_.f([_.E6("yt-live-chat-error-message-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r1.prototype,"onErrorMessageDismiss",null);r1=_.f([_.BA()],r1);var O0z=[r1.prototype];var SqD;var Yqk;var Tni=new _.LJ("yt-live-chat"),KzE=new Map;KzE.set("timestamp_toggle","show-timestamps");KzE.set("reactions_toggle","allow-reactions");var A5=function(){return _.u.apply(this,arguments)||this};
_.c(A5,_.u);_.t=A5.prototype;_.t.menuItemIdentifierChanged=function(){var a;(a=this.data)!=null&&a.menuItemIdentifier&&(a=KzE.get(this.data.menuItemIdentifier))&&(_.r("enable_lwe_web_mute")?(a=Tni.get(a),this.isToggled=!(a===void 0?!this.data.isToggled:!a)):this.isToggled=Tni.get(a))};
_.t.onFocus=function(){this.toggleButton.focus()};
_.t.onTap=function(){var a=this.data.command;a&&this.componentBehavior.resolveCommand(a)};
_.t.computeText=function(a,W,w){return this.componentBehavior.getSimpleString(a?w:W)};
_.t.computeIcon=function(a,W,w){return(a=a?w:W)&&a.iconType?_.EN(a.iconType):""};
A5.prototype.onTap=A5.prototype.onTap;A5.prototype.onFocus=A5.prototype.onFocus;A5.prototype.menuItemIdentifierChanged=A5.prototype.menuItemIdentifierChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],A5.prototype,"componentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],A5.prototype,"data",void 0);
_.f([_.b({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.z("design:type",String)],A5.prototype,"icon",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],A5.prototype,"isToggled",void 0);_.f([_.w$("tp-yt-paper-toggle-button"),_.z("design:type",Object)],A5.prototype,"toggleButton",void 0);_.f([_.a5("data.menuItemIdentifier"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],A5.prototype,"menuItemIdentifierChanged",null);
_.f([_.E6("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],A5.prototype,"onFocus",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],A5.prototype,"onTap",null);A5=_.f([_.TD({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],A5);
_.D(A5,"yt-live-chat-toggle-renderer",function(){if(Yqk===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;SqD===void 0&&(SqD=document.createElement("template"));var Z=SqD;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Yqk=a}a=Yqk;return a},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var pwE=new _.yq("NAVIGATION_PROGRESS_TOKEN");_.jm("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var rpK={},tyd=(rpK.CSI=function(a,W){var w={};w[a]=W;a=_.Mx(_.$KI)(w);Object.keys(a).length>0&&_.pD(a)},rpK.ECATCHER=function(a){return function(W,w){_.LF(a)[W]=w}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),rpK);var Apk={},hvf={},i00=(hvf[Yj2.name]=!0,hvf),h5=function(){var a=_.Nt.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=_.tk();a.hasPendingNavigation=!1;a.pendingPlayerOnResponseReceivedActions=[];return a};
_.c(h5,_.Nt);h5.prototype.attached=function(){cpK(this);document.addEventListener("yt-navigate-cache",_.yV(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var a=i2();a.init();a.dispatchElement=this.hostElement};
var cpK=function(a,W){W=W===void 0?0:W;var w=_.K().resolve(_.Vv(_.Zh));if(w)evK(a,w);else{if(W>=5)throw Error("Wk");setTimeout(function(){cpK(a,W+1)},0)}},evK=function(a,W){W.addEventListener("yt-navigate-start",_.yV(a,a.onYtNavigateStart));
W.addEventListener("yt-navigate-finish",_.yV(a,a.onYtNavigateFinish));W.addEventListener("yt-navigate-error",_.yV(a,a.onYtNavigateError));W.addEventListener("yt-page-data-fetched",_.yV(a,a.onYtPageDataFetched))};
_.t=h5.prototype;_.t.detached=function(){var a=_.K().resolve(_.Zh);a.removeEventListener("yt-navigate-start",_.yV(this,this.onYtNavigateStart));a.removeEventListener("yt-navigate-finish",_.yV(this,this.onYtNavigateFinish));a.removeEventListener("yt-navigate-error",_.yV(this,this.onYtNavigateError));a.removeEventListener("yt-page-data-fetched",_.yV(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.yV(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.t.setPageOffset=function(a,W){a?_.aV(this.hostElement,"yt-set-page-offset",[a,W]):_.eJ(Error("Xk"))};
_.t.setPageOffsetForNavigation=function(a,W){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(a,W))};
_.t.onYtNavigateSetPageOffset=function(a,W){this.setPageOffsetForNavigation(W.page,W.offset)};
_.t.getPageOffset=function(){var a=_.M(this.hostElement).querySelector("#page-manager").getCurrentPage(),W=0;a&&(W=_.aV(this.hostElement,"yt-get-page-offset",[a])[0]);return W};
_.t.onYtHistoryPop=function(a,W){if(_.JS("DISABLE_WARM_LOADS"))a.preventDefault(),window.location.reload();else{var w=_.K().resolve(_.Zh);w.hasPendingNavigation()&&a.preventDefault();w.cancelPendingNavigation();_.W_(this.hostElement,"yt-pending-navigation-cancelled");W.errorMsg&&(a=W.errorMsg.split(" - "),W=Error(a[0]),a.length==2&&a[1]&&(_.LH(W,a[1]),_.jJ(W)),window.location.reload())}};
_.t.onYtHistoryLoad=function(a,W){var w=this;if(_.JS("DISABLE_WARM_LOADS"))window.location.reload();else{(a=W.endpoint)&&Object.keys(a).length||(a=null);var Z=W.historyEntry,N=_.K().resolve(_.Zh),B=_.K().resolve(_.Gw),I=null;Z&&Z.rootData&&(I=Z.rootData);var X=I&&nZX(I);!I||X||I.filler?a?(N.navigate(a,!0),j7k(this,a)):(W.legacyBorder||X||(W.JSC$26402_savedComponentState==null&&I==null?_.jJ(new _.Uw("Incomplete history entry",W.forward)):_.nH(new _.Uw("Malformed history entry",W.JSC$26402_savedComponentState,
W.forward,I))),window.location.reload()):(_.oKH({isHot:!0}),_.pD({webInfo:{navigationReason:"h"}}),_.cP8(),_.Ak("srt"),_.Ak("pdc"),this.cancelPendingTasks(),Lzi(this,W.forward,I),I.player&&(I.player.loaded=!1),j7k(this,a),_.Mue(N,a||{},I,2,{},!1,W).then(function(){w.setPageOffset(B.getCurrentPage(),Z.scrollTop||0)}))}};
_.t.initHistoryManager=function(a){if(!this.hasNavigated){this.hasNavigated=!0;var W=_.M(this.hostElement).querySelector("#page-manager").getCurrentData();a=isNaN(a)?this.getPageOffset():a;var w=_.K().resolve(_.Zh).currentEndpoint;this.replaceState(w,W,a)}};
_.t.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.t.onYtNavigateStart=function(a,W){this.cancelPendingTasks();W.noProgressBar||(a=_.K().resolve(_.Vv(pwE)))&&a.start();a=this.hasPendingNavigation?null:this.data;var w=_.K().resolve(_.Gw),Z,N,B;_.r("kevlar_use_vimio_behavior")&&!((Z=W.endpoint)==null?0:(N=Z.commandMetadata)==null?0:(B=N.webCommandMetadata)==null?0:B.ignoreNavigation)&&(Z=w.getCurrentPage())&&Z.disconnectVisibilityRoot();w.prepareForNavigation(W.pageType,W.endpoint);_.r("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.GR(1,
"pcl"),_.Dh(this.pagePreparer,w.preparePage.bind(w,W.pageType,W.endpoint)));Z=this.getPageOffset();this.initHistoryManager(Z);W.reload||this.hasPendingNavigation?this.replaceState(W.endpoint,a,Z):(a==null?void 0:a.page)==="watch"&&W.pageType==="watch"&&_.r("kevlar_replace_watch_to_watch_history_state")?this.replaceState(W.endpoint,a,Z):(a==null?void 0:a.page)!=="shorts"||W.pageType!=="shorts"||W.endpoint.reelWatchEndpoint.sequenceParams||_.r("short_to_short_back_nav_killswitch")?W.type!="navigate-back"&&
W.type!="navigate-forward"&&(W.pageType==="shorts"&&_.E$(this.hostElement,"yt-shorts-reset"),this.saveAndPush(W.url,W.endpoint,a,Z)):this.replaceState(W.endpoint,a,0);this.hasPendingNavigation=!0};
var Jp0=function(a){a.hasPendingNavigation=!1;(a=_.K().resolve(_.Vv(pwE)))&&a.finish()};
h5.prototype.onYtNavigateError=function(a,W){Jp0(this);a=this.get("endpoint.commandMetadata.webCommandMetadata.url",W);var w=_.st(window.location.href);a&&!w.pbjreload&&(W=W.navigationErrorReason||"10",_.r("kevlar_parent_on_pbjreload")&&(w={csn:_.nS()},this.get("data.endpoint.clickTrackingParams")&&(w.itct=this.data.endpoint.clickTrackingParams),_.fS(a,w)),_.ih(_.uG(a,{pbjreload:W})))};
h5.prototype.onYtNavigateCache=function(a,W){var w=this,Z=W.url,N=W.endpoint,B=W.data;a=!!W.miniplayer;W=!!W.skipHistory;if(Z&&N&&B){var I=this.getPageOffset(),X=this.data||null;W||this.saveAndPush(Z,N,X,I);Z=_.Mue(_.K().resolve(_.Zh),N,B,a?4:3,{},a);a&&Z.then(function(){w.dataUpdatePromise&&w.dataUpdatePromise.then(function(){var v=_.K().resolve(_.Gw);w.setPageOffset(v.getCurrentPage(),0)})})}};
h5.prototype.onYtNavigateFinish=function(a,W){var w=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Fzf(w,W.fromHistory)})};
var Fzf=function(a,W){Jp0(a);if(a.pendingPlayerOnResponseReceivedActions){for(var w=_.l(a.pendingPlayerOnResponseReceivedActions),Z=w.next();!Z.done;Z=w.next())_.wJ(Z.value,a.hostElement);a.pendingPlayerOnResponseReceivedActions=[]}w=_.K().resolve(_.Gw);!W&&a.hasNavigated&&((W=w.getCurrentPage())?W.is==="ytd-shorts"||a.tabGesturesIsActive||a.setPageOffsetForNavigation(W,0):_.jJ(Error("Yk")));_.cA(function(){_.cA(function(){_.Ak("pda")})})};
h5.prototype.onYtNavigate=function(a){if(!a.detail.endpoint){var W=new _.Uw("Error: Missing yt-navigate endpoint from target:",a.target,a.target.nodeName);_.eJ(W)}if(W=_.r("cold_missing_history"))W=i2(),W.init(!1),W=!(W.browserHistory.boundHistoryReplaceState&&W.browserHistory.boundHistoryPushState);if(W){_.jm("DISABLE_WARM_LOADS",!0);W=new _.Uw("Failed to initialize history manager",this.getDebugString());var w=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
w?_.jJ(W):_.eJ(W)}W=a.detail.endpoint;var Z,N;_.r("debug_forward_web_query_parameters")&&((Z=W.commandMetadata)==null?0:(N=Z.webCommandMetadata)==null?0:N.url)&&(W=JSON.parse(JSON.stringify(W)),W.commandMetadata.webCommandMetadata.url=_.V2e(W.commandMetadata.webCommandMetadata.url,window.location.search));a={type:0,command:W,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}};_.r("kevlar_yt_navigate_command_handler")?(Z=_.K().resolve(_.zU),a.form.skipDefaultElement=!0,Z.resolveCommand(W,{form:a.form})):this.handleNavigate(a)};
h5.prototype.handleNavigate=function(a){this.hasSetScrollTopForNavigation=!1;var W=_.K().resolve(_.Zh),w=a.form||{};W.navigate(a.command,w.reload,w.params,w.tempData,w.requestType,w.createScreenConfig,w.ignoreConfirmation,w.requestForm)&&j7k(this,a.command,w.tempData)};
h5.prototype.onYtPageDataFetched=function(a,W){try{_.Q8A().reset();this.data=W.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.K().resolve(_.Gw).updatePageData(this.data);var w=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);w&&$n0(w);var Z=this.get("response.responseContext.serviceTrackingParams",this.data);Z&&$n0(Z);var N=
this.get("playerResponse.onResponseReceivedActions",this.data);N&&(N=MDk(this,N));N&&_.N1(this.hostElement,N,this.hostElement);var B=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),I=this.get("response.responseContext.consistencyTokenJar",this.data);if(B||I){var X=_.JeD(),v=(0,_.T5.getValues)(X.tokenJars);B&&X.replace(v,B);I&&X.replace(v,I)}}catch(U){_.eJ(U)}};
var j7k=function(a,W,w){try{a.onYtEndpointChangeHandler(W,w)}catch(Z){_.eJ(Z)}};
_.t=h5.prototype;_.t.onYtEndpointChangeHandler=function(){};
_.t.setPageTitle=function(a){a=(this.pageTitle=a)?a+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+a};
_.t.onYtUpdateTitle=function(a,W){this.setPageTitle(W)};
_.t.setUnseenNotificationCount=function(a){this.unseenNotificationCount=a;this.setPageTitle(this.pageTitle)};
_.t.handleUpdateNotificationsUnseenCountAction=function(a){_.A(a,WFn)&&((a=_.A(a,WFn).unseenCount)?this.setUnseenNotificationCount(a):this.setUnseenNotificationCount(0))};
_.t.handleClearCookieAction=function(a){var W;(a=(W=_.A(a,HlE))==null?void 0:W.cookieName)&&_.osm(a)};
_.t.onYtUpdateUnseenNotificationCount=function(a,W){this.setUnseenNotificationCount(W)};
_.t.loadData=function(a){var W=this;this.loadDepsPromise.then(function(){var w=_.K().resolve(_.Vv(_.Zh));w||_.eJ(Error("Zk"));if(a&&a.response){if(!a.endpoint){var Z=_.qM(window.document.location.href)||"/",N="";if(Z==="/"||Z.startsWith("/?"))N="WEB_PAGE_TYPE_BROWSE";a.endpoint={commandMetadata:{webCommandMetadata:{url:Z,webPageType:N,rootVe:3854}}}}_.Mue(w,a.endpoint,a,5,{})}else a.endpoint?w.navigate(a.endpoint):w.navigate(_.g9);_.hF.cancelJob(W.zwiebackInitJobId);W.zwiebackInitJobId=_.hF.addLowPriorityJob(E7E)})};
var i2=function(){return _.K().resolve(_.$t)};
h5.prototype.getDebugString=function(){return i2().getDebugString()};
h5.prototype.getThirdPartyManipulationSuspected=function(){return i2().getThirdPartyManipulationSuspected()};
h5.prototype.replaceState=function(a,W,w){i2().saveAndReplace(a,W,w)};
h5.prototype.saveAndPush=function(a,W,w,Z){i2().saveAndPush(a,W,w,Z)};
var nZX=function(a){return _.r("web_honor_cache_for_back")&&(_.A(a.endpoint,_.u6)||_.A(a.endpoint,_.gi))?!0:!a||isNaN(a.expirationTime)?!1:(0,_.mG)()>a.expirationTime},Lzi=function(a,W,w){var Z=a.get("response.trackingParams",w),N=_.eH(),B=_.nS();
if(Z&&N&&B&&(Z=a.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",w),!Z&&w.rootVe&&(Z=w.rootVe),N=W?"forwardButton":"backButton",W=a.get("playerResponse.topbar.desktopTopbarRenderer."+N+".buttonRenderer.command.clickTrackingParams",a.data),a=a.get("response.topbar.desktopTopbarRenderer."+N+".buttonRenderer.command.clickTrackingParams",a.data),W=(a=W||a)?_.PX(a):void 0,a=_.$J(),N=[_.tk(w)],_.NJ(a,Z,W,{dataPromises:N,csnToClone:w.csn}),w.graftedVes))for(w=
_.l(w.graftedVes),Z=w.next();!Z.done;Z=w.next())_.tc(a,Z.value)};
h5.prototype.onStoreGraftedVeAction=function(a){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(a)):_.jJ(Error("$k"))};
var MDk=function(a,W){return W.filter(function(w){for(var Z in w)if(i00[Z])return a.pendingPlayerOnResponseReceivedActions.push(w),!0;return!1})};
_.dU.Object.defineProperties(h5.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
h5.prototype.onStoreGraftedVeAction=h5.prototype.onStoreGraftedVeAction;h5.prototype.loadData=h5.prototype.loadData;h5.prototype.onYtUpdateUnseenNotificationCount=h5.prototype.onYtUpdateUnseenNotificationCount;h5.prototype.handleClearCookieAction=h5.prototype.handleClearCookieAction;h5.prototype.handleUpdateNotificationsUnseenCountAction=h5.prototype.handleUpdateNotificationsUnseenCountAction;h5.prototype.setUnseenNotificationCount=h5.prototype.setUnseenNotificationCount;
h5.prototype.onYtUpdateTitle=h5.prototype.onYtUpdateTitle;h5.prototype.setPageTitle=h5.prototype.setPageTitle;h5.prototype.onYtEndpointChangeHandler=h5.prototype.onYtEndpointChangeHandler;h5.prototype.onYtPageDataFetched=h5.prototype.onYtPageDataFetched;h5.prototype.handleNavigate=h5.prototype.handleNavigate;h5.prototype.onYtNavigate=h5.prototype.onYtNavigate;h5.prototype.onYtNavigateFinish=h5.prototype.onYtNavigateFinish;h5.prototype.onYtNavigateCache=h5.prototype.onYtNavigateCache;
h5.prototype.onYtNavigateError=h5.prototype.onYtNavigateError;h5.prototype.onYtNavigateStart=h5.prototype.onYtNavigateStart;h5.prototype.cancelPendingTasks=h5.prototype.cancelPendingTasks;h5.prototype.initHistoryManager=h5.prototype.initHistoryManager;h5.prototype.onYtHistoryLoad=h5.prototype.onYtHistoryLoad;h5.prototype.onYtHistoryPop=h5.prototype.onYtHistoryPop;h5.prototype.onYtNavigateSetPageOffset=h5.prototype.onYtNavigateSetPageOffset;h5.prototype.setPageOffset=h5.prototype.setPageOffset;
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],h5.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],h5.prototype,"data",void 0);_.f([_.E6("yt-navigate-set-page-offset"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],h5.prototype,"onYtNavigateSetPageOffset",null);
_.f([_.E6("yt-history-pop"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],h5.prototype,"onYtHistoryPop",null);_.f([_.E6("yt-history-load"),_.z("design:type",Function),_.z("design:paramtypes",[Event,_.WwE]),_.z("design:returntype")],h5.prototype,"onYtHistoryLoad",null);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],h5.prototype,"onYtNavigate",null);
_.f([_.E6("yt-update-title"),_.z("design:type",Function),_.z("design:paramtypes",[Event,String]),_.z("design:returntype")],h5.prototype,"onYtUpdateTitle",null);_.f([_.E6("yt-update-unseen-notification-count"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Number]),_.z("design:returntype")],h5.prototype,"onYtUpdateUnseenNotificationCount",null);h5=_.f([_.BA()],h5);Apk.YtdAppBehavior=[_.d4.YtActionHandlerBehavior,h5.prototype];var cm=function(){var a=_.Nt.apply(this,arguments)||this;a._noAccessors=!0;return a};
_.c(cm,_.Nt);cm.prototype.ready=function(){var a=this;_.M(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){a.onChange_()})};
cm.prototype.dataChanged_=function(){_.M(this.hostElement).querySelector("#checkbox").checked=!1};
cm.prototype.onChange_=function(){var a=_.M(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.E$(this.hostElement,"yt-dismissal-reason-"+a,this.data.feedbackToken)};
cm.prototype.dataChanged_=cm.prototype.dataChanged_;_.f([_.b(),_.z("design:type",Object)],cm.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cm.prototype,"dataChanged_",null);cm=_.f([_.BA()],cm);var Rv2=[cm.prototype];var es=function(){var a=_.Nt.apply(this,arguments)||this;a.timeoutJobId=0;a.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return a};
_.c(es,_.Nt);es.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
es.prototype.startTimeout=function(){var a=this,W=this.data&&this.data.displayDurationSeconds;W&&!this.timeoutJobId&&(this.timeoutJobId=_.TP(_.hF,function(){_.aV(a.hostElement,"yt-close-popup-action",[a.is]);a.timeoutJobId=0},W*1E3))};
es.prototype.cancelTimeout=function(){_.hF.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
es.prototype.ytdHatsSurveyBehaviorDataChanged=es.prototype.ytdHatsSurveyBehaviorDataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],es.prototype,"ytActionHandlerBehavior",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],es.prototype,"ytdHatsSurveyBehaviorDataChanged",null);es=_.f([_.BA()],es);var qq2=[_.d4.YtActionHandlerBehavior,es.prototype];var Q7d=function(a,W){return a.SHARED_RENDERERS_.hasOwnProperty(W)?"yt":a.prefix},nL={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}};nL.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.r("kevlar_mealbar_above_player"),modern:_.r("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"}};
nL.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};nL.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};nL.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
nL.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)"}};
nL.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};
nL.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};
nL.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};
nL.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};nL.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"}};
nL.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};nL.TOAST={component:null,properties:{}};var xLK=new function(a,W,w){this.supportedPopups=a;this.navigationEndpointPopupMap=W;this.popupTypeMap=w;this.supportedPopups=a;this.navigationEndpointPopupMap=W;this.popupTypeMap=w}({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:_.r("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"}),b09=new function(){this.prefix="ytd";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$17583_popupConfig=nL;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 s7f=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Kg.getInstance()},js=function(a,W){var w=a.pageNameToElement.get(W);
if(!w){switch(W){case "watch":var Z=_.r("web_watch_force_learning_journey_for_testing")?_.CN("ytd-watch-learning-journey"):_.r("kevlar_watch_fixie")?_.CN("ytd-watch-fixie"):_.r("kevlar_watch_grid")?_.CN("ytd-watch-grid"):_.CN("ytd-watch-flexy");break;case "learning_journey_watch":Z=_.CN("ytd-watch-learning-journey");break;case "shorts":Z=_.CN("ytd-shorts");break;case "search":Z=_.CN("ytd-search");break;case "channel":Z=_.CN("ytd-browse");Z.pageSubtype="channels";break;case "trending":Z=_.CN("ytd-browse");
Z.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":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":Z=
_.CN("ytd-browse");Z.pageSubtype=W;break;case "browse":Z=_.CN("ytd-browse");break;default:_.jJ(new _.Uw("Error getting page element for type",W))}w=Z;a.pageNameToElement.set(W,w)}return w};
s7f.prototype.preparePage=function(a,W,w){w&&(a=_.lh(w)||a);if(a!=="watch"){var Z=this.elementPoolPopulator,N=a;N!=Z.targetPage_&&Z.pendingPages_.indexOf(N)>-1&&(Z.targetPage_&&(Z.pendingPages_.unshift(Z.targetPage_),Z.abort()),G$k(Z,N),_.EGe(Z,N))}if((Z=js(this,a))||!_.A(w,_.ba)){Z.isAttached||Z===W||(Z.hidden=!0);if(!(Z.data||a==="watch"&&_.r("swatcheroo_page_pool_dont_provide_filler_data"))){var B;if(a=(B=_.LF("FILLER_DATA",{})[a])==null?void 0:B.response)Z.data=a}return Z}};var uj9=function(a){this.JSC$28327_clientRoot=a;this.playlistHandlerActionMap={"yt-add-to-playlist-command":P8I,"yt-end-playlist-command":XJz,"yt-recover-playlist-command":gpI,"yt-refresh-playlist-command":UnX,"yt-playlist-remove-videos-action":op0};_.ua(_.sn.getInstance(),this.playlistHandlerActionMap,this.JSC$28327_clientRoot);aK0()},CN9;var LL=function(a,W,w){this.apiKey=a;this.endpoint=W;this.confidenceThreshold=w===void 0?.5:w;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=W==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||W==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
W==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||W==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new q5a};
_.t=LL.prototype;
_.t.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&&_.rS("voice_assistant");_.hk("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 W;this.prefetchResponseTimeoutMs=(W=a.prefetchResponseTimeoutMs)!=null?W:this.prefetchResponseTimeoutMs;Gu2(this);this.startAudio();DL0(this)}else this.errorHandler("OFFLINE")};
_.t.stop=function(a){var W=a===void 0?{}:a;a=W.logCancel===void 0?!0:W.logCancel;var w=W.logMicClosed===void 0?!0:W.logMicClosed;var Z=W.handleError===void 0?!0:W.handleError;W=W.handleStop===void 0?!0:W.handleStop;this.state!==0&&(a&&J5("voz_cx"),Fl(this,{logMicClosed:w,handleStop:W}),Z&&this.errorHandler("ABORTED"))};
_.t.getState=function(){return this.state};
_.t.isSupported=function(){return!0};
_.t.stopAudio=function(a){(a===void 0||a)&&J5("voz_mf")};
_.t.startAudio=function(){J5("voz_vp");return _.tk(null)};
var fsI=function(a,W){a.channelOpen&&(a.state!==2&&(a.state=2,J5("voz_ss"),a.listeningHandler()),W=new Uint8Array(W),W='{ "audioIn": "'+_.EI(W)+'" }',a.channel.send(W))},Fl=function(a,W){var w=W===void 0?{}:W;
W=w.logMicClosed===void 0?!0:w.logMicClosed;w=w.handleStop===void 0?!0:w.handleStop;a.vozEndOfDataTimeout>-1&&(clearTimeout(a.vozEndOfDataTimeout),a.vozEndOfDataTimeout=-1);dLz(a);a.stopAudio(W);a.channel&&(a.channelOpen=!1,a.manuallyClosedChannel=!0,a.channel.close(),a.channel=void 0);a.transcribedSpeechResults=[];a.state=0;w&&a.stopHandler()},Gu2=function(a){var W={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 JO(a.endpoint,W);a.channel.open();_.vX(a.channel,"w",function(){var w=a.channel,Z=w.send,N=a.isUsingVoz?"PLACEHOLDER":"example";N={config:{dialogStateIn:{languageCode:a.languageCode},deviceConfig:{deviceId:N,deviceModelId:N},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!a.isUsingVoz)N.config.requestType=4;else if(a.isUsingVoz&&a.youtubeAssistantRequest){var B=JSON.stringify(a.youtubeAssistantRequest);N.config.internalIn={youtubeAssistantS3InputJson:B}}Z.call(w,N);a.channelOpen=!0;a.manuallyClosedChannel=!1});
_.vX(a.channel,"x",function(){a.manuallyClosedChannel||(a.channelOpen=!1,a.channel=void 0,Fl(a))});
_.vX(a.channel,"z",function(w){if(w.data){dLz(a);for(var Z=0;Z<w.data.length;Z++){var N=a,B=w.data[Z],I=B.speechResults;if(I)a:{var X=[];B=[];var v=!1;I=_.l(I);for(var U=I.next();!U.done;U=I.next()){U=U.value;if(U.noSpeech){Fl(N);N.errorHandler("NO_SPEECH");break a}U.transcript!==void 0&&U.stability!==void 0&&(U.stability<N.confidenceThreshold&&(v=!0),v?B.push(U.transcript):X.push(U.transcript))}if(X.length!==0||B.length!==0)X=X.join(" "),B=B.join(" "),N.receivedEndOfUtterance&&!N.isUsingVoz?N.isUsingVoz||
N.completeHandler([X,B]):(v=N,I=X,U=B,J5("voz_sf"),v.transcriptionUpdateHandler(I,U),v.transcribedSpeechResults=[I,U]),N.receivedEndOfUtterance&&(J5("voz_eou"),N.transcriptionCompleteHandler([X,B]),N.isUsingVoz&&(N.prefetchResponseTimeoutMs===0?Fl(N,{logMicClosed:!1,handleStop:!0}):N.prefetchResponseTimeoutMs>0&&mLd(N)))}else N.isUsingVoz&&(B==null?0:B.internalOut)?(B=JSON.parse(B.internalOut.youtubeAssistantS3OutputJson),B.userHasOptedInToVaa||B.vaaConsent?N.vaaConsentUpdateHandler(!!B.userHasOptedInToVaa,
!!B.vaaConsent):(VDD(N),B&&(X=N.transcribedSpeechResults,J5("voz_rqf"),N.completeHandler(X,B)))):B.eventType==="END_OF_UTTERANCE"?N.receivedEndOfUtterance=!0:(J5("voz_err"),N.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.jJ(Error("al")))}}});
_.vX(a.channel,"y",function(w){Fl(a);switch(w.status){case 1:w="WEBCHANNEL_NETWORK_ERROR";break;case 2:w="WEBCHANNEL_SERVER_ERROR";break;default:w="WEBCHANNEL_UNKNOWN_ERROR"}a.errorHandler(w);a.logError(Error(w))})};
LL.prototype.logError=function(a){_.eJ(a)};
LL.prototype.isOnline=function(){return!0};
var mLd=function(a){VDD(a);a.prefetchResponseSetTimeoutId=setTimeout(function(){Fl(a,{logMicClosed:!1,handleStop:!0})},a.prefetchResponseTimeoutMs)},VDD=function(a){a.prefetchResponseSetTimeoutId>-1&&(clearTimeout(a.prefetchResponseSetTimeoutId),a.prefetchResponseSetTimeoutId=-1)},DL0=function(a){dLz(a);
a.noResponseReceivedTimeout=window.setTimeout(function(){Fl(a);a.errorHandler("NO_SPEECH")},11E3)},dLz=function(a){a.noResponseReceivedTimeout>-1&&(window.clearTimeout(a.noResponseReceivedTimeout),a.noResponseReceivedTimeout=-1)},J5=function(a){_.Ak(a,void 0,"voice_assistant")};var Mg=function(){LL.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.c(Mg,LL);Mg.prototype.isSupported=function(){return Ox0()};
Mg.prototype.startAudio=function(){var a=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.od(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(Z){zvd(a,Z)};
this.processor.connect(this.audioContext.destination);var W=function(Z){a.stream=Z;if(!a.audioContext)return _.tk(null);Z=a.audioContext.createMediaStreamSource(Z);a.processor&&Z.connect(a.processor);return _.tk(null)},w={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?W(this.stream):navigator.mediaDevices.getUserMedia(w).then(W).catch(function(Z){Fl(a);Z.name&&Z.name==="NotAllowedError"?a.errorHandler("NO_MICROPHONE_PERMISSION"):(a.errorHandler("AUDIO_ERROR"),a.logError(Z));return _.od(null)});
return LL.prototype.startAudio.call(this)};
Mg.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(W){W.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;LL.prototype.stopAudio.call(this,a)};
Mg.prototype.isOnline=function(){return navigator.onLine};
var zvd=function(a,W){if(a.audioContext)if(window.OfflineAudioContext){var w=a.audioContext.sampleRate,Z=W.inputBuffer.getChannelData(0);W=new window.OfflineAudioContext(1,Z.length,16E3);for(var N=W.createBuffer(1,Z.length,w),B=N.getChannelData(0),I=0,X=0;X<Z.length;X++)B[X]=Z[X],I+=B[X]*B[X];!a.audioDetected&&Math.sqrt(I/Z.length)>.01&&(a.audioDetected=!0,a.audioDetectedHandler());Z=W.createBufferSource();Z.buffer=N;Z.connect(W.destination);Z.start(0);W.oncomplete=function(v){v=v.renderedBuffer.getChannelData(0);
for(var U=Math.floor(16384E3/w),O=new Int16Array(U),S=0;S<U;++S)O[S]=Math.max(-1,Math.min(1,v[S]))*32767;fsI(a,O.buffer)};
W.startRendering()}else H0z(a,W)},H0z=function(a,W){var w=a.audioContext.sampleRate,Z=W.inputBuffer.getChannelData(0),N=Math.floor((w+8E3)/16E3);
w=Z.length/N;W=new Float32Array(w);for(var B=0;B<w;++B)W[B]=Z[B*N];Z=new Int16Array(w);for(N=0;N<w;++N)Z[N]=Math.max(-1,Math.min(1,W[N]))*32767;fsI(a,Z.buffer)};var yp0={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var EZk=function(){this.JSC$17648_audioEnabled=!0;this.audioFeedbackHolder={}};
EZk.prototype.isPlaying=function(a){return a.currentTime>0&&!a.paused&&!a.ended&&a.readyState>2};
var aH0=function(a){for(var W=_.l(Object.values(yp0)),w=W.next();!w.done;w=W.next())w=w.value,a.audioFeedbackHolder[w]=new Audio,a.audioFeedbackHolder[w].src="/s/search/audio/"+w+".mp3",a.audioFeedbackHolder[w].load()},Rp=function(a,W){if(a.JSC$17648_audioEnabled!==!1&&W in a.audioFeedbackHolder){for(var w=_.l(Object.values(a.audioFeedbackHolder)),Z=w.next();!Z.done;Z=w.next())Z=Z.value,a.isPlaying(Z)&&Z.pause();
a.audioFeedbackHolder[W].currentTime=0;a.audioFeedbackHolder[W].play().catch(function(){})}};var W70=function(a,W){var w=this;this.store=a;this.service=W;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){w.setState("offline");w.stop()};
this.audioPlayer=new EZk;var Z;(Z=this.audioPlayer)==null||aH0(Z)};
_.t=W70.prototype;_.t.getService=function(){return this.service};
_.t.isEnabled=function(){return!!this.service};
_.t.isSupported=function(){var a;return(a=this.service)==null?void 0:a.isSupported()};
_.t.start=function(){var a=this,W,w,Z,N,B,I,X,v,U,O,S,T,p;return _.P(function(h){switch(h.nextAddress){case 1:a.store.dispatch(ZjX("",""));if(!navigator.onLine)return a.setState("offline"),h.return();window.addEventListener("offline",a.handleOfflineEvent);a.stream=null;if(!a.permissionsSupported){h.jumpTo(2);break}_.tq(h,3);return _.g(h,wpa(a),5);case 5:W=h.yieldResult;if(!W)return(w=a.audioPlayer)==null||Rp(w,"failure"),h.return();a.service.stream=a.stream;a.setState("listening");_.qY(h,2);break;
case 3:_.Pb(h),a.permissionsSupported=!1;case 2:Z={context:_.KXv(_.z4())},Z.youtubeAssistantParams={searchParams:{inlineSearchResponse:a.enableInlineSearchResponse}},N=function(L,F){a.store.dispatch(NPd("transcribing"));a.store.dispatch(ZjX(L,F))},B=function(){var L;
(L=a.audioPlayer)==null||Rp(L,"open");a.setState("listening")},I=function(){a.setState("transcribing")},X=function(L){a.setErrorState(L)},v=function(L,F){var x;
(x=a.audioPlayer)==null||Rp(x,"success");F&&(_.r("kevlar_voice_search_inline_search")&&(a.responseProcessor=_.K().resolve(_.shv),a.responseProcessor&&(x=F.navigationAction,L=F.prefetchedSearchResponse,x&&L&&(x=(new _.gId).JSC$11824_getStoreKey(x),_.GS(a.responseProcessor,L,x)))),a.JSC$17666_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",F))},U=function(){window.removeEventListener("offline",a.handleOfflineEvent)},O=_.jVD(!1),S=O.Authorization!=null,T=a.enableFirstPartyAuth||
a.enableFPAForSignedInUsers&&S?O:{"X-Goog-Visitor-Id":O["X-Goog-Visitor-Id"]},p={completeHandler:v,
errorHandler:X,listeningHandler:B,audioDetectedHandler:I,stopHandler:U,transcriptionUpdateHandler:N,youtubeAssistantRequest:Z,languageCode:ZgD(),additionalHeaders:T,supportsCrossDomainXhr:a.enableFirstPartyAuth||a.enableFPAForSignedInUsers&&S,supportsHttpHeadersOverwriteParam:!a.disableHttpHeadersOverwrite},a.service.start(p),_.Xd(h)}})};
_.t.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.t.reset=function(){this.store.dispatch(_.E_({type:"RESET_VOICE_SEARCH_STATE"}))};
_.t.setState=function(a){this.store.dispatch(NPd(a))};
_.t.setErrorState=function(a){switch(a){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var W;(W=this.audioPlayer)==null||Rp(W,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)wpa(this);else{var w;(w=this.audioPlayer)==null||Rp(w,"failure");this.setState("permission-denied")}break;case "ABORTED":var Z;(Z=this.audioPlayer)==null||Rp(Z,"no_input");break;default:var N;(N=this.audioPlayer)==
null||Rp(N,"no_input");this.setState("timeout")}};
var wpa=function(a){var W,w;return _.P(function(Z){switch(Z.nextAddress){case 1:return _.g(Z,navigator.permissions.query({name:"microphone"}),2);case 2:W=Z.yieldResult;if(W.state==="granted")return Z.return(!0);if(W.state==="denied")return a.setState("permission-denied"),Z.return(!1);a.setState("permission");w={audio:{sampleSize:16,channelCount:1},video:!1};_.tq(Z,3);return _.g(Z,navigator.mediaDevices.getUserMedia(w),5);case 5:return a.stream=Z.yieldResult,Z.return(!0);case 3:return _.Pb(Z),a.setState("permission-denied"),
Z.return(!1)}})},ZgD=function(){var a=_.LF("INNERTUBE_CONTEXT_HL"),W=_.LF("INNERTUBE_CONTEXT_GL");
return a.indexOf("-")>-1?a:a+"-"+W};var N0n=function(a,W,w){W70.call(this,W,w);this.JSC$17666_actionRouter=a;this.enableInlineSearchResponse=_.r("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.r("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.r("kevlar_voice_search_enable_fpa_signedin_users")},tNk;
_.c(N0n,W70);
var $va=function(){if(!tNk){var a="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.r("kevlar_voice_search_auth_enabled")||_.r("kevlar_voice_search_use_yt_endpoint")?a="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.r("kevlar_voice_search_use_fp_endpoint")&&(a="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");tNk=
new N0n(_.sn.getInstance(),_.Cx(),new Mg(_.LF("VOZ_API_KEY"),a,.5))}return tNk};var B0k=function(a){this.JSC$17670_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$17670_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=_.l(this.eventListeners);for(var W=a.next();!W.done;W=a.next()){var w=_.l(W.value);W=w.next().value;w=w.next().value;w=_.l(w);for(var Z=w.next();!Z.done;Z=w.next()){var N=
_.l(Z.value);Z=N.next().value;N=N.next().value;W.addEventListener(Z,N)}}_.ua(_.sn.getInstance(),this.autonavPauseActionMap,this.JSC$17670_clientRoot)},lHX,IHz=function(a){return _.r("kevlar_autonav_popup_filtering")?(a=_.QV(a))?a.hasAttribute("prevent-autonav"):!0:!0};
_.t=B0k.prototype;_.t.onIronOverlayOpened=function(a){IHz(a)&&(this.autonavPauseReasons.overlayOpen=!0,qg(this))};
_.t.onIronOverlayClosed=function(a){IHz(a)&&(this.autonavPauseReasons.overlayOpen=!1,qg(this))};
_.t.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;qg(this)};
_.t.onYtAutonavPauseBlur=function(){var a=this;_.hF.addJob(function(){a.isInBackground()||(a.autonavPauseReasons.inputBoxFocus=!1,qg(a))},8,0)};
_.t.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;qg(this)};
_.t.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;qg(this)};
_.t.onYtAutonavPauseScroll=function(){var a=_.K().resolve(_.Gw);a.isOnWatch()&&(a=a.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=a.getBoundingClientRect().top<-200,qg(this))};
_.t.onYtAutonavPauseUserEngagement=function(a){var W=this;if(_.r("user_engagement_enable_autoplay_pause_feature")){var w=Number(a.lowEngagementThresholdMs);isNaN(w)||w<=0||a.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.fc("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.K().resolve(_.Y_),_.HI()<w?_.TP(_.hF,function(){_.fc("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.NoE()?(this.userEngagementCsn=_.nS(),_.TP(_.hF,function(){_.fc("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
W.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,qg(this)):_.fc("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.QdU(Error("bl`"+JSON.stringify(a)))};
_.t.onYtAutonavPausePlayer=function(a){this.autonavPauseReasons.requestedByPlayer=!!a.detail;qg(this)};
_.t.onYtAutonavVisibilityChanged=function(){var a=this,W,w,Z;return _.P(function(N){if(N.nextAddress==1)return(W=_.fA())?_.g(N,W.getPlayerPromise(),2):N.return();w=N.yieldResult;Z=w.isMuted()||w.getVolume()===0;a.autonavPauseReasons.backgroundAndMute=a.isInBackground()&&Z;qg(a);_.Xd(N)})};
_.t.onYtAutonavPausePlayerEnded=function(){_.K().resolve(_.Y_);var a=144E5;_.r("user_engagement_enable_autoplay_pause_feature")||_.r("is_part_of_any_user_engagement_experiment")||(a=45E5);this.autonavPauseReasons.longIdle=_.HI()>a;Pj0(this);qg(this)};
_.t.onYtUserActivity=function(){var a=this;this.autonavPauseReasons.userEngagement&&(_.TP(_.hF,function(){_.fc("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",a.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,qg(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.TP(_.hF,function(){_.fc("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",a.userEngagementCsn);_.cZ()}),this.autonavPauseReasons.youthereLactExperiment=!1,qg(this));
this.autonavPauseReasons.longIdle&&!_.r("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,qg(this))};
_.t.isInBackground=function(){var a=window.document.visibilityState;return!(!a||a==="visible")};
var qg=function(a){for(var W=!1,w=_.l(Object.values(a.autonavPauseReasons)),Z=w.next();!Z.done;Z=w.next())Z=Z.value,W=W||Z;W?_.mF.getInstance().pause(a.autonavPauseReasons):(a=_.mF.getInstance(),a.autonavState_==3?(a.setState(2,!1,!1),a.autonavPauseReason_=void 0):a.autonavState_==1&&(a.disabledAutonavPauseReason_=void 0))},Pj0=function(a){var W=!1;
if(_.r("enable_autoplay_pause_by_lact")){_.K().resolve(_.Y_);W=_.yv("autoplay_pause_by_lact_sec")*1E3;var w=_.yv("autoplay_pause_by_lact_sampling_fraction");(W=_.HI()>=W&&Math.random()<w)&&!_.NoE()&&(_.TP(_.hF,function(){_.fc("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),W=!1)}W!==a.autonavPauseReasons.youthereLactExperiment&&(a.autonavPauseReasons.youthereLactExperiment=W)&&(a.userEngagementCsn=_.nS(),_.TP(_.hF,function(){_.fc("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",a.userEngagementCsn)}));
a.autonavPauseReasons.userEngagement&&_.TP(_.hF,function(){_.fc("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",a.userEngagementCsn)})};
B0k.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.fc("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.cZ(),this.autonavPauseReasons.youthereLactExperiment=!1,qg(this));this.autonavPauseReasons.userEngagement&&(_.fc("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,qg(this))};
B0k.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Qh=function(){var a=_.u.apply(this,arguments)||this;a.miniGuideVisible=!1;a.guideOpened=_.r("disable_initial_guide_state_fix")?!1:a.canFitPersistentGuide(a.initialBodyClientWidth);a.guideUserStateOpened=a.getInitialGuideUserStateOpened();a.isFullscreenShorts=!1;a.miniGuideWidthThreshold=_.yv("kevlar_mini_guide_width_threshold",791);a.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");a.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
a.persistentGuideBlockedPagePathRegex=new RegExp(a.persistentGuideBlockedPagesPatterns.join("|"));a.animationTransitionDuration=0;a.lateDataResolver=_.Rt();a.initialGuideDataFetchFailed=!1;a.initialLoad=!0;a.guideRenderers=new Set;a.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return a};
_.c(Qh,_.u);_.t=Qh.prototype;_.t.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.t.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.t.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.t.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.t.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.t.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.t.ready=function(){_.K().addProvider({provide:_.Je,useValue:this.hostElement})};
_.t.attached=function(){var a=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.yV(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.yV(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.yV(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.yV(this,this.onYtGuideShow));_.DW(this,function(){a.animationTransitionDuration=200})};
_.t.detached=function(){document.removeEventListener("yt-navigate-finish",_.yV(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.yV(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.yV(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.yV(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.yV(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.yV(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.yV(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.t.getData=function(){return this.data};
_.t.load=function(){var a=this,W,w,Z,N;return _.P(function(B){switch(B.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=a.lateDataResolver.resolve.bind(a),B.return(a.lateDataResolver.promise);if(window.ytInitialGuideData)return W=_.Rt(),W.resolve(window.ytInitialGuideData),B.return(W.promise);Z=!1;_.tq(B,2);return _.g(B,a.fetchGuideData(),4);case 4:w=B.yieldResult;_.qY(B,3);break;case 2:N=_.Pb(B),N.message==="Returned error"&&(Z=!0);
case 3:if(w)return B.return(w);a.onYtGuideClose();Z||(a.initialGuideDataFetchFailed=!0);return B.return(a.lateDataResolver.promise)}})};
_.t.fetchGuideData=function(){var a=this,W,w,Z,N,B,I,X;return _.P(function(v){if(v.nextAddress==1)return W=_.K(),a.guidePromise||(w=W.resolve(_.O6),a.guidePromise=_.MX(w,k$0)),_.g(v,a.guidePromise,2);if(v.nextAddress!=3)return Z=v.yieldResult,N=W.resolve(_.bI),_.g(v,N(),3);(B=v.yieldResult)&&((I=Z)==null?void 0:(X=I.responseContext)==null?void 0:X.maxAgeSeconds)!==0&&B.put("service:guide:fallback",new _.wy({innertubeResponse:Z}));return v.return(Z)})};
_.t.initializeGuideDataIfEmpty=function(){var a=this,W,w;return _.P(function(Z){if(Z.nextAddress==1){if(!a.initialGuideDataFetchFailed||a.data)return Z.return();_.tq(Z,2);return _.g(Z,a.fetchGuideData(),4)}if(Z.nextAddress!=2)return(W=Z.yieldResult)&&a.lateDataResolver.resolve(W),_.qY(Z,0);w=_.Pb(Z);_.jJ(w);_.Xd(Z)})};
_.t.initializeGuideData=function(){var a=this,W;return _.P(function(w){switch(w.nextAddress){case 1:return _.kX(bJk(),{mainAppWeb:_.J7()}),_.tq(w,2),_.g(w,a.load(),4);case 4:a.data=w.yieldResult;_.qY(w,3);break;case 2:_.Pb(w),_.U9(bJk(),"FAILURE");case 3:W=a.data&&a.data.items&&a.data.items.length>0?"SUCCESS":"FAILURE",_.U9(bJk(),W),_.Xd(w)}})};
_.t.setGuideData=function(a){var W=this,w,Z;return _.P(function(N){if(N.nextAddress==1)return W.disabled?N.return():W.data?(a.data=W.data,W.guideRenderers.add(a),N.return()):_.g(N,W.initializeGuideData(),2);W.graftGuideToPage();w=_.JS("IS_HOMEPAGE_COLD")?"eop":void 0;_.r("disable_element_pool_populator")?W.setGuideDataAfterInit(a):(Z=new _.GR(1,w),_.Dh(Z,W.setGuideDataAfterInit.bind(W,a)));_.Xd(N)})};
_.t.setGuideDataAfterInit=function(a){a.data=this.data;a.markDirty();this.guideRenderers.add(a);_.cA(function(){_.Ak("gle")});
_.DW(this,function(){_.Ak("gpe")})};
_.t.graftGuideToPage=function(){if(this.data){var a=this.data&&this.data.trackingParams;a&&(a=_.PX(a),_.$V(_.$J(),a))}};
_.t.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.yV(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.t.onDrawerOpenedChanged=function(a,W){!W.value&&this.guideOpened&&(this.guideOpened=!1)};
_.t.onYtGuideToggle=function(a){var W=this.guideOpened;this.guideOpened=!W;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var w=_.gS();_.oV(0,109,!this.guideUserStateOpened);w.save()}this.updateGuideDrawerElementState();if(this.guideElement){var Z;this.guideOpened&&((Z=a.detail)==null?0:Z.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.yV(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.yV(this,
this.onAppDrawerTransitioned))}W||this.initializeGuideDataIfEmpty()};
_.t.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.yV(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.CJ(this.guideElement)};
_.t.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.yV(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(W5a(this.guideOpened))};
_.t.guidePersistentAndVisibleChanged=function(){_.W_(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.t.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.E_({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.t.miniGuideVisibleChanged=function(){_.W_(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.t.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(W5a(this.guideOpened)),this.initialLoad=!1);_.W_(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.t.activeEndpointChanged=function(){_.W_(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.t.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.t.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()};
_.t.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()};
_.t.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.t.getGuideOpened=function(){return this.guideOpened};
_.t.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.t.getActiveEndpoint=function(){return this.activeEndpoint};
_.t.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.t.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&&_.E$(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.t.computeGuidePersistentAndVisible=function(){var a=this;_.eK(this,"computeGuidePersistentAndVisible",function(){a.guidePersistentAndVisible=a.guideOpened&&a.guidePersistent;a.guideIsVisibleButNotPersistent=!(!a.guideOpened||a.guidePersistent)})};
_.t.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.t.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.t.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.t.startLoadingWatch=function(){this.closeGuide()};
_.t.startLoadingShorts=function(){_.r("web_hide_guide_on_shorts")&&this.closeGuide()};
_.t.onYtNavigateFinish=function(a,W){if(!_.lB||W){this.activeEndpoint=W.endpoint;this.pageType=W.pageType;this.pageUrl=W.response.url;var w,Z;a=(Z=_.A((w=W.endpoint)==null?void 0:w.commandMetadata,_.mm))==null?void 0:Z.url;!this.pageUrl&&a&&(this.pageUrl=a);_.r("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.t.getVisibleGuideRenderer=function(){for(var a=_.l(this.guideRenderers),W=a.next();!W.done;W=a.next())if(W=W.value,this.miniGuideVisible&&W.is==="ytd-mini-guide-renderer"||this.guideOpened&&W.is==="ytd-guide-renderer")return W;return null};
_.t.markGuideRendererDirty=function(a){if(a){typeof a.markDirty==="function"&&a.markDirty();a=_.l([].concat(_.K8(_.M(a).children)));for(var W=a.next();!W.done;W=a.next())this.markGuideRendererDirty(W.value)}};
_.t.persistentGuideEnabled=function(a,W){if(!W||a==="watch"||a==="settings"||a==="shorts"&&this.isFullscreenShorts||_.r("reels_web_disable_persistent_guide_shorts")&&a==="shorts")return!1;var w=_.tw(W)||"";return _.r("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(Z){return w===Z}):!this.persistentGuideBlockedPagePathRegex.test(w)};
_.t.canFitPersistentGuide=function(a){var W=_.yv("kevlar_persistent_guide_width_threshold",1312);return W===-1||_.r("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:a>W};
_.t.canFitMiniGuide=function(a){return this.miniGuideWidthThreshold===-1?!1:a>this.miniGuideWidthThreshold};
_.t.onResize=function(){var a=this;_.eK(this,"calculateGuideState",function(){a.onResizeDebounced()})};
_.t.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.t.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.t.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.t.getInitialGuideUserStateOpened=function(){return!_.gS().getFlag(109)};
_.dU.Object.defineProperties(Qh.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.LF("initialBodyClientWidth")||window.innerWidth}}});
Qh.prototype.onResize=Qh.prototype.onResize;Qh.prototype.observeForMiniGuideVisible=Qh.prototype.observeForMiniGuideVisible;Qh.prototype.computeGuidePersistentAndVisible=Qh.prototype.computeGuidePersistentAndVisible;Qh.prototype.cachedClientWidthChanged=Qh.prototype.cachedClientWidthChanged;Qh.prototype.resetGuide=Qh.prototype.resetGuide;Qh.prototype.activeEndpointChanged=Qh.prototype.activeEndpointChanged;Qh.prototype.guideOpenedChanged=Qh.prototype.guideOpenedChanged;
Qh.prototype.miniGuideVisibleChanged=Qh.prototype.miniGuideVisibleChanged;Qh.prototype.guideIsVisibleButNotPersistentChanged=Qh.prototype.guideIsVisibleButNotPersistentChanged;Qh.prototype.guidePersistentAndVisibleChanged=Qh.prototype.guidePersistentAndVisibleChanged;Qh.prototype.onGuideElementChanged=Qh.prototype.onGuideElementChanged;Qh.prototype.onGuidePersistentChanged=Qh.prototype.onGuidePersistentChanged;Qh.prototype.onRenderGuideChanged=Qh.prototype.onRenderGuideChanged;
Qh.prototype.onActiveEndpointChanged=Qh.prototype.onActiveEndpointChanged;Qh.prototype.onMiniGuideVisibleChanged=Qh.prototype.onMiniGuideVisibleChanged;Qh.prototype.onGuideIsVisibleButNotPersistentChanged=Qh.prototype.onGuideIsVisibleButNotPersistentChanged;Qh.prototype.onGuidePersistendAndVisibleChanged=Qh.prototype.onGuidePersistendAndVisibleChanged;_.f([_.R(_.eG),_.z("design:type",Object)],Qh.prototype,"ironResizableBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Qh.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Qh.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Qh.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Qh.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],Qh.prototype,"disabled",void 0);
_.f([_.b(),_.z("design:type",Boolean)],Qh.prototype,"guidePersistentAndVisible",void 0);_.f([_.a5("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"onGuidePersistendAndVisibleChanged",null);_.f([_.b(),_.z("design:type",Boolean)],Qh.prototype,"guideIsVisibleButNotPersistent",void 0);
_.f([_.a5("guideIsVisibleButNotPersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.f([_.b(),_.z("design:type",Object)],Qh.prototype,"miniGuideVisible",void 0);_.f([_.a5("miniGuideVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"onMiniGuideVisibleChanged",null);_.f([_.b(),_.z("design:type",Boolean)],Qh.prototype,"forceMiniGuideClose",void 0);
_.f([_.b(),_.z("design:type",Object)],Qh.prototype,"activeEndpoint",void 0);_.f([_.a5("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"onActiveEndpointChanged",null);_.f([_.b(),_.z("design:type",Boolean)],Qh.prototype,"renderGuide",void 0);_.f([_.a5("renderGuide"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"onRenderGuideChanged",null);
_.f([_.b(),_.z("design:type",Object)],Qh.prototype,"guideOpened",void 0);_.f([_.b(),_.z("design:type",Boolean)],Qh.prototype,"guidePersistent",void 0);_.f([_.a5("guidePersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"onGuidePersistentChanged",null);_.f([_.b(),_.z("design:type",Object)],Qh.prototype,"guideUserStateOpened",void 0);_.f([_.b(),_.z("design:type",String)],Qh.prototype,"pageUrl",void 0);
_.f([_.b(),_.z("design:type",String)],Qh.prototype,"pageType",void 0);_.f([_.b(),_.z("design:type",Number)],Qh.prototype,"cachedClientWidth",void 0);_.f([_.b(),_.z("design:type",Object)],Qh.prototype,"guideElement",void 0);_.f([_.b({selector:_.oa}),_.z("design:type",Object)],Qh.prototype,"isFullscreenShorts",void 0);_.f([_.a5("guideElement"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"onGuideElementChanged",null);
_.f([_.a5("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"guidePersistentAndVisibleChanged",null);_.f([_.lO("guideIsVisibleButNotPersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.f([_.a5("miniGuideVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"miniGuideVisibleChanged",null);_.f([_.lO("guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"guideOpenedChanged",null);_.f([_.a5("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"activeEndpointChanged",null);
_.f([_.lO("pageUrl"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"resetGuide",null);_.f([_.lO("cachedClientWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"cachedClientWidthChanged",null);_.f([_.a5("guideOpened","guidePersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"computeGuidePersistentAndVisible",null);
_.f([_.lO("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"observeForMiniGuideVisible",null);_.f([_.E6("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"onResize",null);Qh=_.f([_.C({disableElementRegistration:!0,is:"yt-guide-manager"})],Qh);var XpX=_.D(Qh,"yt-guide-manager",void 0,{mode:_.Vn("kevlar_poly_si_batch_j081")?1:2});var xu=function(){var a=_.u.apply(this,arguments)||this;a.JSC$17680_keyboardInUse=!1;a.boundHandleCapturedKeydownEvent=function(W){a.handleCapturedKeydownEvent(W)};
return a};
_.c(xu,_.u);_.t=xu.prototype;_.t.attached=function(){this.listenToDocument(document)};
_.t.listenToDocument=function(a){a.addEventListener("keydown",_.yV(this,this.onKeyDownEvent));a.addEventListener("keyup",_.yV(this,this.onKeyUpEvent));a.addEventListener("mousedown",_.yV(this,this.onMouseDownEvent));_.r("desktop_keyboard_capture_keydown_killswitch")||a.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);a.addEventListener("yt-page-data-updated",_.yV(this,this.onPageUpdate))};
_.t.detached=function(){this.unlistenFromDocument(document)};
_.t.unlistenFromDocument=function(a){a.removeEventListener("keydown",_.yV(this,this.onKeyDownEvent));a.removeEventListener("keyup",_.yV(this,this.onKeyUpEvent));a.removeEventListener("mousedown",_.yV(this,this.onMouseDownEvent));_.r("desktop_keyboard_capture_keydown_killswitch")||a.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);a.removeEventListener("yt-page-data-updated",_.yV(this,this.onPageUpdate))};
_.t.ready=function(){_.K().addProvider({provide:_.S4,useValue:this})};
_.t.isKeyBoardInUse=function(){return this.JSC$17680_keyboardInUse};
_.t.handleCapturedKeydownEvent=function(a){if(a.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(a)};
_.t.onMouseDownEvent=function(){this.JSC$17680_keyboardInUse=!1};
_.t.onPageUpdate=function(){if(_.r("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.r("web_shorts_keyboard_shortcut_usage_log")){_.H8.clear();for(var a=_.l(_.Vi),W=a.next();!W.done;W=a.next()){var w=_.l(W.value);W=w.next().value;w=w.next().value;w=_.Ob(w);_.H8.set(W,w);_.M1(_.nS(),_.eH(),w)}_.yi.clear();a=_.l(_.zt);for(W=a.next();!W.done;W=a.next())w=_.l(W.value),W=w.next().value,w=w.next().value,w=_.Ob(w),_.yi.set(W,w),_.M1(_.nS(),_.eH(),w);_.RV(_.nS(),_.eH(),[].concat(_.K8(_.yi.values()),
_.K8(_.H8.values())));_.Qw(_.nS(),[].concat(_.K8(_.yi.values()),_.K8(_.H8.values())))}};
_.t.onMiniplayerActiveChange=function(){var a;(a=_.K().resolve(_.bV).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(a.document):this.unlistenFromDocument(a.document))};
_.t.ignoreKeyEvent=function(a){if(a.ctrlKey||a.altKey)if(_.r("kevlar_macro_markers_keyboard_shortcut")){if(a.keyCode!==37&&a.keyCode!==39)return!0}else return!0;var W=_.qj(a)||[];return _.BoK(W)?!0:a.defaultPrevented?(Pc(a.keyCode,a.shiftKey,this.isShortsPage),!0):a.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(a):!1};
_.t.isSpacebarClick=function(a){var W=a||window.event;var w;W.composedPath&&typeof W.composedPath==="function"?w=W.composedPath():w=W.path;w&&w.length?W=w[0]:(W=W||window.event,W=W.target||W.srcElement,W.nodeType==3&&(W=W.parentNode));return W&&a.keyCode===32&&(a=W.tagName==="BUTTON"||W.tagName==="A"||W.tagName==="INPUT",W=(W=W.getAttribute("role"))&&(W==="option"||W==="button"||W.indexOf("menuitem")===0),a||W)?!0:!1};
_.t.onKeyDownEvent=function(a){if(!this.ignoreKeyEvent(a)&&(a.keyCode===191&&(a.shiftKey||a.metaKey?a.repeat!=null&&a.repeat||(this.openHotkeyDialog(),Pc(a.keyCode,a.shiftKey,this.isShortsPage)):(this.focusSearchBox(),a.preventDefault())),!a.metaKey)){var W=_.K().resolve(_.bV);switch(a.keyCode){case 9:this.JSC$17680_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(a);break;case 84:W.pipController.getWindow()&&window.focus();this.toggleTheaterMode(a.keyCode,a.shiftKey);break;case 73:W.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(a.keyCode,a.shiftKey);break;case 70:if(this.isShortsPage&&_.r("web_fullscreen_shorts")){_.IVI();break}this.isMiniplayerActive()?W.pipController.getWindow()&&(W.close(!0),window.focus()):this.passEventToPlayer(a);break;case 27:this.closeMiniplayer(a.keyCode,a.shiftKey)||this.passEventToPlayer(a);break;case 13:a.shiftKey&&_.r("web_ephemeral_actions")&&_.K().resolve(_.BC).activate(a);break;default:this.passEventToPlayer(a)}}};
_.t.onKeyUpEvent=function(a){if(!this.ignoreKeyEvent(a))if(_.r("web_speedmaster_spacebar_control")&&a.keyCode===32)this.handlePlayerSpaceKey(a,!0);else{var W=this.getPlayerManager();W&&(W=W.getPlayer())&&W.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}};
_.t.getPlayerManager=function(){var a=_.fA(),W=_.K().resolve(_.Vv(_.Gw));return a&&W&&W.isOnWatch()?a:null};
_.t.passEventToPlayer=function(a,W){var w=this,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return!_.r("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&w.isMiniplayerActive()?Z=_.K().resolve(_.bV).getPlayerElement():w.inlinePreviewIsActive?(N=_.W_(w.hostElement,"yt-get-inline-preview-player-action"))&&N[0]&&(Z=N[0]):Z=_.fA(),Z?_.g(I,Z.getPlayerPromise(),3):I.jumpTo(0);B=I.yieldResult;W?B.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat):B.handleGlobalKeyDown(a.keyCode,
a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat);a.keyCode!==38&&a.keyCode!==40&&Pc(a.keyCode,a.shiftKey,w.isShortsPage);_.Xd(I)})};
_.t.focusSearchBox=function(){_.E$(this.hostElement,"yt-focus-searchbox")};
_.t.openHotkeyDialog=function(){_.E$(this.hostElement,"yt-open-hotkey-dialog")};
_.t.isMiniplayerActive=function(){return _.K().resolve(_.bV).isMiniplayerActive()};
_.t.closeMiniplayer=function(a,W){return this.isMiniplayerActive()?(_.K().resolve(_.bV).close(),Pc(a,W,this.isShortsPage),!0):!1};
_.t.toggleTheaterMode=function(a,W){var w=_.A$(_.Cx().getState()),Z=this.getPlayerManager(),N=_.r("disable_theater_mode_keyboard")||_.JS("START_IN_FULL_WINDOW_MODE");Z&&!N&&(w=!w,_.V3()&&_.r("external_fullscreen")&&(w=!0),_.aV(this.hostElement,"yt-toggle-theater-mode",[w]),Pc(a,W,this.isShortsPage))};
_.t.toggleMiniplayer=function(a,W){var w=this.getPlayerManager();if(this.isMiniplayerActive()){var Z;((Z=_.K().resolve(_.Vv(_.Gw)))==null?0:Z.isOnWatch())?_.K().resolve(_.bV).close(!0):_.UG(_.K().resolve(_.bV));Pc(a,W,this.isShortsPage)}else w&&(_.aV(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Pc(a,W,this.isShortsPage))};
_.t.handlePlayerSpaceKey=function(a,W){var w=!!_.fA()||this.isMiniplayerActive();w=_.r("disable_space_scroll_fix")||w;_.r("global_spacebar_pause")&&!this.isKeyBoardInUse()&&w&&(a.preventDefault(),this.passEventToPlayer(a,W))};
xu.prototype.onMiniplayerActiveChange=xu.prototype.onMiniplayerActiveChange;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],xu.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],xu.prototype,"ytdReduxBehavior",void 0);_.f([_.b({selector:_.ji9}),_.z("design:type",Boolean)],xu.prototype,"inlinePreviewIsActive",void 0);_.f([_.b({selector:_.t6E}),_.z("design:type",Boolean)],xu.prototype,"isShortsPage",void 0);
_.f([_.b({selector:_.hG}),_.z("design:type",Boolean)],xu.prototype,"miniplayerIsActive",void 0);_.f([_.a5("miniplayerIsActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xu.prototype,"onMiniplayerActiveChange",null);xu=_.f([_.C({disableElementRegistration:!0,is:"yt-hotkey-manager"})],xu);_.D(xu,"yt-hotkey-manager",void 0,{mode:_.Vn("kevlar_poly_si_batch_j081")?1:2});var b2=function(){var a=_.u.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};
_.c(b2,_.u);_.t=b2.prototype;_.t.ready=function(){_.K().addProvider({provide:_.LB,useValue:this.hostElement})};
_.t.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_)};
_.t.attached=function(){document.addEventListener("yt-navigate-start",_.yV(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.yV(this,this.onYtNavigateFinish_))};
_.t.detached=function(){document.removeEventListener("yt-navigate-start",_.yV(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.yV(this,this.onYtNavigateFinish_))};
_.t.updatePlaylistEventListeners=function(a,W){W&&!this.playerListenersSetup_?(this.playerManager_=a,this.registerPlaylistEventListeners_(a)):!W&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(a))};
_.t.setPlayer=function(a){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=a};
_.t.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.t.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.t.registerPlaylistEventListeners_=function(a){var W=this;a.getPlayerPromise().then(function(w){W.playerListenersSetup_||(W.ytPlayerListenerBehavior.listenToPlayerEvents(w,W.PLAYER_EVENTS_),W.playerListenersSetup_=!0)})};
_.t.removePlaylistEventListeners_=function(a){var W=this;a.getPlayerPromise().then(function(w){W.playerListenersSetup_&&(W.ytPlayerListenerBehavior.unlistenFromPlayerEvents(w,W.PLAYER_EVENTS_),W.playerListenersSetup_=!1)})};
_.t.setPlaylistComponent=function(a){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.yV(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",
_.yV(this,this.onPlaylistYtNavigate_))};
_.t.setAutoplayRenderer=function(a){this.autoplayData=a};
_.t.setPlaylistData=function(a){this.currentPlaylistData_=a;_.E$(this.hostElement,"yt-playlist-data-updated");_.T5.isEmpty(a)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(a)};
_.t.setPlayerPlaybackControlData=function(a){this.playerManager_&&this.playerManager_.updatePlayerComponents(a.playlistPanelRenderer)};
_.t.getPlaylistData=function(){return this.currentPlaylistData_};
_.t.getTempData_=function(a,W){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);W&&(a.autonav="1",_.K().resolve(_.Y_),W=_.HI(),W>0&&(a.lact=W),this.playerManager_&&(W=this.playerManager_.getPlayer())&&W.shouldSendVisibilityState()&&(W=W.getVisibilityState(),W!=0&&(a.vis=W)));_.r("enable_unknown_lact_fix_on_html5")&&(_.K().resolve(_.Y_),a.lact=_.HI());
return a};
_.t.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.t.setLoopStateEntityKey_=function(a){var W;this.loopStateEntityKey_=((W=this.getPlaylistLoopData_(a))==null?void 0:W.playlistLoopStateEntityKey)||null};
_.t.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.t.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.t.skipVideo=function(){var a=this,W=_.r("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||W)W=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.OB(_.hF,function(){a.onPlaylistNext();a.videoSkipJob_=0},W)};
_.t.cancelVideoSkip=function(){this.videoSkipJob_&&(_.hF.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.t.isInBackground_=function(){var a=window.document.visibilityState;return!(!a||a=="visible")};
_.t.onPlaylistIndex_=function(a){this.playlistComponent&&(a=this.playlistComponent.data.contents[a].playlistPanelVideoRenderer.navigationEndpoint,_.E$(this.hostElement,"yt-navigate",{endpoint:a,tempData:this.getTempData_(a)}))};
_.t.onPlayerStateChange_=function(a){if(a=a==0&&this.playlistComponent&&this.canAutoAdvance_)a=_.mF.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)};
_.t.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.t.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.t.navigateToAutoplayWatchEndpoint_=function(a,W,w){var Z=this.playlistComponent.data.currentIndex,N=this.getNumPlayableVideos_();a=="NORMAL"&&W=="autoplayVideo"&&Z+1>=N&&w||!(a=this.getVideoEndpoint_(a,W))||(w=this.getTempData_(a,w),_.E$(this.hostElement,"yt-navigate",{endpoint:a,tempData:w}))};
_.t.getNumPlayableVideos_=function(){for(var a=0,W=_.l(this.playlistComponent.data.contents||[]),w=W.next();!w.done;w=W.next())w.value.playlistPanelVideoRenderer&&(a+=1);return a};
_.t.getVideoEndpoint_=function(a,W){if(this.autoplayData&&this.autoplayData.sets)for(var w=0,Z=this.autoplayData.sets.length;w<Z;w++){var N=this.autoplayData.sets[w];if(N.mode==a){if(N[W])return N[W];break}}else a=new _.Uw("AutoplayData is undefined in playlist manager","Mode: "+a+" endpoint: "+W),_.jJ(a)};
_.t.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.t.onPlaylistYtNavigate_=function(a){if(a.detail.endpoint){a.stopPropagation();var W=a.detail;W.tempData=this.getTempData_(a.detail.endpoint);_.E$(this.hostElement,"yt-navigate",W)}};
_.t.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.t.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.t.playlistLoopStateEntityChanged_=function(a){var W=this,w,Z,N;return _.P(function(B){if(B.nextAddress==1){if(!a)return B.return();w=a.state==="PLAYLIST_LOOP_STATE_ONE";return W.playerManager_?_.g(B,W.playerManager_.getPlayerPromise(),3):B.jumpTo(2)}B.nextAddress!=2&&(Z=B.yieldResult,Z.setLoopVideo(w));N=a.state==="PLAYLIST_LOOP_STATE_ALL";W.playlistComponent&&(W.playlistComponent.loopOn=N);_.Xd(B)})};
_.t.getPlaylistLoopData_=function(a){var W,w;if(a=a==null?void 0:(W=a.playlistButtons)==null?void 0:(w=W.menuRenderer)==null?void 0:w.topLevelButtons)for(W=_.l(a),w=W.next();!w.done;w=W.next())if(w=w.value,w.playlistLoopButtonRenderer)return w.playlistLoopButtonRenderer};
_.t.getLoopStateCommand_=function(a){var W=this.getPlaylistData(),w;W=((w=this.getPlaylistLoopData_(W))==null?void 0:w.states)||[];var Z;a=(Z=_.A(W[a?1:2],_.rdT))==null?void 0:Z.button;var N;return(N=_.A(a,_.J4))==null?void 0:N.command};
_.t.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)};
_.t.onSleepTimerSettingsChanged_=function(a){this.canAutoAdvance_=a!=="End of video"};
b2.prototype.onPlaylistLoopStateEntityChanged=b2.prototype.onPlaylistLoopStateEntityChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],b2.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],b2.prototype,"ytPlayerListenerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],b2.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],b2.prototype,"loopStateEntityKey_",void 0);
_.f([_.b({selectorArgs:["loopStateEntityKey_"],selector:_.DfU}),_.z("design:type",Object)],b2.prototype,"playlistLoopStateEntity_",void 0);_.f([_.a5("playlistLoopStateEntity_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],b2.prototype,"onPlaylistLoopStateEntityChanged",null);b2=_.f([_.C({disableElementRegistration:!0,is:"yt-playlist-manager"})],b2);_.D(b2,"yt-playlist-manager",void 0,{mode:_.Vn("kevlar_poly_si_batch_j081")?1:2});var v49,g4k=function(){if(v49!==void 0)return v49;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return v49=a};var se=function(){var a=_.u.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};
_.c(se,_.u);_.t=se.prototype;_.t.getLocation=function(){return window.location.href};
_.t.getCompletionUrl=function(){return _.DG(this.getLocation())};
_.t.containsRedirectState=function(a){return(a=_.ea(_.API(a)))?(new URLSearchParams(a)).get("redirect_state")!==null:!1};
_.t.createGalConfig=function(a,W){var w=new p6D;a=w=W?this.getPopupOrRedirectSetting(w,_.LF("LINK_API_KEY"),_.LF("LINK_API_KEY_REDIRECT"),a):ryE(w,_.LF("LINK_API_KEY"));a.authUser=_.LF("SESSION_INDEX")||0;a.supportedFlows=new Set([4]);return a.build()};
_.t.getPopupOrRedirectSetting=function(a,W,w,Z){this.isGalInteractionPopupMode(Z)?(a.interactionMode=0,a=ryE(a,W)):(a.interactionMode=1,W=this.getCompletionUrl(),a.completionUrl=W,a=ryE(a,w));return a};
_.t.isGalInteractionPopupMode=function(a){if(this.redirectModeProviderAllowlist.has(a))switch(a){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.r("main_web_redirect_integration_riot");default:return!1}return!0};
_.t.getStatusEntityKeyForProviderId=function(a){return _.Nn(a+":all","accountLinkStatusEntity")};
_.t.findNestedPropValue=function(a,W){var w=!1,Z=null;JSON.stringify(a,function(N,B){w||N!==W||(w=!0,Z=B);return w?null:B});
return Z};
_.t.findAccountLinkButtonViewModel=function(a,W){var w=null,Z=!1;JSON.stringify(a,function(N,B){Z||B.accountLinkStatusEntityKey!==W||B.accountLinkStatusSecondaryEntityKey||(Z=!0,w=B);return Z?null:B});
return w};
_.t.executeLinkingSuccessOrFailureCommands=function(a,W,w){var Z=null,N;(W==null?0:(N=W.url)==null?0:N.includes("account_sharing"))?Z=W==null?void 0:W.response:Z=W==null?void 0:W.response;(W=this.findAccountLinkButtonViewModel(Z,a))?(a=w?this.findNestedPropValue(W,"onSuccessCommand"):this.findNestedPropValue(W,"onFailureCommand"))?_.B_([a],this.hostElement):_.qx(Error("cl")):_.qx(Error("dl`"+a))};
_.t.handleInitializeRequest=function(a,W){var w=this,Z=tHX(this.createGalConfig(a,!0));this.containsRedirectState(this.getLocation())?fWD(a,Z.config,Z.galService).then(function(N){var B=w.getStatusEntityKeyForProviderId(a);if(N.statusCode===1)W&&w.executeLinkingSuccessOrFailureCommands(B,W,!0),N=w.getLocation().indexOf("#"),N!==-1&&window.history.pushState(null,"",w.getLocation().substring(0,N));else return W&&w.executeLinkingSuccessOrFailureCommands(B,W,!1),Promise.reject(Error(N.statusMessage))}).catch(function(N){_.jJ(N);
_.ia("gamingAccountLinkStatusChanged",{serviceId:a,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(N)}):this.getAccountLinkPromises[a]=Z.startLinkingSession({serviceId:a})};
_.t.handleAccountLinkCommand=function(a){_.A(a,gcK)&&this.handleLinkRequest(_.A(a,gcK))};
_.t.handleLinkRequest=function(a){var W=this,w=a.thirdPartyId;if(w)if(this.isGalInteractionPopupMode(w)){var Z=function(){W.closeAndFire("ytd-gaming-account-link-setting-renderer",a.onFailureCommand)},N=function(){W.closeAndFire("ytd-gaming-account-link-setting-renderer",a.onSuccessCommand)};
this.lastCallback=N;this.getAccountLinkPromises[w].then(function(B){wNd(B).then(function(I){I.statusCode===1?N():Z()})}).catch(function(){Z()})}else this.getAccountLinkPromises[w].then(function(B){wNd(B).then(function(I){if(I.statusCode!==1)return Promise.reject(Error(I.statusMessage))})}).catch(function(B){_.jJ(B);
_.ia("gamingAccountLinkStatusChanged",{serviceId:w,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(B)})};
_.t.closeAndFire=function(a,W){_.aV(this.hostElement,"yt-close-popup-action",[a]);W&&_.B_([W],this.hostElement)};
_.t.handleAccountUnlinkCommand=function(a){_.A(a,oc0)&&this.handleUnlinkRequest(_.A(a,oc0))};
_.t.handleUnlinkRequest=function(a){var W=this,w=a.thirdPartyId;if(w){var Z=function(){W.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",a.onFailureCommand)},N=function(){W.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",a.onSuccessCommand)};
this.lastCallback=N;var B=tHX(this.createGalConfig(w,!1));this.unlinkUserGal(B,w).then(function(I){I.statusCode===1?N():Z()}).catch(function(){Z()})}};
_.t.unlinkUserGal=function(a,W){return a.deleteLink(W)};
_.t.handleLogAccountLinkingEventCommand=function(a){_.r("enable_gel_log_commands")&&_.A(a,kzz)&&(a=_.A(a,kzz).event)&&_.ia("gamingAccountLinkStatusChanged",a)};
_.dU.Object.defineProperties(se,{template:{configurable:!0,enumerable:!0,get:function(){return g4k()}}});
_.f([_.R(_.Ww.YtOpenPopupBehavior),_.z("design:type",Object)],se.prototype,"ytOpenPopupBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],se.prototype,"ytActionHandlerBehavior",void 0);se=_.f([_.C({disableElementRegistration:!0,is:"ytd-third-party-manager"})],se);_.D(se,"ytd-third-party-manager",function(){return g4k()},{mode:_.Vn("kevlar_poly_si_batch_j081")?1:2});var o4n,kd0=function(){return o4n!==void 0?o4n:o4n=document.createElement("template")};
document.head.appendChild(kd0().content);var Uvd,Ogd=function(){if(Uvd!==void 0)return Uvd;var a=document.createElement("template");_.n(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(kd0().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);return Uvd=a};var SDn=_.ma(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),u2=function(){var a=_.u.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.applyZoomTransition=_.Et("web_page_transition_type")==="zoom";a.applySlideTransition=_.Et("web_page_transition_type")==="slide";a.TEST_ONLY=void 0;return a};
_.c(u2,_.u);_.t=u2.prototype;_.t.ready=function(){var a=_.K();a.addProvider({provide:_.Gw,useValue:this});a.addProvider({provide:_.sGL,useValue:this})};
_.t.created=function(){this.pagePool=new s7f;this.contextSwitcher=new as2};
_.t.attached=function(){_.E$(this.hostElement,"attached");var a=_.K().resolve(_.Vv(_.U6));a&&(this.contextSwitcher.JSC$17504_networkService_=a);this.viewTransitionManager=_.K().resolve(_.Vv(_.kL));this.setupPageTransitionAnimation()};
_.t.getPageOffset=function(a){return a.getScrollTop()};
_.t.setPageOffset=function(a,W){try{a.setScrollTop(W)}catch(w){}};
_.t.setPageOffsetForNavigation=function(a,W){_.E$(this.hostElement,"yt-navigate-set-page-offset",{page:a,offset:W===void 0?0:W})};
_.t.pauseActiveContext=function(){var a=this.contextSwitcher;a.activeContext_&&a.activeContext_.pause()};
_.t.getModuleNameForType=function(a){return a==="watch"?_.r("kevlar_watch_fixie")?"watchFixie":_.r("kevlar_watch_grid")?"watchGrid":"watchFlexy":a==="shorts"||a==="search"?a:"browse"};
_.t.attachPage=function(a){var W,w=!_.r("pc_is_attached_ks")&&(a==null?void 0:(W=a.polymerController)==null?void 0:W.isAttached);if(!a.isAttached&&!w)try{_.M(this.hostElement).appendChild(a)}catch(N){var Z;_.jJ(new _.Uw("Error attaching page element for component",{origin:(Z=this.currentPage)==null?void 0:Z.is,component:a.is}))}};
_.t.setActivePage=function(a){var W=this,w=!1,Z=function(){var N=W.isOnWatch(),B=W.currentPage;if(a)if(a!==W.currentPage){B&&(B.hidden=!0,B.active=!1,B.removeAttribute("role"));W.currentPage=a;var I,X=_.lh((I=W.data)==null?void 0:I.endpoint);B&&_.E$(W.hostElement,"yt-page-type-changed",{oldPageType:B.is,newPageType:a.is,newPageSubtype:X});_.FM().dispatch(_.E_({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:a.is}));_.FM().dispatch(_.E_({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:X||""}));a.hidden=
!1;W.attachPage(a);a.active=!0;a.setAttribute("role","main");B&&W.setPageOffsetForNavigation(a,0);_.r("kevlar_remove_page_dom_on_switch")&&!N&&B&&_.M(W.hostElement).removeChild(B)}else w=!0;else N=new _.Uw("Unable to set active page",B?B.is:"unknown origin",(X=W.data)==null?void 0:X.endpoint),_.eJ(N)};
this.viewTransitionManager?rui(this.viewTransitionManager,Z,this.viewTransitionConfigForSetActivePage(this.currentPage,a)):Z();return w};
_.t.viewTransitionConfigForSetActivePage=function(a,W){return _.r("web_thumbnail_to_watch_transition")&&(a==null?void 0:a.is)==="ytd-browse"&&this.isWatchPage(W)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(a==null?void 0:a.is)==="ytd-browse"&&(W==null?void 0:W.is)==="ytd-browse"&&a!==W?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.t.updatePageData=function(a){var W=this,w=this.data;this.updatePageDataJobId&&_.hF.cancelJob(this.updatePageDataJobId);this.data=a;return new _.PZ(function(Z){var N=function(){a.filler?W.performDataUpdate(a,w):umK(function(){W.performDataUpdate(a,w)});
var v=_.F4();_.MJ(v,"cr")||v.processSignal("cr");Z()},B=function(){a&&a.page==="watch"?W.updatePageDataJobId=_.OB(_.hF,N):N()};
if(_.r("kevlar_enable_mss_page_modules_client")&&a){var I=_.K().resolve(_.uV),X=W.getModuleNameForType(a.page);(I=Kdd(I,[X]))?I.then(B):B()}else B()})};
_.t.isDownloadsPage=function(a){var W,w;return(a==null?void 0:(W=a.endpoint)==null?void 0:(w=W.browseEndpoint)==null?void 0:w.browseId)==="FEdownloads"};
_.t.setPlayerSyncInterval=function(a){var W;return _.P(function(w){if(w.nextAddress==1)return _.g(w,_.K().resolve(_.H$),2);W=w.yieldResult;W.setUpPositionSyncInterval(a);_.Xd(w)})};
_.t.performDataUpdate=function(a,W){_.r("kevlar_early_popup_close")||_.aV(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var w=!a.filler;w&&(_.Ak("lps"),_.r("config_age_report_killswitch")||YnD());var Z=E7(a),N,B=!1;if(_.r("kevlar_remove_page_dom_on_switch")){var I=W&&E7(W);Z===I&&(N=this.getCurrentPage())}N||(N=js(this.pagePool,Z));w&&Dw0(this.pagePool.elementPoolPopulator,Z);w&&!this.renderLoadingStateJobId&&(B=this.setActivePage(N));if(N){I=Z==="watch";var X=
Z==="shorts",v=Z==="learning_journey_watch";_.r("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(N);if(I||X||v)N.playerData=a.playerResponse;if(X){a.reelWatchSequenceResponse?N.reelWatchSequenceResponse=a.reelWatchSequenceResponse:a.cachedReelWatchSequenceResponse&&(N.reelWatchSequenceResponse=a.cachedReelWatchSequenceResponse);N.currentEndpoint=a.endpoint;var U;N.isPreviousPageShorts=!!(W==null?0:(U=W.endpoint)==null?0:U.reelWatchEndpoint);a.cachedReelWatchSequenceResponse=
a.reelWatchSequenceResponse||a.cachedReelWatchSequenceResponse||(W==null?void 0:W.cachedReelWatchSequenceResponse);_.r("web_enable_cached_reel_sequence_fix")?a.cachedReelWatchSequenceResponse&&(N.cachedReelWatchSequenceResponse=a.cachedReelWatchSequenceResponse):N.cachedReelWatchSequenceResponse=a.cachedReelWatchSequenceResponse}U=this.isDownloadsPage(a);var O=this.isDownloadsPage(W);U&&!O?this.setPlayerSyncInterval(6E5):!U&&O&&this.setPlayerSyncInterval();_.r("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(a,N,w,I,X,v);Aun(_.K().resolve(_.bV),W,a);_.fg(_.K().resolve(_.Y_));_.r("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(N);w?(w=typeof N.loadPage,w==="function"?(N.pageContext=Wz0(this.contextSwitcher,N,N.data!==a.response),w=function(){N.loadPage(a.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&N.is==="ytd-browse"&&B&&this.isDifferentBrowseId(a==null?void 0:a.endpoint,W==null?void 0:W.endpoint)?
this.applySlideTransition?rui(this.viewTransitionManager,w,{transitionName:"slide"}):rui(this.viewTransitionManager,w,{transitionName:"zoom"}):w()):_.nH(new _.Uw("b/38014653 ",[Z,
N.is,N.nodeName,w,N.isAttached,W&&E7(W),this.hostElement.children.length])),_.Ak("pdl")):(N.hidden=!0,a.response.filler=!0,N.data=a.response,this.attachPage(N));_.E$(this.hostElement,"yt-page-data-updated",{pageType:Z})}_.TP(_.hF,function(){_.r("logging_avoid_blocking_during_navigation")&&_.IgD().transition("none");var S=ULd(),T=N;if(a){var p=zOI(a),h=HDX(a),L;a:{if(a.playerResponse){var F=a.playerResponse,x;if((L=F.auxiliaryUi)==null?0:(x=L.messageRenderers)==null?0:x.upsellDialogRenderer){L=F.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(a.response&&(L=a.response,(F=L.overlay)==null?0:F.upsellDialogRenderer)){L=L.overlay.upsellDialogRenderer;break a}L=void 0}var G;var V;x=(G=a.playerResponse)==null?void 0:(V=G.auxiliaryUi)==null?void 0:V.messageRenderers;G=(x==null?void 0:x.enforcementMessageViewModel)||(x==null?void 0:x.bkaEnforcementMessageViewModel);G=(G==null?void 0:G.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?G:void 0;var d;a:{if(a.response&&(V=a.response,(d=V.overlay)==null?0:d.commandWrapperPromoRenderer)){d=
V.overlay.commandWrapperPromoRenderer;break a}d=void 0}ku9(S,p,h,L,G,d,T)}})};
_.t.preparePrefetchRequest=function(a,W,w,Z,N,B){var I,X,v,U,O,S,T,p,h,L,F,x,G,V,d;return _.P(function(ZD){if(ZD.nextAddress==1)return!w||!(Z||N||B)||_.r("kevlar_disable_background_prefetch")&&_.Mx(_.tiU)()===0?ZD.return():(I=_.DK(W))?_.g(ZD,I.getPlayerPromise(),2):ZD.return();X=ZD.yieldResult;v=_.K().resolve(_.Vv(_.U6));if(!v)return ZD.return();if(N)return U=_.lV(_.w4),yQa(U,(O=a.endpoint)==null?void 0:O.reelWatchEndpoint,W.reelWatchSequenceResponse,X,v),ZD.return();p=(S=a.response)==null?void 0:
(T=S.responseContext)==null?void 0:T.webResponseContextExtensionData;if(!p)return ZD.return();G=(h=a.response)==null?void 0:(L=h.contents)==null?void 0:(F=L.twoColumnWatchNextResults)==null?void 0:(x=F.autoplay)==null?void 0:x.autoplay;V=_.K().resolve(_.LB);d=_.lV(_.w4);EJD(d,p,X,v,V,G);_.Xd(ZD)})};
_.t.movePlayerToWatch=function(a){var W=this,w,Z;return _.P(function(N){w=js(W.pagePool,"watch");Z=w.getPlayerContainer();a.appendTo(Z);_.Xd(N)})};
_.t.movePlayerToShorts=function(a){var W=this,w,Z,N;return _.P(function(B){w=js(W.pagePool,"shorts");Z=w.getPlayerContainer();(N=a)==null||N.appendTo(Z,void 0,!0);_.Xd(B)})};
_.t.getPlayerFromWatch=function(){var a=js(this.pagePool,"watch");return _.DK(a)};
_.t.getPlayerFromShorts=function(){var a=js(this.pagePool,"shorts");return _.DK(a)};
_.t.startLoadingWatch=function(){var a=js(this.pagePool,"watch");this.renderLoadingStateJobId?(_.hF.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(a)};
_.t.startLoadingShorts=function(){var a=js(this.pagePool,"shorts");this.setActivePage(a)};
_.t.startLoadingLearningJourney=function(){var a=js(this.pagePool,"learning_journey_watch");this.setActivePage(a)};
_.t.getCurrentPage=function(){return this.currentPage};
_.t.getDestinationPageType=function(){return this.destinationPageType};
_.t.getCurrentData=function(){return this.data};
_.t.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.t.isOnShorts=function(){var a;return((a=this.currentPage)==null?void 0:a.is)==="ytd-shorts"};
_.t.isWatchPage=function(a){return!!a&&(a.is==="ytd-watch-flexy"||a.is==="ytd-watch-fixie"||a.is==="ytd-watch-grid")};
_.t.preparePage=function(a,W){var w=this,Z=function(){var I=w.pagePool.preparePage(a,w.currentPage,W);I&&w.attachPage(I)},N=function(I){_.LH(I,W);
_.jJ(I)};
if(_.r("kevlar_enable_mss_page_modules_client")){var B=this.getModuleNameForType(a);if(B=Kdd(_.K().resolve(_.uV),[B])){B.then(Z.bind(this)).catch(N.bind(this));return}}try{Z()}catch(I){N(I)}};
_.t.lazyPrepareCriticalPages=function(a,W){a=_.lh(W)||a;_.r("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(a).then(this.maybePrepareWatchPage.bind(this,a)):this.maybePrepareWatchPage(a)};
_.t.maybePrepareWatchPage=function(a){a!=="watch"&&_.TP(_.hF,this.preparePage.bind(this,"watch"))};
_.t.downloadPageModules=function(a){a=this.getModuleNameForType(a);var W=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);W.delete(a);var w=_.K().resolve(_.uV);w.JSC$16240_loadModules(a);return w.JSC$16240_loadModules.apply(w,_.K8(W))};
_.t.renderPageLoadingState=function(a,W){this.preparePage(a,W);var w=js(this.pagePool,a);w.loadingData&&(w.loadingData.endpoint=W);w.loading=!0;this.setActivePage(w);a==="watch"&&_.E$(this.hostElement,"yt-guide-close")};
_.t.prepareForNavigation=function(a,W){var w=this;if(this.currentPage&&this.data){var Z=_.lh(W)||a;this.destinationPageType=Z;E7(this.data)==Z&&_.E$(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(a==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.hF.cancelJob(this.renderLoadingStateJobId);_.K().resolve(_.bV).deactivate(W);var N=this.data;this.renderLoadingStateJobId=_.rP(_.hF,function(){if(w.data!=N){var B=js(w.pagePool,a);w.setActivePage(B)}else w.renderPageLoadingState(a,
W);w.renderLoadingStateJobId=0},150)}};
_.t.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var a=new _.GR(1);this.currentPage.pageDisposeJobs.forEach(function(W){_.Dh(a,W)});
this.pageDisposeJobsets.set(this.currentPage,a)}};
_.t.flushPageDisposeJobset=function(a){var W=this.pageDisposeJobsets.get(a);W&&(W.flushJobs(),this.pageDisposeJobsets.delete(a))};
_.t.onYtStopOldPlayer=function(a,W){W=W===void 0?!1:W;var w,Z=_.a0("kevlar_new_stop_old_player_logic_pages");if(_.r("kevlar_check_current_page_on_stop_old_player")&&(Z.length===0||this.currentPage&&Z.includes(this.currentPage.is)))if(this.data&&(w=E7(this.data)),E7(a)===w&&this.currentPage&&E7(this.currentPage.data)!==w)var N=_.DK(this.currentPage);else w=E7(this.data),N=js(this.pagePool,w),N=_.DK(N);else this.data&&(w=E7(this.data),N=js(this.pagePool,w),N=_.DK(N));if(N)if(a=E7(a),Z=js(this.pagePool,
a),Z=_.DK(Z),N==Z)W&&!_.r("kevlar_disable_preemptive_player_reset")&&N.resetForNewPlayback();else if(W=w==="watch"&&a!=="watch",!W||a==="shorts"||_.tOl()&&!kK9(this.data)&&a!=="yts-products"&&a!="mini_app"&&a!="playables")w=_.K().resolve(_.bV),W&&w.isMiniplayerActive()&&w.pipController.getWindow()||N.stop()};
_.t.setupPageTransitionAnimation=function(){var a=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){mN(this.viewTransitionManager,"slide",{beforeTransition:function(){a.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){a.hostElement.style.viewTransitionName=""}});
mN(this.viewTransitionManager,"zoom",{beforeTransition:function(){a.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){a.hostElement.style.viewTransitionName=""}});
var W=_.yv("web_page_transition_exit_ms"),w=_.yv("web_page_transition_wait_ms"),Z=_.yv("web_page_transition_enter_ms");if(!isNaN(W)||!isNaN(w)||!isNaN(Z))if(W=pId(SDn,W,w,Z))w=document.createElement("style"),w.textContent=_.AIe(W),document.head.appendChild(w)}};
_.t.isDifferentBrowseId=function(a,W){a=_.A(a,_.I1);W=_.A(W,_.I1);return(a==null?void 0:a.browseId)!==(W==null?void 0:W.browseId)};
_.dU.Object.defineProperties(u2,{template:{configurable:!0,enumerable:!0,get:function(){return Ogd()}}});
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],u2.prototype,"ytActionHandlerBehavior",void 0);u2=_.f([_.C({disableElementRegistration:!0,is:"ytd-page-manager"})],u2);_.D(u2,"ytd-page-manager",function(){return Ogd()},{mode:_.Vn("kevlar_poly_si_batch_j081")?1:2});var CL=function(a,W,w){w=w===void 0?!1:w;_.OW.call(this);this.draggableElement=a;this.callbacks=W;this.allowClicks=w;this.dragOccurred=!1;this.internalDragger=new _.RZ(this.draggableElement);this.dragDelay=new _.zc(this.delayedDrag.bind(this));YD2(this);this.allowClicks&&(_.rwe(this.internalDragger,5),a.addEventListener("click",_.yV(this,this.validateClick),{capture:!0}))};
_.c(CL,_.OW);var YD2=function(a){_.vX(a.internalDragger,"earlycancel",function(){a.allowClicks&&(a.dragOccurred=!1)});
_.vX(a.internalDragger,"start",function(W){var w,Z;(Z=(w=a.callbacks).onStartDrag)==null||Z.call(w,W);!W.defaultPrevented&&a.allowClicks&&(a.dragOccurred=!0)});
_.vX(a.internalDragger,"beforedrag",function(W){W.preventDefault();a.lastOffset=new _.r3(W.clientX-a.internalDragger.startX,W.clientY-a.internalDragger.startY);a.dragDelay.start()});
_.vX(a.internalDragger,"end",function(){a.dragDelay.stop();var W,w;(w=(W=a.callbacks).onEndDrag)==null||w.call(W);a.lastOffset=void 0})};
CL.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
CL.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.yV(this,this.validateClick),{capture:!0})};
CL.prototype.validateClick=function(a){this.dragOccurred&&(this.dragOccurred=!1,a.stopPropagation(),a.preventDefault())};var GJ=function(a,W){_.OW.call(this);this.JSC$17705_resizeContainer=a;this.callbacks=W;this.aspectRatio=16/9;this.JSC$17705_resizers=[];a=_.l(this.JSC$17705_resizeContainer.children);for(W=a.next();!W.done;W=a.next())T00(this,W.value)};
_.c(GJ,_.OW);GJ.prototype.disposeInternal=function(){for(var a=_.l(this.JSC$17705_resizers),W=a.next();!W.done;W=a.next())W.value.dispose();a=_.l(this.JSC$17705_resizeContainer.children);for(W=a.next();!W.done;W=a.next())W.value.setAttribute("disabled","");this.JSC$17705_resizers.length=0};
GJ.prototype.setSize=function(a){this.currentMiniplayerSize=a};
GJ.prototype.setAspectRatio=function(a){this.aspectRatio=a};
GJ.prototype.update=function(a,W){for(var w=_.l(this.JSC$17705_resizeContainer.children),Z=w.next();!Z.done;Z=w.next()){Z=Z.value;var N=Z.getAttribute("alignment");_.VV(Z,"disabled",N===a||N===W)}};
var T00=function(a,W){var w=W.getAttribute("alignment"),Z=new CL(W,{onStartDrag:function(N){if(W.hasAttribute("disabled"))N.preventDefault();else{a.dragStartSize=a.currentMiniplayerSize;var B,I;(I=(B=a.callbacks).onStartResize)==null||I.call(B)}},
onDrag:function(N){if(a.dragStartSize){w!=="north"&&w!=="west"||N.scale(-1);var B=w==="north"||w==="south";N=B?N.y:N.x;B&&a.aspectRatio>=1?N*=a.aspectRatio:!B&&a.aspectRatio<1&&(N/=a.aspectRatio);a.callbacks.onResize(a.dragStartSize+N)}}});
a.JSC$17705_resizers.push(Z)};var K7i,ppn=function(){return K7i!==void 0?K7i:K7i=document.createElement("template")};
document.head.appendChild(ppn().content);var ren;var AeK=_.xQ(function(a){var W=_.D8(),w=a.onDrag,Z=a.onDragStart,N=a.onDragEnd,B=_.Qn(a,{allowClicks:!1,dragThreshold:5}),I=B.dragThreshold,X=B.allowClicks;a=B.children;B=B.className;var v=void 0,U=void 0,O=new _.r3(0,0),S=!1;_.AS(function(){v=new _.RZ(W.value);U=new _.zc(p);T(v,U);if(X()){_.rwe(v,I());var L;(L=W.value)==null||L.addEventListener("click",h,{capture:!0})}_.Ao(function(){var F;(F=v)==null||F.dispose();if(X()){var x;(x=W.value)==null||x.removeEventListener("click",h,{capture:!0})}})});
var T=function(L,F){_.vX(L,"earlycancel",function(){X()&&(S=!1)});
_.vX(L,"start",function(x){Z==null||Z(x);x.defaultPrevented||X()&&(S=!0)});
_.vX(L,"beforedrag",function(x){v&&U&&(x.preventDefault(),O=new _.r3(x.clientX-v.startX,x.clientY-v.startY),U.start())});
_.vX(L,"end",function(){F.stop();N==null||N();O=new _.r3(0,0)})},p=function(){O&&w(O)},h=function(L){S&&(S=!1,L.stopPropagation(),L.preventDefault())};
return _.k("yt-draggable",{el:W,class:_.W$("ytDraggableComponentHost",B)},a)},"eg");var hNK=_.xQ(function(a){var W=_.l(_.$1(0,void 0,"CvAwBd")),w=W.next().value,Z=W.next().value;W=function(N){var B={},I={};return _.k(AeK,{className:_.W$("ytdMiniplayerComponentResizer",(B.ytdMiniplayerComponentResizerDisabled=function(){return N===a.horizontalAlignment()||N===a.verticalAlignment()},B.ytdMiniplayerComponentResizerNorth=N==="north",B.ytdMiniplayerComponentResizerEast=N==="east",B.ytdMiniplayerComponentResizerSouth=N==="south",B.ytdMiniplayerComponentResizerWest=N==="west",B)),
onDragStart:function(){Z(a.currentMiniplayerSize());if(a.onResizeStart)a.onResizeStart()},
onDrag:function(X){N!=="north"&&N!=="west"||X.scale(-1);var v;X=(v=N==="north"||N==="south")?X.y:X.x;var U=a.currentAspectRatio();v&&U>=1?X*=U:!v&&U<1&&(X/=U);v=X;a.onResize(w()+v)}},_.k("div",{class:_.W$("ytdMiniplayerComponentResizerCorner",(I.ytdMiniplayerComponentResizerNorthCorner=N==="north",I.ytdMiniplayerComponentResizerEastCorner=N==="east",I.ytdMiniplayerComponentResizerSouthCorner=N==="south",I.ytdMiniplayerComponentResizerWestCorner=N==="west",I))}))};
return _.k("div",{class:"ytdMiniplayerComponentResizers"},W("north"),W("east"),W("south"),W("west"))},"fg");var igK=16/9,ce0=_.xQ(function(){var a=_.D8(),W=_.l(_.$1(new _.Bh(NaN,NaN),void 0,"UYv80c")),w=W.next().value,Z=W.next().value;W=_.l(_.$1(!1,void 0,"L9O3Tc"));var N=W.next().value,B=W.next().value;W=_.l(_.$1(!1,void 0,"nw5gMc"));var I=W.next().value,X=W.next().value;W=_.l(_.$1(!1,void 0,"X4YUZc"));var v=W.next().value,U=W.next().value;W=_.l(_.$1(!1,void 0,"jOjwyc"));var O=W.next().value,S=W.next().value;W=_.l(_.$1(!1,void 0,"EmWIj"));var T=W.next().value,p=W.next().value;W=_.l(_.$1(!1,void 0,"pdZbNb"));
var h=W.next().value,L=W.next().value;W=_.l(_.$1(igK,void 0,"vdAiue"));var F=W.next().value,x=W.next().value,G=_.l(_.$1(!1,void 0,"agiiqf"));W=G.next().value;var V=G.next().value;G=_.l(_.$1(!1,void 0,"z3vkHe"));var d=G.next().value,ZD=G.next().value;G=_.l(_.$1(void 0,void 0,"FMEjz"));var aC=G.next().value,Bv=G.next().value;G=_.l(_.$1(_.LF("HTML_DIR")==="rtl"?"west":"east",void 0,"jGuIHe"));var Am=G.next().value,e9=G.next().value;G=_.l(_.$1("south",void 0,"R5stie"));var cv=G.next().value,C7=G.next().value;
G=_.l(_.$1(400,void 0,"CJeuke"));var RC=G.next().value,G8=G.next().value,QF=_.K().resolve(_.bV).miniplayerPropSignalMap[0],vl=QF.data,Hl=QF.externalPlaylistData;G=QF.toastData;var SV=QF.playabilityStatus,Ny=QF.isReadyToResume,Bl=QF.isDisabled,JL=QF.watchWhile,Pl=QF.playerVe,W9=QF.expandVe,rC=QF.closeVe,le=QF.readyToResumeVe,rT=QF.readyToResumeCloseVe,Re=QF.repositionVe,u9=QF.resizeVe;QF=_.l(_.l5(Ny));var eV=QF.next().value,DE=QF.next().value,mi=!1,p6=!1,VF;_.AS(function(){Z(_.vu());a.value.addEventListener("animationend",
function(bA){bA.target===a.value&&(p(!1),L(!1))});
Sdf(a.value)});
_.GP("yt-window-resized",function(bA){bA&&Z(bA)});
var K6=function(){VF&&x(VF.getVideoAspectRatio())},P2=function(){if(VF){var bA=VF.getPlayerState()===1;
eV()&&bA&&DE(!1)}},AL=function(){var bA=W9();
if(bA){var i9=_.nS(3);i9&&_.b0(i9,bA)}},KK=function(){var bA=rC(),i9=rT();
bA&&_.b0(_.nS(3),bA);Ny()&&i9&&_.b0(_.nS(3),i9)};
_.GP("yt-activate-miniplayer",function(bA){var i9;return _.P(function(fK){if(fK.nextAddress==1)return N()?fK.return():_.g(fK,(i9=_.K().resolve(_.bV).getPlayerElement())==null?void 0:i9.getPlayerPromise(),2);VF=fK.yieldResult;if(!VF)return fK.return();!d()&&_.r("kevlar_watch_while_v2")&&(C7(bA&&!_.r("kevlar_watch_while_bottom_align")?"north":"south"),e9(_.LF("HTML_DIR")==="rtl"?"west":"east"));var XL=VF;XL.addEventListener("onVideoDataChange",K6);XL.addEventListener("onStateChange",P2);XL.addEventListener("onExpandMiniplayer",
AL);XL.addEventListener("onCloseMiniplayer",KK);x(VF.getVideoAspectRatio());B(!0);p(!0);_.Xd(fK)})});
_.GP("yt-deactivate-miniplayer",function(bA){return _.P(function(i9){if(!N())return i9.return();B(!1);DE(!1);L(bA);p(!0);if(VF){var fK=VF;fK.removeEventListener("onVideoDataChange",K6);fK.removeEventListener("onStateChange",P2);fK.removeEventListener("onExpandMiniplayer",AL);fK.removeEventListener("onCloseMiniplayer",KK)}_.Xd(i9)})});
var P9=function(){var bA=!!vl(),i9=T(),fK=JL();return(fK===void 0?0:fK)&&_.r("kevlar_watch_while_modern")?!1:bA||i9},ox=function(){var bA;
return!((bA=Hl())==null||!bA.contents)},CK=function(){var bA=RC();
var i9=w();i9=Math.min(Math.min(i9.width,i9.height)-32,720);var fK=F(),XL=P9(),Aw=ox()&&I(),ch=Math.min(bA,i9);bA=new _.Bh(192,XL?116:192);fK=ytX(new _.Bh(Aw?igK:fK,1),new _.Bh(ch,XL?ch-76:ch));bA.width<=fK.width&&bA.height<=fK.height||(Hpz(fK,bA),fK.width=Math.min(fK.width,i9),fK.height=Math.min(fK.height,i9));return new _.Bh(fK.width,_.M9(192,fK.height+rGd(XL,Aw),720))},Y8=function(){var bA=CK(),i9=P9(),fK=ox()&&I();
return new _.Bh(bA.width,bA.height-rGd(i9,fK))},hl=function(){var bA=function(i9){i9.target===a.value&&O()&&(S(!1),a.value.removeEventListener("transitionend",bA))};
a.value.addEventListener("transitionend",bA);S(!0);X(!I())};
_.Ka(function(){var bA=Pl(),i9=_.nS(3),fK=_.eH(3);if(i9&&fK&&bA){_.M1(i9,fK,bA);fK=Re();var XL=u9(),Aw=W9(),ch=rC(),Ui=rT();Aw&&ch&&Ui&&(_.RV(i9,bA,[Aw,ch,Ui]),_.Qw(i9,[Aw,ch]));fK&&XL&&_.RV(i9,bA,[fK,XL])}});
_.Ka(function(){var bA=eV(),i9=le();if(i9&&(bA===void 0?0:bA)){bA=_.nS(0);var fK=_.eH(0);bA&&fK&&(_.M1(bA,fK,i9),_.Qw(bA,[i9]))}});
QF={};return _.k("ytd-miniplayer",{el:a,class:_.W$("ytdMiniplayerComponentHost",(QF.ytdMiniplayerComponentVisible=function(){return N()||T()},QF.ytdMiniplayerComponentAnimatingSnap=v,QF.ytdMiniplayerComponentAnimatingPlaylistExpand=O,QF.ytdMiniplayerComponentAnimatingFade=T,QF),function(){if(T()){var bA=cv();
var i9=N(),fK=h();bA=i9?bA==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":fK?bA==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":bA==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else bA="";return bA}),
style:_.It({top:function(){return cv()==="north"?"16px":""},
right:function(){return Am()==="east"?"16px":""},
bottom:function(){return cv()==="south"?"16px":""},
left:function(){return Am()==="west"?"16px":""},
width:function(){return CK().width+"px"},
height:function(){return CK().height+"px"},
transform:function(){var bA=aC();return bA?"translate("+bA.x+"px, "+bA.y+"px)":""}})},_.k("div",{class:"ytdMiniplayerComponentContent"},_.k(AeK,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(bA){var i9=pJ0(Am(),cv(),w(),CK(),aC()),fK=Y8();Math.abs(bA.clientY-(i9.y+fK.height))>15?(V(!0),bA=_.nS(3),i9=Re(),mi||(mi=!0,bA&&i9&&_.Qw(bA,[i9])),bA&&i9&&_.b0(bA,i9)):bA.preventDefault()},
onDrag:function(bA){Bv(bA)},
onDragEnd:function(){var bA=YdI(pJ0(Am(),cv(),w(),CK(),aC()),w(),CK()),i9=KO2(Am(),cv(),w(),CK()),fK=KO2(bA.horizontalAlignment,bA.verticalAlignment,w(),CK());fK=new _.r3(fK.x-i9.x,fK.y-i9.y);var XL;i9=i9.y+(((XL=aC())==null?void 0:XL.y)||0)+CK().height/2;var Aw=function(){Am()===bA.horizontalAlignment&&cv()===bA.verticalAlignment||ZD(!0);e9(bA.horizontalAlignment);C7(bA.verticalAlignment);Bv(void 0)},ch=function(Ui){Ui.target===a.value&&v()&&(U(!1),Aw(),a.value.removeEventListener("transitionend",
ch))};
V(!1);cv()==="south"&&i9>w().height?(Aw(),_.K().resolve(_.bV).close()):(a.value.addEventListener("transitionend",ch),U(!0),Bv(fK))}},_.k(_.Y,{cond:N,
then:function(){return _.k(_.qmk,{isDisabled:Bl,playabilityStatus:SV,size:Y8})}}),_.k(_.Y,{cond:P9,
then:function(){return _.k(_.Me0,{isReadyToResume:eV,data:vl,expanded:I,onExpandClick:hl,playlistData:Hl})}}),_.k(_.Y,{cond:W,
then:function(){return _.k("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.k(_.Y,{cond:function(){return ox()&&I()||O()},
then:function(){return _.k(_.PzJ,{className:"ytdMiniplayerComponentPlaylistPanel",data:Hl,hideHeaderText:!0,withinMiniplayer:!0})}}),_.k("div",{class:"ytdMiniplayerComponentToast"},_.k(_.QPn,{toastData:G}))),_.k(hNK,{onResize:function(bA){G8(_.M9(192,bA,720))},
onResizeStart:function(){var bA=_.nS(3),i9=u9();p6||(p6=!0,bA&&i9&&_.Qw(bA,[i9]));bA&&i9&&_.b0(bA,i9)},
currentAspectRatio:F,currentMiniplayerSize:RC,horizontalAlignment:Am,verticalAlignment:cv}))},"gg");_.r("ytd_miniplayer_to_wiz")&&_.Ct(ce0,"ytd-miniplayer",{});_.Ct(_.QPn,"ytd-miniplayer-toast",{props:{toastData:_.qR}});var eNK=16/9,n4K=new _.Bh(400,400/eNK),Dc=function(){var a=_.u.apply(this,arguments)||this;a.active=!1;a.hasNoData=!1;a.enabled=!1;a.expanded=!1;a.readyToResume=!1;a.isDisabled=!1;a.externalPlaylistData={};a.premiumBadges=[];a.watchWhile=!1;a.playerState=null;a.verticalAttachment="south";a.horizontalAttachment=_.LF("HTML_DIR")==="rtl"?"west":"east";a.isAnimatingFade=!1;a.isAnimatingSnap=!1;a.isAnimatingExpand=!1;a.isDragging=!1;a.playerHidden=!1;a.hasPlaylistData=!1;a.closed=!1;a.expandedClosed=!1;
a.isForReadyToResume=!1;a.watchResponse=null;a.player=null;a.playerVe=null;a.expandVe=null;a.closeVe=null;a.readyToResumeCloseVe=null;a.disabledInitialStateIsPlaying=!1;a.PLAYER_EVENTS=new Map;a.aspectRatio=eNK;a.currentMiniplayerSize=400;a.userSetSize=!1;a.userSetPosition=!1;a.userHasDragged=!1;a.maxMiniplayerSize=720;a.transform=new _.r3(0,0);a.windowDimensions=new _.Bh(NaN,NaN);a.dimensions=n4K;a.screenLayer=3;a.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return a};
_.c(Dc,_.u);_.t=Dc.prototype;_.t.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.t.ready=function(){this.setUpDragging();this.setUpResizing()};
_.t.attached=function(){this.onWindowResized(_.vu());this.hostElement.addEventListener("animationend",_.yV(this,this.resetFadingAnimation))};
_.t.detached=function(){this.hostElement.removeEventListener("animationend",_.yV(this,this.resetFadingAnimation))};
_.t.resetFadingAnimation=function(a){a.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.t.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.t.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.t.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var a=_.nS(this.screenLayer);this.readyToResumeCloseVe&&a&&_.Qw(a,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.t.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var a=_.nS(0),W=_.eH(0);a&&W&&(_.M1(a,W,this.readyToResumeVe),_.Qw(a,[this.readyToResumeVe]))}};
_.t.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var a=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=a===-1||a===1||a===3)&&this.player.pauseVideo()}};
_.t.activate=function(a,W){W=W===void 0?!1:W;var w=this,Z;return _.P(function(N){if(N.nextAddress==1)return w.setInitialActivatePositioning(W),w.enabled=!0,w.active=!0,w.expanded=!1,w.closed=!1,w.expandedClosed=!1,w.watchWhileHidden||(w.isAnimatingFade=!0),_.K().resolve(_.LB).setPlaylistComponent(w.JSC$17716_playlistPanel),a.appendTo(w.playerContainer),_.g(N,a.getPlayerPromise(),2);Z=N.yieldResult;Z.setSizeStyle(!1,!0);w.ytPlayerListenerBehavior.listenToPlayerEvents(Z,w.PLAYER_EVENTS);w.player=Z;
w.watchWhile&&_.r("kevlar_watch_while_minimum_size")&&w.setMiniplayerSize(192);w.setAspectRatio(w.player.getVideoAspectRatio());w.onIsDisabledChanged();_.Xd(N)})};
_.t.setInitialActivatePositioning=function(a){if(!this.userSetPosition&&_.r("kevlar_watch_while_v2")){this.verticalAttachment=a&&!_.r("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.LF("HTML_DIR")==="rtl"?"west":"east";var W;(W=this.JSC$17716_resizers)==null||W.update(this.horizontalAttachment,this.verticalAttachment)}};
_.t.deactivate=function(a,W){var w=this;return _.P(function(Z){if(!w.active)return Z.return();a||(w.expanded?w.expandedClosed=!0:w.closed=!0);w.active=!1;w.isForReadyToResume=!1;W&&_.r("kevlar_watch_while_counterfactual")||(w.isAnimatingFade=!0);w.player&&w.ytPlayerListenerBehavior.unlistenFromPlayerEvents(w.player,w.PLAYER_EVENTS);w.player=null;_.Xd(Z)})};
_.t.onMetadataTap=function(a){this.expandVe&&(a===void 0||a)&&(a=_.nS(this.screenLayer))&&_.b0(a,this.expandVe);_.UG(_.K().resolve(_.bV))};
_.t.onDisabledTap=function(a){a.target===_.M(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.t.onPlaylistExpandTap=function(a){if(this.hasPlaylistData){a=_.qj(a)||[];a=_.l(a);for(var W=a.next();!W.done;W=a.next()){W=W.value;if(W===this.hostElement)break;if(W.classList&&W.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.t.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.yV(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.t.animatedResizePlaylist=function(a){a.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.yV(this,this.animatedResizePlaylist)))};
_.t.getExpandIcon=function(a){return a?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.t.onPlayerVideoDataChange=function(){var a,W=(a=this.player)==null?void 0:a.getVideoAspectRatio();W&&W!==this.aspectRatio&&this.setAspectRatio(W)};
_.t.setAspectRatio=function(a){if(this.active){this.aspectRatio=a;this.updateDimensionsAndResize();var W;(W=this.JSC$17716_resizers)==null||W.setAspectRatio(a)}};
_.t.updateDimensionsAndResize=function(){var a=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),W=this.expanded?eNK:this.aspectRatio,w=new _.Bh(192,this.showInfoBar?116:192);a=ytX(new _.Bh(W,1),new _.Bh(a,this.showInfoBar?a-76:a));w.width<=a.width&&w.height<=a.height||(Hpz(a,w),a.width=Math.min(a.width,this.maxMiniplayerSize),a.height=Math.min(a.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&W<=1?Math.max(a.width,a.height)+76:Math.max(a.width,a.height)));this.dimensions=
new _.Bh(a.width,this.clamp(a.height+this.getNonPlayerHeight()));this.resize()};
_.t.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var a=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=a.height+"px";var W;(W=this.player)==null||W.setInternalSize(a.width,a.height)};
_.t.getPlayerSize=function(a){var W=Math.max(0,a.height-this.getNonPlayerHeight());return new _.Bh(a.width,W)};
_.t.getNonPlayerHeight=function(){var a=0;this.showInfoBar&&(a+=76);this.expanded&&(a+=285);return a};
_.t.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.K().resolve(_.bV).close()};
_.t.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.t.logClosingClick=function(){this.closeVe&&_.b0(_.nS(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.b0(_.nS(this.screenLayer),this.readyToResumeCloseVe)};
_.t.onPlayerExpandMiniplayer=function(){if(this.expandVe){var a=_.nS(this.screenLayer);a&&_.b0(a,this.expandVe)}};
_.t.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var a=this.playerState===1;this.continueWatching&&a&&(this.continueWatching=!1);this.premiumBadges.length&&a&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.t.getScreenLayer=function(){return this.screenLayer};
_.t.logMiniplayer=function(){var a=_.nS(this.screenLayer),W=_.eH(this.screenLayer);a&&W&&this.playerVe&&(_.M1(a,W,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.RV(a,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.Qw(a,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.RV(a,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.t.computePlaylistData=function(a,W){return W};
_.t.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.t.computeExpandButtonHidden=function(a,W,w){return!a||!W||w};
_.t.computePlaylistIndexHidden=function(a,W){return!a||W};
_.t.computePlaylistPanelHidden=function(a,W){return!W&&!a};
_.t.computeExpandButtonLabel=function(a){return a?_.P_("MINIPLAYER_COLLAPSE_LABEL"):_.P_("MINIPLAYER_EXPAND_LABEL")};
_.t.computeDisabledStateCloseButtonLabel=function(){return _.P_("MINIPLAYER_CLOSE",void 0,"Close")};
_.t.onWindowResized=function(a){a&&(a=this.windowDimensions=a,this.maxMiniplayerSize=Math.min(Math.min(a.width,a.height)-32,720),this.updateDimensionsAndResize())};
_.t.setUpResizing=function(){var a=this;this.JSC$17716_resizers||(this.JSC$17716_resizers=new GJ(this.JSC$17716_resizeContainer,{onStartResize:function(){a.handleResizeStart()},
onResize:function(W){a.handleResize(W)}}),this.JSC$17716_resizers.setSize(this.currentMiniplayerSize),this.JSC$17716_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.t.handleResizeStart=function(){var a=_.nS(this.screenLayer);this.userSetSize||(this.userSetSize=!0,a&&this.resizeVe&&_.Qw(a,[this.resizeVe]));a&&this.resizeVe&&_.b0(a,this.resizeVe)};
_.t.handleResize=function(a){this.setMiniplayerSize(a);this.updateDimensionsAndResize()};
_.t.setUpDragging=function(){var a=this;this.JSC$17716_dragger||(this.JSC$17716_dragger=new CL(this.draggableContainer,{onStartDrag:function(W){!a.isSafeToDrag(W)||a.isAnimatingSnap?W.preventDefault():a.handleDragStart()},
onDrag:function(W){a.transform=W;a.setTransform(a.transform)},
onEndDrag:function(){a.handleDragEnd()}},!0))};
_.t.handleDragStart=function(){this.isDragging=!0;var a=_.nS(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,a&&this.repositionVe&&_.Qw(a,[this.repositionVe]));a&&this.repositionVe&&_.b0(a,this.repositionVe)};
_.t.handleDragEnd=function(){this.isDragging=!1;var a=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&a>this.windowDimensions.height&&_.K().resolve(_.bV).close();this.animateSnapToCorner()};
_.t.animateSnapToCorner=function(){var a=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),W=this.getNearestAttachments();W=this.getGlobalPositionFromAttachments(W.horizontalAttachment,W.verticalAttachment);a=new _.r3(W.x-a.x,W.y-a.y);this.isAnimatingSnap=!0;this.setTransform(a);this.hostElement.addEventListener("transitionend",_.yV(this,this.endSnapAnimation))};
_.t.endSnapAnimation=function(a){a.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.yV(this,this.endSnapAnimation)),this.endDrag())};
_.t.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.t.setTransform=function(a){this.hostElement.style.transform=a?"translate("+a.x+"px, "+a.y+"px)":""};
_.t.getGlobalPositionFromAttachments=function(a,W){return new _.r3(a==="west"?16:this.windowDimensions.width-this.dimensions.width-16,W==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.t.updateAttachments=function(){var a=this.getNearestAttachments();if(this.horizontalAttachment!==a.horizontalAttachment||this.verticalAttachment!==a.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=a.horizontalAttachment;this.verticalAttachment=a.verticalAttachment;var W;(W=this.JSC$17716_resizers)==null||W.update(this.horizontalAttachment,this.verticalAttachment)};
_.t.getNearestAttachments=function(){var a=this.getCurrentGlobalPosition();return{horizontalAttachment:a.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:a.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.t.getCurrentGlobalPosition=function(){var a=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return TKI(a,this.transform)};
_.t.isSafeToDrag=function(a){var W=this.playerContainer.getBoundingClientRect();return Math.abs(a.clientY-(W.y+W.height))>15};
_.t.setMiniplayerSize=function(a){this.currentMiniplayerSize=this.clamp(a);var W;(W=this.JSC$17716_resizers)==null||W.setSize(this.currentMiniplayerSize)};
_.t.clamp=function(a){return _.M9(192,a,720)};
_.t.registerViewTransitionTasks=function(){var a=this,W=_.K().resolve(_.Vv(_.kL));if(W){var w={beforeTransition:function(){a.hostElement&&(a.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){a.hostElement&&(a.hostElement.style.viewTransitionName="")}};
mN(W,"slide",w);mN(W,"zoom",w)}};
_.dU.Object.defineProperties(Dc.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.r("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.P_("CONTINUE_WATCHING",void 0,"Continue watching")};var a;if((a=this.externalPlaylistData)==null?0:a.contents)return this.externalPlaylistData.titleText;var W;return(W=this.data)==null?void 0:W.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.externalPlaylistData)==null?0:a.contents){var W;return(W=_.kRU(this.externalPlaylistData))==null?void 0:W.title}var w;return(w=this.data)==null?void 0:w.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var a,W,w,Z;return((a=this.externalPlaylistData)==null?void 0:a.currentIndex)!==void 0&&((W=this.externalPlaylistData)==null?0:W.totalVideos)&&!((w=this.data)==null?0:(Z=w.playlistData)==null?0:Z.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.RoU(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.r("kevlar_watch_while_counterfactual")}}});
Dc.prototype.onIsDisabledChanged=Dc.prototype.onIsDisabledChanged;Dc.prototype.readyToResumeVeChanged=Dc.prototype.readyToResumeVeChanged;Dc.prototype.premiumBrandingChanged=Dc.prototype.premiumBrandingChanged;Dc.prototype.onPlayerVeChange=Dc.prototype.onPlayerVeChange;Dc.prototype.hasPlaylistDataChanged=Dc.prototype.hasPlaylistDataChanged;_.f([_.R(_.x4.YtPlayerListenerBehavior),_.z("design:type",_.bj)],Dc.prototype,"ytPlayerListenerBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Dc.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Dc.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Dc.prototype,"ytdReduxBehavior",void 0);_.f([_.w$("#draggable"),_.z("design:type",HTMLDivElement)],Dc.prototype,"draggableContainer",void 0);
_.f([_.w$("#resize-container"),_.z("design:type",HTMLDivElement)],Dc.prototype,"JSC$17716_resizeContainer",void 0);_.f([_.w$("#video-container"),_.z("design:type",HTMLDivElement)],Dc.prototype,"videoContainer",void 0);_.f([_.w$("#player-container"),_.z("design:type",HTMLDivElement)],Dc.prototype,"playerContainer",void 0);_.f([_.w$("#playlist"),_.z("design:type",HTMLDivElement)],Dc.prototype,"JSC$17716_playlistPanel",void 0);_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"active",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"hasNoData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"enabled",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"expanded",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"readyToResume",void 0);
_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"isDisabled",void 0);_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"externalPlaylistData",void 0);_.f([_.b(),_.z("design:type",Array)],Dc.prototype,"premiumBadges",void 0);_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"toastData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"watchWhile",void 0);_.f([_.b(),_.z("design:type",Boolean)],Dc.prototype,"premiumBranding",void 0);
_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"playerState",void 0);_.f([_.b(),_.z("design:type",Boolean)],Dc.prototype,"continueWatching",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Dc.prototype,"verticalAttachment",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Dc.prototype,"horizontalAttachment",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"isAnimatingFade",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"isAnimatingSnap",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"isAnimatingExpand",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"isDragging",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"playerHidden",void 0);
_.f([_.b({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.z("design:type",Object)],Dc.prototype,"playlistData",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.z("design:type",Object)],Dc.prototype,"hasPlaylistData",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"closed",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dc.prototype,"expandedClosed",void 0);
_.f([_.b({selector:_.e_S}),_.z("design:type",Boolean)],Dc.prototype,"isSingleOptionSurveyActive",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.i8}),_.z("design:type",Boolean)],Dc.prototype,"isWatchPage",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("watchWhile"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dc.prototype,"showInfoBar",null);_.f([_.Q("premiumBadges","showInfoBar"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dc.prototype,"showOverlayPremiumBadges",null);
_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"watchResponse",void 0);_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"miniplayerRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"playabilityStatus",void 0);_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"playerVe",void 0);_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"expandVe",void 0);_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"closeVe",void 0);
_.f([_.b(),_.z("design:type",Object)],Dc.prototype,"readyToResumeCloseVe",void 0);_.f([_.b(),_.z("design:type",_.cG)],Dc.prototype,"readyToResumeVe",void 0);_.f([_.b(),_.z("design:type",_.cG)],Dc.prototype,"resizeVe",void 0);_.f([_.b(),_.z("design:type",_.cG)],Dc.prototype,"repositionVe",void 0);_.f([_.a5("hasPlaylistData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dc.prototype,"hasPlaylistDataChanged",null);
_.f([_.a5("playerVe"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dc.prototype,"onPlayerVeChange",null);_.f([_.a5("premiumBranding"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dc.prototype,"premiumBrandingChanged",null);_.f([_.a5("readyToResumeVe"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dc.prototype,"readyToResumeVeChanged",null);
_.f([_.a5("isDisabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dc.prototype,"onIsDisabledChanged",null);_.f([_.Q("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dc.prototype,"miniplayerSubtitle",null);_.f([_.Q("data.miniplayerTitle","externalPlaylistData"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dc.prototype,"miniplayerTitle",null);
_.f([_.Q("externalPlaylistData","continueWatching"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dc.prototype,"playlistIndexMessage",null);_.f([_.b({reflectToAttribute:!0}),_.Q("playabilityStatus"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dc.prototype,"showErrorScreen",null);_.f([_.b({reflectToAttribute:!0}),_.Q("watchWhile"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dc.prototype,"watchWhileHidden",null);
_.r("ytd_miniplayer_to_wiz")||_.D(Dc,"ytd-miniplayer",function(){if(ren===void 0){var a=document.createElement("template");_.n(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
a.content.insertBefore(ppn().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(_.y().content.cloneNode(!0),a.content.firstChild);ren=a}a=ren;return a},{mode:2});var j3f;var Vh=function(){var a=_.u.apply(this,arguments)||this;a.useListItemStyles=_.r("web_list_item_style_for_menu_items");a.systemIcons=_.r("kevlar_system_icons");return a};
_.c(Vh,_.u);_.t=Vh.prototype;_.t.ready=function(){this.hostElement.addEventListener("tap",_.yV(this,this.onEndpointTapExtra))};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.t.onFocus=function(){var a;(a=_.M(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.t.onEndpointTapExtra=function(a){_.E$(this.hostElement,"iron-activate");var W=this.data.navigationEndpoint;W&&_.A(W,_.N6S)&&(a.stopPropagation(),_.N1(this.hostElement,[W],this.hostElement))};
_.t.computeIcon=function(a){return a&&a.iconType?_.EN(a.iconType):""};
_.t.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.t.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.t.forceUpdateStylesOnLegacyBrowsers=function(){_.r("kevlar_legacy_browsers")&&_.Hu(this.hostElement)};
Vh.prototype.forceUpdateStylesOnLegacyBrowsers=Vh.prototype.forceUpdateStylesOnLegacyBrowsers;Vh.prototype.onFocus=Vh.prototype.onFocus;_.f([_.R(_.xZ),_.z("design:type",Object)],Vh.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(_.gre.YtConditionalRendererBehavior),_.z("design:type",Object)],Vh.prototype,"ytConditionalRendererBehavior",void 0);_.f([_.R(_.wn.YtEndpointBehavior),_.z("design:type",Object)],Vh.prototype,"ytEndpointBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Vh.prototype,"data",void 0);_.f([_.b({computed:"computeIcon(data.icon)",value:""}),_.z("design:type",String)],Vh.prototype,"icon",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Vh.prototype,"useIcons",void 0);_.f([_.b({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Vh.prototype,"hasSeparator",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Vh.prototype,"useListItemStyles",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Vh.prototype,"systemIcons",void 0);_.f([_.E6("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vh.prototype,"onFocus",null);_.f([_.a5("useIcons","hasSeparator"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vh.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.D(Vh,"ytd-menu-navigation-item-renderer",function(){if(j3f===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);j3f=a}a=j3f;return a},{mode:1});var L7z;var Jea=_.b8(_.P_("DOWNLOAD",{},"Download")),F7i=_.b8(_.P_("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),MNi=_.b8(_.P_("RETRY",{},"Retry")),RN0=_.b8(_.P_("PAUSE_DOWNLOADING",{},"Pause downloading")),qDn=_.b8(_.P_("RESUME_DOWNLOAD",{},"Resume download")),zJ=function(){var a=_.u.apply(this,arguments)||this;a.primaryText=Jea;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};
_.c(zJ,_.u);_.t=zJ.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.t.onFocus=function(){this.primaryEntry.focus()};
_.t.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.t.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.t.getRemoveAction=function(){return"ACTION_REMOVE"};
_.t.sendOfflineAction=function(a){var W=this.data.serviceEndpoint;if(W){var w=_.A(W,_.Be);w&&a&&(w.action=a);this.ytComponentBehavior.resolveCommand(W)}};
_.t.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=Jea,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=Jea;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=MNi;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=F7i;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=qDn;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=F7i;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
RN0;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=F7i;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=F7i;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=Jea,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.t.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.t.isSecondaryEntryHidden=function(a,W){return a?!0:!W};
_.t.computeHasSeparator=function(){var a;return!((a=this.data)==null||!a.hasSeparator)};
zJ.prototype.showHideButton=zJ.prototype.showHideButton;zJ.prototype.onTransferStateChange=zJ.prototype.onTransferStateChange;zJ.prototype.onFocus=zJ.prototype.onFocus;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],zJ.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],zJ.prototype,"ytComponentBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],zJ.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],zJ.prototype,"primaryText",void 0);_.f([_.b(),_.z("design:type",String)],zJ.prototype,"primaryIconType",void 0);_.f([_.b(),_.z("design:type",String)],zJ.prototype,"primaryAction",void 0);_.f([_.b(),_.z("design:type",Object)],zJ.prototype,"secondaryText",void 0);_.f([_.b(),_.z("design:type",String)],zJ.prototype,"secondaryIconType",void 0);
_.f([_.b(),_.z("design:type",String)],zJ.prototype,"secondaryAction",void 0);_.f([_.b(),_.z("design:type",Object)],zJ.prototype,"hasSecondaryContent",void 0);_.f([_.b({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.z("design:type",Object)],zJ.prototype,"hasSeparator",void 0);_.f([_.b({selector:_.cJ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.z("design:type",String)],zJ.prototype,"transferState",void 0);
_.f([_.b({selector:_.VTC,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.z("design:type",Object)],zJ.prototype,"isVideoDeletedByUser",void 0);_.f([_.b(),_.z("design:type",Object)],zJ.prototype,"isHidden",void 0);_.f([_.b({selector:_.CHx,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.z("design:type",Object)],zJ.prototype,"offlineabilityState",void 0);_.f([_.w$("#primary-entry"),_.z("design:type",Object)],zJ.prototype,"primaryEntry",void 0);
_.f([_.E6("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zJ.prototype,"onFocus",null);_.f([_.lO("transferState","isVideoDeletedByUser"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zJ.prototype,"onTransferStateChange",null);_.f([_.lO("offlineabilityState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zJ.prototype,"showHideButton",null);
_.D(zJ,"ytd-menu-service-item-download-renderer",function(){if(L7z===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);L7z=a}a=L7z;return a},{mode:1});var Q3a;var Hm=function(){var a=_.u.apply(this,arguments)||this;a.useIcons=!1;a.systemIcons=_.r("kevlar_system_icons");a.useListItemStyles=_.r("web_list_item_style_for_menu_items");return a};
_.c(Hm,_.u);_.t=Hm.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.t.onFocus=function(){var a;(a=_.M(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.t.onTap=function(){_.W_(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var a=this.data.serviceEndpoint,W=this.data.command;if(a){var w,Z=(w=this.data)==null?void 0:w.trackingParams;w=!!_.A(a,_.cAV);Z&&w&&_.Cx().dispatch(_.E_({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:Z}}));this.ytComponentBehavior.resolveCommand(a)||_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}})}W&&(this.ytComponentBehavior.resolveCommand(W)||_.N1(this.hostElement,
[W],this.hostElement))};
_.t.computeIcon=function(a){return a&&a.iconType?_.EN(a.iconType):""};
_.t.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.t.computeHasSeparator=function(){var a;return!((a=this.data)==null||!a.hasSeparator)};
_.t.forceUpdateStylesOnLegacyBrowsers=function(){_.r("kevlar_legacy_browsers")&&_.Hu(this.hostElement)};
_.t.computeIsSelected=function(){var a;return!((a=this.data)==null||!a.isSelected)};
Hm.prototype.forceUpdateStylesOnLegacyBrowsers=Hm.prototype.forceUpdateStylesOnLegacyBrowsers;Hm.prototype.onTap=Hm.prototype.onTap;Hm.prototype.onFocus=Hm.prototype.onFocus;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],Hm.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Hm.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.gre.YtConditionalRendererBehavior),_.z("design:type",Object)],Hm.prototype,"ytConditionalRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Hm.prototype,"data",void 0);_.f([_.b({computed:"computeIcon(data.icon)",value:""}),_.z("design:type",String)],Hm.prototype,"icon",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hm.prototype,"useIcons",void 0);
_.f([_.b({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Hm.prototype,"hasSeparator",void 0);_.f([_.b({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Hm.prototype,"isSelected",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hm.prototype,"systemIcons",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hm.prototype,"useListItemStyles",void 0);
_.f([_.E6("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hm.prototype,"onFocus",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Hm.prototype,"onTap",null);_.f([_.a5("useIcons","hasSeparator"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hm.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.D(Hm,"ytd-menu-service-item-renderer",function(){if(Q3a===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);Q3a=a}a=Q3a;return a},{mode:2});var xv0;var yh=function(){return _.u.apply(this,arguments)||this};
_.c(yh,_.u);_.t=yh.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onDataChanged=function(){var a=this;_.DW(this,function(){a.postbox.openDialog();a.focus();_.E$(a.hostElement,"yt-refit")})};
_.t.focus=function(){this.postbox.focus()};
_.t.closePopup=function(){_.aV(this.hostElement,"yt-close-popup-action")};
_.t.onYtCommentboxDismiss=function(){this.closePopup()};
yh.prototype.onYtCommentboxDismiss=yh.prototype.onYtCommentboxDismiss;yh.prototype.onDataChanged=yh.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],yh.prototype,"data",void 0);_.f([_.b({value:function(){return _.P_("SBOX_INAPPROPRIATE_CANCEL")}}),
_.z("design:type",String)],yh.prototype,"closeButtonAriaLabel",void 0);_.f([_.w$("#postbox"),_.z("design:type",Object)],yh.prototype,"postbox",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yh.prototype,"onDataChanged",null);_.f([_.E6("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yh.prototype,"onYtCommentboxDismiss",null);
yh=_.f([_.C({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],yh);
_.D(yh,"ytd-backstage-post-dialog-popup-renderer",function(){if(xv0!==void 0)return xv0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return xv0=a},{mode:1});var bgi;var Ee=function(){return _.u.apply(this,arguments)||this};
_.c(Ee,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ee.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ee.prototype,"data",void 0);Ee=_.f([_.C({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Ee);
_.D(Ee,"ytd-sender-id-section-renderer",function(){if(bgi!==void 0)return bgi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
return bgi=a},{mode:1});var s3K;var uG0;var Cjd;var a_=function(){return _.u.apply(this,arguments)||this};
_.c(a_,_.u);a_.prototype.closePopup=function(){_.aV(this.hostElement,"yt-close-popup-action")};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],a_.prototype,"data",void 0);a_=_.f([_.TD({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],a_);
_.D(a_,"yt-community-post-section-renderer",function(){if(Cjd===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;uG0===void 0&&(uG0=document.createElement("template"));var Z=uG0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Cjd=a}a=Cjd;return a},{mode:2});var Gd2;var Dvz;var fH0;var dvi;var mvk;var VN2;var WV=function(){return _.u.apply(this,arguments)||this};
_.c(WV,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],WV.prototype,"data",void 0);WV=_.f([_.TD({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],WV);
_.D(WV,"yt-share-start-time-with-context-renderer",function(){if(VN2===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;mvk===void 0&&(mvk=document.createElement("template"));var Z=mvk;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);VN2=a}a=VN2;return a},{mode:2});var wp=function(){return _.u.apply(this,arguments)||this};
_.c(wp,_.u);wp.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],wp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],wp.prototype,"data",void 0);wp=_.f([_.TD({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],wp);
_.D(wp,"yt-share-panel-title-v15-renderer",function(){if(dvi===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;fH0===void 0&&(fH0=document.createElement("template"));var Z=fH0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);dvi=a}a=dvi;return a},{mode:2});var ZN=function(){return _.u.apply(this,arguments)||this};
_.c(ZN,_.u);ZN.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ZN.prototype,"data",void 0);ZN=_.f([_.TD({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],ZN);
_.D(ZN,"yt-share-panel-header-renderer",function(){if(Dvz===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Gd2===void 0&&(Gd2=document.createElement("template"));var Z=Gd2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Dvz=a}a=Dvz;return a},{mode:2});var zN0;var Hg2;var Ne=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-open-popup-action":"onOpen"};return a};
_.c(Ne,_.u);_.t=Ne.prototype;_.t.attached=function(){this.onOpen()};
_.t.updateTimeSecs=function(a){this.currentTimeSecs=a};
_.t.computeTimeString=function(a){a=a.toString();var W=Math.floor(Number(a)/3600),w=Math.floor(Number(a)%3600%60);return(W>0?W+":":"")+_.ZA(Math.floor(Number(a)%3600/60),W>0?2:1)+":"+_.ZA(w,2)};
_.t.computeTimeStringA11y=function(a){a=_.Hzm({seconds:a});var W=a.hours===void 0?0:a.hours,w=a.minutes===void 0?0:a.minutes,Z=a.seconds===void 0?0:a.seconds;a=[];if(W>0){var N=wZE().format({hours:W});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Lx)||W>9999)N=N.replace(W.toString(),_.y4I(W)),_.Lx==="km"&&(N=N.replace(".",","));a.push(N)}w>0&&a.push(wZE().format({minutes:w}));Z>0&&a.push(wZE().format({seconds:Z}));W="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");w=_.Lx==
"am"?"{0}\u1363 ":_.Lx=="fa"?"{0}\u060c\u200f ":_.Lx=="my"?"{0} - ":_.Lx=="ne"?"{0},":_.Lx=="th"?"{0} ":_.Lx=="ur"?"{0}\u060c ":_.Lx=="ar"||_.Lx=="ar-XB"?"{0} \u0648":_.Lx=="ja"||_.Lx=="zh-CN"||_.Lx=="zh-HK"||_.Lx=="zh-TW"?"{0}\u3001":"{0}, ";Z=_.Lx=="am"?"\u1363 ":_.Lx=="fa"?"\u060c\u200f ":_.Lx=="my"?" - ":_.Lx=="th"?" ":_.Lx=="ur"?"\u060c ":_.Lx=="ar"||_.Lx=="ar-XB"?" \u0648":_.Lx=="ja"||_.Lx=="zh-CN"||_.Lx=="zh-HK"||_.Lx=="zh-TW"?"\u3001":", ";N=_.Lx=="am"?" \u12a5\u1293 {0}":_.Lx=="as"?" \u0986\u09f0\u09c1 {0}":
_.Lx=="az"?" v\u0259 {0}":_.Lx=="bn"?" \u098f\u09ac\u0982 {0}":_.Lx=="cs"?" a\u00a0{0}":_.Lx=="de"?" und {0}":_.Lx=="el"?" \u03ba\u03b1\u03b9 {0}":_.Lx=="eu"?" eta {0}":_.Lx=="fa"?"\u060c \u0648 {0}":_.Lx=="fil"?", at {0}":_.Lx=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Lx=="hi"?", \u0914\u0930 {0}":_.Lx=="hu"?" \u00e9s {0}":_.Lx=="hy"?" \u0587 {0}":_.Lx=="id"?", dan {0}":_.Lx=="iw"?" \u05d5-{0}":_.Lx=="ja"?"\u3001{0}":_.Lx=="ka"?" \u10d3\u10d0 {0}":_.Lx=="km"?" \u1793\u17b7\u1784 {0}":_.Lx=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Lx=="ko"?" \ubc0f {0}":_.Lx=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Lx=="lt"?" ir {0}":_.Lx=="lv"?" un {0}":_.Lx=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Lx=="mr"?" \u0906\u0923\u093f {0}":_.Lx=="ms"?" dan {0}":_.Lx=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Lx=="ne"?" \u0930 {0}":_.Lx=="or"?", \u0b13 {0}":_.Lx=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Lx=="ro"?" \u0219i {0}":_.Lx=="si"?", \u0dc3\u0dc4 {0}":_.Lx=="sk"?" a {0}":_.Lx=="sl"?" in {0}":_.Lx=="sq"?" dhe {0}":_.Lx=="sv"?" och {0}":
_.Lx=="sw"?" na {0}":_.Lx=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Lx=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Lx=="th"?" \u0e41\u0e25\u0e30{0}":_.Lx=="tr"?" ve {0}":_.Lx=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Lx=="uz"?" va {0}":_.Lx=="vi"?" v\u00e0 {0}":_.Lx=="zh-HK"?"\u53ca{0}":_.Lx=="zu"?", ne-{0}":_.Lx=="af"||_.Lx=="nl"?" en {0}":_.Lx=="ar"||_.Lx=="ar-XB"?" \u0648{0}":_.Lx=="be"||_.Lx=="uk"?" \u0456 {0}":_.Lx=="en-GB"||_.Lx=="en-IN"?" and {0}":_.Lx=="en"||_.Lx=="en-XA"?
", and {0}":_.Lx=="et"||_.Lx=="fi"?" ja {0}":_.Lx=="fr"||_.Lx=="fr-CA"?" et {0}":_.Lx=="zh-CN"||_.Lx=="zh-TW"?"\u548c{0}":_.Lx=="da"||_.Lx=="is"||_.Lx=="no"?" og {0}":_.Lx=="es"||_.Lx=="es-419"||_.Lx=="es-US"?" y {0}":_.Lx=="kk"||_.Lx=="lo"||_.Lx=="mn"?", {0}":_.Lx=="bg"||_.Lx=="mk"||_.Lx=="ru"||_.Lx=="sr"?" \u0438 {0}":_.Lx=="gl"||_.Lx=="it"||_.Lx=="pt-BR"||_.Lx=="pt-PT"?" e {0}":" i {0}";var B=_.Lx=="am"?"{0} \u12a5\u1293 {1}":_.Lx=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Lx=="az"?"{0} v\u0259 {1}":
_.Lx=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Lx=="de"?"{0} und {1}":_.Lx=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Lx=="eu"?"{0} eta {1}":_.Lx=="fa"?"{0} \u0648 {1}":_.Lx=="fil"?"{0} at {1}":_.Lx=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Lx=="hi"?"{0} \u0914\u0930 {1}":_.Lx=="hu"?"{0} \u00e9s {1}":_.Lx=="hy"?"{0} \u0587 {1}":_.Lx=="iw"?"{0} \u05d5-{1}":_.Lx=="ja"?"{0}\u3001{1}":_.Lx=="ka"?"{0} \u10d3\u10d0 {1}":_.Lx=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Lx=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Lx=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Lx=="ko"?"{0} \ubc0f {1}":_.Lx=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Lx=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Lx=="lt"?"{0} ir {1}":_.Lx=="lv"?"{0} un {1}":_.Lx=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Lx=="mn"?"{0}, {1}":_.Lx=="mr"?"{0} \u0906\u0923\u093f {1}":_.Lx=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Lx=="ne"?"{0} \u0930 {1}":_.Lx=="or"?"{0} \u0b13 {1}":_.Lx=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Lx=="ro"?"{0} \u0219i {1}":_.Lx==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Lx=="sl"?"{0} in {1}":_.Lx=="sq"?"{0} dhe {1}":_.Lx=="sv"?"{0} och {1}":_.Lx=="sw"?"{0} na {1}":_.Lx=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Lx=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Lx=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Lx=="tr"?"{0} ve {1}":_.Lx=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Lx=="uz"?"{0} va {1}":_.Lx=="vi"?"{0} v\u00e0 {1}":_.Lx=="zh-HK"?"{0}\u53ca{1}":_.Lx=="zu"?"{0} ne-{1}":_.Lx=="af"||_.Lx=="nl"?"{0} en {1}":_.Lx=="ar"||_.Lx==
"ar-XB"?"{0} \u0648{1}":_.Lx=="be"||_.Lx=="uk"?"{0} \u0456 {1}":_.Lx=="cs"||_.Lx=="sk"?"{0} a\u00a0{1}":_.Lx=="et"||_.Lx=="fi"?"{0} ja {1}":_.Lx=="fr"||_.Lx=="fr-CA"?"{0} et {1}":_.Lx=="id"||_.Lx=="ms"?"{0} dan {1}":_.Lx=="zh-CN"||_.Lx=="zh-TW"?"{0}\u548c{1}":_.Lx=="da"||_.Lx=="is"||_.Lx=="no"?"{0} og {1}":_.Lx=="es"||_.Lx=="es-419"||_.Lx=="es-US"?"{0} y {1}":_.Lx=="bg"||_.Lx=="mk"||_.Lx=="ru"||_.Lx=="sr"?"{0} \u0438 {1}":_.Lx=="en"||_.Lx=="en-GB"||_.Lx=="en-IN"||_.Lx=="en-XA"?"{0} and {1}":_.Lx==
"gl"||_.Lx=="it"||_.Lx=="pt-BR"||_.Lx=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Lx==="sq"?(N=N.replace("dhe","e"),B=B.replace("dhe","e")):_.Lx==="th"?(Z=Z.replace("{0}"," {0}"),B=B.replace("{0}","{0} "),B=B.replace("{1}"," {1}")):_.Lx==="ne"?Z=",":_.Lx==="zh-CN"?Z="":W.includes(_.Lx)&&(Z=" ");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(_.Lx)?a.length===2?
B.replace("{0}",a[0]).replace("{1}",a[1]):w.replace("{0}",a[0])+a.slice(1,-1).join(Z)+N.replace("{0}",a[a.length-1]):a.join(Z)};
_.t.getTimeParam=function(){return AGX(this.timeString)};
_.t.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var a={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},W;_.lM(_.$J(),(W=this.data)==null?void 0:W.trackingParams,a,7)};
_.t.onChangeStartAtTimestamp=function(){for(var a=this.startAtTimestamp.value.split(":"),W=0,w=1,Z=a.length-1;Z>=0;Z--)W+=Number(a[Z])*w,w*=60;this.updateTimeSecs(W);this.setTimestamp()};
_.t.onOpen=function(){var a=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var W=_.fA();W?W.getPlayerPromise().then(function(w){w=w.getCurrentTime();a.updateTimeSecs(w)}):aWf()&&this.updateTimeSecs(aWf())};
_.t.setTimestamp=function(){var a=Math.floor(this.currentTimeSecs);_.aV(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!a,timestamp:a||""}])};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Ne.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ne.prototype,"data",void 0);_.f([_.b({value:!1,notify:!0}),_.z("design:type",Boolean)],Ne.prototype,"isStartAtChecked",void 0);_.f([_.b(),_.z("design:type",Number)],Ne.prototype,"currentTimeSecs",void 0);
_.f([_.b({computed:"computeTimeString(currentTimeSecs)"}),_.z("design:type",String)],Ne.prototype,"timeString",void 0);_.f([_.b({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.z("design:type",String)],Ne.prototype,"timeStringA11y",void 0);_.f([_.w$("#start-at-timestamp"),_.z("design:type",Object)],Ne.prototype,"startAtTimestamp",void 0);Ne=_.f([_.TD({is:"yt-start-at-renderer",disableElementRegistration:!0})],Ne);
_.D(Ne,"yt-start-at-renderer",function(){if(Hg2===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;zN0===void 0&&(zN0=document.createElement("template"));var Z=zN0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Hg2=a}a=Hg2;return a},{mode:2});var yez;var E40;var aqd=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"]]),WxX=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"]]),w3i=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var ZG2={};ZG2.YtBindingExpressionsBehavior={identity:_.ue,msg:function(a,W){W=W===void 0?{}:W;return _.P_(a,W,a)},
msgPlural:function(a,W){return _.Xz(a,W)},
getMusicIconFromType:function(a){if(_.r("music_web_enable_icon_wil"))a=_.EN(a);else if(WxX.has(a))a="yt-sys-icons:"+WxX.get(a);else{var W=aqd.get(a)||_.EN(a).split(":")[1];W=_.mCH(W);var w;a=((w=w3i.get(a))!=null?w:"yt-sys-icons:")+W}return a}};var Nya;var tO2;var $Q9;var Byz=document.head,lqK=Byz.appendChild,Iqk;if($Q9===void 0){var Prz=document.createElement("template");_.n(Prz,'\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>');$Q9=Prz}Iqk=$Q9;lqK.call(Byz,Iqk.content);var ta=function(){var a=_.u.apply(this,arguments)||this;a.screenLayer=7;return a};
_.c(ta,_.u);ta.prototype.getScreenLayer=function(){return this.screenLayer};
ta.prototype.onTap=function(a){a&&a.detail&&(a.detail.x||a.detail.y)&&_.M(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Z9(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(a=this.getScreenLayer(),_.E$(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()}}})};
_.dU.Object.defineProperties(ta.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()}}});
ta.prototype.onTap=ta.prototype.onTap;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ta.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ta.prototype,"data",void 0);_.f([_.Q("data.title"),_.z("design:type",Object),_.z("design:paramtypes",[])],ta.prototype,"title",null);
_.f([_.Q("data.serviceName"),_.z("design:type",String),_.z("design:paramtypes",[])],ta.prototype,"icon",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ta.prototype,"onTap",null);ta=_.f([_.TD({is:"yt-share-target-renderer",disableElementRegistration:!0})],ta);
_.D(ta,"yt-share-target-renderer",function(){if(tO2===void 0){var a=document.createElement("template");_.n(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" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Nya===void 0&&(Nya=document.createElement("template"));var Z=Nya;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);tO2=a}a=tO2;return a},{mode:2});var X3n;var vtE;var $9=function(){var a=_.u.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};
_.c($9,_.u);_.t=$9.prototype;_.t.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.t.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.M(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.M(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.t.onReset_=function(){if(_.M(this.hostElement).querySelector("#list")){var a=_.M(this.hostElement).querySelector("#list");var W=_.M(this.hostElement).querySelector("#list");var w=W.offsetLeft,Z=W.offsetParent;Z||_.M0E(W)!="fixed"||(Z=_.hv(W).documentElement);if(Z){if(_.IY&&!_.Xk(58)){var N=_.C9A(Z);w+=N.left}else Number(_.vrU)>=8&&!(Number(_.vrU)>=9)&&(N=_.C9A(Z),w-=N.left);W=_.sEl(Z)?Z.clientWidth-(w+W.offsetWidth):w}else W=w;dXD(a,W);this.updateScrollButtons_()}};
_.t.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.t.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.t.onScrollWheel_=function(a){a.stopPropagation();a.preventDefault();var W=fKi(_.M(this.hostElement).querySelector("#list"));a=Math.abs(a.deltaX)>Math.abs(a.deltaY)?a.deltaX:a.deltaY;dXD(_.M(this.hostElement).querySelector("#list"),W+a);this.updateScrollButtons_()};
_.t.smoothScrollByOnePage_=function(a){var W=_.M(this.hostElement).querySelector("#list"),w=(Math.floor(W.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,Z=fKi(W),N=w*(a?1:-1),B=this.PAGE_SCROLL_SPEED,I=this.updateScrollButtons_.bind(this),X=0,v;(function O(){X+=B;v=X/w*2;dXD(W,Z+N*(v<1?v*v:-v*v+4*v-2));X<w?window.requestAnimationFrame(O):I()})()};
_.t.updateScrollButtons_=function(){var a=fKi(_.M(this.hostElement).querySelector("#list")),W=_.M(this.hostElement).querySelector("#list").scrollWidth-_.M(this.hostElement).querySelector("#list").clientWidth;_.M(this.hostElement).querySelector("#scroll-button-back").hidden=a<=0;_.M(this.hostElement).querySelector("#scroll-button-forward").hidden=a>=W};
$9.prototype.onScrollWheel_=$9.prototype.onScrollWheel_;$9.prototype.onDataChanged_=$9.prototype.onDataChanged_;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],$9.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(ZG2.YtBindingExpressionsBehavior),_.z("design:type",Object)],$9.prototype,"ytBindingExpressionsBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$9.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$9.prototype,"onDataChanged_",null);_.f([_.E6("wheel"),_.z("design:type",Function),_.z("design:paramtypes",[WheelEvent]),_.z("design:returntype")],$9.prototype,"onScrollWheel_",null);
$9=_.f([_.TD({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],$9);
_.D($9,"yt-third-party-share-target-section-renderer",function(){if(vtE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;X3n===void 0&&(X3n=document.createElement("template"));var Z=X3n;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);vtE=a}a=vtE;return a},{mode:2});var BV=function(){return _.u.apply(this,arguments)||this};
_.c(BV,_.u);BV.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"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],BV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],BV.prototype,"data",void 0);BV=_.f([_.TD({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],BV);
_.D(BV,"yt-third-party-network-section-renderer",function(){if(E40===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;yez===void 0&&(yez=document.createElement("template"));var Z=yez;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);E40=a}a=E40;return a},{mode:2});_.Ct(_.xQ(function(a){return _.k("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.k("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.k(_.Ax,{data:function(){return a.data().firstPartyItems}},{listItemViewModel:_.Yy})))},"hg"),"first-party-network-section-view-model",{props:{data:_.qR}});var gtk=_.ma(["data:image/svg+xml;charset=UTF-8;base64,",""]),lU=function(){var a=_.u.apply(this,arguments)||this;a.screenLayer=7;a.qrCodeEnabled=_.r("web_enable_sharing_qr_code");a.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return a};
_.c(lU,_.u);_.t=lU.prototype;_.t.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"}}}};
_.t.attached=function(){this.JSC$17768_scroller&&(this.JSC$17768_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17768_scroller.attached&&typeof this.JSC$17768_scroller.attached==="function"&&this.JSC$17768_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.t.onDataChanged=function(){var a=this,W;(W=this.data)!=null&&W.contents&&(this.hostElement.setAttribute("links-only","true"),_.VV(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.DW(this,function(){_.E$(a.hostElement,"yt-refit");a.focusSharePanelHeader()}))};
_.t.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.t.handleSetTimestamp=function(a){var W=this.shortUrl();a.isSet&&(W=_.uE(W,"t",a.timestamp));this.maybeRenderQrCode(W)};
_.t.shortUrl=function(){var a,W=(a=this.data)==null?void 0:a.contents;if(W)for(a=0;a<W.length;a++){var w=void 0,Z=void 0;if((w=W[a])==null?0:(Z=w.thirdPartyNetworkSection)==null?0:Z.copyLinkContainer){var N=Z=w=void 0;return(N=_.A((w=W[a])==null?void 0:(Z=w.thirdPartyNetworkSection)==null?void 0:Z.copyLinkContainer,VGX))==null?void 0:N.shortUrl}}};
_.t.maybeRenderQrCode=function(a){var W=this,w,Z,N,B,I,X,v,U,O;return _.P(function(S){if(S.nextAddress==1){w=_.M(W.hostElement).querySelector("#qr-code");if(!W.qrCodeEnabled||!a)return w&&(w.style.display="none"),S.return();Z=_.BeU(_.K().resolve(_.ad),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});N=document.createElement("div");return typeof Z==="function"?(Z(N),S.jumpTo(2)):_.g(S,Z,3)}S.nextAddress!=2&&(B=S.yieldResult,B(N));v=(I=N)==null?void 0:(X=I.firstChild)==null?void 0:X.firstChild;
U=document.createElement("img");O=_.Kv(gtk,btoa(v.outerHTML));U.onload=function(){var T={canvas:w,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:U},p=new rsI;ns0(p,a);jmX(p,!1,LmD(p));var h=p.modules,L=Object.assign({},ex9,T);h=structuredClone(h);T=h.length;var F,x=(F=L.canvas)!=null?F:document.createElement("canvas");F=L.cellSize;p=L.logo;var G,V=(G=L.logoSize)!=null?G:Math.floor(T/4);T%2!==V%2&&V++;var d=L.logoPadding,ZD=L.backgroundColor;G=T*F;var aC=
L.width,Bv=0;aC&&(Bv=L.padding,Bv=Math.ceil(Bv*G/(aC-Bv*2)),x.style.width=aC+"px",x.style.height=aC+"px");x.width!==G+Bv*2&&(x.width=G+Bv*2);x.height!==G+Bv*2&&(x.height=G+Bv*2);G=x.getContext("2d");L.autoClear&&G.clearRect(0,0,x.width,x.height);G.fillStyle=ZD;G.beginPath();G.roundRect(0,0,x.width,x.height,L.borderRadius);G.fill();G.save();G.translate(Bv,Bv);if(p)for(x=Math.floor(T-V)/2-d,d=Math.floor(T+V)/2+d,ZD=x;ZD<d;ZD++)for(aC=x;aC<d;aC++)h[ZD][aC]=!1;for(x=0;x<T;x++)for(d=0;d<T;d++)(x<7&&d<
7||x<7&&d>=T-7||x>=T-7&&d<7)&&(h[x][d]=!1);var Am;x=(Am=L.markerColor)!=null?Am:L.color;Fmn(G,0,0,F,x);Fmn(G,F*(T-7),0,F,x);Fmn(G,0,F*(T-7),F,x);switch(L.cellStyle){case 0:Am=h;h=Am.length;x=L.cellSize;G.beginPath();for(d=0;d<h;d++)for(ZD=0;ZD<h;ZD++)Am[d][ZD]&&G.rect(d*x,ZD*x,x,x);G.fillStyle=L.color;G.fill();break;case 1:Am=h;h=Am.length;x=L.cellSize;d=x*L.relativeCircleSize;G.fillStyle=L.color;G.beginPath();for(L=0;L<h;L++)for(ZD=0;ZD<h;ZD++)Am[L][ZD]&&(G.beginPath(),G.ellipse((L+.5)*x,(ZD+.5)*
x,d/2,d/2,0,0,2*Math.PI),G.fill());G.fill();break;case 2:Am=h;h=Am.length;x=L.cellSize;G.fillStyle=L.color;L=[[1,1],[-1,1],[-1,-1],[1,-1]];G.beginPath();for(d=0;d<h;d++)for(ZD=0;ZD<h;ZD++)if(Am[d][ZD])G.roundRect(d*x,ZD*x,x,x,x/2),d+1<h&&Am[d+1][ZD]&&G.rect(d*x+x/2,ZD*x,x,x),ZD+1<h&&Am[d][ZD+1]&&G.rect(d*x,ZD*x+x/2,x,x);else{aC=d*x+x/2;Bv=ZD*x+x/2;for(var e9=0;e9<4;e9++){var cv=_.l(L[e9]),C7=cv.next().value;cv=cv.next().value;d+C7>=0&&d+C7<h&&ZD+cv>=0&&ZD+cv<h&&Am[d+C7][ZD]&&Am[d][ZD+cv]&&Am[d+C7][ZD+
cv]&&(C7=e9*Math.PI/2,cv=x/2,G.moveTo(aC+cv*Math.cos(C7),Bv+cv*Math.sin(C7)),G.arc(aC,Bv,x/2,C7,C7+Math.PI/2,!1),G.lineTo(aC+cv*(Math.cos(C7)-Math.sin(C7)),Bv+cv*(Math.cos(C7)+Math.sin(C7))),G.lineTo(aC+cv*Math.cos(C7),Bv+cv*Math.sin(C7)))}}G.fill()}p&&G.drawImage(p,(T-V)*F/2,(T-V)*F/2,V*F,V*F);G.restore();w.style.removeProperty("display")};
U.src=_.oJ(O);_.Xd(S)})};
_.t.hasCommunityPostRenderer=function(){var a,W,w,Z;return!!((a=this.data)==null?0:(W=a.header)==null?0:(w=W.sharePanelHeaderRenderer)==null?0:(Z=w.communityPost)==null?0:Z.communityPostSectionRenderer)};
_.t.onTapClose=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.t.getScreenLayer=function(){return this.screenLayer};
_.t.logSharePanelPage=function(){if(!_.r("enable_share_panel_navigation_logging_fix_on_web")){var a;if((a=this.data)!=null&&a.trackingParams){a=this.data.trackingParams;var W=this.parentClickTrackingParams;W=W?_.PX(W):void 0;var w=_.$J();_.NJ(w,21760,W,{layer:7,parentLayer:0});w.graftServerVe(a,void 0,7);_.Cx().dispatch(_.E_({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
lU.prototype.onDataChanged=lU.prototype.onDataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],lU.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],lU.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],lU.prototype,"data",void 0);_.f([_.b({value:_.P_("SBOX_INAPPROPRIATE_CANCEL")}),_.z("design:type",String)],lU.prototype,"closeButtonAriaLabel",void 0);_.f([_.w$("yt-share-panel-header-renderer"),_.z("design:type",HTMLElement)],lU.prototype,"header",void 0);_.f([_.b({selector:function(a){return a.share.parentClickTrackingParams}}),
_.z("design:type",String)],lU.prototype,"parentClickTrackingParams",void 0);_.f([_.b(),_.z("design:type",Object)],lU.prototype,"qrCodeEnabled",void 0);_.f([_.w$("#scroller"),_.z("design:type",Object)],lU.prototype,"JSC$17768_scroller",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lU.prototype,"onDataChanged",null);lU=_.f([_.C({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],lU);
_.D(lU,"ytd-unified-share-panel-renderer",function(){if(s3K!==void 0)return s3K;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return s3K=a},{mode:1});var otK;var I_=function(){var a=_.u.apply(this,arguments)||this;a.modernModal=_.r("kevlar_sign_in_modal_modernization");return a};
_.c(I_,_.u);I_.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
I_.prototype.computeShouldHideOldButtons=function(){var a;return!((a=this.data)==null?0:a.button)};
_.dU.Object.defineProperties(I_.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var a,W;if(this.modernModal&&((a=this.data)==null?0:(W=a.button)==null?0:W.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var w,Z;return(w=this.data)==null?void 0:(Z=w.button)==null?void 0:Z.buttonRenderer}}});
_.f([_.b(),_.z("design:type",Object)],I_.prototype,"data",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],I_.prototype,"ytEventForwardingBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],I_.prototype,"modernModal",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],I_.prototype,"buttonRendererData",null);
I_=_.f([_.C({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],I_);
_.D(I_,"ytd-modal-with-title-and-button-renderer",function(){if(otK!==void 0)return otK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return otK=a},{mode:1});var kAf;var PV=function(){return _.u.apply(this,arguments)||this};
_.c(PV,_.u);PV.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("page-changed",this.page))};
PV.prototype.pageChangedForBinding=PV.prototype.pageChangedForBinding;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],PV.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],PV.prototype,"page",void 0);_.f([_.a5("page"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PV.prototype,"pageChangedForBinding",null);
PV=_.f([_.C({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],PV);
_.D(PV,"ytd-account-item-section-header-renderer",function(){if(kAf!==void 0)return kAf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return kAf=a},{mode:1});var UQi;var XA=function(){return _.u.apply(this,arguments)||this};
_.c(XA,_.u);XA.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"}}}};
XA.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],XA.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.j8),_.z("design:type",Object)],XA.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],XA.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!1}),_.z("design:type",Function)],XA.prototype,"onAccountItemTap",void 0);
XA=_.f([_.C({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],XA);
_.D(XA,"ytd-account-item-section-renderer",function(){if(UQi!==void 0)return UQi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return UQi=a},{mode:1});var OG9;var SYI;var vV=function(){return _.u.apply(this,arguments)||this};
_.c(vV,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vV.prototype,"data",void 0);vV=_.f([_.C({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],vV);
_.D(vV,"ytd-accounts-dialog-header-renderer",function(){if(SYI!==void 0)return SYI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return SYI=a},{mode:1});var YYf;var gp=function(){return _.u.apply(this,arguments)||this};
_.c(gp,_.u);gp.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],gp.prototype,"data",void 0);gp=_.f([_.C({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],gp);
_.D(gp,"ytd-google-account-header-renderer",function(){if(YYf!==void 0)return YYf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return YYf=a},{mode:1});var o_=function(){return _.u.apply(this,arguments)||this};
_.c(o_,_.u);o_.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"}}}};
o_.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("page-changed",this.page))};
o_.prototype.pageChangedForBinding=o_.prototype.pageChangedForBinding;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],o_.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],o_.prototype,"page",void 0);
_.f([_.a5("page"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o_.prototype,"pageChangedForBinding",null);o_=_.f([_.C({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],o_);
_.mV()(o_,"ytd-account-section-list-renderer",function(){if(OG9===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);OG9=a}a=OG9;return a},{allowedProps:["data"],
mode:1});var TyI;var k9=function(){var a=_.u.apply(this,arguments)||this;a.enableHandlesAccountMenuSwitcher=_.r("enable_handles_account_menu_switcher");return a};
_.c(k9,_.u);k9.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
k9.prototype.dataChanged=k9.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],k9.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],k9.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.f([_.w$("#avatar"),_.z("design:type",Object)],k9.prototype,"avatar",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],k9.prototype,"dataChanged",null);k9=_.f([_.C({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],k9);
_.mV()(k9,"ytd-active-account-header-renderer",function(){if(TyI===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);TyI=a}a=TyI;return a},{allowedProps:["data"],
mode:1});var Kx0;var p3D;var Uk=function(){return _.u.apply(this,arguments)||this};
_.c(Uk,_.u);Uk.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Uk.prototype.onBackTap=function(){_.E$(this.hostElement,"yt-menu-back-tapped")};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Uk.prototype,"data",void 0);Uk=_.f([_.C({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Uk);
_.mV()(Uk,"ytd-simple-menu-header-renderer",function(){if(p3D===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);p3D=a}a=p3D;return a},{allowedProps:["data"],
mode:2});var r8K;var Ok=function(){return _.u.apply(this,arguments)||this};
_.c(Ok,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ok.prototype,"data",void 0);Ok=_.f([_.C({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Ok);
_.D(Ok,"ytd-comment-video-thumbnail-header-renderer",function(){if(r8K!==void 0)return r8K;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return r8K=a},{mode:1});var A80;var Sc=function(){return _.u.apply(this,arguments)||this};
_.c(Sc,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Sc.prototype,"data",void 0);Sc=_.f([_.C({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Sc);
_.D(Sc,"ytd-abuse-type-selector-renderer",function(){if(A80!==void 0)return A80;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return A80=a},{mode:1});var h7d;var Y9=function(){return _.u.apply(this,arguments)||this};
_.c(Y9,_.u);Y9.prototype.attached=function(){var a=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){a.additionalContextInput.focusTextInput()})};
Y9.prototype.handleAdditionalContextChanged=function(){var a=this;_.eK(this,"ytd-report-channel-additional-context-update",function(){a.ytdReduxBehavior.dispatch(_.E_({type:"ADDITIONAL_CONTEXT_UPDATED",payload:a.additionalContext}))},300)};
Y9.prototype.updateAdditionalContextFromBinding=function(a){this.additionalContext=a.detail.value};
Y9.prototype.handleAdditionalContextChanged=Y9.prototype.handleAdditionalContextChanged;_.f([_.R(_.ij),_.z("design:type",Object)],Y9.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",String)],Y9.prototype,"additionalContext",void 0);_.f([_.b({selector:function(a){return a.reportChannelAbuse.additionalContext}}),
_.z("design:type",String)],Y9.prototype,"additionalContextRedux",void 0);_.f([_.b(),_.z("design:type",Object)],Y9.prototype,"data",void 0);_.f([_.w$("yt-text-input-form-field-renderer"),_.z("design:type",Object)],Y9.prototype,"additionalContextInput",void 0);_.f([_.a5("additionalContext"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Y9.prototype,"handleAdditionalContextChanged",null);
Y9=_.f([_.C({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Y9);
_.D(Y9,"ytd-report-channel-modal-additional-context-renderer",function(){if(h7d!==void 0)return h7d;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return h7d=a},{mode:1});var iGk;var TE=function(){var a=_.u.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};
_.c(TE,_.u);_.t=TE.prototype;_.t.computeNextButtonData=function(a,W,w){var Z={};W&&(Z.navigationEndpoint=W);w&&(Z.serviceEndpoint=w);a&&a.buttonRenderer&&_.T5.extend(Z,a.buttonRenderer);return Z};
_.t.handleReportChannelModalDisableNextButtonAction=function(a){this.setNextButtonIsDisabled(a)};
_.t.handleReportFormEndpointUpdateAction=function(a){this.setNextButtonIsDisabled(!!a.disableSubmitButton);this.resetEndpointData();a.submitEndpoint?this.submitEndpoint=a.submitEndpoint:a.submitNavigationEndpoint&&(this.navigationEndpoint=a.submitNavigationEndpoint)};
_.t.handleSignalActionSubmitForm=function(){var a,W=Object.keys(((a=this.reportChannelAbuseForm)==null?void 0:a.selectedVideoIds)||{}),w;a=((w=this.reportChannelAbuseForm)==null?void 0:w.additionalContext)||"";var Z;w=((Z=this.reportChannelAbuseForm)==null?void 0:Z.impersonatedChannelUrl)||"";var N;if((N=this.data)==null?0:N.submitEndpoint){W={impersonated_channel_url:w,text:a,video_ids:W};var B;_.K().resolve(_.zU).resolveCommand((B=this.data)==null?void 0:B.submitEndpoint,{form:Object.assign({},
W,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.t.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.t.onYtServiceRequestError=function(a){this.setNextButtonIsDisabled(!1);_.W6(this.hostElement,a.detail.error.message)};
_.t.setNextButtonIsDisabled=function(a){this.set("data.nextButton.buttonRenderer.isDisabled",a)};
_.t.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
TE.prototype.onYtServiceRequestError=TE.prototype.onYtServiceRequestError;TE.prototype.onYtServiceRequestCompleted=TE.prototype.onYtServiceRequestCompleted;_.f([_.b(),_.z("design:type",Object)],TE.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],TE.prototype,"nextButtonDisabled",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],TE.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],TE.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],TE.prototype,"submitEndpoint",void 0);_.f([_.b(),_.z("design:type",Object)],TE.prototype,"navigationEndpoint",void 0);_.f([_.b({selector:function(a){return a.reportChannelAbuse}}),
_.z("design:type",Object)],TE.prototype,"reportChannelAbuseForm",void 0);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],TE.prototype,"onYtServiceRequestCompleted",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],TE.prototype,"onYtServiceRequestError",null);
TE=_.f([_.C({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],TE);
_.D(TE,"ytd-report-channel-modal-footer-renderer",function(){if(iGk!==void 0)return iGk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return iGk=a},{mode:1});var c8n;var Ky=function(){var a=_.u.apply(this,arguments)||this;a.boundOnTapDismissButton=function(){a.closePopup()};
return a};
_.c(Ky,_.u);Ky.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Ky.prototype.handleDataChanged=function(){_.un(this.hostElement)};
Ky.prototype.closePopup=function(){_.aV(this.hostElement,"yt-close-popup-action")};
Ky.prototype.handleDataChanged=Ky.prototype.handleDataChanged;_.f([_.b(),_.z("design:type",Object)],Ky.prototype,"boundOnTapDismissButton",void 0);_.f([_.b(),_.z("design:type",Object)],Ky.prototype,"data",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ky.prototype,"handleDataChanged",null);Ky=_.f([_.C({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Ky);
_.D(Ky,"ytd-report-channel-modal-header-renderer",function(){if(c8n!==void 0)return c8n;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return c8n=a},{mode:1});var e70;var py=function(){var a=_.u.apply(this,arguments)||this;a.autoValidate=!1;a.invalid=!1;a.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return a};
_.c(py,_.u);_.t=py.prototype;_.t.attached=function(){var a=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){a.channelUrlInput.focusTextInput()})};
_.t.disableNextButton=function(a){_.aV(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[a])};
_.t.handleImpersonatedChannelUrlChanged=function(){var a=this;this.disableNextButton(!0);this.invalid=!1;_.eK(this,"ytd-report-channel-impersonated-channel-update",function(){var W=a.impersonatedChannelUrl.trim();a.ytdReduxBehavior.dispatch(_.E_({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:W}));var w;((w=a.data)==null?0:w.submitEndpoint)&&W&&_.K().resolve(_.zU).resolveCommand(a.data.submitEndpoint,{form:{impersonated_channel_url:W,element:a.hostElement}})},500)};
_.t.handleModifyReportFormCommand=function(a){this.invalid=this.get("modifyReportFormCommand.action",a)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.t.updateInvalidFromBinding=function(a){this.invalid=a.detail.value};
_.t.updateImpersonatedChannelUrlFromBinding=function(a){this.impersonatedChannelUrl=a.detail.value};
py.prototype.handleImpersonatedChannelUrlChanged=py.prototype.handleImpersonatedChannelUrlChanged;_.f([_.R(_.ij),_.z("design:type",Object)],py.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],py.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],py.prototype,"autoValidate",void 0);_.f([_.b(),_.z("design:type",Object)],py.prototype,"invalid",void 0);
_.f([_.b(),_.z("design:type",String)],py.prototype,"impersonatedChannelUrl",void 0);_.f([_.b({selector:function(a){return a.reportChannelAbuse.impersonatedChannelUrl}}),
_.z("design:type",String)],py.prototype,"impersonatedChannelUrlRedux",void 0);_.f([_.b(),_.z("design:type",Object)],py.prototype,"data",void 0);_.f([_.w$("#text-input"),_.z("design:type",Object)],py.prototype,"channelUrlInput",void 0);_.f([_.a5("impersonatedChannelUrl"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],py.prototype,"handleImpersonatedChannelUrlChanged",null);
py=_.f([_.C({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],py);
_.D(py,"ytd-report-channel-modal-impersonation-renderer",function(){if(e70!==void 0)return e70;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return e70=a},{mode:1});var ntd;var j42;var rp=function(){return _.u.apply(this,arguments)||this};
_.c(rp,_.u);rp.prototype.onCheckboxToggled=function(a){var W,w,Z=(w=_.A((W=this.data)==null?void 0:W.video,_.Ma))==null?void 0:w.videoId;Z&&this.ytdReduxBehavior.dispatch(a.target.checked?_.E_({type:"VIDEO_SELECTED",payload:Z}):_.E_({type:"VIDEO_UNSELECTED",payload:Z}))};
rp.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.dU.Object.defineProperties(rp.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var a,W=(a=this.data)==null?void 0:a.video;if(!W)return{};var w;a=(w=_.A(W,_.Ma))==null?void 0:w.navigationEndpoint;if(!a)return W;_.A(a==null?void 0:a.commandMetadata,_.mm)&&(_.A(a.commandMetadata,_.mm).ignoreNavigation=!0);return W}}});
_.f([_.b({reflectToAttribute:!0,selector:function(a,W){return W in a.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.z("design:type",Boolean)],rp.prototype,"checked",void 0);_.f([_.b(),_.z("design:type",Object)],rp.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],rp.prototype,"video",null);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],rp.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.ij),_.z("design:type",Object)],rp.prototype,"ytdReduxBehavior",void 0);rp=_.f([_.C({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],rp);
_.D(rp,"ytd-selectable-video-renderer",function(){if(j42!==void 0)return j42;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return j42=a},{mode:1});var Aa=function(){var a=_.u.apply(this,arguments)||this;a.monitorScroll=!0;return a};
_.c(Aa,_.u);Aa.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Aa.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Aa.prototype,"data",void 0);Aa=_.f([_.C({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Aa);
_.D(Aa,"ytd-selectable-video-list-renderer",function(){if(ntd!==void 0)return ntd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return ntd=a},{mode:1});var Lxi;_.pA("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var ha=function(){return _.u.apply(this,arguments)||this};
_.c(ha,_.u);ha.prototype.onChange=function(a){if(a=_.QV(a).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.r("kevlar_command_handler_migration_killswitch"))_.N1(this.hostElement,a,this.hostElement);else{a=_.l(a);for(var W=a.next();!W.done;W=a.next())this.ytComponentBehavior.resolveCommand(W.value)}};
ha.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
ha.prototype.updateDataToggledFromBinding=function(a){this.set("data.toggled",a.detail.value)};
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ha.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ha.prototype,"data",void 0);_.f([_.b({computed:"isEnabled(data)"}),_.z("design:type",Boolean)],ha.prototype,"enabled",void 0);ha=_.f([_.C({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],ha);
_.D(ha,"ytd-toggle-item-renderer",function(){if(Lxi!==void 0)return Lxi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Lxi=a},{mode:1});var J8k;var Fxa;var MOi;var iU=function(){var a=_.u.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};
_.c(iU,_.u);iU.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}}}}}};
iU.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
iU.prototype.onSubmitButtonClick=function(){var a;((a=this.data)==null?0:a.submitEndpoint)&&!_.r("enable_ytc_refunds_submit_form_signal_action")&&_.Z9(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
iU.prototype.handleSignalActionSubmitForm=function(){var a;((a=this.data)==null?0:a.submitEndpoint)&&_.Z9(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.dU.Object.defineProperties(iU.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.hiddenByDefault)&&!this.setVisible}}});
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],iU.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],iU.prototype,"setVisible",void 0);_.f([_.b(),_.z("design:type",Object)],iU.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],iU.prototype,"surveyFeedbackData",void 0);_.f([_.b(),_.z("design:type",Object)],iU.prototype,"boundOnSubmitButtonClick",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data","setVisible"),_.z("design:type",Object),_.z("design:paramtypes",[])],iU.prototype,"visibilityHidden",null);iU=_.f([_.TD({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],iU);
_.D(iU,"yt-flow-footer-renderer",function(){if(MOi===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;Fxa===void 0&&(Fxa=document.createElement("template"));var Z=Fxa;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);MOi=a}a=MOi;return a},{mode:2});var cV=function(){return _.u.apply(this,arguments)||this};
_.c(cV,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],cV.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],cV.prototype,"data",void 0);_.f([_.b({selector:function(a){return a.ypc.surveyFeedbackData}}),
_.z("design:type",Object)],cV.prototype,"surveyFeedbackData",void 0);cV=_.f([_.C({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],cV);
_.D(cV,"ytd-flow-footer-renderer",function(){if(J8k!==void 0)return J8k;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return J8k=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var R70;var qYn;var ec=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return a};
_.c(ec,_.u);_.t=ec.prototype;_.t.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.r2("multiPageMenuSectionItems")}}};
_.t.handleHideEnclosingAction_=function(a){if(this.data&&this.data.items)for(var W=0;W<this.data.items.length;W++){var w=this.data.items[W].notificationRenderer;if(w&&w.notificationId==a.hideEnclosingAction.notificationId){this.splice("data.items",W,1);_.aV(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.t.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.VV(this.hostElement,"hidden",!0)};
_.t.updateMenu_=function(a){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&a&&!a.doNotRefreshInbox){a=this.data.continuations;for(var W=0;W<a.length;W++)if(a[W].invalidationContinuationData){var w=void 0;var Z=(w=a[W].invalidationContinuationData)==null?void 0:w.continuation;break}a=_.T5.clone(this.data.continuationUpdateEndpoint||null);a.continuation=Z;a.click_tracking_params=this.data.trackingParams;_.Z9(this.hostElement,[a])}};
_.t.onServiceRequestCompleted_=function(a,W){if(this.data&&(a=W.actions)){W=0;for(var w=a.length;W<w;W++){var Z=_.A(a[W],_.qMH);if(!Z)break;if((Z.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||Z.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&Z.continuationItems&&this.data.items){var N=this.data.items.length-1;this.data.items[N].continuationItemRenderer&&this.splice.apply(this,["data.items",N,1].concat(Z.continuationItems))}}}};
ec.prototype.onServiceRequestCompleted_=ec.prototype.onServiceRequestCompleted_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],ec.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ec.prototype,"data",void 0);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],ec.prototype,"onServiceRequestCompleted_",null);ec=_.f([_.TD({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],ec);
_.mV()(ec,"yt-multi-page-menu-section-renderer",function(){if(qYn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;R70===void 0&&(R70=document.createElement("template"));var Z=R70;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);qYn=a}a=qYn;return a},{allowedProps:["data"],
mode:2});var Q4f;var xQI;var ny=function(){return _.u.apply(this,arguments)||this};
_.c(ny,_.u);ny.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.dU.Object.defineProperties(ny.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}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ny.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ny.prototype,"data",void 0);_.f([_.Q("data.progress"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ny.prototype,"showProgressBar",null);
_.f([_.Q("data.progress"),_.z("design:type",Number),_.z("design:paramtypes",[])],ny.prototype,"progress",null);ny=_.f([_.TD({is:"yt-flow-header-renderer",disableElementRegistration:!0})],ny);
_.D(ny,"yt-flow-header-renderer",function(){if(xQI===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Q4f===void 0&&(Q4f=document.createElement("template"));var Z=Q4f;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);xQI=a}a=xQI;return a},{mode:2});var bGE;var s4K;var jc=function(){return _.u.apply(this,arguments)||this};
_.c(jc,_.u);jc.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],jc.prototype,"data",void 0);jc=_.f([_.TD({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],jc);
_.D(jc,"yt-post-confirmation-flow-step-renderer",function(){if(s4K===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;bGE===void 0&&(bGE=document.createElement("template"));var Z=bGE;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);s4K=a}a=s4K;return a},{mode:2});var uCn;var Cr0;var Ly=function(){return _.u.apply(this,arguments)||this};
_.c(Ly,_.u);
Ly.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"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ly.prototype,"data",void 0);Ly=_.f([_.TD({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ly);
_.D(Ly,"yt-refund-confirmation-flow-step-renderer",function(){if(Cr0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;uCn===void 0&&(uCn=document.createElement("template"));var Z=uCn;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Cr0=a}a=Cr0;return a},{mode:2});_.En(hzk);_.En(ixf);var cGD=_.T9({avatarViewModel:_.c6});_.En(ezI);var npd=_.T9({commentInteractionViewModel:ixf,sharedSubscriptionViewModel:ezI,buttonViewModel:_.F7});_.En(js2);_.En(LO0);_.En(JG9);_.En(FOK);_.En(My9);var RzI=_.T9({profileIdentityInfoViewModel:_.dqK,profileInfoViewModel:My9});_.En(qdE);_.HX(qdE,"yt-profile-card-view-model",{propNames:["data"]});var Ja=function(){var a=_.u.apply(this,arguments)||this;a.enableFocusFix=_.r("music_web_enable_focus_on_setting_menu_fix")&&_.JS("IS_MOBILE_WEB",!1);a.covered=!1;a.hideMenu=!1;a.isCommentNotificationOnProfileCard=!1;a.scrolledByTouch=!1;a.disableBackdropFilter=_.r("web_disable_backdrop_filter");a.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return a};
_.c(Ja,_.u);_.t=Ja.prototype;
_.t.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"}}}};
_.t.ready=function(){var a=this;this.JSC$17877_containerElement.addEventListener("scroll",function(){a.ytRendererBehavior.markDirty()})};
_.t.attributeChanged=function(a,W){a==="menu-style"&&_.aV(this.hostElement,"yt-multi-page-menu-closed-action",[W])};
_.t.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.yV(this,this.focusOnStampFinished))};
_.t.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.yV(this,this.focusOnStampFinished))};
_.t.reset=function(){this.closeJobId&&(_.hF.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.t.focusOnStampFinished=function(a){a.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.yV(this,this.focusOnStampFinished)),this.doFocus())};
_.t.doFocus=function(){var a=_.V4y(this.sectionsElement);a.length&&a[0].focus()};
_.t.computeMenuStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.t.computeIsCommentNotificationOnProfileCard=function(a){return _.r("enable_profile_cards_on_comments")&&a.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.t.computeHideMenu=function(a,W){return a||!(!W||!W.showLoadingSpinner)};
_.t.onPopupClosed=function(){this.isPopUpOpen=!1;_.aV(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.t.onPopupOpened=function(a,W){this.isPopUpOpen=!0;W.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.E$(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.E_({type:"CHANNEL_REPORT_RESET"})))};
_.t.onYtNavigate=function(a,W){this.shouldCloseOnNavigateEvent(W.endpoint)&&_.aV(this.hostElement,"yt-close-all-popups-action")};
_.t.handleEndpoint=function(a){a=_.A(a,_.eT);!this.isCommentNotificationOnProfileCard&&a&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17877_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.t.handleActions=function(a){for(var W=0,w=a.length;W<w;W++){var Z=_.A(a[W],yMn);Z&&this.handleGetMultiPageMenuAction(Z);(Z=_.A(a[W],_.qMH))&&this.handleAppendContinuationItemsAction(Z)}};
_.t.onServiceRequestSentOrCompleted=function(a,W){a.detail&&a.detail.endpoint&&this.handleEndpoint(a.detail.endpoint);W.actions&&this.handleActions(W.actions)};
_.t.handleGetMultiPageMenuAction=function(a){var W=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.M(this.submenuElement).appendChild(W);(a=a.menu.multiPageMenuRenderer)&&this.logSubmenu(a);W.data=a;W.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.t.handleAppendContinuationItemsAction=function(a){if(this.data&&a.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&a.continuationItems&&this.data.sections){var W=this.data.sections.length-1;this.data.sections[W].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),W--);if(this.data.sections[W].multiPageMenuNotificationSectionRenderer&&a.continuationItems){a=_.l(a==null?void 0:a.continuationItems);for(var w=a.next();!w.done;w=a.next())if(w=w.value,_.A(w,A49)){var Z=
void 0,N=void 0,B=void 0,I=void 0,X=void 0;((Z=this)==null?0:(N=Z.data)==null?0:(B=N.sections)==null?0:(I=B[W])==null?0:(X=I.multiPageMenuNotificationSectionRenderer)==null?0:X.items)&&this.push("data.sections."+W+".multiPageMenuNotificationSectionRenderer.items",w)}else if(_.A(w,_.p5R)||_.A(w,_.BN))this.push("data.sections",w),W++}}};
_.t.logSubmenu=function(a){if(!_.r("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var W=this.ytRendererBehavior.getScreenLayer(),w=_.nS(W),Z=_.eH(W);if((a=a.trackingParams)&&w&&Z){var N=_.PX(a);_.r("combine_ve_grafts")?_.$J().graftServerVe(a,Z,W):_.M1(w,Z,N)}}};
_.t.emptySubmenuContainer=function(){for(var a=_.M(this.submenuElement);a.firstChild;)a.removeChild(a.firstChild)};
_.t.onMenuBackTap=function(a){_.E$(this.hostElement,"yt-submenu-closed");a.stopPropagation()};
_.t.onSubmenuClosed=function(a){_.QV(a)!==this.hostElement&&(this.covered=!1,_.E$(this.hostElement,"yt-refit"),a.stopPropagation())};
_.t.onRetrieveLocation=function(a,W){W.hasComments&&(W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),a.stopPropagation())};
_.t.shouldCloseOnNavigateEvent=function(a){if(!a)return!0;if(_.A(a,_.Tql)||_.A(a,_.Kjy)||_.A(a,_.Y5l)||_.A(a,_.ba))return!1;var W;return((W=_.A(a==null?void 0:a.commandMetadata,_.mm))==null?0:W.ignoreNavigation)?!1:!0};
_.t.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.t.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.t.refitAfterRender=function(){var a=this;_.DW(this,function(){_.E$(a.hostElement,"yt-refit")})};
Ja.prototype.refitAfterRender=Ja.prototype.refitAfterRender;Ja.prototype.onRetrieveLocation=Ja.prototype.onRetrieveLocation;Ja.prototype.onSubmenuClosed=Ja.prototype.onSubmenuClosed;Ja.prototype.onMenuBackTap=Ja.prototype.onMenuBackTap;Ja.prototype.onServiceRequestSentOrCompleted=Ja.prototype.onServiceRequestSentOrCompleted;Ja.prototype.onYtNavigate=Ja.prototype.onYtNavigate;Ja.prototype.onPopupOpened=Ja.prototype.onPopupOpened;Ja.prototype.onPopupClosed=Ja.prototype.onPopupClosed;
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],Ja.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ja.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Ja.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ja.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],Ja.prototype,"enableFocusFix",void 0);_.f([_.b(),_.z("design:type",Object)],Ja.prototype,"covered",void 0);_.f([_.b({computed:"computeHideMenu(covered, data)"}),_.z("design:type",Object)],Ja.prototype,"hideMenu",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.z("design:type",String)],Ja.prototype,"menuStyle",void 0);
_.f([_.b({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.z("design:type",Object)],Ja.prototype,"isCommentNotificationOnProfileCard",void 0);_.f([_.b(),_.z("design:type",Boolean)],Ja.prototype,"isPopUpOpen",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ja.prototype,"scrolledByTouch",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ja.prototype,"disableBackdropFilter",void 0);
_.f([_.w$("#sections"),_.z("design:type",HTMLElement)],Ja.prototype,"sectionsElement",void 0);_.f([_.w$("#spinner"),_.z("design:type",HTMLElement)],Ja.prototype,"spinnerElement",void 0);_.f([_.w$("#header"),_.z("design:type",HTMLElement)],Ja.prototype,"headerElement",void 0);_.f([_.w$("#container"),_.z("design:type",HTMLElement)],Ja.prototype,"JSC$17877_containerElement",void 0);_.f([_.w$("#submenu"),_.z("design:type",HTMLElement)],Ja.prototype,"submenuElement",void 0);
_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ja.prototype,"onPopupClosed",null);_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Ja.prototype,"onPopupOpened",null);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Ja.prototype,"onYtNavigate",null);
_.f([_.E6("yt-service-request-completed"),_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],Ja.prototype,"onServiceRequestSentOrCompleted",null);_.f([_.E6("yt-menu-back-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ja.prototype,"onMenuBackTap",null);
_.f([_.E6("yt-submenu-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ja.prototype,"onSubmenuClosed",null);_.f([_.E6("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Ja.prototype,"onRetrieveLocation",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ja.prototype,"refitAfterRender",null);
Ja=_.f([_.C({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],Ja);
_.D(Ja,"ytd-multi-page-menu-renderer",function(){if(Kx0!==void 0)return Kx0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Kx0=a},{mode:1});var GAn;var FA=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return a};
_.c(FA,_.u);_.t=FA.prototype;_.t.created=function(){this.showTooltips=!0};
_.t.computeAccessibility_=function(a){return this.get("accessibility.accessibilityData",a)||null};
_.t.onTap=function(){var a=_.W_(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(a&&a.length===1&&a[0])_.aV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var W;if((W=this.data)==null?0:W.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var w;((w=this.data)==null?0:w.menuRequest)&&_.Z9(this.hostElement,[this.data.menuRequest])}}};
_.t.handleTopbarMenuClosedAction=function(a){var W,w;(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)===((W=this.data)==null?void 0:(w=W.icon)==null?void 0:w.iconType)&&this.toggleIconState(!1)};
_.t.toggleIconState=function(a){_.r("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=a)};
_.t.handleUpdateTopbarAvatarAction=function(a){var W;a=(W=_.A(a,D7i))==null?void 0:W.avatarUrl;var w,Z;W=(w=this.data)==null?void 0:(Z=w.avatar)==null?void 0:Z.thumbnails;a&&W&&(w={thumbnails:[Object.assign({},W[0],{url:a})]},this.set("data.avatar",w))};
_.dU.Object.defineProperties(FA.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.M(this.hostElement).querySelector("#button")}}});
FA.prototype.onTap=FA.prototype.onTap;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],FA.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],FA.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(_.J3L.YtButtonBehavior),_.z("design:type",Object)],FA.prototype,"ytButtonBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],FA.prototype,"data",void 0);
_.f([_.w$("yt-icon-button#button"),_.z("design:type",Object)],FA.prototype,"iconButton",void 0);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FA.prototype,"onTap",null);FA=_.f([_.C({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],FA);
_.D(FA,"ytd-topbar-menu-button-renderer",function(){if(GAn!==void 0)return GAn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return GAn=a},{mode:1});var DQD;var Me=function(){return _.u.apply(this,arguments)||this};
_.c(Me,_.u);Me.prototype.getSelected=function(){return this.reasons.selected};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Me.prototype,"data",void 0);_.f([_.w$("#reasons"),_.z("design:type",Object)],Me.prototype,"reasons",void 0);Me=_.f([_.C({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Me);
_.D(Me,"ytd-ad-feedback-content",function(){if(DQD!==void 0)return DQD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return DQD=a},{mode:1});var fqI;var R_=function(){return _.u.apply(this,arguments)||this};
_.c(R_,_.u);_.t=R_.prototype;_.t.onPopupOpened=function(){_.aV(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.t.computeConfirmButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.confirmLabel}};
_.t.computeCancelButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.cancelLabel}};
_.t.onConfirmTap=function(){var a=this.content.getSelected();a!==void 0&&(a=this.data.reasons[a].endpoint)&&(_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}}),_.aV(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.t.sendFeedbackSubmitToastAction=function(){var a;(a=this.data)!=null&&a.completionMessage&&_.aV(this.hostElement,"yt-open-popup-action",[_.Db(this.data.completionMessage),this])};
_.t.onCancelTap=function(){_.aV(this.hostElement,"yt-close-popup-action")};
R_.prototype.onPopupOpened=R_.prototype.onPopupOpened;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],R_.prototype,"data",void 0);_.f([_.w$("#content"),_.z("design:type",Object)],R_.prototype,"content",void 0);_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],R_.prototype,"onPopupOpened",null);
R_=_.f([_.C({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],R_);
_.D(R_,"ytd-ad-feedback-renderer",function(){if(fqI!==void 0)return fqI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return fqI=a},{mode:1});var dQ2;var qe=function(){return _.u.apply(this,arguments)||this};
_.c(qe,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],qe.prototype,"data",void 0);qe=_.f([_.C({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],qe);
_.D(qe,"ytd-ad-info-dialog-content",function(){if(dQ2!==void 0)return dQ2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return dQ2=a},{mode:1});var mQn;var Qy=function(){return _.u.apply(this,arguments)||this};
_.c(Qy,_.u);Qy.prototype.computeConfirmButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.confirmLabel}};
Qy.prototype.onConfirmTap=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Qy.prototype.computeShouldShowTitle=function(){var a;return!((a=this.data)==null||!a.title)};
Qy.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.K().resolve(_.zU).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Qy.prototype.onPopupClosed=Qy.prototype.onPopupClosed;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Qy.prototype,"data",void 0);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Qy.prototype,"onPopupClosed",null);Qy=_.f([_.C({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Qy);
_.D(Qy,"ytd-ad-info-dialog-renderer",function(){if(mQn!==void 0)return mQn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return mQn=a},{mode:1});var VOf;var x9=function(){var a=_.u.apply(this,arguments)||this;a.actionButtonClass="action-button";a.dismissButtonId="dismiss-button";a.dialogDismiss=!0;return a};
_.c(x9,_.u);_.t=x9.prototype;_.t.computeInPlayer=function(a){return(a==null?void 0:a.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.t.computedLogo=function(){var a,W;return this.isDarkTheme()?(a=this.data)==null?void 0:a.logoDark:(W=this.data)==null?void 0:W.logo};
_.t.computedHeaderImage=function(){var a,W;return this.isDarkTheme()?(a=this.data)==null?void 0:a.headerImageDark:(W=this.data)==null?void 0:W.headerImage};
_.t.computeLogoIconId=function(){var a,W,w,Z=(a=this.computedLogo())==null?void 0:(W=a.sources)==null?void 0:(w=W[0])==null?void 0:w.height;return Z&&Z%31===0?"logo-icon-with-padding":"logo-icon"};
_.t.computeLogoIconHeight=function(){var a,W,w,Z=(a=this.computedLogo())==null?void 0:(W=a.sources)==null?void 0:(w=W[0])==null?void 0:w.height;return Z&&Z%31===0?"31":"24"};
_.t.onPopupClosed=function(){_.K().resolve(_.yL).dispose()};
_.t.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.t.onShow=function(){this.inPlayer&&_.$o(6)};
_.t.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var a=0;a<this.data.impressionEndpoints.length;a++){var W=_.A(this.data.impressionEndpoints[a],_.pt);W&&this.ytComponentBehavior.resolveCommand(W)}};
_.t.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.aV(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.dU.Object.defineProperties(x9.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var a,W;return!((a=this.data)==null||!a.headerImageDark)&&!((W=this.data)==null||!W.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.secondaryButton)}}});
x9.prototype.onPopupClosed=x9.prototype.onPopupClosed;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],x9.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.LN.YtVisibilityBehavior),_.z("design:type",Object)],x9.prototype,"ytVisibilityBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],x9.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],x9.prototype,"actionButtonClass",void 0);_.f([_.b(),_.z("design:type",Object)],x9.prototype,"dismissButtonId",void 0);_.f([_.b(),_.z("design:type",Object)],x9.prototype,"dialogDismiss",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],x9.prototype,"hasHeaderImage",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],x9.prototype,"hasPremiumButton",null);
_.f([_.b({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.z("design:type",Boolean)],x9.prototype,"inPlayer",void 0);_.f([_.w$("#dismiss-button"),_.z("design:type",HTMLElement)],x9.prototype,"dismissButton",void 0);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],x9.prototype,"onPopupClosed",null);x9=_.f([_.C({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],x9);
_.D(x9,"ytd-enforcement-message-view-model",function(){if(VOf!==void 0)return VOf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return VOf=a},{mode:1});var z70;var HGK;var bU=function(){var a=_.u.apply(this,arguments)||this;a.TEST_ONLY={immediateValidation:function(){a.immediateValidation()},
onValidationResponse:function(W){a.onValidationResponse(W)},
onGenerateHandleFromNameResponse:function(W){a.onGenerateHandleFromNameResponse(W)}};
return a};
_.c(bU,_.u);_.t=bU.prototype;_.t.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.t.validate=function(){this.immediateValidation()};
_.t.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.t.setHandleInputValue=function(a){this.handleDir=this.getHandleDir(a);this.handleInput.value=a;this.validationState={status:"PENDING"};this.immediateValidation()};
_.t.getHandleDir=function(a){var W=a===""&&!1;return(W=_.uUy.test.call(_.uUy,a))?"rtl":"ltr"};
_.t.onDataChanged=function(){var a,W;this.handleDir=this.getHandleDir((W=(a=this.data)==null?void 0:a.handle)!=null?W:"");var w;this.validationState=((w=this.data)==null?0:w.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var Z;((Z=this.data)==null?0:Z.validateOnInit)&&this.immediateValidation()};
_.t.stopPropagation=function(a){a.stopPropagation()};
_.t.onInput=function(){var a;this.handleDir=this.getHandleDir((a=this.handleInput.value)!=null?a:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.t.onFocusout=function(a){this.handleInput.contains(a.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.t.delayedValidation=function(){var a,W;this.debouncedValidation((W=(a=this.data)==null?void 0:a.validationDelayMs)!=null?W:1E3)};
_.t.immediateValidation=function(){this.debouncedValidation(0)};
_.t.debouncedValidation=function(a){var W=this;_.eK(this,"debouncedValidation",function(){var w,Z=W.staticValidation((w=W.handleInput.value)!=null?w:"");if(Z!==void 0)W.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:Z};else{var N;if((N=W.data)!=null&&N.validateChannelHandleCommand){W.validationState={status:"LOADING"};var B;W.ytComponentBehavior.resolveCommand(W.data.validateChannelHandleCommand,{form:{handle:(B=W.handleInput.value)!=null?B:""},commandController:{onSuccess:function(I,
X){W.onValidationResponse(X)},
onServerError:function(I,X){W.onValidationServerError(X)}}})}else W.handleUnexpectedValidationError(new _.Uw("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",W.data))}},a)};
_.t.staticValidation=function(a){var W;if(((W=this.data)==null?void 0:W.channelHandleStaticValidationParams)!==void 0){W=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(a)&&W.validValueRegexpErrorMessage!==void 0)return W.validValueRegexpErrorMessage;if(W.minLength!==void 0&&a.length<W.minLength&&W.minLengthErrorMessage!==void 0)return W.minLengthErrorMessage;if(W.maxLength!==void 0&&a.length>W.maxLength&&W.maxLengthErrorMessage!==void 0)return W.maxLengthErrorMessage}};
_.t.onValidationResponse=function(a){var W=_.A(a.result,fjX);W===void 0?this.handleUnexpectedValidationError(new _.Uw("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",a)):this.handleValidationResultRenderer(W)};
_.t.onValidationServerError=function(a){this.handleUnexpectedValidationError(new _.Uw("ValidateChannelHandle request failed.",a))};
_.t.handleValidationResultRenderer=function(a){if(a.handle===void 0)this.handleUnexpectedValidationError(new _.Uw("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 _.Uw("Unrecognized ChannelHandleValidationResult",a));break;default:_.l9(a.result)}};
_.t.handleUnexpectedValidationError=function(a){var W;this.validationState={status:"UNKNOWN",handle:(W=this.handleInput.value)!=null?W:""};_.jJ(a)};
_.t.stopEventPropagation=function(a){a.stopPropagation()};
_.t.updateHandleOnChannelNameInputChange=function(a){if(!this.wasEdited){var W,w;this.debouncedGenerateHandleFromName(a,(w=(W=this.data)==null?void 0:W.validationDelayMs)!=null?w:1E3)}};
_.t.debouncedGenerateHandleFromName=function(a,W){var w=this;_.eK(this,"debouncedGenerateHandleFromName",function(){var Z;(Z=w.data)!=null&&Z.validateChannelHandleCommand?w.ytComponentBehavior.resolveCommand(w.data.validateChannelHandleCommand,{form:{name:a},commandController:{onSuccess:function(N,B){w.onGenerateHandleFromNameResponse(B)},
onServerError:function(N,B){_.jJ(new _.Uw("Error calling GenerateHandleFromName",B))}}}):_.jJ(new _.Uw("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",w.data))},W)};
_.t.onGenerateHandleFromNameResponse=function(a){this.wasEdited||((a=_.A(a.result,d79))?this.setHandleInputValue(a.handle):_.jJ(new _.Uw("Invalid results when generate handle from name")))};
_.dU.Object.defineProperties(bU.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,W=(a=this.channelHandleEntity)==null?void 0:a.handleEdit;this.handleDir=this.getHandleDir(W!=null?W:"");return W}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var a,W;if(((a=this.data)==null?void 0:(W=a.channelHandleStaticValidationParams)==null?void 0:W.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
bU.prototype.stopEventPropagation=bU.prototype.stopEventPropagation;bU.prototype.onDataChanged=bU.prototype.onDataChanged;bU.prototype.applyHandleEdit=bU.prototype.applyHandleEdit;bU.prototype.onValueChanged=bU.prototype.onValueChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],bU.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],bU.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],bU.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Boolean)],bU.prototype,"wasEdited",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],bU.prototype,"handleDir",void 0);_.f([_.w$("#handle-input"),_.z("design:type",Object)],bU.prototype,"handleInput",void 0);_.f([_.b(),_.Q("validationState"),_.z("design:type",Object),_.z("design:paramtypes",[])],bU.prototype,"value",null);
_.f([_.a5("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bU.prototype,"onValueChanged",null);_.f([_.Q("validationState"),_.z("design:type",Object),_.z("design:paramtypes",[])],bU.prototype,"errorIndicator",null);_.f([_.b({reflectToAttribute:!0}),_.Q("errorIndicator"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],bU.prototype,"borderErrorIndicator",null);
_.f([_.b({selectorArgs:["data.channelHandleEntityKey"],selector:function(a,W){return _.tG(a.entities,"channelHandle",W)}}),
_.z("design:type",Object)],bU.prototype,"channelHandleEntity",void 0);_.f([_.Q("channelHandleEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],bU.prototype,"handleEdit",null);_.f([_.a5("handleEdit"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bU.prototype,"applyHandleEdit",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bU.prototype,"onDataChanged",null);
_.f([_.Q("data.channelHandleStaticValidationParams.validValueRegexp"),_.z("design:type",Object),_.z("design:paramtypes",[])],bU.prototype,"validValueRegexp",null);_.f([_.E6("yt-service-request-sent"),_.E6("yt-service-request-completed"),_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],bU.prototype,"stopEventPropagation",null);bU=_.f([_.C({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],bU);
_.D(bU,"ytd-channel-handle-input-renderer",function(){if(HGK!==void 0)return HGK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return HGK=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var sk=function(){var a=_.u.apply(this,arguments)||this;a.data=null;a.errorMessage=null;a.isLoading=!0;a.hideContainer=!1;a.enableNewChannelCreationOnIdForAll=_.r("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(W){a.resetErrorState();
a.setErrorState(W)}};
return a};
_.c(sk,_.u);_.t=sk.prototype;_.t.created=function(){this.logScreenVe()};
_.t.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")};
_.t.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var a;((a=this.zeroStepErrorMessageEntity)==null?0:a.value)&&this.set("errorMessage",_.b8(this.zeroStepErrorMessageEntity.value))};
_.t.onCreateTap=function(){var a=this;if(this.data&&this.data.channelCreationEndpoint){var W,w;if(!((W=this.data.createChannelButton)==null?0:(w=W.buttonRenderer)==null?0:w.isDisabled)){var Z;if((Z=this.nameInput)!=null&&Z.value){this.setLoadingState();var N,B;W=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(N=this.handleInput)==null?void 0:N.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((B=this.handleInput)==null?void 0:B.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:W,commandController:{onSuccess:function(I,X){a.onChannelCreationEndpointSuccess(X);a.obakeImageSource&&_.ia("channelCreatedWithObakeImage",{imageSourceType:a.obakeImageSource})},
onServerError:function(){a.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.t.endpointRequiresServiceRequestAction=function(a){return!!_.A(a,_.JN)||!!_.A(a,D7i)};
_.t.isNavigateAction=function(a){var W;return!!_.A(a,_.qW)||!!_.A((W=_.A(a,zu9))==null?void 0:W.command,_.qW)};
_.t.isPlaylistAction=function(a){return!!_.A(a,_.nz)||!!_.A(a,_.Ri)};
_.t.onChannelCreationEndpointSuccess=function(a){if(a.createChannelError){var W;this.setErrorState((W=a.createChannelError)==null?void 0:W.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.r("enable_secondary_channel_creation_form")&&a.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(a.navigationEndpoint);if(a.actions){W=_.l(a.actions);for(var w=W.next();!w.done;w=W.next())if(w=w.value,this.endpointRequiresServiceRequestAction(w)&&this.ytComponentBehavior.resolveCommand(w),
this.isNavigateAction(w)){var Z=void 0;w=_.A((Z=_.A(w,zu9))==null?void 0:Z.command,_.qW);Z=void 0;this.isPlaylistAction((Z=w)==null?void 0:Z.endpoint)&&(_.aV(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),Z=void 0,this.ytComponentBehavior.resolveCommand((Z=w)==null?void 0:Z.endpoint))}}a.actions&&a.actions.some(function(N){var B;return _.A(N,_.qW)||_.A((B=_.A(N,zu9))==null?void 0:B.command,_.qW)})||_.aV(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.t.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.t.onCancelTap=function(){var a,W,w;if(!((a=this.data)==null?0:(W=a.cancelButton)==null?0:(w=W.buttonRenderer)==null?0:w.isDisabled)){var Z,N,B;a=(Z=this.data)==null?void 0:(N=Z.cancelButton)==null?void 0:(B=N.buttonRenderer)==null?void 0:B.command;if(!a||!_.A(a,_.Rd8)){var I;this.nameInput&&((I=this.data)==null?0:I.name)&&(this.nameInput.value=this.data.name);var X;this.handleInput&&((X=this.data)==null?0:X.channelHandleInput)&&(this.handleInput.data=_.A(this.data.channelHandleInput,m7E));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.t.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.t.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.t.onClearProfilePhotoTap=function(){var a,W,w;((a=this.data)==null?0:(W=a.clearProfilePhotoButton)==null?0:(w=W.buttonRenderer)==null?0:w.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.t.onEditAvatarTap=function(){var a,W,w;((a=this.data)==null?0:(W=a.editAvatarButton)==null?0:(w=W.buttonRenderer)==null?0:w.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.t.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)};
_.t.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)};
_.t.setErrorState=function(a){this.resetErrorState();if(a)this.set("errorMessage",a);else{var W;if((W=this.zeroStepErrorMessageEntity)==null?0:W.value)this.set("errorMessage",_.b8(this.zeroStepErrorMessageEntity.value));else{var w;((w=this.data)==null?0:w.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.t.fetchImageBlobWithAlr=function(a,W){W=W===void 0?5:W;var w=this,Z,N,B,I,X;return _.P(function(v){switch(v.nextAddress){case 1:return _.g(v,fetch(a,{method:"GET",mode:"cors"}),2);case 2:Z=v.yieldResult;if(Z.ok){v.jumpTo(3);break}if(W===0)throw Error();N=w.addJitter(Math.pow(2,5-W));return _.g(v,new Promise(function(U){setTimeout(U,N*1E3)}),4);
case 4:return v.return(w.fetchImageBlobWithAlr(a,W-1));case 3:if(!Z.headers.get("content-type").split(";").some(function(U){return U.trim()==="text/plain"})){v.jumpTo(5);
break}B=w;I=B.fetchImageBlobWithAlr;return _.g(v,Z.text(),6);case 6:return v.return(I.call(B,v.yieldResult,W-1));case 5:return _.g(v,Z.blob(),7);case 7:return X=v.yieldResult,v.return(X)}})};
_.t.addJitter=function(a){var W=a*.3*Math.random();Math.random()>.5&&(W*=-1);return a+W};
_.t.openProfilePicturePicker=function(){var a=this,W,w,Z,N,B;return _.P(function(I){if(I.nextAddress==1){W=a.data.scottyUploadUrl;if(!W)return I.return();w=document.documentElement.hasAttribute("dark");Z=document.body.style.colorScheme;w&&(document.body.style.colorScheme="dark");N=yDK(ETk(Hon(G1n(w?"dark":"light")),function(X){var v,U,O,S,T;return _.P(function(p){if(p.nextAddress==1)return v=_.uE(k6I(new Kb(X.photoUrl,!1)).build(),"alr","yes"),a.obakeImageSource=a.pictureChangeSourceToObakeImageSourceType(X.photoSource),
_.tq(p,2),a.setLoadingState(),_.g(p,a.fetchImageBlobWithAlr(v),4);if(p.nextAddress!=2)return U=p.yieldResult,O=new FileReader,O.addEventListener("load",function(){var h,L,F,x,G,V;return _.P(function(d){if(d.nextAddress==1){if(U.size>15728640)return a.setErrorState((h=a.data)==null?void 0:h.imageSizeErrorMessage),_.jJ(Error("hl")),d.return();if(!O.result)return a.setErrorState((L=a.data)==null?void 0:L.genericImageLoadErrorMessage),_.jJ(Error("il")),d.return();F=O.result;_.tq(d,2);return _.g(d,Qsn(U,
W),4)}if(d.nextAddress!=2)return x=d.yieldResult,a.handleImageUpdatedAction(F,x),a.resetErrorState(),_.qY(d,0);G=_.Pb(d);a.setErrorState((V=a.data)==null?void 0:V.uploadErrorMessage);if(G instanceof Error)_.eJ(G);else{var ZD=new _.Uw(JSON.stringify(G));_.eJ(ZD)}_.Xd(d)})}),O.readAsDataURL(U),_.qY(p,0);
S=_.Pb(p);a.setErrorState((T=a.data)==null?void 0:T.genericImageLoadErrorMessage);S instanceof Error?_.eJ(S):_.nH(new _.Uw(JSON.stringify(S)));_.Xd(p)})}),function(){a.hideContainer=!1;
document.body.style.colorScheme=Z});
_.tq(I,2);return _.g(I,N.openPicker(),4)}if(I.nextAddress!=2)return _.qY(I,0);_.Pb(I);a.setErrorState((B=a.data)==null?void 0:B.selectImageErrorMessage);_.Xd(I)})};
_.t.pictureChangeSourceToObakeImageSourceType=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.t.logScreenVe=function(){_.NJ(_.$J(),124448)};
_.t.graftServerVe=function(){var a=_.eH(),W,w,Z=(W=this.data)==null?void 0:(w=W.loggingDirectives)==null?void 0:w.trackingParams;Z&&a&&(this.channelCreationFormVe=_.$J().graftServerVe(Z,a),a={visualElement:this.channelCreationFormVe},_.Nw().reportShown(a))};
_.t.isNameChanged=function(a){var W;return((W=this.data)==null?void 0:W.name)!==a};
_.t.isHandleChanged=function(a){var W,w=_.A((W=this.data)==null?void 0:W.channelHandleInput,m7E);return w&&a?w.handle!==a:!1};
_.t.handleImageUpdatedAction=function(a,W){this.hideContainer=!1;this.previewDataUrl=a;this.encryptedBlobId=W};
_.t.handleImageSelectionErrorAction=function(a){this.hideContainer=!1;this.setErrorState(a)};
_.t.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.t.showContainer=function(){this.hideContainer=!1};
_.t.maybeWipeZeroStepErrorMessage=function(){var a,W=(a=this.data)==null?void 0:a.zeroStepErrorMessageEntityKey,w;W&&((w=this.zeroStepErrorMessageEntity)==null?0:w.value)&&this.ytdReduxBehavior.dispatch(_.oL("stringEntity",W,{key:W,value:""}))};
_.dU.Object.defineProperties(sk.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}}});
sk.prototype.dataChanged=sk.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],sk.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],sk.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],sk.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sk.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],sk.prototype,"errorMessage",void 0);
_.f([_.b(),_.z("design:type",Object)],sk.prototype,"isLoading",void 0);_.f([_.b(),_.z("design:type",String)],sk.prototype,"previewDataUrl",void 0);_.f([_.b(),_.z("design:type",Number)],sk.prototype,"obakeImageSource",void 0);_.f([_.b(),_.z("design:type",Object)],sk.prototype,"hideContainer",void 0);_.f([_.w$("#title-input"),_.z("design:type",Object)],sk.prototype,"nameInput",void 0);_.f([_.w$("#handle-input"),_.z("design:type",Object)],sk.prototype,"handleInput",void 0);
_.f([_.b(),_.z("design:type",Boolean)],sk.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.f([_.b({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Y4C}),_.z("design:type",Object)],sk.prototype,"zeroStepErrorMessageEntity",void 0);_.f([_.Q("data","data.isDefaultProfilePhoto","previewDataUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],sk.prototype,"photoThumbnail",null);
_.f([_.Q("data","data.isDefaultProfilePhoto","photoThumbnail"),_.z("design:type",Object),_.z("design:paramtypes",[])],sk.prototype,"userSetPhotoThumbnailUrl",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sk.prototype,"hideProfilePhotoButtonLayer",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sk.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.f([_.lO("data","zeroStepErrorMessageEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sk.prototype,"dataChanged",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.descriptionInfo","zeroStepErrorMessageEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],sk.prototype,"description",null);sk=_.f([_.C({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],sk);
_.D(sk,"ytd-channel-creation-dialog-renderer",function(){if(z70!==void 0)return z70;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return z70=a},{mode:1});var y8I;var uU=function(){var a=_.u.apply(this,arguments)||this;a.isLoading=!1;a.isDisabled=!1;return a};
_.c(uU,_.u);uU.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
uU.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)};
uU.prototype.onSaveClick=function(){var a=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var W;((W=this.data)==null?void 0:W.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 w;if((w=a.data)==null?0:w.nextEndpoint){var Z;a.ytComponentBehavior.resolveCommand((Z=a.data)==null?void 0:Z.nextEndpoint)}else a.isLoading=
!1,a.closeDialog()},
onServerError:function(){a.isLoading=!1;a.handleInput.validate();var w;a.errorMessage=(w=a.data)==null?void 0:w.errorMessage}}}))}};
uU.prototype.closeDialog=function(){_.aV(this.hostElement,"yt-close-popup-action",[this.is])};
uU.prototype.updateDisabled=uU.prototype.updateDisabled;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],uU.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],uU.prototype,"data",void 0);_.f([_.w$("#handle-input"),_.z("design:type",Object)],uU.prototype,"handleInput",void 0);_.f([_.a5("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uU.prototype,"updateDisabled",null);
uU=_.f([_.C({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],uU);
_.D(uU,"ytd-channel-handle-edit-dialog-renderer",function(){if(y8I!==void 0)return y8I;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return y8I=a},{mode:1});var Etk;var Cy=function(){return _.u.apply(this,arguments)||this};
_.c(Cy,_.u);Cy.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Cy.prototype,"data",void 0);Cy=_.f([_.C({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Cy);
_.D(Cy,"ytd-channel-switcher-footer-renderer",function(){if(Etk!==void 0)return Etk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Etk=a},{mode:1});var aUD;var WR9;var GE=function(){return _.u.apply(this,arguments)||this};
_.c(GE,_.u);GE.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
GE.prototype.onIronChange=GE.prototype.onIronChange;_.f([_.b(),_.z("design:type",Object)],GE.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!1}),_.z("design:type",Function)],GE.prototype,"onDontAskAgainChanged",void 0);_.f([_.w$("#checkbox"),_.z("design:type",Object)],GE.prototype,"checkbox",void 0);_.f([_.E6("iron-change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GE.prototype,"onIronChange",null);
GE=_.f([_.C({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],GE);
_.D(GE,"ytd-identity-prompt-footer-renderer",function(){if(WR9!==void 0)return WR9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return WR9=a},{mode:1});var DN=function(){var a=_.u.apply(this,arguments)||this;a.dontAskAgain=!1;a.showPopup=!1;a.boundDontAskAgainChanged=function(W){a.dontAskAgainChanged(W)};
a.boundOnAccountItemTap=function(W){a.onAccountItemTap(W)};
return a};
_.c(DN,_.u);_.t=DN.prototype;
_.t.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]]"}}}}}};
_.t.ready=function(){var a=this;_.M(this.hostElement).querySelector("#container").addEventListener("scroll",function(){a.ytRendererBehavior.markDirty()})};
_.t.dontAskAgainChanged=function(a){this.dontAskAgain=a};
_.t.onAccountItemTap=function(a){if(a){var W={};this.dontAskAgain&&(W={dont_ask_again:this.dontAskAgain});_.ih(a,W)}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.t.redirectOnlyAccount=function(a){a.sections&&a.sections.length>0&&(a=_.A(a.sections[0],_.FKe),(a==null?0:a.contents)&&(a==null?void 0:a.contents.length)<=1?(a=_.st(window.location.href),(a==null?0:a.next)&&_.e3E(a.next)?_.ih(a.next):_.ih("/")):this.showPopup=!0)};
DN.prototype.dataChanged=DN.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],DN.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],DN.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!1}),_.z("design:type",Object)],DN.prototype,"dontAskAgain",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DN.prototype,"showPopup",void 0);_.f([_.b({reflectToAttribute:!1}),_.z("design:type",Object)],DN.prototype,"boundDontAskAgainChanged",void 0);_.f([_.b({reflectToAttribute:!1}),_.z("design:type",Object)],DN.prototype,"boundOnAccountItemTap",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DN.prototype,"dataChanged",null);
DN=_.f([_.C({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],DN);
_.D(DN,"ytd-channel-switcher-renderer",function(){if(aUD!==void 0)return aUD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return aUD=a},{mode:1});var wRD;var fy=function(){return _.u.apply(this,arguments)||this};
_.c(fy,_.u);_.dU.Object.defineProperties(fy.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.f([_.b(),_.z("design:type",Object)],fy.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],fy.prototype,"steps",null);fy=_.f([_.C({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],fy);
_.D(fy,"ytd-channel-transfer-stepper-renderer",function(){if(wRD!==void 0)return wRD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return wRD=a},{mode:1});var Zdf;var dp=function(){var a=_.u.apply(this,arguments)||this;a.data=null;a.isError=!1;a.isLoading=!1;return a};
_.c(dp,_.u);_.t=dp.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.t.computeProfileName=function(a){return a?a.givenNameValue+" "+a.familyNameValue:""};
_.t.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)};
_.t.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)};
dp.prototype.onYtServiceRequestError=dp.prototype.onYtServiceRequestError;dp.prototype.onYtServiceRequestSent=dp.prototype.onYtServiceRequestSent;dp.prototype.dataChanged=dp.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],dp.prototype,"data",void 0);
_.f([_.b({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.z("design:type",String)],dp.prototype,"profileName",void 0);_.f([_.b(),_.z("design:type",Object)],dp.prototype,"isError",void 0);_.f([_.b(),_.z("design:type",Object)],dp.prototype,"isLoading",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dp.prototype,"dataChanged",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],dp.prototype,"onYtServiceRequestSent",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],dp.prototype,"onYtServiceRequestError",null);dp=_.f([_.C({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],dp);
_.D(dp,"ytd-channel-warm-welcome-cont-renderer",function(){if(Zdf!==void 0)return Zdf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Zdf=a},{mode:1});var N82;var m2=function(){var a=_.u.apply(this,arguments)||this;a.data=null;return a};
_.c(m2,_.u);m2.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
m2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],m2.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],m2.prototype,"data",void 0);m2=_.f([_.C({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],m2);
_.D(m2,"ytd-channel-warm-welcome-renderer",function(){if(N82!==void 0)return N82;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return N82=a},{mode:1});var tdk;var Vy=function(){return _.u.apply(this,arguments)||this};
_.c(Vy,_.u);_.dU.Object.defineProperties(Vy.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.authorThumbnail)||{}}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Vy.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Vy.prototype,"thumbnailDetails",null);Vy=_.f([_.C({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Vy);
_.D(Vy,"ytd-comment-preview-renderer",function(){if(tdk!==void 0)return tdk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return tdk=a},{mode:1});var $lk;var zE=function(){return _.u.apply(this,arguments)||this};
_.c(zE,_.u);zE.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.dU.Object.defineProperties(zE.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.submitButton}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],zE.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],zE.prototype,"submitButton",null);zE=_.f([_.C({is:"ytd-notice-renderer",disableElementRegistration:!0})],zE);
_.D(zE,"ytd-notice-renderer",function(){if($lk!==void 0)return $lk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return $lk=a},{mode:1});var B8i;var HV=function(){return _.u.apply(this,arguments)||this};
_.c(HV,_.u);HV.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],HV.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],HV.prototype,"data",void 0);HV=_.f([_.C({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],HV);
_.D(HV,"ytd-preview-comment-dialog-content",function(){if(B8i!==void 0)return B8i;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return B8i=a},{mode:1});var lUf;var yy=function(){return _.u.apply(this,arguments)||this};
_.c(yy,_.u);yy.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
yy.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],yy.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],yy.prototype,"data",void 0);yy=_.f([_.C({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],yy);
_.D(yy,"ytd-preview-comment-dialog-renderer",function(){if(lUf!==void 0)return lUf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return lUf=a},{mode:1});var IUI;var PCd=_.r("web_button_rework")&&_.JS("BUTTON_REWORK")||_.r("web_button_rework_with_live"),Ek=function(){var a=_.u.apply(this,arguments)||this;a.selectedAmountIndex=1;a.privacyCheckboxValue=!1;a.useAmsterdamStyle=PCd;a.amountPlaceholderIndex=-1;return a};
_.c(Ek,_.u);_.t=Ek.prototype;_.t.onAmountClick=function(a){this.selectedAmountIndex=_.M(this.hostElement).querySelector("#amounts").indexForElement(a.currentTarget)};
_.t.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.aV(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.t.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.aV(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.aV(this.hostElement,"yt-close-popup-action",[this.is]);var a;(a=_.fA())==null||a.getPlayerPromise().then(function(W){W.pauseVideo()})}};
_.t.donationCallback=function(a){a.success?(this.hostElement.hasAttribute("live-chat")&&a.response&&a.response.data&&a.response.data.actions&&_.aV(this.hostElement,"yt-live-chat-open-popup",[a.response.data.actions[0]]),_.aV(this.hostElement,"yt-close-popup-action",[this.is]),_.aV(this.hostElement,"yt-live-chat-close-buy-flow")):a.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(a.errorMessageRenderer)};
_.t.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.M(this.hostElement).querySelector("#custom-amount-input").focus()};
_.t.updateConfirmationDialogTextWithAmount=function(a){var W=this.getConfirmDialogRuns();W&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(W),"text"],this.getFormattedAmount(a))};
_.t.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.t.getAmountPlaceholderIndex=function(a){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=a.findIndex(function(W){return W.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.t.getFormattedAmount=function(a){var W;return(new _.JG(4,((W=this.data)==null?void 0:W.currencyCode)||"")).format(a)};
_.t.isAmountValid=function(a){if(a==="")return!1;a=Number(a)*1E6;var W=this.get("minAmountMicros",this.data),w=this.get("maxAmountMicros",this.data);return W&&a<W||w&&a>w?!1:!0};
_.t.setInputError=function(){this.shouldShowValidationError?_.M(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.M(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.t.setInitialCheckboxValue=function(){var a;this.privacyCheckboxValue=!((a=this.data)==null||!a.privacyCheckboxInitialState)};
_.t.updateCustomAmountInputFromBinding=function(a){this.customAmountInput=a.detail.value};
_.t.updatePrivacyCheckboxValueFromBinding=function(a){this.privacyCheckboxValue=a.detail.value};
_.dU.Object.defineProperties(Ek.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var a=this,W,w;return((W=this.data)==null?void 0:(w=W.suggestedAmounts)==null?void 0:w.map(function(Z,N){return{buttonRenderer:{style:a.selectedAmountIndex===N?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:Z.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})}}});
Ek.prototype.setInitialCheckboxValue=Ek.prototype.setInitialCheckboxValue;Ek.prototype.setInputError=Ek.prototype.setInputError;Ek.prototype.setFocusOnCustomAmountInput=Ek.prototype.setFocusOnCustomAmountInput;_.f([_.R(O0z),_.z("design:type",Object)],Ek.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ek.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ek.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Ek.prototype,"selectedAmountIndex",void 0);_.f([_.b(),_.z("design:type",String)],Ek.prototype,"customAmountInput",void 0);_.f([_.b(),_.z("design:type",Object)],Ek.prototype,"privacyCheckboxValue",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ek.prototype,"useAmsterdamStyle",void 0);_.f([_.a5("customAmount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ek.prototype,"setFocusOnCustomAmountInput",null);_.f([_.Q("data","selectedAmountIndex"),_.z("design:type",Array),_.z("design:paramtypes",[])],Ek.prototype,"suggestedAmountButtons",null);
_.f([_.Q("data","selectedAmountIndex"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ek.prototype,"isCustomAmountSelected",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ek.prototype,"showPrivacyCheckbox",null);_.f([_.Q("data","selectedAmountIndex","customAmount"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ek.prototype,"amountMicros",null);
_.f([_.Q("isCustomAmountSelected","customAmountInput"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ek.prototype,"customAmount",null);_.f([_.Q("customAmount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ek.prototype,"shouldShowValidationError",null);_.f([_.Q("customAmount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ek.prototype,"isDonateButtonEnabled",null);
_.f([_.Q("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ek.prototype,"donateCommand",null);_.f([_.Q("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ek.prototype,"donateCommandWithConfirmation",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ek.prototype,"largeDonationThreshold",null);
_.f([_.Q("customAmount","donateCommand","amountMicros"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ek.prototype,"confirmLargeAmountCommand",null);_.f([_.Q("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ek.prototype,"donateButtonRenderer",null);_.f([_.a5("shouldShowValidationError"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ek.prototype,"setInputError",null);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ek.prototype,"setInitialCheckboxValue",null);Ek=_.f([_.C({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Ek);
_.D(Ek,"ytd-donation-amount-picker-renderer",function(){if(IUI!==void 0)return IUI;var a=document.createElement("template");_.n(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" 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="" 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">\n      </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">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </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">\n            [[getSimpleString(data.campaignDescription)]]\n          </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">\n        [[getSimpleString(data.campaignDescription)]]\n      </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">\n      </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(_.y().content.cloneNode(!0),
a.content.firstChild);return IUI=a},{mode:1});var XRn;var a9=function(){return _.u.apply(this,arguments)||this};
_.c(a9,_.u);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],a9.prototype,"ytComponentBehavior",void 0);_.f([_.b({}),_.z("design:type",Object)],a9.prototype,"data",void 0);a9=_.f([_.C({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],a9);
_.D(a9,"ytd-donation-post-transaction-content",function(){if(XRn!==void 0)return XRn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return XRn=a},{mode:1});var vlf;var WF=function(){return _.u.apply(this,arguments)||this};
_.c(WF,_.u);WF.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.f([_.b({}),_.z("design:type",Object)],WF.prototype,"data",void 0);WF=_.f([_.C({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],WF);
_.D(WF,"ytd-donation-post-transaction-renderer",function(){if(vlf!==void 0)return vlf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return vlf=a},{mode:1});var glX;var olI;var wL=function(){return _.u.apply(this,arguments)||this};
_.c(wL,_.u);wL.prototype.computeIsStreamingProvider=function(a){return!!a.isStreamingShelf};
wL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],wL.prototype,"data",void 0);_.f([_.b({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],wL.prototype,"isStreamingProvider",void 0);
wL=_.f([_.C({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],wL);
_.D(wL,"ytd-media-provider-renderer",function(){if(olI!==void 0)return olI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return olI=a},{mode:1});var knf;var ZF=function(){return _.u.apply(this,arguments)||this};
_.c(ZF,_.u);ZF.prototype.observeLightsourcePalette=function(){var a,W=(a=this.data)==null?void 0:a.vibrantsourceColorPaletteData;W&&_.Tw(this.hostElement,W)};
ZF.prototype.observeLightsourcePalette=ZF.prototype.observeLightsourcePalette;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ZF.prototype,"data",void 0);
_.f([_.a5("data.vibrantsourceColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZF.prototype,"observeLightsourcePalette",null);ZF=_.f([_.C({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],ZF);
_.D(ZF,"ytd-streaming-pop-up-dialog",function(){if(knf!==void 0)return knf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return knf=a},{mode:1});var NB=function(){return _.u.apply(this,arguments)||this};
_.c(NB,_.u);NB.prototype.onPopupOpened_=function(){var a;((a=this.data)==null?0:a.serviceEndpoint)&&_.K().resolve(_.zU).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
NB.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
NB.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"}}}}};
NB.prototype.onPopupOpened_=NB.prototype.onPopupOpened_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],NB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.j8),_.z("design:type",Object)],NB.prototype,"ytContinuationHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],NB.prototype,"data",void 0);
_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NB.prototype,"onPopupOpened_",null);NB=_.f([_.C({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],NB);
_.D(NB,"ytd-brandconnect-popup-renderer",function(){if(glX!==void 0)return glX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return glX=a},{mode:1});var UlE;var tZ=function(){return _.u.apply(this,arguments)||this};
_.c(tZ,_.u);_.t=tZ.prototype;_.t.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.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)};
_.t.updateSubmitButton=function(a){this.set("data.submitButton.buttonRenderer.isDisabled",!a)};
_.t.computeAlt=function(a){return _.sd(a)};
_.t.onDismissTap=function(){_.aV(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.K().resolve(_.zU).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.t.getOptionRenderers=function(a){return(a=a||this.data)&&a.options?a.options.reduce(function(W,w){w.checkboxSurveyOptionRenderer&&W.push(w.checkboxSurveyOptionRenderer);return W},[]):[]};
_.t.onOptionChange=function(a){var W=this,w=!1;if(a.detail.checked)for(var Z=this.getOptionRenderers().find(function(X){return X.value===a.detail.value}),N=this.getOptionRenderers(),B=0;B<N.length;B++){var I=N[B];
this.notifyPath("data.options."+B+".checkboxSurveyOptionRenderer.checked");I.checked&&((Z==null?0:Z.isExclusiveOption)?!I.isExclusiveOption:I.isExclusiveOption)?this.set("data.options."+B+".checkboxSurveyOptionRenderer.checked",!1):I.checked&&(w=!0)}else w=this.getOptionRenderers().some(function(X,v){W.notifyPath("data.options."+v+".checkboxSurveyOptionRenderer.checked");return X.checked});
this.updateSubmitButton(w)};
_.t.onSubmitTap=function(){var a=this.getOptionRenderers().filter(function(B){return B.checked});
if(a.length!==0){var W=a.map(function(B){return B.responseEndpoint});
a=[];for(var w=1;w<W.length;w++){var Z=void 0,N=(Z=_.A(W[w],_.F2))==null?void 0:Z.feedbackToken;N&&a.push(N)}W=[W[0]];a.length&&W.push({extra_feedback_tokens:a});_.Z9(this.hostElement,W);_.aV(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);a=this.data&&this.data.submitActions||[];if(_.r("kevlar_command_handler_migration_killswitch"))_.N1(this.hostElement,a,this.hostElement);else for(a=_.l(a),W=a.next();!W.done;W=a.next())this.ytComponentBehavior.resolveCommand(W.value)}};
tZ.prototype.onOptionChange=tZ.prototype.onOptionChange;tZ.prototype.dataChanged=tZ.prototype.dataChanged;_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],tZ.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],tZ.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.f([_.R(qq2),_.z("design:type",Object)],tZ.prototype,"ytdHatsSurveyBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],tZ.prototype,"data",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tZ.prototype,"dataChanged",null);
_.f([_.E6("ytd-checkbox-survey-option-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],tZ.prototype,"onOptionChange",null);tZ=_.f([_.C({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],tZ);
_.D(tZ,"ytd-checkbox-survey-renderer",function(){if(UlE!==void 0)return UlE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return UlE=a},{mode:1});var Oda;var Su9;var $C=function(){return _.u.apply(this,arguments)||this};
_.c($C,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.f([_.R(Rv2),_.z("design:type",Object)],$C.prototype,"ytdDismissalReasonBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$C.prototype,"data",void 0);$C=_.f([_.C({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],$C);
_.D($C,"ytd-dismissal-reason-text-renderer",function(){if(Su9!==void 0)return Su9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Su9=a},{mode:1});var YuX;var BF=function(){return _.u.apply(this,arguments)||this};
_.c(BF,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.f([_.R(Rv2),_.z("design:type",Object)],BF.prototype,"ytdDismissalReasonBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],BF.prototype,"data",void 0);BF=_.f([_.C({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],BF);
_.D(BF,"ytd-dismissal-reason-video-renderer",function(){if(YuX!==void 0)return YuX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return YuX=a},{mode:1});var lp=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(lp,_.u);_.t=lp.prototype;_.t.created=function(){this.selectedFeedbackTokens=new uX};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.t.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.t.onDismissalReasonSelected=function(a,W){_.E$(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(W);this.hasReasonsSelected=!0};
_.t.onDismissalReasonDeselected=function(a,W){_.E$(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(W);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.t.onCancelTap=function(){_.aV(this.hostElement,"yt-close-popup-action")};
_.t.onSubmitTap=function(){var a=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(a={feedback_tokens:a},_.K().resolve(_.zU).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},a,{element:this.hostElement})}));_.aV(this.hostElement,"yt-close-popup-action")};
lp.prototype.onDismissalReasonDeselected=lp.prototype.onDismissalReasonDeselected;lp.prototype.onDismissalReasonSelected=lp.prototype.onDismissalReasonSelected;lp.prototype.dataChanged=lp.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],lp.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Boolean)],lp.prototype,"hasReasonsSelected",void 0);_.f([_.b(),_.z("design:type",uX)],lp.prototype,"selectedFeedbackTokens",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lp.prototype,"darkerDarkTheme",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lp.prototype,"dataChanged",null);
_.f([_.E6("yt-dismissal-reason-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,String]),_.z("design:returntype")],lp.prototype,"onDismissalReasonSelected",null);_.f([_.E6("yt-dismissal-reason-deselected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,String]),_.z("design:returntype")],lp.prototype,"onDismissalReasonDeselected",null);lp=_.f([_.C({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],lp);
_.D(lp,"ytd-dismissal-follow-up-renderer",function(){if(Oda!==void 0)return Oda;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Oda=a},{mode:1});var T8X;var I9=function(){return _.u.apply(this,arguments)||this};
_.c(I9,_.u);_.t=I9.prototype;_.t.onCheckedChange=function(){this.multiselect||_.E$(this.hostElement,"yt-feedback-single-select-changed");_.M(this.hostElement).querySelector("#freeform").focus();_.E$(this.hostElement,"yt-refit")};
_.t.showTextBox=function(a,W){return a&&W};
_.t.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))};
_.t.updateDataCheckedFromBinding=function(a){this.set("data.checked",a.detail.value)};
_.t.updateDataResultTextFromBinding=function(a){this.set("data.resultText",a.detail.value)};
I9.prototype.dataChanged=I9.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],I9.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],I9.prototype,"multiselect",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],I9.prototype,"dataChanged",null);
I9=_.f([_.C({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],I9);
_.D(I9,"ytd-feedback-option-renderer",function(){if(T8X!==void 0)return T8X;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return T8X=a},{mode:1});var KRE;var PF=function(){return _.u.apply(this,arguments)||this};
_.c(PF,_.u);PF.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
PF.prototype.onSingleSelectCheckedChanged=function(a){a=_.QV(a);for(var W=0;W<this.data.options.length;W++)if(a.data!==_.A(this.data.options[W],FFi)){var w="data.options."+W+".feedbackOptionRenderer.checked";this.notifyPath(w);this.set(w,!1)}};
PF.prototype.onSingleSelectCheckedChanged=PF.prototype.onSingleSelectCheckedChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],PF.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],PF.prototype,"data",void 0);
_.f([_.E6("yt-feedback-single-select-changed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],PF.prototype,"onSingleSelectCheckedChanged",null);PF=_.f([_.C({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],PF);
_.D(PF,"ytd-feedback-question-renderer",function(){if(KRE!==void 0)return KRE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return KRE=a},{mode:1});var pRK;var Xe=function(){return _.u.apply(this,arguments)||this};
_.c(Xe,_.u);Xe.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Xe.prototype.getSelectedFeedbackResults=function(){for(var a={},W=0;W<this.data.questions.length;W++)for(var w=_.A(this.data.questions[W],J4f),Z=0;Z<w.options.length;Z++){var N=_.A(w.options[Z],FFi);N&&N.checked&&(a[N.optionKey]=N.resultText)}return a};
Xe.prototype.onKeyUp=function(){var a=this;_.mY(_.hF,function(){_.E$(a.hostElement,"yt-refit")});
_.hF.start()};
Xe.prototype.submitSurvey=function(){var a=this.getSelectedFeedbackResults();Object.keys(a).length>0&&this.data.submitFeedbackEndpoint&&(a={survey_results:a,is_feedback_token_unencrypted:!0},_.K().resolve(_.zU).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},a,{element:this.hostElement})}))};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Xe.prototype,"data",void 0);Xe=_.f([_.C({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Xe);
_.D(Xe,"ytd-feedback-survey-renderer",function(){if(pRK!==void 0)return pRK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return pRK=a},{mode:1});var rVI;var AV0;var vF=function(){return _.u.apply(this,arguments)||this};
_.c(vF,_.u);vF.prototype.computeAlt=function(a){return _.sd(a)};
vF.prototype.submitResponse=function(){var a,W;(a=this.data)!=null&&a.feedbackToken&&((W=this.data)==null?void 0:W.nextStageIndex)!==void 0&&(_.W_(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.W_(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
vF.prototype.onClick=function(){this.submitResponse()};
vF.prototype.onClick=vF.prototype.onClick;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],vF.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],vF.prototype,"vertical",void 0);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vF.prototype,"onClick",null);
vF=_.f([_.C({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],vF);
_.D(vF,"ytd-single-select-answer-option-renderer",function(){if(AV0!==void 0)return AV0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return AV0=a},{mode:1});var hC9;var gL=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");a.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return a};
_.c(gL,_.u);gL.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
gL.prototype.dataChanged=function(){var a,W;this.vertical=((W=(a=this.data)==null?void 0:a.answerOrientation)!=null?W:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
gL.prototype.submitFeedback=function(a){var W;((W=this.data)==null?0:W.responseEndpoint)&&a&&_.Z9(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[a]}])};
gL.prototype.dataChanged=gL.prototype.dataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],gL.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],gL.prototype,"eventForwardingBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],gL.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],gL.prototype,"vertical",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gL.prototype,"darkerDarkTheme",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gL.prototype,"dataChanged",null);gL=_.f([_.C({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],gL);
_.D(gL,"ytd-single-select-question-renderer",function(){if(hC9!==void 0)return hC9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return hC9=a},{mode:1});var o9=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return a};
_.c(o9,_.u);_.t=o9.prototype;_.t.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"}}}};
_.t.dataChanged=function(){this.jumpToStage(0)};
_.t.jumpToStage=function(a){var W,w;if((W=this.data)==null?0:(w=W.stages)==null?0:w[a])this.currentStage=this.data.stages[a],this.refitAfterRender()};
_.t.computeAlt=function(a){return _.sd(a)};
_.t.computeSimpleMessage=function(a){var W;return(W=_.A(a,qjX))==null?void 0:W.messageText};
_.t.computeHideDismiss=function(a){var W;return(W=_.A(a,Ilk))==null?void 0:W.hideParentDismissButton};
_.t.onDismissTap=function(){_.aV(this.hostElement,"yt-close-popup-action");_.A(this.currentStage,qjX)||this.data.dismissalEndpoint&&_.K().resolve(_.zU).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.t.refitAfterRender=function(){var a=this;_.DW(this,function(){_.E$(a.hostElement,"yt-refit")})};
o9.prototype.dataChanged=o9.prototype.dataChanged;_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],o9.prototype,"eventForwardingBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],o9.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R(qq2),_.z("design:type",Object)],o9.prototype,"ytdHatsSurveyBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],o9.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],o9.prototype,"currentStage",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o9.prototype,"dataChanged",null);o9=_.f([_.C({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],o9);
_.D(o9,"ytd-multi-stage-survey-renderer",function(){if(rVI!==void 0)return rVI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return rVI=a},{mode:1});var idK;var kC=function(){return _.u.apply(this,arguments)||this};
_.c(kC,_.u);kC.prototype.computeAlt=function(a){return _.sd(a)};
kC.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.K().resolve(_.zU).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.aV(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.LkE(!1)))};
kC.prototype.onTap=function(){this.vertical&&this.submitResponse()};
kC.prototype.onTap=kC.prototype.onTap;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],kC.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kC.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],kC.prototype,"vertical",void 0);
_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kC.prototype,"onTap",null);kC=_.f([_.C({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],kC);
_.D(kC,"ytd-single-option-survey-option-renderer",function(){if(idK!==void 0)return idK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return idK=a},{mode:1});var cVf;var U3=function(){return _.u.apply(this,arguments)||this};
_.c(U3,_.u);_.t=U3.prototype;_.t.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){var a,W;this.vertical=(((a=this.data)==null?void 0:(W=a.surveyOrientation)==null?void 0:W.type)||"HORIZONTAL")==="VERTICAL"};
_.t.computeAlt=function(a){return _.sd(a)};
_.t.onDismissTap=function(){_.aV(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.K().resolve(_.zU).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.LkE(!1))};
U3.prototype.dataChanged=U3.prototype.dataChanged;_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],U3.prototype,"eventForwardingBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(qq2),_.z("design:type",Object)],U3.prototype,"ytdHatsSurveyBehavior",void 0);
_.f([_.R(_.ij),_.z("design:type",Object)],U3.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],U3.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],U3.prototype,"vertical",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],U3.prototype,"dataChanged",null);U3=_.f([_.C({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],U3);
_.D(U3,"ytd-single-option-survey-renderer",function(){if(cVf!==void 0)return cVf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return cVf=a},{mode:1});var eC0;var O3=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(O3,_.u);O3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
O3.prototype.onDismissTap=function(){_.aV(this.hostElement,"yt-close-popup-action")};
O3.prototype.onNavigate=function(){_.aV(this.hostElement,"yt-close-popup-action")};
O3.prototype.onNavigate=O3.prototype.onNavigate;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],O3.prototype,"ytEventForwardingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],O3.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],O3.prototype,"darkerDarkTheme",void 0);
_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O3.prototype,"onNavigate",null);O3=_.f([_.C({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],O3);
_.D(O3,"ytd-survey-follow-up-renderer",function(){if(eC0!==void 0)return eC0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return eC0=a},{mode:1});var nla;var jy0;var LRd;var SI=function(){var a=_.u.apply(this,arguments)||this;a.polymer2="Element"in Polymer;return a};
_.c(SI,_.u);_.t=SI.prototype;_.t.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.t.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.t.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.t.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("minutes-changed",this.minutes))};
_.t.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("seconds-changed",this.seconds))};
_.t.updateMinutesFromBinding=function(a){this.minutes=a.detail.value};
_.t.updateSecondsFromBinding=function(a){this.seconds=a.detail.value};
SI.prototype.secondsChangedForBinding=SI.prototype.secondsChangedForBinding;SI.prototype.minutesChangedForBinding=SI.prototype.minutesChangedForBinding;SI.prototype.secondsChanged=SI.prototype.secondsChanged;_.f([_.b(),_.z("design:type",String)],SI.prototype,"minutes",void 0);_.f([_.b(),_.z("design:type",String)],SI.prototype,"seconds",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],SI.prototype,"polymer2",void 0);
_.f([_.w$("#seconds"),_.z("design:type",Object)],SI.prototype,"secondsEl",void 0);_.f([_.a5("seconds"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SI.prototype,"secondsChanged",null);_.f([_.a5("minutes"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SI.prototype,"minutesChangedForBinding",null);
_.f([_.a5("seconds"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SI.prototype,"secondsChangedForBinding",null);SI=_.f([_.TD({is:"yt-timestamp-input",disableElementRegistration:!0})],SI);
_.D(SI,"yt-timestamp-input",function(){if(LRd===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;jy0===void 0&&(jy0=document.createElement("template"));var Z=jy0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);LRd=a}a=LRd;return a},{mode:2});var YC=function(){return _.u.apply(this,arguments)||this};
_.c(YC,_.u);_.t=YC.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18049_scroller.dialogElement=this.hostElement.parentNode};
_.t.dataChanged=function(){var a=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.d2().getPlayerPromise().then(function(W){W=W.getCurrentTime();a.minutes=Math.floor(W/60).toString();a.seconds=(Math.floor(W)%60).toString()})};
_.t.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),_.K().resolve(_.zU).resolveCommand(this.serviceEndpoint,{form:Object.assign({},a,{element:this.hostElement})}))};
_.t.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.t.onYtServiceRequestCompleted=function(a,W){W=W.actions;if(Array.isArray(W))for(var w=0,Z=W.length;w<Z;w++)_.A(W[w],_.A4)&&(a.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(W[w]))};
_.t.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.t.toggleSubmitButton=function(a){this.set("submitButton.isDisabled",!a)};
_.t.handleInput=function(){var a=this.issueType,W=this.affiliation,w=this.minutes,Z=this.seconds;w=!this.showTimestamp||!!w&&!!Z;this.toggleSubmitButton(!!this.descriptionText&&!!a&&!!W&&w)};
_.t.computeServiceEndpoint=function(a){return this.get("submitButton.buttonRenderer.serviceEndpoint",a)};
_.t.computeSubmitButton=function(a){(a=this.get("submitButton.buttonRenderer",a))&&(a=Object.assign({},a,{serviceEndpoint:void 0}));return a};
_.t.computeShowTimestamp=function(a){return!!a};
_.t.onValueChangedForIssueType=function(a){this.issueType=a.detail.value};
_.t.onValueChangedForAffiliation=function(a){this.affiliation=a.detail.value};
_.t.updateDescriptionTextFromBinding=function(a){this.descriptionText=a.detail.value};
_.t.updateFullNameTextFromBinding=function(a){this.fullNameText=a.detail.value};
_.t.updateMinutesFromBinding=function(a){this.minutes=a.detail.value};
_.t.updateSecondsFromBinding=function(a){this.seconds=a.detail.value};
YC.prototype.handleInput=YC.prototype.handleInput;YC.prototype.onYtServiceRequestError=YC.prototype.onYtServiceRequestError;YC.prototype.onYtServiceRequestCompleted=YC.prototype.onYtServiceRequestCompleted;YC.prototype.onYtServiceRequestSent=YC.prototype.onYtServiceRequestSent;YC.prototype.dataChanged=YC.prototype.dataChanged;_.f([_.R(_.Ww.YtOpenPopupBehavior),_.z("design:type",Object)],YC.prototype,"ytOpenPopupBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);_.f([_.w$("#scroller"),_.z("design:type",Object)],YC.prototype,"JSC$18049_scroller",void 0);_.f([_.w$("#description"),_.z("design:type",HTMLInputElement)],YC.prototype,"description",void 0);_.f([_.w$("#full-name"),_.z("design:type",Object)],YC.prototype,"fullName",void 0);_.f([_.b(),_.z("design:type",Object)],YC.prototype,"data",void 0);
_.f([_.b({computed:"computeShowTimestamp(data.timestampLabel)"}),_.z("design:type",Boolean)],YC.prototype,"showTimestamp",void 0);_.f([_.b({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.z("design:type",Object)],YC.prototype,"serviceEndpoint",void 0);_.f([_.b({computed:"computeSubmitButton(data)"}),_.z("design:type",Object)],YC.prototype,"submitButton",void 0);_.f([_.b(),_.z("design:type",String)],YC.prototype,"descriptionText",void 0);
_.f([_.b(),_.z("design:type",Number)],YC.prototype,"issueType",void 0);_.f([_.b(),_.z("design:type",Number)],YC.prototype,"affiliation",void 0);_.f([_.b(),_.z("design:type",String)],YC.prototype,"fullNameText",void 0);_.f([_.b(),_.z("design:type",String)],YC.prototype,"minutes",void 0);_.f([_.b(),_.z("design:type",String)],YC.prototype,"seconds",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YC.prototype,"dataChanged",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],YC.prototype,"onYtServiceRequestSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],YC.prototype,"onYtServiceRequestCompleted",null);
_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],YC.prototype,"onYtServiceRequestError",null);_.f([_.a5("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YC.prototype,"handleInput",null);YC=_.f([_.C({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],YC);
_.D(YC,"ytd-legal-report-details-form-renderer",function(){if(nla!==void 0)return nla;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return nla=a},{mode:1});var JVI;var TQ=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return a};
_.c(TQ,_.u);TQ.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
TQ.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var a=this.formRenderer.getForm();a&&this.data.submitEndpoint&&(_.K().resolve(_.zU).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},a,{element:this.hostElement})}),_.aV(this.hostElement,"yt-close-popup-action"))}};
TQ.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.aV(this.hostElement,"yt-close-popup-action"))};
TQ.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
TQ.prototype.onPopupClosed=TQ.prototype.onPopupClosed;_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],TQ.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],TQ.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);
_.f([_.w$("yt-form-renderer"),_.z("design:type",Object)],TQ.prototype,"formRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],TQ.prototype,"data",void 0);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TQ.prototype,"onPopupClosed",null);TQ=_.f([_.C({is:"ytd-form-popup-content",disableElementRegistration:!0})],TQ);
_.D(TQ,"ytd-form-popup-content",function(){if(JVI!==void 0)return JVI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return JVI=a},{mode:1});var FRi;var KQ=function(){return _.u.apply(this,arguments)||this};
_.c(KQ,_.u);KQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
KQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
KQ.prototype.onPopupOpened=function(){_.E$(this.hostElement,"yt-invalidate-popup-tabbables")};
KQ.prototype.onYtServiceRequestCompleted=function(a,W){W.data&&W.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.E$(this.hostElement,"yt-invalidate-popup-tabbables"))};
KQ.prototype.onYtServiceRequestCompleted=KQ.prototype.onYtServiceRequestCompleted;KQ.prototype.onPopupOpened=KQ.prototype.onPopupOpened;_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],KQ.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],KQ.prototype,"data",void 0);_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KQ.prototype,"onPopupOpened",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],KQ.prototype,"onYtServiceRequestCompleted",null);KQ=_.f([_.C({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],KQ);
_.D(KQ,"ytd-form-popup-renderer",function(){if(FRi!==void 0)return FRi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return FRi=a},{mode:1});var Mdk;var pQ=function(){var a=_.u.apply(this,arguments)||this;a.isLoading=!1;return a};
_.c(pQ,_.u);_.t=pQ.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");V6f(this.hostElement)};
_.t.onYtServiceRequestSent=function(){this.isLoading=!0};
_.t.onYtServiceRequestCompleted=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.t.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.N1(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.t.closePopupHandler=function(){this.fireOnCloseActions()};
_.t.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=_.G$(a,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+a+")")}};
_.t.onYtNavigate=function(a){(a=_.QV(a))&&a.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
pQ.prototype.onYtNavigate=pQ.prototype.onYtNavigate;pQ.prototype.onHeaderImageChanged=pQ.prototype.onHeaderImageChanged;pQ.prototype.closePopupHandler=pQ.prototype.closePopupHandler;pQ.prototype.onYtServiceRequestCompleted=pQ.prototype.onYtServiceRequestCompleted;pQ.prototype.onYtServiceRequestSent=pQ.prototype.onYtServiceRequestSent;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],pQ.prototype,"ytEventForwardingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],pQ.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pQ.prototype,"isLoading",void 0);_.f([_.w$("#header"),_.z("design:type",HTMLDivElement)],pQ.prototype,"header",void 0);_.f([_.w$("#confirm-button"),_.z("design:type",_.Bw)],pQ.prototype,"confirmButton",void 0);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],pQ.prototype,"onYtServiceRequestSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],pQ.prototype,"onYtServiceRequestCompleted",null);
_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],pQ.prototype,"closePopupHandler",null);_.f([_.a5("data.headerImage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pQ.prototype,"onHeaderImageChanged",null);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],pQ.prototype,"onYtNavigate",null);
pQ=_.f([_.C({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],pQ);
_.D(pQ,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(Mdk!==void 0)return Mdk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Mdk=a},{mode:1});var RC0;var rL=function(){var a=_.u.apply(this,arguments)||this;a.isLoading=!1;return a};
_.c(rL,_.u);_.t=rL.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);V6f(this.hostElement)};
_.t.onYtServiceRequestCompleted=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.t.onYtServiceRequestError=function(a){_.W6(this.hostElement,a.detail.error.message)};
_.t.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.t.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.aV(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.t.onDataChanged=function(){this.isLoading=!1;var a=this.get("data.headerImage.thumbnails");a&&(a=_.G$(a,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+a+")");a=_.nS();var W=_.eH(),w=this.get("data.trackingParams");w&&W&&a&&_.M1(a,W,_.PX(w))};
_.dU.Object.defineProperties(rL.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
rL.prototype.onDataChanged=rL.prototype.onDataChanged;rL.prototype.onDomChange=rL.prototype.onDomChange;rL.prototype.onYtServiceRequestError=rL.prototype.onYtServiceRequestError;rL.prototype.onYtServiceRequestCompleted=rL.prototype.onYtServiceRequestCompleted;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],rL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],rL.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rL.prototype,"isLoading",void 0);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],rL.prototype,"hasDescription",null);_.f([_.w$("tp-yt-paper-dialog-scrollable"),_.z("design:type",Object)],rL.prototype,"scrollable",void 0);_.f([_.w$("#header"),_.z("design:type",HTMLElement)],rL.prototype,"header",void 0);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],rL.prototype,"onYtServiceRequestCompleted",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],rL.prototype,"onYtServiceRequestError",null);
_.f([_.E6("dom-change"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],rL.prototype,"onDomChange",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rL.prototype,"onDataChanged",null);rL=_.f([_.C({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],rL);
_.D(rL,"ytd-gaming-account-link-setting-renderer",function(){if(RC0!==void 0)return RC0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return RC0=a},{mode:1});var quk;var Qy0;var AZ=function(){var a=_.u.apply(this,arguments)||this;a.isHeader=!1;a.getEndpointForm=GCd;return a};
_.c(AZ,_.u);_.t=AZ.prototype;_.t.triggerHintActions=function(){var a=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var W=_.W_(a.hostElement,"yt-get-opened-popups-action");!(W&&W.length===1?W[0]:[]).some(function(w){w=w.openPopupAction.popupType;return w==="SURVEY"||w==="MEALBAR"||w==="HINT"})&&a.data.hintActions&&a.guideOpened&&(_.N1(a.hostElement,a.data.hintActions,a.hostElement),a.data.hintActions=void 0)})};
_.t.getBadgeIconType=function(a){return a&&a.liveBroadcasting?"live":null};
_.t.onDown=function(){this.interaction.triggerDown()};
_.t.onUp=function(){this.interaction.triggerUp()};
_.t.onTap=function(a){if(this.data.serviceEndpoint){var W;_.r("shorts_controller_retrieve_seedless_sequence_v2")&&((W=_.A(this.data.serviceEndpoint,_.gi))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):C80(this.data.serviceEndpoint,this);a.preventDefault()}else this.data.navigationEndpoint&&!_.b5(_.qj(a),this.hostElement,["A".toString()])&&_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.t.computeActive=function(a,W){if(!a)return!1;var w=a.navigationEndpoint;a=a.serviceEndpoint;if(!w&&!a||!W)return!1;if(w){a=(a=_.lh(W))&&["subscriptions","filteredsubscriptions"].includes(a);if(_.A(w,_.I1)&&_.A(W,_.I1)&&!a){var Z=_.A(w,_.I1).browseId;W=_.A(W,_.I1).browseId;return Z!==void 0&&W!==void 0&&(Z===W||Z==="VLWL"&&W==="FEwatch_later"||Z==="FEwatch_later"&&W==="VLWL")}var N;w=(N=_.A(w.commandMetadata,_.mm))==null?void 0:N.url;W=(Z=_.A(W.commandMetadata,_.mm))==null?void 0:Z.url;return!(!w||
!W||w!==W&&w!==_.tw(W))}return this.isActiveShortsTab(a,W)};
_.t.isActiveShortsTab=function(a,W){W=!!_.A(W,_.gi)||!!_.A(W,_.jT);return(!!_.A(a,_.gi)||!!_.A(a,_.jT))&&W};
_.t.computeIsPrimary=function(a){return!!a};
_.dU.Object.defineProperties(AZ.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}}});
AZ.prototype.onTap=AZ.prototype.onTap;AZ.prototype.onUp=AZ.prototype.onUp;AZ.prototype.onDown=AZ.prototype.onDown;AZ.prototype.triggerHintActions=AZ.prototype.triggerHintActions;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],AZ.prototype,"componentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],AZ.prototype,"rendererBehavior",void 0);_.f([_.R(_.ui.YtTaskEmitterBehavior),_.z("design:type",Object)],AZ.prototype,"taskEmitterBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],AZ.prototype,"activeEndpoint",void 0);_.f([_.b(),_.z("design:type",Object)],AZ.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],AZ.prototype,"guideOpened",void 0);_.f([_.b(),_.z("design:type",String)],AZ.prototype,"type",void 0);_.f([_.w$("yt-interaction"),_.z("design:type",Object)],AZ.prototype,"interaction",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],AZ.prototype,"isHeader",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data","activeEndpoint"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],AZ.prototype,"active",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],AZ.prototype,"isPrimary",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.count","data.presentationStyle","data.badges.*"),_.z("design:type",String),_.z("design:paramtypes",[])],AZ.prototype,"lineEndStyle",null);
_.f([_.Q("lineEndStyle"),_.z("design:type",Object),_.z("design:paramtypes",[])],AZ.prototype,"ariaLabel",null);_.f([_.a5("data.hintActions","guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AZ.prototype,"triggerHintActions",null);_.f([_.E6("down"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AZ.prototype,"onDown",null);
_.f([_.E6("up"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AZ.prototype,"onUp",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],AZ.prototype,"onTap",null);AZ=_.f([_.C({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],AZ);
_.D(AZ,"ytd-guide-entry-renderer",function(){if(Qy0!==void 0)return Qy0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Qy0=a},{mode:1});var hZ=function(){var a=_.u.apply(this,arguments)||this;a.userToggled=!1;return a};
_.c(hZ,_.u);_.t=hZ.prototype;_.t.getItemsPath=function(){return"data.expandableItems"};
_.t.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.t.onExpanderItemTapped=function(a){var W=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.r("kevlar_guide_expandable_items_killswitch")&&_.DW(this,function(){_.CJ(W.expandableItems)});
a.preventDefault()};
_.t.onCollapserItemTapped=function(a){var W=this;this._setExpanded(!1);this.userToggled=!0;a.preventDefault();this.expandableItems&&!_.r("kevlar_guide_collapsible_items_killswitch")&&_.DW(this,function(){_.un(W.hostElement)})};
_.t.observeActiveEndpoint=function(){for(var a=this.activeEndpoint,W=this.data,w=this.expandableItems.children,Z=0,N=w.length;Z<N;Z++)w[Z].activeEndpoint=a;W&&W.autoExpandCommand&&a&&!this.userToggled&&(w=this.data.autoExpandCommand,W=!(!_.A(w,_.I1)||!_.A(a,_.I1)||_.A(w,_.I1).browseId!==_.A(a,_.I1).browseId),a=this.get("commandMetadata.webCommandMetadata.url",a),w=this.get("commandMetadata.webCommandMetadata.url",w),W=W||!!(a&&w&&a.includes(w)),this._setExpanded(W),W&&this.ytLazyListBehavior.fillRemainingListItems())};
hZ.prototype.observeActiveEndpoint=hZ.prototype.observeActiveEndpoint;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],hZ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.Vs.YtLazyListBehavior),_.z("design:type",Object)],hZ.prototype,"ytLazyListBehavior",void 0);_.f([_.w$("#expandable-items"),_.z("design:type",HTMLElement)],hZ.prototype,"expandableItems",void 0);
_.f([_.b(),_.z("design:type",Object)],hZ.prototype,"data",void 0);_.f([_.b({readOnly:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],hZ.prototype,"expanded",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],hZ.prototype,"initialCount",void 0);_.f([_.b(),_.z("design:type",Object)],hZ.prototype,"activeEndpoint",void 0);_.f([_.a5("data","activeEndpoint","canShowMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hZ.prototype,"observeActiveEndpoint",null);
hZ=_.f([_.C({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],hZ);
_.D(hZ,"ytd-guide-collapsible-entry-renderer",function(){if(quk!==void 0)return quk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return quk=a},{mode:_.Vn("kevlar_poly_si_batch_j079")?1:2});var xlD;var bdk;var ip=function(){var a=_.u.apply(this,arguments)||this;a.allVideosCount=0;a.renderGuideEntry=!1;return a};
_.c(ip,_.u);ip.prototype.observeRenderEntry=function(){var a;this.renderGuideEntry=!((a=this.data)==null||!a.alwaysShow)||!!this.allVideosCount};
ip.prototype.observeRenderEntry=ip.prototype.observeRenderEntry;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],ip.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ip.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],ip.prototype,"activeEndpoint",void 0);_.f([_.b({selector:_.QiI}),_.z("design:type",Object)],ip.prototype,"allVideosCount",void 0);
_.f([_.b(),_.z("design:type",Object)],ip.prototype,"renderGuideEntry",void 0);_.f([_.lO("allVideosCount","data.alwaysShow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ip.prototype,"observeRenderEntry",null);ip=_.f([_.C({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],ip);
_.D(ip,"ytd-guide-downloads-entry-renderer",function(){if(bdk===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);bdk=a}a=bdk;return a},{mode:1});var cF=function(){var a=_.u.apply(this,arguments)||this;a.youtab=_.r("web_enable_youtab");a.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return a};
_.c(cF,_.u);_.t=cF.prototype;_.t.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]]"}}}}}};
_.t.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var a=this.sectionItems.children,W=0,w=a.length;W<w;W++)a[W].activeEndpoint=this.activeEndpoint}};
_.t.handleAddToGuideSectionAction=function(a){var W=_.A(a,ESk);if(W&&this.data&&(a=W.items,W=W.handlerData,a&&W&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(W)>-1)){W=0;for(var w=a.length;W<w;W++)a[W].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,a[W])}};
_.t.handleRemoveFromGuideSectionAction=function(a){var W=_.A(a,al9);W&&this.data&&(a=W.guideEntryId,W=W.handlerData,a&&W&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(W)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(a,this.data.sectionItems),this.removeFromCollapsedSection(a,this.data.sectionItems)))};
_.t.removeFromExpandedSection=function(a,W){a=this.getEntryIndexMatchingId(a,W);a!==-1&&this.splice("data.sectionItems",a,1)};
_.t.removeFromCollapsedSection=function(a,W){var w=W.findIndex(function(Z){return!!_.A(Z,UaX)});
w&&w!==-1&&W[w]&&_.A(W[w],UaX)&&(W=_.A(W[w],UaX).expandableItems)&&(a=this.getEntryIndexMatchingId(a,W),a!==-1&&this.splice("data.sectionItems."+w+".guideCollapsibleEntryRenderer.expandableItems",a,1))};
_.t.getEntryIndexMatchingId=function(a,W){var w=this;return W.findIndex(function(Z){return w.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===a})};
cF.prototype.activeEndpointChanged=cF.prototype.activeEndpointChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],cF.prototype,"actionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.f([_.w$("#section-items"),_.z("design:type",HTMLDivElement)],cF.prototype,"sectionItems",void 0);
_.f([_.w$("#header-entry"),_.z("design:type",Object)],cF.prototype,"headerEntry",void 0);_.f([_.b(),_.z("design:type",Object)],cF.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],cF.prototype,"activeEndpoint",void 0);_.f([_.b(),_.z("design:type",Object)],cF.prototype,"youtab",void 0);_.f([_.a5("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cF.prototype,"activeEndpointChanged",null);
cF=_.f([_.C({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],cF);
_.D(cF,"ytd-guide-collapsible-section-entry-renderer",function(){if(xlD===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);xlD=a}a=xlD;return a},{mode:1});var syf;var u0K;var eI=function(){var a=_.u.apply(this,arguments)||this;a.modernTypography=_.r("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};
_.c(eI,_.u);_.t=eI.prototype;
_.t.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}}}}};
_.t.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var a=_.W_(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);a&&a.length===1&&a[0]&&_.W_(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.t.handleResetChannelUnreadCountCommand=function(a){var W;(a=(W=_.A(a,wof))==null?void 0:W.channelId)&&this.data&&this.data.items&&(W=this.getPathToEntryMatchingId(a))&&(this.set(W+".guideEntryRenderer.count",0),this.set(W+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.t.handleResetSubscriptionsUnreadDotCommand=function(a){var W,w=(W=_.A(a,Zzi))==null?void 0:W.targetId,Z;w&&(Z=this.data)!=null&&Z.items&&(a=this.data.items.findIndex(function(N){var B;return((B=N.guideEntryRenderer)==null?void 0:B.targetId)===w}),a<0||this.set("data.items."+a+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.t.getPathToEntryMatchingId=function(a){if(this.data&&this.data.items){var W=this.getEntryIndexMatchingId(a,this.data.items);if(W>-1)return"data.items."+W;for(var w=0;w<this.data.items.length;w++)if(W=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[w]))if(W=this.getEntryIndexMatchingId(a,W),W>-1)return"data.items."+w+".guideCollapsibleEntryRenderer.expandableItems."+W}};
_.t.handleAddToGuideSectionAction=function(a){var W=this;if(_.A(a,ESk)){var w=_.A(a,ESk).items;a=_.A(a,ESk).handlerData;var Z,N;w&&a&&((Z=this.data)==null?void 0:(N=Z.handlerDatas)==null?void 0:N.indexOf(a))>-1&&(w=w.filter(function(B){return(B=W.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",B))&&!W.isGuideItemPresent(B)}),this.unshift.apply(this,["data.items"].concat(_.K8(w))))}};
_.t.isGuideItemPresent=function(a){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(a,this.data.items)!==-1)return!0;var W=this.data.items.find(function(w){return!!w.guideCollapsibleEntryRenderer});
if((W==null?0:W.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(a,W.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.t.getEntryIndexMatchingId=function(a,W){var w=this;return W.findIndex(function(Z){return w.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===a})};
_.t.handleRemoveFromGuideSectionAction=function(a){if(_.A(a,al9)){var W=_.A(a,al9).guideEntryId;a=_.A(a,al9).handlerData;var w,Z;W&&a&&((w=this.data)==null?void 0:(Z=w.handlerDatas)==null?void 0:Z.indexOf(a))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(W,this.data.items),this.removeFromCollapsedSection(W,this.data.items))}};
_.t.removeFromExpandedSection=function(a,W){a=this.getEntryIndexMatchingId(a,W);a!==-1&&this.splice("data.items",a,1)};
_.t.removeFromCollapsedSection=function(a,W){var w=W.findIndex(function(Z){return!!Z.guideCollapsibleEntryRenderer});
w!==-1&&(W=W[w].guideCollapsibleEntryRenderer.expandableItems)&&(a=this.getEntryIndexMatchingId(a,W),a!==-1&&this.splice("data.items."+w+".guideCollapsibleEntryRenderer.expandableItems",a,1))};
_.t.activeEndpointChanged=function(){for(var a=_.M(this.hostElement).querySelector("#items").children,W=0,w=a.length;W<w;W++)a[W].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.t.guideOpenedChanged=function(){for(var a=_.M(this.hostElement).querySelector("#items").children,W=0,w=a.length;W<w;W++)a[W].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
eI.prototype.guideOpenedChanged=eI.prototype.guideOpenedChanged;eI.prototype.activeEndpointChanged=eI.prototype.activeEndpointChanged;eI.prototype.persistentGuideChanged=eI.prototype.persistentGuideChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],eI.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],eI.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.Vs.YtLazyListBehavior),_.z("design:type",Object)],eI.prototype,"ytLazyListBehavior",void 0);_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],eI.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],eI.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],eI.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],eI.prototype,"modernTypography",void 0);_.f([_.b(),_.z("design:type",String)],eI.prototype,"type",void 0);_.f([_.b({value:20}),_.z("design:type",Number)],eI.prototype,"initialCount",void 0);_.f([_.b({value:10}),_.z("design:type",Number)],eI.prototype,"targetFramerate",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],eI.prototype,"autoFill",void 0);_.f([_.b({value:50}),_.z("design:type",Number)],eI.prototype,"renderDelay",void 0);
_.f([_.a5("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eI.prototype,"persistentGuideChanged",null);_.f([_.lO("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eI.prototype,"activeEndpointChanged",null);_.f([_.lO("guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eI.prototype,"guideOpenedChanged",null);
eI=_.f([_.C({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],eI);
_.D(eI,"ytd-guide-section-renderer",function(){if(u0K!==void 0)return u0K;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return u0K=a},{mode:_.Vn("kevlar_poly_si_batch_j073")?1:2});var CCD;var nQ=function(){return _.u.apply(this,arguments)||this};
_.c(nQ,_.u);_.dU.Object.defineProperties(nQ.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],nQ.prototype,"rendererBehaviors",void 0);_.f([_.b(),_.z("design:type",Object)],nQ.prototype,"data",void 0);_.f([_.b(),_.Q("data.signInButton.buttonRenderer.style"),_.z("design:type",Object),_.z("design:paramtypes",[])],nQ.prototype,"alignByText",null);nQ=_.f([_.C({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],nQ);
_.D(nQ,"ytd-guide-signin-promo-renderer",function(){if(CCD===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);CCD=a}a=CCD;return a},{mode:1});var jI=function(){var a=_.u.apply(this,arguments)||this;a.showFooter=!1;return a};
_.c(jI,_.u);jI.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}}}}};
jI.prototype.attached=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1){W=_.K().resolve(_.Vv(_.Je));if(!W)return w.jumpTo(0);W.setGuideData(a.hostElement);return _.g(w,0,3)}a.ytLazyListBehavior.initialCount=2;return w.return()})};
jI.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
jI.prototype.dataChanged=jI.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jI.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],jI.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.Vs.YtLazyListBehavior),_.z("design:type",Object)],jI.prototype,"ytLazyListBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],jI.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],jI.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],jI.prototype,"showFooter",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],jI.prototype,"autoFill",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jI.prototype,"dataChanged",null);jI=_.f([_.C({is:"ytd-guide-renderer",disableElementRegistration:!0})],jI);
_.D(jI,"ytd-guide-renderer",function(){if(syf!==void 0)return syf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return syf=a},{mode:_.Vn("kevlar_poly_si_batch_j073")?1:2});var GnI;var LQ=function(){var a=_.u.apply(this,arguments)||this;a.systemIcons=_.r("kevlar_system_icons");a.frostedGlass=_.r("web_frosted_glass");a.getEndpointForm=GCd;return a};
_.c(LQ,_.u);_.t=LQ.prototype;_.t.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.t.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.sd(this.data.formattedTitle))};
_.t.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.t.onDown=function(){this.interaction.triggerDown()};
_.t.onUp=function(){this.interaction.triggerUp()};
_.t.onTap=function(a){if(this.data.serviceEndpoint){var W;_.r("shorts_controller_retrieve_seedless_sequence_v2")&&((W=_.A(this.data.serviceEndpoint,_.gi))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):C80(this.data.serviceEndpoint,this);a.preventDefault()}else{var w;((w=this.data)==null?0:w.navigationEndpoint)&&!_.b5(_.qj(a),this.hostElement,["A".toString()])&&_.E$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.t.computeActive=function(a,W){if(!a)return!1;var w=a.navigationEndpoint;a=a.serviceEndpoint;if(!w&&!a||!W)return!1;if(w){a=_.A(w,_.I1);var Z=_.A(W,_.I1);if(a&&Z)return a.browseId===Z.browseId&&a.params===Z.params;var N;w=(N=_.A(w.commandMetadata,_.mm))==null?void 0:N.url;var B;W=(B=_.A(W.commandMetadata,_.mm))==null?void 0:B.url;return!(!w||!W||w!==W&&w!==_.tw(W))}return this.isActiveShortsTab(a,W)};
_.t.isActiveShortsTab=function(a,W){W=!!_.A(W,_.gi)||!!_.A(W,_.jT);return(!!_.A(a,_.gi)||!!_.A(a,_.jT))&&W};
_.t.computeTitle=function(a,W){return W?"":_.sd(a)};
_.dU.Object.defineProperties(LQ.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
LQ.prototype.onTap=LQ.prototype.onTap;LQ.prototype.onUp=LQ.prototype.onUp;LQ.prototype.onDown=LQ.prototype.onDown;LQ.prototype.onActiveStateChange=LQ.prototype.onActiveStateChange;LQ.prototype.dataChanged=LQ.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],LQ.prototype,"ytComponentBehavior",void 0);
_.f([_.R(_.Ll),_.z("design:type",Object)],LQ.prototype,"ironButtonState",void 0);_.f([_.b(),_.z("design:type",Object)],LQ.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],LQ.prototype,"activeEndpoint",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],LQ.prototype,"noLabels",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.z("design:type",Boolean)],LQ.prototype,"isActive",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],LQ.prototype,"systemIcons",void 0);_.f([_.w$("yt-interaction"),_.z("design:type",Object)],LQ.prototype,"interaction",void 0);_.f([_.Q("isActive"),_.z("design:type",Object),_.z("design:paramtypes",[])],LQ.prototype,"ariaSelected",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],LQ.prototype,"frostedGlass",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LQ.prototype,"dataChanged",null);_.f([_.a5("isActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LQ.prototype,"onActiveStateChange",null);_.f([_.E6("down"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LQ.prototype,"onDown",null);
_.f([_.E6("up"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LQ.prototype,"onUp",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],LQ.prototype,"onTap",null);LQ=_.f([_.C({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],LQ);
_.D(LQ,"ytd-mini-guide-entry-renderer",function(){if(GnI!==void 0)return GnI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return GnI=a},{mode:_.Vn("kevlar_poly_si_batch_j063")?1:2});var Dl0;var JZ=function(){var a=_.u.apply(this,arguments)||this;a.allVideosCount=0;a.noLabels=_.r("kevlar_mini_guide_no_labels");a.frostedGlass=_.r("web_frosted_glass");return a};
_.c(JZ,_.u);_.t=JZ.prototype;_.t.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.t.visibleChanged=function(){if(this.visible&&!this.data){var a=_.K().resolve(_.Vv(_.Je));a&&a.setGuideData(this.hostElement)}};
_.t.dataChanged=function(){var a=[],W;if((W=this.data)!=null&&W.items){W=_.l(this.data.items);for(var w=W.next();!w.done;w=W.next()){w=w.value;var Z=void 0;if((Z=w.guideSectionRenderer)==null?0:Z.items)for(Z=void 0,w=_.l((Z=w.guideSectionRenderer)==null?void 0:Z.items),Z=w.next();!Z.done;Z=w.next())if(Z=Z.value,Z.guideEntryRenderer)Z=Z.guideEntryRenderer,Z.isPrimary&&a.push({guideEntryRenderer:Z});else if(Z.guideCollapsibleSectionEntryRenderer){var N=void 0;((N=_.A(Z.guideCollapsibleSectionEntryRenderer.headerEntry,
Go))==null?0:N.isPrimary)&&a.push({guideEntryRenderer:_.A(Z.guideCollapsibleSectionEntryRenderer.headerEntry,Go)});if(Z=Z.guideCollapsibleSectionEntryRenderer.sectionItems)for(Z=_.l(Z),N=Z.next();!N.done;N=Z.next()){var B=N.value;N=_.A(B,Ozz);var I=void 0;((I=_.A(B,Go))==null?0:I.isPrimary)?a.push({guideEntryRenderer:_.A(B,Go)}):N&&(B=void 0,_.A((B=N)==null?void 0:B.entryRenderer,Go)&&(N.alwaysShow||this.allVideosCount)&&a.push({guideEntryRenderer:_.A(N.entryRenderer,Go)}))}}}}this.miniGuideItems=
a};
_.t.activeEndpointChanged=function(){for(var a=this.items.children,W=0;W<a.length;W++)a[W].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
JZ.prototype.activeEndpointChanged=JZ.prototype.activeEndpointChanged;JZ.prototype.dataChanged=JZ.prototype.dataChanged;JZ.prototype.visibleChanged=JZ.prototype.visibleChanged;_.f([_.R(_.ij),_.z("design:type",Object)],JZ.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],JZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],JZ.prototype,"ytComponentBehavior",void 0);_.f([_.w$("#items"),_.z("design:type",Object)],JZ.prototype,"items",void 0);_.f([_.b(),_.z("design:type",Object)],JZ.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],JZ.prototype,"visible",void 0);
_.f([_.b(),_.z("design:type",Object)],JZ.prototype,"miniGuideItems",void 0);_.f([_.b({selector:_.QiI}),_.z("design:type",Object)],JZ.prototype,"allVideosCount",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],JZ.prototype,"noLabels",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],JZ.prototype,"frostedGlass",void 0);_.f([_.lO("visible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JZ.prototype,"visibleChanged",null);
_.f([_.lO("data","allVideosCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JZ.prototype,"dataChanged",null);_.f([_.lO("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JZ.prototype,"activeEndpointChanged",null);JZ=_.f([_.C({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],JZ);
_.D(JZ,"ytd-mini-guide-renderer",function(){if(Dl0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);Dl0=a}a=Dl0;return a},{mode:1});var fU0;var dl2=/^[\x00-\x7F]+$/,Fe=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(Fe,_.u);_.dU.Object.defineProperties(Fe.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var a,W=_.sd((a=this.data)==null?void 0:a.handle);if(W)return _.b8("@"+W)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var a=_.sd(this.displayHandle),W,w=_.sd((W=this.data)==null?void 0:W.handleUrl);if(a&&w)return _.b8(w+a)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var a=_.sd(this.displayHandle);if(a&&!dl2.test(a)){var W;return(W=this.data)==null?void 0:W.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var a=_.sd(this.displayHandleUrl),W,w=_.sd((W=this.data)==null?void 0:W.urlInfoText);if(a&&w)return _.b8(w+" "+a)}}});
_.f([_.b(),_.z("design:type",Object)],Fe.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fe.prototype,"displayHandle",null);_.f([_.Q("displayHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fe.prototype,"displayHandleUrl",null);_.f([_.Q("displayHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fe.prototype,"warningText",null);
_.f([_.Q("displayHandleUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fe.prototype,"urlInfoTextWithUrl",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Fe.prototype,"darkerDarkTheme",void 0);Fe=_.f([_.C({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Fe);
_.D(Fe,"ytd-handles-claiming-confirm-dialog-content",function(){if(fU0!==void 0)return fU0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return fU0=a},{mode:1});var mli;var MB=function(){var a=_.u.apply(this,arguments)||this;a.okButtonOverride={style:"mono",type:"outline",size:"M"};return a};
_.c(MB,_.u);MB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
MB.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],MB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],MB.prototype,"okButtonOverride",void 0);_.f([_.b(),_.z("design:type",Object)],MB.prototype,"data",void 0);MB=_.f([_.C({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],MB);
_.D(MB,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(mli!==void 0)return mli;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return mli=a},{mode:1});var VdK;var zCI=/^[\x00-\x7F]+$/,R9=function(){var a=_.u.apply(this,arguments)||this;a.isLoading=!1;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(R9,_.u);R9.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var a;this.selectedHandle=(a=this.handleInput)==null?void 0:a.value;this.onSelectedHandleChanged(this.selectedHandle);_.W_(this.hostElement,"yt-refit-popups-action")}};
_.dU.Object.defineProperties(R9.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 _.b8("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.b8(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!zCI.test(this.selectedHandle)){var a;return(a=this.data)==null?void 0:a.warningText}}}});
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],R9.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],R9.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],R9.prototype,"selectedHandle",void 0);_.f([_.b(),_.z("design:type",Object)],R9.prototype,"isLoading",void 0);_.f([_.b(),_.z("design:type",Function)],R9.prototype,"onSelectedHandleChanged",void 0);_.f([_.w$("#channel-handle-input"),_.z("design:type",Object)],R9.prototype,"handleInput",void 0);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],R9.prototype,"handleUrlPrefix",null);_.f([_.Q("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],R9.prototype,"displayHandle",null);_.f([_.Q("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],R9.prototype,"displayHandleUrl",null);_.f([_.Q("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],R9.prototype,"warningText",null);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],R9.prototype,"darkerDarkTheme",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);R9=_.f([_.C({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],R9);
_.D(R9,"ytd-handles-claiming-edit-dialog-content",function(){if(VdK!==void 0)return VdK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return VdK=a},{mode:1});var Hd9;var qB=function(){var a=_.u.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(W){a.selectedHandle=W};
return a};
_.c(qB,_.u);_.t=qB.prototype;_.t.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.t.onDataChanged=function(){var a,W;this.selectedHandle=(W=_.A((a=this.data)==null?void 0:a.inputField,m7E))==null?void 0:W.handle};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onCancel=function(){this.selectedHandle="";_.aV(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.onSelectHandle=function(){var a=this;if(this.selectedHandle!==void 0){var W;((W=this.data)==null?void 0:W.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(w,Z){if(Z.newHandleUpdateStatus!==void 0&&Z.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Z.newHandleUpdateStatus.errorMessage)_.W6(a.hostElement,_.sd(Z.newHandleUpdateStatus.errorMessage)),
a.isLoading=!1;else{var N;if((N=a.data)==null?0:N.onChannelUpdateSuccess){w=a.data.onChannelUpdateSuccess;var B,I;if(Z=(B=_.A(w,_.A4))==null?void 0:(I=B.popup)==null?void 0:I.handlesClaimingConfirmDialogRenderer)Z.handle=_.b8(a.selectedHandle);a.ytComponentBehavior.resolveCommand(w);_.aV(a.hostElement,"yt-close-popup-action",[a.is])}else a.isLoading=!1}},
onServerError:function(){var w;a.content&&((w=a.content)==null?0:w.handleInput)&&a.content.handleInput.validate();a.isLoading=!1;_.W6(a.hostElement,_.P_("TRY_AGAIN_LATER"))}}}))}};
_.t.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
qB.prototype.onDataChanged=qB.prototype.onDataChanged;qB.prototype.onSelectedHandleChanged=qB.prototype.onSelectedHandleChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],qB.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],qB.prototype,"actionButtonOverride",void 0);_.f([_.b(),_.z("design:type",Object)],qB.prototype,"cancelButtonOverride",void 0);_.f([_.b(),_.z("design:type",Object)],qB.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",String)],qB.prototype,"selectedHandle",void 0);_.f([_.b(),_.z("design:type",Object)],qB.prototype,"selectButtonDisabled",void 0);_.f([_.b(),_.z("design:type",Object)],qB.prototype,"isLoading",void 0);_.f([_.b(),_.z("design:type",Object)],qB.prototype,"hasSelectedHandleEventListener",void 0);_.f([_.b(),_.z("design:type",Object)],qB.prototype,"handleInput",void 0);
_.f([_.a5("selectedHandle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qB.prototype,"onSelectedHandleChanged",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qB.prototype,"onDataChanged",null);_.f([_.w$("ytd-handles-claiming-edit-dialog-content"),_.z("design:type",Object)],qB.prototype,"content",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],qB.prototype,"ytRendererstamperBehavior",void 0);qB=_.f([_.C({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],qB);
_.D(qB,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Hd9!==void 0)return Hd9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Hd9=a},{mode:1});var yVK;var QX=function(){return _.u.apply(this,arguments)||this};
_.c(QX,_.u);_.dU.Object.defineProperties(QX.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.handle){var W;return _.b8("@"+_.sd((W=this.data)==null?void 0:W.handle))}}}});
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],QX.prototype,"formattedHandle",null);_.f([_.b(),_.z("design:type",Object)],QX.prototype,"data",void 0);QX=_.f([_.C({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],QX);
_.D(QX,"ytd-handles-claiming-radio-option-renderer",function(){if(yVK!==void 0)return yVK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return yVK=a},{mode:1});var Elz;var av2=/^[\x00-\x7F]+$/,xC=function(){var a=_.u.apply(this,arguments)||this;a.initialRadioIndex="-1";a.isLoading=!1;a.darkerDarkTheme=_.r("web_darker_dark_theme");a.maybeSubmitFeedback=function(){a.feedbackSurveyRenderer.submitSurvey()};
return a};
_.c(xC,_.u);xC.prototype.updateSelectedHandleIndexFromBinding=function(a){this.selectedRadioIndex=+a.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(a)};
xC.prototype.selectedHandleChanged=function(a){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var W;this.selectedHandle=(W=this.handleInput)==null?void 0:W.value;this.onSelectedHandleChanged(a)}};
_.dU.Object.defineProperties(xC.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 _.b8("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.b8(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!av2.test(this.selectedHandle)){var a;return(a=this.data)==null?void 0:a.warningText}}}});
_.f([_.b(),_.z("design:type",Object)],xC.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],xC.prototype,"initialRadioIndex",void 0);_.f([_.b(),_.z("design:type",Number)],xC.prototype,"selectedRadioIndex",void 0);_.f([_.b(),_.z("design:type",String)],xC.prototype,"selectedHandle",void 0);_.f([_.b(),_.z("design:type",Object)],xC.prototype,"isLoading",void 0);_.f([_.b(),_.z("design:type",Function)],xC.prototype,"onSelectedHandleChanged",void 0);
_.f([_.b(),_.z("design:type",Function)],xC.prototype,"onSelectedRadioIndexChanged",void 0);_.f([_.w$("#channel-handle-input"),_.z("design:type",Object)],xC.prototype,"handleInput",void 0);_.f([_.w$("ytd-feedback-survey-renderer"),_.z("design:type",Object)],xC.prototype,"feedbackSurveyRenderer",void 0);_.f([_.Q("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],xC.prototype,"radioButtonLength",null);
_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],xC.prototype,"handleUrlPrefix",null);_.f([_.Q("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],xC.prototype,"displayHandle",null);_.f([_.Q("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],xC.prototype,"displayHandleUrl",null);_.f([_.Q("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],xC.prototype,"warningText",null);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],xC.prototype,"darkerDarkTheme",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);xC=_.f([_.C({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],xC);
_.D(xC,"ytd-handles-claiming-select-dialog-content",function(){if(Elz!==void 0)return Elz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Elz=a},{mode:1});var WbD;var bp=function(){var a=_.u.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(W){a.selectedRadioIndex=Number(W.detail.value)};
a.selectedHandleChanged=function(W){a.selectedHandle=W.detail.value};
a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(bp,_.u);_.t=bp.prototype;_.t.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.t.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.t.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.W_(this.hostElement,"yt-refit-popups-action")};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.aV(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.onSelectHandle=function(){var a=this;if(this.selectedHandle!==void 0){var W;((W=this.data)==null?void 0:W.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(w,Z){if(Z.newHandleUpdateStatus!==void 0&&Z.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Z.newHandleUpdateStatus.errorMessage)_.W6(a.hostElement,_.sd(Z.newHandleUpdateStatus.errorMessage)),
a.isLoading=!1;else{var N;if((N=a.data)==null?0:N.onChannelUpdateSuccess){w=a.data.onChannelUpdateSuccess;Z=_.A(w,_.A4);var B;if(Z==null?0:(B=Z.popup)==null?0:B.handlesClaimingConfirmDialogRenderer)Z.popup.handlesClaimingConfirmDialogRenderer.handle=_.b8(a.selectedHandle);a.ytComponentBehavior.resolveCommand(w);_.aV(a.hostElement,"yt-close-popup-action",[a.is])}else a.isLoading=!1}},
onServerError:function(){if(a.selectedRadioIndex===a.radioButtonLength){var w;a.content&&((w=a.content)==null?0:w.handleInput)&&a.content.handleInput.validate()}a.isLoading=!1;_.W6(a.hostElement,_.P_("TRY_AGAIN_LATER"))}}}))}};
_.t.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var a,W;this.selectedHandle=(a=this.content)==null?void 0:(W=a.handleInput)==null?void 0:W.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)};
_.t.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.t.getRadioItem=function(a){if(this.radioButtonLength>a&&a>=0)return _.A(this.data.radioButton[a],PHk)};
_.dU.Object.defineProperties(bp.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.radioButton)||[]).length}}});
bp.prototype.onSelectedHandleChanged=bp.prototype.onSelectedHandleChanged;bp.prototype.onSelectedHandleIndexChanged=bp.prototype.onSelectedHandleIndexChanged;bp.prototype.onDataChanged=bp.prototype.onDataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],bp.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],bp.prototype,"actionButtonOverride",void 0);_.f([_.b(),_.z("design:type",Object)],bp.prototype,"cancelButtonOverride",void 0);
_.f([_.b(),_.z("design:type",Object)],bp.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],bp.prototype,"initialRadioIndex",void 0);_.f([_.b(),_.z("design:type",Number)],bp.prototype,"selectedRadioIndex",void 0);_.f([_.b(),_.z("design:type",String)],bp.prototype,"selectedHandle",void 0);_.f([_.b(),_.z("design:type",Object)],bp.prototype,"selectButtonDisabled",void 0);_.f([_.b(),_.z("design:type",Object)],bp.prototype,"isLoading",void 0);
_.f([_.Q("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],bp.prototype,"radioButtonLength",null);_.f([_.w$("ytd-handles-claiming-select-dialog-content"),_.z("design:type",Object)],bp.prototype,"content",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bp.prototype,"onDataChanged",null);
_.f([_.a5("selectedRadioIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bp.prototype,"onSelectedHandleIndexChanged",null);_.f([_.a5("selectedHandle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bp.prototype,"onSelectedHandleChanged",null);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],bp.prototype,"darkerDarkTheme",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],bp.prototype,"ytRendererstamperBehavior",void 0);bp=_.f([_.C({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],bp);
_.D(bp,"ytd-handles-claiming-select-dialog-renderer",function(){if(WbD!==void 0)return WbD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return WbD=a},{mode:1});var wda;var ZfI;var s3=function(){return _.u.apply(this,arguments)||this};
_.c(s3,_.u);s3.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],s3.prototype,"data",void 0);s3=_.f([_.C({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],s3);
_.D(s3,"ytd-hotkey-dialog-section-option-renderer",function(){if(ZfI!==void 0)return ZfI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return ZfI=a},{mode:1});var NM0;var up=function(){return _.u.apply(this,arguments)||this};
_.c(up,_.u);up.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],up.prototype,"data",void 0);up=_.f([_.C({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],up);
_.D(up,"ytd-hotkey-dialog-section-renderer",function(){if(NM0!==void 0)return NM0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return NM0=a},{mode:1});var CQ=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(CQ,_.u);CQ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],CQ.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],CQ.prototype,"darkerDarkTheme",void 0);CQ=_.f([_.C({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],CQ);
_.D(CQ,"ytd-hotkey-dialog-content",function(){if(wda!==void 0)return wda;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return wda=a},{mode:1});var t8X;var GQ=function(){return _.u.apply(this,arguments)||this};
_.c(GQ,_.u);GQ.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)};
GQ.prototype.onCloseTap=function(){_.aV(this.hostElement,"yt-close-popup-action")};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],GQ.prototype,"data",void 0);GQ=_.f([_.C({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],GQ);
_.D(GQ,"ytd-hotkey-dialog-renderer",function(){if(t8X!==void 0)return t8X;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return t8X=a},{mode:1});var $rD;var DF=function(){return _.u.apply(this,arguments)||this};
_.c(DF,_.u);DF.prototype.onYtServiceRequestError=function(){if(this.blocked){var a;var W=(a=this.data)==null?void 0:a.defaultServiceEndpoint}else{var w;W=(w=this.data)==null?void 0:w.toggledServiceEndpoint}var Z;(W=(Z=_.A(W,_.c1e))==null?void 0:Z.onFailureAction)&&this.ytComponentBehavior.resolveCommand(W);this.updateBlockState(!this.blocked)};
DF.prototype.onYtToggleButton=function(a){this.updateBlockState(a.detail.toggled)};
DF.prototype.updateBlockState=function(a){if(a!==this.blocked){var W=this.blockedEntityKey;W&&this.ytdReduxBehavior.dispatch(_.oL("blockStateEntity",W,{key:W,blocked:a}));this.set("data.isToggled",a)}};
_.dU.Object.defineProperties(DF.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)}}});
DF.prototype.onYtToggleButton=DF.prototype.onYtToggleButton;DF.prototype.onYtServiceRequestError=DF.prototype.onYtServiceRequestError;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],DF.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],DF.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],DF.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],DF.prototype,"blockedEntityKey",void 0);
_.f([_.b({selectorArgs:["blockedEntityKey"],selector:function(a,W){return _.tG(a.entities,"blockStateEntity",W)}}),
_.z("design:type",Object)],DF.prototype,"blockStateEntity",void 0);_.f([_.Q("data","blockStateEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DF.prototype,"blocked",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],DF.prototype,"onYtServiceRequestError",null);
_.f([_.E6("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],DF.prototype,"onYtToggleButton",null);DF=_.f([_.C({is:"ytd-block-button",disableElementRegistration:!0})],DF);
_.D(DF,"ytd-block-button",function(){if($rD!==void 0)return $rD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return $rD=a},
{mode:1});var BM2;var lvI;var fQ=function(){return _.u.apply(this,arguments)||this};
_.c(fQ,_.u);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],fQ.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],fQ.prototype,"data",void 0);fQ=_.f([_.C({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],fQ);
_.D(fQ,"ytd-kids-blocklist-picker-item-renderer",function(){if(lvI!==void 0)return lvI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return lvI=a},{mode:1});var dL=function(){return _.u.apply(this,arguments)||this};
_.c(dL,_.u);dL.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],dL.prototype,"data",void 0);dL=_.f([_.C({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],dL);
_.D(dL,"ytd-kids-blocklist-picker-content",function(){if(BM2!==void 0)return BM2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return BM2=
a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var IvX;var mg=function(){var a=_.u.apply(this,arguments)||this;a.hasAnyRequestSucceeded=!1;a.hasAnyRequestFailed=!1;a.numPendingRequests=0;return a};
_.c(mg,_.u);_.t=mg.prototype;_.t.attached=function(){this.hostElement.setAttribute("dialog","")};
_.t.onDoneButtonTap=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.t.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.t.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.t.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.t.onPopupClosed=function(a){var W,w;if(((W=a.detail)==null?void 0:(w=W.popup)==null?void 0:w.is)==="tp-yt-paper-dialog"){var Z;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((Z=this.data)==null?0:Z.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.Db(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
mg.prototype.onPopupClosed=mg.prototype.onPopupClosed;mg.prototype.onYtServiceRequestError=mg.prototype.onYtServiceRequestError;mg.prototype.onYtServiceRequestCompleted=mg.prototype.onYtServiceRequestCompleted;mg.prototype.onYtServiceRequestSent=mg.prototype.onYtServiceRequestSent;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],mg.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],mg.prototype,"data",void 0);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mg.prototype,"onYtServiceRequestSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mg.prototype,"onYtServiceRequestCompleted",null);
_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mg.prototype,"onYtServiceRequestError",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],mg.prototype,"onPopupClosed",null);mg=_.f([_.C({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],mg);
_.D(mg,"ytd-kids-blocklist-picker-renderer",function(){if(IvX!==void 0)return IvX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return IvX=a},{mode:1});var PQf;var Xdd;var VX=function(){return _.u.apply(this,arguments)||this};
_.c(VX,_.u);VX.prototype.setTip=function(a){var W=this;this.data&&(this.tip=EHX(HN2.getInstance(),a,this.data),_.DW(this,function(){_.E$(W.hostElement,"yt-refit")}))};
VX.prototype.clearTip=function(){this.tip=void 0};
VX.prototype.computeHidden=function(a){return!a};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],VX.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.z("design:type",Boolean)],VX.prototype,"hidden",void 0);_.f([_.b(),_.z("design:type",Object)],VX.prototype,"tip",void 0);VX=_.f([_.C({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],VX);
_.D(VX,"ytd-menu-popup-tip-renderer",function(){if(Xdd!==void 0)return Xdd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);
return Xdd=a},{mode:1});var vvz;var zQ=function(){var a=_.u.apply(this,arguments)||this;a.useIcons=!1;a.systemIcons=_.r("kevlar_system_icons");a.useListItemStyles=_.r("web_list_item_style_for_menu_items");return a};
_.c(zQ,_.u);_.t=zQ.prototype;_.t.onFocus=function(){var a;(a=_.M(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.t.onTap=function(){var a=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(a&&_.A(a,_.$7))this.componentBehavior.resolveCommand(a),this.updateToggledStateInEntity();else if(a){this.componentBehavior.resolveCommand(a)||_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}});var W;((W=_.A(a,_.l0))==null?void 0:W.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.t.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.t.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.t.updateToggledStateInEntity=function(){var a=this.data.toggleMenuServiceItemEntityKey,W=!this.data.isToggled;a&&this.ytdReduxBehavior.dispatch(_.oL("toggleMenuServiceItemEntity",a,{key:a,isToggled:W}))};
_.t.computeIcon=function(a,W,w){return(a=a?w:W)&&a.iconType?_.EN(a.iconType):""};
_.t.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.t.isIconActive=function(a){return!_.r("toggle_menu_active_icon_killswitch")&&a};
_.dU.Object.defineProperties(zQ.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return((a=this.data)==null?0:a.isToggled)?(W=this.data)==null?void 0:W.toggledText:(w=this.data)==null?void 0:w.defaultText}}});
zQ.prototype.toggledStateEntityChanged=zQ.prototype.toggledStateEntityChanged;zQ.prototype.onYtServiceRequestCompleted=zQ.prototype.onYtServiceRequestCompleted;zQ.prototype.onTap=zQ.prototype.onTap;zQ.prototype.onFocus=zQ.prototype.onFocus;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],zQ.prototype,"componentBehavior",void 0);
_.f([_.R(_.ij),_.z("design:type",Object)],zQ.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],zQ.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],zQ.prototype,"useIcons",void 0);_.f([_.b({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.z("design:type",String)],zQ.prototype,"icon",void 0);
_.f([_.b({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(a,W){return _.tG(a.entities,"toggleMenuServiceItemEntity",W)}}),
_.z("design:type",Object)],zQ.prototype,"toggleMenuServiceItemEntity",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],zQ.prototype,"systemIcons",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],zQ.prototype,"useListItemStyles",void 0);_.f([_.E6("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zQ.prototype,"onFocus",null);
_.f([_.Q("data.isToggled"),_.z("design:type",Object),_.z("design:paramtypes",[])],zQ.prototype,"toggleButtonText",null);_.f([_.E6("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zQ.prototype,"onTap",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zQ.prototype,"onYtServiceRequestCompleted",null);
_.f([_.a5("toggleMenuServiceItemEntity.isToggled","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zQ.prototype,"toggledStateEntityChanged",null);zQ=_.f([_.C({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],zQ);
_.D(zQ,"ytd-toggle-menu-service-item-renderer",function(){if(vvz!==void 0)return vvz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return vvz=a},{mode:1});var gvI;var HF=function(){return _.u.apply(this,arguments)||this};
_.c(HF,_.u);HF.prototype.onFocus=function(){var a;(a=_.M(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.dU.Object.defineProperties(HF.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.SB(this.data.iconUrl)}}});
HF.prototype.onFocus=HF.prototype.onFocus;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],HF.prototype,"rendererBehavior",void 0);_.f([_.R(_.wn.YtEndpointBehavior),_.z("design:type",Object)],HF.prototype,"ytEndpointBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],HF.prototype,"data",void 0);_.f([_.E6("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HF.prototype,"onFocus",null);
_.f([_.Q("data.iconUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],HF.prototype,"imageSource",null);HF=_.f([_.C({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],HF);
_.D(HF,"ytd-menu-custom-icon-item-renderer",function(){if(gvI!==void 0)return gvI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return gvI=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});_.Ct(_.Yy,"yt-list-item-view-model",{props:{data:_.qR,isMenuItem:_.qR,isCompact:_.qR,onTap:_.ux,trailingAccessory:_.ux,hideSelectionTextChevron:_.qR,disabled:_.qR,inPopup:_.qR,disableHorizontalPadding:_.qR,isOverlay:_.qR}});var yX=function(){var a=_.u.apply(this,arguments)||this;a.disableBackdropFilter=_.r("web_disable_backdrop_filter");return a};
_.c(yX,_.u);_.t=yX.prototype;
_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.t.computeAriaLabel=function(a){return a};
_.t.onPopupOpened=function(){this.items.selected=0;for(var a=_.l(_.M(this.items).children),W=a.next();!W.done;W=a.next())W.value.popupPositionTarget=this.positionTarget;if(a=this.popupTip||void 0)a.setTip(this.source||""),this.source=void 0;this.veData&&(a=_.nS())&&_.Qw(a,[this.veData])};
_.t.onPopupClosed=function(){var a=this.popupTip||void 0;a&&a.clearTip()};
_.t.onIronActivate=function(a){this.shouldPersist(a)||_.aV(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(a=_.nS())&&_.b0(a,this.veData)};
_.t.shouldPersist=function(a){var W,w;if(((W=a.detail)==null?void 0:W.selected)===void 0||(w=this.data)==null||!w.items)return!1;var Z,N;return!((N=(Z=this.data.items[a.detail.selected])==null?void 0:Z.toggleMenuServiceItemRenderer)==null||!N.persistentOnMenuPopup)};
_.t.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};
yX.prototype.onPopupClosed=yX.prototype.onPopupClosed;yX.prototype.onPopupOpened=yX.prototype.onPopupOpened;_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],yX.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],yX.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],yX.prototype,"veData",void 0);_.f([_.b({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.z("design:type",String)],yX.prototype,"ariaLabel",void 0);_.f([_.b({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],yX.prototype,"useIcons",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yX.prototype,"disableBackdropFilter",void 0);_.f([_.w$("#items"),_.z("design:type",Object)],yX.prototype,"items",void 0);_.f([_.w$("ytd-menu-popup-tip-renderer"),_.z("design:type",Object)],yX.prototype,"popupTip",void 0);_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yX.prototype,"onPopupOpened",null);
_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yX.prototype,"onPopupClosed",null);yX=_.f([_.C({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],yX);
_.D(yX,"ytd-menu-popup-renderer",function(){if(PQf!==void 0)return PQf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return PQf=a},{mode:1});var ovK;var kxX=_.xQ(function(a){a=_.Qn(a,{icon:void 0});var W=a.data;a=a.icon;var w=function(){return W().iconBadgeText},Z={},N=_.W$("yt-spec-icon-badge-shape",function(){a:switch(W().iconBadgeType){case "notification":var B="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":B="yt-spec-icon-badge-shape--type-cart";break a;default:B=""}return B},function(){a:switch(W().iconBadgeStyle){case "overlay":var B="yt-spec-icon-badge-shape--style-overlay";
break a;default:B=""}return B},(Z["yt-spec-icon-badge-shape--text-size-small"]=function(){var B=w();
return!!((B==null?0:B.length)&&B.length>2)},Z));
return _.k("yt-icon-badge-shape",null,_.k(_.Y,{cond:a,then:function(B){return _.k("div",{class:N},_.k("div",{class:"yt-spec-icon-badge-shape__icon"},_.k(_.P$,{icon:B})),_.k(_.Y,{cond:w,then:function(I){return _.k("div",{class:"yt-spec-icon-badge-shape__badge"},I)}}))}}))},"ig");
kxX.idomCompat=!0;_.Ct(kxX,"yt-icon-badge-shape",{props:{data:_.qR,icon:_.qR}});var E3=function(){var a=_.u.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};
_.c(E3,_.u);_.t=E3.prototype;_.t.attached=function(){var a=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(W){a.onServiceWorkerMessage(W)})};
_.t.onDataChanged=function(){this.isAttached&&!this.JSC$18180_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18180_lastData=this.data};
_.t.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.t.computeIcon=function(){var a,W;return(a=this.data)==null?void 0:(W=a.icon)==null?void 0:W.iconType};
_.t.onServiceWorkerMessage=function(a){a.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.t.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.A(this.data.updateUnseenCountEndpoint,_.l0)&&_.A(this.data.updateUnseenCountEndpoint,_.l0).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.t.handleUpdateNotificationsUnseenCountAction=function(a){var W=this;a=_.A(a,WFn);a!=null&&a.unseenCount&&a.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(a.unseenCount),_.hF.addLowPriorityJob(function(){W.data.updateUnseenCountEndpoint&&W.ytComponentBehavior.resolveCommand(W.data.updateUnseenCountEndpoint)},a.timeoutMs))};
_.t.onClick=function(){_.E$(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var a=_.W_(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),W=this.data.menuRequest;a&&a.length===1&&a[0]?_.aV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):W&&this.ytComponentBehavior.resolveCommand(W)};
_.t.handleTopbarMenuClosedAction=function(a){a==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.t.toggleIconState=function(a){this.iconButton&&(this.iconButton.pressed=a)};
_.t.sendUnseenCountRequest=function(a){var W=this;_.TP(_.hF,function(){W.ytComponentBehavior.resolveCommand(a)})};
_.t.updateCountUI=function(a){this.set("unseenCount",a<9?a:"9+")};
_.dU.Object.defineProperties(E3.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
E3.prototype.handleUpdateNotificationsUnseenCountAction=E3.prototype.handleUpdateNotificationsUnseenCountAction;E3.prototype.onDataChanged=E3.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],E3.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.xZ),_.z("design:type",Object)],E3.prototype,"ytdOpenPopupBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],E3.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],E3.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],E3.prototype,"unseenCount",void 0);_.f([_.b(),_.z("design:type",Object)],E3.prototype,"isOverlay",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],E3.prototype,"showTooltips",void 0);_.f([_.w$("yt-icon-button"),_.z("design:type",Object)],E3.prototype,"iconButton",void 0);
_.f([_.Q("unseenCount"),_.z("design:type",Object),_.z("design:paramtypes",[])],E3.prototype,"showNotificationCount",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E3.prototype,"onDataChanged",null);_.f([_.E6("yt-update-notifications-unseen-count-action"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],E3.prototype,"handleUpdateNotificationsUnseenCountAction",null);
E3=_.f([_.C({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],E3);
_.D(E3,"ytd-notification-topbar-button-renderer",function(){if(ovK!==void 0)return ovK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ovK=a},{mode:_.Vn("kevlar_poly_si_batch_j025")?1:2});var UrI;var aQ=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return a};
_.c(aQ,_.u);aQ.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}}}}}};
aQ.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
aQ.prototype.onDarkModeToggled=function(a){this.dark=a};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],aQ.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],aQ.prototype,"data",void 0);_.f([_.b({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],aQ.prototype,"dark",void 0);
aQ=_.f([_.C({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],aQ);
_.D(aQ,"yt-pdg-buy-flow-header-renderer",function(){if(UrI!==void 0)return UrI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return UrI=a},{mode:1});var OfK;var SPD;var Wq=function(){var a=_.u.apply(this,arguments)||this;a.immediateValue=0;a.isDarkTheme=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.c(Wq,_.u);_.t=Wq.prototype;_.t.created=function(){_.xS.requestAvailability()};
_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.dataChanged=function(){var a=_.M(this.hostElement).querySelector("#color-slider");a.immediateValue&&this.updateSliderKnobAndGradientStyles(a.immediateValue);this.data.notches[0].knobColorArgb&&_.Hu(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.pC(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.LF("HTML_DIR")==="rtl"&&_.M(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.t.onSliderImmediateChange=function(){var a=_.M(this.hostElement).querySelector("#color-slider");a.dragging&&(a.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(a.immediateValue),this.updateSliderKnobAndGradientStyles(a.immediateValue)),this.updateSliderAria())};
_.t.onSliderChange=function(){var a=_.M(this.hostElement).querySelector("#color-slider");a.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(a.immediateValue),this.updateSliderKnobAndGradientStyles(a.immediateValue));this.updateSliderAria()};
_.t.updateSliderAria=function(){var a=_.M(this.hostElement).querySelector("#color-slider"),W=_.M(this.hostElement).querySelector("#color-slider");W=_.sd(this.data.notches[W.immediateValue].tierValue);_.Fx()&&_.E$(this.hostElement,"iron-announce",{text:W});a.setAttribute("aria-valuetext",W)};
_.t.updateSuperThanksSelectedTierEntity=function(a){if(a!==this.immediateValue){var W,w,Z=this==null?void 0:(W=this.data)==null?void 0:(w=W.superThanksSelectedTierEntity)==null?void 0:w.key;Z&&Z.length>0&&this.ytdReduxBehavior.dispatch(_.oL("superThanksSelectedTierEntity",Z,{key:Z,index:a}))}};
_.t.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.t.updateSliderKnobAndGradientStyles=function(a){this.immediateValue=a;a=this.data.notches[a];if(a==null?0:a.knobColorArgb)var W={"--ytd-pdg-color-slider-knob-color":_.pC(a.knobColorArgb)};(a==null?0:a.linearGradientCssStyle)&&W!==null&&(W=Object.assign({},W,{"--ytd-pdg-color-slider-active-color":a==null?void 0:a.linearGradientCssStyle}));W!==null&&_.Hu(this.hostElement,W)};
Wq.prototype.onSliderChange=Wq.prototype.onSliderChange;Wq.prototype.onSliderImmediateChange=Wq.prototype.onSliderImmediateChange;Wq.prototype.dataChanged=Wq.prototype.dataChanged;_.f([_.b(),_.z("design:type",Object)],Wq.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Wq.prototype,"immediateValue",void 0);_.f([_.b(),_.z("design:type",Number)],Wq.prototype,"maxMarkers",void 0);
_.f([_.b({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ZMk}),_.z("design:type",Object)],Wq.prototype,"superThanksSelectedTierEntity",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Wq.prototype,"isDarkTheme",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],Wq.prototype,"ytdReduxBehavior",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wq.prototype,"dataChanged",null);
_.f([_.E6("immediate-value-change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wq.prototype,"onSliderImmediateChange",null);_.f([_.E6("change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wq.prototype,"onSliderChange",null);Wq=_.f([_.C({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Wq);
_.D(Wq,"ytd-pdg-color-slider-renderer",function(){if(SPD!==void 0)return SPD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return SPD=a},{mode:1});var YPD;var TME;var wB=null;
_.kQ({is:"ytd-comment-input",_template:function(){if(TME!==void 0)return TME;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return TME=a},
behaviors:[_.KRC.YtHostElementBehavior,_.YS,_.e7.YtComponentBehavior,_.fN.YtRendererstamperBehavior,_.lOH.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 _.eD}},
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",_.yV(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;_.Pn();this.focus()},
detached:function(){document.removeEventListener("tap",_.yV(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 W=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(W,a);this.maybeUpdateTextDirection_();_.E$(this.hostElement,"input")},
getInputRange_:function(){var a=_.YB();if(a){a=a.getBrowserRangeObject();for(var W=a.commonAncestorContainer;W;){if(W===this.getEditableTextArea_())return a;W=W.parentNode}}a=this.getEditableTextArea_();a=_.FS(a,a.childNodes.length);a.select();return a.getBrowserRangeObject()},
insertTextWithEmojis_:function(a,W,w){(W=this.emojiManager.createDocumentFragment(W,!0,!1,w===void 0?!0:w))&&W.childNodes.length!==0&&(a.collapsed||a.deleteContents(),w=W.lastChild,a.insertNode(W),_.HxT(w).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var a=_.YB();if(a){var W=a.JSC$9159_getStartNode(),w=a.JSC$9159_getEndNode();if(DnD(W)&&DnD(w)){var Z=a.JSC$9159_getStartOffset(),N;if(_.vz&&W.nodeType===Node.ELEMENT_NODE&&(N=_.laJ(W)))_.FS(N,0).select();else{N=VE(W)?W:_.LY(W,VE);var B=VE(w)?w:_.LY(w,VE);if(N||B)if(a.isCollapsed()){if(W.nodeType===Node.TEXT_NODE){a=!0;Z===W.length&&(a=!1);if(wB==="end"||wB==="right")a=!1;W=W.parentNode;a=[].concat(_.K8(W.parentNode.childNodes)).indexOf(W)+(a?0:1);_.FS(W.parentNode,a).select()}}else N?
N.previousSibling&&N.previousSibling.length>0?_.MD(w,a.JSC$9159_getEndOffset(),N.previousSibling,N.previousSibling.length-1).select():(W=document.createTextNode("\u200b"),N.parentNode.insertBefore(W,N),_.MD(w,a.JSC$9159_getEndOffset(),W,0).select()):B&&(B.nextSibling&&B.nextSibling.length>0?_.MD(W,a.JSC$9159_getStartOffset(),B.nextSibling,1).select():(w=document.createTextNode("\u200b"),B.parentNode.insertBefore(w,B.nextSibling),_.MD(W,a.JSC$9159_getStartOffset(),w,w.length).select()));wB=null}}else wB=
null}else wB=null},
leftKeyPressed_:function(){wB="left"},
rightKeyPressed_:function(){wB="right"},
endKeyPressed_:function(){wB="end"},
maybeDeleteChip_:function(){var a=Hxf(!0);if(a){var W=_.YB(),w=W.JSC$9159_getStartNode();W=W.JSC$9159_getStartOffset();_.ef(w,W,a,a.childNodes.length).select()}},
maybeBackspaceChip_:function(){var a=Hxf(!1);if(a){var W=_.YB(),w=W.JSC$9159_getStartNode();W=W.JSC$9159_getStartOffset();_.ef(w,W,a,0).select()}},
maybeBackspaceChipWordMode_:function(a){var W=_.YB();if(W.isCollapsed()){var w=W.JSC$9159_getStartNode();W=W.JSC$9159_getStartOffset();var Z=yGE(w,W,!0);Z&&(_.ef(w,W,Z,0).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(a){var W=_.YB();if(W.isCollapsed()){var w=W.JSC$9159_getStartNode();W=W.JSC$9159_getStartOffset();var Z=yGE(w,W,!1);Z&&(_.ef(w,W,Z,Z.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"&&VE(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 _.M(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.M(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,W){a=dnn(a,this.emojiManager,W).cloneNode(!0);for(W=a.firstChild;W;)if(W.nodeType!==1)W=W.nextSibling;else switch(W.tagName){case "BR":var w=_.c0();_.UiR(w,W);W=w.nextSibling;break;case "DIV":(w=W.lastChild)&&W.nextSibling&&_.LI(_.c0(),w);W.previousSibling&&(W.previousSibling.nodeType===1||W.previousSibling.nodeType===3&&!W.previousSibling.textContent.endsWith("\n"))&&_.j5(_.c0(),W);w&&w.nodeName==="BR"&&_.Xh(w);w=W;W.hasChildNodes()?(W=W.firstChild,
_.OK6(w)):(W=W.nextSibling,_.Xh(w));break;default:W=W.nextSibling}return EpD(a)},
setTextAreaValue:function(a){a||(a="");var W=this.getEditableFormattedString_();W.text="";this.getEditableTextArea_().innerText="";typeof a==="string"&&(a={runs:[{text:a}]});W.text=a},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();wB=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var a=this.getEditableTextArea_();a&&(_.FS(a,a.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.LF("HTML_DIR")==="rtl"){var a=this.getEditableTextArea_(),W=this.getTextAreaValue()!==""?"auto":"rtl";a.setAttribute("dir",W)}},
handleInputEvent_:function(){var a=null;if(this.isEmojiButtonDisplayed){var W=this.getInputRange_();W&&(a=this.emojiInput.retrieveTextBeforeRange(W))}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),_.E$(this.hostElement,"input"))},
insertText_:function(a,W,w){W=W===void 0?!1:W;w=w===void 0?!0:w;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&a){var Z=this.getInputRange_().cloneRange();this.emojiManager&&Z&&(W&&this.emojiInput.offsetStartOfRangeBy(Z,a.length),this.insertTextWithEmojis_(Z,a,w),fbI(this.getEditableTextArea_().lastChild)||(Z=this.getInputRange_().cloneRange()),Z&&(this.emojiInput.updateSuggestions(Z,a),this.updateSuggestionOffset_(Z)))}},
getSimpleString:_.sd,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,W){a?this.fire("yt-autonav-pause-focus"):W!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(a){var W=this.getEditableTextArea_();[].concat(_.K8(a.dataTransfer.items)).forEach(function(w){w.kind==="string"&&w.type.match("^text/plain")&&w.getAsString(function(Z){W.appendChild(document.createTextNode(Z))})});
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&&_.M(this.emojiInput).querySelector("#dropdown")){var W=this.getEditableTextArea_().getBoundingClientRect().bottom,w=a.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(W-w)+5;W=this.getEditableTextArea_().getBoundingClientRect().left;a=a.getBoundingClientRect().left-W;_.M(this.emojiInput).querySelector("#dropdown").style.marginLeft=a+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.LJ("yt-post"));return this.localStorage}});var ZM=function(){var a=_.u.apply(this,arguments)||this;a.currentCommentOptionIndex=0;a.isEmojiPickerDisplayed=!1;a.emojiManager=_.eD;a.isUgcEmpty=!1;a.userGeneratedCommentChangedHandler=function(){_.E$(a.hostElement,"ytd-pdg-user-generated-comment-changed");a.isEmojiYtdCommentInputEnabled&&(a.isUgcEmpty=!a.ytdCommentInputEl.getTextAreaValue())};
a.pasteHandler=function(W){W.preventDefault();W.stopImmediatePropagation();var w;if(W=(w=W.clipboardData)==null?void 0:w.getData("text/plain"))w=document.getSelection().getRangeAt(0),w.collapsed||w.deleteContents(),W=document.createTextNode(W),w.insertNode(W),w.selectNodeContents(W),w.collapse(!1),W=window.getSelection(),W.removeAllRanges(),W.addRange(w)};
a.onDocumentClick=function(W){if(a.isEmojiPickerDisplayed){var w,Z,N;!(W.target instanceof Node)||(w=W.composedPath())!=null&&w.includes(a.editableTextEl)||(Z=W.composedPath())!=null&&Z.includes(a.emojiButtonEl)||(N=W.composedPath())!=null&&N.includes(a.emojiPickerEl)||(a.isEmojiPickerDisplayed=!1)}};
return a};
_.c(ZM,_.u);_.t=ZM.prototype;_.t.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.t.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.t.detached=function(){var a;(a=this.contentEl)==null||a.removeEventListener("input",this.userGeneratedCommentChangedHandler);var W;(W=this.contentEl)==null||W.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.t.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.t.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()};
_.t.reloadEmojis=function(){this.emojiPickerEl&&_.A(this.emojiPicker,_.xPR)&&this.emojiPickerEl.updateEmojiCategories()};
_.t.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Hu(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.t.handleBackgroundColorStyling=function(){var a;if((a=this.currentCommentOption)==null?0:a.commentBackgroundColorArgb){var W;_.Hu(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.pC((W=this.currentCommentOption)==null?void 0:W.commentBackgroundColorArgb)})}else _.Hu(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.t.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var a;(a=this.contentEl)==null||a.focus()}};
_.t.onEditButtonClick=function(a){var W=document.getSelection();W&&this.contentEl&&(a.stopPropagation(),a.preventDefault(),W.selectAllChildren(this.contentEl),W.collapseToEnd())};
_.t.onContentDrop=function(a){var W=this;if(a.dataTransfer){a=_.l(a.dataTransfer.items);for(var w=a.next();!w.done;w=a.next())w=w.value,w.kind==="string"&&w.type.match("^text/plain")&&w.getAsString(function(Z){var N;(N=W.contentEl)==null||N.appendChild(document.createTextNode(Z))})}};
_.t.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.t.getUserGeneratedCommentText=function(){var a,W=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(a=this.contentEl)==null?void 0:a.textContent;return W?W.trim():""};
_.t.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.t.onEmojiSelect=function(a){this.ytdCommentInputEl.onEmojiSelect(a)};
_.dU.Object.defineProperties(ZM.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(_.A((a=this.currentCommentOption)==null?void 0:a.chipRenderer,_.zX$)){var W;return _.A((W=this.currentCommentOption)==null?void 0:W.chipRenderer,_.zX$)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var a,W;return((a=this.data)==null?0:a.commentOptionRenderers)?_.A((W=this.data)==null?void 0:W.commentOptionRenderers[this.superThanksSelectedTierEntity.index],c40):void 0}var w,Z;return((w=this.data)==null?0:w.commentOptionRenderers)?_.A((Z=this.data)==null?void 0:Z.commentOptionRenderers[this.currentCommentOptionIndex],c40):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,W;return(W=_.A((a=this.data)==null?void 0:a.commentDialog,_.jN_))==null?void 0:W.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var a,W;return(W=_.A((a=this.data)==null?void 0:a.commentDialog,_.jN_))==null?void 0:W.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var a,W;return(W=_.A((a=this.data)==null?void 0:a.commentDialog,_.jN_))==null?void 0:W.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var a,W,w=(W=_.A((a=this.data)==null?void 0:a.commentDialog,_.jN_))==null?void 0:W.emojiPicker;if(!_.A(w,_.xPR)||!_.A(w,_.xPR).categories)return!1;a=function(B){return B.emojiPickerCategoryRenderer?B.emojiPickerCategoryRenderer.emojiIds&&B.emojiPickerCategoryRenderer.emojiIds.length>0:B.emojiPickerUpsellCategoryRenderer?B.emojiPickerUpsellCategoryRenderer.emojis&&B.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var Z,N;return((Z=_.A(w,_.xPR))==null?0:(N=Z.categories)==null?0:N.find(a))?!0:!1}}});
ZM.prototype.onEmojiSelect=ZM.prototype.onEmojiSelect;ZM.prototype.dataChanged=ZM.prototype.dataChanged;ZM.prototype.currentCommentOptionChanged=ZM.prototype.currentCommentOptionChanged;_.f([_.R(_.ij),_.z("design:type",Object)],ZM.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ZM.prototype,"rendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ZM.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.w$("#content-dom-if"),_.z("design:type",_.ON)],ZM.prototype,"contentDomIfEl",void 0);_.f([_.w$("#content-no-emojis"),_.z("design:type",HTMLElement)],ZM.prototype,"contentEl",void 0);_.f([_.w$("#container"),_.z("design:type",HTMLElement)],ZM.prototype,"containerEl",void 0);_.f([_.w$("#comment-chip-container"),_.z("design:type",HTMLElement)],ZM.prototype,"paidCommentChipContainerEl",void 0);_.f([_.w$("#text-input"),_.z("design:type",HTMLElement)],ZM.prototype,"editableTextEl",void 0);
_.f([_.w$("#emoji-button"),_.z("design:type",HTMLElement)],ZM.prototype,"emojiButtonEl",void 0);_.f([_.w$("#emoji-picker > yt-emoji-picker-renderer"),_.z("design:type",Object)],ZM.prototype,"emojiPickerEl",void 0);_.f([_.w$("#text-input > ytd-comment-input"),_.z("design:type",Object)],ZM.prototype,"ytdCommentInputEl",void 0);_.f([_.b(),_.z("design:type",Object)],ZM.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],ZM.prototype,"currentCommentOptionIndex",void 0);
_.f([_.b({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ZMk}),_.z("design:type",Object)],ZM.prototype,"superThanksSelectedTierEntity",void 0);_.f([_.b(),_.z("design:type",Object)],ZM.prototype,"isEmojiPickerDisplayed",void 0);_.f([_.b(),_.z("design:type",Object)],ZM.prototype,"emojiManager",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZM.prototype,"isUgcEmpty",void 0);
_.f([_.a5("currentCommentOption"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZM.prototype,"currentCommentOptionChanged",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZM.prototype,"dataChanged",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZM.prototype,"isEmojiYtdCommentInputEnabled",null);
_.f([_.Q("data.title"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZM.prototype,"title",null);_.f([_.Q("data.authorText"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZM.prototype,"channelName",null);_.f([_.Q("data.commentOptionRenderers","currentCommentOption"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZM.prototype,"shouldShowPaidCommentChipRenderer",null);
_.f([_.Q("data.commentOptionRenderers","currentCommentOption"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZM.prototype,"paidCommentChipRenderer",null);_.f([_.Q("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZM.prototype,"currentCommentOption",null);
_.f([_.Q("data.defaultCommentText","superThanksSelectedTierEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZM.prototype,"commentText",null);_.f([_.Q("data.placeholderText"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZM.prototype,"placeholderText",null);_.f([_.Q("data.commentDialog.commentDialogRenderer.editableText"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZM.prototype,"editableText",null);
_.f([_.Q("data.commentDialog.commentDialogRenderer.emojiButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZM.prototype,"emojiButton",null);_.f([_.Q("data.commentDialog.commentDialogRenderer.emojiPicker"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZM.prototype,"emojiPicker",null);
_.f([_.Q("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ZM.prototype,"isEmojiButtonDisplayed",null);_.f([_.E6("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ZM.prototype,"onEmojiSelect",null);ZM=_.f([_.C({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],ZM);
_.D(ZM,"ytd-pdg-comment-preview-renderer",function(){if(YPD!==void 0)return YPD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return YPD=a},{mode:2});var KbI;var N0=function(){var a=_.u.apply(this,arguments)||this;a.selected=!1;return a};
_.c(N0,_.u);_.t=N0.prototype;_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.t.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.t.dataChanged=function(){this.data&&(_.di(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Hu(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.pC(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.pC(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.t.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.t.onClick=function(){this.logClick()};
_.t.onKeyboardSelect=function(){_.E$(this.hostElement,"tap");this.onClick()};
_.t.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
N0.prototype.onClick=N0.prototype.onClick;N0.prototype.selectedChanged=N0.prototype.selectedChanged;N0.prototype.dataChanged=N0.prototype.dataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],N0.prototype,"componentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.YS),_.z("design:type",Object)],N0.prototype,"ironA11yKeysBehavior",void 0);
_.f([_.R(_.jK),_.z("design:type",Object)],N0.prototype,"ironSelectableBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],N0.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],N0.prototype,"shownThumbnail",void 0);_.f([_.b(),_.z("design:type",Object)],N0.prototype,"basePriceText",void 0);_.f([_.b(),_.z("design:type",Object)],N0.prototype,"purchaseCommand",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],N0.prototype,"selected",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N0.prototype,"dataChanged",null);_.f([_.a5("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N0.prototype,"selectedChanged",null);_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N0.prototype,"onClick",null);
N0=_.f([_.C({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],N0);
_.D(N0,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(KbI!==void 0)return KbI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return KbI=a},{mode:1});var tg=function(){var a=_.u.apply(this,arguments)||this;a.selectedItemIndex=0;a.buyButtonDisabled=!1;return a};
_.c(tg,_.u);_.t=tg.prototype;
_.t.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]]"}}}}}};
_.t.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var a;var W=(a=_.A(this.data.colorSlider,izn))==null?void 0:a.notches[this.selectedItemIndex].purchaseCommand}else{var w;W=(w=_.A(this.data.selectableItemButtons[this.selectedItemIndex],nck))==null?void 0:w.purchaseCommand}if(W){a=_.A(W,_.p7R);a.productData||(a.productData={});var Z;a.productData={pdgData:{commentMessageText:(Z=this.commentPreviewRenderer)==null?void 0:Z.getUserGeneratedCommentText()}};
_.E$(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(W)}}};
_.t.dataChanged=function(){if(this.data){_.eD.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.u6J(_.eD,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.eD.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var a;this.buyButtonDisabled=!((a=_.A(this.data.commentPreview,e_I))==null||!a.placeholderText);this.updatePriceSelectorStatus();var W;if((W=this.data)==null?0:W.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;a=[];this.data.preloadImages&&(a=this.data.preloadImages);
a=a.map(function(w){return _.G$(w.thumbnails,1920)});
a=_.l(a);for(W=a.next();!W.done;W=a.next())(W=W.value)&&_.dc7(W).thenCatch(function(){_.jJ(Error("jl"))})}};
_.t.superThanksSelectedTierEntityChanged=function(){var a;(this==null?void 0:(a=this.superThanksSelectedTierEntity)==null?void 0:a.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.t.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.t.updatePriceSelectorStatus=function(){this.isColorSlider?(_.M(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.M(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.M(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.M(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.t.closeBuyFlow=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.t.onUserGeneratedContentChanged=function(){var a;this.buyButtonDisabled=!((a=this.commentPreviewRenderer)==null?0:a.getUserGeneratedCommentText())};
_.t.updateSelectedItemIndexFromBinding=function(a){this.selectedItemIndex=a.detail.value};
_.dU.Object.defineProperties(tg.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.disclaimerText)}}});
tg.prototype.onUserGeneratedContentChanged=tg.prototype.onUserGeneratedContentChanged;tg.prototype.closeBuyFlow=tg.prototype.closeBuyFlow;tg.prototype.selectedItemIndexChanged=tg.prototype.selectedItemIndexChanged;tg.prototype.superThanksSelectedTierEntityChanged=tg.prototype.superThanksSelectedTierEntityChanged;tg.prototype.dataChanged=tg.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],tg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],tg.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],tg.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],tg.prototype,"selectedItemIndex",void 0);_.f([_.b(),_.z("design:type",Boolean)],tg.prototype,"isColorSlider",void 0);
_.f([_.b(),_.z("design:type",Object)],tg.prototype,"buyButtonDisabled",void 0);_.f([_.b({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ZMk}),_.z("design:type",Object)],tg.prototype,"superThanksSelectedTierEntity",void 0);_.f([_.w$("ytd-pdg-comment-preview-renderer"),_.z("design:type",Object)],tg.prototype,"commentPreviewRenderer",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],tg.prototype,"ytdReduxBehavior",void 0);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tg.prototype,"dataChanged",null);_.f([_.a5("superThanksSelectedTierEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tg.prototype,"superThanksSelectedTierEntityChanged",null);_.f([_.a5("selectedItemIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tg.prototype,"selectedItemIndexChanged",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tg.prototype,"closeBuyFlow",null);_.f([_.E6("ytd-pdg-user-generated-comment-changed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tg.prototype,"onUserGeneratedContentChanged",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],tg.prototype,"isDisclaimerTextShown",null);
tg=_.f([_.C({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],tg);
_.D(tg,"yt-super-vod-buy-flow-content-renderer",function(){if(OfK!==void 0)return OfK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return OfK=a},{mode:1});var pdI;var $k=function(){var a=_.u.apply(this,arguments)||this;a.lottieAnimationRef={};return a};
_.c($k,_.u);_.t=$k.prototype;_.t.created=function(){_.xS.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.yV(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.t.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.E$(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.t.detached=function(){this.autoCloseJobId&&_.hF.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.yV(this,this.onPopupIronOverlayOpened))};
_.t.dataChanged=function(){var a=this;this.data&&this.data.autoCloseDelay&&(_.aV(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.mY(_.hF,function(){a.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Hu(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.t.onDOMLoadedLottie=function(){var a=this,W,w,Z=Number((W=this.data)==null?void 0:(w=W.autoCloseDelay)==null?void 0:w.seconds)||0;this.fadeOutJobId=_.mY(_.hF,function(){a.lottiePlayerEl.classList.add("fadeout")},(Z-.25)*1E3);
this.autoCloseJobId=_.mY(_.hF,function(){a.closePopup()},Z*1E3)};
_.t.openPopup=function(){this.ironOverlayBehavior.open()};
_.t.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.aV(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.N1(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.K().resolve(_.zU).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.hF.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.hF.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.t.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var a,W;(a=this.lottieAnimationRef)==null||(W=a.lottieEl)==null||W.destroy();a=this.data.lottie;var w,Z;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:a.url+"_"+Math.random(),path:a.url,autoplay:!0,loop:(Z=(w=a.settings)==null?void 0:w.loop)!=null?Z:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.dU.Object.defineProperties($k.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var a,W;return!!((a=this.data)==null?0:(W=a.lottie)==null?0:W.url)}}});
$k.prototype.maybeInitializeLottie=$k.prototype.maybeInitializeLottie;$k.prototype.dataChanged=$k.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],$k.prototype,"rendererBehavior",void 0);_.f([_.R(_.GN),_.z("design:type",Object)],$k.prototype,"ironOverlayBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],$k.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],$k.prototype,"lottiePlayerProps",void 0);
_.f([_.b(),_.z("design:type",Object)],$k.prototype,"lottieAnimationRef",void 0);_.f([_.w$("ytd-lottie-player"),_.z("design:type",HTMLElement)],$k.prototype,"lottiePlayerEl",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$k.prototype,"dataChanged",null);_.f([_.Q("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$k.prototype,"hasLottieAnimation",null);
_.f([_.a5("data.lottie.url"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$k.prototype,"maybeInitializeLottie",null);$k=_.f([_.C({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],$k);
_.D($k,"ytd-desktop-image-overlay-renderer",function(){if(pdI!==void 0)return pdI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return pdI=a},{mode:1});var rEn;var Bq=function(){return _.u.apply(this,arguments)||this};
_.c(Bq,_.u);_.t=Bq.prototype;_.t.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"}}}}};
_.t.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",_.yV(this,this.closePopup))};
_.t.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.yV(this,this.closePopup))};
_.t.dataChanged=function(){_.W_(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.A(this.data.header,h_9)&&(this.hasBackgroundBanner=!!_.A(this.data.header,h_9).backgroundBanner)};
_.t.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.yV(this,this.closePopup))};
_.t.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Z9(this.hostElement,[this.data.onCloseCommand])};
Bq.prototype.handleBuyflowSelectionSubmitted=Bq.prototype.handleBuyflowSelectionSubmitted;Bq.prototype.dataChanged=Bq.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Bq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Bq.prototype,"data",void 0);
_.f([_.b({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],Bq.prototype,"hasBackgroundBanner",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bq.prototype,"dataChanged",null);_.f([_.E6("yt-pdg-buy-flow-selection-submitted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bq.prototype,"handleBuyflowSelectionSubmitted",null);
Bq=_.f([_.C({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Bq);
_.D(Bq,"ytd-pdg-buy-flow-renderer",function(){if(rEn!==void 0)return rEn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return rEn=a},{mode:1});var AEi;var ls=function(){var a=_.u.apply(this,arguments)||this;a.isOpen=!1;a.isPlaylistCreated=!1;return a};
_.c(ls,_.u);_.t=ls.prototype;_.t.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.t.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.E$(this.hostElement,"yt-refit")};
_.t.onCreateTap=function(){var a=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Z9(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(W,w){if(!_.r("killswitch_ep_in_create_playlist_response")&&(w==null?0:w.actions))for(W=_.l(w.actions),w=W.next();!w.done;w=W.next())w=w.value,_.A(w,_.JN)&&a.ytComponentBehavior.resolveCommand(w)}}]),this.isPlaylistCreated=!0)};
_.t.onKeydown=function(a){if(a.keyCode===13)this.onCreateTap()};
_.t.onServiceRequestCompleted=function(a){a.stopPropagation();_.aV(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.t.computePrivacyBadge=function(a){return a?[{metadataBadgeRenderer:a}]:[]};
ls.prototype.onServiceRequestCompleted=ls.prototype.onServiceRequestCompleted;ls.prototype.onKeydown=ls.prototype.onKeydown;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],ls.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ls.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],ls.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],ls.prototype,"isOpen",void 0);
_.f([_.b(),_.z("design:type",Object)],ls.prototype,"isPlaylistCreated",void 0);_.f([_.b({value:{REQUIRED_LABEL:_.P_("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.P_("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.z("design:type",Object)],ls.prototype,"addToStrings",void 0);_.f([_.b({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.z("design:type",Array)],ls.prototype,"privacyBadge",void 0);
_.f([_.w$("#privacy-input"),_.z("design:type",Object)],ls.prototype,"privacyInput",void 0);_.f([_.w$("#name-input"),_.z("design:type",Object)],ls.prototype,"nameInput",void 0);_.f([_.E6("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],ls.prototype,"onKeydown",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ls.prototype,"onServiceRequestCompleted",null);
ls=_.f([_.C({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],ls);
_.D(ls,"ytd-add-to-playlist-create-renderer",function(){if(AEi!==void 0)return AEi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return AEi=a},{mode:1});var htz;var ifE;var IQ=function(){var a=_.u.apply(this,arguments)||this;a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.c(IQ,_.u);IQ.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
IQ.prototype.onCheckboxChange=function(a){var W=this;this.data&&_.eK(this,"yt-playlist-checkbox-changed",function(){var w=_.QV(a).checked?W.data.addToPlaylistServiceEndpoint:W.data.removeFromPlaylistServiceEndpoint;w&&_.K().resolve(_.zU).resolveCommand(w,{form:{element:W.hostElement}});_.r("dl_playlist_killswitch")||W.transferState!=="TRANSFER_STATE_UNKNOWN"&&W.transferState!=="TRANSFER_STATE_FAILED"&&W.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:W.data.playlistId,action:"ACTION_SYNC"}})},
100)};
IQ.prototype.computeIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
IQ.prototype.dataChanged=IQ.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],IQ.prototype,"data",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],IQ.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],IQ.prototype,"ytComponentBehavior",void 0);_.f([_.w$("#checkbox"),_.z("design:type",HTMLInputElement)],IQ.prototype,"checkbox",void 0);
_.f([_.b({selector:_.ey,selectorArgs:["data.playlistId"]}),_.z("design:type",String)],IQ.prototype,"transferState",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],IQ.prototype,"dataChanged",null);IQ=_.f([_.C({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],IQ);
_.D(IQ,"ytd-playlist-add-to-option-renderer",function(){if(ifE!==void 0)return ifE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ifE=a},{mode:1});_.En(a3I);_.HX(a3I,"ytd-menu-title-renderer",{propNames:["data"]});var Pq=function(){var a=_.u.apply(this,arguments)||this;a.addToStrings={ADD_TO_DROPDOWN_LABEL:_.P_("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};a.closeButtonAriaLabel=_.P_("SBOX_INAPPROPRIATE_CANCEL");a.dialog=_.r("desktop_add_to_playlist_renderer_dialog_popup");return a};
_.c(Pq,_.u);_.t=Pq.prototype;_.t.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"}}}};
_.t.onPopupOpened=function(){_.mh(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.t.onPopupClosed=function(){_.mh(this.playlists,"scrollable",!1)};
_.t.computeAriaLabel=function(){var a;if(this==null?0:(a=this.data)==null?0:a.actions){a=_.l(this.data.actions);for(var W=a.next();!W.done;W=a.next())if(W=W.value,W.menuTitleRenderer)return _.sd(W.menuTitleRenderer.title)}};
_.t.onTapClose=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.dU.Object.defineProperties(Pq.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if(this==null?0:(a=this.data)==null?0:a.actions){a=_.l(this.data.actions);for(var W=a.next();!W.done;W=a.next())if(W=W.value,W.menuTitleRenderer)return W.menuTitleRenderer}return!1}}});
Pq.prototype.onPopupClosed=Pq.prototype.onPopupClosed;Pq.prototype.onPopupOpened=Pq.prototype.onPopupOpened;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],Pq.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Pq.prototype,"ytRendererStamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Pq.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],Pq.prototype,"addToStrings",void 0);_.f([_.b({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.z("design:type",String)],Pq.prototype,"ariaLabel",void 0);_.f([_.b(),_.z("design:type",String)],Pq.prototype,"closeButtonAriaLabel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Pq.prototype,"dialog",void 0);
_.f([_.w$("#playlists"),_.z("design:type",HTMLElement)],Pq.prototype,"playlists",void 0);_.f([_.w$("ytd-add-to-playlist-create-renderer"),_.z("design:type",Object)],Pq.prototype,"createRenderer",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Pq.prototype,"menuTitleRenderer",null);_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pq.prototype,"onPopupOpened",null);
_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pq.prototype,"onPopupClosed",null);Pq=_.f([_.C({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Pq);
_.D(Pq,"ytd-add-to-playlist-renderer",function(){if(htz!==void 0)return htz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return htz=a},{mode:1});var cEf;var XE=function(){var a=_.u.apply(this,arguments)||this;a.isPlaylistEditComplete=!1;a.isCollabEngagementDisabled=!1;a.closeButtonAriaLabel=_.P_("SBOX_INAPPROPRIATE_CANCEL");a.saveButton={title:_.P_("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};
_.c(XE,_.u);_.t=XE.prototype;_.t.attached=function(){this.JSC$18236_scroller&&(this.JSC$18236_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18236_scroller.attached&&typeof this.JSC$18236_scroller.attached==="function"&&this.JSC$18236_scroller.attached())};
_.t.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.t.onPopupClosed=function(){this.reset()};
_.t.close=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.t.onClickSave=function(){var a=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var W=[];this.nameInput.value!==null&&W.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&W.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var w=Number(this.privacyInput.value);isNaN(w)||W.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:w})}this.votingInput.value!==null&&(w=this.votingInput.value)&&W.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:w});if(W.length>0){var Z;_.A((Z=this.data)==null?void 0:Z.updateSettingsEndpoint,_.nz).actions=W;var N;if((N=this.data)==null?0:N.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){a.close()}}}),this.isPlaylistEditComplete=!0}}};
_.t.computePrivacyBadge=function(a){return a?[{metadataBadgeRenderer:a}]:[]};
_.t.computeEditorData=function(a){var W,w;return a==null?void 0:(W=a.sections)==null?void 0:(w=W[0])==null?void 0:w.playlistSettingsEditorCasualSectionRenderer};
_.t.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.t.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}}}}}};
_.t.computeAriaLabel=function(){var a,W,w,Z=(a=this.data)==null?void 0:(W=a.sections)==null?void 0:(w=W[0])==null?void 0:w.playlistSettingsEditorCasualSectionRenderer;return _.sd(Z==null?void 0:Z.title)};
_.t.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"}))};
_.t.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.t.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.t.isNameChanged=function(){var a,W,w;return(((a=this.editorData)==null?void 0:(W=a.name)==null?void 0:(w=W.textInputFormFieldRenderer)==null?void 0:w.value)||"")!==(this.nameInput.value||"")};
_.t.isDescriptionChanged=function(){var a,W,w;return(((a=this.editorData)==null?void 0:(W=a.description)==null?void 0:(w=W.textInputFormFieldRenderer)==null?void 0:w.value)||"")!==(this.descriptionInput.value||"")};
_.t.isPrivacyChanged=function(){var a,W,w,Z,N,B,I,X;return((I=(a=this.editorData)==null?void 0:(W=a.privacy)==null?void 0:(w=W.dropdownFormFieldRenderer)==null?void 0:(Z=w.dropdown)==null?void 0:(N=Z.dropdownRenderer)==null?void 0:(B=N.entries)==null?void 0:B.find(function(v){var U;return v==null?void 0:(U=v.privacyDropdownItemRenderer)==null?void 0:U.isSelected}))==null?void 0:(X=I.privacyDropdownItemRenderer)==null?void 0:X.int32Value)!==this.privacyInput.value};
_.t.isVotingChanged=function(){var a,W,w,Z,N,B,I,X;return((I=(a=this.editorData)==null?void 0:(W=a.voting)==null?void 0:(w=W.dropdownFormFieldRenderer)==null?void 0:(Z=w.dropdown)==null?void 0:(N=Z.dropdownRenderer)==null?void 0:(B=N.entries)==null?void 0:B.find(function(v){var U;return v==null?void 0:(U=v.privacyDropdownItemRenderer)==null?void 0:U.isSelected}))==null?void 0:(X=I.privacyDropdownItemRenderer)==null?void 0:X.int32Value)!==this.votingInput.value};
XE.prototype.onPopupClosed=XE.prototype.onPopupClosed;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],XE.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],XE.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],XE.prototype,"ytRendererStamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],XE.prototype,"data",void 0);_.f([_.b({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.z("design:type",Array)],XE.prototype,"privacyBadge",void 0);_.f([_.b({computed:"computeEditorData(data)"}),_.z("design:type",Object)],XE.prototype,"editorData",void 0);_.f([_.b(),_.z("design:type",Object)],XE.prototype,"isPlaylistEditComplete",void 0);_.f([_.b(),_.z("design:type",Object)],XE.prototype,"isCollabEngagementDisabled",void 0);
_.f([_.b({value:{REQUIRED_LABEL:_.P_("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.P_("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.z("design:type",Object)],XE.prototype,"addToStrings",void 0);_.f([_.b({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.z("design:type",String)],XE.prototype,"ariaLabel",void 0);_.f([_.b(),_.z("design:type",String)],XE.prototype,"closeButtonAriaLabel",void 0);
_.f([_.b(),_.z("design:type",Object)],XE.prototype,"saveButton",void 0);_.f([_.w$("#name-input"),_.z("design:type",Object)],XE.prototype,"nameInput",void 0);_.f([_.w$("#description-input"),_.z("design:type",Object)],XE.prototype,"descriptionInput",void 0);_.f([_.w$("#privacy-input"),_.z("design:type",Object)],XE.prototype,"privacyInput",void 0);_.f([_.w$("#voting-input"),_.z("design:type",Object)],XE.prototype,"votingInput",void 0);
_.f([_.w$("#scroller"),_.z("design:type",Object)],XE.prototype,"JSC$18236_scroller",void 0);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XE.prototype,"onPopupClosed",null);_.f([_.b(),_.z("design:type",Object)],XE.prototype,"onValueChanged",void 0);XE=_.f([_.C({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],XE);
_.D(XE,"ytd-playlist-settings-editor-renderer",function(){if(cEf===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);cEf=a}a=cEf;return a},{mode:1});var etd;_.pA("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var vq=function(){return _.u.apply(this,arguments)||this};
_.c(vq,_.u);_.t=vq.prototype;_.t.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}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.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))};
_.t.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)}}};
_.t.onPopupOpened=function(a){a.detail!==this&&a.detail!==this.hostElement||!_.r("enable_premium_voluntary_pause")||_.aV(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.t.onNextButtonTap=function(){var a=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);a&&this.ytdOpenPopupBehavior.openPopup(a)};
_.t.updateSelectedResponseIndexFromBinding=function(a){this.selectedResponseIndex=a.detail.value};
vq.prototype.onPopupOpened=vq.prototype.onPopupOpened;vq.prototype.onSelectedResponseIndexChange=vq.prototype.onSelectedResponseIndexChange;vq.prototype.dataChanged=vq.prototype.dataChanged;_.f([_.R(_.xZ),_.z("design:type",Object)],vq.prototype,"ytdOpenPopupBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],vq.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Number)],vq.prototype,"selectedResponseIndex",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vq.prototype,"dataChanged",null);_.f([_.a5("selectedResponseIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vq.prototype,"onSelectedResponseIndexChange",null);
_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],vq.prototype,"onPopupOpened",null);vq=_.f([_.C({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],vq);
_.D(vq,"ytd-red-cancel-survey-renderer",function(){if(etd!==void 0)return etd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return etd=a},{mode:1});var nvd;var gB=function(){var a=_.u.apply(this,arguments)||this;a.closeButtonAriaLabel=_.P_("SBOX_INAPPROPRIATE_CANCEL");return a};
_.c(gB,_.u);gB.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
gB.prototype.onClickClose=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],gB.prototype,"rendererStamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],gB.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],gB.prototype,"closeButtonAriaLabel",void 0);gB=_.f([_.C({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],gB);
_.D(gB,"ytd-search-filter-options-dialog-renderer",function(){if(nvd!==void 0)return nvd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return nvd=a},{mode:1});var jDd;var ZCI=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 oQ=function(){var a=_.u.apply(this,arguments)||this;a.qualityOptions=[];a.upsellOptions=[];a.showUpsellSection=!1;a.darkerDarkTheme=_.r("web_darker_dark_theme");a.rememberSettingsChecked=!1;return a};
_.c(oQ,_.u);_.t=oQ.prototype;_.t.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}}}}};
_.t.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.t.updateQualityOptions=function(){if(this.formats===void 0)_.aV(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var a=[],W=[];this.showUpsellSection=!1;for(var w=_.l(this.formats),Z=w.next();!Z.done;Z=w.next())(Z=Z.value)&&(Z.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?W.push(Z):a.push(Z));a.length&&(this.qualityOptions=wu9(a));W.length&&(this.showUpsellSection=!0,this.upsellOptions=wu9(W))}};
_.t.updateRememberString=function(){if(this.downloadQualityPickerEntity)var a=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var W;a=(W=this.data)==null?void 0:W.premiumRememberSettingString}else{var w;a=(w=this.data)==null?void 0:w.rememberSettingString}a=a===void 0?_.P_("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):a;this.rememberSettingsCheckboxRenderer={title:_.zG(a),disabled:!1}};
_.t.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.dU.Object.defineProperties(oQ.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var a;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(a=this.data)==null?void 0:a.qualityFormats}}});
oQ.prototype.updateRememberString=oQ.prototype.updateRememberString;oQ.prototype.updateQualityOptions=oQ.prototype.updateQualityOptions;oQ.prototype.dataChanged=oQ.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],oQ.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],oQ.prototype,"data",void 0);
_.f([_.R(_.ij),_.z("design:type",Object)],oQ.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Boolean)],oQ.prototype,"selectedUpsellQuality",void 0);_.f([_.b({computed:"computeIcon_(data.premiumIcon)",value:""}),_.z("design:type",String)],oQ.prototype,"premiumIcon",void 0);_.f([_.b({selector:Em9,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.z("design:type",Object)],oQ.prototype,"downloadQualityPickerEntity",void 0);
_.f([_.b(),_.z("design:type",Array)],oQ.prototype,"qualityOptions",void 0);_.f([_.b(),_.z("design:type",Array)],oQ.prototype,"upsellOptions",void 0);_.f([_.b(),_.z("design:type",Object)],oQ.prototype,"showUpsellSection",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oQ.prototype,"darkerDarkTheme",void 0);_.f([_.b(),_.z("design:type",Object)],oQ.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.f([_.w$("#remember-settings"),_.z("design:type",HTMLInputElement)],oQ.prototype,"rememberSettingsCheckbox",void 0);_.f([_.b(),_.z("design:type",Object)],oQ.prototype,"rememberSettingsChecked",void 0);_.f([_.b(),_.z("design:type",Function)],oQ.prototype,"onRememberSettingsCheckedChanged",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oQ.prototype,"dataChanged",null);
_.f([_.a5("downloadQualityPickerEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oQ.prototype,"updateQualityOptions",null);_.f([_.a5("selectedUpsellQuality"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oQ.prototype,"updateRememberString",null);oQ=_.f([_.C({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],oQ);
_.D(oQ,"ytd-download-quality-selector-content",function(){if(jDd!==void 0)return jDd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return jDd=a},{mode:1});var LbI;var kk=function(){var a=_.u.apply(this,arguments)||this;a.selectedUpsellQuality=!1;a.qualityOptions=[];a.darkerDarkTheme=_.r("web_darker_dark_theme");a.useUpsellDismissAlternate=_.r("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(W){a.rememberSettingsChecked=W};
return a};
_.c(kk,_.u);_.t=kk.prototype;
_.t.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.zG(_.P_("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.zG(_.P_("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.zG(_.P_("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.zG(_.P_("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.t.updateQualityOptions=function(){this.formats===void 0?_.aV(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=wu9(this.formats)};
_.t.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 W=_.l(this.qualityOptions.entries()),w=W.next();!w.done;w=
W.next()){w=_.l(w.value);var Z=w.next().value;w=w.next().value;var N=void 0,B=void 0;if(((N=w)==null?void 0:(B=N.settingsRadioOptionRenderer)==null?void 0:B.id)===a){this.selectedQualityIndex=Z;a=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((a=this.formats[Z])==null?void 0:a.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.t.onClickSubmit=function(){var a;if((a=this.downloadButtonRenderer)==null||!a.isDisabled){var W,w;a=(w=(W=this.data)==null?void 0:W.onSubmitEndpoint)!=null?w:{};var Z,N;if(this.formats&&(((Z=_.A(a,_.Be))==null?0:Z.videoId)||((N=_.A(a,_.lK))==null?0:N.playlistId))){var B,I,X,v,U,O;W={formatType:(v=(B=this.formats)==null?void 0:(I=B[(X=this.selectedQualityIndex)!=null?X:0])==null?void 0:I.format)!=null?v:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(U=this.getOfflineEndpoint(a))==null?void 0:(O=U.actionParams)==null?void 0:O.settingsAction)};this.getOfflineEndpoint(a).actionParams=W;this.ytComponentBehavior.resolveCommand(a)}_.aV(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.t.onClickUpsell=function(){var a;if((a=this.upsellButtonRenderer)==null||!a.isDisabled){var W,w;a=(w=(W=this.data)==null?void 0:W.upsellEndpoint)!=null?w:{};this.ytComponentBehavior.resolveCommand(a);_.aV(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);W="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var Z,N,B,I;W=(I=(Z=this.formats)==null?void 0:(N=Z[(B=this.selectedQualityIndex)!=null?B:0])==null?void 0:N.format)!=null?I:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:W}})}};
_.t.onClickClose=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.t.getOfflineSettingsAction=function(a,W){return a?W===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":W:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.t.getOfflineEndpoint=function(a){return _.A(a,_.Be)?_.A(a,_.Be):_.A(a,_.lK)};
_.dU.Object.defineProperties(kk.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.zG(_.P_("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}}});
kk.prototype.updateQualityOptions=kk.prototype.updateQualityOptions;kk.prototype.dataChanged=kk.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],kk.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],kk.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kk.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Number)],kk.prototype,"selectedQualityIndex",void 0);_.f([_.b(),_.z("design:type",Object)],kk.prototype,"selectedUpsellQuality",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],kk.prototype,"ytdReduxBehavior",void 0);
_.f([_.b({selector:Em9,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.z("design:type",Object)],kk.prototype,"downloadQualityPickerEntity",void 0);_.f([_.b(),_.z("design:type",Array)],kk.prototype,"qualityOptions",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kk.prototype,"darkerDarkTheme",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],kk.prototype,"useUpsellDismissAlternate",void 0);
_.f([_.b(),_.z("design:type",Object)],kk.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.f([_.b(),_.z("design:type",Object)],kk.prototype,"downloadButtonRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],kk.prototype,"upsellButtonRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],kk.prototype,"cancelButtonRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],kk.prototype,"upsellCancelButtonRenderer",void 0);_.f([_.b(),_.z("design:type",Object)],kk.prototype,"rememberSettings",void 0);
_.f([_.b(),_.z("design:type",Object)],kk.prototype,"rememberSettingsChecked",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kk.prototype,"dataChanged",null);_.f([_.a5("downloadQualityPickerEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kk.prototype,"updateQualityOptions",null);kk=_.f([_.C({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],kk);
_.D(kk,"ytd-download-quality-selector-renderer",function(){if(LbI!==void 0)return LbI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return LbI=a},{mode:1});var JE0;var UU=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(UU,_.u);UU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
UU.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"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],UU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],UU.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],UU.prototype,"darkerDarkTheme",void 0);_.f([_.b({computed:"computeIcon_(data.infoIcon)"}),_.z("design:type",Object)],UU.prototype,"infoIcon",void 0);
_.f([_.b({computed:"computeIcon_(data.warningIcon)"}),_.z("design:type",Object)],UU.prototype,"warningIcon",void 0);UU=_.f([_.C({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],UU);
_.D(UU,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(JE0!==void 0)return JE0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return JE0=a},{mode:1});var Fb0;var OU=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(OU,_.u);OU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
OU.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"}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],OU.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],OU.prototype,"darkerDarkTheme",void 0);OU=_.f([_.C({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],OU);
_.D(OU,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(Fb0!==void 0)return Fb0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Fb0=a},{mode:1});var M8I;var S_=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(S_,_.u);S_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
S_.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"}}}}};
S_.prototype.onServiceRequestSentOrCompleted=function(a,W){W&&W.actions&&W.actions.length>0&&_.aV(this.hostElement,"yt-close-popup-action",[this.is])};
S_.prototype.onServiceRequestSentOrCompleted=S_.prototype.onServiceRequestSentOrCompleted;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S_.prototype,"darkerDarkTheme",void 0);_.f([_.b(),_.z("design:type",Object)],S_.prototype,"data",void 0);
_.f([_.E6("yt-service-request-completed"),_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],S_.prototype,"onServiceRequestSentOrCompleted",null);S_=_.f([_.C({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],S_);
_.D(S_,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(M8I!==void 0)return M8I;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return M8I=a},{mode:1});var RtX;var Yk=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");a.submitButtonDisabled=!0;return a};
_.c(Yk,_.u);_.t=Yk.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.t.onDataChanged=function(){var a,W,w;if(((a=this.data)==null?void 0:(W=a.confirmButton)==null?void 0:(w=W.buttonRenderer)==null?void 0:w.isDisabled)!==void 0){var Z,N,B;this.submitButtonDisabled=(Z=this.data)==null?void 0:(N=Z.confirmButton)==null?void 0:(B=N.buttonRenderer)==null?void 0:B.isDisabled}};
_.t.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.t.updateSubmitButtonDisabledFromBinding=function(a){this.submitButtonDisabled=a.detail.value};
_.t.updateSubmitButtonDisabledFromConfirmCheckbox=function(a){this.submitButtonDisabled=!a.detail.value};
Yk.prototype.onDataChanged=Yk.prototype.onDataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Yk.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Yk.prototype,"darkerDarkTheme",void 0);
_.f([_.b(),_.z("design:type",Object)],Yk.prototype,"submitButtonDisabled",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yk.prototype,"onDataChanged",null);Yk=_.f([_.C({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Yk);
_.D(Yk,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(RtX!==void 0)return RtX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return RtX=a},{mode:1});var qPi;var Ty=function(){return _.u.apply(this,arguments)||this};
_.c(Ty,_.u);_.dU.Object.defineProperties(Ty.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var a,W,w;return((a=this.data)==null?void 0:a.title)+" "+((W=this.data)==null?void 0:W.metadataPrimary)+" "+((w=this.data)==null?void 0:w.metadataSecondary)}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Ty.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ty.prototype,"data",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ty.prototype,"ariaLabel",null);Ty=_.f([_.C({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Ty);
_.D(Ty,"ytd-compact-product-list-item-renderer",function(){if(qPi!==void 0)return qPi;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return qPi=a},{mode:1});var QDn;var Ki=function(){return _.u.apply(this,arguments)||this};
_.c(Ki,_.u);Ki.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]]"}}}}}};
_.dU.Object.defineProperties(Ki.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Ki.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ki.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ki.prototype,"data",void 0);Ki=_.f([_.C({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Ki);
_.D(Ki,"ytd-compact-product-list-renderer",function(){if(QDn!==void 0)return QDn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return QDn=a},{mode:1});var xrK;var pi=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(pi,_.u);_.t=pi.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.t.getBackgroundUrl=function(){var a=this.get("data.headerImage.thumbnails");return a?"url("+_.G$(a,this.hostElement.clientWidth)+")":""};
_.t.onDataChanged=function(){var a=this.getBackgroundUrl();a&&(this.header.style.backgroundImage=a);a=_.nS();var W=_.eH(),w=this.get("data.trackingParams");w&&W&&a&&_.M1(a,W,_.PX(w));a=_.l(this.hostElement.querySelectorAll("yt-img-shadow"));for(W=a.next();!W.done;W=a.next())W.value.onShow()};
_.t.onPopupClosed=function(a){_.QV(a).localName==="ytd-membership-post-cancel-renderer"&&_.aV(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
pi.prototype.onPopupClosed=pi.prototype.onPopupClosed;pi.prototype.onDataChanged=pi.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],pi.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],pi.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pi.prototype,"darkerDarkTheme",void 0);
_.f([_.w$("#header"),_.z("design:type",HTMLDivElement)],pi.prototype,"header",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pi.prototype,"onDataChanged",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],pi.prototype,"onPopupClosed",null);pi=_.f([_.C({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],pi);
_.D(pi,"ytd-membership-post-cancel-renderer",function(){if(xrK!==void 0)return xrK;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return xrK=a},{mode:1});var bf9;var rB=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(rB,_.u);rB.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
rB.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],rB.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rB.prototype,"darkerDarkTheme",void 0);_.f([_.w$("ytd-feedback-survey-renderer"),_.z("design:type",Object)],rB.prototype,"feedbackSurveyRenderer",void 0);rB=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],rB);
_.D(rB,"ytd-sponsorship-confirm-cancel-content",function(){if(bf9!==void 0)return bf9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return bf9=a},{mode:1});var sDz;var Ag=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");a.maybeSubmitFeedback=function(){a.content&&a.content.maybeSubmitFeedback()};
return a};
_.c(Ag,_.u);_.t=Ag.prototype;_.t.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.t.onYtPopupOpened=function(a,W){W===this&&this.data&&this.data.onOpenCommands&&_.N1(this.hostElement,this.data.onOpenCommands,this.hostElement);_.aV(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.t.onYtPopupClosed=function(a,W){(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.N1(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.t.onYtServiceRequestCompleted=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.t.onYtServiceRequestError=function(a){_.W6(this.hostElement,a.detail.error.message)};
_.t.onDataChanged=function(){if(this.isAttached){var a=this.backgroundUrl;a&&(_.M(this.hostElement).querySelector("#header").style.backgroundImage=a)}};
_.dU.Object.defineProperties(Ag.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return a?"url("+_.G$(a,this.hostElement.clientWidth)+")":""}}});
Ag.prototype.onDataChanged=Ag.prototype.onDataChanged;Ag.prototype.onYtServiceRequestError=Ag.prototype.onYtServiceRequestError;Ag.prototype.onYtServiceRequestCompleted=Ag.prototype.onYtServiceRequestCompleted;Ag.prototype.onYtPopupClosed=Ag.prototype.onYtPopupClosed;Ag.prototype.onYtPopupOpened=Ag.prototype.onYtPopupOpened;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Ag.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Ag.prototype,"data",void 0);_.f([_.b({value:function(){return _.P_("SBOX_INAPPROPRIATE_CANCEL")}}),
_.z("design:type",String)],Ag.prototype,"closeButtonAriaLabel",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ag.prototype,"darkerDarkTheme",void 0);_.f([_.w$("#scrollable"),_.z("design:type",Object)],Ag.prototype,"scrollable",void 0);_.f([_.w$("ytd-sponsorship-confirm-cancel-content"),_.z("design:type",Object)],Ag.prototype,"content",void 0);
_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Ag.prototype,"onYtPopupOpened",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Ag.prototype,"onYtPopupClosed",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ag.prototype,"onYtServiceRequestCompleted",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ag.prototype,"onYtServiceRequestError",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ag.prototype,"onDataChanged",null);
Ag=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Ag);
_.D(Ag,"ytd-sponsorship-confirm-cancel-renderer",function(){if(sDz!==void 0)return sDz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return sDz=a},{mode:_.Vn("kevlar_poly_si_batch_j081")?1:2});var uJf;var hg=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(hg,_.u);hg.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],hg.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],hg.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hg.prototype,"darkerDarkTheme",void 0);hg=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],hg);
_.D(hg,"ytd-sponsorships-celebration-content",function(){if(uJf!==void 0)return uJf;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return uJf=
a},{mode:1});var CQE;var GxK=_.ma(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),is=function(){var a=_.u.apply(this,arguments)||this;a.scriptsAppended=!1;a.buttonOverrides={type:"tonal",style:"overlay-dark"};return a};
_.c(is,_.u);_.t=is.prototype;
_.t.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:_.r("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onDataChanged=function(){var a;(a=this.header)==null||a.style.setProperty("background-color",this.backgroundColor);if(a=this.headerImageUrl){var W;(W=this.header)==null||W.style.setProperty("background-image",a)}W=_.nS(4);a=_.eH(4);var w=this.get("data.trackingParams");if(w&&a&&W){var Z=_.PX(w);_.M1(W,a,Z);_.r("combine_ve_grafts")?_.$J().graftServerVe(w,a,4):_.M1(W,a,Z)}W=_.l(this.hostElement.querySelectorAll("yt-img-shadow"));for(a=W.next();!a.done;a=W.next())a.value.onShow();if(W=this.get("data.gtmId"))_.g4(W,
_.LF("GL","")),this.setupConversionTracking()};
_.t.setupConversionTracking=function(){if(!this.scriptsAppended){var a=document.createElement("script");var W=_.M_(GxK.join(""));_.q_(a,W);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}};
_.t.onPopupClosed=function(a){if(_.QV(a).localName==="ytd-sponsorships-celebration-renderer"){_.aV(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var W;this.data&&((W=this.data)==null?0:W.dismissCommand)&&_.WX.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.dU.Object.defineProperties(is.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.pC(a)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return a?"url("+_.G$(a,this.hostElement.getBoundingClientRect().width)+")":""}}});
is.prototype.onPopupClosed=is.prototype.onPopupClosed;is.prototype.onDataChanged=is.prototype.onDataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],is.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],is.prototype,"data",void 0);_.f([_.w$("#header"),_.z("design:type",HTMLElement)],is.prototype,"header",void 0);
_.f([_.b(),_.z("design:type",Object)],is.prototype,"scriptsAppended",void 0);_.f([_.b(),_.z("design:type",Object)],is.prototype,"buttonOverrides",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],is.prototype,"onDataChanged",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],is.prototype,"onPopupClosed",null);
is=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],is);
_.D(is,"ytd-sponsorships-celebration-renderer",function(){if(CQE!==void 0)return CQE;var a=document.createElement("template");_.n(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="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);return CQE=a},{mode:1});var Dr2;var cq=function(){var a=_.u.apply(this,arguments)||this;a.isToggleChecked=!1;return a};
_.c(cq,_.u);cq.prototype.onDataChanged=function(){var a;this.isToggleChecked=((a=this.data)==null?void 0:a.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
cq.prototype.close=function(){var a;((a=this.data)==null?0:a.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
cq.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var a,W=_.A((a=this.data)==null?void 0:a.switchButton,ji0);W&&(this.isToggleChecked&&W.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(W.switchOnInnertubeCommand),!this.isToggleChecked&&W.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(W.switchOffInnertubeCommand))};
cq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cq.prototype.onDataChanged=cq.prototype.onDataChanged;_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],cq.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],cq.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],cq.prototype,"isToggleChecked",void 0);_.f([_.b({value:_.P_("CLOSE")}),_.z("design:type",String)],cq.prototype,"closeButtonAriaLabel",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cq.prototype,"onDataChanged",null);cq=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],cq);
_.D(cq,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(Dr2!==void 0)return Dr2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Dr2=a},{mode:1});var fvz;var e_=function(){return _.u.apply(this,arguments)||this};
_.c(e_,_.u);_.t=e_.prototype;_.t.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"}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.detached=function(){this.playerElement.stop()};
_.t.onYtServiceRequestCompleted=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.t.onYtServiceRequestError=function(a){_.W6(this.hostElement,a.detail.error.message)};
_.t.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.t.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.t.getTier=function(a,W){return!a||!a.tiers||W<0?null:_.A(a.tiers[W],MT9)};
_.t.moreThanOne=function(a){return!!(a&&a.length>1)};
_.t.tierOverviewTap=function(a){var W=this;this.selectedTier=a.model.index;_.DW(this,function(){_.E$(W.hostElement,"yt-refit")})};
_.t.computeSelectedClass=function(a,W){return this.isSelected(a,W)?"selected":""};
_.t.computeButtonAriaPressed=function(a,W){return this.isSelected(a,W)?"true":"false"};
_.t.isSelected=function(a,W){return a===W};
_.t.onDataChanged=function(){_.M(this.hostElement).querySelector("#header-overlay").style.visibility="";_.M(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=_.l(this.hostElement.querySelectorAll("yt-img-shadow")),
W=a.next();!W.done;W=a.next())W.value.onShow();var w;this.set("selectedTier",(w=this.get("data.targetTierIndex"))!=null?w:0);var Z;(a=(Z=this.data)==null?void 0:Z.onVisible)&&this.ytComponentBehavior.resolveCommand(a)};
_.t.initializeVe=function(a){var W=_.nS(),w=_.eH(),Z=this.get("data.trackingParams");w&&W&&(this.screenLayer=4,W=_.Mx(_.c29)(void 0,69877,{clientScreenNonce:W,visualElement:w},void 0,void 0,void 0),_.qlx(W,69877,4),w=_.eH(4),Z&&w&&(Z=_.PX(Z),_.M1(W,w,Z),a&&(this.offerVideoVe=_.Ob(74659),_.M1(W,Z,this.offerVideoVe))))};
_.t.setHeaderBackground=function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.M(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.pC(a);if(a=this.getHeaderImage())a=_.G$(a,screen.width),_.M(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+a+")"};
_.t.getHeaderImage=function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&a?a:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.t.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.t.setupVideoPlayer=function(a){var W=this,w,Z,N,B;return _.P(function(I){if(I.nextAddress==1)return w=W.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),Z=W.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.r("kevlar_player_update_killswitch")?W.playerElement.update({args:{autoplay:w,video_id:a,player_params:Z}}):W.playerElement.loadVideoWithPlayerVars({autoplay:w,video_id:a,player_params:Z}),
_.g(I,W.playerElement.getPlayerPromise(),2);N=I.yieldResult;N.addEventListener("onStateChange",function(X){W.onPlayerStateChange(X)});
N.setScreenLayer(W.screenLayer);(B=_.nS(4))&&W.offerVideoVe&&_.q1(B,W.offerVideoVe);w&&(W.pauseOtherPlayers(),W.playerElement.focusOnPlayer(),W.playerElement.getPlayer().hideControls(),_.TP(_.hF,function(){W.fadeOutHeaderOverlay()},4E3));
_.Xd(I)})};
_.t.onPlayerStateChange=function(a){a===1?this.backgroundPlayerElement&&(a=this.backgroundPlayerElement.player_.getPlayerState(),a!==1&&a!==3||this.backgroundPlayerElement.pause()):a===0&&(_.M(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.M(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.t.fadeOutHeaderOverlay=function(){_.M(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.t.onHeaderTap=function(){if(this.offerVideo){_.M(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=_.nS(4))&&this.offerVideoVe&&_.b0(a,this.offerVideoVe)}};
_.t.getBackgroundImageLayerClass=function(a){return a?"background-image-layer-with-video":""};
_.t.getHeaderClass=function(a){return a?"header-with-video":""};
_.t.getHeaderOverlayClass=function(a){return a?"header-overlay-with-video":""};
_.t.getTitleContainerClass=function(a,W){return a?"title-container-with-video":W?"title-container-without-video-flexible":"title-container-without-video"};
_.t.tierTitleDisplayStatus=function(a){return this.moreThanOne(a)?"hide":"show"};
_.t.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.K().resolve(_.bV).getPlayerElement():this.backgroundPlayerElement=_.fA();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var a=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=a===1||a===3;this.backgroundPlayerElement.pause()}};
_.t.isMiniplayerActive=function(){return _.K().resolve(_.bV).isMiniplayerActive()};
_.t.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("selected-tier-changed",this.selectedTier))};
e_.prototype.selectedTierChangedForBinding=e_.prototype.selectedTierChangedForBinding;e_.prototype.onDataChanged=e_.prototype.onDataChanged;e_.prototype.onYtPopupClosed=e_.prototype.onYtPopupClosed;e_.prototype.onYtPopupOpened=e_.prototype.onYtPopupOpened;e_.prototype.onYtServiceRequestError=e_.prototype.onYtServiceRequestError;e_.prototype.onYtServiceRequestCompleted=e_.prototype.onYtServiceRequestCompleted;
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],e_.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],e_.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],e_.prototype,"data",void 0);_.f([_.b({value:0}),_.z("design:type",Number)],e_.prototype,"selectedTier",void 0);
_.f([_.b({value:""}),_.z("design:type",String)],e_.prototype,"offerVideo",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],e_.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.f([_.b({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.lA(this)}}),
_.z("design:type",String)],e_.prototype,"playerId",void 0);_.f([_.w$("tp-yt-paper-dialog-scrollable"),_.z("design:type",Object)],e_.prototype,"scrollable",void 0);_.f([_.w$("ytd-sponsorships-tier-renderer"),_.z("design:type",Object)],e_.prototype,"tierRenderer",void 0);_.f([_.w$("#player"),_.z("design:type",Object)],e_.prototype,"playerElement",void 0);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],e_.prototype,"onYtServiceRequestCompleted",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],e_.prototype,"onYtServiceRequestError",null);
_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],e_.prototype,"onYtPopupOpened",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],e_.prototype,"onYtPopupClosed",null);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],e_.prototype,"onDataChanged",null);
_.f([_.a5("selectedTier"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],e_.prototype,"selectedTierChangedForBinding",null);e_=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],e_);
_.D(e_,"ytd-sponsorships-offer-renderer",function(){if(fvz!==void 0)return fvz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return fvz=a},{mode:_.Vn("kevlar_poly_si_batch_j077")?1:2});var drD;var ni=function(){var a=_.u.apply(this,arguments)||this;a.buttonOverrides={type:"filled",style:"mono"};return a};
_.c(ni,_.u);ni.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}}}}}};
ni.prototype.backgroundColorChanged=function(){var a,W,w,Z=(W=_.A((a=this.data)==null?void 0:a.content,R_D))==null?void 0:(w=W.backgroundColor)==null?void 0:w.backgroundColor;Z&&(a=_.KC(Z),_.M(this.hostElement).querySelector("#banner").style.backgroundColor=a,_.M(this.hostElement).querySelector("#abstract-art").style.backgroundColor=a)};
ni.prototype.attached=function(){this.JSC$18322_scroller&&(this.JSC$18322_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18322_scroller.attached&&typeof this.JSC$18322_scroller.attached==="function"&&this.JSC$18322_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ni.prototype.backgroundColorChanged=ni.prototype.backgroundColorChanged;_.f([_.b(),_.z("design:type",Object)],ni.prototype,"data",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.f([_.w$("#scroller"),_.z("design:type",Object)],ni.prototype,"JSC$18322_scroller",void 0);_.f([_.b(),_.z("design:type",Object)],ni.prototype,"buttonOverrides",void 0);
_.f([_.a5("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ni.prototype,"backgroundColorChanged",null);ni=_.f([_.C({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],ni);
_.D(ni,"ytd-sponsorships-promotion-celebration-renderer",function(){if(drD!==void 0)return drD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return drD=a},{mode:_.Vn("kevlar_poly_si_batch_j077")?1:2});var mrk;var V8n;var j_=function(){return _.u.apply(this,arguments)||this};
_.c(j_,_.u);j_.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
j_.prototype.computeIsInitiallyChecked=function(a){return a===1};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],j_.prototype,"data",void 0);_.f([_.w$("#checkbox"),_.z("design:type",Object)],j_.prototype,"checkbox",void 0);j_=_.f([_.C({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],j_);
_.D(j_,"ytd-subscription-toggle-option-renderer",function(){if(V8n!==void 0)return V8n;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return V8n=a},{mode:1});var Li=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");a.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return a};
_.c(Li,_.u);Li.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"}}}};
Li.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Li.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var a=_.M(this.hostElement).querySelector("#options").selected;a=this.data.options[a].subscriptionRadioOptionRenderer.serviceEndpoint;var W=_.M(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");W&&a&&a.modifyChannelNotificationPreferenceEndpoint&&(W=W.getValue())&&(a.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[W]);_.K().resolve(_.zU).resolveCommand(a,{form:{element:this.hostElement}});
_.aV(this.hostElement,"yt-close-popup-action")};
_.dU.Object.defineProperties(Li.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var a=this.data.options,W=0;W<a.length;W++){var w=a[W].subscriptionRadioOptionRenderer;if(w&&w.selected)return W}return null}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Li.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],Li.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],Li.prototype,"eventForwardingBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Li.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Li.prototype,"darkerDarkTheme",void 0);_.f([_.Q("data.options"),_.z("design:type",Object),_.z("design:paramtypes",[])],Li.prototype,"initialIndex",null);Li=_.f([_.C({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],Li);
_.D(Li,"ytd-subscription-notification-options-renderer",function(){if(mrk!==void 0)return mrk;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return mrk=a},{mode:1});var zt9;var Jg=function(){return _.u.apply(this,arguments)||this};
_.c(Jg,_.u);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Jg.prototype,"data",void 0);Jg=_.f([_.C({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Jg);
_.D(Jg,"ytd-tvfilm-offer-groups-renderer",function(){if(zt9!==void 0)return zt9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return zt9=a},{mode:1});var Hf9;var FE=function(){var a=_.u.apply(this,arguments)||this;a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(FE,_.u);_.t=FE.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.t.computeThumbnailClass=function(a){return a.thumbnailOverlays?a.isShow?"thumbnail-show":"thumbnail-movie":a.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.t.computeCommerceSectionClass=function(a){return a.offers&&a.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.t.computeTitleClass=function(a){return a.offers&&a.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.t.onDataChanged=function(){[].concat(_.K8(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(a){a.onShow()})};
FE.prototype.onDataChanged=FE.prototype.onDataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],FE.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],FE.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],FE.prototype,"darkerDarkTheme",void 0);
_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FE.prototype,"onDataChanged",null);FE=_.f([_.C({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],FE);
_.D(FE,"ytd-ypc-offers-overlay-renderer",function(){if(Hf9!==void 0)return Hf9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return Hf9=a},{mode:_.Vn("kevlar_poly_si_batch_j028")?1:2});var yEd;var EvE=function(){this.usedMethods=new Set};
EvE.prototype.add=function(a){this.usedMethods.add(a)};
EvE.prototype.reset=function(){this.usedMethods.clear()};var wkK=function(a,W){this.query=a;this.previousSearchQuery=W;this.id=amf++;if(!WM2){W=_.LF("SBOX_SETTINGS");a="https://"+((W==null?void 0:W.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var w=W==null?void 0:W.REQUEST_LANGUAGE;w&&(a+="&hl="+w);(w=W==null?void 0:W.REQUEST_DOMAIN)&&(a+="&gl="+w);a+="&client=youtube&gs_ri=youtube";(w=W==null?void 0:W.SUGG_EXP_ID)&&(a+="&sugexp="+encodeURIComponent(w));(w=W==null?void 0:W.PSUGGEST_TOKEN)&&(a+="&tok="+w);(W=
W==null?void 0:W.SESSION_INDEX)&&(a+="&authuser="+W);_.r("desktop_enable_visual_suggest")&&(a+="&h=180&w=320&ytvs=1");WM2=a}},ZPk=function(a){var W="q="+encodeURIComponent(a.query);
a.previousSearchQuery&&(W+="&pq="+encodeURIComponent(a.previousSearchQuery));return W},N_X=function(){var a=_.LF("SBOX_SETTINGS"),W={};
if(a==null?0:a.SEND_VISITOR_DATA)W["X-Goog-Visitor-Id"]=a==null?void 0:a.VISITOR_DATA;return W},tvz=function(a){var W=WM2;
W+="&gs_id="+a.id.toString(36);W+="&q="+encodeURIComponent(a.query);W+="&cp="+a.query.length;a.previousSearchQuery&&(W+="&pq="+encodeURIComponent(a.previousSearchQuery));(a=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(W+="&video_id="+a);return W},amf=0,WM2="";var $$d=_.u4.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,B_E=_.u4.SEARCH_ENTITY_SUGGESTION_MOVIE,lm0=_.u4.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,Imi=_.u4.SEARCH_ENTITY_SUGGESTION_TV_SHOW,PuE=function(a,W){this.text=a;this.bold=W},Xk0=function(a,W,w){this.input=W;
this.index=w;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=a[0];this.type=a[1];this.subtypes=a[2];var Z;this.displayText=Hc((Z=a[3])==null?void 0:Z.b);var N;this.ignoredPrefix=Hc((N=a[3])==null?void 0:N.a);var B,I;this.hasNewVideo=((B=a[3])==null?void 0:(I=B.zam)==null?void 0:I.toString())==="true"?!0:!1;var X;this.visualSuggestUrl=(X=a[3])==null?void 0:X.zai;var v;this.entityType=Hc((v=a[3])==null?void 0:v.zap);var U;this.entityName=Hc((U=a[3])==null?void 0:U.zao);var O;W=Hc((O=
a[3])==null?void 0:O.zaf);var S;this.entityMid=(S=a[3])==null?void 0:S.zae;O=tMX(this.subtypes,this.entityMid);if(W&&O){if(W){S="";switch(O){case "YOUTUBE_ENTITY_TYPE_SONG":S=lm0;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":S=$$d;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":S=Imi;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":S=B_E}O=O==="YOUTUBE_ENTITY_TYPE_SONG"||O==="YOUTUBE_ENTITY_TYPE_ALBUM"?S+" \u2022  \u2022 "+W:W}else O="";this.entitySubtitle=O}var T;this.externalChannelId=(T=a[3])==null?void 0:T.zav},vx9=
function(a){var W=[],w,Z=(w=a.displayText)!=null?w:a.text;
if(a.type===33)return W.push(new PuE(Z,!1)),W;if(Z.length>=a.input.length&&Z.substring(0,a.input.length)===a.input)W.push(new PuE(a.input,!1)),W.push(new PuE(Z.substring(a.input.length),!0));else{var N=new Set(a.input.split(/\s/)),B=Z.split(/\s/);W=B.map(function(I,X){return new PuE(I.trim()+(X===B.length-1?"":" "),!N.has(I))})}return W},gxK=function(a){var W=!!tMX(a.subtypes);
a=!!a.entityMid;return W||a};var oxX=function(a){this.rawResponse=["",[],{}];this.suggestions=[];try{var W=JSON.parse($j2(a));if(typeof W==="object"&&W!==null)this.rawResponse=W;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(Z){console.log("Suggest: Failed to parse SuggestResponse!");return}var w=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(Z,N){return new Xk0(Z,w,N)})};var kWa=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new EvE;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18358_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},U$0,OPd=function(){U$0||(U$0=new kWa);
return U$0};
kWa.prototype.updateSuggestions=function(a){var W=this;this.availableSuggestions.forEach(function(w){W.previousSuggestions[w]=!0});
this.availableSuggestions=a.map(function(w){var Z=w.type.toString();w.subtypes.length>0&&(Z+="i"+w.subtypes.join("i"),Z+="k"+w.suggestionSources.COMPLETE_SERVER.toString());return Z})};
var SHi=function(a,W){var w=Date.now();a.firstEditTime<0&&(a.firstEditTime=w);W&&(a.lastQueryBuildTime=w);a.lastEditTime=w};
kWa.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18358_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var YHi=function(a){var W="";a.availableSuggestions.forEach(function(N){delete a.previousSuggestions[N]});
for(var w=_.l(Object.keys(a.previousSuggestions)),Z=w.next();!Z.done;Z=w.next())Z=Z.value,a.previousSuggestions[Z]&&(W+=(W?"j":"")+Z);return W},T_E=function(a,W){var w=[];
W&&(w[1]=W.toString());w[0]="youtube";w[7]=Date.now()-a.startTime;w[6]=a.sessionNumber;a.zeroPrefixSuggestionCount>=0&&(w[33]=a.zeroPrefixSuggestionCount);w[13]=a.outOfSyncResponseCount;if(a.availableSuggestions.length>0){for(var Z=W="",N=0,B=_.l(a.availableSuggestions),I=B.next();!I.done;I=B.next())I=I.value,I!==Z&&(N>1&&(W+="l"+N),W+=(Z?"j":"")+I,N=0,Z=I),N+=1;N>1&&(W+="l"+N);w[3]=W}w[35]=YHi(a);a.selectedSuggestionIndex>=0&&(w[2]=a.selectedSuggestionIndex);var X;if(W=(X=_.LF("SBOX_SETTINGS"))==
null?void 0:X.SUGG_EXP_ID)w[19]=a.normalize(W),X=0,a.experimentTriggeredBeforeFinal&&(X|=1),a.experimentTriggeredFinal&&(X|=2),w[20]=X;w[26]=Array.from(a.inputMethodsTracker.usedMethods).join("j");if(a.JSC$18358_totalRoundTripTime>0){w[15]=a.JSC$18358_totalRoundTripTime;w[14]=a.maxRoundTripTime;X=[];for(N=W=0;N<10;N++)Z=a.roundTripTimeHistogram[N],Z===0?W++:(W>1?X.push(N+"-"+Z):W===1?X.push("0j"+Z):X.push(Z.toString()),W=0);X=X.join("j");w[16]=X}a.zeroPrefixRoundTripTime>0&&(w[36]=a.zeroPrefixRoundTripTime);
a.lastQueryBuildTime>0&&(w[18]=a.lastQueryBuildTime-a.startTime);a.firstEditTime>0&&(w[4]=a.firstEditTime-a.startTime);a.lastEditTime>0&&(w[5]=a.lastEditTime-a.startTime);return w.join(".")};
kWa.prototype.normalize=function(a){return a.replaceAll(".","-")};
var KMI=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var M0=function(){var a=_.u.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};
_.c(M0,_.u);_.t=M0.prototype;_.t.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.t.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=$va()};
_.t.dataChanged=function(){this.logDialog()};
_.t.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var a;(a=this.manager.audioPlayer)!=null&&(a.JSC$17648_audioEnabled=!1)}this.manager.stop();(a=this.manager.audioPlayer)!=null&&(a.JSC$17648_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.t.handleSpeechQueryCompleteAction=function(a){var W=a.navigationAction;W&&(a.trackingParams&&_.$J().graftServerVe(a.trackingParams,this.dialogVe,5),_.E$(this.hostElement,"yt-navigate",{endpoint:W,tempData:this.getNavigationParams(W),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.t.onExitButtonClick=function(){this.closeDialog()};
_.t.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var a;if((a=this.manager)!=null){var W;(W=a.audioPlayer)==null||Rp(W,"failure");a.setState("microphone-off");a.stop()}}else(a=this.manager)==null||a.start()};
_.t.transcriptionChanged=function(){var a,W;(((a=this.transcription)==null?0:a.low)||((W=this.transcription)==null?0:W.high))&&this.setState("transcribing",this.transcription)};
_.t.stateChanged=function(){this.setState(this.state,this.transcription)};
_.t.logDialog=function(){var a;(a=this.data)!=null&&a.trackingParams&&(a=_.$J(),_.NJ(a,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=a.graftServerVe(this.data.trackingParams,void 0,5))};
_.t.getNavigationParams=function(a){var W={};if(_.r("web_yt_searchbox")){var w=OPd();w.inputMethodsTracker.add(6);w=T_E(w,15);W.gs_l=w;var Z;W.oq=((Z=_.A(a,_.Pu))==null?void 0:Z.query)||""}else if(a=window.ytvoicesearchloggingparams){if(a=a())W.oq=a.oq,W.gs_l=a.gs_l}else _.qx(Error("kl"));return W};
_.t.closeDialog=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.t.setState=function(a,W){if(this.data){var w=this.data,Z={};switch(a){case "listening":Z={headerText:w.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:w.microphoneButtonAriaLabel};break;case "timeout":Z={headerText:w.promptHeader,microphoneState:"try-again",microphoneLabel:w.promptMicrophoneLabel,microphoneAriaLabel:w.promptMicrophoneLabel};break;case "microphone-off":Z={headerText:w.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:w.promptMicrophoneLabel,
microphoneAriaLabel:w.promptMicrophoneLabel};break;case "transcribing":(W==null?0:W.low)||(W==null?0:W.high)?Z={transcriptionLow:W==null?void 0:W.low,transcriptionHigh:W==null?void 0:W.high,microphoneState:"speaking",microphoneAriaLabel:w.microphoneButtonAriaLabel}:Z={headerText:w.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:w.microphoneButtonAriaLabel};break;case "processing":Z={headerText:w.loadingHeader,microphoneState:"processing",microphoneAriaLabel:w.microphoneButtonAriaLabel};
break;case "offline":Z={headerText:w.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:w.connectionErrorMicrophoneLabel,microphoneAriaLabel:w.connectionErrorMicrophoneLabel};break;case "permission":Z={headerText:w.permissionsHeader,bodyLine1:w.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:w.permissionsSubtext};break;case "permission-denied":Z={headerText:w.disabledHeader,bodyLine1:w.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:w.disabledSubtext}}Z.className=
a;this.speechOverlayState=Z;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.t.setMicrophoneState=function(a){var W=this.isLevelAnimating;this.isLevelAnimating=a==="speaking";!W&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=a==="processing"&&!this.noAnimations};
_.t.setClass=function(a){this.speechOverlayClassName&&_.mh(this.hostElement,this.speechOverlayClassName,!1);a&&(this.speechOverlayClassName=a,_.mh(this.hostElement,a,!0))};
_.t.runLevelAnimation=function(){var a=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var W=1+Math.random()*.75,w=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+w/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+W+")");_.hF.addJob(function(){a.runLevelAnimation()},3,w)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
M0.prototype.stateChanged=M0.prototype.stateChanged;M0.prototype.transcriptionChanged=M0.prototype.transcriptionChanged;M0.prototype.onPopupClosed=M0.prototype.onPopupClosed;M0.prototype.dataChanged=M0.prototype.dataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],M0.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],M0.prototype,"rendererStamperBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],M0.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],M0.prototype,"eventForwardingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],M0.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],M0.prototype,"speechOverlayState",void 0);
_.f([_.b(),_.z("design:type",Object)],M0.prototype,"microphoneSpinnerActive",void 0);_.f([_.b({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.z("design:type",Object)],M0.prototype,"noAnimations",void 0);_.f([_.b({selector:function(a){var W;return(W=a.voiceSearch)==null?void 0:W.transcription}}),
_.z("design:type",Object)],M0.prototype,"transcription",void 0);_.f([_.b({selector:function(a){var W;return(W=a.voiceSearch)==null?void 0:W.overlay}}),
_.z("design:type",String)],M0.prototype,"state",void 0);_.f([_.b(),_.z("design:type",Object)],M0.prototype,"boundExitClick",void 0);_.f([_.w$("#microphone-levels"),_.z("design:type",HTMLElement)],M0.prototype,"level",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],M0.prototype,"dataChanged",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],M0.prototype,"onPopupClosed",null);
_.f([_.lO("transcription"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],M0.prototype,"transcriptionChanged",null);_.f([_.lO("state"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],M0.prototype,"stateChanged",null);M0=_.f([_.C({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],M0);
_.D(M0,"ytd-voice-search-dialog-renderer",function(){if(yEd!==void 0)return yEd;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return yEd=a},{mode:1});var pkX;var RQ=function(){var a=_.u.apply(this,arguments)||this;a.isOverlay=!1;a.hidden=!1;return a};
_.c(RQ,_.u);_.t=RQ.prototype;_.t.onPopupClosed=function(){this.toggleIconState(!1)};
_.t.computeIcon=function(){var a,W,w;return(W=_.A((a=this.data)==null?void 0:a.icon,sif))==null?void 0:(w=W.icon)==null?void 0:w.iconType};
_.t.computeIconBadgeShape=function(){var a;return{iconBadgeType:"cart",iconBadgeText:(a=this.iconBadgeEntity)==null?void 0:a.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.t.onClick=function(){var a;(a=this.data)!=null&&a.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.t.computeHidden=function(a){return!a};
_.t.toggleIconState=function(a){this.iconButton&&(this.iconButton.pressed=a)};
RQ.prototype.onPopupClosed=RQ.prototype.onPopupClosed;_.f([_.R(_.ij),_.z("design:type",Object)],RQ.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],RQ.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],RQ.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],RQ.prototype,"isOverlay",void 0);
_.f([_.b({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.z("design:type",Object)],RQ.prototype,"hidden",void 0);_.f([_.b({selectorArgs:["data.iconBadgeEntityKey"],selector:function(a,W){return _.tG(a.entities,"iconBadgeEntity",W)}}),
_.z("design:type",Object)],RQ.prototype,"iconBadgeEntity",void 0);_.f([_.w$("yt-icon-button"),_.z("design:type",HTMLButtonElement)],RQ.prototype,"iconButton",void 0);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RQ.prototype,"onPopupClosed",null);RQ=_.f([_.C({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],RQ);
_.D(RQ,"ytd-icon-badge-topbar-button-renderer",function(){if(pkX!==void 0)return pkX;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return pkX=a},{mode:1});var rRz;var q0=function(){var a=_.u.apply(this,arguments)||this;a.premiumOptions=[];a.darkerDarkTheme=_.r("web_darker_dark_theme");return a};
_.c(q0,_.u);q0.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.dU.Object.defineProperties(q0.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],q0.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Array)],q0.prototype,"premiumOptions",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],q0.prototype,"darkerDarkTheme",void 0);_.f([_.Q("premiumOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],q0.prototype,"hasPremiumOptions",null);
q0=_.f([_.C({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],q0);
_.D(q0,"ytd-offline-promo-content",function(){if(rRz!==void 0)return rRz;var a=document.createElement("template");_.n(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="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');a.content.insertBefore(_.y().content.cloneNode(!0),
a.content.firstChild);return rRz=a},{mode:1});var ARD;var Qm=function(){var a=_.u.apply(this,arguments)||this;a.premiumOptions=[];return a};
_.c(Qm,_.u);Qm.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var a;this.premiumOptions=Nin((a=this.data)==null?void 0:a.formats)};
Qm.prototype.onClickSubmit=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var a;(a=_.fA())==null||a.pause()};
Qm.prototype.attached=function(){this.JSC$18378_scroller&&(this.JSC$18378_scroller.dialogElement=this.hostElement.parentNode)};
_.dU.Object.defineProperties(Qm.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Qm.prototype.dataChanged=Qm.prototype.dataChanged;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Qm.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Qm.prototype,"data",void 0);
_.f([_.b({computed:"computeIcon_(data.headersIcon)",value:""}),_.z("design:type",String)],Qm.prototype,"headersIcon",void 0);_.f([_.b(),_.z("design:type",Array)],Qm.prototype,"premiumOptions",void 0);_.f([_.w$("#scroller"),_.z("design:type",Object)],Qm.prototype,"JSC$18378_scroller",void 0);_.f([_.Q("headersIcon"),_.z("design:type",Object),_.z("design:paramtypes",[])],Qm.prototype,"showIcon",null);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qm.prototype,"dataChanged",null);Qm=_.f([_.C({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Qm);
_.D(Qm,"ytd-offline-promo-renderer",function(){if(ARD!==void 0)return ARD;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return ARD=a},{mode:1});var hfE;var xk=function(){var a=_.u.apply(this,arguments)||this;a.playbackPauseInterval=NaN;a.isLoading=!1;a.hasError=!1;a.dialogClass="";a.youtubeLabel=_.P_("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};
_.c(xk,_.u);_.t=xk.prototype;_.t.onDataChange=function(){var a;if(this.showEOMV1Text=!((a=this.data)==null||!a.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.t.attached=function(){this.pausePlayer()};
_.t.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.t.handleLangSelect=function(a){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[a.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.t.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.t.handleSaveConsent=function(a){var W=this;this.showLoadingSpinner();this.showLoadingSpinner();uUi(_.A(a,ucE)).catch(function(w){_.jJ(new _.Uw("Something went wrong when save consent "+(w.message?w.message:w)+"."));W.hideLoadingSpinner();W.showErrorMessage()})};
_.t.handleDisablePersonalization=function(a){var W=this;this.showLoadingSpinner();Cni(_.A(a,sAa)).then(function(){W.dialog.close();W.resumePlayer()}).catch(function(w){_.jJ(new _.Uw("Something went wrong when disable personalization "+(w.message?w.message:w)+"."));
W.hideLoadingSpinner();W.showErrorMessage()})};
_.t.showLoadingSpinner=function(){var a=this;this.showSpinnerJobId=_.hF.addLowPriorityJob(function(){a.isLoading=!0},500)};
_.t.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.hF.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.t.showErrorMessage=function(){var a=this;this.hasError=!0;_.hF.addLowPriorityJob(function(){a.hasError=!1},2E3)};
_.t.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Zp(function(){try{var a=_.fA();a&&a.pause()}catch(W){}},100))};
_.t.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var a=_.fA();a&&a.play()}catch(W){}};
_.dU.Object.defineProperties(xk.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.eomV1Text)return[];a=[];for(var W=["SHIELD","WARNING","BAR_CHART"],w=this.data.eomV1Text.essentialCookieMsg.items,Z=0;Z<W.length&&Z<w.length;Z++)a.push({icon:W[Z],text:w[Z]});return a}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.eomV1Text)return[];a=[];for(var W=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],w=this.data.eomV1Text.nonEssentialCookieMsg.items,Z=0;Z<W.length&&Z<w.length;Z++)a.push({icon:W[Z],text:w[Z]});return a}}});
xk.prototype.onDataChange=xk.prototype.onDataChange;_.f([_.b(),_.z("design:type",Object)],xk.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],xk.prototype,"showEOMV1Text",void 0);_.f([_.b(),_.z("design:type",Object)],xk.prototype,"isLoading",void 0);_.f([_.b(),_.z("design:type",Object)],xk.prototype,"hasError",void 0);_.f([_.b(),_.z("design:type",Number)],xk.prototype,"showSpinnerJobId",void 0);_.f([_.b(),_.z("design:type",Object)],xk.prototype,"dialogClass",void 0);
_.f([_.w$("#dialog"),_.z("design:type",Object)],xk.prototype,"dialog",void 0);_.f([_.w$("#cb-header"),_.z("design:type",HTMLElement)],xk.prototype,"header",void 0);_.f([_.w$("#lang-select"),_.z("design:type",HTMLElement)],xk.prototype,"langSelect",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],xk.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],xk.prototype,"ytComponentBehavior",void 0);
_.f([_.b(),_.z("design:type",String)],xk.prototype,"youtubeLabel",void 0);_.f([_.b(),_.z("design:type",Object)],xk.prototype,"logoName",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xk.prototype,"onDataChange",null);_.f([_.Q("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],xk.prototype,"eomEssentialCookieMsgItems",null);
_.f([_.Q("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],xk.prototype,"eomNonEssentialCookieMsgItems",null);xk=_.f([_.C({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],xk);
_.D(xk,"ytd-consent-bump-v2-lightbox",function(){if(hfE!==void 0)return hfE;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return hfE=a},{mode:1});var iPn;var bs=function(){return _.u.apply(this,arguments)||this};
_.c(bs,_.u);bs.prototype.ready=function(){if(!_.gz()||aBn)var a=!0;else aBn=!0,a=!1;a||(a=document.querySelector("ytd-app"),a||(a=document.body),this.internalLightBox=_.M(a).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.f([_.b(),_.z("design:type",Object)],bs.prototype,"data",void 0);_.f([_.w$("#lightbox"),_.z("design:type",Object)],bs.prototype,"lightBox",void 0);bs=_.f([_.C({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],bs);
_.D(bs,"ytd-consent-bump-v2-renderer",function(){if(iPn!==void 0)return iPn;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return iPn=a},{mode:1});var cR0;var efz;var nxi;var sU=function(){var a=_.u.apply(this,arguments)||this;a.ephemeralActionsEnabled=_.r("web_ephemeral_actions");return a};
_.c(sU,_.u);_.t=sU.prototype;_.t.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&OAk(this.toastManager,this.toastType)};
_.t.open=function(a){this.toast&&(this.ephemeralAction&&_.K().resolve(_.BC).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=a!=null?a:0,this.toastManager.enqueue(this.toast,a)):this.toast.open())};
_.t.close=function(a){var W;(W=this.toast)==null||W.close();this.toastManager&&a===1&&OAk(this.toastManager,a)};
_.t.refit=function(){var a;(a=this.toast)==null||a.refit()};
_.t.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var a;(a=this.toast)==null||a.close()}};
_.t.setVerticalOffset=function(a){this.toast&&(this.toast.verticalOffset=a,this.toast.fit())};
_.t.computeButtonClass_=function(a){return a?"toast-button":""};
_.t.computeText_=function(a){return _.sd(a)};
_.t.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Jp("toast-opened-changed",this.toastOpened))};
_.t.updateToastOpenedFromBinding=function(a){this.toastOpened=a.detail.value};
_.dU.Object.defineProperties(sU.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var a,W,w=(a=this.data)==null?void 0:(W=a.actionButton)==null?void 0:W.buttonRenderer;return(w==null?void 0:w.command)||(w==null?void 0:w.serviceEndpoint)||(w==null?void 0:w.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&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=[],W;((W=this.data)==null?0:W.responseText)&&a.push(_.sd(this.data.responseText));var w;((w=this.data)==null?0:w.subText)&&a.push(_.sd(this.data.subText));var Z,N;if((Z=this.data)==null?0:(N=Z.actionButton)==null?0:N.buttonRenderer){var B,I;a.push(((B=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(I=B.accessibilityData)==null?void 0:I.label)||_.sd(this.data.actionButton.buttonRenderer.text))}return a.filter(function(X){return X}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var a,W;return(W=(a=this.toast)==null?void 0:a.opened)!=null?W:!1}}});
sU.prototype.toastOpenedChangedForBinding=sU.prototype.toastOpenedChangedForBinding;sU.prototype.toastOpenedChanged=sU.prototype.toastOpenedChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],sU.prototype,"ytEventForwardingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],sU.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],sU.prototype,"duration",void 0);
_.f([_.b(),_.z("design:type",Number)],sU.prototype,"toastType",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],sU.prototype,"useCloseButton",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],sU.prototype,"closeToastOnActionButtonClick",void 0);_.f([_.b({value:function(){return _.P_("SBOX_INAPPROPRIATE_CANCEL")}}),
_.z("design:type",String)],sU.prototype,"closeButtonAriaLabel",void 0);_.f([_.b(),_.z("design:type",Boolean)],sU.prototype,"toastOpened",void 0);_.f([_.b(),_.z("design:type",Boolean)],sU.prototype,"hasOpened",void 0);_.f([_.b(),_.z("design:type",Object)],sU.prototype,"ephemeralActionsEnabled",void 0);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],sU.prototype,"command",null);
_.f([_.Q("ephemeralActionsEnabled","labelText","command","duration"),_.z("design:type",Object),_.z("design:paramtypes",[])],sU.prototype,"ephemeralAction",null);_.f([_.Q("ephemeralAction"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sU.prototype,"hasEphemeralAction",null);_.f([_.w$("#toast"),_.z("design:type",Object)],sU.prototype,"toast",void 0);_.f([_.b({value:function(){return{style:"call-to-action-inverse"}}}),
_.z("design:type",Object)],sU.prototype,"buttonOverrides",void 0);_.f([_.b({value:{style:"mono-inverse"}}),_.z("design:type",Object)],sU.prototype,"closeButtonOverrides",void 0);_.f([_.b({value:function(){return _.K().resolve(_.Vv(_.cLi))}}),
_.z("design:type",Object)],sU.prototype,"toastManager",void 0);_.f([_.Q("data.responseText","data.subText","data.actionButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],sU.prototype,"labelText",null);_.f([_.a5("toastOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sU.prototype,"toastOpenedChanged",null);
_.f([_.a5("toastOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sU.prototype,"toastOpenedChangedForBinding",null);sU=_.f([_.TD({is:"yt-notification-action-renderer",disableElementRegistration:!0})],sU);
_.D(sU,"yt-notification-action-renderer",function(){if(nxi===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;efz===void 0&&(efz=document.createElement("template"));var Z=efz;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);nxi=a}a=nxi;return a},{mode:2});var us=function(){var a=_.u.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(W){a.isLeaderTab&&a.downloadingCount>0&&(W.preventDefault(),
W.returnValue=!0)};
return a};
_.c(us,_.u);_.t=us.prototype;
_.t.open=function(){this.updateDownloadState();if(this.data){var a=this.sessionDownloaded+1,W=this.sessionTotalDownloads>1?_.P_("VIDEOS_DOWNLOADING_RATIO",{downloaded:a.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+a+"/"+this.sessionTotalDownloads):_.P_("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(W=this.sessionTotalDownloads>1?_.P_("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:a.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
a+"/"+this.sessionTotalDownloads):_.P_("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));a=this.isLeaderTab?_.P_("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.sd(this.data.responseText)!==W||_.sd(this.data.subText)!==a)this.set("data.responseText",_.b8(W)),this.set("data.subText",_.b8(a)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.t.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.t.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.t.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.t.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};
_.t.handleFullscreenChange=function(a){(this.isFullScreen=a)||this.updatePopup()};
us.prototype.updateCurrentDownloadProgress=us.prototype.updateCurrentDownloadProgress;us.prototype.updatePopup=us.prototype.updatePopup;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],us.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],us.prototype,"ytEventForwardingBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],us.prototype,"actionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],us.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],us.prototype,"duration",void 0);_.f([_.b({selector:function(a){return _.BlD(a.entities).length}}),
_.z("design:type",Object)],us.prototype,"downloadingCount",void 0);_.f([_.b({selector:yF2}),_.z("design:type",Object)],us.prototype,"downloadedCount",void 0);_.f([_.b({selector:function(a){var W=_.BlD(a.entities);return HJ2(a.entities,W)}}),
_.z("design:type",Object)],us.prototype,"downloadingOnlySmartDownloads",void 0);_.f([_.b(),_.z("design:type",Object)],us.prototype,"sessionTotalDownloads",void 0);_.f([_.b(),_.z("design:type",Object)],us.prototype,"sessionDownloaded",void 0);_.f([_.b(),_.z("design:type",Object)],us.prototype,"previousSessionsDownloaded",void 0);_.f([_.b(),_.z("design:type",Object)],us.prototype,"totalDownloadPercentage",void 0);
_.f([_.b({selector:function(a){var W;a=(W=_.BlD(a.entities))!=null?W:[];return a.length>0?_.zXx(a.slice(-1)):0}}),
_.z("design:type",Object)],us.prototype,"currentDownloadProgress",void 0);_.f([_.b(),_.z("design:type",Object)],us.prototype,"currentDownloadPercentage",void 0);_.f([_.b({selector:_.u88}),_.z("design:type",Object)],us.prototype,"isLeaderTab",void 0);_.f([_.w$("yt-notification-action-renderer"),_.z("design:type",Object)],us.prototype,"notificationActionRenderer",void 0);
_.f([_.lO("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],us.prototype,"updatePopup",null);_.f([_.lO("currentDownloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],us.prototype,"updateCurrentDownloadProgress",null);us=_.f([_.C({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],us);
_.D(us,"ytd-video-download-toast-renderer",function(){if(cR0!==void 0)return cR0;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return cR0=a},{mode:1});var jj9;var LMI;var Ci=function(){return _.u.apply(this,arguments)||this};
_.c(Ci,_.u);Ci.prototype.computeIsRedLogo=function(a,W){!a&&W&&(a=W);return a==="YOUTUBE_RED_LOGO"||a==="YOUTUBE_PREMIUM_LOGO"};
Ci.prototype.computeLogoName=function(a){a=this.componentBehavior.computeIcon_(a);return a===""?"yt-logos-ext:yt-logo-updated":a};
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],Ci.prototype,"componentBehavior",void 0);_.f([_.b({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.z("design:type",Boolean)],Ci.prototype,"isRedLogo",void 0);_.f([_.b({computed:"computeLogoName(data)"}),_.z("design:type",String)],Ci.prototype,"logoName",void 0);_.f([_.b({value:{}}),_.z("design:type",Object)],Ci.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],Ci.prototype,"logoType",void 0);Ci=_.f([_.C({disableElementRegistration:!0,is:"ytd-logo"})],Ci);
_.D(Ci,"ytd-logo",function(){if(LMI!==void 0)return LMI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return LMI=a},{mode:_.Vn("kevlar_poly_si_batch_j074")?1:2});var Gy=function(){var a=_.u.apply(this,arguments)||this;a.animationRef={};return a};
_.c(Gy,_.u);_.t=Gy.prototype;_.t.attached=function(){document.addEventListener("yt-navigate-finish",_.yV(this,this.logYoodle))};
_.t.detached=function(){document.removeEventListener("yt-navigate-finish",_.yV(this,this.logYoodle))};
_.t.logYoodle=function(){var a,W;if((a=this.data)==null?0:(W=a.loggingDirectives)==null?0:W.trackingParams)this.ytRendererBehavior.markDirty(),_.$J().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.t.computeHideImg=function(a,W){return!!a||!!W};
_.t.computeHideYtdLogo=function(a,W){return!a||!!W};
_.t.computeHideLottie=function(a){return!a};
_.t.computeIsRedLogo=function(a){return a==="YOUTUBE_RED_LOGO"||a==="YOUTUBE_PREMIUM_LOGO"};
_.t.renderLogoEntity=function(){var a=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),W=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),w=this.getLogoTitleText(this.data),Z=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==a&&(this.url=a);this.animatedUrl!==W&&(this.animatedUrl=W);this.logoTitleText!==w&&(this.logoTitleText=w);this.lottieUrl!==Z&&(this.lottieUrl=Z,this.lottiePlayerProps=this.computeLottiePlayerProps(Z))};
_.t.getSanitizedThumbnail=function(a){return a&&a.thumbnails?_.kfS(a.thumbnails,122)||"":""};
_.t.getThumbnailUrl=function(a,W){if(!W)return"";var w,Z;a=a?(w=W.darkThemeLogo)==null?void 0:w.thumbnail:(Z=W.lightThemeLogo)==null?void 0:Z.thumbnail;return this.getSanitizedThumbnail(a)};
_.t.getAnimatedThumbnailUrl=function(a,W){return W?this.getSanitizedThumbnail(a?W.darkThemeAnimatedLogo:W.lightThemeAnimatedLogo):""};
_.t.getLogoTitleText=function(a){if(a)return _.sd(a.tooltipText)};
_.t.computeLogoIcon=function(a,W){if(W){var w,Z;return a?(w=W.darkThemeLogo)==null?void 0:w.icon:(Z=W.lightThemeLogo)==null?void 0:Z.icon}};
_.t.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.t.getLottieUrl=function(a,W){var w,Z,N,B;return a?W==null?void 0:(w=W.darkThemeLogo)==null?void 0:(Z=w.lottieAnimation)==null?void 0:Z.url:W==null?void 0:(N=W.lightThemeLogo)==null?void 0:(B=N.lottieAnimation)==null?void 0:B.url};
_.t.computeLottiePlayerProps=function(a){if(a){var W;if((W=this.animationRef)==null?0:W.lottieEl){var w;(w=this.animationRef)==null||w.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)}}}};
_.t.onLottieError=function(){this.data&&this.lottieUrl&&_.E$(this.hostElement,"yoodle-error")};
_.t.onImgError=function(){this.data&&!this.lottieUrl&&_.E$(this.hostElement,"yoodle-error")};
Gy.prototype.playAnimation=Gy.prototype.playAnimation;Gy.prototype.renderLogoEntity=Gy.prototype.renderLogoEntity;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Gy.prototype,"data",void 0);_.f([_.b({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.z("design:type",Boolean)],Gy.prototype,"hideImg",void 0);
_.f([_.b({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.z("design:type",Boolean)],Gy.prototype,"hideYtdLogo",void 0);_.f([_.b({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.z("design:type",Boolean)],Gy.prototype,"hideLottie",void 0);_.f([_.b({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.z("design:type",Boolean)],Gy.prototype,"isRedLogo",void 0);
_.f([_.b(),_.z("design:type",Boolean)],Gy.prototype,"useDarkThemeYoodle",void 0);_.f([_.b(),_.z("design:type",String)],Gy.prototype,"url",void 0);_.f([_.b(),_.z("design:type",String)],Gy.prototype,"animatedUrl",void 0);_.f([_.b(),_.z("design:type",String)],Gy.prototype,"logoTitleText",void 0);_.f([_.b({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.z("design:type",Object)],Gy.prototype,"logoIcon",void 0);_.f([_.b(),_.z("design:type",Object)],Gy.prototype,"logoType",void 0);
_.f([_.b(),_.z("design:type",String)],Gy.prototype,"lottieUrl",void 0);_.f([_.b(),_.z("design:type",Object)],Gy.prototype,"lottiePlayerProps",void 0);_.f([_.b(),_.z("design:type",Object)],Gy.prototype,"animationRef",void 0);_.f([_.a5("data"),_.a5("useDarkThemeYoodle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Gy.prototype,"renderLogoEntity",null);
_.f([_.E6("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Gy.prototype,"playAnimation",null);Gy=_.f([_.C({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Gy);
_.D(Gy,"ytd-yoodle-renderer",function(){if(jj9!==void 0)return jj9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return jj9=a},{mode:_.Vn("kevlar_poly_si_batch_j074")?1:2});var JRa;var FMI;var DM=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return a};
_.c(DM,_.u);_.t=DM.prototype;_.t.onYoodleError=function(){_.r("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.t.computeLogoName=function(a){a=this.componentBehavior.computeIcon_(a);return a===""?"yt-logos-ext:yt-logo-updated":a};
_.t.computeTitle=function(a,W,w){return w&&(W==null?0:W.tooltipText)?_.sd(W.tooltipText):_.sd(a)};
_.t.computeAriaLabel=function(a,W,w){return w&&(W==null?0:W.tooltipText)?_.sd(a):""};
_.t.computeShowYoodle=function(a,W,w){return!a||!W&&!!w&&!_.T5.isEmpty(w)};
_.t.onNavigateHomeAction=function(){if(_.r("kevlar_miniplayer_navigate_home_from_app_killswitch")){var a;(a=_.M(this.hostElement).querySelector(".yt-simple-endpoint"))==null||a.click()}};
_.t.computeLogoHref=function(a,W,w){var Z;(w==null?0:w.onTapCommand)?Z=this.componentBehavior.computeHref_(w.onTapCommand):a&&(Z=this.componentBehavior.computeHref_(a));return Z?Z:W};
_.t.computeCommand=function(a,W){return(W==null?void 0:W.onTapCommand)||a};
_.t.getEndpointForm=function(){if(_.r("kevlar_topbar_disable_cache_only_home")){var a=_.K().resolve(_.Ab),W=NU0(a.getState())||"";a=_.ib9(a.getState())||"";return{disableCache:W==="ytd-browse"&&a==="home"}}return{disableCache:!0}};
DM.prototype.onYoodleError=DM.prototype.onYoodleError;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],DM.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],DM.prototype,"componentBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],DM.prototype,"ytdReduxBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],DM.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],DM.prototype,"countryCode",void 0);_.f([_.b({selectorArgs:["data.overrideEntityKey"],selector:function(a,W){return _.tG(a.entities,"logoEntity",W)}}),
_.z("design:type",Object)],DM.prototype,"logoEntity",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.z("design:type",Boolean)],DM.prototype,"showYoodle",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],DM.prototype,"yoodleError",void 0);_.f([_.b({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.z("design:type",String)],DM.prototype,"titleText",void 0);
_.f([_.b({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.z("design:type",String)],DM.prototype,"ariaLabelText",void 0);_.f([_.b({value:"/"}),_.z("design:type",String)],DM.prototype,"defaultEndpointUrl",void 0);_.f([_.b({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.z("design:type",String)],DM.prototype,"endpointUrl",void 0);
_.f([_.b({computed:"computeCommand(data.endpoint, logoEntity)"}),_.z("design:type",String)],DM.prototype,"command",void 0);_.f([_.b(),_.z("design:type",Object)],DM.prototype,"logoType",void 0);_.f([_.b({}),_.z("design:type",Boolean)],DM.prototype,"useDarkThemeYoodle",void 0);_.f([_.E6("yoodle-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DM.prototype,"onYoodleError",null);DM=_.f([_.C({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],DM);
_.D(DM,"ytd-topbar-logo-renderer",function(){if(FMI!==void 0)return FMI;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return FMI=a},{mode:_.Vn("kevlar_poly_si_batch_j027")?1:2});var Mvn=0;var RfE=_.u4.SEARCH_APPEND_LABEL,qHa=_.u4.SUGGESTION_NEW_VIDEOS_TEXT,Qj2=_.u4.SUGGESTION_THUMBNAIL_LABEL,x$2=_.xQ(function(a){function W(p6){var VF,K6;return _.P(function(P2){if(P2.nextAddress==1)return VF=new Request(p6),_.tq(P2,2),_.g(P2,fetch(VF,{credentials:"include"}),4);if(P2.nextAddress!=2)return JL(!0),_.qY(P2,0);K6=_.Pb(P2);_.jJ(K6);_.Xd(P2)})}
var w=a.isHighlighted;var Z=a.suggestion;var N=a.onClickCallback;var B=a.onHoverUpdateCallback;var I=a.labels;var X=a.queryBuilderFunction;var v=a.onRemoveCallback;var U=a.suggestionIndex;var O=a.generateUniqueId;var S=a.highlightedId;var T=a.useScrollMargin;var p=a.isKeyboardMode;var h=null,L=null,F=_.D8(),x=_.D8(),G=_.fH(function(p6){p6&&_.RI(237477,p6,L,function(VF){L=VF})}),V=_.fH(function(p6){p6&&_.RI(237477,p6,L,function(VF){L=VF})}),d=_.$_(function(p6){if((p6==null?void 0:p6.button)===2)return p6.preventDefault(),
!1;
var VF=_.nS();VF&&h&&_.s_(VF,h,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var K6;N(p6,Z().text,Z().index,Z().entityMid,p6==null?void 0:(K6=p6.detail)==null?void 0:K6.wasSelectedByKeyboard);return!1}),ZD=function(){return Z().type===35},aC=function(){return _.r("desktop_enable_single_suggestion_highlight")},Bv=function(){return _.r("desktop_enable_entity_suggest")},Am=function(){return _.yv("desktop_suggestions_panel_row_height")||0},e9=function(){var p6;
return _.r("desktop_enable_new_video_metadata")&&((p6=Z())==null?void 0:p6.hasNewVideo)===!0},cv=function(){return _.r("desktop_enable_visual_suggest")},C7=function(){return Z().entitySubtitle},RC=function(){return aC()?(w==null?void 0:w())||rC()&&!(p==null?0:p()):(w==null?void 0:w())||rC()},G8=function(){var p6=_.LF("SBOX_SETTINGS");
return ZD()&&!(p6==null?0:p6.HIDE_REMOVE_LINK)},QF=function(){return vx9(Z())},vl,Hl=!((vl=_.K().resolve(_.Vv(_.Lt)))==null||!vl()),SV=function(){return ZD()?"ARROW_TIME":"SEARCH"},Ny=function(){return I==null?void 0:I().SUGGESTION_DISMISS_LABEL},Bl=function(){return I==null?void 0:I().SUGGESTION_DISMISSED_LABEL};
vl=_.l(_.$1(!1,void 0,"kHLOZe"));a=vl.next().value;var JL=vl.next().value;vl=_.l(_.$1(!1,void 0,"SGF2sd"));var Pl=vl.next().value,W9=vl.next().value,rC=Pl,le=_.$_(function(){X(x.value.innerText);return!1}),rT=_.$_(function(p6){p6.preventDefault();
return!1}),Re=_.$_(function(p6){var VF=Z().text,K6=_.LF("SBOX_SETTINGS"),P2="https://"+(K6.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
P2+="&delq="+encodeURIComponent(VF);(VF=K6==null?void 0:K6.PSUGGEST_TOKEN)&&(P2+="&tok="+VF);(K6=K6==null?void 0:K6.SESSION_INDEX)&&(P2+="&authuser="+K6);W(P2);p6.preventDefault();(p6=_.nS())&&L&&_.s_(p6,L,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");v(U==null?void 0:U());return!1}),u9=_.$_(function(){if(aC()&&(p==null?0:p()))return!1;
W9(!0);B(!0);return!1}),eV=_.$_(function(){W9(!1);
B(!1);return!1});
vl=_.l(_.$1("",void 0,"yaN19c"));var DE=vl.next().value,mi=vl.next().value;_.pF(function(){G8()&&mi(O==null?void 0:O(U==null?void 0:U()));F.value&&_.RI(12453,F.value,h,function(p6){h=p6})});
return _.k(_.Y,{cond:a,then:function(){var p6={};return _.k("div",{class:_.W$("ytSuggestionComponentRemovedText",(p6.ytSuggestionComponentLargerRemovedText=function(){return cv()},p6)),
style:function(){return Am()>0?"height: "+Am()+"px;":""},
role:"button"},Bl)},
else:function(){var p6={},VF={};return _.k("div",{class:_.W$("ytSuggestionComponentSuggestion",(p6.ytSuggestionComponentSuggestionHover=function(){return!aC()},p6.ytSuggestionComponentHighlighted=RC,p6.ytSuggestionComponentPersonalizedSuggestion=ZD,p6.ytSuggestionComponentMweb=!1,p6.ytSuggestionComponentLargerSuggestion=function(){return e9()||cv()},p6.ytSuggestionComponentThumbnailSuggestion=function(){return cv()},p6.ytSuggestionComponentRoundedSuggestion=function(){return _.r("desktop_enable_scrollable_suggestions_panel")&&
_.r("desktop_enable_suggestions_panel_padding")},p6.ytSuggestionComponentThumbnailPadding=function(){return cv()&&!ZD()},p6)),
style:function(){return Am()>0?"height: "+Am()+"px;":""},
role:"presentation","on:mousedown":d,"on:mouseover":u9,"on:mouseout":eV,el:F},_.k("div",{class:_.W$("ytSuggestionComponentText",(VF.ytSuggestionComponentScrollMargin=T,VF)),"aria-label":function(){return e9()?Z().text+" "+qHa:Z().text},
id:function(){return O==null?void 0:O(U==null?void 0:U())},
"on:mousedown":d,role:"option"},_.k(_.Y,{cond:function(){return Z().type!==33},
then:function(){return _.k(_.P$,{icon:SV,className:"ytSuggestionComponentIcon"})}}),_.k("div",{class:"ytSuggestionComponentLeftContainer"},_.k("span",{el:x,
role:"button",tabindex:0},_.k(_.k6,{each:QF},function(K6){return K6.bold?_.k("span",{class:"ytSuggestionComponentBold"},K6.text):_.k("span",null,K6.text)})),_.k(_.Y,{cond:function(){return Bv()&&gxK(Z())&&!!Z().entitySubtitle},
then:function(){return _.k("div",{class:"ytSuggestionComponentEntitySubtitle"},C7)}}),_.k(_.Y,{cond:function(){return e9()},
then:function(){return _.k("div",{class:"ytSuggestionComponentNewVideoContainer"},_.k("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.k("div",{class:"ytSuggestionComponentNewVideoText"},qHa))}}))),_.k("div",{class:"ytSuggestionComponentRightContainer"},_.k(_.Y,{cond:function(){return cv()&&Z().visualSuggestUrl!==void 0},
then:function(){var K6={};return _.k("div",{class:"ytSuggestionComponentThumbnailContainer"},_.k("img",{"aria-label":Qj2,class:_.W$("ytSuggestionComponentVisualSuggestThumbnail",(K6.ytSuggestionComponentCircularFrame=function(){return Bv()&&gxK(Z())&&Z().subtypes.includes(790)},K6.ytSuggestionComponentEntitySuggestThumbnail=function(){return Bv()&&gxK(Z())},K6)),
src:function(){return Z().visualSuggestUrl}}))}}),_.k(_.Y6,null,_.k(_.Ut,{when:function(){return cv()&&G8()}},function(){var K6={};
return _.k("button",{class:_.W$("ytSuggestionComponentRemoveLinkClearButton",(K6.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return DE()&&DE()===(S==null?void 0:S())},K6.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!RC()},K6)),
el:V,"on:mousedown":Re,"aria-label":Ny,id:function(){return DE()}},_.k(_.P$,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.k(_.Ut,{when:function(){return!(cv()&&Z().visualSuggestUrl!==void 0)&&G8()}},function(){var K6={};
return _.k("a",{class:_.W$("ytSuggestionComponentRemoveLink",(K6.ytSuggestionComponentRemoveLinkDark=Hl,K6.ytSuggestionComponentRemoveLinkSelected=function(){return DE()&&DE()===(S==null?void 0:S())},K6)),
el:G,"on:mousedown":Re,"aria-label":Ny,tabindex:0,role:"button",id:function(){return DE()}},Ny)}),_.k(_.Ut,{when:function(){return!1}},function(){return _.k("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":le,"on:mousedown":rT,role:"button","aria-label":RfE},_.k(_.P$,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jg");var bPn=_.xQ(function(){var a=_.$_(function(){OPd().inputMethodsTracker.add(3);var W,w=(W=_.LF("SBOX_SETTINGS"))==null?void 0:W.REQUEST_LANGUAGE;if(w)return _.MM("//www.google.com/textinputassistant/14/"+w+"_tia.js"),!1});
return _.k("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.k("button",{class:"ytdTextInputAssistantButton","on:click":a},_.k("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"kg");var sjn=function(){this.cache=new Map},uyi=function(a){for(var W=_.l(a.cache.entries()),w=W.next();!w.done;w=W.next()){var Z=_.l(w.value);
w=Z.next().value;Z=Z.next().value;Z.suggestions.some(function(N){return N.type===35})&&a.cache.delete(w)}};var CuI=_.u4.SEARCH,GW0=_.u4.SEARCH_CLEAR_LABEL,D$f=new _.yq("FAKE_SUGGEST_RESPONSE");_.Ct(_.xQ(function(a){function W(){p6||(p6=setTimeout(function(){K6()},1E3))}
function w(YR,OR,oE){if(YR.trim()){mi=YR;_.jm("REFINEMENTS_TUPLE",void 0);eV=!0;var iY;OR=T_E(rC,OR);var $R=(iY=a.searchEndpoint)==null?void 0:iY.call(a);iY=Bl.value.value;$R||($R=oJ0);var pv;(pv=_.A($R.commandMetadata,_.mm))!=null&&pv.url||(pv=Error("ll`"+JSON.stringify($R)),_.eJ(pv),$R=oJ0);pv=_.T5.unsafeClone($R);$R=_.Rg(_.A(pv.commandMetadata,_.mm).url,"search_query",YR);_.JK(location.href,"sv")==="1"&&(_.A(pv,_.Pu).params="EgOAAgE%3D",$R=_.Rg($R,"sv","1"));_.A(pv,_.Pu)&&(_.A(pv,_.Pu).query=YR);
$R=$R.replace(/%20/g,"+");_.A(pv.commandMetadata,_.mm).url=$R;oE=_.r("desktop_enable_entity_suggest")?{entityMid:oE}:{};_.K().resolve(_.zU).resolveCommand(pv,{form:{tempData:Object.assign({},{gs_l:OR,oq:iY!=null?iY:YR},oE)}});K6();Bl.value.value=YR;Bl.value.blur();rC.reset()}}
function Z(YR){return _.P(function(OR){return OR.return(new Promise(function(oE){var iY=new XMLHttpRequest;iY.open("GET",tvz(YR),!0);iY.withCredentials=!0;var $R=_.LF("SBOX_SETTINGS");($R==null?0:$R.SEND_VISITOR_DATA)&&iY.setRequestHeader("X-Goog-Visitor-Id",$R==null?void 0:$R.VISITOR_DATA);iY.onload=function(){oE(iY.responseText)};
iY.onerror=function(){_.jJ(Error("ml"));oE(null)};
setTimeout(function(){iY.abort()},1E4);
iY.send(null)}))})}
function N(YR){var OR,oE,iY,$R;return _.P(function(pv){switch(pv.nextAddress){case 1:return OR={credentials:"include",headers:N_X()},window.AbortController&&(oE=new AbortController,setTimeout(function(){oE.abort("ytsbox-suggest-timeout")},1E4),OR.signal=oE.signal),_.tq(pv,2),_.g(pv,fetch(tvz(YR),OR),4);
case 4:iY=pv.yieldResult.text();_.qY(pv,3);break;case 2:return $R=_.Pb(pv),$R!=="ytsbox-abort-last"&&$R!=="ytsbox-suggest-timeout"&&_.jJ($R),pv.return(null);case 3:return pv.return(iY)}})}
function B(YR){var OR,oE,iY;return _.P(function($R){switch($R.nextAddress){case 1:if(OR=_.K().resolve(_.Vv(D$f)))return $R.return(OR);oE=Date.now();W();return _.r("yt_searchbox_xhr")?_.g($R,Z(YR),5):_.g($R,N(YR),4);case 4:iY=$R.yieldResult;$R.jumpTo(3);break;case 5:iY=$R.yieldResult;case 3:if(iY){p6&&(clearTimeout(p6),p6=null);var pv=rC,Oi=oE,xb=YR.query.length===0;Oi=Date.now()-Oi;xb?pv.zeroPrefixRoundTripTime=Oi:(pv.JSC$18358_totalRoundTripTime+=Oi,pv.maxRoundTripTime=Math.max(pv.maxRoundTripTime,
Oi),xb=Math.floor(Oi/100),xb>=KMI.length?++pv.roundTripTimeHistogram[9]:++pv.roundTripTimeHistogram[KMI[xb]])}return $R.return(iY)}})}
function I(YR){var OR,oE,iY;return _.P(function($R){if($R.nextAddress==1)return(OR=W9.cache.get(ZPk(YR)))?$R.return(OR):_.g($R,B(YR),2);oE=$R.yieldResult;if(oE===null)return $R.return(null);iY=new oxX(oE);YR.query.length===0&&iY.suggestions.length===0||W9.cache.set(ZPk(YR),iY);return $R.return(iY)})}
function X(YR){var OR,oE;return _.P(function(iY){if(iY.nextAddress==1){DE=!1;var $R=mi;$R=_.v0D()==="search"?(_.JK(location.href,"search_query")||_.JK(location.href,"q"))===$R:!1;OR=new wkK(YR,$R?mi:null);return _.g(iY,I(OR),2)}oE=iY.yieldResult;if(oE===null)return iY.return();OR.query.length===0&&(rC.zeroPrefixSuggestionCount=oE.suggestions.length);if(OR.id<=VF)return rC.outOfSyncResponseCount++,iY.return();if(document.activeElement!==Bl.value)return iY.return();VF=OR.id;var pv=rC,Oi=oE.rawResponse[2]||
{};pv.experimentTriggeredBeforeFinal||(pv.experimentTriggeredBeforeFinal=pv.experimentTriggeredFinal);pv.experimentTriggeredFinal=!!Oi.e;rC.updateSuggestions(oE.suggestions);F(-1);vl([]);oE.suggestions!==p()&&$q(oE.suggestions.length);h(oE.suggestions);Am(oE.suggestions.length>0&&oE.suggestions[0].type===33);Pl&&(Pl.hidden=oE.suggestions.length===0,Bv()?(Pl.style.minWidth="",pv=Pl.style,Oi=($R=p()[0])==null?void 0:$R.ignoredPrefix,pv.marginLeft=(Oi?Math.min(Oi.length*6,JL.value.offsetWidth):0).toString()+
"px"):(Pl.style.minWidth=JL.value.offsetWidth+"px",Pl.style.marginLeft="0"),zH());_.Xd(iY)})}
function v(){if(!eV)return!1;var YR=_.LF("REFINEMENTS_TUPLE");return YR?(YR=YR[1].map(function(OR,oE){return new Xk0([OR,0,[71]],Bl.value.value,oE)}),p()!==YR&&$q(YR.length),vl([]),h(YR),rC.updateSuggestions(YR),eV=!1,Pl.hidden=YR.length===0,DE=YR.length>0,!0):!1}
function U(){var YR=Bl.value.value;(typeof YR==="string"||YR instanceof String)&&YR!==""?d(!0):d(!1)}
function O(){if(_.v0D()==="search"){var YR=window.location.href;try{var OR=_.JK(YR,"search_query")||_.JK(YR,"q")||""}catch(oE){OR=""}OR&&(Bl.value.value=OR,d(!0))}}
var S=_.l(_.$1([],void 0,"kGFAjf")),T=S.next().value;S=S.next().value;var p=T,h=S;T=_.l(_.$1(-1,void 0,"mLGL9e"));var L=T.next().value,F=T.next().value;T=_.l(_.$1(-1,void 0,"u2rYdc"));var x=T.next().value,G=T.next().value;T=_.l(_.$1(!1,void 0,"W9DFC"));var V=T.next().value,d=T.next().value;T=_.l(_.$1(!1,void 0,"Ip4dNc"));var ZD=T.next().value,aC=T.next().value;S=_.l(_.$1(!1,void 0,"ZNKSQb"));T=S.next().value;S=S.next().value;var Bv=T,Am=S;S=_.l(_.$1(!1,void 0,"JBrGLd"));T=S.next().value;var e9=S.next().value;
S=_.l(_.$1(!1,void 0,"P2pD6e"));var cv=S.next().value,C7=S.next().value;S=_.l(_.$1(1,void 0,"SjP20c"));var RC=S.next().value,G8=S.next().value;S=_.l(_.$1([],void 0,"h4dRaf"));var QF=S.next().value,vl=S.next().value;S=_.l(_.$1(!1,void 0,"TUTzaf"));var Hl=S.next().value,SV=S.next().value;S=_.r("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Ny=_.D8(),Bl=_.D8(),JL=_.D8(),Pl,W9=new sjn,rC=OPd(),le=_.K().resolve(_.Vv(_.Lt)),
rT=function(){var YR;return((YR=a.forceDarkMode)==null?void 0:YR.call(a))||!(le==null||!le())},Re=function(){return _.r("desktop_enable_scrollable_suggestions_panel")},u9="i"+Mvn++,eV=!1,DE=!1,mi="",p6=null,VF=-1,K6=function(){vl([]);
h([]);Am(!1);Pl&&(Pl.hidden=!0);p6&&(clearTimeout(p6),p6=null);F(-1)},P2=function(YR,OR){YR.preventDefault();
SV(!0);Pl&&(Pl.hidden=!1);var oE=L();YR=p();var iY=QF();OR=Bif(OR);oE+=OR;for(oE>=YR.length?oE=-1:oE<-1&&(oE=YR.length-1);oE!==-1&&(iY.includes(oE)||oE>=YR.length||oE<0);)oE+=OR,oE>=YR.length&&(oE=-1);F(oE);L()>=0&&(Bl.value.value=p()[L()].text,G(0),U(),YR=L(),iY=x(),(iY=document.getElementById(ch[YR][iY]))&&Re()&&(YR===p().length-1?Pl.scrollTop=Pl.scrollHeight:iY.scrollIntoView({block:"nearest",inline:"start"})))},AL=_.$_(function(YR){if(!(YR.relatedTarget instanceof Element&&YR.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){aC(!0);
var OR;(OR=a.focusCallback)==null||OR.call(a,!0);v()||(DE?Pl.hidden=!1:(_.E$(Ny.value,"yt-autonav-pause-focus",{}),X(YR.target.value)))}}),KK=_.$_(function(YR){if(!(YR.relatedTarget instanceof Element&&YR.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){aC(!1);
var OR;(OR=a.focusCallback)==null||OR.call(a,!1);Pl.scrollTop=0;Pl.hidden=!0;_.E$(Ny.value,"yt-autonav-pause-blur",{})}}),P9=function(YR){YR=Bif(YR);
var OR;((OR=ch[L()])==null?0:OR[x()+YR])&&G(x()+YR)},ox=_.$_(function(YR){var OR=YR.target;
switch(YR.keyCode){case 13:YR.preventDefault();var oE;if((oE=ch[L()])==null?0:oE[x()]){var iY;(iY=document.getElementById(ch[L()][x()]))==null||iY.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}YR=YR.shiftKey?4:3;oE=rC;iY=L();oE.selectedSuggestionIndex=iY;w(OR.value,YR);break;case 27:Pl&&(Pl.hidden=!0);break;case 40:P2(YR,40);break;case 38:P2(YR,38);break;case 39:P9(39);break;case 37:P9(37);break;case 229:rC.inputMethodsTracker.add(4);break;default:rC.inputMethodsTracker.add(1),
SHi(rC)}return!1}),CK=_.$_(function(YR){X(YR.target.value);
U();Re()&&Pl&&(Pl.scrollTop=0);return!1}),Y8=_.$_(function(){rC.inputMethodsTracker.add(2);
SHi(rC);return!1});
_.pF(function(){if(Pl){rC.reset();if(window.ResizeObserver){var YR=new ResizeObserver(function(){Bv()||(Pl.style.minWidth=JL.value.offsetWidth+"px")});
YR.observe(JL.value);(new ResizeObserver(function(){zH()})).observe(Pl);
_.Ao(function(){YR.disconnect()})}O();
window.addEventListener("yt-navigate-finish",O);window.addEventListener("yt-focus-searchbox",function(){Bl.value.focus()});
var OR;e9((OR=_.LF("SBOX_SETTINGS"))==null?void 0:OR.HAS_ON_SCREEN_KEYBOARD)}else _.eJ(new _.Uw("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var hl=_.$_(function(YR){YR.preventDefault();w(Bl.value.value,12);return!1}),bA=_.$_(function(YR){YR.preventDefault();
var OR,oE;(OR=Bl)==null||(oE=OR.value)==null||oE.focus();var iY,$R;((iY=Bl)==null?void 0:($R=iY.value)==null?void 0:$R.value)!==""&&(Bl.value.value="",Bl.value.dispatchEvent(new Event("input")));return!1}),i9=_.$_(function(){var YR=t2X(Bl.value.value,p().filter(function(OR){return OR.type!==35}).map(function(OR){return{label:OR.text}}));
_.aV(Ny.value,"yt-open-popup-action",[{openPopupAction:YR},document.body]);return!1}),fK=_.$_(function(){Bl.value.focus();
return!1}),XL=function(YR,OR,oE,iY,$R){rC.selectedSuggestionIndex=oE;
w(OR,$R?3:1,iY)},Aw=function(YR){Bl.value.value=YR;
Bl.value.dispatchEvent(new Event("input"));rC.inputMethodsTracker.add(5);SHi(rC,!0)},ch=[[]],Ui=function(YR){var OR="searchbox-suggestion"+_.Lw(_.Jy);
ch[YR].push(OR);return OR},$q=function(YR){if(p()){ch=[[]];
for(var OR=0;OR<YR;OR++)ch.push([])}},zH=function(){if(Re()){var YR=Pl,OR=YR.scrollTop;
YR=YR.scrollHeight-YR.clientHeight;C7(OR>=YR);OR=Math.abs(YR-OR);OR<=40?G8(1-(40-OR)/40):G8(1)}},pM=function(){return"opacity: "+RC()*100+"%"},T8=_.$_(function(){zH();
return!1}),Jm=_.$_(function(){SV(!1);
return!1}),sS,kR={},tz={},L_={},gf={};
return _.k("yt-searchbox",{class:_.W$("ytSearchboxComponentHost",(kR.ytSearchboxComponentMweb=!1,kR.ytSearchboxComponentDesktop=!0,kR["yt-searchbox-filled-query"]=function(){return V()},kR["ytd-masthead"]=function(){return!ZD()},kR.ytSearchboxComponentHostDark=rT,kR)),
role:"search",el:Ny,"client-ve-type":10349},_.k("div",{el:JL,"on:click":fK,class:_.W$("ytSearchboxComponentInputBox",(tz.ytSearchboxComponentInputBoxDark=rT,tz.ytSearchboxComponentInputBoxHasFocus=ZD,tz))},_.k("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":hl},_.k(_.Y,{cond:ZD,then:function(){return _.k("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.k(_.P$,{icon:"SEARCH"}))}}),_.k("input",{el:Bl,
class:_.W$("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":u9,"aria-expanded":!((sS=Pl)==null?0:sS.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":KK,"on:focus":AL,"on:input":CK,"on:keydown":ox,"on:paste":Y8,placeholder:a.placeholderText,"aria-activedescendant":function(){var YR;return(YR=ch[L()])==null?void 0:YR[x()]},
"aria-autocomplete":"list",role:"combobox"})),_.k(_.Y,{cond:T,then:function(){return _.k("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.k(bPn,null))}}),_.k(_.Y,{cond:V,
then:function(){return _.k("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.k("button",{class:"ytSearchboxComponentClearButton","on:click":bA,"aria-label":a.clearButtonAriaLabel||GW0},_.k(_.P$,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.k(_.g2,{model:{}})))}})),_.k("button",{class:_.W$("ytSearchboxComponentSearchButton",(L_.ytSearchboxComponentSearchButtonDark=rT,L_)),
"on:click":hl,"aria-label":CuI,title:a.placeholderText},_.k(_.P$,{icon:"SEARCH"})),_.k(_.Y,{cond:function(){if(Ox0()&&_.r("mweb_voice_search")&&a.voiceSearchButton)return a.voiceSearchButton()},
then:function(YR){var OR={};return _.k("div",{class:_.W$("ytSearchboxComponentVoiceSearchWrapper",(OR.ytSearchboxComponentHideVoiceSearchButton=function(){return V()},OR))},_.k(_.Ax,{data:YR},{buttonRenderer:function(oE){return _.k(_.F0,{data:oE.data,
onButtonClickCallback:function(){}})}}))}}),_.k("div",{el:_.xJ(function(YR){return void(Pl=YR)}),
id:u9,class:_.W$("ytSearchboxComponentSuggestionsContainer",(gf.ytSearchboxComponentSuggestionsContainerDark=rT,gf["yt-searchbox-suggestions-container"]=!1,gf.ytSearchboxComponentSuggestionsContainerScrollable=Re(),gf.ytSearchboxComponentSuggestionsContainerAnimated=S,gf)),"on:scroll":T8,"on:mousemove":Jm,role:"listbox",hidden:!0},_.k(_.k6,{each:p},function(YR,OR){return _.k(x$2,{suggestion:YR,isHighlighted:function(){return OR()===L()},
onClickCallback:XL,onHoverUpdateCallback:function(oE){if(_.r("desktop_enable_single_suggestion_highlight")){var iY=OR();oE&&(G(0),F(iY))}},
onRemoveCallback:function(oE){uyi(W9);oE===void 0||oE<0||QF().includes(oE)||vl([].concat(_.K8(QF()),[oE]))},
labels:a.labels,queryBuilderFunction:Aw,suggestionIndex:OR,generateUniqueId:Ui,highlightedId:function(){var oE;return(oE=ch[L()])==null?void 0:oE[x()]},
useScrollMargin:Re(),isKeyboardMode:Hl})}),_.k(_.Y,{cond:function(){return!Bv()&&p().find(function(YR){return YR.type!==35})&&_.r("searchbox_reporting")},
then:function(){return _.k("button",{class:"ytSearchboxComponentReportButton","on:mousedown":i9},_.P_("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.k(_.Y,{cond:function(){return!cv()&&Re()},
then:function(){return _.k("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.k("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:pM}))}})))},"lg"),"yt-searchbox",{props:{searchEndpoint:_.qR,
placeholderText:_.qR,labels:_.qR,voiceSearchButton:_.qR,focusCallback:_.ux,clearButtonAriaLabel:_.qR,forceDarkMode:_.qR}});var fi=function(){var a=_.u.apply(this,arguments)||this;a.menuButtonTargetId="topbar-guide-menu";a.narrow=!1;a.menuStrings={BACK_ALT_LABEL:_.P_("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.P_("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.P_("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.P_("SBOX_PLACEHOLDER",void 0,"Search")};a.pageDarkTheme=document.documentElement.hasAttribute("dark");a.watchPageScrollTop=0;a.theater=!1;a.fullscreen=!1;a.desktopUnifiedSearchPanelMode=_.r("desktop_enable_unified_search_panel");
a.cinematicTheaterMode=_.r("web_cinematic_theater_mode");a.ytSearchboxFocused=!1;a.searchboxLabels=_.LF("SBOX_LABELS");a.topbarIsAboveChipbar=!1;a.isDarkThemeForced=!1;a.areGhostCardsHidden=!1;a.guideKeyboardToggle=!1;a.voiceSearchManager=$va();a.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};a.setYtSearchboxFocused=function(W){a.ytSearchboxFocused=W};
return a};
_.c(fi,_.u);_.t=fi.prototype;_.t.computeSimpleText=function(a){return _.sd(a)};
_.t.onDarkChanged=function(){for(var a=_.l(this.buttons||[]),W=a.next();!W.done;W=a.next())W.value.isOverlay=!!this.dark;a=_.l(this.buttonRenderers||[]);for(W=a.next();!W.done;W=a.next())W.value.overrides=this.computeButtonOverride()};
_.t.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var a=_.MJ(_.F4(),"aa");_.mh(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"))&&(_.r("polymer_on_demand_shady_dom")?a.setAttribute("slot","masthead-logo-old"):_.Xh(a)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.yV(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.yV(this,this.onSetTheaterModeEnabled))};
_.t.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.yV(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.yV(this,this.onSetTheaterModeEnabled))};
_.t.dataChanged=function(){var a=this.data;a&&(this.voiceEnabled=a.voiceSearchButton?$va().isSupported():!1,_.V8J(_.NR(),this.menuButtonTargetId,this.guideButton),a.onReceivedActions&&a.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.N1(this.hostElement,a.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&a&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.mh(this.hostElement,"dark",!1),_.mh(this.hostElement,"theater",!1),
(a=this.hostElement.querySelector("#masthead-logo"))&&(_.r("polymer_on_demand_shady_dom")?a.setAttribute("slot","masthead-logo-old"):_.Xh(a))))};
_.t.computeCenterHidden=function(){var a;return this.data&&!((a=this.data.searchbox)==null?0:a.fusionSearchboxRenderer)};
_.t.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.mh(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.t.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.t.onWatchScroll=function(a){this.watchPageScrollTop=a.detail||0;this.updateMastheadBackgroundOpacity()};
_.t.onFullscreenChangeAction=function(a){a||(this.watchPageScrollTop=0);this.fullscreen=a;this.updateMastheadBackgroundOpacity()};
_.t.onSetTheaterModeEnabled=function(a){this.theater=a.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.t.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.t.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.t.setBackgroundOpacity=function(a){a=this.calculateBackgroundOpacity(a);this.background.style.opacity=""+a};
_.t.calculateBackgroundOpacity=function(a){var W=this.theater&&this.cinematicTheaterMode?.6:0,w=this.hostElement.clientHeight/2;return Math.min(Math.max(a,0),w)/w*(1-W)+W};
_.t.shouldShowCinematicMastHead=function(){var a=_.r("kevlar_watch_grid")&&!_.r("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(a||this.pageDarkTheme)};
_.t.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.t.focusGuide=function(){this.guideButton.focus()};
_.t.onGuideToggleTap=function(){_.E$(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.t.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.t.onGuideToggleHover=function(){_.E$(this.hostElement,"yt-guide-hover")};
_.t.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.t.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.t.closeOnOutsideClickCondition=function(a){for(a=_.qj(a);a[0];){var W=a.shift();if(W instanceof Element&&W.id==="kbd")return!1}return!0};
_.t.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.t.pausePlayer=function(){var a;(a=_.fA())==null||a.pause();this.pauseMiniplayer()};
_.t.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var a;(a=_.K().resolve(_.bV).getPlayerElement())==null||a.pause()}};
_.t.isMiniplayerActive=function(){return _.K().resolve(_.bV).isMiniplayerActive()};
_.t.updateNarrowFromBinding=function(a){this.narrow=a.detail.value};
_.t.onYtSendFeedbackAction=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.dU.Object.defineProperties(fi.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("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}}}});
fi.prototype.narrowChanged=fi.prototype.narrowChanged;fi.prototype.onWatchPageChange=fi.prototype.onWatchPageChange;fi.prototype.onRendererStamperFinished=fi.prototype.onRendererStamperFinished;fi.prototype.dataChanged=fi.prototype.dataChanged;fi.prototype.onDarkChanged=fi.prototype.onDarkChanged;_.f([_.R(_.eG),_.z("design:type",Object)],fi.prototype,"ironResizableBehavior",void 0);_.f([_.R(_.OYk),_.z("design:type",Object)],fi.prototype,"ytdExpandableInputBehavior",void 0);
_.f([_.R(_.FG.YtdGuideStateAwareBehavior),_.z("design:type",Object)],fi.prototype,"ytdGuideStateAwareBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],fi.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],fi.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.ij),_.z("design:type",Object)],fi.prototype,"ytdReduxBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],fi.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],fi.prototype,"narrow",void 0);_.f([_.b(),_.z("design:type",Object)],fi.prototype,"logoType",void 0);_.f([_.b(),_.z("design:type",Boolean)],fi.prototype,"voiceEnabled",void 0);
_.f([_.b(),_.z("design:type",Object)],fi.prototype,"menuStrings",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],fi.prototype,"dark",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],fi.prototype,"pageDarkTheme",void 0);_.f([_.b(),_.z("design:type",Object)],fi.prototype,"watchPageScrollTop",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.i8}),_.z("design:type",Boolean)],fi.prototype,"isWatchPage",void 0);
_.f([_.b({reflectToAttribute:!0,selector:_.ncF}),_.z("design:type",Boolean)],fi.prototype,"isShortsPage",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],fi.prototype,"theater",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],fi.prototype,"fullscreen",void 0);_.f([_.b({reflectToAttribute:!0,selector:_.MTe}),_.z("design:type",String)],fi.prototype,"frostedGlassMode",void 0);_.f([_.b(),_.z("design:type",Object)],fi.prototype,"ytSearchboxFocused",void 0);
_.f([_.ZC("#buttons > *"),_.z("design:type",Array)],fi.prototype,"buttons",void 0);_.f([_.ZC("ytd-button-renderer"),_.z("design:type",Array)],fi.prototype,"buttonRenderers",void 0);_.f([_.w$("#background"),_.z("design:type",HTMLDivElement)],fi.prototype,"background",void 0);_.f([_.w$("#guide-button"),_.z("design:type",Object)],fi.prototype,"guideButton",void 0);_.f([_.w$("#logo"),_.z("design:type",Object)],fi.prototype,"logo",void 0);
_.f([_.b({computed:"computeButtonOverride(dark)"}),_.z("design:type",Object)],fi.prototype,"buttonOverrides",void 0);_.f([_.lO("dark"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fi.prototype,"onDarkChanged",null);_.f([_.b({value:function(){return this.onVoiceTap.bind(this)}}),
_.z("design:type",Function)],fi.prototype,"boundOnTapVoiceButton",void 0);_.f([_.b(),_.z("design:type",Object)],fi.prototype,"topbarIsAboveChipbar",void 0);_.f([_.b(),_.z("design:type",String),_.z("design:paramtypes",[])],fi.prototype,"guideIcon",null);_.f([_.Q("voiceEnabled"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],fi.prototype,"shouldShowVoiceSearchButton",null);_.f([_.Q("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],fi.prototype,"voiceSearchButton",null);
_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fi.prototype,"dataChanged",null);_.f([_.E6("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fi.prototype,"onRendererStamperFinished",null);_.f([_.lO("isWatchPage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fi.prototype,"onWatchPageChange",null);
_.f([_.lO("narrow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fi.prototype,"narrowChanged",null);fi=_.f([_.C({disableElementRegistration:!0,is:"ytd-masthead"})],fi);
_.D(fi,"ytd-masthead",function(){if(JRa!==void 0)return JRa;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return JRa=a},{mode:_.Vn("kevlar_poly_si_batch_j036")?1:2});var fm9;var d$n={},m$n={},VvK={},zfz={},HP0=(zfz.OFFLINE=(d$n["publicytnetworkstatus-online"]="BACK_ONLINE",d$n),zfz.ONLINE=(m$n["publicytnetworkstatus-offline"]="OFFLINE",m$n),zfz.BACK_ONLINE=(VvK["publicytnetworkstatus-offline"]="OFFLINE",VvK.TIMER_TRIGGER="ONLINE",VvK),zfz),dB=function(){var a=_.u.apply(this,arguments)||this;a.currentState="ONLINE";a.scheduledJobId=0;a.bannerString="";a.bannerVe=null;a.networkStatusManagerInstance=new _.xm;return a};
_.c(dB,_.u);_.t=dB.prototype;_.t.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")})};
_.t.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")})};
_.t.enterState=function(a){var W=this;this.scheduledJobId&&_.hF.cancelJob(this.scheduledJobId);a==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):a==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.P_("NO_INTERNET_CONNECTION",void 0,"No internet connection")):a==="BACK_ONLINE"&&(this.bannerString=_.P_("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.TP(_.hF,function(){W.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=a};
_.t.stateChangeHandler=function(a){(a=HP0[this.currentState][a])&&this.enterState(a)};
_.t.logVisibility=function(a){var W=_.nS();this.createBannerVe(a);W&&this.bannerVe&&(a?_.Qw(W,[this.bannerVe]):_.x7(W,[this.bannerVe]))};
_.t.createBannerVe=function(a){!this.bannerVe&&a&&(this.bannerVe=_.Ob(37929),_.$V(_.$J(),this.bannerVe))};
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",String)],dB.prototype,"currentState",void 0);_.f([_.b(),_.z("design:type",Object)],dB.prototype,"scheduledJobId",void 0);_.f([_.b(),_.z("design:type",Object)],dB.prototype,"bannerString",void 0);dB=_.f([_.C({disableElementRegistration:!0,is:"ytd-network-status-banner"})],dB);
_.D(dB,"ytd-network-status-banner",function(){if(fm9!==void 0)return fm9;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return fm9=
a},{mode:1});var yRa;var mL=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};a.hidden=!0;a.frostedGlass=_.r("web_frosted_glass");return a};
_.c(mL,_.u);mL.prototype.computeHidden=function(a){return a&&a.status?!1:!0};
mL.prototype.handleUpdatePermissionRoleCommand=function(a){if(a=_.A(a,_.yAE))if(a=_.A(a.renderer,_.HUL))this.data=a};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],mL.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],mL.prototype,"componentBehavior",void 0);_.f([_.b({value:!0,computed:"computeHidden(data)"}),_.z("design:type",Object)],mL.prototype,"hidden",void 0);_.f([_.b(),_.z("design:type",Object)],mL.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],mL.prototype,"frostedGlass",void 0);
mL=_.f([_.C({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],mL);
_.D(mL,"ytd-permission-role-bottom-bar-renderer",function(){if(yRa!==void 0)return yRa;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);return yRa=a},{mode:1});var Exz;var aI2;var l3d={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Vm=function(){return _.u.apply(this,arguments)||this};
_.c(Vm,_.u);_.t=Vm.prototype;_.t.attached=function(){this.JSC$18460_scroller&&(this.JSC$18460_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18460_scroller.attached&&typeof this.JSC$18460_scroller.attached==="function"&&this.JSC$18460_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(w){w.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var a=_.M(this.hostElement);a.querySelector("tp-yt-paper-radio-group").selected="";var W=a.querySelector("#reason-text");W&&(W.value="");a.querySelector("#description-text").value=""}};
_.t.canSubmit=function(a,W){_.E$(this.hostElement,"yt-invalidate-popup-tabbables");return!(a&&W)};
_.t.onCancel=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.t.onSubmit=function(){var a=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(B){return B.active}).map(function(B){return B.innerText.trim()}),W=this.hostElement.querySelector("tp-yt-paper-radio-group"),w=W.selectedItem,Z=w.name;
w=w.innerText.trim();var N=W.querySelector("#reason-text");W=void 0;N&&(W=N.value);(N=this.descriptionText.value)&&(N=N.trim());I3f(this.data.searchQuery,a,Z,w,N,W);_.aV(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.t.sendFormSubmitToast=function(){var a=_.fx(_.P_("SBOX_INAPPROPRIATE_TOAST"));_.aV(this.hostElement,"yt-open-popup-action",[a,this])};
_.t.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(a){return a.active})};
_.t.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Vm.prototype.onIronSelect=Vm.prototype.onIronSelect;Vm.prototype.onIronChange=Vm.prototype.onIronChange;Vm.prototype.dataChanged=Vm.prototype.dataChanged;_.f([_.b(),_.z("design:type",Object)],Vm.prototype,"data",void 0);_.f([_.b({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.z("design:type",Boolean)],Vm.prototype,"submitDisabled",void 0);_.f([_.b(),_.z("design:type",Boolean)],Vm.prototype,"suggestionSelected",void 0);
_.f([_.b(),_.z("design:type",Boolean)],Vm.prototype,"catagorySelected",void 0);_.f([_.w$("#scroller"),_.z("design:type",Object)],Vm.prototype,"JSC$18460_scroller",void 0);_.f([_.w$("#description-text"),_.z("design:type",Object)],Vm.prototype,"descriptionText",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vm.prototype,"dataChanged",null);
_.f([_.E6("iron-change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vm.prototype,"onIronChange",null);_.f([_.E6("iron-select"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vm.prototype,"onIronSelect",null);Vm=_.f([_.C({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Vm);
_.D(Vm,"ytd-search-suggestion-report-dialog",function(){if(aI2!==void 0)return aI2;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return aI2=a},{mode:1});var zy=function(a){var W=a.openPopupAction;var w=a.target;var Z=a.container;var N=a.popupContainerConfig;var B=a.getElement;a=a.removeWhenClosed===void 0?!1:a.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=W;this.target=w;this.container=Z;this.popupContainerConfig=N;this.getElement=B;this.JSC$18466_popupConfig=this.popupContainerConfig.JSC$17583_popupConfig[this.openPopupAction.popupType];this.rendererName=(W=this.getName())?_.G$F(W,Q7d(this.popupContainerConfig,
W)):"";_.r("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=a);this.createPopup()};
zy.prototype.updatePopup=function(a){this.openPopupAction=a;this.JSC$18466_popupConfig=this.popupContainerConfig.JSC$17583_popupConfig[this.openPopupAction.popupType];W0a(this);_.r("reorder_popup_updates_killswitch")&&wt0(this);_.r("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var tYz=function(a,W,w){a.target=w;var Z;w=((Z=a.target.polymerController)!=null?Z:a.target).popupPositionTarget||a.target;a.JSC$18466_popupConfig.targetContainer&&(w=a.container);a.popup.positionTarget=w;a.popupContent.positionTarget=w;_.r("reorder_popup_updates_killswitch")||wt0(a);a.JSC$18466_popupConfig.forceFocus&&(a.popupContent.style.outline="none");a.popupContent.tabIndex=-1;a.JSC$18466_popupConfig.narrowProperties&&(a.popup.style.position="static");a.JSC$18466_popupConfig.preventAutonav&&
a.popup.setAttribute("prevent-autonav",!0);a.JSC$18466_popupConfig.forceCloseOnOutsideClick&&a.popup.setAttribute("force-close-on-outside-click",!0);ZT0(a,W);Nx9(a,a.JSC$18466_popupConfig.styles);a.isRtl()&&Nx9(a,a.JSC$18466_popupConfig.rtlStyles);if(!a.openPopupAction.shouldStopParentSignal){var N;W=(N=a.target.polymerController)!=null?N:a.target;(a.popupContent.startForwardingEvents||a.popupContainerConfig.forwardingEnabledPopups.has(a.rendererName))&&W.parentComponent!==a.popupContent&&a.popupContent!==
a.target&&a.target!==document.body&&(a.popupContent.startForwardingEvents?a.popupContent.startForwardingEvents(a.popupContainerConfig.forwardedEvents,a.target):(a.JSC$18466_eventForwarder||(a.JSC$18466_eventForwarder=new _.oI(a.popupContent)),a.JSC$18466_eventForwarder.start(a.popupContainerConfig.forwardedEvents,a.target)))}};
zy.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var ZT0=function(a,W){$Cz(a,W&&a.JSC$18466_popupConfig.narrowProperties?a.JSC$18466_popupConfig.narrowProperties:a.JSC$18466_popupConfig.properties);a.isRtl()&&$Cz(a,a.JSC$18466_popupConfig.rtlProperties);wt0(a)};
zy.prototype.createPopup=function(){var a=this.JSC$18466_popupConfig.component;if(this.popupContent=Bx0(this,this.rendererName)){if(a){this.popup=Bx0(this,a);var W=this.popupContent;_.r("web_enable_wrapper_for_cow_component_in_popup")&&(W=document.createElement("div"),W.appendChild(this.popupContent));_.r("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18466_popupConfig.slotName&&W.setAttribute("slot",this.JSC$18466_popupConfig.slotName);a=this.popup;var w=this.container.tagName.toLowerCase(),
Z=_.xo(W);_.SYS(_.s6(a),_.GX(W,w,Z));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.r("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.M(this.container).appendChild(this.popup)}};
var W0a=function(a){var W,w,Z=(W=a.openPopupAction.accessibilityData)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label;Z&&(a.popup.ariaLabel=Z);var N;((N=a.popupContent.polymerController)!=null?N:a.popupContent).data=(0,_.T5.unsafeClone)(a.openPopupAction.popup[a.getName()]);a.popupContent.duration=lI0(a);a.popupContent.positionType=a.openPopupAction.position;var B=a.openPopupAction.properties;B&&Object.keys(B).forEach(function(I){a.popupContent[I]=B[I]})},$Cz=function(a,W){if(W)for(var w=
_.l(Object.keys(W)),Z=w.next();!Z.done;Z=w.next())Z=Z.value,a.popup[Z]=W[Z]},wt0=function(a){if(a.openPopupAction.position){var W=a.JSC$18466_popupConfig.positionalProperties&&a.JSC$18466_popupConfig.positionalProperties[a.openPopupAction.position],w=a.JSC$18466_popupConfig.rtlPositionalProperties&&a.JSC$18466_popupConfig.rtlPositionalProperties[a.openPopupAction.position];
W=a.isRtl()&&w?w:W;W.shiftedHorizontalOffset&&(w=a.popup.style.display,a.popup.style.display="block",a.popupContent&&a.popup.positionTarget&&a.popupContent.clientWidth>a.popup.positionTarget.clientWidth&&(W.horizontalOffset=a.popup.positionTarget.clientWidth/2-W.shiftedHorizontalOffset),a.popup.style.display=w);$Cz(a,W)}},Nx9=function(a,W){if(W)for(var w=_.l(Object.keys(W)),Z=w.next();!Z.done;Z=w.next())Z=Z.value,a.popup.style[Z]=W[Z]};
zy.prototype.getName=function(){return _.em(this.openPopupAction.popup,"renderer")||_.em(this.openPopupAction.popup,"dialog")||_.em(this.openPopupAction.popup,"model")||void 0};
var lI0=function(a){a=a.openPopupAction.durationHintMs;return a===0?a:Math.max(4E3,a||4E3)};
zy.prototype.isRtl=function(){return _.LF("HTML_DIR")==="rtl"};
var Bx0=function(a,W){a=a.getElement(W,a.target);a==null&&_.jJ(new _.Uw("popup getElement returned null",W));return a};var II0={};
II0.YtPopupContainerBehavior=[_.e7.YtComponentBehavior,_.d4.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},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.HG(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.y3(this.hostElement)},
closePopup:function(a){var W=this.createCacheKey(void 0,a);this.popups_[W]&&this.handleClosePopupAction_(void 0,a)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.hF.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.hF.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 W=this.popups_[a];if(W.popup.scrollAction==="refit"){var w=W.popup.positionTarget.getBoundingClientRect(),Z=W.popup;w=w.top;var N=W;if(!N.naturalHeight){N.popup.hidden=!1;N.popup.style.position="fixed";N.popup.style.top="0px";N.popup.style.left="0px";var B=N.popup.getBoundingClientRect();N.naturalHeight=B.bottom-B.top;N.popup.refit()}Z.hidden=!(w>=N.naturalHeight+60);W.popupContent.clientHeight===0&&W.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(a){this.popupContainerConfig=a},
handleOpenPopupAction:function(a,W){var w=a.openPopupAction,Z=_.K().resolve(_.Vv(_.cLi))&&w.popupType==="TOAST";Z&&!w.uniqueId&&(w.uniqueId=_.h$());if(!_.r("popup_container_parent_target_killswitch")){var N;W=(N=this.getParentTarget(W))!=null?N:W}var B=this.ensurePopup_(w,W);return new _.PZ(function(I){B.then(function(X){if(!X)return I();this.maybeCreateNarrowMediaQuery_();var v=this.createCacheKey(X.rendererName,X.openPopupAction.uniqueId);if(w.showOncePerUniqueId){if(this.shownPopupKeys_.has(v))return I();
this.shownPopupKeys_.add(v)}v=this.popups_[v];var U=!(!v||!v.openPopupAction.beReused);U=!!w.reusePopup||U;if(X.popup.opened&&!U){Z&&!X.openPopupAction.replacePopup||this.handleClosePopupAction_(X.rendererName,X.openPopupAction.uniqueId);U=w.popupType==="DIALOG"&&!_.r("popup_container_dialog_reopen_killswitch");if(!Z&&!U&&v&&v.target==W&&!X.openPopupAction.replacePopup)return I();_.DW(X.popup,function(){this.completeOpenPopupAction_(w,W,X);I()}.bind(this))}else X.popup.opened?X.updatePopup(w):this.completeOpenPopupAction_(w,
W,X),I()}.bind(this))}.bind(this))},
getParentTarget:function(a){if(a&&a instanceof HTMLElement)for(var W=_.l(Object.entries(this.popups_)),w=W.next();!w.done;w=W.next())if(w=_.l(w.value),w.next(),w=w.next().value,w.popup.tagName==="TP-YT-IRON-DROPDOWN"&&w.popup.opened&&a.closest(w.rendererName))return w.target},
completeOpenPopupAction_:function(a,W,w){_.r("reorder_popup_updates_killswitch")?(tYz(w,this.narrowMediaQuery_.queryMatches,W),w.updatePopup(a)):(w.updatePopup(a),tYz(w,this.narrowMediaQuery_.queryMatches,W));a=w.popup;a.addEventListener("iron-overlay-opened",_.yV(this,this.onPopupIronOverlayOpened_));a.addEventListener("iron-overlay-closed",_.yV(this,this.onPopupIronOverlayClosed_));a.addEventListener("iron-overlay-canceled",_.yV(this,this.onPopupIronOverlayCanceled_));a.addEventListener("yt-refit",
_.yV(this,this.refitPopup_));a.addEventListener("yt-invalidate-popup-tabbables",_.yV(this,this.handleInvalidatePopupTabbables_));a.open()},
getPopupDurationMs_:function(a){return a.durationHintMs===0?a.durationHintMs:Math.max(4E3,a.durationHintMs||4E3)},
handleClosePopupAction_:function(a,W){var w=_.r("web_popup_cache_key_killswitch")||!!W;if(a||w){var Z=this.createCacheKey(a,W);a=(a=this.popups_[Z])&&a.popup}else a=_.yx$(_.u3);if(a&&a.close){if(W=_.K().resolve(_.Vv(_.S4)))a.restoreFocusOnClose=W.isKeyBoardInUse();a.close();this.removePopup_(a,Z)}},
handleClosePopupCommand_:function(a){a.closePopupCommand&&a.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,a.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(a){var W={},w;for(w in this.popups_)if(W={key$jscomp$1162:W.key$jscomp$1162},W.key$jscomp$1162=w,!a||!a.some(function(B){return function(I){return I==B.key$jscomp$1162}}(W))){var Z=this.popups_[W.key$jscomp$1162],N=Z.popup;
_.K().resolve(_.Vv(_.cLi))&&Z.openPopupAction.popupType==="TOAST"||(N&&N.close&&N.close(),this.removePopup_(N,W.key$jscomp$1162))}},
handleClosePopupsAction_:function(a){a.forEach(function(W){var w=this.popups_[W];w&&((w=w.popup)&&w.close&&w.close(),this.removePopup_(w,W))}.bind(this))},
handleGetPopupOpenedAction_:function(a,W){return(W=this.createCacheKey(a,W))&&this.popups_[W]?this.popups_[a].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var a=[],W;for(W in this.popups_){var w=this.popups_[W];w.popup.opened&&a.push(w)}return a},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(a,W){_.r("ytpopup_disable_default_html_caching")&&a&&a.removeWhenClosed&&(_.M(this.hostElement).removeChild(a),W&&this.popups_[W]&&delete this.popups_[W])},
shouldReusePopup_:function(a){return!(!a||!a.reusePopup)||!(!a||!a.beReused)},
ensurePopup_:function(a,W){this.maybeCreateNarrowMediaQuery_();var w=_.em(a.popup,"renderer")||_.em(a.popup,"dialog")||_.em(a.popup,"model");if(!w)return _.tk();w=_.G$F(w,Q7d(this.popupContainerConfig,w));return _.tk(this.getAndMaybeCreatePopup_(a,w,W))},
getAndMaybeCreatePopup_:function(a,W,w){var Z=this.createCacheKey(W,a.uniqueId);if(this.popups_[Z])return this.popups_[Z];a=new zy({openPopupAction:a,target:w,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(W)});return this.popups_[Z]=a},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(a){return _.r("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",_.yV(this,this.openPopupQueryMatchesChanged_)),_.M(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(a){a=a.detail.value;for(var W in this.popups_)ZT0(this.popups_[W],a)},
onPopupIronOverlayClosed_:function(a){var W=a.currentTarget,w=_.xQS(W);w=w.length>0?w[0]:W;if(w.is!=="ytd-reel-watch-while-dialog-renderer"||a.target.is!=="tp-yt-iron-dropdown"){a.detail.popup=W;a.detail.popupRenderer=w;var Z,N={context:{openingElement:((Z=this.popups_[(w==null?void 0:w.is)||""])==null?void 0:Z.target)||void 0}};Object.assign(N,a.detail);var B;_.E$((B=w.hostElement)!=null?B:w,"yt-popup-closed",N);W.removeEventListener("yt-refit",_.yV(this,this.refitPopup_));W.removeEventListener("yt-invalidate-popup-tabbables",
_.yV(this,this.handleInvalidatePopupTabbables_));W.removeEventListener("iron-overlay-canceled",_.yV(this,this.onPopupIronOverlayCanceled_));W.removeEventListener("iron-overlay-closed",_.yV(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(W)}},
onPopupIronOverlayCanceled_:function(a,W){var w=a.currentTarget,Z=_.xQS(w);Z=Z.length>0?Z[0]:w;if(Z.is!=="ytd-reel-watch-while-dialog-renderer"||a.target.is!=="tp-yt-iron-dropdown"){var N;_.E$((N=Z.hostElement)!=null?N:Z,"yt-popup-canceled",a.detail);N=W?_.qj(W):null;(!W||["click","tap"].includes(W.type))&&!w.hasAttribute("force-close-on-outside-click")&&w.positionTarget&&N&&N.includes(w.positionTarget)&&a.preventDefault();w.restoreFocusOnClose=_.YS.keyboardEventMatchesKeys(W,"esc")}},
onPopupIronOverlayOpened_:function(a){a=a.currentTarget;var W=_.xQS(a);W=W.length>0?W[0]:a;var w,Z;_.E$((w=W.hostElement)!=null?w:W,"yt-popup-opened",(Z=W.hostElement)!=null?Z:W);a.keepBelowPlayer&&(this.ensurePopupBelowPlayer(a,!0),this.dynamicallyPositionedElements_.add(a));w=_.K().resolve(_.Vv(_.S4));Z=!!W.querySelector("#toast");w&&w.isKeyBoardInUse()&&!Z&&(typeof W.focusFirstItem==="function"?W.focusFirstItem():(W=_.V4y(a),W.length&&W[0].focus()));a.removeEventListener("iron-overlay-opened",
_.yV(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,W){return _.r("web_popup_cache_key_killswitch")?W?a+"#"+W:a:W?"#"+W:a},
openSheet:function(a,W){var w=a==null?void 0:a.openPopupActionCommand;!w&&(a==null?0:a.viewModel)&&(w={openPopupAction:{popup:{sheetViewModel:a.viewModel},popupType:"CONTEXTUAL_SHEET"}});w&&this.handleOpenPopupAction(w,W)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var a=this;return _.P(function(W){return W.return(a.handleGetOpenedPopupsAction_().filter(function(w){var Z;return((Z=w.openPopupAction)==null?void 0:Z.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(a,W,w){if(_.r("web_dialog_utils_killswitch")){var Z=a==null?void 0:a.openPopupActionCommand,N=(w==null?0:w.ariaLabel)?{accessibilityData:{accessibilityData:{label:w.ariaLabel}}}:void 0;!Z&&(a==null?0:a.viewModel)&&(Z={openPopupAction:Object.assign({},{popup:{dialogViewModel:a.viewModel},popupType:(w==null?0:w.isModal)?"MODAL":"DIALOG"},N&&N)});Z&&this.handleOpenPopupAction(Z,W)}else{if(N=a==null?void 0:a.viewModel){var B=w=w===void 0?{}:w;w=B.ariaLabel;N={popup:{dialogViewModel:N},
popupType:B.isModal?"MODAL":"DIALOG"};B={accessibilityData:{label:w}};w&&(N.accessibilityData=B);N={openPopupAction:N}}else N=void 0;(N=(Z=N)!=null?Z:a==null?void 0:a.openPopupActionCommand)&&this.handleOpenPopupAction(N,W)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var a=this;return _.P(function(W){return W.return(a.handleGetOpenedPopupsAction_().filter(function(w){var Z;return((Z=w.openPopupAction)==null?void 0:Z.popupType)==="DIALOG"}).length>0)})}}];var P$E;var Xt0;var vwD=_.ma(["about:blank"]),Hq=function(){var a=_.u.apply(this,arguments)||this;a.isMuted=!1;a.pageLoadTimeoutId=void 0;return a};
_.c(Hq,_.u);_.t=Hq.prototype;_.t.dataChanged=function(){var a=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var W=this.data.url,w=_.cI(W);_.r("enable_yt_ata_iframe_authuser")?(w=_.cI(W),_.nv(this.iframe,Phk(w))):_.nv(this.iframe,w);this.pageLoadTimeoutId=_.TP(_.n4(),function(){return void a.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.aN({destination:window,iframe:this.iframe,origin:_.w9_(w.toString()),channelName:"ataiframe",onMessage:_.gIR(C3f,function(Z){GNX(Z.data)?(Z=_.Tk(Z.data,1,_.rf,_.Hh()),Z.length!==1?_.jJ(Error("nl")):(Z=Z[0],Z===3?(a.isMuted=!0,a.logStateChanged({adMuteRequested:!0})):Z===1&&a.close())):_.jJ(Error("ol"))}),
onEstablished:function(){a.cancelPageLoadTimeout();a.logStateChanged({pageLoadSucceeded:!0})}})}};
_.t.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.n4().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.t.logStateChanged=function(a){var W;if((W=this.data)==null?0:W.trackingParams)a={adsClientData:{aboutThisAdData:a}},_.$J().stateChanged(this.data.trackingParams,a)};
_.t.close=function(){_.aV(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.handlesPopupClosed=function(a,W){var w=this,Z,N;return _.P(function(B){if(B.nextAddress==1)return _.LF("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.aV(w.hostElement,"on-about-this-ad-popup-closed",[w.isMuted,W]),B.jumpTo(0)):a&&Xuk(a)?_.g(B,vok(a),4):(w.isMuted&&_.aV(w.hostElement,"yt-mute-ad-action",[w.is,w]),B.jumpTo(0));if(Z=B.yieldResult){var I=N=new _.vd(Z),X=w.isMuted;I.getOptions().includes("onAboutThisAdPopupClosed")?_.nMR(I,"onAboutThisAdPopupClosed",{isMuted:X,layoutId:W}):_.aa("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Xd(B)})};
_.t.onPopupClosed=function(a){var W=this,w,Z;return _.P(function(N){w=_.ya(vwD);_.nv(W.iframe,w);W.cancelPageLoadTimeout();if(!W.data)return N.jumpTo(0);W.ytRendererBehavior.markDirty();Z=a.detail.context.openingElement;return _.g(N,W.handlesPopupClosed(Z,W.data.layoutId),0)})};
_.t.detached=function(){this.cancelPageLoadTimeout()};
_.t.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Hq.prototype.onPopupClosed=Hq.prototype.onPopupClosed;Hq.prototype.dataChanged=Hq.prototype.dataChanged;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.f([_.w$("#iframe"),_.z("design:type",HTMLIFrameElement)],Hq.prototype,"iframe",void 0);_.f([_.b(),_.z("design:type",Object)],Hq.prototype,"data",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hq.prototype,"dataChanged",null);
_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype",Promise)],Hq.prototype,"onPopupClosed",null);Hq=_.f([_.TD({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Hq);
_.D(Hq,"yt-about-this-ad-renderer",function(){if(Xt0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;P$E===void 0&&(P$E=document.createElement("template"));var Z=P$E;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Xt0=a}a=Xt0;return a},{mode:2});var gw0;var owk;var vx=function(a){var W=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=W.message;"stack"in W&&(this.stack=W.stack);this.maxFileSizeMB=a;Object.setPrototypeOf(this,vx.prototype)};
_.c(vx,Error);var kg0=function(a,W){var w=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=w.message;"stack"in w&&(this.stack=w.stack);this.minWidth=a;this.minHeight=W;Object.setPrototypeOf(this,kg0.prototype)};
_.c(kg0,Error);var UCK=function(a){this.requirements=a;this.JSC$18494_maxFileSize=a.maxFileSizeMB*1024*1024},OT0=function(a,W){if(W.size>a.JSC$18494_maxFileSize)throw new vx(a.requirements.maxFileSizeMB);
};var Srn=function(a,W){this.canvas=a;this.imageEditorBuilder=W};
Srn.prototype.addEventListeners=function(a){var W=function(N){Yrf(a,N)};
this.JSC$18500_mouseDownEvent=W;var w=function(N){TxK(a,N)};
this.JSC$18500_mouseMoveEvent=w;var Z=function(){K0f(a)};
this.JSC$18500_mouseUpEvent=Z;this.canvas.addEventListener("mousedown",W);this.canvas.addEventListener("mousemove",w);document.addEventListener("mouseup",Z)};
Srn.prototype.removeEventListeners=function(){this.JSC$18500_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18500_mouseDownEvent);this.JSC$18500_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18500_mouseMoveEvent);this.JSC$18500_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18500_mouseUpEvent)};
var ptd=function(a,W){a.removeEventListeners();return new Promise(function(w){var Z=new Image;Z.crossOrigin="anonymous";Z.onload=function(){var N=a.imageEditorBuilder(a.canvas,Z);a.addEventListeners(N);w(N)};
Z.src=W})},gv=function(a,W,w,Z,N,B,I,X){this.canvas=a;
this.image=W;this.requiredRatio=w;this.minImageCropDimension=Z;this.minOutputImageResolution=N;this.component=B;this.styleFocusedCorner=X===void 0?!0:X;this.action=2;this.focusedCorner=this.resizeCorner=0;a=this.canvas.getContext("2d");if(!a)throw Error("pl");this.ctx=a;this.canvasMargin=I!=null?I:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;I=this.image;a=this.canvasInnerWidth/I.width;I.height*a>912&&(a=I.width/I.height*912/I.width);I=a;this.scaledImageWidth=this.canvas.width%2?
oo9(this.image.width*I):goX(this.image.width*I);this.scaledImageHeight=Math.round(this.image.height*I);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18503_overlayMarginBottom=this.JSC$18503_overlayMarginTop=this.canvasMargin;this.JSC$18503_overlayMarginRight=this.JSC$18503_overlayMarginLeft=this.horizontalMargin;this.JSC$18503_overlayWidth=this.scaledImageWidth;this.JSC$18503_overlayHeight=this.scaledImageHeight;
a=this.image.width/this.image.height;a>this.requiredRatio?(this.JSC$18503_overlayWidth=this.canvas.width%2?oo9(this.scaledImageHeight*this.requiredRatio):goX(this.scaledImageHeight*this.requiredRatio),this.JSC$18503_overlayMarginRight=this.JSC$18503_overlayMarginLeft=(this.canvas.width-this.JSC$18503_overlayWidth)/2):a<this.requiredRatio&&(this.JSC$18503_overlayHeight=this.canvas.height%2?oo9(this.scaledImageWidth/this.requiredRatio):goX(this.scaledImageWidth/this.requiredRatio),this.JSC$18503_overlayMarginBottom=
this.JSC$18503_overlayMarginTop=(this.canvas.height-this.JSC$18503_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*I,this.scaledImageWidth);r6I(this)};
gv.prototype.getContext=function(){return this.ctx};
var Yrf=function(a,W){W={x:Math.round(W.pageX-a.canvas.getBoundingClientRect().left),y:Math.round(W.pageY-a.canvas.getBoundingClientRect().top)};a.dragStart=W;A6k(a,W)!==0?(a.action=1,hAi(a,W),a.resizeCorner=A6k(a,W)):W.x>a.JSC$18503_overlayMarginLeft&&W.x<a.JSC$18503_overlayMarginLeft+a.JSC$18503_overlayWidth&&W.y>a.JSC$18503_overlayMarginTop&&W.y<a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight&&(a.action=0)},iT9=function(a,W){switch(W){case 1:return{x:a.JSC$18503_overlayMarginLeft,
y:a.JSC$18503_overlayMarginTop};case 2:return{x:a.JSC$18503_overlayMarginLeft,y:a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight};case 3:return{x:a.JSC$18503_overlayMarginLeft+a.JSC$18503_overlayWidth,y:a.JSC$18503_overlayMarginTop};case 4:return{x:a.JSC$18503_overlayMarginLeft+a.JSC$18503_overlayWidth,y:a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight};default:throw Error("ql");}},eA2=function(a,W){if(a.focusedCorner!==0){a.dragStart=iT9(a,a.focusedCorner);
a.action=1;a.resizeCorner=a.focusedCorner;var w=a.dragStart.x,Z=a.dragStart.y;switch(W){case 0:a.focusedCorner===1||a.focusedCorner===4?(w-=10,Z-=10):(w-=10,Z+=10);break;case 1:a.focusedCorner===1||a.focusedCorner===4?(w+=10,Z+=10):(w+=10,Z-=10);break;case 2:w=a.focusedCorner===1||a.focusedCorner===4?w-10:w+10;Z-=10;break;case 3:w=a.focusedCorner===1||a.focusedCorner===4?w+10:w-10;Z+=10;break;default:throw Error("rl");}c62(a,{x:w,y:Z});r6I(a);a.action=2;a.dragStart=void 0}},TxK=function(a,W){W={x:Math.round(W.pageX-
a.canvas.getBoundingClientRect().left),
y:Math.round(W.pageY-a.canvas.getBoundingClientRect().top)};hAi(a,W);switch(a.action){case 1:c62(a,W);break;case 0:a.dragStart&&(a.JSC$18503_overlayMarginLeft=Math.max(a.horizontalMargin,Math.min(a.JSC$18503_overlayMarginLeft-(a.dragStart.x-W.x),a.horizontalMargin+a.scaledImageWidth-a.JSC$18503_overlayWidth)),a.JSC$18503_overlayMarginRight=a.canvas.width-a.JSC$18503_overlayMarginLeft-a.JSC$18503_overlayWidth,a.JSC$18503_overlayMarginTop=Math.max(a.canvasMargin,Math.min(a.JSC$18503_overlayMarginTop-
(a.dragStart.y-W.y),a.scaledImageHeight-a.JSC$18503_overlayHeight+a.canvasMargin)),a.JSC$18503_overlayMarginBottom=a.canvas.height-(a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight));break;default:return}r6I(a);a.dragStart=W},K0f=function(a){a.action=2;
a.dragStart=void 0;document.body.style.cursor="auto"},hAi=function(a,W){switch(A6k(a,W)){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")}},A6k=function(a,W){var w=a.JSC$18503_overlayMarginLeft-5,Z=a.JSC$18503_overlayMarginTop-5,N=a.JSC$18503_overlayMarginLeft+a.JSC$18503_overlayWidth-5;
a=a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight-5;return nwf(W,{x:w,y:Z})?1:nwf(W,{x:N,y:Z})?3:nwf(W,{x:w,y:a})?2:nwf(W,{x:N,y:a})?4:0},nwf=function(a,W){return a.x>=W.x&&a.x<=W.x+10&&a.y>=W.y&&a.y<=W.y+10},c62=function(a,W){if(a.dragStart)switch(a.resizeCorner){case 2:Math.abs((a.JSC$18503_overlayMarginLeft+a.JSC$18503_overlayWidth-W.x)/(W.y-a.JSC$18503_overlayMarginTop))>=a.requiredRatio?j22(a,W.x):L0z(a,W.y);
break;case 1:Math.abs((a.JSC$18503_overlayMarginLeft+a.JSC$18503_overlayWidth-W.x)/(a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight-W.y))>=a.requiredRatio?J6f(a,W.x):L0z(a,W.y);break;case 4:Math.abs((W.x-a.JSC$18503_overlayMarginLeft)/(W.y-a.JSC$18503_overlayMarginTop))>=a.requiredRatio?j22(a,W.x):F0D(a,W.y);break;case 3:Math.abs((W.x-a.JSC$18503_overlayMarginLeft)/(a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight-W.y))>=a.requiredRatio?J6f(a,W.x):F0D(a,W.y);break;default:throw Error("sl");
}},j22=function(a,W){var w=a.JSC$18503_overlayMarginTop;
a.JSC$18503_overlayMarginBottom=MYD(a,W);a.JSC$18503_overlayHeight=a.canvas.height-a.JSC$18503_overlayMarginBottom-w;a.JSC$18503_overlayWidth=Math.round(a.JSC$18503_overlayHeight*a.requiredRatio);RAn(a)},J6f=function(a,W){var w=a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight;
a.JSC$18503_overlayMarginTop=MYD(a,W);a.JSC$18503_overlayHeight=w-a.JSC$18503_overlayMarginTop;a.JSC$18503_overlayWidth=Math.round(a.JSC$18503_overlayHeight*a.requiredRatio);RAn(a)},RAn=function(a){switch(a.resizeCorner){case 2:case 1:a.JSC$18503_overlayMarginLeft=a.canvas.width-a.JSC$18503_overlayMarginRight-a.JSC$18503_overlayWidth;
break;case 4:case 3:a.JSC$18503_overlayMarginRight=a.canvas.width-a.JSC$18503_overlayMarginLeft-a.JSC$18503_overlayWidth;break;default:throw Error("sl");}},L0z=function(a,W){var w=a.JSC$18503_overlayMarginLeft+a.JSC$18503_overlayWidth;
a.JSC$18503_overlayMarginLeft=qrI(a,W);a.JSC$18503_overlayWidth=w-a.JSC$18503_overlayMarginLeft;a.JSC$18503_overlayHeight=Math.round(a.JSC$18503_overlayWidth/a.requiredRatio);Q2z(a)},F0D=function(a,W){var w=a.JSC$18503_overlayMarginLeft;
a.JSC$18503_overlayMarginRight=qrI(a,W);a.JSC$18503_overlayWidth=a.canvas.width-a.JSC$18503_overlayMarginRight-w;a.JSC$18503_overlayHeight=Math.round(a.JSC$18503_overlayWidth/a.requiredRatio);Q2z(a)},Q2z=function(a){switch(a.resizeCorner){case 2:case 4:a.JSC$18503_overlayMarginBottom=a.canvas.height-a.JSC$18503_overlayMarginTop-a.JSC$18503_overlayHeight;
break;case 1:case 3:a.JSC$18503_overlayMarginTop=a.canvas.height-a.JSC$18503_overlayMarginBottom-a.JSC$18503_overlayHeight;break;default:throw Error("sl");}},MYD=function(a,W){switch(a.resizeCorner){case 2:W=a.canvas.height-(a.JSC$18503_overlayMarginTop+xC9(a,W));
break;case 4:W=a.canvas.height-(a.JSC$18503_overlayMarginTop+bTI(a,W));break;case 1:W=a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight-xC9(a,W);break;case 3:W=a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight-bTI(a,W);break;default:throw Error("sl");}return Math.max(W,a.canvasMargin)},xC9=function(a,W){W=a.JSC$18503_overlayMarginLeft+a.JSC$18503_overlayWidth-Math.max(W,a.horizontalMargin);
W=W<0?a.JSC$18503_overlayWidth:Math.max(W,a.minOverlayWidth);return Math.round(W/a.requiredRatio)},bTI=function(a,W){W=a.canvas.width-Math.max(a.canvas.width-W,a.horizontalMargin)-a.JSC$18503_overlayMarginLeft;
W=W<0?a.JSC$18503_overlayWidth:Math.max(W,a.minOverlayWidth);return Math.round(W/a.requiredRatio)},qrI=function(a,W){switch(a.resizeCorner){case 2:W=a.canvas.width-a.JSC$18503_overlayMarginRight-s2I(a,W);
break;case 4:W=a.canvas.width-a.JSC$18503_overlayMarginLeft-s2I(a,W);break;case 1:W=a.canvas.width-a.JSC$18503_overlayMarginRight-uZ0(a,W);break;case 3:W=a.canvas.width-a.JSC$18503_overlayMarginLeft-uZ0(a,W);break;default:throw Error("sl");}return Math.max(W,a.horizontalMargin)},s2I=function(a,W){W=a.canvas.height-Math.max(a.canvas.height-W,a.canvasMargin)-a.JSC$18503_overlayMarginTop;
return W<0?a.JSC$18503_overlayWidth:Math.max(Math.round(W*a.requiredRatio),a.minOverlayWidth)},uZ0=function(a,W){W=a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight-Math.max(W,a.canvasMargin);
return W<0?a.JSC$18503_overlayWidth:Math.max(Math.round(W*a.requiredRatio),a.minOverlayWidth)},r6I=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$18503_overlayMarginTop,a.JSC$18503_overlayMarginLeft-a.horizontalMargin,a.JSC$18503_overlayHeight);a.ctx.fillRect(a.JSC$18503_overlayMarginLeft+a.JSC$18503_overlayWidth,a.JSC$18503_overlayMarginTop,a.JSC$18503_overlayMarginRight-a.horizontalMargin,a.JSC$18503_overlayHeight);a.ctx.fillRect(a.horizontalMargin,
a.canvasMargin,a.scaledImageWidth,a.JSC$18503_overlayMarginTop-a.canvasMargin);a.ctx.fillRect(a.horizontalMargin,a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight,a.scaledImageWidth,a.JSC$18503_overlayMarginBottom-a.canvasMargin);a.drawOverlay();a.component&&_.E$(a.component,"image-updated")};
gv.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18503_overlayMarginLeft,this.JSC$18503_overlayMarginTop,this.JSC$18503_overlayWidth,this.JSC$18503_overlayHeight);C$I(this)};
var C$I=function(a){var W=a.JSC$18503_overlayMarginLeft-5,w=a.JSC$18503_overlayMarginTop-5,Z=a.JSC$18503_overlayMarginLeft+a.JSC$18503_overlayWidth-5,N=a.JSC$18503_overlayMarginTop+a.JSC$18503_overlayHeight-5;a.ctx.fillStyle="#FFF";a.ctx.fillRect(W,w,10,10);a.ctx.strokeRect(W,w,10,10);a.ctx.fillRect(Z,w,10,10);a.ctx.strokeRect(Z,w,10,10);a.ctx.fillRect(W,N,10,10);a.ctx.strokeRect(W,N,10,10);a.ctx.fillRect(Z,N,10,10);a.ctx.strokeRect(Z,N,10,10);if(a.focusedCorner!==0&&a.styleFocusedCorner){a.ctx.lineWidth=
4;a.ctx.strokeStyle="#3EA6FF";switch(a.focusedCorner){case 1:--W;--w;break;case 2:--W;w=N-1;break;case 3:W=Z-1;--w;break;case 4:W=Z-1;w=N-1;break;default:return}a.ctx.strokeRect(W,w,12,12)}};
gv.prototype.crop=function(a,W){W=W===void 0?!0:W;var w=this.image.width/this.scaledImageWidth,Z=document.createElement("canvas"),N=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],B=this.JSC$18503_overlayWidth*w,I=this.JSC$18503_overlayHeight*w;Z.width=Math.max(B,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);Z.height=Math.max(I,N);a&&(Z.width=Math.min(Z.width,Z.height),Z.height=Math.min(Z.width,Z.height));
a=Z.getContext("2d");if(!a)throw Error("gl");N=(this.JSC$18503_overlayMarginLeft-this.horizontalMargin)*w;w*=this.JSC$18503_overlayMarginTop-this.canvasMargin;W||(a.fillStyle="white",a.fillRect(0,0,Z.width,Z.height));a.drawImage(this.image,N,w,B,I,0,0,Z.width,Z.height);return Z};var GgD=function(a,W,w,Z,N){gv.call(this,a,W,w,Z,void 0,N,8,!1)};
_.c(GgD,gv);GgD.prototype.drawOverlay=function(){var a=this.getContext(),W=this.JSC$18503_overlayWidth,w=this.JSC$18503_overlayHeight,Z=this.JSC$18503_overlayMarginTop,N=this.JSC$18503_overlayMarginLeft;a.lineWidth=2;a.strokeStyle="#3EA6FF";a.beginPath();a.arc(N+W/2,Z+w/2,W/2,0,2*Math.PI);a.stroke();a.strokeRect(N,Z,W,w);C$I(this)};
var DCX={maxFileSizeMB:15,minWidth:98,minHeight:98},fIK=["image/png","image/jpeg","image/gif"],oO=function(){var a=_.u.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};
_.c(oO,_.u);_.t=oO.prototype;_.t.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.t.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.t.computePlaylistThumbnail=function(a){return a==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.t.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.aV(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.t.setErrorState=function(a){this.resetErrorState();a&&(this.errorMessage=a)};
_.t.showPopup=function(){var a=this;this.hideContainer=!1;_.TP(_.hF,function(){_.E$(a.hostElement,"yt-refit")});
this.isLoading=!1};
_.t.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.t.closePopup=function(){this.resetFileSelector();_.aV(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.onCancelTap=function(){this.isPlaylistThumbnail||_.aV(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.t.openFileSelector=function(){var a=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.TP(_.hF,function(){setTimeout(function(){if(!a.fileSelector.files||a.fileSelector.files.length===0)a.onCancelTap();a.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(W){W instanceof Error?_.eJ(W):_.nH(new _.Uw(JSON.stringify(W)))}};
_.t.handleFileSelection=function(){var a=this,W,w,Z,N,B,I;return _.P(function(X){switch(X.nextAddress){case 1:_.tq(X,2);if(!a.fileSelector.files||!a.imageEditorCanvas)return a.onCancelTap(),X.return();W=a.fileSelector.files[0];OT0(a.imageChecker,W);_.tq(X,4);return _.g(X,bxn(W),6);case 6:a.mimeType=X.yieldResult;_.qY(X,5,2);break;case 4:_.Pb(X,2),_.aV(a.hostElement,"yt-image-selection-error-action",[(w=a.data)==null?void 0:w.genericImageLoadErrorMessage]),a.onCancelTap();case 5:Z=new FileReader;Z.addEventListener("load",
function(){var v,U;return _.P(function(O){if(O.nextAddress==1){if(!Z.result)return _.jJ(Error("il")),O.return();v=Z.result;U=new Image;U.src=v;U.onload=function(){try{var S=a.imageChecker;if(U.width<S.requirements.minWidth||U.height<S.requirements.minHeight)throw new kg0(S.requirements.minWidth,S.requirements.minHeight);}catch(p){if(p instanceof kg0){var T;_.aV(a.hostElement,"yt-image-selection-error-action",[(T=a.data)==null?void 0:T.imageDimensionErrorMessage]);a.logImageDimensionErrorVe()}else p instanceof
Error?_.eJ(p):(S=new _.Uw(JSON.stringify(p)),_.eJ(S));a.onCancelTap()}a.showPopup()};
U.onerror=function(){var S;_.aV(a.hostElement,"yt-image-selection-error-action",[(S=a.data)==null?void 0:S.genericImageLoadErrorMessage]);a.onCancelTap()};
return _.g(O,ptd(a.imageEditorCanvas,v),2)}a.imageEditor=O.yieldResult;a.updatePositionOfAllCorners();a.addEventListeners(a.imageEditor);_.Xd(O)})},!1);
Z.readAsDataURL(W);_.qY(X,0);break;case 2:N=_.Pb(X),N instanceof vx?_.aV(a.hostElement,"yt-image-selection-error-action",[(B=a.data)==null?void 0:B.imageSizeErrorMessage]):(N instanceof Error?_.eJ(N):_.nH(new _.Uw(JSON.stringify(N))),_.aV(a.hostElement,"yt-image-selection-error-action",[(I=a.data)==null?void 0:I.genericImageLoadErrorMessage])),a.onCancelTap(),_.Xd(X)}})};
_.t.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var a=_.tQ(_.$J(),{veType:232707,visualElement:_.Ob(232707)});a&&(a={visualElement:a},_.Nw().reportShown(a))}};
_.t.handleImageSelectionErrorAction=function(a){this.isPlaylistThumbnail&&_.tCx(this.hostElement,a)};
_.t.convertToImageFormatBundle=function(a){var W=this,w,Z,N;return _.P(function(B){switch(B.nextAddress){case 1:return w=a.toDataURL(W.outputMimeType,1),_.g(B,ssE(w),2);case 2:Z=B.yieldResult;_.tq(B,3);OT0(W.imageChecker,Z);_.qY(B,4);break;case 3:N=_.Pb(B);if(!(N instanceof vx))throw N;_.jJ(new _.Uw("Output size is bigger than input size for image",W.mimeType,W.outputMimeType,Z.size));w=a.toDataURL("image/jpeg",.95);return _.g(B,ssE(w),6);case 6:Z=B.yieldResult;case 4:return B.return({dataUrl:w,imageFile:Z})}})};
_.t.handleUploadImageToScottyCommand=function(a){var W=this,w,Z,N,B,I,X,v,U,O,S;return _.P(function(T){switch(T.nextAddress){case 1:if(!W.imageEditor||!_.A(a,tTI))return T.return();w=_.A(a,tTI).scottyUploadUrl;if(!w){var p=new _.Uw("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.eJ(p);return T.return()}_.tq(T,2);W.setLoadingState();Z=W.imageEditor.crop(!1,!1);return _.g(T,W.convertToImageFormatBundle(Z),4);case 4:return N=T.yieldResult,_.g(T,Qsn(N.imageFile,w),5);case 5:B=
T.yieldResult;((I=W.data)==null?0:I.onUploadEndpoint)?(X=W.buildUploadServiceEndpoint(B),W.ytComponentBehavior.resolveCommand(X),v=_.A(X,_.nz),((U=v)==null?0:U.params)?W.closePopup():W.resetFileSelector()):(_.aV(W.hostElement,"yt-image-updated-action",[N.dataUrl,B]),W.closePopup());_.qY(T,0);break;case 2:O=_.Pb(T),W.setErrorState((S=W.data)==null?void 0:S.uploadErrorMessage),O instanceof Error?_.eJ(O):(p=new _.Uw(JSON.stringify(O)),_.eJ(p)),_.Xd(T)}})};
_.t.buildUploadServiceEndpoint=function(a){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",a),this.data.onUploadEndpoint):null};
_.t.dataChanged=function(){var a=this,W;return _.P(function(w){if(w.nextAddress==1){if(!a.data||!a.canvasElement)return w.return();a.data.imageRatio&&a.data.minImageCropWidth||_.nH(new _.Uw("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));W=function(Z,N){return a.data.imageType==="IMAGE_TYPE_AVATAR"?new GgD(Z,N,a.data.imageRatio,[a.data.minImageCropWidth,a.data.minImageCropWidth/a.data.imageRatio],a.hostElement):new gv(Z,N,a.data.imageRatio,[a.data.minImageCropWidth,
a.data.minImageCropWidth/a.data.imageRatio],void 0,a.hostElement,8,!1)};
a.imageEditorCanvas=new Srn(a.canvasElement,W);return a.data.url?_.g(w,ptd(a.imageEditorCanvas,a.data.url),3):(a.hideContainer=!0,a.openFileSelector(),w.jumpTo(0))}a.imageEditor=w.yieldResult;a.showPopup();a.addEventListeners(a.imageEditor);_.Xd(w)})};
_.t.addEventListeners=function(a){this.removeEventListeners();var W=function(N){Yrf(a,N)};
this.JSC$18511_mouseDownEvent=W;var w=function(N){TxK(a,N)};
this.JSC$18511_mouseMoveEvent=w;var Z=function(){K0f(a)};
this.JSC$18511_mouseUpEvent=Z;this.topLeftCorner.addEventListener("mousedown",W);this.topLeftCorner.addEventListener("mousemove",w);this.topLeftCorner.addEventListener("mouseup",Z);this.topRightCorner.addEventListener("mousedown",W);this.topRightCorner.addEventListener("mousemove",w);this.topRightCorner.addEventListener("mouseup",Z);this.bottomLeftCorner.addEventListener("mousedown",W);this.bottomLeftCorner.addEventListener("mousemove",w);this.bottomLeftCorner.addEventListener("mouseup",Z);this.bottomRightCorner.addEventListener("mousedown",
W);this.bottomRightCorner.addEventListener("mousemove",w);this.bottomRightCorner.addEventListener("mouseup",Z)};
_.t.removeEventListeners=function(){this.JSC$18511_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18511_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18511_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18511_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18511_mouseDownEvent));this.JSC$18511_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18511_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18511_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18511_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18511_mouseMoveEvent));this.JSC$18511_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18511_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18511_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18511_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18511_mouseUpEvent))};
_.t.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};
_.t.updatePositionOfCorner=function(a,W){var w=a.y-W.offsetHeight/2+4;W.style.left=a.x-W.offsetWidth/2+16+"px";W.style.top=w+"px"};
_.t.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var a=_.l([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),W=a.next();!W.done;W=a.next()){W=W.value;var w=iT9(this.imageEditor,W.corner);this.updatePositionOfCorner(w,W.div)}};
_.t.onLeft=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(eA2(this.imageEditor,0),this.updatePositionOfAllCorners(),a.preventDefault())};
_.t.onRight=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(eA2(this.imageEditor,1),this.updatePositionOfAllCorners(),a.preventDefault())};
_.t.onUp=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(eA2(this.imageEditor,2),this.updatePositionOfAllCorners(),a.preventDefault())};
_.t.onDown=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(eA2(this.imageEditor,3),this.updatePositionOfAllCorners(),a.preventDefault())};
_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.dU.Object.defineProperties(oO.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&fIK.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var a,W,w;((W=this.data)==null?0:W.imageRatio)&&((w=this.data)==null?0:w.minImageCropWidth)?a={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:a=DCX;return new UCK(a)}}});
oO.prototype.updatePositionOfAllCorners=oO.prototype.updatePositionOfAllCorners;oO.prototype.dataChanged=oO.prototype.dataChanged;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],oO.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],oO.prototype,"ytComponentBehavior",void 0);_.f([_.R(_.YS),_.z("design:type",Object)],oO.prototype,"ironA11yKeysBehavior",void 0);
_.f([_.w$("#canvas"),_.z("design:type",HTMLCanvasElement)],oO.prototype,"canvasElement",void 0);_.f([_.w$("#file-selector"),_.z("design:type",HTMLInputElement)],oO.prototype,"fileSelector",void 0);_.f([_.w$("#top-left-corner"),_.z("design:type",HTMLDivElement)],oO.prototype,"topLeftCorner",void 0);_.f([_.w$("#top-right-corner"),_.z("design:type",HTMLDivElement)],oO.prototype,"topRightCorner",void 0);
_.f([_.w$("#bottom-left-corner"),_.z("design:type",HTMLDivElement)],oO.prototype,"bottomLeftCorner",void 0);_.f([_.w$("#bottom-right-corner"),_.z("design:type",HTMLDivElement)],oO.prototype,"bottomRightCorner",void 0);_.f([_.b(),_.z("design:type",Object)],oO.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],oO.prototype,"errorMessage",void 0);_.f([_.b(),_.z("design:type",Object)],oO.prototype,"isLoading",void 0);_.f([_.b(),_.z("design:type",Object)],oO.prototype,"hideContainer",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.z("design:type",Boolean)],oO.prototype,"isPlaylistThumbnail",void 0);_.f([_.lO("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],oO.prototype,"dataChanged",null);_.f([_.E6("image-updated"),_.E6("yt-refit"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oO.prototype,"updatePositionOfAllCorners",null);
oO=_.f([_.TD({is:"yt-image-editor-renderer",disableElementRegistration:!0})],oO);
_.D(oO,"yt-image-editor-renderer",function(){if(owk===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;gw0===void 0&&(gw0=document.createElement("template"));var Z=gw0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);owk=a}a=owk;return a},{mode:2});var dCE;var mCi;var kW=function(){return _.u.apply(this,arguments)||this};
_.c(kW,_.u);kW.prototype.updateMinutesFromBinding=function(a){this.handleMinutesChanged&&this.handleMinutesChanged(a)};
kW.prototype.updateSecondsFromBinding=function(a){this.handleSecondsChanged&&this.handleSecondsChanged(a)};
kW.prototype.updateDescriptionFromBinding=function(a){this.handleDescriptionChanged&&this.handleDescriptionChanged(a)};
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],kW.prototype,"ytComponentBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],kW.prototype,"data",void 0);_.f([_.b(),_.z("design:type",String)],kW.prototype,"minutes",void 0);_.f([_.b(),_.z("design:type",String)],kW.prototype,"seconds",void 0);_.f([_.b(),_.z("design:type",String)],kW.prototype,"description",void 0);_.f([_.b(),_.z("design:type",Function)],kW.prototype,"handleMinutesChanged",void 0);
_.f([_.b(),_.z("design:type",Function)],kW.prototype,"handleSecondsChanged",void 0);_.f([_.b(),_.z("design:type",Function)],kW.prototype,"handleDescriptionChanged",void 0);_.f([_.b(),_.z("design:type",Number)],kW.prototype,"characterLimit",void 0);_.f([_.b(),_.z("design:type",Number)],kW.prototype,"textNumRows",void 0);kW=_.f([_.TD({is:"yt-report-details-form-content",disableElementRegistration:!0})],kW);
_.D(kW,"yt-report-details-form-content",function(){if(mCi===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;dCE===void 0&&(dCE=document.createElement("template"));var Z=dCE;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);mCi=a}a=mCi;return a},{mode:2});var VY9;var zAd;var Us=function(){var a=_.u.apply(this,arguments)||this;a.updateMinutesFromBinding=function(W){a.minutes=W.detail.value};
a.updateSecondsFromBinding=function(W){a.seconds=W.detail.value};
a.updateDescriptionFromBinding=function(W){a.description=W.detail.value};
return a};
_.c(Us,_.u);_.t=Us.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.t.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"}}}};
_.t.ready=function(){_.M(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.t.onSubmitYtAction=function(a){var W=a.detail;W.actionName==="yt-service-request"&&(W=W.args[1],W.flagEndpoint&&(a.stopPropagation(),this.refireAction(W)))};
_.t.refireAction=function(a){var W={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(W.vss_id=this.vssId);_.Z9(this.hostElement,[a,W]);this.submitDisabled=!0};
_.t.dataChanged=function(){var a=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var W=_.fA();W&&W.getPlayerPromise().then(function(w){var Z=w.getOption("cc","track")||w.getOption("captions","track");Z&&(a.vssId=Z.vss_id);w=w.getCurrentTime();a.minutes=Math.floor(w/60).toString();a.seconds=(Math.floor(w)%60).toString()})};
_.t.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==="")};
_.t.onYtServiceRequestCompleted=function(){_.aV(this.hostElement,"yt-close-popup-action")};
_.t.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.dU.Object.defineProperties(Us.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}}});
Us.prototype.onYtServiceRequestError=Us.prototype.onYtServiceRequestError;Us.prototype.onYtServiceRequestCompleted=Us.prototype.onYtServiceRequestCompleted;Us.prototype.updateSubmitButtonState=Us.prototype.updateSubmitButtonState;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Us.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);
_.f([_.b({observer:"dataChanged"}),_.z("design:type",Object)],Us.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Boolean)],Us.prototype,"submitDisabled",void 0);_.f([_.b(),_.z("design:type",String)],Us.prototype,"minutes",void 0);_.f([_.b(),_.z("design:type",String)],Us.prototype,"seconds",void 0);_.f([_.b(),_.z("design:type",String)],Us.prototype,"description",void 0);_.f([_.b(),_.z("design:type",String)],Us.prototype,"vssId",void 0);
_.f([_.b({value:_.LF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.z("design:type",Boolean)],Us.prototype,"isMusic",void 0);_.f([_.Q("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],Us.prototype,"characterLimit",null);_.f([_.Q("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],Us.prototype,"textNumRows",null);
_.f([_.lO("minutes","seconds","description","submitDisabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Us.prototype,"updateSubmitButtonState",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Us.prototype,"onYtServiceRequestCompleted",null);
_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Us.prototype,"onYtServiceRequestError",null);Us=_.f([_.TD({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Us);
_.D(Us,"yt-report-details-form-renderer",function(){if(zAd===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;VY9===void 0&&(VY9=document.createElement("template"));var Z=VY9;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);zAd=a}a=zAd;return a});var HT2;var y62;var Ew0;var au0;var Os=function(){return _.u.apply(this,arguments)||this};
_.c(Os,_.u);
Os.prototype.onCheckedChanged_=function(){if(this.data){var a=_.M(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.aV(this.hostElement,"yt-additional-detail-checkbox-update",[a]):this.data.identifier==="yt-hide-user-checkbox"?_.aV(this.hostElement,"yt-hide-user-checkbox-update",[a]):a&&this.data.enableCommand?_.aV(this.hostElement,"yt-modify-report-form-command",[_.A(this.data.enableCommand,vcn)]):!a&&this.data.disableCommand&&_.aV(this.hostElement,
"yt-modify-report-form-command",[_.A(this.data.enableCommand,vcn)])}};
Os.prototype.onLabelTap_=function(a){a.target.tagName!="A"&&(_.M(this.hostElement).querySelector("#checkbox").checked=!_.M(this.hostElement).querySelector("#checkbox").checked)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Os.prototype,"data",void 0);Os=_.f([_.TD({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Os);
_.D(Os,"yt-boolean-form-field-v2-renderer",function(){if(au0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Ew0===void 0&&(Ew0=document.createElement("template"));var Z=Ew0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);au0=a}a=au0;return a});var SP=function(){var a=_.u.apply(this,arguments)||this;a.canShowAdditionalDetailCheckbox=!1;a.canShowCheckbox=!1;a.keepDropdownFocusedAfterSelection=!0;return a};
_.c(SP,_.u);SP.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}}}}};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],SP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],SP.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],SP.prototype,"canShowAdditionalDetailCheckbox",void 0);_.f([_.b(),_.z("design:type",Object)],SP.prototype,"canShowCheckbox",void 0);_.f([_.b(),_.z("design:type",Object)],SP.prototype,"keepDropdownFocusedAfterSelection",void 0);
SP=_.f([_.TD({is:"yt-report-form-modal-content",disableElementRegistration:!0})],SP);
_.D(SP,"yt-report-form-modal-content",function(){if(y62===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;HT2===void 0&&(HT2=document.createElement("template"));var Z=HT2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);y62=a}a=y62;return a},{mode:2});var Wfn;var wKk;var YW=function(){var a=_.u.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};
_.c(YW,_.u);_.t=YW.prototype;_.t.created=function(){this.refitJob=0};
_.t.attached=function(){this.JSC$18534_scroller&&(this.JSC$18534_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18534_scroller.attached&&typeof this.JSC$18534_scroller.attached==="function"&&this.JSC$18534_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.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())};
_.t.onYtPopupOpened=function(){var a=_.fA();a&&a.getPlayerPromise().then(function(W){W.pauseVideo()})};
_.t.onYtNavigate=function(a){_.A(a.detail.endpoint,_.v2e)&&(a.stopPropagation(),this.hideReportForm=!0)};
_.t.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.t.onYtServiceRequestCompleted=function(a,W){var w=W.actions;if(w){if(w.length===1&&_.A(w[0],_.$7)){var Z;w=((Z=_.A(w[0],_.$7))==null?void 0:Z.commands)||[]}Z=0;for(var N=w.length;Z<N;Z++)_.A(w[Z],_.A4)&&(a.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(w[Z]))}if(W.data&&(a=this.get("feedbackResponses",W.data)))for(W=0;W<a.length;W++)if(a[W].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.t.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.t._onDescendantIronResize=function(a){a.stopPropagation();return!1};
_.t.handleReportFormEndpointUpdateAction=function(a){if(a.submitEndpoint){var W=this.command=a.submitEndpoint;W=_.A(W,_.ydh);if(W==null?0:W.additionalDetailCheckboxChecked)W.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()};
_.t.handleConfirmDialogCloseAction=function(a){a.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.t.submitButtonDisabledChanged=function(){var a=this.hostElement.parentElement;a&&a.invalidateTabbables&&a.invalidateTabbables()};
_.t.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()};
_.t.updateDialogStyling=function(){var a,W,w,Z,N,B=((N=(a=this.data)==null?void 0:(W=a.optionsSupportedRenderers)==null?void 0:(w=W.optionsRenderer)==null?void 0:(Z=w.items)==null?void 0:Z.length)!=null?N:0)<=2?0:240;_.Hu(this.hostElement,{"--yt-report-form-modal-renderer-min-width":B+"px"})};
_.t.toggleSubmitButton=function(a){this.submitButtonDisabled=!a;this.submitButtonDisabled=a};
_.t.computeSubmitButtonData=function(a,W){var w={};_.A(W,_.v2e)?w.navigationEndpoint=W:w.command=W||void 0;a&&a.buttonRenderer&&_.T5.extend(w,a.buttonRenderer);return w};
_.t.computeNextButtonData=function(a,W){var w={};if(!a||!a.buttonRenderer)return w;_.T5.extend(w,a.buttonRenderer);if(!W)return w;if(_.A(W,_.v2e))w.navigationEndpoint=iAI(W);else if(w.command=iAI(W),a=_.A(w.command,_.ydh))a.legalCheckboxChecked=!0;return w};
_.t.computeShowNextButton=function(a,W,w){return!!a&&W&&w};
_.t.refit=function(){var a=this;this.refitJob||(this.refitJob=_.hF.addLowPriorityJob(function(){_.E$(a.hostElement,"yt-refit");a.refitJob=0}))};
_.t.handleAdditionalDetailCheckboxUpdateAction=function(a){this.additionalDetailCheckboxChecked=a;_.A(this.command,_.ydh).additionalDetailCheckboxChecked=a};
_.dU.Object.defineProperties(YW,{template:{configurable:!0,enumerable:!0,get:function(){if(wKk===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;Wfn===void 0&&(Wfn=document.createElement("template"));var Z=Wfn;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);wKk=a}a=wKk;return a}}});
YW.prototype.onYtServiceRequestError=YW.prototype.onYtServiceRequestError;YW.prototype.onYtServiceRequestCompleted=YW.prototype.onYtServiceRequestCompleted;YW.prototype.onYtServiceRequestSent=YW.prototype.onYtServiceRequestSent;YW.prototype.onYtNavigate=YW.prototype.onYtNavigate;YW.prototype.onYtPopupOpened=YW.prototype.onYtPopupOpened;_.f([_.R(_.Ww.YtOpenPopupBehavior),_.z("design:type",Object)],YW.prototype,"openPopupBehavior",void 0);
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],YW.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],YW.prototype,"eventForwardingBehavior",void 0);_.f([_.R(_.eG),_.z("design:type",Object)],YW.prototype,"ironResizableBehavior",void 0);_.f([_.b({observer:"dataChanged"}),_.z("design:type",Object)],YW.prototype,"data",void 0);
_.f([_.b(),_.z("design:type",Object)],YW.prototype,"submitting",void 0);_.f([_.b({observer:"submitButtonDisabledChanged"}),_.z("design:type",Object)],YW.prototype,"submitButtonDisabled",void 0);_.f([_.b(),_.z("design:type",Object)],YW.prototype,"command",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],YW.prototype,"hideReportForm",void 0);_.f([_.b(),_.z("design:type",Object)],YW.prototype,"canShowCheckbox",void 0);
_.f([_.b(),_.z("design:type",Object)],YW.prototype,"canShowAdditionalDetailCheckbox",void 0);_.f([_.b(),_.z("design:type",Object)],YW.prototype,"canShowNextButton",void 0);_.f([_.b(),_.z("design:type",Object)],YW.prototype,"additionalDetailCheckboxChecked",void 0);_.f([_.b(),_.z("design:type",Object)],YW.prototype,"refitJob",void 0);_.f([_.b(),_.z("design:type",Object)],YW.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.f([_.w$("#scroller"),_.z("design:type",Object)],YW.prototype,"JSC$18534_scroller",void 0);_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YW.prototype,"onYtPopupOpened",null);_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],YW.prototype,"onYtNavigate",null);
_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],YW.prototype,"onYtServiceRequestSent",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],YW.prototype,"onYtServiceRequestCompleted",null);
_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],YW.prototype,"onYtServiceRequestError",null);YW=_.f([_.TD({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],YW);var ZR9;var NZz;var Tm=function(){return _.u.apply(this,arguments)||this};
_.c(Tm,_.u);_.t=Tm.prototype;_.t.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.t.onVisible=function(){if(_.r("web_ephemeral_actions_focus")){var a,W;(W=_.K().resolve(_.Vv(_.BC)))==null||W.enqueue({label:_.sd((a=this.data)==null?void 0:a.messageTitle),elementToFocus:this.hostElement})}};
_.t.onThumbnailLoaded=function(){_.E$(this.hostElement,"yt-refit")};
_.t.onDismissTap=function(){_.aV(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.t.computeAlternateIcon=function(a){return a?a==="BACKSTAGE_ARTWORK"?"backstage:artwork":a:null};
_.t.computeFontFamily=function(a){return a==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.t.computeBackgroundStyle=function(a,W){if(a=this.computeBackgroundImage(a,W))if(a=_.Dg(a.thumbnails))return'background-image: url("'+a+'");'};
_.t.computeHasFullHeightImage=function(a){return!(!(a&&a.thumbnails&&a.thumbnails.length>0)||this.modern)};
_.t.isModernStyle=function(a){return a.style==="STYLE_MODERN"};
_.t.computeIcon=function(a,W){if(a&&a.icon)return W?a.iconDark:a.icon};
_.t.computeBackgroundImage=function(a,W){if(a&&a.backgroundImage)return W?a.backgroundImageDark:a.backgroundImage};
_.t.computeLogo=function(a,W){if(a&&a.logo)return W?a.logoDark:a.logo};
_.t.computeShouldShowModernIcon=function(a,W){return a&&!!W};
_.t.getLogoContainerClassName=function(a){return this.logoWithPadding(a)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.t.getLogoImageId=function(a){return this.logoWithPadding(a)?"mealbar-logo-with-padding":"mealbar-logo"};
_.t.logoWithPadding=function(a){var W,w,Z;return(a=(W=this.computeLogo(a,this.isDarkTheme))==null?void 0:(w=W.thumbnails)==null?void 0:(Z=w[0])==null?void 0:Z.height)&&a%31===0?!0:!1};
Tm.prototype.onThumbnailLoaded=Tm.prototype.onThumbnailLoaded;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.f([_.b({}),_.z("design:type",Object)],Tm.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.z("design:type",Boolean)],Tm.prototype,"modern",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Tm.prototype,"isDarkTheme",void 0);
_.f([_.b({computed:"computeIcon(data, isDarkTheme)"}),_.z("design:type",Object)],Tm.prototype,"icon",void 0);_.f([_.b({computed:"computeLogo(data, isDarkTheme)"}),_.z("design:type",Object)],Tm.prototype,"logo",void 0);_.f([_.b({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.z("design:type",Object)],Tm.prototype,"backgroundStyle",void 0);_.f([_.b({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.z("design:type",Object)],Tm.prototype,"alternateIcon",void 0);
_.f([_.b({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.z("design:type",Boolean)],Tm.prototype,"hasFullHeightImage",void 0);_.f([_.b({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.z("design:type",Boolean)],Tm.prototype,"useYoutubeSans",void 0);_.f([_.b({computed:"computeShouldShowModernIcon(modern, icon)"}),_.z("design:type",Boolean)],Tm.prototype,"shouldShowModernIcon",void 0);
_.f([_.E6("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Tm.prototype,"onThumbnailLoaded",null);Tm=_.f([_.TD({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Tm);
_.D(Tm,"yt-mealbar-promo-renderer",function(){if(NZz===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;ZR9===void 0&&(ZR9=document.createElement("template"));var Z=ZR9;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);NZz=a}a=NZz;return a},{mode:2});var tUX;var $hX;var Kq=function(){return _.u.apply(this,arguments)||this};
_.c(Kq,_.u);_.t=Kq.prototype;_.t.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]]"}}}}}};
_.t.computeHasButtons_=function(a){return!(!a.dismissButton&&!a.acceptButton)};
_.t.computeStyle_=function(a){return a||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.t.observeImpressionEndpoints_=function(){var a=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;_.Z9(a.hostElement,[W])})};
_.t.onTap_=function(){_.aV(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Kq.prototype.observeImpressionEndpoints_=Kq.prototype.observeImpressionEndpoints_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],Kq.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Kq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Kq.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Kq.prototype,"positionType",void 0);_.f([_.b({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.z("design:type",Boolean)],Kq.prototype,"hasButtons_",void 0);_.f([_.b({value:function(){return this.onTap_.bind(this)}}),
_.z("design:type",Function)],Kq.prototype,"boundOnTap_",void 0);_.f([_.b({value:{style:"mono-inverse"}}),_.z("design:type",Object)],Kq.prototype,"buttonOverride",void 0);_.f([_.a5("data.promoConfig.impressionEndpoints"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Kq.prototype,"observeImpressionEndpoints_",null);Kq=_.f([_.TD({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Kq);
_.D(Kq,"yt-tooltip-renderer",function(){if($hX===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;tUX===void 0&&(tUX=document.createElement("template"));var Z=tUX;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);$hX=a}a=$hX;return a},{mode:2});var BZX;var lua;var IuE={},Pl0=(IuE.WEB_REMIX="music.youtube.com",IuE),pq=function(){var a=_.u.apply(this,arguments)||this;a.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return a};
_.c(pq,_.u);_.t=pq.prototype;_.t.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.created=function(){this.embedHost_=Pl0[_.LF("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.t.ready=function(){_.M(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.t.computeEmbedCode_=function(a,W,w,Z,N){if(!a)return"";var B=a.videoId,I=a.fullListId,X=[];a.attributionId&&X.push("si="+a.attributionId);Z||X.push("controls=0");w&&Number(W)>0&&X.push("start="+W);I&&(B="videoseries",X.push("list="+I));w="https://"+(N?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+B;a.clipId&&(X.push("clip="+a.clipId),X.push("clipt="+a.clipTiming));W=X.length>0?w+"?"+X.join("&amp;"):w;a.encryptedEmbedConfig&&X.push("embed_config="+JSON.stringify({enc:a.encryptedEmbedConfig}));
X=X.length>0?w+"?"+X.join("&amp;"):w;_.r("web_sharing_embed_preview_killswitch")?_.M(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(X,a.previewWidth||854,a.previewHeight||480):(_.nI(this.videoPreviewContainer),_.M(this.videoPreviewContainer).appendChild(this.buildIframeElement(X)));return this.getEmbedCode_(W,a.width||560,a.height||315)};
_.t.buildIframeElement=function(a){var W=document.createElement("iframe"),w,Z;W.width=""+((Z=(w=this.data)==null?void 0:w.previewWidth)!=null?Z:854);var N,B;W.height=""+((B=(N=this.data)==null?void 0:N.previewHeight)!=null?B:480);_.YmC(W,2,a);W.title="YouTube video player";W.frameBorder="0";W.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";W.referrerPolicy="strict-origin-when-cross-origin";W.allowFullscreen=!0;return W};
_.t.computeIsSquareAspectRatio_=function(a){return a.previewHeight&&a.previewWidth?a.previewHeight==a.previewWidth:!1};
_.t.computeShowEmbedOptions_=function(a){return!!a.enablePrivacyModeOptionLabel||!!a.showPlayerControlsOptionLabel};
_.t.getEmbedCode_=function(a,W,w){return'<iframe width="'+W+'" height="'+w+'" 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>'};
_.t.handleSignalActionCopyShareEmbedUrl_=function(){_.M(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.t.handleSetTimestamp_=function(a){this.startAtTimeStamp_=(this.startAtChecked_=a.isSet)?a.timestamp:0};
_.t.closePanel_=function(){_.aV(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.t.onEmbedCode_=function(){_.M(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.t.onYtPopupClosed_=function(){_.nI(_.M(this.hostElement).querySelector("#video-preview"))};
_.t.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.A(this.data.actionButtons[0],_.J4)&&this.ytRendererBehavior.logExplicitClick(_.A(this.data.actionButtons[0],_.J4))};
pq.prototype.onYtPopupClosed_=pq.prototype.onYtPopupClosed_;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],pq.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],pq.prototype,"data",void 0);
_.f([_.b({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.z("design:type",String)],pq.prototype,"embedCode_",void 0);_.f([_.b({value:!0}),_.z("design:type",Boolean)],pq.prototype,"isPlayerControlsOptionChecked_",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],pq.prototype,"isPrivacyModeOptionChecked_",void 0);_.f([_.b({value:!1,notify:!0}),_.z("design:type",Boolean)],pq.prototype,"startAtChecked_",void 0);
_.f([_.b({value:0}),_.z("design:type",Number)],pq.prototype,"startAtTimeStamp_",void 0);_.f([_.b({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],pq.prototype,"isSquareAspectRatio_",void 0);_.f([_.w$("#video-preview"),_.z("design:type",HTMLElement)],pq.prototype,"videoPreviewContainer",void 0);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pq.prototype,"onYtPopupClosed_",null);
pq=_.f([_.TD({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],pq);
_.D(pq,"yt-sharing-embed-renderer",function(){if(lua===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;BZX===void 0&&(BZX=document.createElement("template"));var Z=BZX;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);lua=a}a=lua;return a},{mode:2});var XKd={};
XKd.YtUnlimitedFamilyInterstitialBehavior=[_.Ww.YtOpenPopupBehavior,_.d4.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=_.Lny(_.QV(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 W={openPopupAction:{popupType:"DIALOG",popup:{}}};W.openPopupAction.popup[a.renderer]=a.data;this.showingPreviousDialog_=!0;this.openPopup(W)}},
handleOpenPopupAction_:function(a){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var W=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(Z){return!!a.openPopupAction.popup[Z]}),w=this.getElementName_();
W&&this.data&&(this.pushToHistory({renderer:w,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(a){if(a=_.A(a,bzK))this.loading=!0,_.aV(this.hostElement,"yt-open-create-family-dialog",[a,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var a=this.hostElement.nodeName.split("-").slice(1).map(function(W){return""+W[0].toUpperCase()+W.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 vEX;var gEI;var rv=function(){return _.u.apply(this,arguments)||this};
_.c(rv,_.u);_.t=rv.prototype;_.t.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}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.aV(this.hostElement,"yt-register-create-family-dialog");_.M(this.hostElement).querySelector("#thumbnail").onShow()};
_.t.fireOnCloseCommand_=function(){var a;((a=this.data)==null?0:a.onCloseCommand)&&_.N1(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.t.onYtServiceRequestSent_=function(a,W){W&&W.endpoint&&_.A(W.endpoint,_.l0)||(this.loading=!0)};
_.t.onYtServiceRequestCompleted_=function(){var a=this.hostElement.parentElement;a.close&&a.close();this.loading=!1};
_.t.openPopupHandler_=function(a){if(a.detail==this){var W;((W=this.data)==null?0:W.onOpenCommands)&&_.N1(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.t.closePopupHandler_=function(a,W){this.fireOnCloseCommand_();if(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1){var w;((w=this.data)==null?0:w.onDismissCommands)&&_.N1(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.t.dataChanged_=function(){this.loading=!1};
rv.prototype.dataChanged_=rv.prototype.dataChanged_;rv.prototype.closePopupHandler_=rv.prototype.closePopupHandler_;rv.prototype.openPopupHandler_=rv.prototype.openPopupHandler_;rv.prototype.onYtServiceRequestCompleted_=rv.prototype.onYtServiceRequestCompleted_;rv.prototype.onYtServiceRequestSent_=rv.prototype.onYtServiceRequestSent_;_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],rv.prototype,"ytEventForwardingBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],rv.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(XKd.YtUnlimitedFamilyInterstitialBehavior),_.z("design:type",Object)],rv.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],rv.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],rv.prototype,"loading",void 0);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],rv.prototype,"onYtServiceRequestSent_",null);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],rv.prototype,"onYtServiceRequestCompleted_",null);
_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],rv.prototype,"openPopupHandler_",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],rv.prototype,"closePopupHandler_",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rv.prototype,"dataChanged_",null);
rv=_.f([_.TD({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],rv);
_.D(rv,"yt-unlimited-family-message-interstitial-renderer",function(){if(gEI===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;vEX===void 0&&(vEX=document.createElement("template"));var Z=vEX;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);gEI=a}a=gEI;return a},{mode:2});var oEz;var ksi;var An=function(){return _.u.apply(this,arguments)||this};
_.c(An,_.u);An.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"}}}};
An.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.M(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(a){a.onShow()});
_.M(this.hostElement).querySelector("#main-thumbnail").onShow()};
An.prototype.onButtonTap_=function(a){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(a)};
An.prototype.computeMainThumbnailWidth_=function(a){return a&&a.length!==0?72:96};
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.f([_.R(XKd.YtUnlimitedFamilyInterstitialBehavior),_.z("design:type",Object)],An.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],An.prototype,"data",void 0);
_.f([_.b({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.z("design:type",Number)],An.prototype,"mainThumbnailWidth_",void 0);_.f([_.b({value:function(){return this.onButtonTap_.bind(this)}}),
_.z("design:type",Function)],An.prototype,"boundButtonTap_",void 0);An=_.f([_.TD({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],An);
_.D(An,"yt-unlimited-family-profile-interstitial-renderer",function(){if(ksi===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;oEz===void 0&&(oEz=document.createElement("template"));var Z=oEz;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);ksi=a}a=ksi;return a},{mode:2});var Uhk;var OR0;var hn=function(){var a=_.u.apply(this,arguments)||this;a.sliderAriaValueText_=null;a.selectedIndex_=0;a.messages={PAUSE_SLIDER:_.P_("PAUSE_SLIDER",void 0,"Pause Duration")};return a};
_.c(hn,_.u);_.t=hn.prototype;_.t.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_]]"}}}}}};
_.t.onPopupOpened_=function(a){a.detail==this&&_.r("enable_premium_voluntary_pause")&&(_.aV(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.setDialogData=function(a){this.data=a;this.resetSlider_()};
_.t.dataChanged_=function(){this.data&&this.resetSlider_()};
_.t.onSubmitTap_=function(){if(this.data.confirmCommand){var a=this.data.confirmCommand;_.A(a,_.B4V)&&_.Z9(this.hostElement,[a,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.t.onExitButtonTap_=function(){_.aV(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.t.closePopupHandler_=function(a,W){(W&&W.canceled===!0||W.canceled===!1&&W.confirmed===!1)&&this.handleOnDismissCommands_()};
_.t.onSliderChange_=function(){this.selectedIndex_=_.M(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.t.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.t.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.t.resetSlider_=function(){if(this.data){var a=this.data.defaultEndOptionIndex||0,W=_.M(this.hostElement).querySelector("#id-pause-slider");if(W.immediateValue<a)for(;W.immediateValue!=a;)W.increment();else if(a<W.immediateValue)for(;W.immediateValue!=a;)W.decrement();this.selectedIndex_=a;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.t.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.N1(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.t.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.N1(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.t.onYtServiceRequestSent=function(){this.loading=!0};
_.t.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
hn.prototype.onYtServiceRequestCompleted=hn.prototype.onYtServiceRequestCompleted;hn.prototype.onYtServiceRequestSent=hn.prototype.onYtServiceRequestSent;hn.prototype.closePopupHandler_=hn.prototype.closePopupHandler_;hn.prototype.dataChanged_=hn.prototype.dataChanged_;hn.prototype.onPopupOpened_=hn.prototype.onPopupOpened_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],hn.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],hn.prototype,"loading",void 0);_.f([_.b(),_.z("design:type",Number)],hn.prototype,"selectIndexMax_",void 0);_.f([_.b(),_.z("design:type",Object)],hn.prototype,"selectedData_",void 0);
_.f([_.b(),_.z("design:type",Object)],hn.prototype,"sliderAriaValueText_",void 0);_.f([_.b({value:function(){return this.onSubmitTap_.bind(this)}}),
_.z("design:type",Function)],hn.prototype,"onButtonTap_",void 0);_.f([_.b({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.z("design:type",Function)],hn.prototype,"onSecondaryTap_",void 0);_.f([_.b(),_.z("design:type",Object)],hn.prototype,"messages",void 0);_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],hn.prototype,"onPopupOpened_",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hn.prototype,"dataChanged_",null);
_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],hn.prototype,"closePopupHandler_",null);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],hn.prototype,"onYtServiceRequestSent",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],hn.prototype,"onYtServiceRequestCompleted",null);hn=_.f([_.TD({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],hn);
_.D(hn,"yt-unplugged-pause-membership-dialog-renderer",function(){if(OR0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;Uhk===void 0&&(Uhk=document.createElement("template"));var Z=Uhk;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);OR0=a}a=OR0;return a},{mode:2});var SLk;var YLk;var iP=function(){return _.u.apply(this,arguments)||this};
_.c(iP,_.u);iP.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.r2("vcBalanceRenderer")}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],iP.prototype,"data",void 0);iP=_.f([_.TD({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],iP);
_.D(iP,"yt-vc-offer-layout-header-renderer",function(){if(YLk===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;SLk===void 0&&(SLk=document.createElement("template"));var Z=SLk;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);YLk=a}a=YLk;return a},{mode:2});var TZk;var KfD;var pKf;var rCn;var cx=function(){return _.u.apply(this,arguments)||this};
_.c(cx,_.u);cx.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.dU.Object.defineProperties(cx.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)}}});
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.gPA.YtTappableItemBehavior),_.z("design:type",Object)],cx.prototype,"ytTappableItemBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],cx.prototype,"data",void 0);
_.f([_.b({reflectToAttribute:!0}),_.Q("data.accessibilityText"),_.z("design:type",String),_.z("design:paramtypes",[])],cx.prototype,"ariaLabel",null);_.f([_.b({reflectToAttribute:!0}),_.Q("data.style"),_.z("design:type",String),_.z("design:paramtypes",[])],cx.prototype,"vcOfferStyle",null);_.f([_.Q("data.style","data.titleText"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],cx.prototype,"showTitleText",null);cx=_.f([_.TD({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],cx);
_.D(cx,"yt-vc-offer-renderer",function(){if(rCn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;pKf===void 0&&(pKf=document.createElement("template"));var Z=pKf;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);rCn=a}a=rCn;return a},{mode:2});var eP=function(){return _.u.apply(this,arguments)||this};
_.c(eP,_.u);eP.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}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],eP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],eP.prototype,"data",void 0);eP=_.f([_.TD({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],eP);
_.D(eP,"yt-vc-offer-layout-renderer",function(){if(KfD===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;TZk===void 0&&(TZk=document.createElement("template"));var Z=TZk;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);KfD=a}a=KfD;return a},{mode:2});var AC0;var hpn;var iR2;var cCn;var nq=function(){return _.u.apply(this,arguments)||this};
_.c(nq,_.u);nq.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}}}}}};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],nq.prototype,"data",void 0);nq=_.f([_.TD({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],nq);
_.D(nq,"yt-ypc-offers-modal-top-bar-renderer",function(){if(cCn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;iR2===void 0&&(iR2=document.createElement("template"));var Z=iR2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);cCn=a}a=cCn;return a},{mode:2});var jP=function(){return _.u.apply(this,arguments)||this};
_.c(jP,_.u);jP.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"}}}}};
jP.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
jP.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var a=this.scrollable;a.attached&&typeof a.attached==="function"&&a.attached()};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],jP.prototype,"ytRendererstamperBehavior",void 0);_.f([_.w$("#scrollable"),_.z("design:type",Object)],jP.prototype,"scrollable",void 0);_.f([_.b(),_.z("design:type",Object)],jP.prototype,"data",void 0);jP=_.f([_.TD({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],jP);
_.D(jP,"yt-ypc-offers-modal-renderer",function(){if(hpn===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;AC0===void 0&&(AC0=document.createElement("template"));var Z=AC0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);hpn=a}a=hpn;return a},{mode:2});var ep2;var nEI;var Lq=function(){return _.u.apply(this,arguments)||this};
_.c(Lq,_.u);_.t=Lq.prototype;_.t.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}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.M(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.t.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.aV(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.t.onYtPopupOpened_=function(a,W){(W==null?void 0:W.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.N1(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.t.onYtPopupClosed_=function(a,W){this.continueButtonTapped||W&&(W.canceled===!0||W.canceled===!1&&W.confirmed===!1)&&this.data.onDismissCommands&&_.N1(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.t.onYtServiceRequestError_=function(a){this.set("showSpinner",!1);_.W6(this.hostElement,a.detail.error.message)};
_.t.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.r("enable_ypc_spinners")?_.aV(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Lq.prototype.onYtServiceRequestError_=Lq.prototype.onYtServiceRequestError_;Lq.prototype.onYtPopupClosed_=Lq.prototype.onYtPopupClosed_;Lq.prototype.onYtPopupOpened_=Lq.prototype.onYtPopupOpened_;Lq.prototype.onYtServiceRequestCompleted_=Lq.prototype.onYtServiceRequestCompleted_;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);
_.f([_.b(),_.z("design:type",Object)],Lq.prototype,"data",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Lq.prototype,"showSpinner",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],Lq.prototype,"continueButtonTapped",void 0);_.f([_.b({value:function(){return this.onContinueTapped_.bind(this)}}),
_.z("design:type",Function)],Lq.prototype,"bindOnContinueTapped_",void 0);_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Lq.prototype,"onYtServiceRequestCompleted_",null);_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Lq.prototype,"onYtPopupOpened_",null);
_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Lq.prototype,"onYtPopupClosed_",null);_.f([_.E6("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Lq.prototype,"onYtServiceRequestError_",null);Lq=_.f([_.TD({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Lq);
_.D(Lq,"yt-ypc-upgrade-dialog-renderer",function(){if(nEI===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;ep2===void 0&&(ep2=document.createElement("template"));var Z=ep2;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);nEI=a}a=nEI;return a},{mode:2});var j8d;var Lf9;var Jn=function(){return _.u.apply(this,arguments)||this};
_.c(Jn,_.u);Jn.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Jn.prototype.computeHasButtons_=function(a){return!(!a.dismissButton&&!a.confirmButton)};
Jn.prototype.computeStyle_=function(a){return a||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],Jn.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],Jn.prototype,"ytRendererstamperBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],Jn.prototype,"data",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Jn.prototype,"positionType",void 0);
_.f([_.b({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.z("design:type",Boolean)],Jn.prototype,"hasButtons_",void 0);_.f([_.b({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Jn.prototype,"style_",void 0);Jn=_.f([_.TD({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Jn);
_.D(Jn,"yt-bubble-hint-renderer",function(){if(Lf9===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;j8d===void 0&&(j8d=document.createElement("template"));var Z=j8d;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Lf9=a}a=Lf9;return a},{mode:2});var JCX;var FfE;var FR=function(){var a=_.mo.apply(this,arguments)||this;a.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return a};
_.c(FR,_.mo);_.t=FR.prototype;_.t.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.t.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()})};
_.t.handleCheckBoxUpdateAction_=function(a){this.canShowCheckboxEnabledConfirmButton=a};
_.t.computeUseOverlayForSpinner_=function(a,W){return!!a&&W};
_.t.computeShowSpinner_=function(a,W){return a||!!W};
_.t.fireOnCloseActions_=function(){var a,W=_.l(((a=this.data)==null?void 0:a.onClosedActions)||[]);for(a=W.next();!a.done;a=W.next())this.ytRendererBehavior.resolveCommand(a.value)};
_.t.fireOnOpenCommands_=function(a){var W,w=(W=this.data)==null?void 0:W.onOpenCommands;if(w)for(a.stopImmediatePropagation(),a=_.l(w),W=a.next();!W.done;W=a.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.t.fireOnDismissCommands_=function(a){var W,w=(W=this.data)==null?void 0:W.onDismissCommands;if(w)for(a.stopImmediatePropagation(),a=_.l(w),W=a.next();!W.done;W=a.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.t.openPopupHandler_=function(a){a.detail==this&&this.fireOnOpenCommands_(a)};
_.t.closePopupHandler_=function(a,W){_.W_(this,"yt-confirm-dialog-close-action",[W]);this.fireOnCloseActions_();(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1)&&this.fireOnDismissCommands_(a)};
_.t.onHeaderImageChanged_=function(){var a;((a=this.data)==null?0:a.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.t.computeHasHeaderImageWidth_=function(a){return a!=void 0};
_.t.computeHasLoadingMessage=function(a){return!!a};
_.t.onHeaderImageWidthChanged_=function(){var a,W=(a=this.data)==null?void 0:a.headerImageWidth;if(W){if(a=1.25*W*2+W,this.$.main.style.width=a+"px",W=this.$.scroller.firstElementChild)W.style.minWidth=a+"px"}else this.$.main.style.width="100%"};
_.t.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")};
_.t.onYtNavigate_=function(a){a=_.QV(a);a instanceof Node&&_.di(this.$["confirm-button"]).contains(a)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.t.computePrimaryIsCancel_=function(a){return a};
_.t.computeIsCancelButtonHidden_=function(a){return a.skipCancelButton||!a.cancelButton};
_.t.computeIsCheckboxHidden_=function(a){return!a.checkbox};
_.t.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.t.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.t.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};
_.dU.Object.defineProperties(FR,{template:{configurable:!0,enumerable:!0,get:function(){if(FfE===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;JCX===void 0&&(JCX=document.createElement("template"));var Z=JCX;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);FfE=a}a=FfE;return a}}});
FR.prototype.onYtServiceRequestCompleted_=FR.prototype.onYtServiceRequestCompleted_;FR.prototype.onYtServiceRequestSent_=FR.prototype.onYtServiceRequestSent_;FR.prototype.onThumbnailLoaded_=FR.prototype.onThumbnailLoaded_;FR.prototype.onYtNavigate_=FR.prototype.onYtNavigate_;FR.prototype.onThumbnailChanged_=FR.prototype.onThumbnailChanged_;FR.prototype.onHeaderImageWidthChanged_=FR.prototype.onHeaderImageWidthChanged_;FR.prototype.onHeaderImageChanged_=FR.prototype.onHeaderImageChanged_;
FR.prototype.closePopupHandler_=FR.prototype.closePopupHandler_;FR.prototype.openPopupHandler_=FR.prototype.openPopupHandler_;_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],FR.prototype,"ytActionHandlerBehavior",void 0);_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],FR.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);
_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],FR.prototype,"ytEventForwardingBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],FR.prototype,"data",void 0);_.f([_.b({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.z("design:type",Boolean)],FR.prototype,"primaryIsCancel",void 0);_.f([_.b({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.z("design:type",Boolean)],FR.prototype,"isCancelButtonHidden",void 0);
_.f([_.b({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.z("design:type",Boolean)],FR.prototype,"isCheckboxHidden",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],FR.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.f([_.b({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.z("design:type",Boolean)],FR.prototype,"useOverlayForSpinner_",void 0);
_.f([_.b({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.z("design:type",Boolean)],FR.prototype,"showSpinner_",void 0);_.f([_.b({value:!1}),_.z("design:type",Boolean)],FR.prototype,"isActionInProgress_",void 0);_.f([_.b({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.z("design:type",Boolean)],FR.prototype,"hasHeaderImageWidth_",void 0);
_.f([_.b({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.z("design:type",Boolean)],FR.prototype,"hasLoadingMessage",void 0);_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],FR.prototype,"openPopupHandler_",null);_.f([_.E6("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],FR.prototype,"closePopupHandler_",null);
_.f([_.a5("data.headerImage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FR.prototype,"onHeaderImageChanged_",null);_.f([_.a5("data.headerImageWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FR.prototype,"onHeaderImageWidthChanged_",null);_.f([_.a5("data.thumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FR.prototype,"onThumbnailChanged_",null);
_.f([_.E6("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],FR.prototype,"onYtNavigate_",null);_.f([_.E6("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FR.prototype,"onThumbnailLoaded_",null);_.f([_.E6("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.jL]),_.z("design:returntype")],FR.prototype,"onYtServiceRequestSent_",null);
_.f([_.E6("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.x_]),_.z("design:returntype")],FR.prototype,"onYtServiceRequestCompleted_",null);FR=_.f([_.TD({is:"yt-confirm-dialog-renderer",noInjection:!0})],FR);var MUi;var Rp0;var MG=function(){return _.u.apply(this,arguments)||this};
_.c(MG,_.u);MG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.M(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
MG.prototype.computeConfirmButton_=function(a){var W={text:a.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};a.confirmNavigationEndpoint?W.navigationEndpoint=a.confirmNavigationEndpoint:a.confirmServiceEndpoint&&(W.serviceEndpoint=a.confirmServiceEndpoint);return W};
MG.prototype.computeShowTitle_=function(a){return!(a==null||!a.title)};
_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],MG.prototype,"data",void 0);_.f([_.b({computed:"computeShowTitle_(data)"}),_.z("design:type",Boolean)],MG.prototype,"showTitle",void 0);MG=_.f([_.TD({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],MG);
_.D(MG,"yt-fancy-dismissible-dialog-renderer",function(){if(Rp0===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;MUi===void 0&&(MUi=document.createElement("template"));var Z=MUi;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Rp0=a}a=Rp0;return a});var qLI;var Q89;var RO=function(){var a=_.u.apply(this,arguments)||this;a.spinnerActive=!1;return a};
_.c(RO,_.u);RO.prototype.created=function(){txk(2201)};
RO.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
RO.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
RO.prototype.onIronOverlayClosed=RO.prototype.onIronOverlayClosed;RO.prototype.onIronOverlayOpened=RO.prototype.onIronOverlayOpened;_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.GN),_.z("design:type",Object)],RO.prototype,"tpYtIronOverlayBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],RO.prototype,"data",void 0);_.f([_.b(),_.z("design:type",Object)],RO.prototype,"spinnerActive",void 0);
_.f([_.E6("iron-overlay-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RO.prototype,"onIronOverlayOpened",null);_.f([_.E6("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RO.prototype,"onIronOverlayClosed",null);RO=_.f([_.TD({is:"yt-loading-renderer",disableElementRegistration:!0})],RO);
_.D(RO,"yt-loading-renderer",function(){if(Q89===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;qLI===void 0&&(qLI=document.createElement("template"));var Z=qLI;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);Q89=a}a=Q89;return a},{mode:2});var xh0;var bRI;var qG=function(){var a=_.u.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};
_.c(qG,_.u);_.t=qG.prototype;_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.t.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.t.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.t.openPopupHandler_=function(a){a.detail===this.hostElement&&this.hostElement.hidden&&_.aV(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.t.onDismissButtonTap_=function(){var a;this.closeOnDismissButton_.has(((a=this.data)==null?void 0:a.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.aV(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.t.onAcceptButtonTap_=function(){var a;this.closeOnAcceptButton_.has(((a=this.data)==null?void 0:a.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.aV(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.t.computeHasHeader_=function(a){return!!a.headerBackgroundImage};
_.t.computeLayoutStyle_=function(a){return a};
_.t.computePopupSize_=function(a){return a};
_.t.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:""};
_.t.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")};
_.t.computeHasCustomLogo=function(a){return!(a==null||!a.headerForegroundImage)};
_.t.computeCustomLogo=function(a,W){if(a!=null&&a.headerForegroundImage)return a.headerForegroundImageDark?W?a.headerForegroundImageDark:a.headerForegroundImage:a.headerForegroundImage};
_.t.computeHeaderBackgroundImage=function(a,W){if(a!=null&&a.headerBackgroundImage)return W&&(a==null?0:a.headerBackgroundImageDark)?a.headerBackgroundImageDark:a.headerBackgroundImage};
_.t.shouldShowIconContainer=function(a,W){return a&&!W};
_.t.shouldShowNonYouTubeIcon=function(a,W){return!a&&!W};
_.t.getLogoImageId=function(a){var W,w,Z;return(a=(W=this.computeCustomLogo(a,this.isDarkTheme))==null?void 0:(w=W.thumbnails)==null?void 0:(Z=w[0])==null?void 0:Z.height)&&a%31===0?"custom-logo-with-padding":"custom-logo"};
qG.prototype.openPopupHandler_=qG.prototype.openPopupHandler_;qG.prototype.dataChanged_=qG.prototype.dataChanged_;_.f([_.R(_.fN.YtRendererstamperBehavior),_.z("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.f([_.b(),_.z("design:type",Boolean)],qG.prototype,"isDarkTheme",void 0);
_.f([_.b({computed:"computeCustomLogo(data, isDarkTheme)"}),_.z("design:type",Object)],qG.prototype,"customLogo",void 0);_.f([_.b({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.z("design:type",Object)],qG.prototype,"headerBackgroundImage",void 0);_.f([_.b(),_.z("design:type",Object)],qG.prototype,"data",void 0);_.f([_.b({computed:"computeHasHeader_(data)"}),_.z("design:type",Boolean)],qG.prototype,"hasHeader",void 0);
_.f([_.b({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.z("design:type",Object)],qG.prototype,"layoutStyle",void 0);_.f([_.b({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.z("design:type",Object)],qG.prototype,"popupSize",void 0);_.f([_.b({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],qG.prototype,"hasLogo",void 0);
_.f([_.b({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],qG.prototype,"hasCustomLogo",void 0);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qG.prototype,"dataChanged_",null);_.f([_.E6("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qG.prototype,"openPopupHandler_",null);
qG=_.f([_.TD({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],qG);
_.D(qG,"yt-upsell-dialog-renderer",function(){if(bRI===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;xh0===void 0&&(xh0=document.createElement("template"));var Z=xh0;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);bRI=a}a=bRI;return a},{mode:2});var s8f=_.xQ(function(a){return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.k(_.Y,{cond:a.title,then:function(W){return _.k("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},W)}}))},"mg"),uVf=_.xQ(function(a){return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.k(_.Ax,{data:a.closeButton},{buttonViewModel:function(W){return _.k("div",null,_.k(_.F7,{data:W.data}))}}))},"ng"),Cla=_.xQ(function(a){var W=
a.data;
return _.k(_.Ha,null,_.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.k(_.Y,{cond:function(){return!!W().image&&!!W().title},
then:function(){return _.k(_.qw,{data:function(){return W().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.k(_.Y,{cond:function(){return W().title},
then:function(w){return _.k("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},w)}}),_.k(_.Y,{cond:function(){return W().primaryGenre},
then:function(w){return _.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},w)}}))),_.k(_.Y,{cond:function(){var w=W().description;
return w&&w.length<=150},
then:function(){return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return W().description}))}}))},"og"),Gs0=_.xQ(function(a){a=a.infoRows;
var W=_.K().resolve(_.c4),w=_.r("enable_displaying_ppn");return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.k(_.k6,{each:a},function(Z){return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.k(_.Y,{cond:function(){return Z.label},
then:function(N){return _.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},N)}}),_.k(_.Y,{cond:function(){return Z.attributedLabel},
then:function(N){return _.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.k(_.k_,{text:N,noPreWrap:!0}))}}),_.k(_.Y,{cond:function(){return Z.value},
then:function(N){return _.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},N)}}),_.k(_.Y,{cond:function(){return Z.attributedValue},
then:function(N){return _.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.k(_.k_,{text:N,noPreWrap:!0}))}}))}),_.k(_.Y,{cond:function(){return w&&W.clientData.has("post_play_nonce")},
then:function(){return _.k("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.k("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},W.getData("post_play_nonce")))}}))},"pg"),Dh9=_.xQ(function(a){var W=a.data;
return _.k("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.k(s8f,{title:function(){return W().dialogTitle}}),_.k(Cla,{data:W}),_.k(_.Y,{cond:function(){return W().infoRow},
then:function(w){return _.k(Gs0,{infoRows:w})}}),_.k(uVf,{closeButton:function(){return W().closeButton}}))},"qg");
Dh9.idomCompat=!0;_.Ct(Dh9,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;return _.k("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.k(_.qw,{data:function(){return W().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.k("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.k("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.k(_.Y,{cond:function(){var w=W().ytLogo;return w?w.iconType:null},
then:function(w){return _.k(_.P$,{icon:w,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.k("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.k("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.k(_.k_,{text:function(){return W().title}})),_.k("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.k(_.k_,{text:function(){return W().body}})),_.k("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.k(_.k_,{text:function(){return W().verifyStateText}}))),
_.k("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.k("div",null,_.k(_.Ax,{data:function(){return W().dismissButton}},{buttonViewModel:_.F7})),_.k("div",null,_.k(_.Ax,{data:function(){return W().linkParentButton}},{buttonViewModel:_.F7})))))},"rg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.qR}});var fud=_.xQ(function(a){var W=a.data;return _.k("installment-agreements-view-model",{class:_.W$("ytInstallmentAgreementsViewModelHost")},_.k(_.k6,{each:_.qt(function(){return W().agreements},[])},function(w){return _.k("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.k("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.k(_.k_,{text:w.label})),_.k("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.k(_.Ax,{data:function(){return w.openButton}},{buttonViewModel:_.F7})))}))},
"sg");
fud.idomCompat=!0;var dh2=_.xQ(function(a){return _.k("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.k(_.k_,{text:function(){return a.data().inviteMessage}})),_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.k(_.k_,{text:function(){return a.data().attributedAccountSectionHeaderText}})),_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.k(_.Ax,{data:function(){return a.data().accountAvatar}},{avatarViewModel:_.c6}),_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.k(_.k_,{text:function(){return a.data().accountName}}),_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.k(_.k_,{text:function(){return a.data().handle}}))),_.k(_.Ax,{data:function(){return a.data().trailingButton}},{buttonViewModel:_.F7})),_.k("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.k(_.k_,{text:function(){return a.data().termsOfService}})))},"tg");var mhI=_.xQ(function(a){var W=_.l(_.l5(function(){var aC,Bv;return((aC=a.data().createPlaylistDialogFormSchema)==null?0:(Bv=aC.initialValues)==null?0:Bv.title)?a.data().createPlaylistDialogFormSchema.initialValues.title:""})),w=W.next().value,Z=W.next().value;
W=_.l(_.l5(function(){a.data();return!1}));
var N=W.next().value,B=W.next().value;W=_.l(_.l5(function(){a.data();return!1}));
var I=W.next().value,X=W.next().value;W=_.l(_.l5(function(){var aC,Bv;return(aC=a.data().createPlaylistDialogFormSchema)==null?void 0:(Bv=aC.initialValues)==null?void 0:Bv.visibility}));
var v=W.next().value,U=W.next().value;W=_.l(_.l5(function(){a.data();return!1}));
var O=W.next().value,S=W.next().value;W=_.l(_.l5(function(){var aC,Bv;return(aC=a.data().createPlaylistDialogFormSchema)==null?void 0:(Bv=aC.initialValues)==null?void 0:Bv.isCollaborative}));
var T=W.next().value,p=W.next().value,h=_.D8();_.Ka(function(){var aC=h.value.querySelector("textarea");aC&&(aC.value=w())});
_.AS(function(){var aC;_.pM9((aC=a.data().createPlaylistDialogFormSchema)==null?void 0:aC.id,{onSubmit:function(){var Bv=w();var Am=v(),e9=T(),cv=a.data();Bv={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:Bv,privacyStatus:Am,videoIds:cv.videoIds,sourcePlaylistId:cv.sourcePlaylistId,params:e9?cv.createPlaylistParamsCollaborationEnabled:cv.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.K().resolve(_.zU).resolveCommand(Bv)},
isValid:function(){return N()&&!I()&&!O()}})});
var L=function(aC){if(aC!==void 0&&(Z(aC),!N()&&aC.length>0&&B(!0),N())){var Bv=kX2(a.data());if(Bv){var Am=Bv.minLength;Bv=Bv.maxLength;Am&&aC.length<Am?X(!0):Bv&&aC.length>Bv?X(!0):X(!1)}}},F=function(){var aC=!(!T()||v()!=="PRIVATE");
S(aC)},x=function(aC){aC!==void 0&&(U(aC),F())},G=function(){if(O())return OCD(a.data())},V=function(){p(!T());
F()},d=function(){return{validate:function(aC){if(N()){var Bv=kX2(a.data());
if(Bv){var Am=Bv.minLength;Bv=Bv.translations;if(Am&&aC.length<Am)return Bv==null?void 0:Bv.minLengthErrorMessage}}}}},ZD=function(){var aC=kX2(a.data()),Bv=aC==null?void 0:aC.maxLength,Am;
aC=aC==null?void 0:(Am=aC.translations)==null?void 0:Am.maxLengthErrorMessage;if(Bv&&aC)return{maxChars:Bv,errorMessage:aC}};
return _.k("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.k("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:h},_.k(_.Ax,{data:function(){return a.data().playlistTitle}},{textFormFieldViewModel:function(aC){return _.k(_.Nzf,{data:aC.data,
text:w,onInput:L,validation:d,characterLimit:ZD})},
textFieldViewModel:function(aC){return _.k(_.Z3z,{data:aC.data,text:w,onInput:L,validation:d,characterLimit:ZD})}})),_.k("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.k(_.Ax,{data:function(){return a.data().playlistVisibility}},{dropdownViewModel:function(aC){return _.k(_.UYX,{data:aC.data,
onSelected:x,error:G})}})),_.k(_.Y,{cond:function(){return!!a.data().playlistCollaborate},
then:function(){return _.k("div",null,_.k(_.Ax,{data:function(){return a.data().playlistCollaborate}},{switchListItemViewModel:function(aC){return _.k(_.Ta,{data:aC.data,
onTap:V})}}))}}))},"ug");var VUn=_.xQ(function(a){var W=_.qt(a.noPadding,!1),w=function(){var N,B;return(B=(N=a.data().logo.accessibilityData)==null?void 0:N.label)!=null?B:""},Z={};
return _.k("upsell-view-model",{class:_.W$("ytUpsellViewModelHost",(Z.ytUpsellViewModelHostNoPadding=function(){return W()},Z))},_.k("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.k(_.Y,{cond:function(){return _.He(a.data().logo)},
then:function(N){return _.k(_.qw,{data:N,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:w})}})),_.k("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.k(_.k_,{text:function(){return a.data().title}})),_.k("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.k(_.k6,{each:function(){var N;
return(N=a.data().subtitles)!=null?N:[]},
keyBy:"INDEX"},function(N){return _.k("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.k(_.k_,{text:N}))})),_.k("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.k(_.k6,{each:function(){var N;
return(N=a.data().benefitInfos)!=null?N:[]},
keyBy:"INDEX"},function(N){return _.k(_.Y,{cond:function(){return N().info},
then:function(B){return _.k("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.k(_.P$,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.k(_.k_,{text:B}))}})})),_.k("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.k(_.k6,{each:function(){var N;
return(N=a.data().legalInfos)!=null?N:[]},
keyBy:"INDEX"},function(N){return _.k("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.k(_.k_,{text:N}))})))},"vg");var zpz=_.xQ(function(a){var W=a.data;a={};a=(a.ytMiniAppScoreChallengeViewModelScoreRadial=!0,a.ytMiniAppScoreChallengeViewModelDarkScoreRadial=S60(),a);return _.k("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.k("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return W().title}),_.k("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return W().subtitle}),_.k("div",{class:_.ZK(a)},_.k("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return W().score})),_.k("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return W().prompt}))},"wg");var HRf=function(){this.store=_.FM();this.formId=""};var yCX=_.xQ(function(a){function W(X){if(X&&(X=_.A(X,_.UB)))return Object.assign({},X,{isSelected:B()})}
var w=_.l(_.l5(function(){var X,v;return(v=(X=_.A(a.data().option,_.UB))==null?void 0:X.isSelected)!=null?v:!1})),Z=w.next().value,N=w.next().value,B=Z;
_.AS(function(){var X;_.pM9((X=a.data().formSchema)==null?void 0:X.id,{onSubmit:function(){var v=_.K().resolve(_.zU),U=!!a.data().selectedCommand,O=!!a.data().unselectedCommand;if(B()){if(U)var S=a.data().selectedCommand}else O&&(S=a.data().unselectedCommand);S=_.rJ(S);W(a.data().option)&&!S?(v="",!U&&O?v="selected ":U&&!O&&(v="unselected "),U=new _.Uw("No "+v+"command found for SelectionListItemFormViewModel"),_.eJ(U)):S&&v.resolveCommand(S)},
isValid:function(){return!0}})});
var I=function(){N(!B())};
_.Ao(function(){var X,v,U=(X=a.data())==null?void 0:(v=X.formSchema)==null?void 0:v.id;U&&_.Thz()().delete(U)});
return _.k("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.k("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.k(_.k_,{text:function(){return a.data().paragraph}})),_.k(_.Y,{cond:function(){return W(a.data().option)},
then:function(X){return _.k(_.Yy,{data:X,isCompact:!0,hideSelectionTextChevron:!0,onTap:I,disableHorizontalPadding:!0})}}))},"xg");var EE2=_.xQ(function(a){var W=a.data;var w=a.disablePadding;var Z=a.className;var N=_.D8(),B=function(){return Y6d(W().banner,W().assetContainerPaddingStyle)},I=function(){return Y6d(W().imageBanner,W().assetContainerPaddingStyle)},X=function(){return W().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.AS(function(){var v=function(){_.aV(N.value,"yt-refit-popups-action")},U;
(U=N.value)==null||U.addEventListener("image-loaded",v);_.Ao(function(){var O;(O=N.value)==null||O.removeEventListener("image-loaded",v)})});
a={};return _.k("yt-dialog-header-view-model",{el:N,class:_.W$(Z,(a.ytDialogHeaderViewModelHost=!0,a.ytDialogHeaderViewModelHostDisablePadding=w,a))},_.k(_.Y,{cond:function(){return W().banner},
then:function(){var v={};return _.k("div",{class:_.W$(Z,(v.ytDialogHeaderViewModelBanner=!0,v.ytDialogHeaderViewModelBannerFullBleed=X,v)),style:_.It({"max-height":function(){return W().assetContainerMaxHeight?W().assetContainerMaxHeight+"px":""}})},_.k(_.fd,{data:B,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.k(_.Y,{cond:function(){return W().imageBanner},
then:function(){var v={};return _.k("div",{class:_.W$(Z,(v.ytDialogHeaderViewModelBanner=!0,v.ytDialogHeaderViewModelBannerFullBleed=X,v)),style:_.It({"max-height":function(){return W().assetContainerMaxHeight!==void 0?W().assetContainerMaxHeight+"px":void 0}})},_.k(_.fd,{data:I,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.k(_.Y,{cond:function(){return W().customAssetContainer},
then:function(v){return _.k("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.k(_.Ax,{data:v},{avatarStackViewModel:_.Yl}))}}),_.k(_.Y,{cond:function(){return W().customBanner},
then:function(v){return _.k("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.k(_.Ax,{data:v},{avatarStackViewModel:_.Yl}))}}),_.k(_.Y,{cond:function(){return W().headline},
then:function(v){return _.k("h2",null,_.k(_.k_,{text:v,className:"ytDialogHeaderViewModelText"}))}}))},"yg");
EE2.idomCompat=!0;var aXE=_.xQ(function(a){var W=_.rKf(function(){return a.data().formId}),w=W.onSubmit,Z=W.isValid;
return _.k("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.k(_.Ax,{data:function(){return a.data().panelFooter}},{panelFooterViewModel:function(N){return _.k(_.Qi,{data:N.data,
disablePadding:!0,disablePrimaryButton:function(){return!Z()},
onClickPrimaryButton:function(){w()}})}}))},"zg");var ZOa=_.xQ(function(a){var W=_.Qn(a,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),w=W.elRefCallback;a=W.iconWiz;var Z=W.assetWiz,N=W.assetType,B=W.titleWiz,I=W.leadingActionHeaderWiz,X=W.trailingActionHeaderWiz,v=W.headerPosition,U=W.contentWiz,O=W.buttonLayout,S=W.buttonStyle,T=W.primaryButtonWiz,p=W.secondaryButtonWiz,h=W.contentAlignment,L=W.isFullscreen,F=W.width,x=W.maxHeight,G=W.isHeaderWizDefined,
V=W.headerWiz,d=W.isFooterWizDefined,ZD=W.footerWiz;W=_.D8(function(QF){w==null||w(QF)});
var aC=Z?function(){return Z({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,Bv=T?function(){var QF={};
return T({buttonOverrides:function(){return{style:(S==null?void 0:S())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.W$((QF["yt-spec-dialog-layout__dialog-layout-button"]=!0,QF["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(O==null?void 0:O())===0||(O==null?void 0:O())===2},QF))})}:void 0,Am=p?function(){var QF={};
return p({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.W$((QF["yt-spec-dialog-layout__dialog-layout-button"]=!0,QF["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(O==null?void 0:O())===0||(O==null?void 0:O())===2},QF))})}:void 0,e9=function(){return(!!B||!!I||!!X)&&v()===0},cv={},C7={},RC={},G8={};
return _.k("dialog-layout",{el:W,class:_.W$((cv["yt-spec-dialog-layout"]=!0,cv["yt-spec-dialog-layout--dialog-layout-fullscreen"]=L,cv["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!L()},cv["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return x()===1},cv["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(N==null?void 0:N())===1},cv)),
style:function(){return(F==null?void 0:F())!==void 0?"width: "+F+"px;":""}},a?_.k("div",{class:_.W$((C7["yt-spec-dialog-layout__dialog-layout-icon"]=!0,C7["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!Z&&v()===1},C7["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return h()===1},C7))},_.k(a,null)):null,_.k(_.Y,{cond:G,
then:function(){return V?_.k("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.k(V,null)):null},
else:function(){return _.k(_.Ha,null,_.k(_.Y,{cond:e9,then:function(){return _.k(W92,{contentAlignment:h,LeadingActionHeader:I,TrailingActionHeader:X,Title:B,isAboveAsset:!!aC})}}),aC?_.k("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.k(aC,null)):null)}}),_.k("div",{class:_.W$((RC["yt-spec-dialog-layout__dialog-layout-container"]=!0,RC["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(h==null?void 0:h())===1},RC["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!B&&!V||!!aC&&(v==null?void 0:v())===0},RC))},_.k(_.Y,{cond:function(){return B&&!V&&(v==null?void 0:v())===1},
then:function(){return _.k(W92,{contentAlignment:h,LeadingActionHeader:I,TrailingActionHeader:X,Title:B,isAboveAsset:!1})}}),U?_.k("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.k("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.k(U,null))):null,_.k(_.Y,{cond:d,
then:function(){return ZD?_.k("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.k(ZD,null)):null}}),Bv||Am?_.k(wL0,{footerClasses:_.W$((G8["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,G8["yt-spec-dialog-layout__dialog-layout-footer"]=!0,G8["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(O==null?void 0:O())===2},G8["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(O==null?void 0:O())===1},G8)),
PrimaryButton:Bv,SecondaryButton:Am}):null))},"Ag"),W92=_.xQ(function(a){var W=_.Qn(a,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),w=W.contentAlignment,Z=W.LeadingActionHeader;a=W.Title;var N=W.TrailingActionHeader,B=W.isAboveAsset,I=W.enableLeadingActionHeader;W={};return _.k("div",{class:_.W$((W["yt-spec-dialog-layout__dialog-header-container"]=!0,W["yt-spec-dialog-layout__dialog-header"]=!0,W["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=B,W["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(w==null?void 0:w())===1&&I()},W))},_.k(_.Y,{cond:function(){return I()},
then:function(){return Z?_.k("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.k(Z,null)):null}}),a?_.k("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.k(a,null)):null,N?_.k("div",null,_.k(N,null)):null)},"Bg"),wL0=_.xQ(function(a){var W=a.footerClasses;
var w=a.PrimaryButton;a=a.SecondaryButton;return _.k("div",{class:W},a?_.k(a,null):null,w?_.k(w,null):null)},"Cg");var Ns0=_.xQ(function(a){var W=a.data;return _.k("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.k("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.k(_.Ax,{data:function(){return W().avatar}},{avatarViewModel:_.c6})),_.k("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.k(_.k_,{text:function(){return W().title}})),_.k(_.k_,{text:function(){return W().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Dg");var tb2=_.xQ(function(a){var W=a.data;return _.k("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.k("div",{class:"ytAccessConfirmationViewModelContent"},_.k(_.Ax,{data:function(){return W().dualAvatar}},{dualAvatarViewModel:function(w){return _.k("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.k(_.y_T,{data:w.data}))}}),_.k("h2",{class:"ytAccessConfirmationViewModelTitle"},_.k(_.k_,{text:function(){return W().title}})),_.k(_.k_,{text:function(){return W().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Eg");var $39=_.xQ(function(a){var W=a.data;var w=void 0;a=_.l(_.$1("",void 0,"O14qgc"));var Z=a.next().value,N=a.next().value,B,I=function(){N("");var U;(U=w)!=null&&U.store.dispatch(_.E_({type:"RESET_COMMAND_MAP"}))};
_.AS(function(){w=new HRf;window.addEventListener("yt-popup-closed",I)});
_.Ka(function(){if(w&&B!==W().formId){var U=w,O=W();O.formId&&(U.formId=O.formId,U.store.dispatch(_.E_({type:"SET_CURRENT_FORM_ID",payload:{formId:U.formId}})));B=W().formId}});
_.Ao(function(){window.removeEventListener("yt-popup-closed",I)});
var X=function(U,O,S){O.key&&S&&O.key!==Z()&&(N(O.key),w&&O.command&&w.store.dispatch(_.E_({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:S,command:O.command}})))},v=function(){if(_.A(W().content,_.xkK))return!(Z==null?0:Z())};
return _.k("yt-dialog-view-model",{class:_.W$("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.k(ZOa,{headerWiz:function(){return _.k("span",{skip:!0},_.k(_.Ax,{data:function(){return W().header}},{dialogHeaderViewModel:function(U){return _.k(EE2,{data:U.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!W().header},
contentWiz:function(){return _.k("span",{skip:!0},_.k(_.Ax,{data:function(){return W().customContent?W().customContent:W().content}},{basicContentViewModel:_.nRK,
createPlaylistDialogFormViewModel:mhI,collaborativePlaylistInviteMessageViewModel:dh2,miniAppScoreChallengeViewModel:zpz,radioButtonGroupViewModel:function(U){return _.k(_.gq2,{data:U.data,selectedKey:Z,onSelected:X})},
selectionListItemFormViewModel:yCX,upsellViewModel:function(U){return _.k(VUn,{data:U.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Ns0,installmentAgreementsViewModel:fud,accessConfirmationViewModel:tb2,listViewModel:_.eoE}))},
footerWiz:function(){return _.k("span",{skip:!0},_.k(_.Ax,{data:function(){return W().footer}},{panelFooterViewModel:function(U){return _.k(_.Qi,{data:U.data,
disablePadding:!0,disablePrimaryButton:v})},
formPanelFooterViewModel:aXE,formFooterViewModel:function(U){return _.k(_.ap9,{data:U.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!W().footer}}))},"Fg");
$39.idomCompat=!0;_.Ct($39,"yt-dialog-view-model",{props:{data:_.qR},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var BsK=_.xQ(function(a){var W=a.data;a={};return _.k("yt-panel-header-view-model",{class:_.W$("yt-panel-header-view-model-wiz",(a["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!W().shouldHideDivider},a["yt-panel-header-view-model-wiz--compact"]=function(){return!!W().subtitle},a))},_.k("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.k(_.Y,{cond:function(){return W().title},
then:function(w){return _.k(_.k_,{text:w,className:"yt-panel-header-view-model-wiz__title"})}}),_.k(_.Y,{cond:function(){return W().subtitle},
then:function(w){return _.k(_.k_,{text:w,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.k("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.k(_.Ax,{data:function(){return W().trailingButtons}},{buttonViewModel:function(w){return _.k(_.F7,{data:w.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Gg");
BsK.idomCompat=!0;var lXf=_.xQ(function(a){var W=_.$_(function(B){var I;if((I=a.skipContentClick)==null?0:I.call(a))return!1;a.onContentWrapperClick(B);return!0}),w,Z,N;
return _.k("div",{class:_.W$("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":""}},(w=a.header)==null?void 0:w.call(a),_.k("div",{id:a.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.It({"max-height":(0,_.Oh)(a.maxHeightForContentWrapper)}),"on:scroll":r7X(a.onScroll),"on:touchmove":r7X(function(B){return void B.stopPropagation()})},_.k("div",{el:{onRender:a.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":W},(Z=a.body)==null?void 0:Z.call(a))),(N=a.footer)==null?void 0:N.call(a))},"Hg");
lXf.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var IXa=_.xQ(function(a){var W=_.qt(a.leadingLabel),w=_.qt(a.trailingLabel),Z=_.qt(a.footerButtonType),N=function(){return W()||w()||a.hasPrimaryButton()||a.hasSecondaryButton()},B={},I=_.W$("yt-spec-bottom-sheet-layout__primary-button",(B["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return Z()===0&&a.hasPrimaryButton()},B["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return Z()===1&&a.hasPrimaryButton()},B["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return Z()===2&&a.hasPrimaryButton()},B["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return Z()===3&&a.hasPrimaryButton()},B));
B={};var X=_.W$("yt-spec-bottom-sheet-layout__secondary-button",(B["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return Z()===1&&a.hasSecondaryButton()},B["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return Z()===2&&a.hasSecondaryButton()},B["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return Z()===3&&a.hasPrimaryButton()},B));
return _.k(_.Y,{cond:a.hasFooterOverride,then:function(){var v;return _.k(_.Ha,null,(v=a.footerOverride)==null?void 0:v.call(a))},
else:function(){return _.k(_.Y,{cond:N,then:function(){return _.k("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.k(_.Y,{cond:function(){return W()||w()},
then:function(){var v={};return _.k("div",{class:_.W$("yt-spec-bottom-sheet-layout__footer-label-wrapper",(v["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!a.hasPrimaryButton()},v))},_.k(_.Y,{cond:W,
then:function(){return _.k("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},W)}}),_.k(_.Y,{cond:w,
then:function(){return _.k("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},w)}}))}}),_.k(_.Y,{cond:function(){return a.hasPrimaryButton()||a.hasSecondaryButton()},
then:function(){var v={};return _.k("div",{class:_.W$("yt-spec-bottom-sheet-layout__footer-button-wrapper",(v["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.ACV,v))},_.k(_.Y,{cond:function(){return a.hasSecondaryButton()&&Z()!==0},
then:function(){var U;return _.k("div",{class:X},(U=a.secondaryButton)==null?void 0:U.call(a))}}),_.k(_.Y,{cond:a.hasPrimaryButton,
then:function(){var U;return _.k("div",{class:I},(U=a.primaryButton)==null?void 0:U.call(a))}}))}}))}})}})},"Ig");
IXa.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var PDi=_.xQ(function(a){var W=_.qt(a.title),w=_.qt(a.subtitle),Z=_.$_(function(I){var X;(X=a.touchstart)==null||X.call(a,I);return!1}),N=_.$_(function(I){var X;
(X=a.touchmove)==null||X.call(a,I);return!1}),B=_.$_(function(I){var X;
(X=a.touchend)==null||X.call(a,I);return!1});
return _.k("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:a.headerId,"on:touchstart":Z,"on:touchmove":N,"on:touchend":B},_.k("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.k(_.Y,{cond:a.hasHeaderOverride,then:function(){var I;return _.k(_.Ha,null,(I=a.headerOverride)==null?void 0:I.call(a))},
else:function(){var I={};return _.k("div",{class:_.W$((I["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,I["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=W,I))},_.k("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.k(_.Y,{cond:W,then:function(){return _.k(_.Ha,null,_.k("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},W),_.k(_.Y,{cond:w,then:function(){return _.k("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
w)}}))}})),_.k(_.Y,{cond:function(){return W()&&a.hasActionHeader()},
then:function(){var X;return _.k("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(X=a.actionHeader)==null?void 0:X.call(a))}}))}}))},"Jg");
PDi.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.xQ(function(a){function W(aC){if(!x&&typeof MutationObserver!=="undefined"){var Bv={childList:!0};"MutationObserver"in window&&(x=new MutationObserver(w.bind(void 0,aC)),x.observe(aC,Bv))}}
function w(aC){typeof x!=="undefined"&&(G["content-wrapper"]===void 0&&(G["content-wrapper"]=aC.children[0].clientHeight),p(G["content-wrapper"]),T()>h()||L(T()))}
function Z(){S(window.innerHeight);T()>h()||L(T());V.isFullScreen[0]()&&T()>h()?d().dispatch("Snap To Full Screen",{maxHeight:F()}):d().dispatch("Snap To Neutral Position",{maxHeight:h()})}
function N(aC){document.body.style.overscrollBehavior="none";aC.preventDefault();d().dispatch("Touch Start",{event:aC})}
function B(aC){aC.preventDefault();d().dispatch("Touch Move",{event:aC,contentScrollable:T()>h(),fullContentWrapperHeight:F(),contentWrapperHeight:h(),contentHeightMap:G,contentWrapperId:"content-wrapper",header:h5k(a),footer:h5k(a)})}
function I(){document.body.style.overscrollBehavior="";V.isFullScreen[0]()?V.currentY[0]()>=60?d().dispatch("Snap To Neutral Position",{maxHeight:h()}):d().dispatch("Snap To Full Screen",{maxHeight:F()}):V.currentY[0]()>=60?X():V.currentY[0]()<=-60&&T()>h()?d().dispatch("Snap To Full Screen",{maxHeight:F()}):d().dispatch("Snap To Neutral Position",{maxHeight:h()})}
function X(){d().dispatch("Close Sheet",{clientHeight:O(),maxHeight:0});setTimeout(function(){A79()},250)}
var v=_.l(_.$1(window.innerHeight,void 0,"NWeFS")),U=v.next().value;v=v.next().value;var O=U,S=v;v=_.l(_.$1(0,void 0,"oxfm4"));U=v.next().value;v=v.next().value;var T=U,p=v;v=_.l(_.l5(function(){var aC=h5k(a);return.6*O()-Tid(aC)-Khd(aC)}));
U=v.next().value;v=v.next().value;var h=U,L=v,F=function(){var aC=h5k(a);return O()-Tid(aC)-Khd(aC)-24-24},x=null,G={},V={initialY:_.$1(0,void 0,"cYBE5c"),
currentY:_.$1(0,void 0,"RndqHc"),isAnimating:_.$1(!1,void 0,"vO9DVd"),isFullScreen:_.$1(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.l5(h)},d=function(){var aC=null;return function(){if(!aC){var Bv={initialY:V.initialY[0](),currentY:V.currentY[0](),isAnimating:V.isAnimating[0](),isFullScreen:V.isFullScreen[0](),maxHeightForContentWrapper:V.maxHeightForContentWrapper[0]()};aC=puk(Bv)}return aC}}();
_.AS(function(){window.addEventListener("resize",Z);d().subscribe(function(aC){V.initialY[1](aC.initialY);V.currentY[1](aC.currentY);V.isAnimating[1](aC.isAnimating);V.isFullScreen[1](aC.isFullScreen);V.maxHeightForContentWrapper[1](aC.maxHeightForContentWrapper)})});
_.Ao(function(){window.removeEventListener("resize",Z);x&&(x.disconnect(),x=null)});
var ZD=_.W$({"bottom-sheet-content-without-icon":function(){var aC;return!((aC=a.shouldShowIcons)==null?0:aC.call(a))}});
return _.k("bottom-sheet-layout",null,_.k(lXf,{contentWrapperId:"content-wrapper",isAnimating:function(){return V.isAnimating[0]()},
currentY:function(){return V.currentY[0]()},
maxHeightForContentWrapper:function(){return V.maxHeightForContentWrapper[0]()},
shouldShowIcons:a.shouldShowIcons,skipContentClick:a.skipContentClick,onScroll:function(){var aC=document.getElementById("header-wrapper"),Bv=document.getElementById("content-wrapper");if(aC&&Bv){var Am={};Am=(Am["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Am["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Am);aC.className=Bv.scrollTop>1?_.ZK(Am):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:A79,contentWrapperEl:function(aC){W(aC);requestAnimationFrame(function(){w(aC)})},
header:function(){return _.k(PDi,{touchstart:N,touchmove:B,touchend:I,title:a.headerTitle,subtitle:a.headerSubtitle,headerId:"header-wrapper",headerOverride:a.headerFn,hasHeaderOverride:a.hasHeaderFn,actionHeader:a.headerActionHeader,hasActionHeader:a.hasHeaderActionHeader})},
footer:function(){return _.k(IXa,{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 _.k(_.Y,{cond:a.hasContentFn,then:function(){var aC;return _.k("div",{class:ZD},(aC=a.contentFn)==null?void 0:aC.call(a))}})}}))},"Kg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var XLn=_.xQ(function(a){var W=_.K().resolve(_.Yt),w=_.$_(function(){return void W.closeSheet()});
return _.k("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":w},_.k(_.Y,{cond:function(){return!!a.header},
then:function(){return _.k("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},a.header())}}),_.k(_.Y,{cond:function(){return!!a.content},
then:function(){return _.k("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},a.content())}}),_.k(_.Y,{cond:function(){return!!a.footer},
then:function(){return _.k("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},a.footer())}}))},"Lg");
XLn.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var vyD=_.xQ(function(a){a=a.data;var W={};return _.k("yt-sheet-view-model",{class:_.W$("yt-sheet-view-model-wiz",(W["yt-sheet-view-model-wiz--contextual"]=!0,W["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.r("web_disable_backdrop_filter"),W))},_.k(_.Y,{cond:a,then:function(w){return _.k(XLn,{header:function(){return _.k(_.Ax,{data:function(){return w().header}},{panelHeaderViewModel:BsK})},
content:function(){return _.k(_.Ax,{data:function(){return w().content}},{listViewModel:function(Z){return _.k(_.eoE,{data:Z.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:VUn,miniAppScoreChallengeViewModel:zpz})},
footer:function(){return _.k(_.Ax,{data:function(){return w().footer}},{panelFooterViewModel:_.Qi})}})}}))},"Mg");
vyD.idomCompat=!0;_.Ct(vyD,"yt-sheet-view-model",{props:{data:_.qR}});var oyX=_.xQ(function(a){var W=function(){var w;return(w=a.data().enableDebuggingFeatures)!=null?w:!1};
return _.k("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.k(_.k6,{each:function(){var w;return(w=a.data().stickers)!=null?w:[]}},function(w){return _.k(gya,{data:function(){return w},
debugMode:W})}))},"Ng"),gya=_.xQ(function(a){var W=_.Qn(a,{debugMode:!1}).debugMode,w=_.qt(function(){var v;
return(v=a.data().region)==null?void 0:v.w},0),Z=_.qt(function(){var v;
return(v=a.data().region)==null?void 0:v.h},0),N=_.qt(function(){var v;
return(v=a.data().region)==null?void 0:v.x},0),B=_.qt(function(){var v;
return(v=a.data().region)==null?void 0:v.y},0),I=_.$_(function(){var v=a.data().onTap;
v&&_.cX(v)}),X={};
return _.k("div",{class:_.W$("ytStoriesStickerLayerViewModelSticker",(X.ytStoriesStickerLayerViewModelDebugMode=W,X)),style:_.It({width:function(){return 100*w()+"%"},
height:function(){return 100*Z()+"%"},
left:function(){return 100*N()+"%"},
top:function(){return 100*B()+"%"},
"flex-direction":function(){return iCf(a.data().flexDirection)},
"justify-content":function(){return c7f(a.data().justifyContent)},
"align-items":function(){return e5E(a.data().alignItems)}}),
"on:click":I},_.k(_.Ax,{data:function(){return a.data().button||a.data().toggleButton}},{buttonViewModel:function(v){return _.k(_.F7,{data:v.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(v){return _.k(_.ce,{data:v.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Og");var U3K=_.xQ(function(a){var W=function(){return a.data()},w=_.qt(function(){return W().backgroundColor},0),Z=_.qt(function(){return W().actionButtons},[]),N=_.qt(function(){return W().stickerLayer},{}),B={},I=function(){var v,U;
return{animationRef:B,animationConfig:{autoplay:!1,loop:!1,path:(U=(v=W().foregroundAnimation)==null?void 0:v.url)!=null?U:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){a.navigateToNextItemOnLottieComplete()}}}},X=function(){var v,U,O,S,T,p,h,L;
return{animationConfig:{autoplay:(p=(v=W().backgroundAnimation)==null?void 0:(U=v.settings)==null?void 0:U.autoplay)!=null?p:!1,loop:(h=(O=W().backgroundAnimation)==null?void 0:(S=O.settings)==null?void 0:S.loop)!=null?h:!1,path:(L=(T=W().backgroundAnimation)==null?void 0:T.url)!=null?L:"",name:"stories_item_background_animation"}}};
_.Ka(function(){if(a.isVisible()){var v;(v=B.lottieEl)==null||v.play()}else{var U;(U=B.lottieEl)==null||U.stop()}});
return _.k("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.It({"background-color":function(){return _.pC(w())+";"}})},_.k("div",{class:"ytStoriesItemViewModelAssetContent"},_.k(_.Y,{cond:function(){return!!W().backgroundAnimation},
then:function(){return _.k(_.w2,{data:X,animationName:function(){return X().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.k(_.Y,{cond:function(){return!!W().backgroundImage},
then:function(){return _.k(_.qw,{data:function(){return W().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.k(_.Y,{cond:function(){return!!W().foregroundAnimation},
then:function(){return _.k(_.w2,{data:I,animationName:function(){return I().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.k(_.Y,{cond:function(){return!!W().foregroundImage},
then:function(){return _.k(_.qw,{data:function(){return W().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.k("div",{class:"ytStoriesItemViewModelTopShadow"}),_.k(_.Ax,{data:function(){return N()}},{storiesStickerLayerViewModel:oyX})),_.k("div",{class:"ytStoriesItemViewModelBottomShadow"},_.k("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.$_(a.pauseAutoNavigation)},_.k(_.k6,{each:Z},function(v){return _.k(kaz,{data:function(){return v}})}))))},"Pg"),kaz=_.xQ(function(a){var W={};
return _.k("div",{class:_.W$("ytStoriesItemViewModelActionButton",(W.ytStoriesItemViewModelStretchedActionButton=function(){return a.data().size==="STORIES_BUTTON_SIZE_STRETCH"},W))},_.k(_.Ax,{data:function(){return a.data().button}},{buttonViewModel:function(w){return _.k(_.F7,{data:w.data,
className:"ytStoriesItemViewModelButton"})}}))},"Qg");_.Ct(_.xQ(function(a){var W=_.l(_.l5(function(){var G;return(G=a.data().startIndex)!=null?G:0})),w=W.next().value,Z=W.next().value;
W=_.l(_.$1(!1,void 0,"klmjc"));var N=W.next().value,B=W.next().value,I=function(){var G;return(G=a.data().storyItems)!=null?G:[]},X=function(){return a.data().dismissButton},v=function(){var G;
return _.A((G=_.A(X(),_.hx))==null?void 0:G.onTap,_.pt)},U=_.D8(),O,S=function(){var G;
(G=O)==null||G.cancel();O=T(w()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});O.onfinish=function(){T(w()).style.width="100%";var V=_.A(I()[w()],T70),d,ZD;V!=null&&V.foregroundAnimation&&((V==null?0:(d=V.foregroundAnimation)==null?0:d.url)||(V==null?0:(ZD=V.foregroundAnimation)==null?0:ZD.payload))||(w()!==I().length-1?(Z(w()+1),S()):v()&&_.AQ(v()))}},T=function(G){return U.value.children[G].children[0]},p=function(){for(var G=0;G<w();G++)T(G).style.width="100%"};
W=_.$_(function(){N()?B(!1):(w()===I().length-1&&v()&&_.AQ(v()),T(w()).style.width="100%",w()!==I().length-1&&(Z(w()+1),S()))});
var h=_.$_(function(){N()?B(!1):(T(w()).style.width="0%",w()!==0?Z(w()-1):Z(w()),S())}),L=function(){B(!0)},F=function(){T(w()).style.width="100%";
w()!==I().length-1?(Z(w()+1),S()):v()&&_.AQ(v())},x=_.$_(function(){var G;
(G=O)==null||G.pause()});
_.Ka(function(){if(N()){var G;(G=O)==null||G.pause()}else{var V;(V=O)==null||V.play()}});
_.Ka(function(){p();w()===a.data().startIndex&&S()});
_.AS(function(){p();S()});
return _.k("yt-stories-viewer-view-model",{class:_.W$("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.k("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.k("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":h,"on:mousedown":x}),_.k("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":W,"on:mousedown":x})),_.k(_.Ax,{data:I},{storiesItemViewModel:function(G,V){var d=G.data;return _.k(_.Y,{cond:function(){return Math.abs(V()-
w())<=1},
then:function(){var ZD={};return _.k("div",{class:_.W$("ytStoriesViewerViewModelStoryItem",(ZD.ytStoriesViewerViewModelHiddenStoryItem=function(){return V()!==w()},ZD))},_.k(U3K,{data:d,
pauseAutoNavigation:L,navigateToNextItemOnLottieComplete:F,isVisible:function(){return V()===w()}}))}})}}),_.k("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:U},_.k(_.k6,{each:I},function(){return _.k("div",{class:"ytStoriesViewerViewModelProgressBar"},_.k("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.k("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.k(_.Ax,{data:X},{buttonViewModel:_.F7})))},"Rg"),"yt-stories-viewer-view-model",{props:{data:_.qR}});_.Ct(_.xQ(function(a){var W=a.data;var w=_.D8(),Z=[];return _.k("yt-gen-ai-feedback-form-view-model",{el:w,class:"ytGenAiFeedbackFormViewModelHost"},_.k(_.k_,{text:function(){return W().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.k("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.k(_.Ax,{data:function(){return W().feedbackChips}},{toggleButtonViewModel:function(N){var B=N.data;
return _.k(_.ce,{data:B,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(I){var X=B();X=_.A(X,_.iK);X=_.A(X==null?void 0:X.defaultButtonViewModel,_.hx).trackingParams;I?Z.push(X):(I=Z.indexOf(X),I>-1&&Z.splice(I,1))}})}})),_.k(_.k_,{text:function(){return W().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.k("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.k(_.Ax,{data:function(){return W().submitButton}},{buttonViewModel:function(N){return _.k(_.F7,{data:N.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){nof(w.value,Z,W().uniqueId)}})}}),_.k(_.Ax,{data:function(){return W().moreFeedbackButton}},{buttonViewModel:function(N){return _.k(_.F7,{data:N.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Sg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.qR},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var QT=function(){return _.u.apply(this,arguments)||this};
_.c(QT,_.u);QT.prototype.created=function(){txk(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(b09);var a=_.K().resolve(_.PAD);a&&(a.container=this.ytPopupContainerBehavior);if(a=_.K().resolve(_.Yt))a.container=this.ytPopupContainerBehavior;if(a=_.K().resolve(_.TA)){var W=this.ytPopupContainerBehavior;a.containerWasInjected?_.jJ(Error("bj")):a.container=W}};
QT.prototype.ensurePopupBelowPlayer=function(a,W){var w=_.K().resolve(_.Vv(_.Gw));if(!w||!w.isOnWatch()||!_.fA())return!1;w=w.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.vu().height>w+this.getPopupHeight(a,W)?(a.style.top="auto",a.style.bottom="0px"):(a.style.top=w+"px",a.style.bottom="auto");return!0};
QT.prototype.getPopupHeight=function(a,W){W&&(a.cachedPopupHeight=0);if(!a.cachedPopupHeight){W=0;var w=a.clientHeight,Z=window.getComputedStyle(a);W+=parseInt(Z.marginTop,10);W+=parseInt(Z.marginBottom,10);a.cachedPopupHeight=w+W}return a.cachedPopupHeight};
QT.prototype.getElement=function(a){return document.createElement(a)};
_.f([_.R(II0.YtPopupContainerBehavior),_.z("design:type",Object)],QT.prototype,"ytPopupContainerBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],QT.prototype,"ytComponentBehavior",void 0);QT=_.f([_.C({disableElementRegistration:!0,is:"ytd-popup-container"})],QT);
_.D(QT,"ytd-popup-container",function(){if(Exz!==void 0)return Exz;var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);return Exz=a},{mode:1});var OOK;var Sh0={};Sh0.YtLogYpcFlowCommandsBehavior=[_.d4.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){_.A(a,xaz)&&(a=_.A(a,xaz))&&(a.serializedTransactionFlowLoggingParams?_.bgH(a.serializedTransactionFlowLoggingParams):a.serializedYpcCancelFlowLoggingParams?(a=a.serializedYpcCancelFlowLoggingParams)&&_.ez("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",a):a.serializedYpcResumeFlowLoggingParams?(a=a.serializedYpcResumeFlowLoggingParams)&&_.ez("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",a):a.serializedYpcPauseFlowLoggingParams?(a=a.serializedYpcPauseFlowLoggingParams)&&
_.ez("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",a):a.serializedYpcRefundFlowLoggingParams?(a=a.serializedYpcRefundFlowLoggingParams)&&VJi("YPC_EVENT_TYPE_START",a):a.serializedYpcDeactivateFlowLoggingParams?(a=a.serializedYpcDeactivateFlowLoggingParams)&&_.ez("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",a):a.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(a=a.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.ez("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",a))},
handleLogYpcFlowDismiss_:function(a){_.A(a,Qid)&&(a=_.A(a,Qid),a.serializedTransactionFlowLoggingParams?_.s37(a.serializedTransactionFlowLoggingParams):a.serializedYpcCancelFlowLoggingParams?(a=a.serializedYpcCancelFlowLoggingParams)&&_.ez("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",a):a.serializedYpcResumeFlowLoggingParams?(a=a.serializedYpcResumeFlowLoggingParams)&&_.ez("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",a):a.serializedYpcPauseFlowLoggingParams?(a=
a.serializedYpcPauseFlowLoggingParams)&&_.ez("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",a):a.serializedYpcRefundFlowLoggingParams&&(a=a.serializedYpcRefundFlowLoggingParams)&&VJi("YPC_EVENT_TYPE_CANCEL",a))}}];var Yhi={};Yhi.YtCancelRecurrenceBehavior=[_.e7.YtComponentBehavior,_.I4J,{attached:function(){var a=this;CxD(this,function(W,w){return a.ypcCancelRecurrenceHandler(W,w)})},
ypcCancelRecurrenceHandler:function(a,W){var w=this;if(!W||!W.ypcCancelRecurrenceEndpoint)return!1;if(!W.ypcCancelRecurrenceEndpoint.params)return _.Ff(Error("tl")),!0;_.zb(this.hostElement);var Z=_.Ju.instance,N=_.K().resolve(_.Vv(_.U6));Z&&_.Fq(Z,W)?_.MX(Z,W).then(function(B){w.ypcCancelRecurrenceSuccess_(a,W,{data:B})},function(B){w.ypcCancelRecurrenceFailure_(a,W,B)}).thenCatch(function(){_.Ff(Error("ul"))}):N?N.requestDataForServiceEndpoint(W).then(function(B){w.ypcCancelRecurrenceSuccess_(a,
W,B)},function(B){w.ypcCancelRecurrenceFailure_(a,W,B)}).thenCatch(function(){_.Ff(Error("ul"))}):_.Ff(Error("vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(a,W,w){_.H6(this.hostElement);w.data||(w={data:w});w.data&&w.data.actions&&_.N1(this.hostElement,w.data.actions,this.hostElement);w.data.messageRenderer?HH0(W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(W=W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.ez("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",W);_.E$(a,"yt-service-request-completed",w)},
ypcCancelRecurrenceFailure_:function(a,W,w){_.H6(this.hostElement);HH0(W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.E$(a,"yt-service-request-error",{error:w,params:[a,W]})}}];var TsK=function(a,W){_.Wv.call(this,W)};
_.c(TsK,gD9);var K9f={};K9f.YtCompleteTransactionBehavior=[_.e7.YtComponentBehavior,_.I4J,{attached:function(){var a=this;CxD(this,function(W,w){return a.ypcCompleteTransactionHandler(W,w)})},
completeTransaction:function(a,W){var w=this;W={payments_payload:window.btoa(W.integratorData),buybucket_params:a.data.buybucketParams,offer_params:a.data.offerParams};var Z=_.K().resolve(_.U6),N=a.data.completeTransactionEndpoint,B=this.get("ypcCompleteTransactionEndpoint.actions",N);B&&_.N1(this.hostElement,B,this.hostElement);return(B=_.Ju.instance)&&_.Fq(B,N)?_.MX(B,N,W).then(function(I){return!I||(I==null?0:I.error)?(I=w.get("data.serializedTransactionFlowLoggingParams",a),_.od(new yE("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
I))):{data:I}}).then(function(I){return w.handleCompleteTransactionSuccess_(I,a)},function(){return w.handleCompleteTransactionFailure_(a)}):Z.requestDataForServiceEndpoint(N,W).then(function(I){return w.handleCompleteTransactionSuccess_(I,a)},function(){return w.handleCompleteTransactionFailure_(a)})},
handleCompleteTransactionSuccess_:function(a,W){a.data||(a={data:a});if(a.data.messageRenderer)return _.od(new TsK(a.data.messageRenderer));if(a.data.trackingParams){var w=_.nS(),Z=_.eH();w&&Z&&_.M1(w,Z,_.PX(a.data.trackingParams))}W=this.get("data.serializedTransactionFlowLoggingParams",W);zya(W);return _.tk(a)},
handleCompleteTransactionFailure_:function(a){a=this.get("data.serializedTransactionFlowLoggingParams",a);_.Mj("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a);return _.od(new yE("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a))},
ypcCompleteTransactionHandler:function(a,W){var w=this;if(!W.ypcCompleteTransactionEndpoint)return!1;if(!W.ypcCompleteTransactionEndpoint.transactionParams)return _.Ff(Error("wl")),!0;W.ypcCompleteTransactionEndpoint&&W.ypcCompleteTransactionEndpoint.gtmData&&_.oc(W.ypcCompleteTransactionEndpoint.gtmData);var Z=_.K().resolve(_.Vv(_.U6));if(Z){_.zb(this.hostElement);var N=_.Ju.instance;N&&_.Fq(N,W)?_.MX(N,W).then(function(B){return!B||(B==null?0:B.error)?(B=w.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
W),_.od(new yE("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",B))):{data:B}}).then(function(B){_.E$(a,"yt-service-request-completed");
w.ypcCompleteTransactionSuccess_(W,B)},function(){return w.ypcCompleteTransactionFailure_(W)}):Z.requestDataForServiceEndpoint(W).then(function(B){_.E$(a,"yt-service-request-completed");
w.ypcCompleteTransactionSuccess_(W,B)},function(){return w.ypcCompleteTransactionFailure_(W)})}return!0},
ypcCompleteTransactionSuccess_:function(a,W){_.H6(this.hostElement);W.data||(W={data:W});_.aV(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);W.data.messageRenderer||W.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(a):(_.oc('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",a));W.data.actions&&(a=Zxk(W.data.actions),W=NK9(W.data.actions),a.length&&_.Z9(this.hostElement,
a),W.length&&_.N1(this.hostElement,W,this.hostElement))},
ypcCompleteTransactionFailure_:function(a){_.H6(this.hostElement);_.aV(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",a,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(a,W,w){if(W=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",W))W={serializedTransactionFlowLoggingParams:W},w&&(W.errorType=w),_.ia(a,W),_.cZ()}}];var pLk={};pLk.YtEndpointHandlerWithYpcBehavior=[_.I4J,_.d4.YtActionHandlerBehavior,[{openWalletDialog:function(a,W,w,Z,N,B,I){var X=this,v=_.Rt();W=W.replace(/-/g,"+").replace(/_/g,"/");var U=_.gS().get("hl");_.xGF(_.lV(_.R1),W,v.resolve,N,function(O){B&&B();v.reject(O)},U,function(O){return X.onServerBackendAnalyticEvent_(a,w,O)},this.onDialogClose_.bind(this),Z,I);
return v.promise},
openFixFlowDialog:function(a,W,w,Z){a=a.replace(/-/g,"+").replace(/_/g,"/");_.lV(_.R1).openFixFlowDialog(a,W,w,Z)},
onDialogClose_:function(){_.aV(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(a,W,w){a.fire("yt-commerce-action-init-done");W&&_.Z9(this.hostElement,[W,{backend_analytics:w}])}}],
_.Ww.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(a,W){a=this.get("data.nativeFlowEndpoint",W);W=this.get("data.fallbackEndpoint",W);a?_.Z9(this.hostElement,[a]):W&&_.E$(this.hostElement,"yt-navigate",{endpoint:W})}}],
Yhi.YtCancelRecurrenceBehavior,K9f.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;CxD(this,function(W,w,Z){return a.handleYPCEndpoint(W,w,Z)});
this.ypcRegisterActionMapJobId_=_.TP(_.hF,function(){a.registerActionMap(a.buyFlowActionMap_)})},
detached:function(){var a=this;_.hF.cancelJob(this.ypcRegisterActionMapJobId_);_.TP(_.hF,function(){a.unregisterActionMap(a.buyFlowActionMap_)})},
handleYPCEndpoint:function(a,W,w){var Z=W.ypcGetCartEndpoint;if(Z){_.rS("commerce_transaction");var N=Z.gtmId;N&&_.g4(N);(Z=Z.gtmData)&&_.oc(Z)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",W)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(a,W),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",W)!=null?(this.handleYPCFixInstrumentEndpoint_(a,W),!0):W.ypcPauseSubscriptionCommand?(xjk(this.hostElement,a,W,w),
!0):W.ypcResumeSubscriptionCommand?(uKz(this.hostElement,a,W),!0):W.getPaymentInstrumentsParamsCommand?(R5k(this.hostElement,a,W),!0):W.ypcHandleTransactionEndpoint?(Fhi(this.hostElement,a,W,w),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(a,W){var w=this;_.Ak("ttcr",void 0,"commerce_transaction");W=W.ypcGetCartEndpoint;var Z=W.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,N=Z.encryptedPurchaseParams,B=Z.serializedTransactionFlowLoggingParams,I=Z.serializedPaymentsClientParams,X=this.createGetCartResponseFromParams_(Z,W.offerParams,B);this.changeButtonState(a,!0);_.Ad(this.openWalletDialog(a,N,Z.ypcLogWalletAnalyticDataEndpoint,B,function(){w.changeButtonState(a,!1)},function(){w.changeButtonState(a,
!1)},I).then(function(v){return w.handleBuyFlowCompleteCallback_(a,X,v)},function(){return w.handleOnLoadError(X)}).then(function(v){return void w.handlePostPurchaseSuccess_(a,X,v)},function(v){return void w.handlePostPurchaseError_(v)}),function(){w.changeButtonState(a,!1);
a instanceof Element&&_.E$(a,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(a,W,w){var Z=a.completeTransactionEndpoint,N=a.handleTransactionEndpoint;W={data:{offerParams:window.btoa(W),serializedTransactionFlowLoggingParams:w}};N?W.data.handleTransactionEndpoint=N:W.data.completeTransactionEndpoint=Z;a.onCartDismissCommand&&(W.data.onCartDismissCommand=a.onCartDismissCommand);return W},
onGetCartServiceRequestCompleted_:function(a,W){var w=this,Z=a.target;if(W&&W.data&&W.data.messageRenderer)_.H6(this.hostElement),this.handleMessageRenderer_(W.data.messageRenderer),this.changeButtonState(Z,!1);else{var N=this.get("data.encryptedPurchaseParams",W),B=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",W),I=this.get("data.ypcLogWalletAnalyticDataEndpoint",W),X=this.get("data.serializedPaymentsClientParams",W),v=this.getLoggingParams_(W);if(v||N||B)a.stopPropagation(),_.Ak("ttcr",
void 0,"commerce_transaction"),N||_.H6(this.hostElement),this.changeButtonState(Z,!1),B?_.aV(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.LF("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:B}}},this]):N&&(this.changeButtonState(Z,!0),a=null,a=this.openWalletDialog(Z,N,I,v,function(){_.H6(w.hostElement);w.changeButtonState(Z,!1)},function(){_.H6(w.hostElement);
w.changeButtonState(Z,!1)},X),_.Ad(a.then(function(U){return w.handleBuyFlowCompleteCallback_(Z,W,U)},function(){return w.handleOnLoadError(W)}).then(function(U){return w.handlePostPurchaseSuccess_(Z,W,U)},function(U){return w.handlePostPurchaseError_(U)}),function(){w.changeButtonState(Z,!1);
_.E$(Z,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(a,W){W&&W.endpoint&&W.endpoint.ypcGetCartEndpoint&&!W.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",W.endpoint.ypcGetCartEndpoint)&&_.N1(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",W.endpoint.ypcGetCartEndpoint)],a.target),_.zb(this.hostElement),this.changeButtonState(a.target,!0))},
onServiceRequestError_:function(a,W){if(W&&W.params&&W.params.length){W=_.l(W.params);for(var w=W.next();!w.done;w=W.next())if((w=w.value)&&w.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",w.ypcGetCartEndpoint)&&_.N1(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",w.ypcGetCartEndpoint)],a.target);_.H6(this.hostElement);this.changeButtonState(a.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(a,W,w){var Z=w.integratorData;return Z==null||Z===""||w.error!=null?(Z=this.getLoggingParams_(W),String(w.error)==="-1"?(W.data.onCartDismissCommand&&_.N1(this.hostElement,[W.data.onCartDismissCommand],a),_.od(new yE("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Z,!0))):_.od(new yE("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Z))):W.data.handleTransactionEndpoint?MMf(this.hostElement,W.data.handleTransactionEndpoint,{payments_payload:Z,funds_guarantee_callback_client_data:w.integratorClientCallbackData}):
this.completeTransaction(W,w)},
handlePostPurchaseSuccess_:function(a,W,w){W=w.data;var Z=!1,N,B;if(W&&((N=W.command)==null?0:(B=N.commandExecutorCommand)==null?0:B.commands)){var I,X;N=(I=W.command)==null?void 0:(X=I.commandExecutorCommand)==null?void 0:X.commands;for(I=0;I<N.length;I++)if(_.A(N[I],_.t7J)){Z=!0;break}}Z||(W&&W.gtmDatas&&W.gtmDatas.length?_.oc(W.gtmDatas[0]):_.oc('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));w.data&&w.data.actions&&(W=Zxk(w.data.actions),w=NK9(w.data.actions),W.length&&
_.Z9(this.hostElement,W),w.length&&_.N1(this.hostElement,w,a))},
handlePostPurchaseError_:function(a){a&&a.payload&&a.payload.isUserDismiss||_.eJ(Error("yl"))},
handleOnLoadError:function(a){a=this.getLoggingParams_(a);return _.od(new yE("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",a))},
getLoggingParams_:function(a){return this.get("data.serializedTransactionFlowLoggingParams",a)},
handleMessageRenderer_:function(a){var W=_.em(a,"renderer"),w=_.LF("openPopupConfig");W==="confirmDialogRenderer"&&w&&_.aV(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:w.popupTypeMap[W],popup:a}},this])},
handleYPCFixInstrumentEndpoint_:function(a,W){var w=this,Z=W.ypcFixInstrumentEndpoint;W=Z.encryptedFixInstrumentParameters;this.logFixFopEvent_(Z,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(a,!0);this.openFixFlowDialog(W,function(N,B){w.onFixFlowCompleteCallback_(Z,N,B)},function(){return w.changeButtonState(a,!1)},function(){w.changeButtonState(a,!1);
w.logFixFopEvent_(Z,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(a,W,w){var Z=_.RT("payments.business.integration.scenario.FixInstrument");if(W==Z.IntegratorCallbackType.ON_COMPLETE){W="FIX_FOP_EVENT_TYPE_CANCEL";var N=null;w.error!=null?w.error!=Z.OnCompleteCallbackError.USER_CANCELLED&&(_.N1(this.hostElement,[a.errorAction],this.hostElement),W="FIX_FOP_EVENT_TYPE_FAILURE",N="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.N1(this.hostElement,[a.successAction],this.hostElement),W="FIX_FOP_EVENT_TYPE_SUCCESS");_.N1(this.hostElement,[a.onFinishAction],
this.hostElement);this.logFixFopEvent_(a,W,N)}},
logFixFopEvent_:function(a,W,w){(a=a.serializedFixFopLoggingParams)?(W={eventType:W,serializedFixFopLoggingParams:a},w!=null&&(W.errorType=w),_.ia("fixFopFlow",W),_.cZ()):_.eJ(Error("zl"))},
changeButtonState:function(a,W){_.r("enable_ypc_spinners")&&a&&(a.is==="yt-button-renderer"||a.is==="ytd-button-renderer")&&(a.disabled=W)}}];var r32=function(a){this.JSC$28626_clientRoot=a;this.feedbackCollectorActionMap={"yt-help-dialog-requested":GX0,"yt-feedback-dialog-requested":Cha,"yt-signal-action-help":Djd,"yt-signal-action-send-feedback":f3I,"yt-send-feedback-action":mjK,"yt-user-feedback-endpoint":VM9};_.ua(_.sn.getInstance(),this.feedbackCollectorActionMap,this.JSC$28626_clientRoot)},A3k;var hrd=function(a){this.JSC$28631_clientRoot=a;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":z5d.bind(null,this.JSC$28631_clientRoot),"yt-signal-action-delete-all-downloads":y7z,"yt-signal-action-delete-download":Eoi,"yt-signal-action-delete-playlist-download":WVf,"yt-signal-action-install-pwa":B$9,"yt-signal-action-refresh-downloads":tKD,"yt-offline-video-endpoint":ICX,"yt-offline-playlist-endpoint":XAD,"yt-update-local-app-setting-command":gQI,"yt-offline-orchestration-action-command":kDi,
"yt-signal-action-undo-delete-download":ZpK,"yt-local-watch-history-command":SN9};_.ua(_.sn.getInstance(),this.downloadManagerActionMap,this.JSC$28631_clientRoot);_.jM.instance=new _.jM},iOa;var xW=function(){var a=_.u.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};
_.c(xW,_.u);_.t=xW.prototype;
_.t.ready=function(){_.r("polymer_enable_mdx")&&(bN0({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.r("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.r("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.r("enable_cast_short_lived_lounge_token")}),_.Z8("yt-remote-connection-change",this.handleConnectionChange_,this),_.Z8("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=dRk())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.t.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.t.handleConnectionChange_=function(a){(this.mdxConnected=a)?(a=Ci0(),!a&&uz9()&&C09()&&(a={key:"cast-selector-receiver",name:C09()}),a=a.name):a=null;this.receiverName=a;_.d3(this.remoteApi_);(this.remoteApi_=dRk())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.t.handleReceiverAvailabilityChange_=function(){var a=uik();uz9()&&_.B7("yt-remote-cast-available")&&a.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=a.length>0};
_.t.handleRemoteQueueChange_=function(){var a=this.currentVideoId_,W=this.currentListId_,w=t5(this.remoteApi_);this.currentVideoId_=w.videoId;this.currentListId_=w.listId;this.currentVideoId_&&_.aV(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.r("polymer_enable_mdx_queue")?this.currentListId_:null,a,W])};
_.t.handleAddToQueueAction_=function(a){a=_.A(a,KFf);this.remoteApi_&&(a.videoId?this.remoteApi_.addVideo(a.videoId):a.playlistId&&this.remoteApi_.addPlaylist(a.playlistId))};
_.t.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.t.handleInsertInQueueAction_=function(a){a=_.A(a,poi);this.remoteApi_&&a.videoId&&this.remoteApi_.JSC$17485_insertVideo(a.videoId)};
_.t.handleRemoveFromQueueAction_=function(a){a=_.A(a,r4d);this.remoteApi_&&a.videoId&&this.remoteApi_.JSC$17485_removeVideo(a.videoId)};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],xW.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b(),_.z("design:type",Object)],xW.prototype,"appId",void 0);_.f([_.b(),_.z("design:type",Boolean)],xW.prototype,"mdxConnected",void 0);_.f([_.b(),_.z("design:type",Boolean)],xW.prototype,"receiverAvailable",void 0);_.f([_.b(),_.z("design:type",Object)],xW.prototype,"receiverName",void 0);_.f([_.b(),_.z("design:type",Object)],xW.prototype,"currentVideoId_",void 0);
_.f([_.b(),_.z("design:type",Object)],xW.prototype,"currentListId_",void 0);xW=_.f([_.TD({is:"yt-mdx-manager",disableElementRegistration:!0})],xW);_.D(xW,"yt-mdx-manager",void 0,{mode:2});var c3X;var era;var bP=function(){var a=_.u.apply(this,arguments)||this;a.APP_IDS={ytr:3,ytm:5};a.JSC$18722_timeoutId_=0;a.actionMap={"yt-open-create-family-dialog":"open"};return a};
_.c(bP,_.u);_.t=bP.prototype;_.t.created=function(){txk(2200)};
_.t.detached=function(){this.observer_&&this.observer_.disconnect()};
_.t.open=function(a,W){var w=this,Z=a.serializedYpcFamilyCreateLoggingParams;this.JSC$18722_timeoutId_=setTimeout(this.abort_.bind(this,a.postFlowErrorEndpoint,Z),3E4);W&&(this.onReadyCallback_=W);var N=_.M(this.hostElement).querySelector("#unicorn-iframe");Z&&Z&&mdI("ypcFamilyCreateFlowStarted",Z);_.i9e("family_creation",function(){var B=_.RT("gapi.family_creation.render");_.RT("gapi.config.update")("iframes/family_creation/url",w.getFamilyCreationUrlWithUnicornParams_());var I=3;a.appId&&a.appId in
w.APP_IDS&&(I=w.APP_IDS[a.appId]);I={authUser:_.LF("SESSION_INDEX")||0,clientId:I,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.LF("HL"),initialflow:[4,5,6,7],m:w.isMobile?1:0,onFlowComplete:w.onUnicornFlowComplete_.bind(w,a.postFlowSuccessEndpoint,Z),onError:w.onUnicornFlowError_.bind(w,a.postFlowErrorEndpoint,Z),onReady:w.onUnicornFlowReady_.bind(w,a.referencePcidParams)};B(N,I)})};
_.t.close=function(){_.M(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.t.onUnicornFlowComplete_=function(a,W){this.close();W&&W&&mdI("ypcFamilyCreateFlowSucceeded",W);_.E$(this.hostElement,"yt-navigate",{endpoint:a})};
_.t.onUnicornFlowError_=function(a,W){this.close();W&&mdI("ypcFamilyCreateFlowCancelled",W);_.E$(this.hostElement,"yt-navigate",{endpoint:a})};
_.t.onUnicornFlowReady_=function(a){var W=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();a&&_.RT("gapi.family_creation.setConfig")(0,a);this.observer_=new MutationObserver(function(){_.M(W.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.M(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.M(this.hostElement).querySelector("#dialog").open()};
_.t.getFamilyCreationUrlWithUnicornParams_=function(){return _.LF("YTR_FAMILY_CREATION_URL")};
_.t.getCurrentUrl_=function(){return document.location.href};
_.t.abort_=function(a,W){this.clearTimeout_();this.onUnicornFlowError_(a,W)};
_.t.clearTimeout_=function(){clearTimeout(this.JSC$18722_timeoutId_)};
_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],bP.prototype,"ytActionHandlerBehavior",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],bP.prototype,"isMobile",void 0);_.f([_.b(),_.z("design:type",Object)],bP.prototype,"onReadyCallback_",void 0);_.f([_.b(),_.z("design:type",Object)],bP.prototype,"observer_",void 0);bP=_.f([_.TD({is:"yt-create-family-dialog",disableElementRegistration:!0})],bP);
_.D(bP,"yt-create-family-dialog",function(){if(era===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),a.content.firstChild);var W=a.content,w=W.insertBefore;c3X===void 0&&(c3X=document.createElement("template"));var Z=c3X;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);era=a}a=era;return a},{mode:2});var nyI;var j69;var ss=function(){var a=_.u.apply(this,arguments)||this;a.STEP=1;a.BLOCK_ON=80;a.MIN_PROGESS=0;a.MAX_PROGESS=100;return a};
_.c(ss,_.u);_.t=ss.prototype;_.t.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.t.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));_.K().addProvider({provide:pwE,useValue:this})};
_.t.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.t.finish=function(){var a=this;this.progress=this.MAX_PROGESS;YN2(function(){a.progress==a.MAX_PROGESS&&(a.hostElement.hidden=!0)})};
_.t.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.dU.Object.defineProperties(ss.prototype,{progress:{configurable:!0,enumerable:!0,set:function(a){this.progress_=a;var W="scaleX("+a/this.MAX_PROGESS+")",w=_.M(this.hostElement).querySelector("#progress").style;w.transform=W;w.webkitTransform=W;this.hostElement.setAttribute("aria-valuenow",String(a))},
get:function(){return this.progress_}}});
_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],ss.prototype,"ytComponentBehavior",void 0);ss=_.f([_.TD({is:"yt-page-navigation-progress",disableElementRegistration:!0})],ss);
_.D(ss,"yt-page-navigation-progress",function(){if(j69===void 0){var a=document.createElement("template");_.n(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(_.y().content.cloneNode(!0),
a.content.firstChild);var W=a.content,w=W.insertBefore;nyI===void 0&&(nyI=document.createElement("template"));var Z=nyI;w.call(W,Z.content.cloneNode(!0),a.content.firstChild);j69=a}a=j69;return a},{mode:2});var L99={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"},J3z={"font-size":"12px","font-style":"italic"},F90={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.rt0=function(){return _.P(function(a){_.Xd(a)})};_.Ct(_.xQ(function(){var a=_.Au(_.l1I);return _.k("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var W;return(W=a())==null?void 0:W.announcement})},"Tg"),"yt-ephemeral-actions");var uM2=new Map;var cF2=function(a,W){var w=this;this.handleError=a;this.logEventInternal=W;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){w.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
cF2.prototype.logError=function(a){this.handleError(a)};
cF2.prototype.logEvent=function(a,W){switch(a){case "IDB_DATA_CORRUPTED":_.r("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",W);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",W);break;case "IS_SUPPORTED_COMPLETED":_.r("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",W);break;case "QUOTA_EXCEEDED":Mb0(this,W);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",W);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},W,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",a)}};
var Mb0=function(a,W){_.IW.getInstance().estimate().then(function(w){w=Object.assign({},W,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:GD0(w==null?void 0:w.usage),deviceStorageQuotaMbytes:GD0(w==null?void 0:w.quota)});a.logEventInternal("idbQuotaExceeded",w)})};var uP=function(){var a=_.u.apply(this,arguments)||this;a.tabGesturesIsActive=!1;a.deprecateFullerscreenUi=_.r("web_watch_fullerscreen_deprecation_ui");a.hasDelegation=!1;a.darkerDarkTheme=_.r("web_darker_dark_theme");a.isFrostedGlassInitialized=!1;a.frostedGlassExp=_.r("web_frosted_glass");a.mastheadHiddenFocusWithinKillswitch=_.r("web_masthead_hidden_focus_within_killswitch");a.ephemeralActionsEnabled=_.r("web_ephemeral_actions");a.scrollAtTop=!0;a.guideScrollTop=0;a.isTheaterModeSession=_.JS("START_IN_THEATER_MODE");
a.iMaxTheaterMode=_.r("web_watch_imax_theater_mode");a.isFullWindowSession=_.JS("START_IN_FULL_WINDOW_MODE");a.hasCreateFamilyDialog=!1;a.mastheadHeight=56;a.networkStatusManager=new _.xm;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(W){var w=_.dVJ.instance,Z=_.A(W,_.nTR);return Z?_.r("use_rta_manager_for_async")&&
vmz()?Vx0(w,Z,W.clickTrackingParams):mwf(w,Z,W.clickTrackingParams):_.od(Error("li"))}};
a.isFrostedGlassDisabled=!1;a.isChannelOrPlaylistPage=!1;return a};
_.c(uP,_.u);_.t=uP.prototype;_.t.created=function(){var a=_.K();_.r("kevlar_clear_duplicate_pref_cookie")&&_.TP(_.hF,function(){var W=_.XQ.get("PREF");W&&!/f\d=/.test(W)&&(W=_.Et("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=W?"PREF=null;domain="+W+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.r("gzip_gel_with_worker")&&_.qdC();_.r("jspb_serialize_with_worker")&&QxD();_.r("web_worker_availability_check")&&COk();_.r("nwl_init_killswitch")||R2I().then(function(){_.hF.addLowPriorityJob(VW9)});
this.pageManagerAttachedPromise=_.Rt();this.ytdAppBehavior.loadDepsPromise=_.rD([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.yP(this.onThrottledScroll,200,this);_.r("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);e29();vDa=!!_.RT("ytappsettings.initialized");Iq=_.RT("ytappsettings.previousValue");eyk=_.RT("ytappsettings.previousSnapshotTime");vDa||(vDa=!0,nja());WOD();wJ9();_.jm("DEFERRED_DETACH",
_.r("kevlar_tuner_should_defer_detach"));_.jm("REUSE_COMPONENTS",!0);_.jm("STAMPER_STABLE_LIST",!0);_.jm("SCHEDULED_LAZY_LIST",!0);_.jm("openPopupConfig",xLK);_.jm("useClickHandler",!0);_.r("kevlar_shell_cleanup")&&_.hF.addLowPriorityJob(OHI.bind(this,_.NH.caches));_.JS("IS_SHELL_LOAD")&&_.pD({shellStartupDurationMs:Math.round((0,_.mG)()-_.O_())});ct2(this.networkStatusManager);_.r("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",T$0(L99)),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!",
T$0(J3z)),console.log("%cVisit http://go/join-youtube-web to apply today.",T$0(F90)));_.eG9(a.resolve(_.t$),1E3)};
_.t.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var a=mEI();a&&!_.r("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()};
_.t.attached=function(){var a=this;_.F4().processSignal("ci");_.r("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.BEh?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.U9(_.d5S(),"SUCCESS");this.updateIconSet();_.HG(this.guideInnerContent,!1);_.NR().initVisibilityObserver();this.guideService.guideElement=this.guide;var W=document.createElement("ytd-miniplayer"),w=_.M(this.hostElement).querySelector("#content");
_.M(this.hostElement).insertBefore(W,w);_.F4().processSignal("ma");_.K().resolve(_.bV).init(W);_.JS("IS_SHELL_LOAD")&&(w=document.createElement("ytd-network-status-banner"),_.M(this.hostElement).insertBefore(w,W));_.r("kevlar_right_click_on_lockups")&&_.u3._onCaptureClick&&document.addEventListener("contextmenu",_.u3._onCaptureClick.bind(_.u3),!0);var Z=function(){var N=_.CN("yt-page-navigation-progress");_.M(a.hostElement).appendChild(N)};
setTimeout(function(){_.F4().parkOrScheduleJob(Z,0,"eocs",16)},0);
_.r("service_worker_push_enabled")&&_.TP(_.hF,ddn);_.ua(_.sn.getInstance(),this.dynamicActionMap,this.hostElement);_.E$(this.hostElement,"ytd-app-attached");_.F4().processSignal("aa");Pa9(this.hostElement);_.Dp("gapi.load",_.i9e);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.TP(_.hF,
function(){var N=document.createElement("ytd-video-preview");_.M(_.M(a.hostElement).querySelector("#video-preview")).appendChild(N)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.TP(_.hF,function(){AtD();a.registerViewTransitionTasks()});
if(_.nC()&&this.isAppDarkTheme()!==_.cu())this.onDarkModeToggledAction();else W=_.eM()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==W&&(_.r("enable_dark_theme_only_on_shorts")?_.ih(_.r("enable_dark_theme_only_on_shorts_control")?window.location.href:_.uG(window.location.href,{theme:"dark"})):_.jJ(new _.Uw("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(CN9=new uj9(this.hostElement)),iOa=new hrd(this.hostElement),A3k=new r32(this.hostElement),lHX=new B0k(this.hostElement)};
_.t.getThemeSettingsToLog=function(){var a=_.eM()==="USER_INTERFACE_THEME_DARK";a=_.nC()?_.cu()?"os-dark":"os-light":a?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:a,cookiesEnabled:_.gz()}};
_.t.detached=function(){_.y3(this.guideInnerContent);_.hF.cancelJob(Nz);Nz=0;_.hF.cancelJob($F);$F=0;_.EoH(I8k);I8k.length=0;$dd=_.TnH=null;_.NR().dispose();_.r("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.CH(_.sn.getInstance(),CN9.playlistHandlerActionMap,CN9.JSC$28327_clientRoot);_.CH(_.sn.getInstance(),iOa.downloadManagerActionMap,iOa.JSC$28631_clientRoot);_.CH(_.sn.getInstance(),A3k.feedbackCollectorActionMap,A3k.JSC$28626_clientRoot);
for(var a=_.l(lHX.eventListeners),W=a.next();!W.done;W=a.next()){var w=_.l(W.value);W=w.next().value;w=w.next().value;w=_.l(w);for(var Z=w.next();!Z.done;Z=w.next()){var N=_.l(Z.value);Z=N.next().value;N=N.next().value;W.removeEventListener(Z,N)}}_.CH(_.sn.getInstance(),lHX.autonavPauseActionMap,lHX.JSC$17670_clientRoot)};
_.t.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.gS().getFlag(186)};
_.t.computeIsInlinePreviewEnabled=function(a,W,w){return!w&&_.AoK({miniplayerIsActive:a,miniplayerPlaybackState:W})};
_.t.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.E_({type:"SET_FROSTED_GLASS_MODE",payload:!_.r("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"}))};
_.t.computeIsFrostedGlassDisabled=function(a,W,w,Z){return a||W||w||Z&&_.r("web_frosted_glass_disable_watch")};
_.t.computeIsHomePage=function(a,W){if(!a||W==null||!W.endpoint)return!1;var w;return((w=_.A(W.endpoint,_.I1))==null?void 0:w.browseId)==="FEwhat_to_watch"};
_.t.updateIsChannelOrPlaylistPage=function(){if(_.r("web_frosted_glass")){var a,W,w=(W=(a=_.K().resolve(_.Vv(_.Gw)))==null?void 0:a.getCurrentPage())==null?void 0:W.pageSubtype;this.isChannelOrPlaylistPage=w?["channel","channels","playlist"].includes(w):!1}};
_.t.scheduleFrostedGlassInitialization=function(){var a=this;_.r("web_frosted_glass")&&_.F4().parkOrScheduleJob(function(){a.isFrostedGlassInitialized=!0},0,_.nZ(["eocs",
"cr"]),300)};
_.t.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.WRA(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.E_({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.E_({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.t.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(we0(!0))};
_.t.onYtSignalActionRequestPersistentStorage=function(){if(!_.r("request_persistent_storage_killswitch")){var a=_.K().resolve(_.ALE);a.cachedPersistStatePromise||(a.cachedPersistStatePromise=T2f())}};
_.t.handleYtChannelCreationFormEndpoints=function(a){a&&this.ytComponentBehavior.resolveCommand(a)};
_.t.handleShowEngagementPanelEndpoint=function(a){a&&this.ytComponentBehavior.resolveCommand(a)};
_.t.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(we0(!1))};
_.t.initIconDefs=function(a,W,w){var Z=document.createElement("iron-iconset-svg");Z.name=a;a=document.createElementNS("http://www.w3.org/2000/svg","svg");Z.appendChild(a);a.appendChild(W);if(w)for(var N in w)Z[N]=w[N];document.body.appendChild(Z);return Z};
_.t.onWindowResized=function(){_.aV(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var a=_.XdR.getInstance();a.documentWidth_=document.body.clientWidth;KY9(a)};
_.t.onWindowScrolled=function(){var a=_.K().resolve(_.Gw).getCurrentPage();if(a!=null&&a.getScrollTop){var W=this.ytdReduxBehavior,w=W.dispatch;a=a.getScrollTop()<=0;w.call(W,_.E_({type:"SET_SCROLL_AT_TOP",payload:a}))}};
_.t.guideIsVisibleButNotPersistentSelectorChanged=function(){var a=_.K().resolve(_.Gw).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));_.W_(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.t.getCurrentPageScrollableElementType=function(){var a=_.K().resolve(_.Gw).getCurrentPage();if(a&&a.getPageScrollingElement())return a.getPageScrollingElement().nodeName};
_.t.observeGuideVisibility=function(){var a=_.XdR.getInstance(),W=this.miniGuideVisible;a.guidePersistentAndVisible_=this.guidePersistentAndVisible;a.miniGuideVisible_=W;KY9(a)};
_.t.handleEduDismissAction=function(a){a&&a.eduDismissAction&&(_.aV(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.$rH.getInstance(),_.d9.set(a.eduDismissAction.key+"-dismissed",!0))};
_.t.handleEduImpressionAction=function(a){if(a&&a.eduImpressionAction){var W=_.$rH.getInstance();a=a.eduImpressionAction.key;W.JSC$10815_eduDisplayedThisLoad_[_.t8$[a].setKey||a]=!0;_.d9.set(a+"-impression",parseInt(_.d9.get(a+"-impression")||0,10)+1)}};
_.t.onYtSignalActionConfirmMentionsEdu=function(){_.aV(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.zZ.getInstance();_.VI.set("edu-dismissed",!0)};
_.t.onYtSignalActionRecordMentionsEduImpression=function(){_.zZ.getInstance();var a=_.VI.set,W=parseInt(_.VI.get("edu-impressions"),10);a.call(_.VI,"edu-impressions",(isFinite(W)?W:0)+1)};
_.t.onYtPageManagerAttached=function(a){var W;((W=_.QV(a))==null?void 0:W.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.t.onInvokeInstrumentManagerAction=function(a,W){mt9(W,a)};
_.t.updateIconSet=function(){var a=this.hostElement.querySelector("#masthead");if(a){var W=_.di(a),w=W.querySelector("g#yt-logo-updated");w&&(a=document.createElementNS("http://www.w3.org/2000/svg","defs"),a.appendChild(w.cloneNode(!0)),(W=W.querySelector("g#yt-logo-red-updated"))&&a.appendChild(W.cloneNode(!0)),this.initIconDefs("yt-logos-ext",a))}};
_.t.updateMastheadData=function(){var a=this,W,w,Z,N,B;return _.P(function(I){if(I.nextAddress==1){W=a.data;w=a.hostElement.querySelector("#masthead");if(!w)return I.return();_.DW(a,function(){w.data=a.topbarData});
if(!a.get("response.topbar",W)||a.get("response.topbar.responseContext.maxAgeSeconds",W)===0)return I.jumpTo(0);if(Z=_.K().resolve(_.bI))return _.g(I,Z(),6);N=_.K().resolve(_.W3);return _.g(I,N.put("service:topbar:fallback",new _.wy({innertubeResponse:a.get("response.topbar",W)})),0)}return(B=I.yieldResult)?_.g(I,B.put("service:topbar:fallback",new _.wy({innertubeResponse:a.get("response.topbar",W)})),0):I.jumpTo(0)})};
_.t.computeTopbarData=function(a){if(!a)return null;var W;return this.isShortsPage&&this.topbarData&&!_.A((W=a.response)==null?void 0:W.topbar,llf)?this.topbarData:a.response&&"topbar"in a.response?_.A(a.response.topbar,llf)||null:null};
_.t.onSetTheaterModeEnabled=function(a,W){this.isTheaterModeSession=W.enabled;this.setTheaterModeStyles(W.enabled)};
_.t.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.t.onDarkModeToggledAction=function(){var a=_.tw(window.location.href);if(!_.n47(a)){(a=!!_.st(window.location.href).themeRefresh)&&_.jJ(new _.Uw("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!a){nja();a={themeRefresh:1};var W=_.K().resolve(_.Gw);if(W.isOnWatch()){var w,Z;W=((w=W.getPlayerFromWatch())==null?void 0:(Z=w.getPlayer())==null?void 0:Z.getCurrentTime())||0;W>=1&&(a.time_continue=Math.floor(W))}_.gz()||_.eM()!=="USER_INTERFACE_THEME_DARK"||(a.theme="dark");_.ih(_.uG(window.location.href,
a))}_.r("web_appshell_refresh_trigger")&&_.NH.caches&&this.refreshAppShellResponse();w=_.qM(window.location.href);_.t8(_.K().resolve(_.$t),_.dQ(w,"theme"))}};
_.t.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.t.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.t.onPlayerFullscreen=function(a){_.V3();this.playerFullscreen=a};
_.t.setRestrictedMode=function(a){var W=_.gS();_.oV(0,58,a);W.save();_.K().resolve(_.Zh).reload()};
_.t.onPageChanged=function(a){a.detail.newPageType==="ytd-watch-flexy"||a.detail.newPageType==="ytd-watch-fixie"||a.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.ja("WEB_PAGE_TYPE_WATCH")):a.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.ja("WEB_PAGE_TYPE_SHORTS")):a.detail.newPageType==="ytd-browse"&&a.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.ja("WEB_PAGE_TYPE_MINI_APP")):_.r("web_frosted_glass")&&a.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.ja("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.ja("WEB_PAGE_TYPE_UNKNOWN"));a.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.t.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.t.onGuideToggleTap=function(){_.E$(this.hostElement,"yt-guide-toggle")};
_.t.onGuideToggleHover=function(){_.E$(this.hostElement,"yt-guide-hover")};
_.t.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.t.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.t.setMastheadTheme=function(){var a=_.di(this.hostElement).querySelector("#masthead");a&&(a.dark=a.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),a.isDarkThemeForced=!1)};
_.t.onRequestPanelModeChange=function(a,W){this.hideHeaderShadow=W.mode!=="seamed"};
_.t.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.t.onDrawerIronSelect=function(a){_.QV(a).id==="guide"&&this.processDrawerIronSelect()};
_.t.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var a="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(a="opened"));_.E$(this.hostElement,"yt-autonav-pause-guide-"+a)};
_.t.onAddElementToApp=function(a){_.M(this.hostElement).appendChild(a.detail)};
_.t.onThrottledScroll=function(){var a=_.K().resolve(_.Gw).getCurrentPage();a&&(this.scrollAtTop=a.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.t.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.t.setFullscreen=function(){if(_.r("external_fullscreen")||!this.isWatchPage){var a=_.r("kevlar_fullerscreen_root_only_killswitch")?!!_.V3():!!_.V3()&&_.V3()===document.documentElement;a=(this.isWatchPage||_.r("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(a||this.isFullWindowSession);this.fullscreen!==a&&((this.fullscreen=a)&&_.W_(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Cx().dispatch(_.lVI(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.aV(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.t.setFullscreenLoggingForShorts=function(a){var W,w,Z;return _.P(function(N){if(N.nextAddress==1)return _.g(N,(W=_.fA())==null?void 0:W.getPlayerPromise(),2);w=N.yieldResult;(Z=w)==null||Z.setAppFullscreen(a);_.Xd(N)})};
_.t.updateMastheadCssHeight=function(){var a=this.mastheadHeight;this.fullscreen&&(a=0);_.Hu(this.hostElement,{"--ytd-masthead-height":a+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.t.updateNetworkStatusBannerDisplayStatus=function(){var a="unset";this.fullscreen&&(a="none");_.Hu(this.hostElement,{"--ytd-network-status-banner-display":a})};
_.t.updateNetworkStatusBannerCssHeight=function(){var a="unset";this.fullscreen&&(a="0px");_.Hu(this.hostElement,{"--ytd-network-status-banner-max-height":a})};
_.t.updateScrollAndMasthead=function(a,W,w,Z){this.iMaxTheaterMode||(Z=!1);var N=_.K().resolve(_.Gw).getCurrentPage();a||W||Z?(document.body.classList.add("no-scroll"),N.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.yV(this,this.onScroll)),N.setScrollTop(0),_.Hu(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.iZ()+"px"})):w?_.E$(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.E$(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
N.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.yV(this,this.onScroll)));this.mastheadHidden=a||W||w;this.updateMastheadCssHeight();_.r("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.t.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.t.onYtNavigateAction=function(a){a=this.get("navigateAction.endpoint",a);_.E$(this.hostElement,"yt-navigate",{endpoint:a})};
_.t.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var a=document.createElement("yt-create-family-dialog");_.M(this.hostElement).appendChild(a);this.hasCreateFamilyDialog=!0}};
_.t.onSetPushNotificationsEnabledCommand=function(a){var W=this,w=_.A(a,B70);w&&typeof w.enabled==="boolean"&&(Notification.permission!=="granted"?uIX().then(function(){Notification.permission==="granted"?(Al2(!w.enabled).then(clk),w.successAction&&_.Z9(W.hostElement,[w.successAction])):w.failureAction&&_.Z9(W.hostElement,[w.failureAction])}):(Al2(!w.enabled).then(clk),w.successAction&&_.Z9(this.hostElement,[w.successAction])))};
_.t.onYtSignalActionEnableChromeNotifications=function(){Ca0(!0)};
_.t.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.A(this.topbarData.hotkeyDialog,Xo0)}}})};
_.t.onYtSignalActionShowKeyboardShortcutDialog=function(){_.aV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.t.onYtEndpointChangeHandler=function(a,W){var w=_.lV(_.w4);w.pendingPrefetchJob_&&(W=!(!W||W.autonav!="1"),w.pendingPrefetchJob_.resolve(a&&_.KzC(a)?_.pwC(a,W):""),w.pendingPrefetchJob_=null);_.aV(this.hostElement,"yt-pause-active-page-context");_.aV(this.hostElement,"ytd-log-youthere-nav");_.aV(this.hostElement,"yt-prepare-page-dispose")};
_.t.handleCommandWithCommandHandler=function(a,W){_.WX.instance.resolveCommand(a,{form:{element:W}})};
_.t.onYtTimedCommand=function(a){var W=this;a=_.A(a,zu9);var w=a.command;w&&_.rP(_.hF,function(){var Z=_.A(w,_.F6$);Z?(_.WX.instance.resolveCommand(w),W.maybeLogGetAnswerRequestTick(Z)):_.N1(W.hostElement,[w],W.hostElement)},a.timeoutMs||0)};
_.t.maybeLogGetAnswerRequestTick=function(a){a&&a.isFirstRequest&&(_.rS("search_overview_answer"),_.Ak("so_rq",void 0,"search_overview_answer"))};
_.t.onYtSignalActionSkipNavigation=function(){var a=_.K().resolve(_.Gw).getCurrentPage();_.CJ(a)};
_.t.onYtSignalActionCopyDebugData=function(){wHE()};
_.t.handleEntityUpdateCommand=function(a){_.PJ(_.A(a,_.Qkh).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.t.logFlowLoggingEventCommand=function(a){if(a=_.A(a,_.gES))if(a.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var W=a.flowEventNamespace,w=a.flowEventType,Z=a.flowType;Z&&W&&w&&_.oZx(_.Z3(W,w,a.flowEventMetadata),Z)}else{W=_.t7();w=a.flowEventNamespace;Z=a.flowEventType;var N=a.flowType;N&&w&&Z&&_.Nj(W,_.Z3(w,Z,a.flowEventMetadata),N,a.flowNonce)}};
_.t.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.t.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.t.onTouchStart=function(){var a=_.tb();_.nS()&&_.LA(a.JSC$10966_screenManager,{visualElement:a.ve})};
_.t.handleSelectLanguageCommand=function(a){if(a=_.A(a,N7n).hl){var W=_.gS();W.set("hl",a);W.save();_.K().resolve(_.Zh).reload()}};
_.t.handleConfirmDialogEndpoint=function(a){(a=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a))&&this.ytOpenPopupBehavior.openPopup(a)};
_.t.handleOpenPopupNavigationEndpoints=function(a,W){_.r("web_button_rework")&&(a=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a))&&this.ytOpenPopupBehavior.openPopup(a,W)};
_.t.handleSaveCommandToSessionStorage=function(a){if(a=_.A(a,_.REL)){var W=a.key;W&&a.command&&window.sessionStorage.setItem(W,JSON.stringify(a.command))}};
_.t.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"&&_.eJ(a)})};
_.t.onDeviceThemeChanged=function(){var a=_.cu();_.oV(_.gS(),185,a);_.gS().save()};
_.t.handleYtRegisterPromoCommand=function(a){if(_.A(a,$af)){var W=_.K().resolve(_.Gw).getCurrentPage()||this.hostElement;ULd().registerPromoCommand(_.A(a,$af),W)}};
_.t.onYtNavigateHomeAction=function(){if(!_.r("kevlar_miniplayer_navigate_home_from_app_killswitch")){var a,W,w,Z,N=(Z=(a=this.topbarData)==null?void 0:(W=a.logo)==null?void 0:(w=W.topbarLogoRenderer)==null?void 0:w.endpoint)!=null?Z:_.g9;this.ytComponentBehavior.resolveCommand(N)}};
_.t.onYtLocationCollectionCommand=function(a){pAK(_.A(a,Yj2))};
_.t.onYtGetLocationCommand=function(a){lbn(_.A(a,Sj0),this)};
_.t.updateRenderGuideFromBinding=function(a){this.renderGuide=a.detail.value};
_.t.updateGuidePersistentAndVisibleFromBinding=function(a){this.guidePersistentAndVisible=a.detail.value};
_.t.updateMiniGuideVisibleFromBinding=function(a){this.miniGuideVisible=a.detail.value};
_.t.onThemeSelected=function(a,W){var w=_.gS(),Z=a||W?a:_.cu(),N=(Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.n47(_.tw(window.location.href));_.oV(0,165,a);_.oV(0,174,W);w.save();N&&_.aV(this.hostElement,"yt-dark-mode-toggled-action",[Z]);_.aV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.t.getCurrentTheme=function(){return _.nC()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.eM()};
_.t.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.t.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.t.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.t.handleShowConsentPrimitive=function(a){var W=this,w,Z;return _.P(function(N){if(N.nextAddress==1){try{w=(Z=_.fA())==null?void 0:Z.getPlayerPromise()}catch(B){}return _.g(N,s50(a,w),2)}_.aV(W.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Xd(N)})};
_.t.handleSelectActiveIdentityEndpointInternal=function(a){_.A7();a=_.A(a,_.EcH);if(a!=null&&a.supportedTokens){a=_.l(a.supportedTokens);for(var W=a.next();!W.done;W=a.next())W=W.value,W.accountSigninToken&&_.ih(W.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.t.handleUpdatePermissionRoleCommand=function(a){if(a=_.A(a,_.yAE)){var W;this.hasDelegation=!((W=_.A(a.renderer,_.HUL))==null||!W.status)}};
_.t.registerViewTransitionTasks=function(){var a=this,W=_.K().resolve(_.Vv(_.kL));if(W){var w,Z=(w=this.guide)==null?void 0:w.querySelector("#scrim"),N,B=(N=this.guide)==null?void 0:N.querySelector("#contentContainer");Z&&B&&(w={beforeTransition:function(){var I;(I=a.guide)!=null&&I.persistent||(Z.style.viewTransitionName="app-drawer-scrim",B.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var I;(I=a.guide)!=null&&I.persistent||(Z.style.viewTransitionName="",B.style.viewTransitionName="")}},mN(W,"slide",w),mN(W,"zoom",w))}};
_.dU.Object.defineProperties(uP.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.r("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.dU.Object.defineProperties(uP,{template:{configurable:!0,enumerable:!0,get:function(){if(OOK===void 0){var a=document.createElement("template");_.n(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<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
a.content.insertBefore(_.y().content.cloneNode(!0),a.content.firstChild);OOK=a}a=OOK;return a}}});
uP.prototype.onOpenHotkeyDialog=uP.prototype.onOpenHotkeyDialog;uP.prototype.setFullscreen=uP.prototype.setFullscreen;uP.prototype.onAddElementToApp=uP.prototype.onAddElementToApp;uP.prototype.onDrawerIronSelect=uP.prototype.onDrawerIronSelect;uP.prototype.onGuideOpenButtonHover=uP.prototype.onGuideOpenButtonHover;uP.prototype.onRequestPanelModeChange=uP.prototype.onRequestPanelModeChange;uP.prototype.onPageDataUpdated=uP.prototype.onPageDataUpdated;uP.prototype.onPageChanged=uP.prototype.onPageChanged;
uP.prototype.onSetTheaterModeEnabled=uP.prototype.onSetTheaterModeEnabled;uP.prototype.updateMastheadData=uP.prototype.updateMastheadData;uP.prototype.onYtPageManagerAttached=uP.prototype.onYtPageManagerAttached;uP.prototype.observeGuideVisibility=uP.prototype.observeGuideVisibility;uP.prototype.guideIsVisibleButNotPersistentSelectorChanged=uP.prototype.guideIsVisibleButNotPersistentSelectorChanged;uP.prototype.isInlinePreviewEnabledChanged=uP.prototype.isInlinePreviewEnabledChanged;
uP.prototype.dispatchFrostedGlassMode=uP.prototype.dispatchFrostedGlassMode;_.f([_.R(_.ij),_.z("design:type",Object)],uP.prototype,"ytdReduxBehavior",void 0);_.f([_.R(_.PR.YtEventForwardingBehavior),_.z("design:type",Object)],uP.prototype,"ytEventForwardingBehavior",void 0);_.f([_.R(_.Ww.YtOpenPopupBehavior),_.z("design:type",Object)],uP.prototype,"ytOpenPopupBehavior",void 0);_.f([_.R(_.d4.YtActionHandlerBehavior),_.z("design:type",Object)],uP.prototype,"ytActionHandlerBehavior",void 0);
_.f([_.R({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.sn.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.r("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)}}),
_.z("design:type",Object)],uP.prototype,"ytActionRouterBehavior",void 0);_.f([_.R(Apk.YtdAppBehavior),_.z("design:type",Object)],uP.prototype,"ytdAppBehavior",void 0);_.f([_.R(_.wn.YtEndpointBehavior),_.z("design:type",Object)],uP.prototype,"ytEndpointBehavior",void 0);_.f([_.R(pLk.YtEndpointHandlerWithYpcBehavior),_.z("design:type",Object)],uP.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.f([_.R(Sh0.YtLogYpcFlowCommandsBehavior),_.z("design:type",Object)],uP.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.f([_.R(_.E.YtRendererBehavior),_.z("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.f([_.R(_.e7.YtComponentBehavior),_.z("design:type",Object)],uP.prototype,"ytComponentBehavior",void 0);_.f([_.b({selector:_.N3E}),_.z("design:type",Object)],uP.prototype,"tabGesturesIsActive",void 0);_.f([_.b(),_.z("design:type",Boolean)],uP.prototype,"renderGuide",void 0);
_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],uP.prototype,"guidePersistentAndVisible",void 0);_.f([_.b({selector:_.ZYE}),_.z("design:type",Boolean)],uP.prototype,"guideIsVisibleButNotPersistent",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],uP.prototype,"standalone",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],uP.prototype,"miniGuideVisible",void 0);
_.f([_.b({selector:_.J4E}),_.z("design:type",Number)],uP.prototype,"miniplayerPlaybackState",void 0);_.f([_.b({selector:_.hG,reflectToAttribute:!0}),_.z("design:type",Boolean)],uP.prototype,"miniplayerIsActive",void 0);_.f([_.b({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.z("design:type",Boolean)],uP.prototype,"isInlinePreviewEnabled",void 0);_.f([_.b(),_.z("design:type",Boolean)],uP.prototype,"isInlinePreviewDisabled",void 0);
_.f([_.b({reflectToAttribute:!0,value:function(){return _.JS("START_IN_FULL_WINDOW_MODE")}}),
_.z("design:type",Boolean)],uP.prototype,"mastheadHidden",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],uP.prototype,"playerFullscreen",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uP.prototype,"deprecateFullerscreenUi",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],uP.prototype,"fullscreen",void 0);_.f([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],uP.prototype,"hideHeaderShadow",void 0);
_.f([_.b({value:{GUIDE_ALT_LABEL:_.P_("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.z("design:type",Object)],uP.prototype,"menuStrings",void 0);_.f([_.b({computed:"computeTopbarData(data)"}),_.z("design:type",Object)],uP.prototype,"topbarData",void 0);_.f([_.b({selector:_.i8}),_.z("design:type",Boolean)],uP.prototype,"isWatchPage",void 0);_.f([_.b({selector:_.ncF,reflectToAttribute:!0}),_.z("design:type",Boolean)],uP.prototype,"isShortsPage",void 0);
_.f([_.b({selector:function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.z("design:type",Boolean)],uP.prototype,"isMiniAppPage",void 0);_.f([_.b({selector:function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.z("design:type",Boolean)],uP.prototype,"isBrowsePage",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],uP.prototype,"scrolling",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uP.prototype,"hasDelegation",void 0);_.f([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],uP.prototype,"guideScrolledByTouch",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uP.prototype,"darkerDarkTheme",void 0);
_.f([_.b(),_.z("design:type",Object)],uP.prototype,"isFrostedGlassInitialized",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uP.prototype,"frostedGlassExp",void 0);_.f([_.b({selector:function(a){return a.ui.chipBarIsSticky}}),
_.z("design:type",Boolean)],uP.prototype,"chipBarIsSticky",void 0);_.f([_.b({computed:"computeIsHomePage(isBrowsePage, data)"}),_.z("design:type",Boolean)],uP.prototype,"isHomePage",void 0);_.f([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uP.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.f([_.b(),_.z("design:type",Object)],uP.prototype,"ephemeralActionsEnabled",void 0);_.f([_.dV("guide"),_.z("design:type",Object)],uP.prototype,"guide",void 0);
_.f([_.dV("guide-service"),_.z("design:type",XpX)],uP.prototype,"guideService",void 0);_.f([_.dV("guide-inner-content"),_.z("design:type",HTMLDivElement)],uP.prototype,"guideInnerContent",void 0);_.f([_.b({selector:_.MTe}),_.z("design:type",String)],uP.prototype,"frostedGlassMode",void 0);
_.f([_.a5("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uP.prototype,"dispatchFrostedGlassMode",null);_.f([_.b({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.z("design:type",Object)],uP.prototype,"isFrostedGlassDisabled",void 0);
_.f([_.Q("isHomePage","chipBarIsSticky"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uP.prototype,"applyFrostedGlassToChipBar",null);_.f([_.b(),_.z("design:type",Object)],uP.prototype,"isChannelOrPlaylistPage",void 0);_.f([_.lO("isInlinePreviewEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uP.prototype,"isInlinePreviewEnabledChanged",null);
_.f([_.a5("guideIsVisibleButNotPersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uP.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.f([_.a5("guidePersistentAndVisible","miniGuideVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uP.prototype,"observeGuideVisibility",null);
_.f([_.E6("attached"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],uP.prototype,"onYtPageManagerAttached",null);_.f([_.a5("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],uP.prototype,"updateMastheadData",null);_.f([_.E6("yt-set-theater-mode-enabled"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],uP.prototype,"onSetTheaterModeEnabled",null);
_.f([_.E6("yt-page-type-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],uP.prototype,"onPageChanged",null);_.f([_.E6("yt-page-data-updated"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uP.prototype,"onPageDataUpdated",null);_.f([_.E6("yt-request-panel-mode-change"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Object]),_.z("design:returntype")],uP.prototype,"onRequestPanelModeChange",null);
_.f([_.E6("yt-guide-hover"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uP.prototype,"onGuideOpenButtonHover",null);_.f([_.E6("app-drawer-transitioned"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],uP.prototype,"onDrawerIronSelect",null);_.f([_.E6("yt-add-element-to-app"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],uP.prototype,"onAddElementToApp",null);
_.f([_.E6("yt-set-fullerscreen-styles"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uP.prototype,"setFullscreen",null);_.f([_.E6("yt-open-hotkey-dialog"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uP.prototype,"onOpenHotkeyDialog",null);uP=_.f([_.C({is:"ytd-app"})],uP);_.F4().processSignal("eor");
_.hK();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
